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 rgb 1.0.5.
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='rgb'
563 PACKAGE_TARNAME='rgb'
564 PACKAGE_VERSION='1.0.5'
565 PACKAGE_STRING='rgb 1.0.5'
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 RGB_DB_FALSE
611 RGB_DB_TRUE
612 RGB_DB_FILES
613 RGB_DB_TYPE
614 XORG_LIBS
615 XORG_CFLAGS
616 db_dir
617 db_file
618 RGB_LIBS
619 RGB_CFLAGS
620 AM_BACKSLASH
621 AM_DEFAULT_VERBOSITY
622 MAN_SUBSTS
623 XORG_MAN_PAGE
624 ADMIN_MAN_DIR
625 DRIVER_MAN_DIR
626 MISC_MAN_DIR
627 FILE_MAN_DIR
628 LIB_MAN_DIR
629 APP_MAN_DIR
630 ADMIN_MAN_SUFFIX
631 DRIVER_MAN_SUFFIX
632 MISC_MAN_SUFFIX
633 FILE_MAN_SUFFIX
634 LIB_MAN_SUFFIX
635 APP_MAN_SUFFIX
636 SED
637 host_os
638 host_vendor
639 host_cpu
640 host
641 build_os
642 build_vendor
643 build_cpu
644 build
645 INSTALL_CMD
646 PKG_CONFIG
647 CHANGELOG_CMD
648 STRICT_CFLAGS
649 CWARNFLAGS
650 BASE_CFLAGS
651 EGREP
652 GREP
653 CPP
654 am__fastdepCC_FALSE
655 am__fastdepCC_TRUE
656 CCDEPMODE
657 am__nodep
658 AMDEPBACKSLASH
659 AMDEP_FALSE
660 AMDEP_TRUE
661 am__quote
662 am__include
663 DEPDIR
664 OBJEXT
665 EXEEXT
666 ac_ct_CC
667 CPPFLAGS
668 LDFLAGS
669 CFLAGS
670 CC
671 MAINT
672 MAINTAINER_MODE_FALSE
673 MAINTAINER_MODE_TRUE
674 am__untar
675 am__tar
676 AMTAR
677 am__leading_dot
678 SET_MAKE
679 AWK
680 mkdir_p
681 MKDIR_P
682 INSTALL_STRIP_PROGRAM
683 STRIP
684 install_sh
685 MAKEINFO
686 AUTOHEADER
687 AUTOMAKE
688 AUTOCONF
689 ACLOCAL
690 VERSION
691 PACKAGE
692 CYGPATH_W
693 am__isrc
694 INSTALL_DATA
695 INSTALL_SCRIPT
696 INSTALL_PROGRAM
697 target_alias
698 host_alias
699 build_alias
700 LIBS
701 ECHO_T
702 ECHO_N
703 ECHO_C
704 DEFS
705 mandir
706 localedir
707 libdir
708 psdir
709 pdfdir
710 dvidir
711 htmldir
712 infodir
713 docdir
714 oldincludedir
715 includedir
716 localstatedir
717 sharedstatedir
718 sysconfdir
719 datadir
720 datarootdir
721 libexecdir
722 sbindir
723 bindir
724 program_transform_name
725 prefix
726 exec_prefix
727 PACKAGE_URL
728 PACKAGE_BUGREPORT
729 PACKAGE_STRING
730 PACKAGE_VERSION
731 PACKAGE_TARNAME
732 PACKAGE_NAME
733 PATH_SEPARATOR
734 SHELL'
735 ac_subst_files=''
736 ac_user_opts='
737 enable_option_checking
738 enable_maintainer_mode
739 enable_dependency_tracking
740 enable_selective_werror
741 enable_strict_compilation
742 enable_silent_rules
743 with_rgb_db_dir
744 with_rgb_db_type
745 '
746 ac_precious_vars='build_alias
747 host_alias
748 target_alias
749 CC
750 CFLAGS
751 LDFLAGS
752 LIBS
753 CPPFLAGS
754 CPP
755 PKG_CONFIG
756 RGB_CFLAGS
757 RGB_LIBS
758 XORG_CFLAGS
759 XORG_LIBS'
760
761
762 # Initialize some variables set by options.
763 ac_init_help=
764 ac_init_version=false
765 ac_unrecognized_opts=
766 ac_unrecognized_sep=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
769 cache_file=/dev/null
770 exec_prefix=NONE
771 no_create=
772 no_recursion=
773 prefix=NONE
774 program_prefix=NONE
775 program_suffix=NONE
776 program_transform_name=s,x,x,
777 silent=
778 site=
779 srcdir=
780 verbose=
781 x_includes=NONE
782 x_libraries=NONE
783
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
801 infodir='${datarootdir}/info'
802 htmldir='${docdir}'
803 dvidir='${docdir}'
804 pdfdir='${docdir}'
805 psdir='${docdir}'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
809
810 ac_prev=
811 ac_dashdash=
812 for ac_option
813 do
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\$ac_option
817 ac_prev=
818 continue
819 fi
820
821 case $ac_option in
822 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823 *=) ac_optarg= ;;
824 *) ac_optarg=yes ;;
825 esac
826
827 # Accept the important Cygnus configure options, so we can diagnose typos.
828
829 case $ac_dashdash$ac_option in
830 --)
831 ac_dashdash=yes ;;
832
833 -bindir | --bindir | --bindi | --bind | --bin | --bi)
834 ac_prev=bindir ;;
835 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836 bindir=$ac_optarg ;;
837
838 -build | --build | --buil | --bui | --bu)
839 ac_prev=build_alias ;;
840 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841 build_alias=$ac_optarg ;;
842
843 -cache-file | --cache-file | --cache-fil | --cache-fi \
844 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845 ac_prev=cache_file ;;
846 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848 cache_file=$ac_optarg ;;
849
850 --config-cache | -C)
851 cache_file=config.cache ;;
852
853 -datadir | --datadir | --datadi | --datad)
854 ac_prev=datadir ;;
855 -datadir=* | --datadir=* | --datadi=* | --datad=*)
856 datadir=$ac_optarg ;;
857
858 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859 | --dataroo | --dataro | --datar)
860 ac_prev=datarootdir ;;
861 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863 datarootdir=$ac_optarg ;;
864
865 -disable-* | --disable-*)
866 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867 # Reject names that are not valid shell variable names.
868 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869 as_fn_error $? "invalid feature name: $ac_useropt"
870 ac_useropt_orig=$ac_useropt
871 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
872 case $ac_user_opts in
873 *"
874 "enable_$ac_useropt"
875 "*) ;;
876 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
877 ac_unrecognized_sep=', ';;
878 esac
879 eval enable_$ac_useropt=no ;;
880
881 -docdir | --docdir | --docdi | --doc | --do)
882 ac_prev=docdir ;;
883 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
884 docdir=$ac_optarg ;;
885
886 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
887 ac_prev=dvidir ;;
888 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
889 dvidir=$ac_optarg ;;
890
891 -enable-* | --enable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=\$ac_optarg ;;
906
907 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
908 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
909 | --exec | --exe | --ex)
910 ac_prev=exec_prefix ;;
911 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
912 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
913 | --exec=* | --exe=* | --ex=*)
914 exec_prefix=$ac_optarg ;;
915
916 -gas | --gas | --ga | --g)
917 # Obsolete; use --with-gas.
918 with_gas=yes ;;
919
920 -help | --help | --hel | --he | -h)
921 ac_init_help=long ;;
922 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
923 ac_init_help=recursive ;;
924 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
925 ac_init_help=short ;;
926
927 -host | --host | --hos | --ho)
928 ac_prev=host_alias ;;
929 -host=* | --host=* | --hos=* | --ho=*)
930 host_alias=$ac_optarg ;;
931
932 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
933 ac_prev=htmldir ;;
934 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
935 | --ht=*)
936 htmldir=$ac_optarg ;;
937
938 -includedir | --includedir | --includedi | --included | --include \
939 | --includ | --inclu | --incl | --inc)
940 ac_prev=includedir ;;
941 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
942 | --includ=* | --inclu=* | --incl=* | --inc=*)
943 includedir=$ac_optarg ;;
944
945 -infodir | --infodir | --infodi | --infod | --info | --inf)
946 ac_prev=infodir ;;
947 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
948 infodir=$ac_optarg ;;
949
950 -libdir | --libdir | --libdi | --libd)
951 ac_prev=libdir ;;
952 -libdir=* | --libdir=* | --libdi=* | --libd=*)
953 libdir=$ac_optarg ;;
954
955 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
956 | --libexe | --libex | --libe)
957 ac_prev=libexecdir ;;
958 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
959 | --libexe=* | --libex=* | --libe=*)
960 libexecdir=$ac_optarg ;;
961
962 -localedir | --localedir | --localedi | --localed | --locale)
963 ac_prev=localedir ;;
964 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
965 localedir=$ac_optarg ;;
966
967 -localstatedir | --localstatedir | --localstatedi | --localstated \
968 | --localstate | --localstat | --localsta | --localst | --locals)
969 ac_prev=localstatedir ;;
970 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
971 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
972 localstatedir=$ac_optarg ;;
973
974 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
975 ac_prev=mandir ;;
976 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
977 mandir=$ac_optarg ;;
978
979 -nfp | --nfp | --nf)
980 # Obsolete; use --without-fp.
981 with_fp=no ;;
982
983 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
984 | --no-cr | --no-c | -n)
985 no_create=yes ;;
986
987 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
988 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
989 no_recursion=yes ;;
990
991 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
992 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
993 | --oldin | --oldi | --old | --ol | --o)
994 ac_prev=oldincludedir ;;
995 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
996 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
997 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
998 oldincludedir=$ac_optarg ;;
999
1000 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1001 ac_prev=prefix ;;
1002 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1003 prefix=$ac_optarg ;;
1004
1005 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1006 | --program-pre | --program-pr | --program-p)
1007 ac_prev=program_prefix ;;
1008 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1009 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1010 program_prefix=$ac_optarg ;;
1011
1012 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1013 | --program-suf | --program-su | --program-s)
1014 ac_prev=program_suffix ;;
1015 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1016 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1017 program_suffix=$ac_optarg ;;
1018
1019 -program-transform-name | --program-transform-name \
1020 | --program-transform-nam | --program-transform-na \
1021 | --program-transform-n | --program-transform- \
1022 | --program-transform | --program-transfor \
1023 | --program-transfo | --program-transf \
1024 | --program-trans | --program-tran \
1025 | --progr-tra | --program-tr | --program-t)
1026 ac_prev=program_transform_name ;;
1027 -program-transform-name=* | --program-transform-name=* \
1028 | --program-transform-nam=* | --program-transform-na=* \
1029 | --program-transform-n=* | --program-transform-=* \
1030 | --program-transform=* | --program-transfor=* \
1031 | --program-transfo=* | --program-transf=* \
1032 | --program-trans=* | --program-tran=* \
1033 | --progr-tra=* | --program-tr=* | --program-t=*)
1034 program_transform_name=$ac_optarg ;;
1035
1036 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1037 ac_prev=pdfdir ;;
1038 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1039 pdfdir=$ac_optarg ;;
1040
1041 -psdir | --psdir | --psdi | --psd | --ps)
1042 ac_prev=psdir ;;
1043 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1044 psdir=$ac_optarg ;;
1045
1046 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1047 | -silent | --silent | --silen | --sile | --sil)
1048 silent=yes ;;
1049
1050 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1051 ac_prev=sbindir ;;
1052 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1053 | --sbi=* | --sb=*)
1054 sbindir=$ac_optarg ;;
1055
1056 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1057 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1058 | --sharedst | --shareds | --shared | --share | --shar \
1059 | --sha | --sh)
1060 ac_prev=sharedstatedir ;;
1061 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1062 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1063 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1064 | --sha=* | --sh=*)
1065 sharedstatedir=$ac_optarg ;;
1066
1067 -site | --site | --sit)
1068 ac_prev=site ;;
1069 -site=* | --site=* | --sit=*)
1070 site=$ac_optarg ;;
1071
1072 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1073 ac_prev=srcdir ;;
1074 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1075 srcdir=$ac_optarg ;;
1076
1077 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1078 | --syscon | --sysco | --sysc | --sys | --sy)
1079 ac_prev=sysconfdir ;;
1080 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1081 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1082 sysconfdir=$ac_optarg ;;
1083
1084 -target | --target | --targe | --targ | --tar | --ta | --t)
1085 ac_prev=target_alias ;;
1086 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1087 target_alias=$ac_optarg ;;
1088
1089 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1090 verbose=yes ;;
1091
1092 -version | --version | --versio | --versi | --vers | -V)
1093 ac_init_version=: ;;
1094
1095 -with-* | --with-*)
1096 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1099 as_fn_error $? "invalid package name: $ac_useropt"
1100 ac_useropt_orig=$ac_useropt
1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1102 case $ac_user_opts in
1103 *"
1104 "with_$ac_useropt"
1105 "*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval with_$ac_useropt=\$ac_optarg ;;
1110
1111 -without-* | --without-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid package name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1119 *"
1120 "with_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=no ;;
1126
1127 --x)
1128 # Obsolete; use --with-x.
1129 with_x=yes ;;
1130
1131 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1132 | --x-incl | --x-inc | --x-in | --x-i)
1133 ac_prev=x_includes ;;
1134 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1135 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1136 x_includes=$ac_optarg ;;
1137
1138 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1139 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1140 ac_prev=x_libraries ;;
1141 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1142 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1143 x_libraries=$ac_optarg ;;
1144
1145 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1146 Try \`$0 --help' for more information"
1147 ;;
1148
1149 *=*)
1150 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151 # Reject names that are not valid shell variable names.
1152 case $ac_envvar in #(
1153 '' | [0-9]* | *[!_$as_cr_alnum]* )
1154 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1155 esac
1156 eval $ac_envvar=\$ac_optarg
1157 export $ac_envvar ;;
1158
1159 *)
1160 # FIXME: should be removed in autoconf 3.0.
1161 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1162 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1164 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1165 ;;
1166
1167 esac
1168 done
1169
1170 if test -n "$ac_prev"; then
1171 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1172 as_fn_error $? "missing argument to $ac_option"
1173 fi
1174
1175 if test -n "$ac_unrecognized_opts"; then
1176 case $enable_option_checking in
1177 no) ;;
1178 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1179 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1180 esac
1181 fi
1182
1183 # Check all directory arguments for consistency.
1184 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1185 datadir sysconfdir sharedstatedir localstatedir includedir \
1186 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1187 libdir localedir mandir
1188 do
1189 eval ac_val=\$$ac_var
1190 # Remove trailing slashes.
1191 case $ac_val in
1192 */ )
1193 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1194 eval $ac_var=\$ac_val;;
1195 esac
1196 # Be sure to have absolute directory names.
1197 case $ac_val in
1198 [\\/$]* | ?:[\\/]* ) continue;;
1199 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1200 esac
1201 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1202 done
1203
1204 # There might be people who depend on the old broken behavior: `$host'
1205 # used to hold the argument of --host etc.
1206 # FIXME: To remove some day.
1207 build=$build_alias
1208 host=$host_alias
1209 target=$target_alias
1210
1211 # FIXME: To remove some day.
1212 if test "x$host_alias" != x; then
1213 if test "x$build_alias" = x; then
1214 cross_compiling=maybe
1215 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1216 If a cross compiler is detected then cross compile mode will be used" >&2
1217 elif test "x$build_alias" != "x$host_alias"; then
1218 cross_compiling=yes
1219 fi
1220 fi
1221
1222 ac_tool_prefix=
1223 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224
1225 test "$silent" = yes && exec 6>/dev/null
1226
1227
1228 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1229 ac_ls_di=`ls -di .` &&
1230 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1231 as_fn_error $? "working directory cannot be determined"
1232 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1233 as_fn_error $? "pwd does not report name of working directory"
1234
1235
1236 # Find the source files, if location was not specified.
1237 if test -z "$srcdir"; then
1238 ac_srcdir_defaulted=yes
1239 # Try the directory containing this script, then the parent directory.
1240 ac_confdir=`$as_dirname -- "$as_myself" ||
1241 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1242 X"$as_myself" : 'X\(//\)[^/]' \| \
1243 X"$as_myself" : 'X\(//\)$' \| \
1244 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1245 $as_echo X"$as_myself" |
1246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1247 s//\1/
1248 q
1249 }
1250 /^X\(\/\/\)[^/].*/{
1251 s//\1/
1252 q
1253 }
1254 /^X\(\/\/\)$/{
1255 s//\1/
1256 q
1257 }
1258 /^X\(\/\).*/{
1259 s//\1/
1260 q
1261 }
1262 s/.*/./; q'`
1263 srcdir=$ac_confdir
1264 if test ! -r "$srcdir/$ac_unique_file"; then
1265 srcdir=..
1266 fi
1267 else
1268 ac_srcdir_defaulted=no
1269 fi
1270 if test ! -r "$srcdir/$ac_unique_file"; then
1271 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1272 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1273 fi
1274 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1275 ac_abs_confdir=`(
1276 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1277 pwd)`
1278 # When building in place, set srcdir=.
1279 if test "$ac_abs_confdir" = "$ac_pwd"; then
1280 srcdir=.
1281 fi
1282 # Remove unnecessary trailing slashes from srcdir.
1283 # Double slashes in file names in object file debugging info
1284 # mess up M-x gdb in Emacs.
1285 case $srcdir in
1286 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1287 esac
1288 for ac_var in $ac_precious_vars; do
1289 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1290 eval ac_env_${ac_var}_value=\$${ac_var}
1291 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1293 done
1294
1295 #
1296 # Report the --help message.
1297 #
1298 if test "$ac_init_help" = "long"; then
1299 # Omit some internal or obsolete options to make the list less imposing.
1300 # This message is too long to be a string in the A/UX 3.1 sh.
1301 cat <<_ACEOF
1302 \`configure' configures rgb 1.0.5 to adapt to many kinds of systems.
1303
1304 Usage: $0 [OPTION]... [VAR=VALUE]...
1305
1306 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1307 VAR=VALUE. See below for descriptions of some of the useful variables.
1308
1309 Defaults for the options are specified in brackets.
1310
1311 Configuration:
1312 -h, --help display this help and exit
1313 --help=short display options specific to this package
1314 --help=recursive display the short help of all the included packages
1315 -V, --version display version information and exit
1316 -q, --quiet, --silent do not print \`checking ...' messages
1317 --cache-file=FILE cache test results in FILE [disabled]
1318 -C, --config-cache alias for \`--cache-file=config.cache'
1319 -n, --no-create do not create output files
1320 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321
1322 Installation directories:
1323 --prefix=PREFIX install architecture-independent files in PREFIX
1324 [$ac_default_prefix]
1325 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1326 [PREFIX]
1327
1328 By default, \`make install' will install all the files in
1329 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1330 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1331 for instance \`--prefix=\$HOME'.
1332
1333 For better control, use the options below.
1334
1335 Fine tuning of the installation directories:
1336 --bindir=DIR user executables [EPREFIX/bin]
1337 --sbindir=DIR system admin executables [EPREFIX/sbin]
1338 --libexecdir=DIR program executables [EPREFIX/libexec]
1339 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1340 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1341 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1342 --libdir=DIR object code libraries [EPREFIX/lib]
1343 --includedir=DIR C header files [PREFIX/include]
1344 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1345 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1346 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1347 --infodir=DIR info documentation [DATAROOTDIR/info]
1348 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1349 --mandir=DIR man documentation [DATAROOTDIR/man]
1350 --docdir=DIR documentation root [DATAROOTDIR/doc/rgb]
1351 --htmldir=DIR html documentation [DOCDIR]
1352 --dvidir=DIR dvi documentation [DOCDIR]
1353 --pdfdir=DIR pdf documentation [DOCDIR]
1354 --psdir=DIR ps documentation [DOCDIR]
1355 _ACEOF
1356
1357 cat <<\_ACEOF
1358
1359 Program names:
1360 --program-prefix=PREFIX prepend PREFIX to installed program names
1361 --program-suffix=SUFFIX append SUFFIX to installed program names
1362 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1363
1364 System types:
1365 --build=BUILD configure for building on BUILD [guessed]
1366 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1367 _ACEOF
1368 fi
1369
1370 if test -n "$ac_init_help"; then
1371 case $ac_init_help in
1372 short | recursive ) echo "Configuration of rgb 1.0.5:";;
1373 esac
1374 cat <<\_ACEOF
1375
1376 Optional Features:
1377 --disable-option-checking ignore unrecognized --enable/--with options
1378 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1379 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1380 --enable-maintainer-mode enable make rules and dependencies not useful
1381 (and sometimes confusing) to the casual installer
1382 --disable-dependency-tracking speeds up one-time build
1383 --enable-dependency-tracking do not reject slow dependency extractors
1384 --disable-selective-werror
1385 Turn off selective compiler errors. (default:
1386 enabled)
1387 --enable-strict-compilation
1388 Enable all warnings from compiler and make them
1389 errors (default: disabled)
1390 --enable-silent-rules less verbose build output (undo: `make V=1')
1391 --disable-silent-rules verbose build output (undo: `make V=0')
1392
1393 Optional Packages:
1394 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1395 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1396 --with-rgb-db-dir=<path>
1397 rgb database location (default is
1398 ${datadir}/X11/rgb)
1399 --with-rgb-db-type=(text|dbm|ndbm)
1400 rgb database type (default is text)
1401
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1410 CPP C preprocessor
1411 PKG_CONFIG path to pkg-config utility
1412 RGB_CFLAGS C compiler flags for RGB, overriding pkg-config
1413 RGB_LIBS linker flags for RGB, overriding pkg-config
1414 XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1415 XORG_LIBS linker flags for XORG, overriding pkg-config
1416
1417 Use these variables to override the choices made by `configure' or to help
1418 it to find libraries and programs with nonstandard names/locations.
1419
1420 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1421 _ACEOF
1422 ac_status=$?
1423 fi
1424
1425 if test "$ac_init_help" = "recursive"; then
1426 # If there are subdirs, report their specific --help.
1427 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1428 test -d "$ac_dir" ||
1429 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1430 continue
1431 ac_builddir=.
1432
1433 case "$ac_dir" in
1434 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *)
1436 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1437 # A ".." for each directory in $ac_dir_suffix.
1438 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1439 case $ac_top_builddir_sub in
1440 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1441 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1442 esac ;;
1443 esac
1444 ac_abs_top_builddir=$ac_pwd
1445 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1446 # for backward compatibility:
1447 ac_top_builddir=$ac_top_build_prefix
1448
1449 case $srcdir in
1450 .) # We are building in place.
1451 ac_srcdir=.
1452 ac_top_srcdir=$ac_top_builddir_sub
1453 ac_abs_top_srcdir=$ac_pwd ;;
1454 [\\/]* | ?:[\\/]* ) # Absolute name.
1455 ac_srcdir=$srcdir$ac_dir_suffix;
1456 ac_top_srcdir=$srcdir
1457 ac_abs_top_srcdir=$srcdir ;;
1458 *) # Relative name.
1459 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1460 ac_top_srcdir=$ac_top_build_prefix$srcdir
1461 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1462 esac
1463 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1464
1465 cd "$ac_dir" || { ac_status=$?; continue; }
1466 # Check for guested configure.
1467 if test -f "$ac_srcdir/configure.gnu"; then
1468 echo &&
1469 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1470 elif test -f "$ac_srcdir/configure"; then
1471 echo &&
1472 $SHELL "$ac_srcdir/configure" --help=recursive
1473 else
1474 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1475 fi || ac_status=$?
1476 cd "$ac_pwd" || { ac_status=$?; break; }
1477 done
1478 fi
1479
1480 test -n "$ac_init_help" && exit $ac_status
1481 if $ac_init_version; then
1482 cat <<\_ACEOF
1483 rgb configure 1.0.5
1484 generated by GNU Autoconf 2.68
1485
1486 Copyright (C) 2010 Free Software Foundation, Inc.
1487 This configure script is free software; the Free Software Foundation
1488 gives unlimited permission to copy, distribute and modify it.
1489 _ACEOF
1490 exit
1491 fi
1492
1493 ## ------------------------ ##
1494 ## Autoconf initialization. ##
1495 ## ------------------------ ##
1496
1497 # ac_fn_c_try_compile LINENO
1498 # --------------------------
1499 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1500 ac_fn_c_try_compile ()
1501 {
1502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1503 rm -f conftest.$ac_objext
1504 if { { ac_try="$ac_compile"
1505 case "(($ac_try" in
1506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1507 *) ac_try_echo=$ac_try;;
1508 esac
1509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1510 $as_echo "$ac_try_echo"; } >&5
1511 (eval "$ac_compile") 2>conftest.err
1512 ac_status=$?
1513 if test -s conftest.err; then
1514 grep -v '^ *+' conftest.err >conftest.er1
1515 cat conftest.er1 >&5
1516 mv -f conftest.er1 conftest.err
1517 fi
1518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1519 test $ac_status = 0; } && {
1520 test -z "$ac_c_werror_flag" ||
1521 test ! -s conftest.err
1522 } && test -s conftest.$ac_objext; then :
1523 ac_retval=0
1524 else
1525 $as_echo "$as_me: failed program was:" >&5
1526 sed 's/^/| /' conftest.$ac_ext >&5
1527
1528 ac_retval=1
1529 fi
1530 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1531 as_fn_set_status $ac_retval
1532
1533 } # ac_fn_c_try_compile
1534
1535 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1536 # ---------------------------------------------
1537 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1538 # accordingly.
1539 ac_fn_c_check_decl ()
1540 {
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 as_decl_name=`echo $2|sed 's/ *(.*//'`
1543 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1545 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1546 if eval \${$3+:} false; then :
1547 $as_echo_n "(cached) " >&6
1548 else
1549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1550 /* end confdefs.h. */
1551 $4
1552 int
1553 main ()
1554 {
1555 #ifndef $as_decl_name
1556 #ifdef __cplusplus
1557 (void) $as_decl_use;
1558 #else
1559 (void) $as_decl_name;
1560 #endif
1561 #endif
1562
1563 ;
1564 return 0;
1565 }
1566 _ACEOF
1567 if ac_fn_c_try_compile "$LINENO"; then :
1568 eval "$3=yes"
1569 else
1570 eval "$3=no"
1571 fi
1572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1573 fi
1574 eval ac_res=\$$3
1575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1576 $as_echo "$ac_res" >&6; }
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578
1579 } # ac_fn_c_check_decl
1580
1581 # ac_fn_c_try_cpp LINENO
1582 # ----------------------
1583 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_cpp ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 if { { ac_try="$ac_cpp conftest.$ac_ext"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1600 fi
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } > conftest.i && {
1603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1604 test ! -s conftest.err
1605 }; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1610
1611 ac_retval=1
1612 fi
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1615
1616 } # ac_fn_c_try_cpp
1617
1618 # ac_fn_c_try_run LINENO
1619 # ----------------------
1620 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1621 # that executables *can* be run.
1622 ac_fn_c_try_run ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 if { { ac_try="$ac_link"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_link") 2>&5
1633 ac_status=$?
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1636 { { case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_try") 2>&5
1643 ac_status=$?
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; }; }; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: program exited with status $ac_status" >&5
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1651
1652 ac_retval=$ac_status
1653 fi
1654 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656 as_fn_set_status $ac_retval
1657
1658 } # ac_fn_c_try_run
1659
1660 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1661 # -------------------------------------------------------
1662 # Tests whether HEADER exists and can be compiled using the include files in
1663 # INCLUDES, setting the cache variable VAR accordingly.
1664 ac_fn_c_check_header_compile ()
1665 {
1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1668 $as_echo_n "checking for $2... " >&6; }
1669 if eval \${$3+:} false; then :
1670 $as_echo_n "(cached) " >&6
1671 else
1672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673 /* end confdefs.h. */
1674 $4
1675 #include <$2>
1676 _ACEOF
1677 if ac_fn_c_try_compile "$LINENO"; then :
1678 eval "$3=yes"
1679 else
1680 eval "$3=no"
1681 fi
1682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683 fi
1684 eval ac_res=\$$3
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686 $as_echo "$ac_res" >&6; }
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688
1689 } # ac_fn_c_check_header_compile
1690
1691 # ac_fn_c_try_link LINENO
1692 # -----------------------
1693 # Try to link conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_link ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext conftest$ac_exeext
1698 if { { ac_try="$ac_link"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest$ac_exeext && {
1717 test "$cross_compiling" = yes ||
1718 $as_test_x conftest$ac_exeext
1719 }; then :
1720 ac_retval=0
1721 else
1722 $as_echo "$as_me: failed program was:" >&5
1723 sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726 fi
1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729 # interfere with the next link command; also delete a directory that is
1730 # left behind by Apple's compiler. We do this before executing the actions.
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_link
1736
1737 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1738 # -------------------------------------------------------
1739 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1740 # the include files in INCLUDES and setting the cache variable VAR
1741 # accordingly.
1742 ac_fn_c_check_header_mongrel ()
1743 {
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if eval \${$3+:} false; then :
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747 $as_echo_n "checking for $2... " >&6; }
1748 if eval \${$3+:} false; then :
1749 $as_echo_n "(cached) " >&6
1750 fi
1751 eval ac_res=\$$3
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 else
1755 # Is the header compilable?
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1757 $as_echo_n "checking $2 usability... " >&6; }
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1760 $4
1761 #include <$2>
1762 _ACEOF
1763 if ac_fn_c_try_compile "$LINENO"; then :
1764 ac_header_compiler=yes
1765 else
1766 ac_header_compiler=no
1767 fi
1768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1770 $as_echo "$ac_header_compiler" >&6; }
1771
1772 # Is the header present?
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1774 $as_echo_n "checking $2 presence... " >&6; }
1775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h. */
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_cpp "$LINENO"; then :
1780 ac_header_preproc=yes
1781 else
1782 ac_header_preproc=no
1783 fi
1784 rm -f conftest.err conftest.i conftest.$ac_ext
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1786 $as_echo "$ac_header_preproc" >&6; }
1787
1788 # So? What about this header?
1789 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1790 yes:no: )
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1792 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1794 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795 ;;
1796 no:yes:* )
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1798 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1800 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1802 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1804 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1806 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1807 ( $as_echo "## ---------------------------------------------------------------------- ##
1808 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1809 ## ---------------------------------------------------------------------- ##"
1810 ) | sed "s/^/$as_me: WARNING: /" >&2
1811 ;;
1812 esac
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816 $as_echo_n "(cached) " >&6
1817 else
1818 eval "$3=\$ac_header_compiler"
1819 fi
1820 eval ac_res=\$$3
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822 $as_echo "$ac_res" >&6; }
1823 fi
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825
1826 } # ac_fn_c_check_header_mongrel
1827 cat >config.log <<_ACEOF
1828 This file contains any messages produced by compilers while
1829 running configure, to aid debugging if configure makes a mistake.
1830
1831 It was created by rgb $as_me 1.0.5, which was
1832 generated by GNU Autoconf 2.68. Invocation command line was
1833
1834 $ $0 $@
1835
1836 _ACEOF
1837 exec 5>>config.log
1838 {
1839 cat <<_ASUNAME
1840 ## --------- ##
1841 ## Platform. ##
1842 ## --------- ##
1843
1844 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1845 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1846 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1847 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1848 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1849
1850 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1851 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1852
1853 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1854 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1855 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1856 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1857 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1858 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1859 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1860
1861 _ASUNAME
1862
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866 IFS=$as_save_IFS
1867 test -z "$as_dir" && as_dir=.
1868 $as_echo "PATH: $as_dir"
1869 done
1870 IFS=$as_save_IFS
1871
1872 } >&5
1873
1874 cat >&5 <<_ACEOF
1875
1876
1877 ## ----------- ##
1878 ## Core tests. ##
1879 ## ----------- ##
1880
1881 _ACEOF
1882
1883
1884 # Keep a trace of the command line.
1885 # Strip out --no-create and --no-recursion so they do not pile up.
1886 # Strip out --silent because we don't want to record it for future runs.
1887 # Also quote any args containing shell meta-characters.
1888 # Make two passes to allow for proper duplicate-argument suppression.
1889 ac_configure_args=
1890 ac_configure_args0=
1891 ac_configure_args1=
1892 ac_must_keep_next=false
1893 for ac_pass in 1 2
1894 do
1895 for ac_arg
1896 do
1897 case $ac_arg in
1898 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1899 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1900 | -silent | --silent | --silen | --sile | --sil)
1901 continue ;;
1902 *\'*)
1903 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1904 esac
1905 case $ac_pass in
1906 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1907 2)
1908 as_fn_append ac_configure_args1 " '$ac_arg'"
1909 if test $ac_must_keep_next = true; then
1910 ac_must_keep_next=false # Got value, back to normal.
1911 else
1912 case $ac_arg in
1913 *=* | --config-cache | -C | -disable-* | --disable-* \
1914 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1915 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1916 | -with-* | --with-* | -without-* | --without-* | --x)
1917 case "$ac_configure_args0 " in
1918 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1919 esac
1920 ;;
1921 -* ) ac_must_keep_next=true ;;
1922 esac
1923 fi
1924 as_fn_append ac_configure_args " '$ac_arg'"
1925 ;;
1926 esac
1927 done
1928 done
1929 { ac_configure_args0=; unset ac_configure_args0;}
1930 { ac_configure_args1=; unset ac_configure_args1;}
1931
1932 # When interrupted or exit'd, cleanup temporary files, and complete
1933 # config.log. We remove comments because anyway the quotes in there
1934 # would cause problems or look ugly.
1935 # WARNING: Use '\'' to represent an apostrophe within the trap.
1936 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1937 trap 'exit_status=$?
1938 # Save into config.log some information that might help in debugging.
1939 {
1940 echo
1941
1942 $as_echo "## ---------------- ##
1943 ## Cache variables. ##
1944 ## ---------------- ##"
1945 echo
1946 # The following way of writing the cache mishandles newlines in values,
1947 (
1948 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1949 eval ac_val=\$$ac_var
1950 case $ac_val in #(
1951 *${as_nl}*)
1952 case $ac_var in #(
1953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1954 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1955 esac
1956 case $ac_var in #(
1957 _ | IFS | as_nl) ;; #(
1958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1959 *) { eval $ac_var=; unset $ac_var;} ;;
1960 esac ;;
1961 esac
1962 done
1963 (set) 2>&1 |
1964 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1965 *${as_nl}ac_space=\ *)
1966 sed -n \
1967 "s/'\''/'\''\\\\'\'''\''/g;
1968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1969 ;; #(
1970 *)
1971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1972 ;;
1973 esac |
1974 sort
1975 )
1976 echo
1977
1978 $as_echo "## ----------------- ##
1979 ## Output variables. ##
1980 ## ----------------- ##"
1981 echo
1982 for ac_var in $ac_subst_vars
1983 do
1984 eval ac_val=\$$ac_var
1985 case $ac_val in
1986 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1987 esac
1988 $as_echo "$ac_var='\''$ac_val'\''"
1989 done | sort
1990 echo
1991
1992 if test -n "$ac_subst_files"; then
1993 $as_echo "## ------------------- ##
1994 ## File substitutions. ##
1995 ## ------------------- ##"
1996 echo
1997 for ac_var in $ac_subst_files
1998 do
1999 eval ac_val=\$$ac_var
2000 case $ac_val in
2001 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2002 esac
2003 $as_echo "$ac_var='\''$ac_val'\''"
2004 done | sort
2005 echo
2006 fi
2007
2008 if test -s confdefs.h; then
2009 $as_echo "## ----------- ##
2010 ## confdefs.h. ##
2011 ## ----------- ##"
2012 echo
2013 cat confdefs.h
2014 echo
2015 fi
2016 test "$ac_signal" != 0 &&
2017 $as_echo "$as_me: caught signal $ac_signal"
2018 $as_echo "$as_me: exit $exit_status"
2019 } >&5
2020 rm -f core *.core core.conftest.* &&
2021 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2022 exit $exit_status
2023 ' 0
2024 for ac_signal in 1 2 13 15; do
2025 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2026 done
2027 ac_signal=0
2028
2029 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2030 rm -f -r conftest* confdefs.h
2031
2032 $as_echo "/* confdefs.h */" > confdefs.h
2033
2034 # Predefined preprocessor variables.
2035
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_NAME "$PACKAGE_NAME"
2038 _ACEOF
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2042 _ACEOF
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_STRING "$PACKAGE_STRING"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2054 _ACEOF
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_URL "$PACKAGE_URL"
2058 _ACEOF
2059
2060
2061 # Let the site file select an alternate cache file if it wants to.
2062 # Prefer an explicitly selected file to automatically selected ones.
2063 ac_site_file1=NONE
2064 ac_site_file2=NONE
2065 if test -n "$CONFIG_SITE"; then
2066 # We do not want a PATH search for config.site.
2067 case $CONFIG_SITE in #((
2068 -*) ac_site_file1=./$CONFIG_SITE;;
2069 */*) ac_site_file1=$CONFIG_SITE;;
2070 *) ac_site_file1=./$CONFIG_SITE;;
2071 esac
2072 elif test "x$prefix" != xNONE; then
2073 ac_site_file1=$prefix/share/config.site
2074 ac_site_file2=$prefix/etc/config.site
2075 else
2076 ac_site_file1=$ac_default_prefix/share/config.site
2077 ac_site_file2=$ac_default_prefix/etc/config.site
2078 fi
2079 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2080 do
2081 test "x$ac_site_file" = xNONE && continue
2082 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2084 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2085 sed 's/^/| /' "$ac_site_file" >&5
2086 . "$ac_site_file" \
2087 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089 as_fn_error $? "failed to load site script $ac_site_file
2090 See \`config.log' for more details" "$LINENO" 5; }
2091 fi
2092 done
2093
2094 if test -r "$cache_file"; then
2095 # Some versions of bash will fail to source /dev/null (special files
2096 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2097 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2099 $as_echo "$as_me: loading cache $cache_file" >&6;}
2100 case $cache_file in
2101 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2102 *) . "./$cache_file";;
2103 esac
2104 fi
2105 else
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2107 $as_echo "$as_me: creating cache $cache_file" >&6;}
2108 >$cache_file
2109 fi
2110
2111 # Check that the precious variables saved in the cache have kept the same
2112 # value.
2113 ac_cache_corrupted=false
2114 for ac_var in $ac_precious_vars; do
2115 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2116 eval ac_new_set=\$ac_env_${ac_var}_set
2117 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2118 eval ac_new_val=\$ac_env_${ac_var}_value
2119 case $ac_old_set,$ac_new_set in
2120 set,)
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2122 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2123 ac_cache_corrupted=: ;;
2124 ,set)
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2126 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2127 ac_cache_corrupted=: ;;
2128 ,);;
2129 *)
2130 if test "x$ac_old_val" != "x$ac_new_val"; then
2131 # differences in whitespace do not lead to failure.
2132 ac_old_val_w=`echo x $ac_old_val`
2133 ac_new_val_w=`echo x $ac_new_val`
2134 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2136 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2137 ac_cache_corrupted=:
2138 else
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2140 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2141 eval $ac_var=\$ac_old_val
2142 fi
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2144 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2146 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2147 fi;;
2148 esac
2149 # Pass precious variables to config.status.
2150 if test "$ac_new_set" = set; then
2151 case $ac_new_val in
2152 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2153 *) ac_arg=$ac_var=$ac_new_val ;;
2154 esac
2155 case " $ac_configure_args " in
2156 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2157 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2158 esac
2159 fi
2160 done
2161 if $ac_cache_corrupted; then
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2165 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2166 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2167 fi
2168 ## -------------------- ##
2169 ## Main body of script. ##
2170 ## -------------------- ##
2171
2172 ac_ext=c
2173 ac_cpp='$CPP $CPPFLAGS'
2174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2177
2178
2179
2180 ac_config_headers="$ac_config_headers config.h"
2181
2182
2183 # Initialize Automake
2184 am__api_version='1.11'
2185
2186 ac_aux_dir=
2187 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2188 if test -f "$ac_dir/install-sh"; then
2189 ac_aux_dir=$ac_dir
2190 ac_install_sh="$ac_aux_dir/install-sh -c"
2191 break
2192 elif test -f "$ac_dir/install.sh"; then
2193 ac_aux_dir=$ac_dir
2194 ac_install_sh="$ac_aux_dir/install.sh -c"
2195 break
2196 elif test -f "$ac_dir/shtool"; then
2197 ac_aux_dir=$ac_dir
2198 ac_install_sh="$ac_aux_dir/shtool install -c"
2199 break
2200 fi
2201 done
2202 if test -z "$ac_aux_dir"; then
2203 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2204 fi
2205
2206 # These three variables are undocumented and unsupported,
2207 # and are intended to be withdrawn in a future Autoconf release.
2208 # They can cause serious problems if a builder's source tree is in a directory
2209 # whose full name contains unusual characters.
2210 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2211 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2212 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2213
2214
2215 # Find a good install program. We prefer a C program (faster),
2216 # so one script is as good as another. But avoid the broken or
2217 # incompatible versions:
2218 # SysV /etc/install, /usr/sbin/install
2219 # SunOS /usr/etc/install
2220 # IRIX /sbin/install
2221 # AIX /bin/install
2222 # AmigaOS /C/install, which installs bootblocks on floppy discs
2223 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2224 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2225 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2226 # OS/2's system install, which has a completely different semantic
2227 # ./install, which can be erroneously created by make from ./install.sh.
2228 # Reject install programs that cannot install multiple files.
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2230 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2231 if test -z "$INSTALL"; then
2232 if ${ac_cv_path_install+:} false; then :
2233 $as_echo_n "(cached) " >&6
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 # Account for people who put trailing slashes in PATH elements.
2241 case $as_dir/ in #((
2242 ./ | .// | /[cC]/* | \
2243 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2244 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2245 /usr/ucb/* ) ;;
2246 *)
2247 # OSF1 and SCO ODT 3.0 have their own names for install.
2248 # Don't use installbsd from OSF since it installs stuff as root
2249 # by default.
2250 for ac_prog in ginstall scoinst install; do
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2253 if test $ac_prog = install &&
2254 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2255 # AIX install. It has an incompatible calling convention.
2256 :
2257 elif test $ac_prog = install &&
2258 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2259 # program-specific install script used by HP pwplus--don't use.
2260 :
2261 else
2262 rm -rf conftest.one conftest.two conftest.dir
2263 echo one > conftest.one
2264 echo two > conftest.two
2265 mkdir conftest.dir
2266 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2267 test -s conftest.one && test -s conftest.two &&
2268 test -s conftest.dir/conftest.one &&
2269 test -s conftest.dir/conftest.two
2270 then
2271 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2272 break 3
2273 fi
2274 fi
2275 fi
2276 done
2277 done
2278 ;;
2279 esac
2280
2281 done
2282 IFS=$as_save_IFS
2283
2284 rm -rf conftest.one conftest.two conftest.dir
2285
2286 fi
2287 if test "${ac_cv_path_install+set}" = set; then
2288 INSTALL=$ac_cv_path_install
2289 else
2290 # As a last resort, use the slow shell script. Don't cache a
2291 # value for INSTALL within a source directory, because that will
2292 # break other packages using the cache if that directory is
2293 # removed, or if the value is a relative name.
2294 INSTALL=$ac_install_sh
2295 fi
2296 fi
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2298 $as_echo "$INSTALL" >&6; }
2299
2300 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2301 # It thinks the first close brace ends the variable substitution.
2302 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2303
2304 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2305
2306 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2307
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2309 $as_echo_n "checking whether build environment is sane... " >&6; }
2310 # Just in case
2311 sleep 1
2312 echo timestamp > conftest.file
2313 # Reject unsafe characters in $srcdir or the absolute working directory
2314 # name. Accept space and tab only in the latter.
2315 am_lf='
2316 '
2317 case `pwd` in
2318 *[\\\"\#\$\&\'\`$am_lf]*)
2319 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2320 esac
2321 case $srcdir in
2322 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2323 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2324 esac
2325
2326 # Do `set' in a subshell so we don't clobber the current shell's
2327 # arguments. Must try -L first in case configure is actually a
2328 # symlink; some systems play weird games with the mod time of symlinks
2329 # (eg FreeBSD returns the mod time of the symlink's containing
2330 # directory).
2331 if (
2332 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2333 if test "$*" = "X"; then
2334 # -L didn't work.
2335 set X `ls -t "$srcdir/configure" conftest.file`
2336 fi
2337 rm -f conftest.file
2338 if test "$*" != "X $srcdir/configure conftest.file" \
2339 && test "$*" != "X conftest.file $srcdir/configure"; then
2340
2341 # If neither matched, then we have a broken ls. This can happen
2342 # if, for instance, CONFIG_SHELL is bash and it inherits a
2343 # broken ls alias from the environment. This has actually
2344 # happened. Such a system could not be considered "sane".
2345 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2346 alias in your environment" "$LINENO" 5
2347 fi
2348
2349 test "$2" = conftest.file
2350 )
2351 then
2352 # Ok.
2353 :
2354 else
2355 as_fn_error $? "newly created file is older than distributed files!
2356 Check your system clock" "$LINENO" 5
2357 fi
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2359 $as_echo "yes" >&6; }
2360 test "$program_prefix" != NONE &&
2361 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2362 # Use a double $ so make ignores it.
2363 test "$program_suffix" != NONE &&
2364 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2365 # Double any \ or $.
2366 # By default was `s,x,x', remove it if useless.
2367 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2368 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2369
2370 # expand $ac_aux_dir to an absolute path
2371 am_aux_dir=`cd $ac_aux_dir && pwd`
2372
2373 if test x"${MISSING+set}" != xset; then
2374 case $am_aux_dir in
2375 *\ * | *\ *)
2376 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2377 *)
2378 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2379 esac
2380 fi
2381 # Use eval to expand $SHELL
2382 if eval "$MISSING --run true"; then
2383 am_missing_run="$MISSING --run "
2384 else
2385 am_missing_run=
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2387 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2388 fi
2389
2390 if test x"${install_sh}" != xset; then
2391 case $am_aux_dir in
2392 *\ * | *\ *)
2393 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2394 *)
2395 install_sh="\${SHELL} $am_aux_dir/install-sh"
2396 esac
2397 fi
2398
2399 # Installed binaries are usually stripped using `strip' when the user
2400 # run `make install-strip'. However `strip' might not be the right
2401 # tool to use in cross-compilation environments, therefore Automake
2402 # will honor the `STRIP' environment variable to overrule this program.
2403 if test "$cross_compiling" != no; then
2404 if test -n "$ac_tool_prefix"; then
2405 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2406 set dummy ${ac_tool_prefix}strip; ac_word=$2
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2408 $as_echo_n "checking for $ac_word... " >&6; }
2409 if ${ac_cv_prog_STRIP+:} false; then :
2410 $as_echo_n "(cached) " >&6
2411 else
2412 if test -n "$STRIP"; then
2413 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2414 else
2415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2416 for as_dir in $PATH
2417 do
2418 IFS=$as_save_IFS
2419 test -z "$as_dir" && as_dir=.
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2422 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 break 2
2425 fi
2426 done
2427 done
2428 IFS=$as_save_IFS
2429
2430 fi
2431 fi
2432 STRIP=$ac_cv_prog_STRIP
2433 if test -n "$STRIP"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2435 $as_echo "$STRIP" >&6; }
2436 else
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2438 $as_echo "no" >&6; }
2439 fi
2440
2441
2442 fi
2443 if test -z "$ac_cv_prog_STRIP"; then
2444 ac_ct_STRIP=$STRIP
2445 # Extract the first word of "strip", so it can be a program name with args.
2446 set dummy strip; ac_word=$2
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2448 $as_echo_n "checking for $ac_word... " >&6; }
2449 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 if test -n "$ac_ct_STRIP"; then
2453 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_ac_ct_STRIP="strip"
2463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2465 fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2473 if test -n "$ac_ct_STRIP"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2475 $as_echo "$ac_ct_STRIP" >&6; }
2476 else
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2478 $as_echo "no" >&6; }
2479 fi
2480
2481 if test "x$ac_ct_STRIP" = x; then
2482 STRIP=":"
2483 else
2484 case $cross_compiling:$ac_tool_warned in
2485 yes:)
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2488 ac_tool_warned=yes ;;
2489 esac
2490 STRIP=$ac_ct_STRIP
2491 fi
2492 else
2493 STRIP="$ac_cv_prog_STRIP"
2494 fi
2495
2496 fi
2497 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2498
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2500 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2501 if test -z "$MKDIR_P"; then
2502 if ${ac_cv_path_mkdir+:} false; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2506 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2507 do
2508 IFS=$as_save_IFS
2509 test -z "$as_dir" && as_dir=.
2510 for ac_prog in mkdir gmkdir; do
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2513 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2514 'mkdir (GNU coreutils) '* | \
2515 'mkdir (coreutils) '* | \
2516 'mkdir (fileutils) '4.1*)
2517 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2518 break 3;;
2519 esac
2520 done
2521 done
2522 done
2523 IFS=$as_save_IFS
2524
2525 fi
2526
2527 test -d ./--version && rmdir ./--version
2528 if test "${ac_cv_path_mkdir+set}" = set; then
2529 MKDIR_P="$ac_cv_path_mkdir -p"
2530 else
2531 # As a last resort, use the slow shell script. Don't cache a
2532 # value for MKDIR_P within a source directory, because that will
2533 # break other packages using the cache if that directory is
2534 # removed, or if the value is a relative name.
2535 MKDIR_P="$ac_install_sh -d"
2536 fi
2537 fi
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2539 $as_echo "$MKDIR_P" >&6; }
2540
2541 mkdir_p="$MKDIR_P"
2542 case $mkdir_p in
2543 [\\/$]* | ?:[\\/]*) ;;
2544 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2545 esac
2546
2547 for ac_prog in gawk mawk nawk awk
2548 do
2549 # Extract the first word of "$ac_prog", so it can be a program name with args.
2550 set dummy $ac_prog; ac_word=$2
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2552 $as_echo_n "checking for $ac_word... " >&6; }
2553 if ${ac_cv_prog_AWK+:} false; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 if test -n "$AWK"; then
2557 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2558 else
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 for as_dir in $PATH
2561 do
2562 IFS=$as_save_IFS
2563 test -z "$as_dir" && as_dir=.
2564 for ac_exec_ext in '' $ac_executable_extensions; do
2565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2566 ac_cv_prog_AWK="$ac_prog"
2567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2568 break 2
2569 fi
2570 done
2571 done
2572 IFS=$as_save_IFS
2573
2574 fi
2575 fi
2576 AWK=$ac_cv_prog_AWK
2577 if test -n "$AWK"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2579 $as_echo "$AWK" >&6; }
2580 else
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2582 $as_echo "no" >&6; }
2583 fi
2584
2585
2586 test -n "$AWK" && break
2587 done
2588
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2590 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2591 set x ${MAKE-make}
2592 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2593 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 cat >conftest.make <<\_ACEOF
2597 SHELL = /bin/sh
2598 all:
2599 @echo '@@@%%%=$(MAKE)=@@@%%%'
2600 _ACEOF
2601 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2602 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2603 *@@@%%%=?*=@@@%%%*)
2604 eval ac_cv_prog_make_${ac_make}_set=yes;;
2605 *)
2606 eval ac_cv_prog_make_${ac_make}_set=no;;
2607 esac
2608 rm -f conftest.make
2609 fi
2610 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2612 $as_echo "yes" >&6; }
2613 SET_MAKE=
2614 else
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2616 $as_echo "no" >&6; }
2617 SET_MAKE="MAKE=${MAKE-make}"
2618 fi
2619
2620 rm -rf .tst 2>/dev/null
2621 mkdir .tst 2>/dev/null
2622 if test -d .tst; then
2623 am__leading_dot=.
2624 else
2625 am__leading_dot=_
2626 fi
2627 rmdir .tst 2>/dev/null
2628
2629 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2630 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2631 # is not polluted with repeated "-I."
2632 am__isrc=' -I$(srcdir)'
2633 # test to see if srcdir already configured
2634 if test -f $srcdir/config.status; then
2635 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2636 fi
2637 fi
2638
2639 # test whether we have cygpath
2640 if test -z "$CYGPATH_W"; then
2641 if (cygpath --version) >/dev/null 2>/dev/null; then
2642 CYGPATH_W='cygpath -w'
2643 else
2644 CYGPATH_W=echo
2645 fi
2646 fi
2647
2648
2649 # Define the identity of the package.
2650 PACKAGE='rgb'
2651 VERSION='1.0.5'
2652
2653
2654 cat >>confdefs.h <<_ACEOF
2655 #define PACKAGE "$PACKAGE"
2656 _ACEOF
2657
2658
2659 cat >>confdefs.h <<_ACEOF
2660 #define VERSION "$VERSION"
2661 _ACEOF
2662
2663 # Some tools Automake needs.
2664
2665 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2666
2667
2668 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2669
2670
2671 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2672
2673
2674 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2675
2676
2677 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2678
2679 # We need awk for the "check" target. The system "awk" is bad on
2680 # some platforms.
2681 # Always define AMTAR for backward compatibility.
2682
2683 AMTAR=${AMTAR-"${am_missing_run}tar"}
2684
2685 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2686
2687
2688
2689
2690
2691
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2693 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2694 # Check whether --enable-maintainer-mode was given.
2695 if test "${enable_maintainer_mode+set}" = set; then :
2696 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2697 else
2698 USE_MAINTAINER_MODE=no
2699 fi
2700
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2702 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2703 if test $USE_MAINTAINER_MODE = yes; then
2704 MAINTAINER_MODE_TRUE=
2705 MAINTAINER_MODE_FALSE='#'
2706 else
2707 MAINTAINER_MODE_TRUE='#'
2708 MAINTAINER_MODE_FALSE=
2709 fi
2710
2711 MAINT=$MAINTAINER_MODE_TRUE
2712
2713
2714
2715 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727 DEPDIR="${am__leading_dot}deps"
2728
2729 ac_config_commands="$ac_config_commands depfiles"
2730
2731
2732 am_make=${MAKE-make}
2733 cat > confinc << 'END'
2734 am__doit:
2735 @echo this is the am__doit target
2736 .PHONY: am__doit
2737 END
2738 # If we don't find an include directive, just comment out the code.
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2740 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2741 am__include="#"
2742 am__quote=
2743 _am_result=none
2744 # First try GNU make style include.
2745 echo "include confinc" > confmf
2746 # Ignore all kinds of additional output from `make'.
2747 case `$am_make -s -f confmf 2> /dev/null` in #(
2748 *the\ am__doit\ target*)
2749 am__include=include
2750 am__quote=
2751 _am_result=GNU
2752 ;;
2753 esac
2754 # Now try BSD make style include.
2755 if test "$am__include" = "#"; then
2756 echo '.include "confinc"' > confmf
2757 case `$am_make -s -f confmf 2> /dev/null` in #(
2758 *the\ am__doit\ target*)
2759 am__include=.include
2760 am__quote="\""
2761 _am_result=BSD
2762 ;;
2763 esac
2764 fi
2765
2766
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2768 $as_echo "$_am_result" >&6; }
2769 rm -f confinc confmf
2770
2771 # Check whether --enable-dependency-tracking was given.
2772 if test "${enable_dependency_tracking+set}" = set; then :
2773 enableval=$enable_dependency_tracking;
2774 fi
2775
2776 if test "x$enable_dependency_tracking" != xno; then
2777 am_depcomp="$ac_aux_dir/depcomp"
2778 AMDEPBACKSLASH='\'
2779 am__nodep='_no'
2780 fi
2781 if test "x$enable_dependency_tracking" != xno; then
2782 AMDEP_TRUE=
2783 AMDEP_FALSE='#'
2784 else
2785 AMDEP_TRUE='#'
2786 AMDEP_FALSE=
2787 fi
2788
2789
2790 ac_ext=c
2791 ac_cpp='$CPP $CPPFLAGS'
2792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795 if test -n "$ac_tool_prefix"; then
2796 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2797 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 $as_echo_n "checking for $ac_word... " >&6; }
2800 if ${ac_cv_prog_CC+:} false; then :
2801 $as_echo_n "(cached) " >&6
2802 else
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2805 else
2806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 for as_dir in $PATH
2808 do
2809 IFS=$as_save_IFS
2810 test -z "$as_dir" && as_dir=.
2811 for ac_exec_ext in '' $ac_executable_extensions; do
2812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2813 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815 break 2
2816 fi
2817 done
2818 done
2819 IFS=$as_save_IFS
2820
2821 fi
2822 fi
2823 CC=$ac_cv_prog_CC
2824 if test -n "$CC"; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2826 $as_echo "$CC" >&6; }
2827 else
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 $as_echo "no" >&6; }
2830 fi
2831
2832
2833 fi
2834 if test -z "$ac_cv_prog_CC"; then
2835 ac_ct_CC=$CC
2836 # Extract the first word of "gcc", so it can be a program name with args.
2837 set dummy gcc; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 if test -n "$ac_ct_CC"; then
2844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_ac_ct_CC="gcc"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864 if test -n "$ac_ct_CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2866 $as_echo "$ac_ct_CC" >&6; }
2867 else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872 if test "x$ac_ct_CC" = x; then
2873 CC=""
2874 else
2875 case $cross_compiling:$ac_tool_warned in
2876 yes:)
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2879 ac_tool_warned=yes ;;
2880 esac
2881 CC=$ac_ct_CC
2882 fi
2883 else
2884 CC="$ac_cv_prog_CC"
2885 fi
2886
2887 if test -z "$CC"; then
2888 if test -n "$ac_tool_prefix"; then
2889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2890 set dummy ${ac_tool_prefix}cc; ac_word=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_CC+:} false; then :
2894 $as_echo_n "(cached) " >&6
2895 else
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC="$CC" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 test -z "$as_dir" && as_dir=.
2904 for ac_exec_ext in '' $ac_executable_extensions; do
2905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906 ac_cv_prog_CC="${ac_tool_prefix}cc"
2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908 break 2
2909 fi
2910 done
2911 done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 CC=$ac_cv_prog_CC
2917 if test -n "$CC"; then
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919 $as_echo "$CC" >&6; }
2920 else
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 $as_echo "no" >&6; }
2923 fi
2924
2925
2926 fi
2927 fi
2928 if test -z "$CC"; then
2929 # Extract the first word of "cc", so it can be a program name with args.
2930 set dummy cc; 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_CC+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 ac_prog_rejected=no
2940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941 for as_dir in $PATH
2942 do
2943 IFS=$as_save_IFS
2944 test -z "$as_dir" && as_dir=.
2945 for ac_exec_ext in '' $ac_executable_extensions; do
2946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2948 ac_prog_rejected=yes
2949 continue
2950 fi
2951 ac_cv_prog_CC="cc"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2954 fi
2955 done
2956 done
2957 IFS=$as_save_IFS
2958
2959 if test $ac_prog_rejected = yes; then
2960 # We found a bogon in the path, so make sure we never use it.
2961 set dummy $ac_cv_prog_CC
2962 shift
2963 if test $# != 0; then
2964 # We chose a different compiler from the bogus one.
2965 # However, it has the same basename, so the bogon will be chosen
2966 # first if we set CC to just the basename; use the full file name.
2967 shift
2968 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2969 fi
2970 fi
2971 fi
2972 fi
2973 CC=$ac_cv_prog_CC
2974 if test -n "$CC"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2976 $as_echo "$CC" >&6; }
2977 else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 $as_echo "no" >&6; }
2980 fi
2981
2982
2983 fi
2984 if test -z "$CC"; then
2985 if test -n "$ac_tool_prefix"; then
2986 for ac_prog in cl.exe
2987 do
2988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2989 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991 $as_echo_n "checking for $ac_word... " >&6; }
2992 if ${ac_cv_prog_CC+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test -n "$CC"; then
2996 ac_cv_prog_CC="$CC" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001 IFS=$as_save_IFS
3002 test -z "$as_dir" && as_dir=.
3003 for ac_exec_ext in '' $ac_executable_extensions; do
3004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 break 2
3008 fi
3009 done
3010 done
3011 IFS=$as_save_IFS
3012
3013 fi
3014 fi
3015 CC=$ac_cv_prog_CC
3016 if test -n "$CC"; then
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018 $as_echo "$CC" >&6; }
3019 else
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021 $as_echo "no" >&6; }
3022 fi
3023
3024
3025 test -n "$CC" && break
3026 done
3027 fi
3028 if test -z "$CC"; then
3029 ac_ct_CC=$CC
3030 for ac_prog in cl.exe
3031 do
3032 # Extract the first word of "$ac_prog", so it can be a program name with args.
3033 set dummy $ac_prog; ac_word=$2
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035 $as_echo_n "checking for $ac_word... " >&6; }
3036 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3037 $as_echo_n "(cached) " >&6
3038 else
3039 if test -n "$ac_ct_CC"; then
3040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3041 else
3042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043 for as_dir in $PATH
3044 do
3045 IFS=$as_save_IFS
3046 test -z "$as_dir" && as_dir=.
3047 for ac_exec_ext in '' $ac_executable_extensions; do
3048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049 ac_cv_prog_ac_ct_CC="$ac_prog"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3052 fi
3053 done
3054 done
3055 IFS=$as_save_IFS
3056
3057 fi
3058 fi
3059 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3060 if test -n "$ac_ct_CC"; then
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3062 $as_echo "$ac_ct_CC" >&6; }
3063 else
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3066 fi
3067
3068
3069 test -n "$ac_ct_CC" && break
3070 done
3071
3072 if test "x$ac_ct_CC" = x; then
3073 CC=""
3074 else
3075 case $cross_compiling:$ac_tool_warned in
3076 yes:)
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3079 ac_tool_warned=yes ;;
3080 esac
3081 CC=$ac_ct_CC
3082 fi
3083 fi
3084
3085 fi
3086
3087
3088 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090 as_fn_error $? "no acceptable C compiler found in \$PATH
3091 See \`config.log' for more details" "$LINENO" 5; }
3092
3093 # Provide some information about the compiler.
3094 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3095 set X $ac_compile
3096 ac_compiler=$2
3097 for ac_option in --version -v -V -qversion; do
3098 { { ac_try="$ac_compiler $ac_option >&5"
3099 case "(($ac_try" in
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3102 esac
3103 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104 $as_echo "$ac_try_echo"; } >&5
3105 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3106 ac_status=$?
3107 if test -s conftest.err; then
3108 sed '10a\
3109 ... rest of stderr output deleted ...
3110 10q' conftest.err >conftest.er1
3111 cat conftest.er1 >&5
3112 fi
3113 rm -f conftest.er1 conftest.err
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }
3116 done
3117
3118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119 /* end confdefs.h. */
3120
3121 int
3122 main ()
3123 {
3124
3125 ;
3126 return 0;
3127 }
3128 _ACEOF
3129 ac_clean_files_save=$ac_clean_files
3130 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3131 # Try to create an executable without -o first, disregard a.out.
3132 # It will help us diagnose broken compilers, and finding out an intuition
3133 # of exeext.
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3135 $as_echo_n "checking whether the C compiler works... " >&6; }
3136 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3137
3138 # The possible output files:
3139 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3140
3141 ac_rmfiles=
3142 for ac_file in $ac_files
3143 do
3144 case $ac_file in
3145 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3146 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3147 esac
3148 done
3149 rm -f $ac_rmfiles
3150
3151 if { { ac_try="$ac_link_default"
3152 case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_link_default") 2>&5
3159 ac_status=$?
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }; then :
3162 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3163 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3164 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3165 # so that the user can short-circuit this test for compilers unknown to
3166 # Autoconf.
3167 for ac_file in $ac_files ''
3168 do
3169 test -f "$ac_file" || continue
3170 case $ac_file in
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3172 ;;
3173 [ab].out )
3174 # We found the default executable, but exeext='' is most
3175 # certainly right.
3176 break;;
3177 *.* )
3178 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3179 then :; else
3180 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3181 fi
3182 # We set ac_cv_exeext here because the later test for it is not
3183 # safe: cross compilers may not add the suffix if given an `-o'
3184 # argument, so we may need to know it at that point already.
3185 # Even if this section looks crufty: it has the advantage of
3186 # actually working.
3187 break;;
3188 * )
3189 break;;
3190 esac
3191 done
3192 test "$ac_cv_exeext" = no && ac_cv_exeext=
3193
3194 else
3195 ac_file=''
3196 fi
3197 if test -z "$ac_file"; then :
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199 $as_echo "no" >&6; }
3200 $as_echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205 as_fn_error 77 "C compiler cannot create executables
3206 See \`config.log' for more details" "$LINENO" 5; }
3207 else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209 $as_echo "yes" >&6; }
3210 fi
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3212 $as_echo_n "checking for C compiler default output file name... " >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3214 $as_echo "$ac_file" >&6; }
3215 ac_exeext=$ac_cv_exeext
3216
3217 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3218 ac_clean_files=$ac_clean_files_save
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3220 $as_echo_n "checking for suffix of executables... " >&6; }
3221 if { { ac_try="$ac_link"
3222 case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225 esac
3226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227 $as_echo "$ac_try_echo"; } >&5
3228 (eval "$ac_link") 2>&5
3229 ac_status=$?
3230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231 test $ac_status = 0; }; then :
3232 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3233 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3234 # work properly (i.e., refer to `conftest.exe'), while it won't with
3235 # `rm'.
3236 for ac_file in conftest.exe conftest conftest.*; do
3237 test -f "$ac_file" || continue
3238 case $ac_file in
3239 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3240 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3241 break;;
3242 * ) break;;
3243 esac
3244 done
3245 else
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3249 See \`config.log' for more details" "$LINENO" 5; }
3250 fi
3251 rm -f conftest conftest$ac_cv_exeext
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3253 $as_echo "$ac_cv_exeext" >&6; }
3254
3255 rm -f conftest.$ac_ext
3256 EXEEXT=$ac_cv_exeext
3257 ac_exeext=$EXEEXT
3258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259 /* end confdefs.h. */
3260 #include <stdio.h>
3261 int
3262 main ()
3263 {
3264 FILE *f = fopen ("conftest.out", "w");
3265 return ferror (f) || fclose (f) != 0;
3266
3267 ;
3268 return 0;
3269 }
3270 _ACEOF
3271 ac_clean_files="$ac_clean_files conftest.out"
3272 # Check that the compiler produces executables we can run. If not, either
3273 # the compiler is broken, or we cross compile.
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3275 $as_echo_n "checking whether we are cross compiling... " >&6; }
3276 if test "$cross_compiling" != yes; then
3277 { { ac_try="$ac_link"
3278 case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_link") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }
3288 if { ac_try='./conftest$ac_cv_exeext'
3289 { { case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292 esac
3293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294 $as_echo "$ac_try_echo"; } >&5
3295 (eval "$ac_try") 2>&5
3296 ac_status=$?
3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298 test $ac_status = 0; }; }; then
3299 cross_compiling=no
3300 else
3301 if test "$cross_compiling" = maybe; then
3302 cross_compiling=yes
3303 else
3304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 as_fn_error $? "cannot run C compiled programs.
3307 If you meant to cross compile, use \`--host'.
3308 See \`config.log' for more details" "$LINENO" 5; }
3309 fi
3310 fi
3311 fi
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3313 $as_echo "$cross_compiling" >&6; }
3314
3315 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3316 ac_clean_files=$ac_clean_files_save
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3318 $as_echo_n "checking for suffix of object files... " >&6; }
3319 if ${ac_cv_objext+:} false; then :
3320 $as_echo_n "(cached) " >&6
3321 else
3322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323 /* end confdefs.h. */
3324
3325 int
3326 main ()
3327 {
3328
3329 ;
3330 return 0;
3331 }
3332 _ACEOF
3333 rm -f conftest.o conftest.obj
3334 if { { ac_try="$ac_compile"
3335 case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338 esac
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_compile") 2>&5
3342 ac_status=$?
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; then :
3345 for ac_file in conftest.o conftest.obj conftest.*; do
3346 test -f "$ac_file" || continue;
3347 case $ac_file in
3348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3349 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3350 break;;
3351 esac
3352 done
3353 else
3354 $as_echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3356
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error $? "cannot compute suffix of object files: cannot compile
3360 See \`config.log' for more details" "$LINENO" 5; }
3361 fi
3362 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3363 fi
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3365 $as_echo "$ac_cv_objext" >&6; }
3366 OBJEXT=$ac_cv_objext
3367 ac_objext=$OBJEXT
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3369 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3370 if ${ac_cv_c_compiler_gnu+:} false; then :
3371 $as_echo_n "(cached) " >&6
3372 else
3373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375
3376 int
3377 main ()
3378 {
3379 #ifndef __GNUC__
3380 choke me
3381 #endif
3382
3383 ;
3384 return 0;
3385 }
3386 _ACEOF
3387 if ac_fn_c_try_compile "$LINENO"; then :
3388 ac_compiler_gnu=yes
3389 else
3390 ac_compiler_gnu=no
3391 fi
3392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3394
3395 fi
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3397 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3398 if test $ac_compiler_gnu = yes; then
3399 GCC=yes
3400 else
3401 GCC=
3402 fi
3403 ac_test_CFLAGS=${CFLAGS+set}
3404 ac_save_CFLAGS=$CFLAGS
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3406 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3407 if ${ac_cv_prog_cc_g+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 ac_save_c_werror_flag=$ac_c_werror_flag
3411 ac_c_werror_flag=yes
3412 ac_cv_prog_cc_g=no
3413 CFLAGS="-g"
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3416
3417 int
3418 main ()
3419 {
3420
3421 ;
3422 return 0;
3423 }
3424 _ACEOF
3425 if ac_fn_c_try_compile "$LINENO"; then :
3426 ac_cv_prog_cc_g=yes
3427 else
3428 CFLAGS=""
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3431
3432 int
3433 main ()
3434 {
3435
3436 ;
3437 return 0;
3438 }
3439 _ACEOF
3440 if ac_fn_c_try_compile "$LINENO"; then :
3441
3442 else
3443 ac_c_werror_flag=$ac_save_c_werror_flag
3444 CFLAGS="-g"
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3447
3448 int
3449 main ()
3450 {
3451
3452 ;
3453 return 0;
3454 }
3455 _ACEOF
3456 if ac_fn_c_try_compile "$LINENO"; then :
3457 ac_cv_prog_cc_g=yes
3458 fi
3459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460 fi
3461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462 fi
3463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464 ac_c_werror_flag=$ac_save_c_werror_flag
3465 fi
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3467 $as_echo "$ac_cv_prog_cc_g" >&6; }
3468 if test "$ac_test_CFLAGS" = set; then
3469 CFLAGS=$ac_save_CFLAGS
3470 elif test $ac_cv_prog_cc_g = yes; then
3471 if test "$GCC" = yes; then
3472 CFLAGS="-g -O2"
3473 else
3474 CFLAGS="-g"
3475 fi
3476 else
3477 if test "$GCC" = yes; then
3478 CFLAGS="-O2"
3479 else
3480 CFLAGS=
3481 fi
3482 fi
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3484 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3485 if ${ac_cv_prog_cc_c89+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487 else
3488 ac_cv_prog_cc_c89=no
3489 ac_save_CC=$CC
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492 #include <stdarg.h>
3493 #include <stdio.h>
3494 #include <sys/types.h>
3495 #include <sys/stat.h>
3496 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3497 struct buf { int x; };
3498 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3499 static char *e (p, i)
3500 char **p;
3501 int i;
3502 {
3503 return p[i];
3504 }
3505 static char *f (char * (*g) (char **, int), char **p, ...)
3506 {
3507 char *s;
3508 va_list v;
3509 va_start (v,p);
3510 s = g (p, va_arg (v,int));
3511 va_end (v);
3512 return s;
3513 }
3514
3515 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3516 function prototypes and stuff, but not '\xHH' hex character constants.
3517 These don't provoke an error unfortunately, instead are silently treated
3518 as 'x'. The following induces an error, until -std is added to get
3519 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3520 array size at least. It's necessary to write '\x00'==0 to get something
3521 that's true only with -std. */
3522 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3523
3524 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3525 inside strings and character constants. */
3526 #define FOO(x) 'x'
3527 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3528
3529 int test (int i, double x);
3530 struct s1 {int (*f) (int a);};
3531 struct s2 {int (*f) (double a);};
3532 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3533 int argc;
3534 char **argv;
3535 int
3536 main ()
3537 {
3538 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3539 ;
3540 return 0;
3541 }
3542 _ACEOF
3543 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3544 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3545 do
3546 CC="$ac_save_CC $ac_arg"
3547 if ac_fn_c_try_compile "$LINENO"; then :
3548 ac_cv_prog_cc_c89=$ac_arg
3549 fi
3550 rm -f core conftest.err conftest.$ac_objext
3551 test "x$ac_cv_prog_cc_c89" != "xno" && break
3552 done
3553 rm -f conftest.$ac_ext
3554 CC=$ac_save_CC
3555
3556 fi
3557 # AC_CACHE_VAL
3558 case "x$ac_cv_prog_cc_c89" in
3559 x)
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3561 $as_echo "none needed" >&6; } ;;
3562 xno)
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3564 $as_echo "unsupported" >&6; } ;;
3565 *)
3566 CC="$CC $ac_cv_prog_cc_c89"
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3568 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3569 esac
3570 if test "x$ac_cv_prog_cc_c89" != xno; then :
3571
3572 fi
3573
3574 ac_ext=c
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579
3580 depcc="$CC" am_compiler_list=
3581
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3583 $as_echo_n "checking dependency style of $depcc... " >&6; }
3584 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3588 # We make a subdir and do the tests there. Otherwise we can end up
3589 # making bogus files that we don't know about and never remove. For
3590 # instance it was reported that on HP-UX the gcc test will end up
3591 # making a dummy file named `D' -- because `-MD' means `put the output
3592 # in D'.
3593 rm -rf conftest.dir
3594 mkdir conftest.dir
3595 # Copy depcomp to subdir because otherwise we won't find it if we're
3596 # using a relative directory.
3597 cp "$am_depcomp" conftest.dir
3598 cd conftest.dir
3599 # We will build objects and dependencies in a subdirectory because
3600 # it helps to detect inapplicable dependency modes. For instance
3601 # both Tru64's cc and ICC support -MD to output dependencies as a
3602 # side effect of compilation, but ICC will put the dependencies in
3603 # the current directory while Tru64 will put them in the object
3604 # directory.
3605 mkdir sub
3606
3607 am_cv_CC_dependencies_compiler_type=none
3608 if test "$am_compiler_list" = ""; then
3609 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3610 fi
3611 am__universal=false
3612 case " $depcc " in #(
3613 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3614 esac
3615
3616 for depmode in $am_compiler_list; do
3617 # Setup a source with many dependencies, because some compilers
3618 # like to wrap large dependency lists on column 80 (with \), and
3619 # we should not choose a depcomp mode which is confused by this.
3620 #
3621 # We need to recreate these files for each test, as the compiler may
3622 # overwrite some of them when testing with obscure command lines.
3623 # This happens at least with the AIX C compiler.
3624 : > sub/conftest.c
3625 for i in 1 2 3 4 5 6; do
3626 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3627 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3628 # Solaris 8's {/usr,}/bin/sh.
3629 touch sub/conftst$i.h
3630 done
3631 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3632
3633 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3634 # mode. It turns out that the SunPro C++ compiler does not properly
3635 # handle `-M -o', and we need to detect this. Also, some Intel
3636 # versions had trouble with output in subdirs
3637 am__obj=sub/conftest.${OBJEXT-o}
3638 am__minus_obj="-o $am__obj"
3639 case $depmode in
3640 gcc)
3641 # This depmode causes a compiler race in universal mode.
3642 test "$am__universal" = false || continue
3643 ;;
3644 nosideeffect)
3645 # after this tag, mechanisms are not by side-effect, so they'll
3646 # only be used when explicitly requested
3647 if test "x$enable_dependency_tracking" = xyes; then
3648 continue
3649 else
3650 break
3651 fi
3652 ;;
3653 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3654 # This compiler won't grok `-c -o', but also, the minuso test has
3655 # not run yet. These depmodes are late enough in the game, and
3656 # so weak that their functioning should not be impacted.
3657 am__obj=conftest.${OBJEXT-o}
3658 am__minus_obj=
3659 ;;
3660 none) break ;;
3661 esac
3662 if depmode=$depmode \
3663 source=sub/conftest.c object=$am__obj \
3664 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3665 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3666 >/dev/null 2>conftest.err &&
3667 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3668 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3669 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3670 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3671 # icc doesn't choke on unknown options, it will just issue warnings
3672 # or remarks (even with -Werror). So we grep stderr for any message
3673 # that says an option was ignored or not supported.
3674 # When given -MP, icc 7.0 and 7.1 complain thusly:
3675 # icc: Command line warning: ignoring option '-M'; no argument required
3676 # The diagnosis changed in icc 8.0:
3677 # icc: Command line remark: option '-MP' not supported
3678 if (grep 'ignoring option' conftest.err ||
3679 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3680 am_cv_CC_dependencies_compiler_type=$depmode
3681 break
3682 fi
3683 fi
3684 done
3685
3686 cd ..
3687 rm -rf conftest.dir
3688 else
3689 am_cv_CC_dependencies_compiler_type=none
3690 fi
3691
3692 fi
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3694 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3695 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3696
3697 if
3698 test "x$enable_dependency_tracking" != xno \
3699 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3700 am__fastdepCC_TRUE=
3701 am__fastdepCC_FALSE='#'
3702 else
3703 am__fastdepCC_TRUE='#'
3704 am__fastdepCC_FALSE=
3705 fi
3706
3707
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3709 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3710 if ${ac_cv_prog_cc_c99+:} false; then :
3711 $as_echo_n "(cached) " >&6
3712 else
3713 ac_cv_prog_cc_c99=no
3714 ac_save_CC=$CC
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3717 #include <stdarg.h>
3718 #include <stdbool.h>
3719 #include <stdlib.h>
3720 #include <wchar.h>
3721 #include <stdio.h>
3722
3723 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3724 #define debug(...) fprintf (stderr, __VA_ARGS__)
3725 #define showlist(...) puts (#__VA_ARGS__)
3726 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3727 static void
3728 test_varargs_macros (void)
3729 {
3730 int x = 1234;
3731 int y = 5678;
3732 debug ("Flag");
3733 debug ("X = %d\n", x);
3734 showlist (The first, second, and third items.);
3735 report (x>y, "x is %d but y is %d", x, y);
3736 }
3737
3738 // Check long long types.
3739 #define BIG64 18446744073709551615ull
3740 #define BIG32 4294967295ul
3741 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3742 #if !BIG_OK
3743 your preprocessor is broken;
3744 #endif
3745 #if BIG_OK
3746 #else
3747 your preprocessor is broken;
3748 #endif
3749 static long long int bignum = -9223372036854775807LL;
3750 static unsigned long long int ubignum = BIG64;
3751
3752 struct incomplete_array
3753 {
3754 int datasize;
3755 double data[];
3756 };
3757
3758 struct named_init {
3759 int number;
3760 const wchar_t *name;
3761 double average;
3762 };
3763
3764 typedef const char *ccp;
3765
3766 static inline int
3767 test_restrict (ccp restrict text)
3768 {
3769 // See if C++-style comments work.
3770 // Iterate through items via the restricted pointer.
3771 // Also check for declarations in for loops.
3772 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3773 continue;
3774 return 0;
3775 }
3776
3777 // Check varargs and va_copy.
3778 static void
3779 test_varargs (const char *format, ...)
3780 {
3781 va_list args;
3782 va_start (args, format);
3783 va_list args_copy;
3784 va_copy (args_copy, args);
3785
3786 const char *str;
3787 int number;
3788 float fnumber;
3789
3790 while (*format)
3791 {
3792 switch (*format++)
3793 {
3794 case 's': // string
3795 str = va_arg (args_copy, const char *);
3796 break;
3797 case 'd': // int
3798 number = va_arg (args_copy, int);
3799 break;
3800 case 'f': // float
3801 fnumber = va_arg (args_copy, double);
3802 break;
3803 default:
3804 break;
3805 }
3806 }
3807 va_end (args_copy);
3808 va_end (args);
3809 }
3810
3811 int
3812 main ()
3813 {
3814
3815 // Check bool.
3816 _Bool success = false;
3817
3818 // Check restrict.
3819 if (test_restrict ("String literal") == 0)
3820 success = true;
3821 char *restrict newvar = "Another string";
3822
3823 // Check varargs.
3824 test_varargs ("s, d' f .", "string", 65, 34.234);
3825 test_varargs_macros ();
3826
3827 // Check flexible array members.
3828 struct incomplete_array *ia =
3829 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3830 ia->datasize = 10;
3831 for (int i = 0; i < ia->datasize; ++i)
3832 ia->data[i] = i * 1.234;
3833
3834 // Check named initializers.
3835 struct named_init ni = {
3836 .number = 34,
3837 .name = L"Test wide string",
3838 .average = 543.34343,
3839 };
3840
3841 ni.number = 58;
3842
3843 int dynamic_array[ni.number];
3844 dynamic_array[ni.number - 1] = 543;
3845
3846 // work around unused variable warnings
3847 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3848 || dynamic_array[ni.number - 1] != 543);
3849
3850 ;
3851 return 0;
3852 }
3853 _ACEOF
3854 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3855 do
3856 CC="$ac_save_CC $ac_arg"
3857 if ac_fn_c_try_compile "$LINENO"; then :
3858 ac_cv_prog_cc_c99=$ac_arg
3859 fi
3860 rm -f core conftest.err conftest.$ac_objext
3861 test "x$ac_cv_prog_cc_c99" != "xno" && break
3862 done
3863 rm -f conftest.$ac_ext
3864 CC=$ac_save_CC
3865
3866 fi
3867 # AC_CACHE_VAL
3868 case "x$ac_cv_prog_cc_c99" in
3869 x)
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3871 $as_echo "none needed" >&6; } ;;
3872 xno)
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3874 $as_echo "unsupported" >&6; } ;;
3875 *)
3876 CC="$CC $ac_cv_prog_cc_c99"
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3878 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3879 esac
3880 if test "x$ac_cv_prog_cc_c99" != xno; then :
3881
3882 fi
3883
3884
3885
3886 ac_ext=c
3887 ac_cpp='$CPP $CPPFLAGS'
3888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3892 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3893 # On Suns, sometimes $CPP names a directory.
3894 if test -n "$CPP" && test -d "$CPP"; then
3895 CPP=
3896 fi
3897 if test -z "$CPP"; then
3898 if ${ac_cv_prog_CPP+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 # Double quotes because CPP needs to be expanded
3902 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3903 do
3904 ac_preproc_ok=false
3905 for ac_c_preproc_warn_flag in '' yes
3906 do
3907 # Use a header file that comes with gcc, so configuring glibc
3908 # with a fresh cross-compiler works.
3909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3910 # <limits.h> exists even on freestanding compilers.
3911 # On the NeXT, cc -E runs the code through the compiler's parser,
3912 # not just through cpp. "Syntax error" is here to catch this case.
3913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915 #ifdef __STDC__
3916 # include <limits.h>
3917 #else
3918 # include <assert.h>
3919 #endif
3920 Syntax error
3921 _ACEOF
3922 if ac_fn_c_try_cpp "$LINENO"; then :
3923
3924 else
3925 # Broken: fails on valid input.
3926 continue
3927 fi
3928 rm -f conftest.err conftest.i conftest.$ac_ext
3929
3930 # OK, works on sane cases. Now check whether nonexistent headers
3931 # can be detected and how.
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934 #include <ac_nonexistent.h>
3935 _ACEOF
3936 if ac_fn_c_try_cpp "$LINENO"; then :
3937 # Broken: success on invalid input.
3938 continue
3939 else
3940 # Passes both tests.
3941 ac_preproc_ok=:
3942 break
3943 fi
3944 rm -f conftest.err conftest.i conftest.$ac_ext
3945
3946 done
3947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3948 rm -f conftest.i conftest.err conftest.$ac_ext
3949 if $ac_preproc_ok; then :
3950 break
3951 fi
3952
3953 done
3954 ac_cv_prog_CPP=$CPP
3955
3956 fi
3957 CPP=$ac_cv_prog_CPP
3958 else
3959 ac_cv_prog_CPP=$CPP
3960 fi
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3962 $as_echo "$CPP" >&6; }
3963 ac_preproc_ok=false
3964 for ac_c_preproc_warn_flag in '' yes
3965 do
3966 # Use a header file that comes with gcc, so configuring glibc
3967 # with a fresh cross-compiler works.
3968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3969 # <limits.h> exists even on freestanding compilers.
3970 # On the NeXT, cc -E runs the code through the compiler's parser,
3971 # not just through cpp. "Syntax error" is here to catch this case.
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974 #ifdef __STDC__
3975 # include <limits.h>
3976 #else
3977 # include <assert.h>
3978 #endif
3979 Syntax error
3980 _ACEOF
3981 if ac_fn_c_try_cpp "$LINENO"; then :
3982
3983 else
3984 # Broken: fails on valid input.
3985 continue
3986 fi
3987 rm -f conftest.err conftest.i conftest.$ac_ext
3988
3989 # OK, works on sane cases. Now check whether nonexistent headers
3990 # can be detected and how.
3991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h. */
3993 #include <ac_nonexistent.h>
3994 _ACEOF
3995 if ac_fn_c_try_cpp "$LINENO"; then :
3996 # Broken: success on invalid input.
3997 continue
3998 else
3999 # Passes both tests.
4000 ac_preproc_ok=:
4001 break
4002 fi
4003 rm -f conftest.err conftest.i conftest.$ac_ext
4004
4005 done
4006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4007 rm -f conftest.i conftest.err conftest.$ac_ext
4008 if $ac_preproc_ok; then :
4009
4010 else
4011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4013 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4014 See \`config.log' for more details" "$LINENO" 5; }
4015 fi
4016
4017 ac_ext=c
4018 ac_cpp='$CPP $CPPFLAGS'
4019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022
4023
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4025 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4026 if ${ac_cv_path_GREP+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 if test -z "$GREP"; then
4030 ac_path_GREP_found=false
4031 # Loop through the user's path and test for each of PROGNAME-LIST
4032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4034 do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
4037 for ac_prog in grep ggrep; do
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4040 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4041 # Check for GNU ac_path_GREP and select it if it is found.
4042 # Check for GNU $ac_path_GREP
4043 case `"$ac_path_GREP" --version 2>&1` in
4044 *GNU*)
4045 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4046 *)
4047 ac_count=0
4048 $as_echo_n 0123456789 >"conftest.in"
4049 while :
4050 do
4051 cat "conftest.in" "conftest.in" >"conftest.tmp"
4052 mv "conftest.tmp" "conftest.in"
4053 cp "conftest.in" "conftest.nl"
4054 $as_echo 'GREP' >> "conftest.nl"
4055 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4057 as_fn_arith $ac_count + 1 && ac_count=$as_val
4058 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4059 # Best one so far, save it but keep looking for a better one
4060 ac_cv_path_GREP="$ac_path_GREP"
4061 ac_path_GREP_max=$ac_count
4062 fi
4063 # 10*(2^10) chars as input seems more than enough
4064 test $ac_count -gt 10 && break
4065 done
4066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4067 esac
4068
4069 $ac_path_GREP_found && break 3
4070 done
4071 done
4072 done
4073 IFS=$as_save_IFS
4074 if test -z "$ac_cv_path_GREP"; then
4075 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4076 fi
4077 else
4078 ac_cv_path_GREP=$GREP
4079 fi
4080
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4083 $as_echo "$ac_cv_path_GREP" >&6; }
4084 GREP="$ac_cv_path_GREP"
4085
4086
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4088 $as_echo_n "checking for egrep... " >&6; }
4089 if ${ac_cv_path_EGREP+:} false; then :
4090 $as_echo_n "(cached) " >&6
4091 else
4092 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4093 then ac_cv_path_EGREP="$GREP -E"
4094 else
4095 if test -z "$EGREP"; then
4096 ac_path_EGREP_found=false
4097 # Loop through the user's path and test for each of PROGNAME-LIST
4098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4099 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4100 do
4101 IFS=$as_save_IFS
4102 test -z "$as_dir" && as_dir=.
4103 for ac_prog in egrep; do
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4106 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4107 # Check for GNU ac_path_EGREP and select it if it is found.
4108 # Check for GNU $ac_path_EGREP
4109 case `"$ac_path_EGREP" --version 2>&1` in
4110 *GNU*)
4111 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4112 *)
4113 ac_count=0
4114 $as_echo_n 0123456789 >"conftest.in"
4115 while :
4116 do
4117 cat "conftest.in" "conftest.in" >"conftest.tmp"
4118 mv "conftest.tmp" "conftest.in"
4119 cp "conftest.in" "conftest.nl"
4120 $as_echo 'EGREP' >> "conftest.nl"
4121 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4123 as_fn_arith $ac_count + 1 && ac_count=$as_val
4124 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4125 # Best one so far, save it but keep looking for a better one
4126 ac_cv_path_EGREP="$ac_path_EGREP"
4127 ac_path_EGREP_max=$ac_count
4128 fi
4129 # 10*(2^10) chars as input seems more than enough
4130 test $ac_count -gt 10 && break
4131 done
4132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4133 esac
4134
4135 $ac_path_EGREP_found && break 3
4136 done
4137 done
4138 done
4139 IFS=$as_save_IFS
4140 if test -z "$ac_cv_path_EGREP"; then
4141 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4142 fi
4143 else
4144 ac_cv_path_EGREP=$EGREP
4145 fi
4146
4147 fi
4148 fi
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4150 $as_echo "$ac_cv_path_EGREP" >&6; }
4151 EGREP="$ac_cv_path_EGREP"
4152
4153
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4155 $as_echo_n "checking for ANSI C header files... " >&6; }
4156 if ${ac_cv_header_stdc+:} false; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 #include <stdlib.h>
4162 #include <stdarg.h>
4163 #include <string.h>
4164 #include <float.h>
4165
4166 int
4167 main ()
4168 {
4169
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_cv_header_stdc=yes
4176 else
4177 ac_cv_header_stdc=no
4178 fi
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180
4181 if test $ac_cv_header_stdc = yes; then
4182 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184 /* end confdefs.h. */
4185 #include <string.h>
4186
4187 _ACEOF
4188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4189 $EGREP "memchr" >/dev/null 2>&1; then :
4190
4191 else
4192 ac_cv_header_stdc=no
4193 fi
4194 rm -f conftest*
4195
4196 fi
4197
4198 if test $ac_cv_header_stdc = yes; then
4199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4202 #include <stdlib.h>
4203
4204 _ACEOF
4205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4206 $EGREP "free" >/dev/null 2>&1; then :
4207
4208 else
4209 ac_cv_header_stdc=no
4210 fi
4211 rm -f conftest*
4212
4213 fi
4214
4215 if test $ac_cv_header_stdc = yes; then
4216 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4217 if test "$cross_compiling" = yes; then :
4218 :
4219 else
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4221 /* end confdefs.h. */
4222 #include <ctype.h>
4223 #include <stdlib.h>
4224 #if ((' ' & 0x0FF) == 0x020)
4225 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4226 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4227 #else
4228 # define ISLOWER(c) \
4229 (('a' <= (c) && (c) <= 'i') \
4230 || ('j' <= (c) && (c) <= 'r') \
4231 || ('s' <= (c) && (c) <= 'z'))
4232 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4233 #endif
4234
4235 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4236 int
4237 main ()
4238 {
4239 int i;
4240 for (i = 0; i < 256; i++)
4241 if (XOR (islower (i), ISLOWER (i))
4242 || toupper (i) != TOUPPER (i))
4243 return 2;
4244 return 0;
4245 }
4246 _ACEOF
4247 if ac_fn_c_try_run "$LINENO"; then :
4248
4249 else
4250 ac_cv_header_stdc=no
4251 fi
4252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4253 conftest.$ac_objext conftest.beam conftest.$ac_ext
4254 fi
4255
4256 fi
4257 fi
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4259 $as_echo "$ac_cv_header_stdc" >&6; }
4260 if test $ac_cv_header_stdc = yes; then
4261
4262 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4263
4264 fi
4265
4266 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4267 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4268 inttypes.h stdint.h unistd.h
4269 do :
4270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4271 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4272 "
4273 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4274 cat >>confdefs.h <<_ACEOF
4275 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4276 _ACEOF
4277
4278 fi
4279
4280 done
4281
4282
4283
4284
4285
4286
4287 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4288 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4289 CLANGCC="yes"
4290 else
4291 CLANGCC="no"
4292 fi
4293
4294 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4295 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4296 INTELCC="yes"
4297 else
4298 INTELCC="no"
4299 fi
4300
4301 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4302 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4303 SUNCC="yes"
4304 else
4305 SUNCC="no"
4306 fi
4307
4308
4309
4310
4311 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4312 if test -n "$ac_tool_prefix"; then
4313 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4314 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316 $as_echo_n "checking for $ac_word... " >&6; }
4317 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 case $PKG_CONFIG in
4321 [\\/]* | ?:[\\/]*)
4322 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4323 ;;
4324 *)
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH
4327 do
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336 done
4337 done
4338 IFS=$as_save_IFS
4339
4340 ;;
4341 esac
4342 fi
4343 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4344 if test -n "$PKG_CONFIG"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4346 $as_echo "$PKG_CONFIG" >&6; }
4347 else
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4350 fi
4351
4352
4353 fi
4354 if test -z "$ac_cv_path_PKG_CONFIG"; then
4355 ac_pt_PKG_CONFIG=$PKG_CONFIG
4356 # Extract the first word of "pkg-config", so it can be a program name with args.
4357 set dummy pkg-config; ac_word=$2
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359 $as_echo_n "checking for $ac_word... " >&6; }
4360 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 case $ac_pt_PKG_CONFIG in
4364 [\\/]* | ?:[\\/]*)
4365 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4366 ;;
4367 *)
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4378 fi
4379 done
4380 done
4381 IFS=$as_save_IFS
4382
4383 ;;
4384 esac
4385 fi
4386 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4387 if test -n "$ac_pt_PKG_CONFIG"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4389 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4390 else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4393 fi
4394
4395 if test "x$ac_pt_PKG_CONFIG" = x; then
4396 PKG_CONFIG=""
4397 else
4398 case $cross_compiling:$ac_tool_warned in
4399 yes:)
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4402 ac_tool_warned=yes ;;
4403 esac
4404 PKG_CONFIG=$ac_pt_PKG_CONFIG
4405 fi
4406 else
4407 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4408 fi
4409
4410 fi
4411 if test -n "$PKG_CONFIG"; then
4412 _pkg_min_version=0.9.0
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4414 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4415 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4417 $as_echo "yes" >&6; }
4418 else
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4421 PKG_CONFIG=""
4422 fi
4423
4424 fi
4425 # Make sure we can run config.sub.
4426 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4427 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4428
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4430 $as_echo_n "checking build system type... " >&6; }
4431 if ${ac_cv_build+:} false; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 ac_build_alias=$build_alias
4435 test "x$ac_build_alias" = x &&
4436 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4437 test "x$ac_build_alias" = x &&
4438 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4439 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4440 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4441
4442 fi
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4444 $as_echo "$ac_cv_build" >&6; }
4445 case $ac_cv_build in
4446 *-*-*) ;;
4447 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4448 esac
4449 build=$ac_cv_build
4450 ac_save_IFS=$IFS; IFS='-'
4451 set x $ac_cv_build
4452 shift
4453 build_cpu=$1
4454 build_vendor=$2
4455 shift; shift
4456 # Remember, the first character of IFS is used to create $*,
4457 # except with old shells:
4458 build_os=$*
4459 IFS=$ac_save_IFS
4460 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4461
4462
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4464 $as_echo_n "checking host system type... " >&6; }
4465 if ${ac_cv_host+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 if test "x$host_alias" = x; then
4469 ac_cv_host=$ac_cv_build
4470 else
4471 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4472 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4473 fi
4474
4475 fi
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4477 $as_echo "$ac_cv_host" >&6; }
4478 case $ac_cv_host in
4479 *-*-*) ;;
4480 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4481 esac
4482 host=$ac_cv_host
4483 ac_save_IFS=$IFS; IFS='-'
4484 set x $ac_cv_host
4485 shift
4486 host_cpu=$1
4487 host_vendor=$2
4488 shift; shift
4489 # Remember, the first character of IFS is used to create $*,
4490 # except with old shells:
4491 host_os=$*
4492 IFS=$ac_save_IFS
4493 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4494
4495
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4497 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4498 if ${ac_cv_path_SED+:} false; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4502 for ac_i in 1 2 3 4 5 6 7; do
4503 ac_script="$ac_script$as_nl$ac_script"
4504 done
4505 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4506 { ac_script=; unset ac_script;}
4507 if test -z "$SED"; then
4508 ac_path_SED_found=false
4509 # Loop through the user's path and test for each of PROGNAME-LIST
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513 IFS=$as_save_IFS
4514 test -z "$as_dir" && as_dir=.
4515 for ac_prog in sed gsed; do
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4518 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4519 # Check for GNU ac_path_SED and select it if it is found.
4520 # Check for GNU $ac_path_SED
4521 case `"$ac_path_SED" --version 2>&1` in
4522 *GNU*)
4523 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4524 *)
4525 ac_count=0
4526 $as_echo_n 0123456789 >"conftest.in"
4527 while :
4528 do
4529 cat "conftest.in" "conftest.in" >"conftest.tmp"
4530 mv "conftest.tmp" "conftest.in"
4531 cp "conftest.in" "conftest.nl"
4532 $as_echo '' >> "conftest.nl"
4533 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4535 as_fn_arith $ac_count + 1 && ac_count=$as_val
4536 if test $ac_count -gt ${ac_path_SED_max-0}; then
4537 # Best one so far, save it but keep looking for a better one
4538 ac_cv_path_SED="$ac_path_SED"
4539 ac_path_SED_max=$ac_count
4540 fi
4541 # 10*(2^10) chars as input seems more than enough
4542 test $ac_count -gt 10 && break
4543 done
4544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4545 esac
4546
4547 $ac_path_SED_found && break 3
4548 done
4549 done
4550 done
4551 IFS=$as_save_IFS
4552 if test -z "$ac_cv_path_SED"; then
4553 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4554 fi
4555 else
4556 ac_cv_path_SED=$SED
4557 fi
4558
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4561 $as_echo "$ac_cv_path_SED" >&6; }
4562 SED="$ac_cv_path_SED"
4563 rm -f conftest.sed
4564
4565
4566
4567
4568
4569
4570 # Check whether --enable-selective-werror was given.
4571 if test "${enable_selective_werror+set}" = set; then :
4572 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4573 else
4574 SELECTIVE_WERROR=yes
4575 fi
4576
4577
4578
4579
4580
4581 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4582 if test "x$SUNCC" = "xyes"; then
4583 BASE_CFLAGS="-v"
4584 else
4585 BASE_CFLAGS=""
4586 fi
4587
4588 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602 xorg_testset_save_CFLAGS="$CFLAGS"
4603
4604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4608 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613 int i;
4614 _ACEOF
4615 if ac_fn_c_try_compile "$LINENO"; then :
4616 xorg_cv_cc_flag_unknown_warning_option=yes
4617 else
4618 xorg_cv_cc_flag_unknown_warning_option=no
4619 fi
4620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621 fi
4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4625 CFLAGS="$xorg_testset_save_CFLAGS"
4626 fi
4627
4628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4631 fi
4632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4639 /* end confdefs.h. */
4640 int i;
4641 _ACEOF
4642 if ac_fn_c_try_compile "$LINENO"; then :
4643 xorg_cv_cc_flag_unused_command_line_argument=yes
4644 else
4645 xorg_cv_cc_flag_unused_command_line_argument=no
4646 fi
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 fi
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4652 CFLAGS="$xorg_testset_save_CFLAGS"
4653 fi
4654
4655 found="no"
4656
4657 if test $found = "no" ; then
4658 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4660 fi
4661
4662 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4664 fi
4665
4666 CFLAGS="$CFLAGS -Wall"
4667
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4669 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4670 cacheid=xorg_cv_cc_flag__Wall
4671 if eval \${$cacheid+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4676 int i;
4677 int
4678 main ()
4679 {
4680
4681 ;
4682 return 0;
4683 }
4684 _ACEOF
4685 if ac_fn_c_try_link "$LINENO"; then :
4686 eval $cacheid=yes
4687 else
4688 eval $cacheid=no
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext \
4691 conftest$ac_exeext conftest.$ac_ext
4692 fi
4693
4694
4695 CFLAGS="$xorg_testset_save_CFLAGS"
4696
4697 eval supported=\$$cacheid
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4699 $as_echo "$supported" >&6; }
4700 if test "$supported" = "yes" ; then
4701 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4702 found="yes"
4703 fi
4704 fi
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720 xorg_testset_save_CFLAGS="$CFLAGS"
4721
4722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4731 int i;
4732 _ACEOF
4733 if ac_fn_c_try_compile "$LINENO"; then :
4734 xorg_cv_cc_flag_unknown_warning_option=yes
4735 else
4736 xorg_cv_cc_flag_unknown_warning_option=no
4737 fi
4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4743 CFLAGS="$xorg_testset_save_CFLAGS"
4744 fi
4745
4746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4749 fi
4750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4758 int i;
4759 _ACEOF
4760 if ac_fn_c_try_compile "$LINENO"; then :
4761 xorg_cv_cc_flag_unused_command_line_argument=yes
4762 else
4763 xorg_cv_cc_flag_unused_command_line_argument=no
4764 fi
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 fi
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4770 CFLAGS="$xorg_testset_save_CFLAGS"
4771 fi
4772
4773 found="no"
4774
4775 if test $found = "no" ; then
4776 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4778 fi
4779
4780 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4782 fi
4783
4784 CFLAGS="$CFLAGS -Wpointer-arith"
4785
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4787 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4788 cacheid=xorg_cv_cc_flag__Wpointer_arith
4789 if eval \${$cacheid+:} false; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 int i;
4795 int
4796 main ()
4797 {
4798
4799 ;
4800 return 0;
4801 }
4802 _ACEOF
4803 if ac_fn_c_try_link "$LINENO"; then :
4804 eval $cacheid=yes
4805 else
4806 eval $cacheid=no
4807 fi
4808 rm -f core conftest.err conftest.$ac_objext \
4809 conftest$ac_exeext conftest.$ac_ext
4810 fi
4811
4812
4813 CFLAGS="$xorg_testset_save_CFLAGS"
4814
4815 eval supported=\$$cacheid
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4817 $as_echo "$supported" >&6; }
4818 if test "$supported" = "yes" ; then
4819 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4820 found="yes"
4821 fi
4822 fi
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838 xorg_testset_save_CFLAGS="$CFLAGS"
4839
4840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4843 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4844 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 int i;
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"; then :
4852 xorg_cv_cc_flag_unknown_warning_option=yes
4853 else
4854 xorg_cv_cc_flag_unknown_warning_option=no
4855 fi
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 fi
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4859 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4861 CFLAGS="$xorg_testset_save_CFLAGS"
4862 fi
4863
4864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4867 fi
4868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4870 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4871 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 int i;
4877 _ACEOF
4878 if ac_fn_c_try_compile "$LINENO"; then :
4879 xorg_cv_cc_flag_unused_command_line_argument=yes
4880 else
4881 xorg_cv_cc_flag_unused_command_line_argument=no
4882 fi
4883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4884 fi
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4886 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4888 CFLAGS="$xorg_testset_save_CFLAGS"
4889 fi
4890
4891 found="no"
4892
4893 if test $found = "no" ; then
4894 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
4895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4896 fi
4897
4898 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
4899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4900 fi
4901
4902 CFLAGS="$CFLAGS -Wmissing-declarations"
4903
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4905 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4906 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4907 if eval \${$cacheid+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 int i;
4913 int
4914 main ()
4915 {
4916
4917 ;
4918 return 0;
4919 }
4920 _ACEOF
4921 if ac_fn_c_try_link "$LINENO"; then :
4922 eval $cacheid=yes
4923 else
4924 eval $cacheid=no
4925 fi
4926 rm -f core conftest.err conftest.$ac_objext \
4927 conftest$ac_exeext conftest.$ac_ext
4928 fi
4929
4930
4931 CFLAGS="$xorg_testset_save_CFLAGS"
4932
4933 eval supported=\$$cacheid
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4935 $as_echo "$supported" >&6; }
4936 if test "$supported" = "yes" ; then
4937 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4938 found="yes"
4939 fi
4940 fi
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956 xorg_testset_save_CFLAGS="$CFLAGS"
4957
4958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4961 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4962 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4963 $as_echo_n "(cached) " >&6
4964 else
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 int i;
4968 _ACEOF
4969 if ac_fn_c_try_compile "$LINENO"; then :
4970 xorg_cv_cc_flag_unknown_warning_option=yes
4971 else
4972 xorg_cv_cc_flag_unknown_warning_option=no
4973 fi
4974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975 fi
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4977 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4979 CFLAGS="$xorg_testset_save_CFLAGS"
4980 fi
4981
4982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4985 fi
4986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4988 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4989 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4990 $as_echo_n "(cached) " >&6
4991 else
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4994 int i;
4995 _ACEOF
4996 if ac_fn_c_try_compile "$LINENO"; then :
4997 xorg_cv_cc_flag_unused_command_line_argument=yes
4998 else
4999 xorg_cv_cc_flag_unused_command_line_argument=no
5000 fi
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 fi
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5004 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5006 CFLAGS="$xorg_testset_save_CFLAGS"
5007 fi
5008
5009 found="no"
5010
5011 if test $found = "no" ; then
5012 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5014 fi
5015
5016 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5018 fi
5019
5020 CFLAGS="$CFLAGS -Wformat=2"
5021
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5023 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5024 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
5025 if eval \${$cacheid+:} false; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5029 /* end confdefs.h. */
5030 int i;
5031 int
5032 main ()
5033 {
5034
5035 ;
5036 return 0;
5037 }
5038 _ACEOF
5039 if ac_fn_c_try_link "$LINENO"; then :
5040 eval $cacheid=yes
5041 else
5042 eval $cacheid=no
5043 fi
5044 rm -f core conftest.err conftest.$ac_objext \
5045 conftest$ac_exeext conftest.$ac_ext
5046 fi
5047
5048
5049 CFLAGS="$xorg_testset_save_CFLAGS"
5050
5051 eval supported=\$$cacheid
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5053 $as_echo "$supported" >&6; }
5054 if test "$supported" = "yes" ; then
5055 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5056 found="yes"
5057 fi
5058 fi
5059
5060 if test $found = "no" ; then
5061 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5063 fi
5064
5065 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5067 fi
5068
5069 CFLAGS="$CFLAGS -Wformat"
5070
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5072 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5073 cacheid=xorg_cv_cc_flag__Wformat
5074 if eval \${$cacheid+:} false; then :
5075 $as_echo_n "(cached) " >&6
5076 else
5077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* end confdefs.h. */
5079 int i;
5080 int
5081 main ()
5082 {
5083
5084 ;
5085 return 0;
5086 }
5087 _ACEOF
5088 if ac_fn_c_try_link "$LINENO"; then :
5089 eval $cacheid=yes
5090 else
5091 eval $cacheid=no
5092 fi
5093 rm -f core conftest.err conftest.$ac_objext \
5094 conftest$ac_exeext conftest.$ac_ext
5095 fi
5096
5097
5098 CFLAGS="$xorg_testset_save_CFLAGS"
5099
5100 eval supported=\$$cacheid
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5102 $as_echo "$supported" >&6; }
5103 if test "$supported" = "yes" ; then
5104 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5105 found="yes"
5106 fi
5107 fi
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125 xorg_testset_save_CFLAGS="$CFLAGS"
5126
5127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5130 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5131 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5132 $as_echo_n "(cached) " >&6
5133 else
5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5135 /* end confdefs.h. */
5136 int i;
5137 _ACEOF
5138 if ac_fn_c_try_compile "$LINENO"; then :
5139 xorg_cv_cc_flag_unknown_warning_option=yes
5140 else
5141 xorg_cv_cc_flag_unknown_warning_option=no
5142 fi
5143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5146 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5148 CFLAGS="$xorg_testset_save_CFLAGS"
5149 fi
5150
5151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5154 fi
5155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5157 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5158 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162 /* end confdefs.h. */
5163 int i;
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"; then :
5166 xorg_cv_cc_flag_unused_command_line_argument=yes
5167 else
5168 xorg_cv_cc_flag_unused_command_line_argument=no
5169 fi
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 fi
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5173 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5175 CFLAGS="$xorg_testset_save_CFLAGS"
5176 fi
5177
5178 found="no"
5179
5180 if test $found = "no" ; then
5181 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5183 fi
5184
5185 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5187 fi
5188
5189 CFLAGS="$CFLAGS -Wstrict-prototypes"
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5192 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5193 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5194 if eval \${$cacheid+:} false; then :
5195 $as_echo_n "(cached) " >&6
5196 else
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 int i;
5200 int
5201 main ()
5202 {
5203
5204 ;
5205 return 0;
5206 }
5207 _ACEOF
5208 if ac_fn_c_try_link "$LINENO"; then :
5209 eval $cacheid=yes
5210 else
5211 eval $cacheid=no
5212 fi
5213 rm -f core conftest.err conftest.$ac_objext \
5214 conftest$ac_exeext conftest.$ac_ext
5215 fi
5216
5217
5218 CFLAGS="$xorg_testset_save_CFLAGS"
5219
5220 eval supported=\$$cacheid
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5222 $as_echo "$supported" >&6; }
5223 if test "$supported" = "yes" ; then
5224 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5225 found="yes"
5226 fi
5227 fi
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243 xorg_testset_save_CFLAGS="$CFLAGS"
5244
5245 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5248 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5249 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5253 /* end confdefs.h. */
5254 int i;
5255 _ACEOF
5256 if ac_fn_c_try_compile "$LINENO"; then :
5257 xorg_cv_cc_flag_unknown_warning_option=yes
5258 else
5259 xorg_cv_cc_flag_unknown_warning_option=no
5260 fi
5261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5262 fi
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5264 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5266 CFLAGS="$xorg_testset_save_CFLAGS"
5267 fi
5268
5269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5272 fi
5273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5275 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5276 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5277 $as_echo_n "(cached) " >&6
5278 else
5279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5280 /* end confdefs.h. */
5281 int i;
5282 _ACEOF
5283 if ac_fn_c_try_compile "$LINENO"; then :
5284 xorg_cv_cc_flag_unused_command_line_argument=yes
5285 else
5286 xorg_cv_cc_flag_unused_command_line_argument=no
5287 fi
5288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 fi
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5291 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5293 CFLAGS="$xorg_testset_save_CFLAGS"
5294 fi
5295
5296 found="no"
5297
5298 if test $found = "no" ; then
5299 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5301 fi
5302
5303 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5305 fi
5306
5307 CFLAGS="$CFLAGS -Wmissing-prototypes"
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5310 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5311 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5312 if eval \${$cacheid+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h. */
5317 int i;
5318 int
5319 main ()
5320 {
5321
5322 ;
5323 return 0;
5324 }
5325 _ACEOF
5326 if ac_fn_c_try_link "$LINENO"; then :
5327 eval $cacheid=yes
5328 else
5329 eval $cacheid=no
5330 fi
5331 rm -f core conftest.err conftest.$ac_objext \
5332 conftest$ac_exeext conftest.$ac_ext
5333 fi
5334
5335
5336 CFLAGS="$xorg_testset_save_CFLAGS"
5337
5338 eval supported=\$$cacheid
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5340 $as_echo "$supported" >&6; }
5341 if test "$supported" = "yes" ; then
5342 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5343 found="yes"
5344 fi
5345 fi
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361 xorg_testset_save_CFLAGS="$CFLAGS"
5362
5363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5366 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5367 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5372 int i;
5373 _ACEOF
5374 if ac_fn_c_try_compile "$LINENO"; then :
5375 xorg_cv_cc_flag_unknown_warning_option=yes
5376 else
5377 xorg_cv_cc_flag_unknown_warning_option=no
5378 fi
5379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 fi
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5382 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5384 CFLAGS="$xorg_testset_save_CFLAGS"
5385 fi
5386
5387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5390 fi
5391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5393 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5394 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398 /* end confdefs.h. */
5399 int i;
5400 _ACEOF
5401 if ac_fn_c_try_compile "$LINENO"; then :
5402 xorg_cv_cc_flag_unused_command_line_argument=yes
5403 else
5404 xorg_cv_cc_flag_unused_command_line_argument=no
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 fi
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5409 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5411 CFLAGS="$xorg_testset_save_CFLAGS"
5412 fi
5413
5414 found="no"
5415
5416 if test $found = "no" ; then
5417 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5419 fi
5420
5421 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5423 fi
5424
5425 CFLAGS="$CFLAGS -Wnested-externs"
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5428 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5429 cacheid=xorg_cv_cc_flag__Wnested_externs
5430 if eval \${$cacheid+:} false; then :
5431 $as_echo_n "(cached) " >&6
5432 else
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435 int i;
5436 int
5437 main ()
5438 {
5439
5440 ;
5441 return 0;
5442 }
5443 _ACEOF
5444 if ac_fn_c_try_link "$LINENO"; then :
5445 eval $cacheid=yes
5446 else
5447 eval $cacheid=no
5448 fi
5449 rm -f core conftest.err conftest.$ac_objext \
5450 conftest$ac_exeext conftest.$ac_ext
5451 fi
5452
5453
5454 CFLAGS="$xorg_testset_save_CFLAGS"
5455
5456 eval supported=\$$cacheid
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5458 $as_echo "$supported" >&6; }
5459 if test "$supported" = "yes" ; then
5460 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5461 found="yes"
5462 fi
5463 fi
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479 xorg_testset_save_CFLAGS="$CFLAGS"
5480
5481 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5484 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5485 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5489 /* end confdefs.h. */
5490 int i;
5491 _ACEOF
5492 if ac_fn_c_try_compile "$LINENO"; then :
5493 xorg_cv_cc_flag_unknown_warning_option=yes
5494 else
5495 xorg_cv_cc_flag_unknown_warning_option=no
5496 fi
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5498 fi
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5500 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5502 CFLAGS="$xorg_testset_save_CFLAGS"
5503 fi
5504
5505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5508 fi
5509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5511 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5512 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5513 $as_echo_n "(cached) " >&6
5514 else
5515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5516 /* end confdefs.h. */
5517 int i;
5518 _ACEOF
5519 if ac_fn_c_try_compile "$LINENO"; then :
5520 xorg_cv_cc_flag_unused_command_line_argument=yes
5521 else
5522 xorg_cv_cc_flag_unused_command_line_argument=no
5523 fi
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 fi
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5527 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5529 CFLAGS="$xorg_testset_save_CFLAGS"
5530 fi
5531
5532 found="no"
5533
5534 if test $found = "no" ; then
5535 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5537 fi
5538
5539 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5541 fi
5542
5543 CFLAGS="$CFLAGS -Wbad-function-cast"
5544
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5546 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5547 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5548 if eval \${$cacheid+:} false; then :
5549 $as_echo_n "(cached) " >&6
5550 else
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 int i;
5554 int
5555 main ()
5556 {
5557
5558 ;
5559 return 0;
5560 }
5561 _ACEOF
5562 if ac_fn_c_try_link "$LINENO"; then :
5563 eval $cacheid=yes
5564 else
5565 eval $cacheid=no
5566 fi
5567 rm -f core conftest.err conftest.$ac_objext \
5568 conftest$ac_exeext conftest.$ac_ext
5569 fi
5570
5571
5572 CFLAGS="$xorg_testset_save_CFLAGS"
5573
5574 eval supported=\$$cacheid
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5576 $as_echo "$supported" >&6; }
5577 if test "$supported" = "yes" ; then
5578 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5579 found="yes"
5580 fi
5581 fi
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597 xorg_testset_save_CFLAGS="$CFLAGS"
5598
5599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5602 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5603 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605 else
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 int i;
5609 _ACEOF
5610 if ac_fn_c_try_compile "$LINENO"; then :
5611 xorg_cv_cc_flag_unknown_warning_option=yes
5612 else
5613 xorg_cv_cc_flag_unknown_warning_option=no
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 fi
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5618 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5620 CFLAGS="$xorg_testset_save_CFLAGS"
5621 fi
5622
5623 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5626 fi
5627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5629 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5630 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 int i;
5636 _ACEOF
5637 if ac_fn_c_try_compile "$LINENO"; then :
5638 xorg_cv_cc_flag_unused_command_line_argument=yes
5639 else
5640 xorg_cv_cc_flag_unused_command_line_argument=no
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 fi
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5645 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5647 CFLAGS="$xorg_testset_save_CFLAGS"
5648 fi
5649
5650 found="no"
5651
5652 if test $found = "no" ; then
5653 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5655 fi
5656
5657 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5659 fi
5660
5661 CFLAGS="$CFLAGS -Wold-style-definition"
5662
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5664 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5665 cacheid=xorg_cv_cc_flag__Wold_style_definition
5666 if eval \${$cacheid+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5671 int i;
5672 int
5673 main ()
5674 {
5675
5676 ;
5677 return 0;
5678 }
5679 _ACEOF
5680 if ac_fn_c_try_link "$LINENO"; then :
5681 eval $cacheid=yes
5682 else
5683 eval $cacheid=no
5684 fi
5685 rm -f core conftest.err conftest.$ac_objext \
5686 conftest$ac_exeext conftest.$ac_ext
5687 fi
5688
5689
5690 CFLAGS="$xorg_testset_save_CFLAGS"
5691
5692 eval supported=\$$cacheid
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5694 $as_echo "$supported" >&6; }
5695 if test "$supported" = "yes" ; then
5696 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5697 found="yes"
5698 fi
5699 fi
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715 xorg_testset_save_CFLAGS="$CFLAGS"
5716
5717 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5720 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5721 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5722 $as_echo_n "(cached) " >&6
5723 else
5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5726 int i;
5727 _ACEOF
5728 if ac_fn_c_try_compile "$LINENO"; then :
5729 xorg_cv_cc_flag_unknown_warning_option=yes
5730 else
5731 xorg_cv_cc_flag_unknown_warning_option=no
5732 fi
5733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5734 fi
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5736 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5738 CFLAGS="$xorg_testset_save_CFLAGS"
5739 fi
5740
5741 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5744 fi
5745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5747 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5748 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5749 $as_echo_n "(cached) " >&6
5750 else
5751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5752 /* end confdefs.h. */
5753 int i;
5754 _ACEOF
5755 if ac_fn_c_try_compile "$LINENO"; then :
5756 xorg_cv_cc_flag_unused_command_line_argument=yes
5757 else
5758 xorg_cv_cc_flag_unused_command_line_argument=no
5759 fi
5760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761 fi
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5763 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5765 CFLAGS="$xorg_testset_save_CFLAGS"
5766 fi
5767
5768 found="no"
5769
5770 if test $found = "no" ; then
5771 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5773 fi
5774
5775 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5777 fi
5778
5779 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5780
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5782 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5783 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5784 if eval \${$cacheid+:} false; then :
5785 $as_echo_n "(cached) " >&6
5786 else
5787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5789 int i;
5790 int
5791 main ()
5792 {
5793
5794 ;
5795 return 0;
5796 }
5797 _ACEOF
5798 if ac_fn_c_try_link "$LINENO"; then :
5799 eval $cacheid=yes
5800 else
5801 eval $cacheid=no
5802 fi
5803 rm -f core conftest.err conftest.$ac_objext \
5804 conftest$ac_exeext conftest.$ac_ext
5805 fi
5806
5807
5808 CFLAGS="$xorg_testset_save_CFLAGS"
5809
5810 eval supported=\$$cacheid
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5812 $as_echo "$supported" >&6; }
5813 if test "$supported" = "yes" ; then
5814 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5815 found="yes"
5816 fi
5817 fi
5818
5819
5820
5821
5822
5823 # This chunk adds additional warnings that could catch undesired effects.
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837 xorg_testset_save_CFLAGS="$CFLAGS"
5838
5839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5842 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5843 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5844 $as_echo_n "(cached) " >&6
5845 else
5846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848 int i;
5849 _ACEOF
5850 if ac_fn_c_try_compile "$LINENO"; then :
5851 xorg_cv_cc_flag_unknown_warning_option=yes
5852 else
5853 xorg_cv_cc_flag_unknown_warning_option=no
5854 fi
5855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5856 fi
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5858 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5859 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5860 CFLAGS="$xorg_testset_save_CFLAGS"
5861 fi
5862
5863 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5866 fi
5867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5869 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5870 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5871 $as_echo_n "(cached) " >&6
5872 else
5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5874 /* end confdefs.h. */
5875 int i;
5876 _ACEOF
5877 if ac_fn_c_try_compile "$LINENO"; then :
5878 xorg_cv_cc_flag_unused_command_line_argument=yes
5879 else
5880 xorg_cv_cc_flag_unused_command_line_argument=no
5881 fi
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 fi
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5885 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5887 CFLAGS="$xorg_testset_save_CFLAGS"
5888 fi
5889
5890 found="no"
5891
5892 if test $found = "no" ; then
5893 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
5894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5895 fi
5896
5897 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
5898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5899 fi
5900
5901 CFLAGS="$CFLAGS -Wunused"
5902
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5904 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5905 cacheid=xorg_cv_cc_flag__Wunused
5906 if eval \${$cacheid+:} false; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5911 int i;
5912 int
5913 main ()
5914 {
5915
5916 ;
5917 return 0;
5918 }
5919 _ACEOF
5920 if ac_fn_c_try_link "$LINENO"; then :
5921 eval $cacheid=yes
5922 else
5923 eval $cacheid=no
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext \
5926 conftest$ac_exeext conftest.$ac_ext
5927 fi
5928
5929
5930 CFLAGS="$xorg_testset_save_CFLAGS"
5931
5932 eval supported=\$$cacheid
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5934 $as_echo "$supported" >&6; }
5935 if test "$supported" = "yes" ; then
5936 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
5937 found="yes"
5938 fi
5939 fi
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955 xorg_testset_save_CFLAGS="$CFLAGS"
5956
5957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5960 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5961 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5966 int i;
5967 _ACEOF
5968 if ac_fn_c_try_compile "$LINENO"; then :
5969 xorg_cv_cc_flag_unknown_warning_option=yes
5970 else
5971 xorg_cv_cc_flag_unknown_warning_option=no
5972 fi
5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974 fi
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5976 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5977 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5978 CFLAGS="$xorg_testset_save_CFLAGS"
5979 fi
5980
5981 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5984 fi
5985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5987 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5988 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h. */
5993 int i;
5994 _ACEOF
5995 if ac_fn_c_try_compile "$LINENO"; then :
5996 xorg_cv_cc_flag_unused_command_line_argument=yes
5997 else
5998 xorg_cv_cc_flag_unused_command_line_argument=no
5999 fi
6000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001 fi
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6003 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6004 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6005 CFLAGS="$xorg_testset_save_CFLAGS"
6006 fi
6007
6008 found="no"
6009
6010 if test $found = "no" ; then
6011 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6013 fi
6014
6015 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6016 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6017 fi
6018
6019 CFLAGS="$CFLAGS -Wuninitialized"
6020
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6022 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6023 cacheid=xorg_cv_cc_flag__Wuninitialized
6024 if eval \${$cacheid+:} false; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028 /* end confdefs.h. */
6029 int i;
6030 int
6031 main ()
6032 {
6033
6034 ;
6035 return 0;
6036 }
6037 _ACEOF
6038 if ac_fn_c_try_link "$LINENO"; then :
6039 eval $cacheid=yes
6040 else
6041 eval $cacheid=no
6042 fi
6043 rm -f core conftest.err conftest.$ac_objext \
6044 conftest$ac_exeext conftest.$ac_ext
6045 fi
6046
6047
6048 CFLAGS="$xorg_testset_save_CFLAGS"
6049
6050 eval supported=\$$cacheid
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6052 $as_echo "$supported" >&6; }
6053 if test "$supported" = "yes" ; then
6054 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6055 found="yes"
6056 fi
6057 fi
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073 xorg_testset_save_CFLAGS="$CFLAGS"
6074
6075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6078 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6079 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 int i;
6085 _ACEOF
6086 if ac_fn_c_try_compile "$LINENO"; then :
6087 xorg_cv_cc_flag_unknown_warning_option=yes
6088 else
6089 xorg_cv_cc_flag_unknown_warning_option=no
6090 fi
6091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 fi
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6094 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6096 CFLAGS="$xorg_testset_save_CFLAGS"
6097 fi
6098
6099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6102 fi
6103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6105 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6106 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6107 $as_echo_n "(cached) " >&6
6108 else
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6111 int i;
6112 _ACEOF
6113 if ac_fn_c_try_compile "$LINENO"; then :
6114 xorg_cv_cc_flag_unused_command_line_argument=yes
6115 else
6116 xorg_cv_cc_flag_unused_command_line_argument=no
6117 fi
6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6119 fi
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6121 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6123 CFLAGS="$xorg_testset_save_CFLAGS"
6124 fi
6125
6126 found="no"
6127
6128 if test $found = "no" ; then
6129 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6131 fi
6132
6133 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6135 fi
6136
6137 CFLAGS="$CFLAGS -Wshadow"
6138
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6140 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6141 cacheid=xorg_cv_cc_flag__Wshadow
6142 if eval \${$cacheid+:} false; then :
6143 $as_echo_n "(cached) " >&6
6144 else
6145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146 /* end confdefs.h. */
6147 int i;
6148 int
6149 main ()
6150 {
6151
6152 ;
6153 return 0;
6154 }
6155 _ACEOF
6156 if ac_fn_c_try_link "$LINENO"; then :
6157 eval $cacheid=yes
6158 else
6159 eval $cacheid=no
6160 fi
6161 rm -f core conftest.err conftest.$ac_objext \
6162 conftest$ac_exeext conftest.$ac_ext
6163 fi
6164
6165
6166 CFLAGS="$xorg_testset_save_CFLAGS"
6167
6168 eval supported=\$$cacheid
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6170 $as_echo "$supported" >&6; }
6171 if test "$supported" = "yes" ; then
6172 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6173 found="yes"
6174 fi
6175 fi
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191 xorg_testset_save_CFLAGS="$CFLAGS"
6192
6193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6196 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6197 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 int i;
6203 _ACEOF
6204 if ac_fn_c_try_compile "$LINENO"; then :
6205 xorg_cv_cc_flag_unknown_warning_option=yes
6206 else
6207 xorg_cv_cc_flag_unknown_warning_option=no
6208 fi
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210 fi
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6212 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6213 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6214 CFLAGS="$xorg_testset_save_CFLAGS"
6215 fi
6216
6217 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6220 fi
6221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6223 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6224 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6229 int i;
6230 _ACEOF
6231 if ac_fn_c_try_compile "$LINENO"; then :
6232 xorg_cv_cc_flag_unused_command_line_argument=yes
6233 else
6234 xorg_cv_cc_flag_unused_command_line_argument=no
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6237 fi
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6239 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6241 CFLAGS="$xorg_testset_save_CFLAGS"
6242 fi
6243
6244 found="no"
6245
6246 if test $found = "no" ; then
6247 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6249 fi
6250
6251 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6253 fi
6254
6255 CFLAGS="$CFLAGS -Wcast-qual"
6256
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
6258 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
6259 cacheid=xorg_cv_cc_flag__Wcast_qual
6260 if eval \${$cacheid+:} false; then :
6261 $as_echo_n "(cached) " >&6
6262 else
6263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 int i;
6266 int
6267 main ()
6268 {
6269
6270 ;
6271 return 0;
6272 }
6273 _ACEOF
6274 if ac_fn_c_try_link "$LINENO"; then :
6275 eval $cacheid=yes
6276 else
6277 eval $cacheid=no
6278 fi
6279 rm -f core conftest.err conftest.$ac_objext \
6280 conftest$ac_exeext conftest.$ac_ext
6281 fi
6282
6283
6284 CFLAGS="$xorg_testset_save_CFLAGS"
6285
6286 eval supported=\$$cacheid
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6288 $as_echo "$supported" >&6; }
6289 if test "$supported" = "yes" ; then
6290 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
6291 found="yes"
6292 fi
6293 fi
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309 xorg_testset_save_CFLAGS="$CFLAGS"
6310
6311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6314 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6315 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6320 int i;
6321 _ACEOF
6322 if ac_fn_c_try_compile "$LINENO"; then :
6323 xorg_cv_cc_flag_unknown_warning_option=yes
6324 else
6325 xorg_cv_cc_flag_unknown_warning_option=no
6326 fi
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328 fi
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6330 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6332 CFLAGS="$xorg_testset_save_CFLAGS"
6333 fi
6334
6335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6338 fi
6339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6341 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6342 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347 int i;
6348 _ACEOF
6349 if ac_fn_c_try_compile "$LINENO"; then :
6350 xorg_cv_cc_flag_unused_command_line_argument=yes
6351 else
6352 xorg_cv_cc_flag_unused_command_line_argument=no
6353 fi
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 fi
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6357 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6359 CFLAGS="$xorg_testset_save_CFLAGS"
6360 fi
6361
6362 found="no"
6363
6364 if test $found = "no" ; then
6365 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6367 fi
6368
6369 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6371 fi
6372
6373 CFLAGS="$CFLAGS -Wmissing-noreturn"
6374
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6376 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6377 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6378 if eval \${$cacheid+:} false; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6382 /* end confdefs.h. */
6383 int i;
6384 int
6385 main ()
6386 {
6387
6388 ;
6389 return 0;
6390 }
6391 _ACEOF
6392 if ac_fn_c_try_link "$LINENO"; then :
6393 eval $cacheid=yes
6394 else
6395 eval $cacheid=no
6396 fi
6397 rm -f core conftest.err conftest.$ac_objext \
6398 conftest$ac_exeext conftest.$ac_ext
6399 fi
6400
6401
6402 CFLAGS="$xorg_testset_save_CFLAGS"
6403
6404 eval supported=\$$cacheid
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6406 $as_echo "$supported" >&6; }
6407 if test "$supported" = "yes" ; then
6408 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6409 found="yes"
6410 fi
6411 fi
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427 xorg_testset_save_CFLAGS="$CFLAGS"
6428
6429 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6430 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6432 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6433 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438 int i;
6439 _ACEOF
6440 if ac_fn_c_try_compile "$LINENO"; then :
6441 xorg_cv_cc_flag_unknown_warning_option=yes
6442 else
6443 xorg_cv_cc_flag_unknown_warning_option=no
6444 fi
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446 fi
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6448 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6449 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6450 CFLAGS="$xorg_testset_save_CFLAGS"
6451 fi
6452
6453 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6456 fi
6457 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6459 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6460 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6461 $as_echo_n "(cached) " >&6
6462 else
6463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6464 /* end confdefs.h. */
6465 int i;
6466 _ACEOF
6467 if ac_fn_c_try_compile "$LINENO"; then :
6468 xorg_cv_cc_flag_unused_command_line_argument=yes
6469 else
6470 xorg_cv_cc_flag_unused_command_line_argument=no
6471 fi
6472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6473 fi
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6475 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6476 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6477 CFLAGS="$xorg_testset_save_CFLAGS"
6478 fi
6479
6480 found="no"
6481
6482 if test $found = "no" ; then
6483 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6485 fi
6486
6487 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6489 fi
6490
6491 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6494 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6495 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6496 if eval \${$cacheid+:} false; then :
6497 $as_echo_n "(cached) " >&6
6498 else
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501 int i;
6502 int
6503 main ()
6504 {
6505
6506 ;
6507 return 0;
6508 }
6509 _ACEOF
6510 if ac_fn_c_try_link "$LINENO"; then :
6511 eval $cacheid=yes
6512 else
6513 eval $cacheid=no
6514 fi
6515 rm -f core conftest.err conftest.$ac_objext \
6516 conftest$ac_exeext conftest.$ac_ext
6517 fi
6518
6519
6520 CFLAGS="$xorg_testset_save_CFLAGS"
6521
6522 eval supported=\$$cacheid
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6524 $as_echo "$supported" >&6; }
6525 if test "$supported" = "yes" ; then
6526 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6527 found="yes"
6528 fi
6529 fi
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545 xorg_testset_save_CFLAGS="$CFLAGS"
6546
6547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6550 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6551 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 int i;
6557 _ACEOF
6558 if ac_fn_c_try_compile "$LINENO"; then :
6559 xorg_cv_cc_flag_unknown_warning_option=yes
6560 else
6561 xorg_cv_cc_flag_unknown_warning_option=no
6562 fi
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 fi
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6566 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6568 CFLAGS="$xorg_testset_save_CFLAGS"
6569 fi
6570
6571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6574 fi
6575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6577 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6578 if ${xorg_cv_cc_flag_unused_command_line_argument+:} 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_unused_command_line_argument=yes
6587 else
6588 xorg_cv_cc_flag_unused_command_line_argument=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_unused_command_line_argument" >&5
6593 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6594 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6595 CFLAGS="$xorg_testset_save_CFLAGS"
6596 fi
6597
6598 found="no"
6599
6600 if test $found = "no" ; then
6601 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6603 fi
6604
6605 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6607 fi
6608
6609 CFLAGS="$CFLAGS -Wredundant-decls"
6610
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6612 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6613 cacheid=xorg_cv_cc_flag__Wredundant_decls
6614 if eval \${$cacheid+:} false; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6619 int i;
6620 int
6621 main ()
6622 {
6623
6624 ;
6625 return 0;
6626 }
6627 _ACEOF
6628 if ac_fn_c_try_link "$LINENO"; then :
6629 eval $cacheid=yes
6630 else
6631 eval $cacheid=no
6632 fi
6633 rm -f core conftest.err conftest.$ac_objext \
6634 conftest$ac_exeext conftest.$ac_ext
6635 fi
6636
6637
6638 CFLAGS="$xorg_testset_save_CFLAGS"
6639
6640 eval supported=\$$cacheid
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6642 $as_echo "$supported" >&6; }
6643 if test "$supported" = "yes" ; then
6644 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6645 found="yes"
6646 fi
6647 fi
6648
6649
6650
6651 # These are currently disabled because they are noisy. They will be enabled
6652 # in the future once the codebase is sufficiently modernized to silence
6653 # them. For now, I don't want them to drown out the other warnings.
6654 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
6655 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6656 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6657
6658 # Turn some warnings into errors, so we don't accidently get successful builds
6659 # when there are problems that should be fixed.
6660
6661 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675 xorg_testset_save_CFLAGS="$CFLAGS"
6676
6677 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6680 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6681 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6682 $as_echo_n "(cached) " >&6
6683 else
6684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6685 /* end confdefs.h. */
6686 int i;
6687 _ACEOF
6688 if ac_fn_c_try_compile "$LINENO"; then :
6689 xorg_cv_cc_flag_unknown_warning_option=yes
6690 else
6691 xorg_cv_cc_flag_unknown_warning_option=no
6692 fi
6693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6694 fi
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6696 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6698 CFLAGS="$xorg_testset_save_CFLAGS"
6699 fi
6700
6701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6704 fi
6705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6707 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6708 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6709 $as_echo_n "(cached) " >&6
6710 else
6711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6712 /* end confdefs.h. */
6713 int i;
6714 _ACEOF
6715 if ac_fn_c_try_compile "$LINENO"; then :
6716 xorg_cv_cc_flag_unused_command_line_argument=yes
6717 else
6718 xorg_cv_cc_flag_unused_command_line_argument=no
6719 fi
6720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6721 fi
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6723 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6725 CFLAGS="$xorg_testset_save_CFLAGS"
6726 fi
6727
6728 found="no"
6729
6730 if test $found = "no" ; then
6731 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733 fi
6734
6735 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6737 fi
6738
6739 CFLAGS="$CFLAGS -Werror=implicit"
6740
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6742 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6743 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
6744 if eval \${$cacheid+:} false; then :
6745 $as_echo_n "(cached) " >&6
6746 else
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 int i;
6750 int
6751 main ()
6752 {
6753
6754 ;
6755 return 0;
6756 }
6757 _ACEOF
6758 if ac_fn_c_try_link "$LINENO"; then :
6759 eval $cacheid=yes
6760 else
6761 eval $cacheid=no
6762 fi
6763 rm -f core conftest.err conftest.$ac_objext \
6764 conftest$ac_exeext conftest.$ac_ext
6765 fi
6766
6767
6768 CFLAGS="$xorg_testset_save_CFLAGS"
6769
6770 eval supported=\$$cacheid
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6772 $as_echo "$supported" >&6; }
6773 if test "$supported" = "yes" ; then
6774 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6775 found="yes"
6776 fi
6777 fi
6778
6779 if test $found = "no" ; then
6780 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6782 fi
6783
6784 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6786 fi
6787
6788 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6789
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6791 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6792 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
6793 if eval \${$cacheid+:} false; then :
6794 $as_echo_n "(cached) " >&6
6795 else
6796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798 int i;
6799 int
6800 main ()
6801 {
6802
6803 ;
6804 return 0;
6805 }
6806 _ACEOF
6807 if ac_fn_c_try_link "$LINENO"; then :
6808 eval $cacheid=yes
6809 else
6810 eval $cacheid=no
6811 fi
6812 rm -f core conftest.err conftest.$ac_objext \
6813 conftest$ac_exeext conftest.$ac_ext
6814 fi
6815
6816
6817 CFLAGS="$xorg_testset_save_CFLAGS"
6818
6819 eval supported=\$$cacheid
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6821 $as_echo "$supported" >&6; }
6822 if test "$supported" = "yes" ; then
6823 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6824 found="yes"
6825 fi
6826 fi
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842 xorg_testset_save_CFLAGS="$CFLAGS"
6843
6844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* end confdefs.h. */
6853 int i;
6854 _ACEOF
6855 if ac_fn_c_try_compile "$LINENO"; then :
6856 xorg_cv_cc_flag_unknown_warning_option=yes
6857 else
6858 xorg_cv_cc_flag_unknown_warning_option=no
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 fi
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6865 CFLAGS="$xorg_testset_save_CFLAGS"
6866 fi
6867
6868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6871 fi
6872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6876 $as_echo_n "(cached) " >&6
6877 else
6878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6879 /* end confdefs.h. */
6880 int i;
6881 _ACEOF
6882 if ac_fn_c_try_compile "$LINENO"; then :
6883 xorg_cv_cc_flag_unused_command_line_argument=yes
6884 else
6885 xorg_cv_cc_flag_unused_command_line_argument=no
6886 fi
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 fi
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6892 CFLAGS="$xorg_testset_save_CFLAGS"
6893 fi
6894
6895 found="no"
6896
6897 if test $found = "no" ; then
6898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
6899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6900 fi
6901
6902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
6903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6904 fi
6905
6906 CFLAGS="$CFLAGS -Werror=nonnull"
6907
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
6909 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
6910 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
6911 if eval \${$cacheid+:} false; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6916 int i;
6917 int
6918 main ()
6919 {
6920
6921 ;
6922 return 0;
6923 }
6924 _ACEOF
6925 if ac_fn_c_try_link "$LINENO"; then :
6926 eval $cacheid=yes
6927 else
6928 eval $cacheid=no
6929 fi
6930 rm -f core conftest.err conftest.$ac_objext \
6931 conftest$ac_exeext conftest.$ac_ext
6932 fi
6933
6934
6935 CFLAGS="$xorg_testset_save_CFLAGS"
6936
6937 eval supported=\$$cacheid
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6939 $as_echo "$supported" >&6; }
6940 if test "$supported" = "yes" ; then
6941 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
6942 found="yes"
6943 fi
6944 fi
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960 xorg_testset_save_CFLAGS="$CFLAGS"
6961
6962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6965 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6966 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971 int i;
6972 _ACEOF
6973 if ac_fn_c_try_compile "$LINENO"; then :
6974 xorg_cv_cc_flag_unknown_warning_option=yes
6975 else
6976 xorg_cv_cc_flag_unknown_warning_option=no
6977 fi
6978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6979 fi
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6981 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6983 CFLAGS="$xorg_testset_save_CFLAGS"
6984 fi
6985
6986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6989 fi
6990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6993 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
6998 int i;
6999 _ACEOF
7000 if ac_fn_c_try_compile "$LINENO"; then :
7001 xorg_cv_cc_flag_unused_command_line_argument=yes
7002 else
7003 xorg_cv_cc_flag_unused_command_line_argument=no
7004 fi
7005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 fi
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7008 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7010 CFLAGS="$xorg_testset_save_CFLAGS"
7011 fi
7012
7013 found="no"
7014
7015 if test $found = "no" ; then
7016 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7018 fi
7019
7020 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7022 fi
7023
7024 CFLAGS="$CFLAGS -Werror=init-self"
7025
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7027 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7028 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
7029 if eval \${$cacheid+:} false; then :
7030 $as_echo_n "(cached) " >&6
7031 else
7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7033 /* end confdefs.h. */
7034 int i;
7035 int
7036 main ()
7037 {
7038
7039 ;
7040 return 0;
7041 }
7042 _ACEOF
7043 if ac_fn_c_try_link "$LINENO"; then :
7044 eval $cacheid=yes
7045 else
7046 eval $cacheid=no
7047 fi
7048 rm -f core conftest.err conftest.$ac_objext \
7049 conftest$ac_exeext conftest.$ac_ext
7050 fi
7051
7052
7053 CFLAGS="$xorg_testset_save_CFLAGS"
7054
7055 eval supported=\$$cacheid
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7057 $as_echo "$supported" >&6; }
7058 if test "$supported" = "yes" ; then
7059 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7060 found="yes"
7061 fi
7062 fi
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078 xorg_testset_save_CFLAGS="$CFLAGS"
7079
7080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7089 int i;
7090 _ACEOF
7091 if ac_fn_c_try_compile "$LINENO"; then :
7092 xorg_cv_cc_flag_unknown_warning_option=yes
7093 else
7094 xorg_cv_cc_flag_unknown_warning_option=no
7095 fi
7096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097 fi
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7101 CFLAGS="$xorg_testset_save_CFLAGS"
7102 fi
7103
7104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7107 fi
7108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7115 /* end confdefs.h. */
7116 int i;
7117 _ACEOF
7118 if ac_fn_c_try_compile "$LINENO"; then :
7119 xorg_cv_cc_flag_unused_command_line_argument=yes
7120 else
7121 xorg_cv_cc_flag_unused_command_line_argument=no
7122 fi
7123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7124 fi
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7128 CFLAGS="$xorg_testset_save_CFLAGS"
7129 fi
7130
7131 found="no"
7132
7133 if test $found = "no" ; then
7134 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7136 fi
7137
7138 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7140 fi
7141
7142 CFLAGS="$CFLAGS -Werror=main"
7143
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7145 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7146 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
7147 if eval \${$cacheid+:} false; then :
7148 $as_echo_n "(cached) " >&6
7149 else
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 int i;
7153 int
7154 main ()
7155 {
7156
7157 ;
7158 return 0;
7159 }
7160 _ACEOF
7161 if ac_fn_c_try_link "$LINENO"; then :
7162 eval $cacheid=yes
7163 else
7164 eval $cacheid=no
7165 fi
7166 rm -f core conftest.err conftest.$ac_objext \
7167 conftest$ac_exeext conftest.$ac_ext
7168 fi
7169
7170
7171 CFLAGS="$xorg_testset_save_CFLAGS"
7172
7173 eval supported=\$$cacheid
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7175 $as_echo "$supported" >&6; }
7176 if test "$supported" = "yes" ; then
7177 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7178 found="yes"
7179 fi
7180 fi
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196 xorg_testset_save_CFLAGS="$CFLAGS"
7197
7198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207 int i;
7208 _ACEOF
7209 if ac_fn_c_try_compile "$LINENO"; then :
7210 xorg_cv_cc_flag_unknown_warning_option=yes
7211 else
7212 xorg_cv_cc_flag_unknown_warning_option=no
7213 fi
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215 fi
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7219 CFLAGS="$xorg_testset_save_CFLAGS"
7220 fi
7221
7222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7225 fi
7226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
7232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7233 /* end confdefs.h. */
7234 int i;
7235 _ACEOF
7236 if ac_fn_c_try_compile "$LINENO"; then :
7237 xorg_cv_cc_flag_unused_command_line_argument=yes
7238 else
7239 xorg_cv_cc_flag_unused_command_line_argument=no
7240 fi
7241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7242 fi
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7246 CFLAGS="$xorg_testset_save_CFLAGS"
7247 fi
7248
7249 found="no"
7250
7251 if test $found = "no" ; then
7252 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7254 fi
7255
7256 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7258 fi
7259
7260 CFLAGS="$CFLAGS -Werror=missing-braces"
7261
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7263 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7264 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
7265 if eval \${$cacheid+:} false; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7270 int i;
7271 int
7272 main ()
7273 {
7274
7275 ;
7276 return 0;
7277 }
7278 _ACEOF
7279 if ac_fn_c_try_link "$LINENO"; then :
7280 eval $cacheid=yes
7281 else
7282 eval $cacheid=no
7283 fi
7284 rm -f core conftest.err conftest.$ac_objext \
7285 conftest$ac_exeext conftest.$ac_ext
7286 fi
7287
7288
7289 CFLAGS="$xorg_testset_save_CFLAGS"
7290
7291 eval supported=\$$cacheid
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7293 $as_echo "$supported" >&6; }
7294 if test "$supported" = "yes" ; then
7295 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7296 found="yes"
7297 fi
7298 fi
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314 xorg_testset_save_CFLAGS="$CFLAGS"
7315
7316 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7319 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7320 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7321 $as_echo_n "(cached) " >&6
7322 else
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7325 int i;
7326 _ACEOF
7327 if ac_fn_c_try_compile "$LINENO"; then :
7328 xorg_cv_cc_flag_unknown_warning_option=yes
7329 else
7330 xorg_cv_cc_flag_unknown_warning_option=no
7331 fi
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 fi
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7335 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7337 CFLAGS="$xorg_testset_save_CFLAGS"
7338 fi
7339
7340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7343 fi
7344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7346 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7347 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7348 $as_echo_n "(cached) " >&6
7349 else
7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 /* end confdefs.h. */
7352 int i;
7353 _ACEOF
7354 if ac_fn_c_try_compile "$LINENO"; then :
7355 xorg_cv_cc_flag_unused_command_line_argument=yes
7356 else
7357 xorg_cv_cc_flag_unused_command_line_argument=no
7358 fi
7359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360 fi
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7362 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7364 CFLAGS="$xorg_testset_save_CFLAGS"
7365 fi
7366
7367 found="no"
7368
7369 if test $found = "no" ; then
7370 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7372 fi
7373
7374 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7376 fi
7377
7378 CFLAGS="$CFLAGS -Werror=sequence-point"
7379
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7381 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7382 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
7383 if eval \${$cacheid+:} false; then :
7384 $as_echo_n "(cached) " >&6
7385 else
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7388 int i;
7389 int
7390 main ()
7391 {
7392
7393 ;
7394 return 0;
7395 }
7396 _ACEOF
7397 if ac_fn_c_try_link "$LINENO"; then :
7398 eval $cacheid=yes
7399 else
7400 eval $cacheid=no
7401 fi
7402 rm -f core conftest.err conftest.$ac_objext \
7403 conftest$ac_exeext conftest.$ac_ext
7404 fi
7405
7406
7407 CFLAGS="$xorg_testset_save_CFLAGS"
7408
7409 eval supported=\$$cacheid
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7411 $as_echo "$supported" >&6; }
7412 if test "$supported" = "yes" ; then
7413 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7414 found="yes"
7415 fi
7416 fi
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432 xorg_testset_save_CFLAGS="$CFLAGS"
7433
7434 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7437 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7438 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7443 int i;
7444 _ACEOF
7445 if ac_fn_c_try_compile "$LINENO"; then :
7446 xorg_cv_cc_flag_unknown_warning_option=yes
7447 else
7448 xorg_cv_cc_flag_unknown_warning_option=no
7449 fi
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 fi
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7453 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7454 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7455 CFLAGS="$xorg_testset_save_CFLAGS"
7456 fi
7457
7458 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7461 fi
7462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7464 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7465 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7466 $as_echo_n "(cached) " >&6
7467 else
7468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7470 int i;
7471 _ACEOF
7472 if ac_fn_c_try_compile "$LINENO"; then :
7473 xorg_cv_cc_flag_unused_command_line_argument=yes
7474 else
7475 xorg_cv_cc_flag_unused_command_line_argument=no
7476 fi
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 fi
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7480 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7481 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7482 CFLAGS="$xorg_testset_save_CFLAGS"
7483 fi
7484
7485 found="no"
7486
7487 if test $found = "no" ; then
7488 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7490 fi
7491
7492 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7494 fi
7495
7496 CFLAGS="$CFLAGS -Werror=return-type"
7497
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7499 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7500 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
7501 if eval \${$cacheid+:} false; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7506 int i;
7507 int
7508 main ()
7509 {
7510
7511 ;
7512 return 0;
7513 }
7514 _ACEOF
7515 if ac_fn_c_try_link "$LINENO"; then :
7516 eval $cacheid=yes
7517 else
7518 eval $cacheid=no
7519 fi
7520 rm -f core conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 fi
7523
7524
7525 CFLAGS="$xorg_testset_save_CFLAGS"
7526
7527 eval supported=\$$cacheid
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7529 $as_echo "$supported" >&6; }
7530 if test "$supported" = "yes" ; then
7531 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7532 found="yes"
7533 fi
7534 fi
7535
7536 if test $found = "no" ; then
7537 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7539 fi
7540
7541 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7543 fi
7544
7545 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7546
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7548 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7549 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
7550 if eval \${$cacheid+:} false; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555 int i;
7556 int
7557 main ()
7558 {
7559
7560 ;
7561 return 0;
7562 }
7563 _ACEOF
7564 if ac_fn_c_try_link "$LINENO"; then :
7565 eval $cacheid=yes
7566 else
7567 eval $cacheid=no
7568 fi
7569 rm -f core conftest.err conftest.$ac_objext \
7570 conftest$ac_exeext conftest.$ac_ext
7571 fi
7572
7573
7574 CFLAGS="$xorg_testset_save_CFLAGS"
7575
7576 eval supported=\$$cacheid
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7578 $as_echo "$supported" >&6; }
7579 if test "$supported" = "yes" ; then
7580 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7581 found="yes"
7582 fi
7583 fi
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599 xorg_testset_save_CFLAGS="$CFLAGS"
7600
7601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7604 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7605 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7606 $as_echo_n "(cached) " >&6
7607 else
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7610 int i;
7611 _ACEOF
7612 if ac_fn_c_try_compile "$LINENO"; then :
7613 xorg_cv_cc_flag_unknown_warning_option=yes
7614 else
7615 xorg_cv_cc_flag_unknown_warning_option=no
7616 fi
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 fi
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7620 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7622 CFLAGS="$xorg_testset_save_CFLAGS"
7623 fi
7624
7625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7628 fi
7629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7631 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7632 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7633 $as_echo_n "(cached) " >&6
7634 else
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7637 int i;
7638 _ACEOF
7639 if ac_fn_c_try_compile "$LINENO"; then :
7640 xorg_cv_cc_flag_unused_command_line_argument=yes
7641 else
7642 xorg_cv_cc_flag_unused_command_line_argument=no
7643 fi
7644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7645 fi
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7647 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7649 CFLAGS="$xorg_testset_save_CFLAGS"
7650 fi
7651
7652 found="no"
7653
7654 if test $found = "no" ; then
7655 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7657 fi
7658
7659 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7661 fi
7662
7663 CFLAGS="$CFLAGS -Werror=trigraphs"
7664
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7666 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7667 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
7668 if eval \${$cacheid+:} false; then :
7669 $as_echo_n "(cached) " >&6
7670 else
7671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7672 /* end confdefs.h. */
7673 int i;
7674 int
7675 main ()
7676 {
7677
7678 ;
7679 return 0;
7680 }
7681 _ACEOF
7682 if ac_fn_c_try_link "$LINENO"; then :
7683 eval $cacheid=yes
7684 else
7685 eval $cacheid=no
7686 fi
7687 rm -f core conftest.err conftest.$ac_objext \
7688 conftest$ac_exeext conftest.$ac_ext
7689 fi
7690
7691
7692 CFLAGS="$xorg_testset_save_CFLAGS"
7693
7694 eval supported=\$$cacheid
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7696 $as_echo "$supported" >&6; }
7697 if test "$supported" = "yes" ; then
7698 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7699 found="yes"
7700 fi
7701 fi
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717 xorg_testset_save_CFLAGS="$CFLAGS"
7718
7719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7722 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7723 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7728 int i;
7729 _ACEOF
7730 if ac_fn_c_try_compile "$LINENO"; then :
7731 xorg_cv_cc_flag_unknown_warning_option=yes
7732 else
7733 xorg_cv_cc_flag_unknown_warning_option=no
7734 fi
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 fi
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7738 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7740 CFLAGS="$xorg_testset_save_CFLAGS"
7741 fi
7742
7743 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7746 fi
7747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7749 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7750 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7751 $as_echo_n "(cached) " >&6
7752 else
7753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7754 /* end confdefs.h. */
7755 int i;
7756 _ACEOF
7757 if ac_fn_c_try_compile "$LINENO"; then :
7758 xorg_cv_cc_flag_unused_command_line_argument=yes
7759 else
7760 xorg_cv_cc_flag_unused_command_line_argument=no
7761 fi
7762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763 fi
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7765 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7767 CFLAGS="$xorg_testset_save_CFLAGS"
7768 fi
7769
7770 found="no"
7771
7772 if test $found = "no" ; then
7773 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7775 fi
7776
7777 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7779 fi
7780
7781 CFLAGS="$CFLAGS -Werror=array-bounds"
7782
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7784 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7785 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
7786 if eval \${$cacheid+:} false; then :
7787 $as_echo_n "(cached) " >&6
7788 else
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791 int i;
7792 int
7793 main ()
7794 {
7795
7796 ;
7797 return 0;
7798 }
7799 _ACEOF
7800 if ac_fn_c_try_link "$LINENO"; then :
7801 eval $cacheid=yes
7802 else
7803 eval $cacheid=no
7804 fi
7805 rm -f core conftest.err conftest.$ac_objext \
7806 conftest$ac_exeext conftest.$ac_ext
7807 fi
7808
7809
7810 CFLAGS="$xorg_testset_save_CFLAGS"
7811
7812 eval supported=\$$cacheid
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7814 $as_echo "$supported" >&6; }
7815 if test "$supported" = "yes" ; then
7816 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7817 found="yes"
7818 fi
7819 fi
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835 xorg_testset_save_CFLAGS="$CFLAGS"
7836
7837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7840 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7841 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7842 $as_echo_n "(cached) " >&6
7843 else
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7846 int i;
7847 _ACEOF
7848 if ac_fn_c_try_compile "$LINENO"; then :
7849 xorg_cv_cc_flag_unknown_warning_option=yes
7850 else
7851 xorg_cv_cc_flag_unknown_warning_option=no
7852 fi
7853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7854 fi
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7856 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7858 CFLAGS="$xorg_testset_save_CFLAGS"
7859 fi
7860
7861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864 fi
7865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7867 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7868 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7869 $as_echo_n "(cached) " >&6
7870 else
7871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h. */
7873 int i;
7874 _ACEOF
7875 if ac_fn_c_try_compile "$LINENO"; then :
7876 xorg_cv_cc_flag_unused_command_line_argument=yes
7877 else
7878 xorg_cv_cc_flag_unused_command_line_argument=no
7879 fi
7880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7881 fi
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7883 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7885 CFLAGS="$xorg_testset_save_CFLAGS"
7886 fi
7887
7888 found="no"
7889
7890 if test $found = "no" ; then
7891 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7893 fi
7894
7895 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
7896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7897 fi
7898
7899 CFLAGS="$CFLAGS -Werror=write-strings"
7900
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7902 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7903 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
7904 if eval \${$cacheid+:} false; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908 /* end confdefs.h. */
7909 int i;
7910 int
7911 main ()
7912 {
7913
7914 ;
7915 return 0;
7916 }
7917 _ACEOF
7918 if ac_fn_c_try_link "$LINENO"; then :
7919 eval $cacheid=yes
7920 else
7921 eval $cacheid=no
7922 fi
7923 rm -f core conftest.err conftest.$ac_objext \
7924 conftest$ac_exeext conftest.$ac_ext
7925 fi
7926
7927
7928 CFLAGS="$xorg_testset_save_CFLAGS"
7929
7930 eval supported=\$$cacheid
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7932 $as_echo "$supported" >&6; }
7933 if test "$supported" = "yes" ; then
7934 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
7935 found="yes"
7936 fi
7937 fi
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953 xorg_testset_save_CFLAGS="$CFLAGS"
7954
7955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7958 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7959 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7960 $as_echo_n "(cached) " >&6
7961 else
7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h. */
7964 int i;
7965 _ACEOF
7966 if ac_fn_c_try_compile "$LINENO"; then :
7967 xorg_cv_cc_flag_unknown_warning_option=yes
7968 else
7969 xorg_cv_cc_flag_unknown_warning_option=no
7970 fi
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 fi
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7974 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7976 CFLAGS="$xorg_testset_save_CFLAGS"
7977 fi
7978
7979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7982 fi
7983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7985 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7986 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7987 $as_echo_n "(cached) " >&6
7988 else
7989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h. */
7991 int i;
7992 _ACEOF
7993 if ac_fn_c_try_compile "$LINENO"; then :
7994 xorg_cv_cc_flag_unused_command_line_argument=yes
7995 else
7996 xorg_cv_cc_flag_unused_command_line_argument=no
7997 fi
7998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7999 fi
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8001 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8003 CFLAGS="$xorg_testset_save_CFLAGS"
8004 fi
8005
8006 found="no"
8007
8008 if test $found = "no" ; then
8009 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8011 fi
8012
8013 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8015 fi
8016
8017 CFLAGS="$CFLAGS -Werror=address"
8018
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8020 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8021 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
8022 if eval \${$cacheid+:} false; then :
8023 $as_echo_n "(cached) " >&6
8024 else
8025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8026 /* end confdefs.h. */
8027 int i;
8028 int
8029 main ()
8030 {
8031
8032 ;
8033 return 0;
8034 }
8035 _ACEOF
8036 if ac_fn_c_try_link "$LINENO"; then :
8037 eval $cacheid=yes
8038 else
8039 eval $cacheid=no
8040 fi
8041 rm -f core conftest.err conftest.$ac_objext \
8042 conftest$ac_exeext conftest.$ac_ext
8043 fi
8044
8045
8046 CFLAGS="$xorg_testset_save_CFLAGS"
8047
8048 eval supported=\$$cacheid
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8050 $as_echo "$supported" >&6; }
8051 if test "$supported" = "yes" ; then
8052 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8053 found="yes"
8054 fi
8055 fi
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071 xorg_testset_save_CFLAGS="$CFLAGS"
8072
8073 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8076 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8077 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8082 int i;
8083 _ACEOF
8084 if ac_fn_c_try_compile "$LINENO"; then :
8085 xorg_cv_cc_flag_unknown_warning_option=yes
8086 else
8087 xorg_cv_cc_flag_unknown_warning_option=no
8088 fi
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 fi
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8092 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8094 CFLAGS="$xorg_testset_save_CFLAGS"
8095 fi
8096
8097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8100 fi
8101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8103 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8104 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 int i;
8110 _ACEOF
8111 if ac_fn_c_try_compile "$LINENO"; then :
8112 xorg_cv_cc_flag_unused_command_line_argument=yes
8113 else
8114 xorg_cv_cc_flag_unused_command_line_argument=no
8115 fi
8116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8117 fi
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8119 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8121 CFLAGS="$xorg_testset_save_CFLAGS"
8122 fi
8123
8124 found="no"
8125
8126 if test $found = "no" ; then
8127 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8129 fi
8130
8131 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8133 fi
8134
8135 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8136
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8138 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8139 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
8140 if eval \${$cacheid+:} false; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8145 int i;
8146 int
8147 main ()
8148 {
8149
8150 ;
8151 return 0;
8152 }
8153 _ACEOF
8154 if ac_fn_c_try_link "$LINENO"; then :
8155 eval $cacheid=yes
8156 else
8157 eval $cacheid=no
8158 fi
8159 rm -f core conftest.err conftest.$ac_objext \
8160 conftest$ac_exeext conftest.$ac_ext
8161 fi
8162
8163
8164 CFLAGS="$xorg_testset_save_CFLAGS"
8165
8166 eval supported=\$$cacheid
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8168 $as_echo "$supported" >&6; }
8169 if test "$supported" = "yes" ; then
8170 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8171 found="yes"
8172 fi
8173 fi
8174
8175 if test $found = "no" ; then
8176 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8178 fi
8179
8180 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8182 fi
8183
8184 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8185
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8187 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8188 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
8189 if eval \${$cacheid+:} false; then :
8190 $as_echo_n "(cached) " >&6
8191 else
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 int i;
8195 int
8196 main ()
8197 {
8198
8199 ;
8200 return 0;
8201 }
8202 _ACEOF
8203 if ac_fn_c_try_link "$LINENO"; then :
8204 eval $cacheid=yes
8205 else
8206 eval $cacheid=no
8207 fi
8208 rm -f core conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
8210 fi
8211
8212
8213 CFLAGS="$xorg_testset_save_CFLAGS"
8214
8215 eval supported=\$$cacheid
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8217 $as_echo "$supported" >&6; }
8218 if test "$supported" = "yes" ; then
8219 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8220 found="yes"
8221 fi
8222 fi
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238 xorg_testset_save_CFLAGS="$CFLAGS"
8239
8240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8243 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8244 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8249 int i;
8250 _ACEOF
8251 if ac_fn_c_try_compile "$LINENO"; then :
8252 xorg_cv_cc_flag_unknown_warning_option=yes
8253 else
8254 xorg_cv_cc_flag_unknown_warning_option=no
8255 fi
8256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8257 fi
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8259 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8260 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8261 CFLAGS="$xorg_testset_save_CFLAGS"
8262 fi
8263
8264 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8267 fi
8268 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8270 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8271 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8275 /* end confdefs.h. */
8276 int i;
8277 _ACEOF
8278 if ac_fn_c_try_compile "$LINENO"; then :
8279 xorg_cv_cc_flag_unused_command_line_argument=yes
8280 else
8281 xorg_cv_cc_flag_unused_command_line_argument=no
8282 fi
8283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8284 fi
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8286 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8288 CFLAGS="$xorg_testset_save_CFLAGS"
8289 fi
8290
8291 found="no"
8292
8293 if test $found = "no" ; then
8294 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8296 fi
8297
8298 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8300 fi
8301
8302 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8303
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8305 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8306 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
8307 if eval \${$cacheid+:} false; then :
8308 $as_echo_n "(cached) " >&6
8309 else
8310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8311 /* end confdefs.h. */
8312 int i;
8313 int
8314 main ()
8315 {
8316
8317 ;
8318 return 0;
8319 }
8320 _ACEOF
8321 if ac_fn_c_try_link "$LINENO"; then :
8322 eval $cacheid=yes
8323 else
8324 eval $cacheid=no
8325 fi
8326 rm -f core conftest.err conftest.$ac_objext \
8327 conftest$ac_exeext conftest.$ac_ext
8328 fi
8329
8330
8331 CFLAGS="$xorg_testset_save_CFLAGS"
8332
8333 eval supported=\$$cacheid
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8335 $as_echo "$supported" >&6; }
8336 if test "$supported" = "yes" ; then
8337 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8338 found="yes"
8339 fi
8340 fi
8341
8342 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8343 else
8344 { $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
8345 $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;}
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359 xorg_testset_save_CFLAGS="$CFLAGS"
8360
8361 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8364 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8365 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8366 $as_echo_n "(cached) " >&6
8367 else
8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8369 /* end confdefs.h. */
8370 int i;
8371 _ACEOF
8372 if ac_fn_c_try_compile "$LINENO"; then :
8373 xorg_cv_cc_flag_unknown_warning_option=yes
8374 else
8375 xorg_cv_cc_flag_unknown_warning_option=no
8376 fi
8377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8378 fi
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8380 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8382 CFLAGS="$xorg_testset_save_CFLAGS"
8383 fi
8384
8385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8388 fi
8389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8391 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8392 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 int i;
8398 _ACEOF
8399 if ac_fn_c_try_compile "$LINENO"; then :
8400 xorg_cv_cc_flag_unused_command_line_argument=yes
8401 else
8402 xorg_cv_cc_flag_unused_command_line_argument=no
8403 fi
8404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405 fi
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8407 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8409 CFLAGS="$xorg_testset_save_CFLAGS"
8410 fi
8411
8412 found="no"
8413
8414 if test $found = "no" ; then
8415 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8417 fi
8418
8419 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8421 fi
8422
8423 CFLAGS="$CFLAGS -Wimplicit"
8424
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8426 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8427 cacheid=xorg_cv_cc_flag__Wimplicit
8428 if eval \${$cacheid+:} false; then :
8429 $as_echo_n "(cached) " >&6
8430 else
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8433 int i;
8434 int
8435 main ()
8436 {
8437
8438 ;
8439 return 0;
8440 }
8441 _ACEOF
8442 if ac_fn_c_try_link "$LINENO"; then :
8443 eval $cacheid=yes
8444 else
8445 eval $cacheid=no
8446 fi
8447 rm -f core conftest.err conftest.$ac_objext \
8448 conftest$ac_exeext conftest.$ac_ext
8449 fi
8450
8451
8452 CFLAGS="$xorg_testset_save_CFLAGS"
8453
8454 eval supported=\$$cacheid
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8456 $as_echo "$supported" >&6; }
8457 if test "$supported" = "yes" ; then
8458 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8459 found="yes"
8460 fi
8461 fi
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477 xorg_testset_save_CFLAGS="$CFLAGS"
8478
8479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8482 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8483 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 int i;
8489 _ACEOF
8490 if ac_fn_c_try_compile "$LINENO"; then :
8491 xorg_cv_cc_flag_unknown_warning_option=yes
8492 else
8493 xorg_cv_cc_flag_unknown_warning_option=no
8494 fi
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496 fi
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8498 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8500 CFLAGS="$xorg_testset_save_CFLAGS"
8501 fi
8502
8503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8506 fi
8507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8509 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8510 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8511 $as_echo_n "(cached) " >&6
8512 else
8513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515 int i;
8516 _ACEOF
8517 if ac_fn_c_try_compile "$LINENO"; then :
8518 xorg_cv_cc_flag_unused_command_line_argument=yes
8519 else
8520 xorg_cv_cc_flag_unused_command_line_argument=no
8521 fi
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523 fi
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8525 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8527 CFLAGS="$xorg_testset_save_CFLAGS"
8528 fi
8529
8530 found="no"
8531
8532 if test $found = "no" ; then
8533 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8535 fi
8536
8537 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8539 fi
8540
8541 CFLAGS="$CFLAGS -Wnonnull"
8542
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8544 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8545 cacheid=xorg_cv_cc_flag__Wnonnull
8546 if eval \${$cacheid+:} false; then :
8547 $as_echo_n "(cached) " >&6
8548 else
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551 int i;
8552 int
8553 main ()
8554 {
8555
8556 ;
8557 return 0;
8558 }
8559 _ACEOF
8560 if ac_fn_c_try_link "$LINENO"; then :
8561 eval $cacheid=yes
8562 else
8563 eval $cacheid=no
8564 fi
8565 rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567 fi
8568
8569
8570 CFLAGS="$xorg_testset_save_CFLAGS"
8571
8572 eval supported=\$$cacheid
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8574 $as_echo "$supported" >&6; }
8575 if test "$supported" = "yes" ; then
8576 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8577 found="yes"
8578 fi
8579 fi
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595 xorg_testset_save_CFLAGS="$CFLAGS"
8596
8597 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8600 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8601 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 int i;
8607 _ACEOF
8608 if ac_fn_c_try_compile "$LINENO"; then :
8609 xorg_cv_cc_flag_unknown_warning_option=yes
8610 else
8611 xorg_cv_cc_flag_unknown_warning_option=no
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8616 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8618 CFLAGS="$xorg_testset_save_CFLAGS"
8619 fi
8620
8621 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8624 fi
8625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8627 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8628 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8629 $as_echo_n "(cached) " >&6
8630 else
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8633 int i;
8634 _ACEOF
8635 if ac_fn_c_try_compile "$LINENO"; then :
8636 xorg_cv_cc_flag_unused_command_line_argument=yes
8637 else
8638 xorg_cv_cc_flag_unused_command_line_argument=no
8639 fi
8640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8641 fi
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8643 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8644 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8645 CFLAGS="$xorg_testset_save_CFLAGS"
8646 fi
8647
8648 found="no"
8649
8650 if test $found = "no" ; then
8651 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8652 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8653 fi
8654
8655 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8657 fi
8658
8659 CFLAGS="$CFLAGS -Winit-self"
8660
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8662 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8663 cacheid=xorg_cv_cc_flag__Winit_self
8664 if eval \${$cacheid+:} false; then :
8665 $as_echo_n "(cached) " >&6
8666 else
8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8669 int i;
8670 int
8671 main ()
8672 {
8673
8674 ;
8675 return 0;
8676 }
8677 _ACEOF
8678 if ac_fn_c_try_link "$LINENO"; then :
8679 eval $cacheid=yes
8680 else
8681 eval $cacheid=no
8682 fi
8683 rm -f core conftest.err conftest.$ac_objext \
8684 conftest$ac_exeext conftest.$ac_ext
8685 fi
8686
8687
8688 CFLAGS="$xorg_testset_save_CFLAGS"
8689
8690 eval supported=\$$cacheid
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8692 $as_echo "$supported" >&6; }
8693 if test "$supported" = "yes" ; then
8694 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8695 found="yes"
8696 fi
8697 fi
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713 xorg_testset_save_CFLAGS="$CFLAGS"
8714
8715 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8718 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8719 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8724 int i;
8725 _ACEOF
8726 if ac_fn_c_try_compile "$LINENO"; then :
8727 xorg_cv_cc_flag_unknown_warning_option=yes
8728 else
8729 xorg_cv_cc_flag_unknown_warning_option=no
8730 fi
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 fi
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8734 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8735 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8736 CFLAGS="$xorg_testset_save_CFLAGS"
8737 fi
8738
8739 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8740 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8742 fi
8743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8745 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8746 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8750 /* end confdefs.h. */
8751 int i;
8752 _ACEOF
8753 if ac_fn_c_try_compile "$LINENO"; then :
8754 xorg_cv_cc_flag_unused_command_line_argument=yes
8755 else
8756 xorg_cv_cc_flag_unused_command_line_argument=no
8757 fi
8758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8759 fi
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8761 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8763 CFLAGS="$xorg_testset_save_CFLAGS"
8764 fi
8765
8766 found="no"
8767
8768 if test $found = "no" ; then
8769 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8771 fi
8772
8773 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8775 fi
8776
8777 CFLAGS="$CFLAGS -Wmain"
8778
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8780 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8781 cacheid=xorg_cv_cc_flag__Wmain
8782 if eval \${$cacheid+:} false; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8786 /* end confdefs.h. */
8787 int i;
8788 int
8789 main ()
8790 {
8791
8792 ;
8793 return 0;
8794 }
8795 _ACEOF
8796 if ac_fn_c_try_link "$LINENO"; then :
8797 eval $cacheid=yes
8798 else
8799 eval $cacheid=no
8800 fi
8801 rm -f core conftest.err conftest.$ac_objext \
8802 conftest$ac_exeext conftest.$ac_ext
8803 fi
8804
8805
8806 CFLAGS="$xorg_testset_save_CFLAGS"
8807
8808 eval supported=\$$cacheid
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8810 $as_echo "$supported" >&6; }
8811 if test "$supported" = "yes" ; then
8812 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8813 found="yes"
8814 fi
8815 fi
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831 xorg_testset_save_CFLAGS="$CFLAGS"
8832
8833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8836 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8837 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842 int i;
8843 _ACEOF
8844 if ac_fn_c_try_compile "$LINENO"; then :
8845 xorg_cv_cc_flag_unknown_warning_option=yes
8846 else
8847 xorg_cv_cc_flag_unknown_warning_option=no
8848 fi
8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 fi
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8852 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8853 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8854 CFLAGS="$xorg_testset_save_CFLAGS"
8855 fi
8856
8857 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8858 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8860 fi
8861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8863 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8864 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8865 $as_echo_n "(cached) " >&6
8866 else
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8869 int i;
8870 _ACEOF
8871 if ac_fn_c_try_compile "$LINENO"; then :
8872 xorg_cv_cc_flag_unused_command_line_argument=yes
8873 else
8874 xorg_cv_cc_flag_unused_command_line_argument=no
8875 fi
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877 fi
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8879 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8880 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8881 CFLAGS="$xorg_testset_save_CFLAGS"
8882 fi
8883
8884 found="no"
8885
8886 if test $found = "no" ; then
8887 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
8888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8889 fi
8890
8891 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
8892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8893 fi
8894
8895 CFLAGS="$CFLAGS -Wmissing-braces"
8896
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8898 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8899 cacheid=xorg_cv_cc_flag__Wmissing_braces
8900 if eval \${$cacheid+:} false; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8904 /* end confdefs.h. */
8905 int i;
8906 int
8907 main ()
8908 {
8909
8910 ;
8911 return 0;
8912 }
8913 _ACEOF
8914 if ac_fn_c_try_link "$LINENO"; then :
8915 eval $cacheid=yes
8916 else
8917 eval $cacheid=no
8918 fi
8919 rm -f core conftest.err conftest.$ac_objext \
8920 conftest$ac_exeext conftest.$ac_ext
8921 fi
8922
8923
8924 CFLAGS="$xorg_testset_save_CFLAGS"
8925
8926 eval supported=\$$cacheid
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8928 $as_echo "$supported" >&6; }
8929 if test "$supported" = "yes" ; then
8930 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
8931 found="yes"
8932 fi
8933 fi
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949 xorg_testset_save_CFLAGS="$CFLAGS"
8950
8951 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8954 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8955 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960 int i;
8961 _ACEOF
8962 if ac_fn_c_try_compile "$LINENO"; then :
8963 xorg_cv_cc_flag_unknown_warning_option=yes
8964 else
8965 xorg_cv_cc_flag_unknown_warning_option=no
8966 fi
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968 fi
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8970 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8972 CFLAGS="$xorg_testset_save_CFLAGS"
8973 fi
8974
8975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8978 fi
8979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8981 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8982 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8983 $as_echo_n "(cached) " >&6
8984 else
8985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8986 /* end confdefs.h. */
8987 int i;
8988 _ACEOF
8989 if ac_fn_c_try_compile "$LINENO"; then :
8990 xorg_cv_cc_flag_unused_command_line_argument=yes
8991 else
8992 xorg_cv_cc_flag_unused_command_line_argument=no
8993 fi
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 fi
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8997 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8999 CFLAGS="$xorg_testset_save_CFLAGS"
9000 fi
9001
9002 found="no"
9003
9004 if test $found = "no" ; then
9005 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9007 fi
9008
9009 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9011 fi
9012
9013 CFLAGS="$CFLAGS -Wsequence-point"
9014
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9016 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9017 cacheid=xorg_cv_cc_flag__Wsequence_point
9018 if eval \${$cacheid+:} false; then :
9019 $as_echo_n "(cached) " >&6
9020 else
9021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9022 /* end confdefs.h. */
9023 int i;
9024 int
9025 main ()
9026 {
9027
9028 ;
9029 return 0;
9030 }
9031 _ACEOF
9032 if ac_fn_c_try_link "$LINENO"; then :
9033 eval $cacheid=yes
9034 else
9035 eval $cacheid=no
9036 fi
9037 rm -f core conftest.err conftest.$ac_objext \
9038 conftest$ac_exeext conftest.$ac_ext
9039 fi
9040
9041
9042 CFLAGS="$xorg_testset_save_CFLAGS"
9043
9044 eval supported=\$$cacheid
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9046 $as_echo "$supported" >&6; }
9047 if test "$supported" = "yes" ; then
9048 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9049 found="yes"
9050 fi
9051 fi
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067 xorg_testset_save_CFLAGS="$CFLAGS"
9068
9069 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9072 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9073 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078 int i;
9079 _ACEOF
9080 if ac_fn_c_try_compile "$LINENO"; then :
9081 xorg_cv_cc_flag_unknown_warning_option=yes
9082 else
9083 xorg_cv_cc_flag_unknown_warning_option=no
9084 fi
9085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9086 fi
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9088 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9089 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9090 CFLAGS="$xorg_testset_save_CFLAGS"
9091 fi
9092
9093 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9096 fi
9097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9099 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9100 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9101 $as_echo_n "(cached) " >&6
9102 else
9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104 /* end confdefs.h. */
9105 int i;
9106 _ACEOF
9107 if ac_fn_c_try_compile "$LINENO"; then :
9108 xorg_cv_cc_flag_unused_command_line_argument=yes
9109 else
9110 xorg_cv_cc_flag_unused_command_line_argument=no
9111 fi
9112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9113 fi
9114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9115 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9117 CFLAGS="$xorg_testset_save_CFLAGS"
9118 fi
9119
9120 found="no"
9121
9122 if test $found = "no" ; then
9123 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9125 fi
9126
9127 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9129 fi
9130
9131 CFLAGS="$CFLAGS -Wreturn-type"
9132
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9134 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9135 cacheid=xorg_cv_cc_flag__Wreturn_type
9136 if eval \${$cacheid+:} false; then :
9137 $as_echo_n "(cached) " >&6
9138 else
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9141 int i;
9142 int
9143 main ()
9144 {
9145
9146 ;
9147 return 0;
9148 }
9149 _ACEOF
9150 if ac_fn_c_try_link "$LINENO"; then :
9151 eval $cacheid=yes
9152 else
9153 eval $cacheid=no
9154 fi
9155 rm -f core conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
9157 fi
9158
9159
9160 CFLAGS="$xorg_testset_save_CFLAGS"
9161
9162 eval supported=\$$cacheid
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9164 $as_echo "$supported" >&6; }
9165 if test "$supported" = "yes" ; then
9166 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9167 found="yes"
9168 fi
9169 fi
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185 xorg_testset_save_CFLAGS="$CFLAGS"
9186
9187 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9190 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9191 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9192 $as_echo_n "(cached) " >&6
9193 else
9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9196 int i;
9197 _ACEOF
9198 if ac_fn_c_try_compile "$LINENO"; then :
9199 xorg_cv_cc_flag_unknown_warning_option=yes
9200 else
9201 xorg_cv_cc_flag_unknown_warning_option=no
9202 fi
9203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204 fi
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9206 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9208 CFLAGS="$xorg_testset_save_CFLAGS"
9209 fi
9210
9211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9214 fi
9215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9217 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9218 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9219 $as_echo_n "(cached) " >&6
9220 else
9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9222 /* end confdefs.h. */
9223 int i;
9224 _ACEOF
9225 if ac_fn_c_try_compile "$LINENO"; then :
9226 xorg_cv_cc_flag_unused_command_line_argument=yes
9227 else
9228 xorg_cv_cc_flag_unused_command_line_argument=no
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9231 fi
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9233 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9235 CFLAGS="$xorg_testset_save_CFLAGS"
9236 fi
9237
9238 found="no"
9239
9240 if test $found = "no" ; then
9241 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9243 fi
9244
9245 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9247 fi
9248
9249 CFLAGS="$CFLAGS -Wtrigraphs"
9250
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9252 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9253 cacheid=xorg_cv_cc_flag__Wtrigraphs
9254 if eval \${$cacheid+:} false; then :
9255 $as_echo_n "(cached) " >&6
9256 else
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9259 int i;
9260 int
9261 main ()
9262 {
9263
9264 ;
9265 return 0;
9266 }
9267 _ACEOF
9268 if ac_fn_c_try_link "$LINENO"; then :
9269 eval $cacheid=yes
9270 else
9271 eval $cacheid=no
9272 fi
9273 rm -f core conftest.err conftest.$ac_objext \
9274 conftest$ac_exeext conftest.$ac_ext
9275 fi
9276
9277
9278 CFLAGS="$xorg_testset_save_CFLAGS"
9279
9280 eval supported=\$$cacheid
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9282 $as_echo "$supported" >&6; }
9283 if test "$supported" = "yes" ; then
9284 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9285 found="yes"
9286 fi
9287 fi
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303 xorg_testset_save_CFLAGS="$CFLAGS"
9304
9305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9308 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9309 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9310 $as_echo_n "(cached) " >&6
9311 else
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9314 int i;
9315 _ACEOF
9316 if ac_fn_c_try_compile "$LINENO"; then :
9317 xorg_cv_cc_flag_unknown_warning_option=yes
9318 else
9319 xorg_cv_cc_flag_unknown_warning_option=no
9320 fi
9321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 fi
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9324 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9326 CFLAGS="$xorg_testset_save_CFLAGS"
9327 fi
9328
9329 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9332 fi
9333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9335 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9336 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9337 $as_echo_n "(cached) " >&6
9338 else
9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340 /* end confdefs.h. */
9341 int i;
9342 _ACEOF
9343 if ac_fn_c_try_compile "$LINENO"; then :
9344 xorg_cv_cc_flag_unused_command_line_argument=yes
9345 else
9346 xorg_cv_cc_flag_unused_command_line_argument=no
9347 fi
9348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9349 fi
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9351 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9353 CFLAGS="$xorg_testset_save_CFLAGS"
9354 fi
9355
9356 found="no"
9357
9358 if test $found = "no" ; then
9359 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9361 fi
9362
9363 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9365 fi
9366
9367 CFLAGS="$CFLAGS -Warray-bounds"
9368
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9370 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9371 cacheid=xorg_cv_cc_flag__Warray_bounds
9372 if eval \${$cacheid+:} false; then :
9373 $as_echo_n "(cached) " >&6
9374 else
9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h. */
9377 int i;
9378 int
9379 main ()
9380 {
9381
9382 ;
9383 return 0;
9384 }
9385 _ACEOF
9386 if ac_fn_c_try_link "$LINENO"; then :
9387 eval $cacheid=yes
9388 else
9389 eval $cacheid=no
9390 fi
9391 rm -f core conftest.err conftest.$ac_objext \
9392 conftest$ac_exeext conftest.$ac_ext
9393 fi
9394
9395
9396 CFLAGS="$xorg_testset_save_CFLAGS"
9397
9398 eval supported=\$$cacheid
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9400 $as_echo "$supported" >&6; }
9401 if test "$supported" = "yes" ; then
9402 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9403 found="yes"
9404 fi
9405 fi
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421 xorg_testset_save_CFLAGS="$CFLAGS"
9422
9423 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9426 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9427 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9428 $as_echo_n "(cached) " >&6
9429 else
9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9432 int i;
9433 _ACEOF
9434 if ac_fn_c_try_compile "$LINENO"; then :
9435 xorg_cv_cc_flag_unknown_warning_option=yes
9436 else
9437 xorg_cv_cc_flag_unknown_warning_option=no
9438 fi
9439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9440 fi
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9442 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9444 CFLAGS="$xorg_testset_save_CFLAGS"
9445 fi
9446
9447 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9450 fi
9451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9453 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9454 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9455 $as_echo_n "(cached) " >&6
9456 else
9457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9458 /* end confdefs.h. */
9459 int i;
9460 _ACEOF
9461 if ac_fn_c_try_compile "$LINENO"; then :
9462 xorg_cv_cc_flag_unused_command_line_argument=yes
9463 else
9464 xorg_cv_cc_flag_unused_command_line_argument=no
9465 fi
9466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9467 fi
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9469 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9471 CFLAGS="$xorg_testset_save_CFLAGS"
9472 fi
9473
9474 found="no"
9475
9476 if test $found = "no" ; then
9477 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9479 fi
9480
9481 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9483 fi
9484
9485 CFLAGS="$CFLAGS -Wwrite-strings"
9486
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9488 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9489 cacheid=xorg_cv_cc_flag__Wwrite_strings
9490 if eval \${$cacheid+:} false; then :
9491 $as_echo_n "(cached) " >&6
9492 else
9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494 /* end confdefs.h. */
9495 int i;
9496 int
9497 main ()
9498 {
9499
9500 ;
9501 return 0;
9502 }
9503 _ACEOF
9504 if ac_fn_c_try_link "$LINENO"; then :
9505 eval $cacheid=yes
9506 else
9507 eval $cacheid=no
9508 fi
9509 rm -f core conftest.err conftest.$ac_objext \
9510 conftest$ac_exeext conftest.$ac_ext
9511 fi
9512
9513
9514 CFLAGS="$xorg_testset_save_CFLAGS"
9515
9516 eval supported=\$$cacheid
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9518 $as_echo "$supported" >&6; }
9519 if test "$supported" = "yes" ; then
9520 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9521 found="yes"
9522 fi
9523 fi
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539 xorg_testset_save_CFLAGS="$CFLAGS"
9540
9541 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9544 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9545 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9550 int i;
9551 _ACEOF
9552 if ac_fn_c_try_compile "$LINENO"; then :
9553 xorg_cv_cc_flag_unknown_warning_option=yes
9554 else
9555 xorg_cv_cc_flag_unknown_warning_option=no
9556 fi
9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558 fi
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9560 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9562 CFLAGS="$xorg_testset_save_CFLAGS"
9563 fi
9564
9565 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9568 fi
9569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9571 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9572 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9573 $as_echo_n "(cached) " >&6
9574 else
9575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576 /* end confdefs.h. */
9577 int i;
9578 _ACEOF
9579 if ac_fn_c_try_compile "$LINENO"; then :
9580 xorg_cv_cc_flag_unused_command_line_argument=yes
9581 else
9582 xorg_cv_cc_flag_unused_command_line_argument=no
9583 fi
9584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9585 fi
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9587 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9589 CFLAGS="$xorg_testset_save_CFLAGS"
9590 fi
9591
9592 found="no"
9593
9594 if test $found = "no" ; then
9595 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9597 fi
9598
9599 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9601 fi
9602
9603 CFLAGS="$CFLAGS -Waddress"
9604
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9606 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9607 cacheid=xorg_cv_cc_flag__Waddress
9608 if eval \${$cacheid+:} false; then :
9609 $as_echo_n "(cached) " >&6
9610 else
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9613 int i;
9614 int
9615 main ()
9616 {
9617
9618 ;
9619 return 0;
9620 }
9621 _ACEOF
9622 if ac_fn_c_try_link "$LINENO"; then :
9623 eval $cacheid=yes
9624 else
9625 eval $cacheid=no
9626 fi
9627 rm -f core conftest.err conftest.$ac_objext \
9628 conftest$ac_exeext conftest.$ac_ext
9629 fi
9630
9631
9632 CFLAGS="$xorg_testset_save_CFLAGS"
9633
9634 eval supported=\$$cacheid
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9636 $as_echo "$supported" >&6; }
9637 if test "$supported" = "yes" ; then
9638 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9639 found="yes"
9640 fi
9641 fi
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657 xorg_testset_save_CFLAGS="$CFLAGS"
9658
9659 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9662 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9663 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9668 int i;
9669 _ACEOF
9670 if ac_fn_c_try_compile "$LINENO"; then :
9671 xorg_cv_cc_flag_unknown_warning_option=yes
9672 else
9673 xorg_cv_cc_flag_unknown_warning_option=no
9674 fi
9675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9676 fi
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9678 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9680 CFLAGS="$xorg_testset_save_CFLAGS"
9681 fi
9682
9683 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9686 fi
9687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9689 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9690 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9691 $as_echo_n "(cached) " >&6
9692 else
9693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9694 /* end confdefs.h. */
9695 int i;
9696 _ACEOF
9697 if ac_fn_c_try_compile "$LINENO"; then :
9698 xorg_cv_cc_flag_unused_command_line_argument=yes
9699 else
9700 xorg_cv_cc_flag_unused_command_line_argument=no
9701 fi
9702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9703 fi
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9705 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9707 CFLAGS="$xorg_testset_save_CFLAGS"
9708 fi
9709
9710 found="no"
9711
9712 if test $found = "no" ; then
9713 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9715 fi
9716
9717 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9719 fi
9720
9721 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9722
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9724 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9725 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9726 if eval \${$cacheid+:} false; then :
9727 $as_echo_n "(cached) " >&6
9728 else
9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9730 /* end confdefs.h. */
9731 int i;
9732 int
9733 main ()
9734 {
9735
9736 ;
9737 return 0;
9738 }
9739 _ACEOF
9740 if ac_fn_c_try_link "$LINENO"; then :
9741 eval $cacheid=yes
9742 else
9743 eval $cacheid=no
9744 fi
9745 rm -f core conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
9747 fi
9748
9749
9750 CFLAGS="$xorg_testset_save_CFLAGS"
9751
9752 eval supported=\$$cacheid
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9754 $as_echo "$supported" >&6; }
9755 if test "$supported" = "yes" ; then
9756 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9757 found="yes"
9758 fi
9759 fi
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775 xorg_testset_save_CFLAGS="$CFLAGS"
9776
9777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9780 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9781 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9782 $as_echo_n "(cached) " >&6
9783 else
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9786 int i;
9787 _ACEOF
9788 if ac_fn_c_try_compile "$LINENO"; then :
9789 xorg_cv_cc_flag_unknown_warning_option=yes
9790 else
9791 xorg_cv_cc_flag_unknown_warning_option=no
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794 fi
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9796 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9798 CFLAGS="$xorg_testset_save_CFLAGS"
9799 fi
9800
9801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9804 fi
9805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9807 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9808 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9813 int i;
9814 _ACEOF
9815 if ac_fn_c_try_compile "$LINENO"; then :
9816 xorg_cv_cc_flag_unused_command_line_argument=yes
9817 else
9818 xorg_cv_cc_flag_unused_command_line_argument=no
9819 fi
9820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9821 fi
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9823 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9825 CFLAGS="$xorg_testset_save_CFLAGS"
9826 fi
9827
9828 found="no"
9829
9830 if test $found = "no" ; then
9831 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9833 fi
9834
9835 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9837 fi
9838
9839 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9840
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9842 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9843 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9844 if eval \${$cacheid+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846 else
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9849 int i;
9850 int
9851 main ()
9852 {
9853
9854 ;
9855 return 0;
9856 }
9857 _ACEOF
9858 if ac_fn_c_try_link "$LINENO"; then :
9859 eval $cacheid=yes
9860 else
9861 eval $cacheid=no
9862 fi
9863 rm -f core conftest.err conftest.$ac_objext \
9864 conftest$ac_exeext conftest.$ac_ext
9865 fi
9866
9867
9868 CFLAGS="$xorg_testset_save_CFLAGS"
9869
9870 eval supported=\$$cacheid
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9872 $as_echo "$supported" >&6; }
9873 if test "$supported" = "yes" ; then
9874 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9875 found="yes"
9876 fi
9877 fi
9878
9879
9880 fi
9881
9882
9883
9884
9885
9886
9887
9888 CWARNFLAGS="$BASE_CFLAGS"
9889 if test "x$GCC" = xyes ; then
9890 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9891 fi
9892
9893
9894
9895
9896
9897
9898
9899
9900 # Check whether --enable-strict-compilation was given.
9901 if test "${enable_strict_compilation+set}" = set; then :
9902 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9903 else
9904 STRICT_COMPILE=no
9905 fi
9906
9907
9908
9909
9910
9911
9912 STRICT_CFLAGS=""
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926 xorg_testset_save_CFLAGS="$CFLAGS"
9927
9928 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9931 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9932 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9933 $as_echo_n "(cached) " >&6
9934 else
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9937 int i;
9938 _ACEOF
9939 if ac_fn_c_try_compile "$LINENO"; then :
9940 xorg_cv_cc_flag_unknown_warning_option=yes
9941 else
9942 xorg_cv_cc_flag_unknown_warning_option=no
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9945 fi
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9947 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9949 CFLAGS="$xorg_testset_save_CFLAGS"
9950 fi
9951
9952 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9955 fi
9956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9958 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9959 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9964 int i;
9965 _ACEOF
9966 if ac_fn_c_try_compile "$LINENO"; then :
9967 xorg_cv_cc_flag_unused_command_line_argument=yes
9968 else
9969 xorg_cv_cc_flag_unused_command_line_argument=no
9970 fi
9971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9972 fi
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9974 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9976 CFLAGS="$xorg_testset_save_CFLAGS"
9977 fi
9978
9979 found="no"
9980
9981 if test $found = "no" ; then
9982 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
9983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9984 fi
9985
9986 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
9987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9988 fi
9989
9990 CFLAGS="$CFLAGS -pedantic"
9991
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
9993 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
9994 cacheid=xorg_cv_cc_flag__pedantic
9995 if eval \${$cacheid+:} false; then :
9996 $as_echo_n "(cached) " >&6
9997 else
9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999 /* end confdefs.h. */
10000 int i;
10001 int
10002 main ()
10003 {
10004
10005 ;
10006 return 0;
10007 }
10008 _ACEOF
10009 if ac_fn_c_try_link "$LINENO"; then :
10010 eval $cacheid=yes
10011 else
10012 eval $cacheid=no
10013 fi
10014 rm -f core conftest.err conftest.$ac_objext \
10015 conftest$ac_exeext conftest.$ac_ext
10016 fi
10017
10018
10019 CFLAGS="$xorg_testset_save_CFLAGS"
10020
10021 eval supported=\$$cacheid
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10023 $as_echo "$supported" >&6; }
10024 if test "$supported" = "yes" ; then
10025 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10026 found="yes"
10027 fi
10028 fi
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044 xorg_testset_save_CFLAGS="$CFLAGS"
10045
10046 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10049 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10050 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10051 $as_echo_n "(cached) " >&6
10052 else
10053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054 /* end confdefs.h. */
10055 int i;
10056 _ACEOF
10057 if ac_fn_c_try_compile "$LINENO"; then :
10058 xorg_cv_cc_flag_unknown_warning_option=yes
10059 else
10060 xorg_cv_cc_flag_unknown_warning_option=no
10061 fi
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 fi
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10065 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10067 CFLAGS="$xorg_testset_save_CFLAGS"
10068 fi
10069
10070 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10073 fi
10074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10076 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10077 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10078 $as_echo_n "(cached) " >&6
10079 else
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10082 int i;
10083 _ACEOF
10084 if ac_fn_c_try_compile "$LINENO"; then :
10085 xorg_cv_cc_flag_unused_command_line_argument=yes
10086 else
10087 xorg_cv_cc_flag_unused_command_line_argument=no
10088 fi
10089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10090 fi
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10092 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10094 CFLAGS="$xorg_testset_save_CFLAGS"
10095 fi
10096
10097 found="no"
10098
10099 if test $found = "no" ; then
10100 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10102 fi
10103
10104 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10106 fi
10107
10108 CFLAGS="$CFLAGS -Werror"
10109
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10111 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10112 cacheid=xorg_cv_cc_flag__Werror
10113 if eval \${$cacheid+:} false; then :
10114 $as_echo_n "(cached) " >&6
10115 else
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118 int i;
10119 int
10120 main ()
10121 {
10122
10123 ;
10124 return 0;
10125 }
10126 _ACEOF
10127 if ac_fn_c_try_link "$LINENO"; then :
10128 eval $cacheid=yes
10129 else
10130 eval $cacheid=no
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext \
10133 conftest$ac_exeext conftest.$ac_ext
10134 fi
10135
10136
10137 CFLAGS="$xorg_testset_save_CFLAGS"
10138
10139 eval supported=\$$cacheid
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10141 $as_echo "$supported" >&6; }
10142 if test "$supported" = "yes" ; then
10143 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10144 found="yes"
10145 fi
10146 fi
10147
10148 if test $found = "no" ; then
10149 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10151 fi
10152
10153 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10155 fi
10156
10157 CFLAGS="$CFLAGS -errwarn"
10158
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10160 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10161 cacheid=xorg_cv_cc_flag__errwarn
10162 if eval \${$cacheid+:} false; then :
10163 $as_echo_n "(cached) " >&6
10164 else
10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10166 /* end confdefs.h. */
10167 int i;
10168 int
10169 main ()
10170 {
10171
10172 ;
10173 return 0;
10174 }
10175 _ACEOF
10176 if ac_fn_c_try_link "$LINENO"; then :
10177 eval $cacheid=yes
10178 else
10179 eval $cacheid=no
10180 fi
10181 rm -f core conftest.err conftest.$ac_objext \
10182 conftest$ac_exeext conftest.$ac_ext
10183 fi
10184
10185
10186 CFLAGS="$xorg_testset_save_CFLAGS"
10187
10188 eval supported=\$$cacheid
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10190 $as_echo "$supported" >&6; }
10191 if test "$supported" = "yes" ; then
10192 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10193 found="yes"
10194 fi
10195 fi
10196
10197
10198
10199 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10200 # activate it with -Werror, so we add it here explicitly.
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214 xorg_testset_save_CFLAGS="$CFLAGS"
10215
10216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10219 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10220 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10221 $as_echo_n "(cached) " >&6
10222 else
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225 int i;
10226 _ACEOF
10227 if ac_fn_c_try_compile "$LINENO"; then :
10228 xorg_cv_cc_flag_unknown_warning_option=yes
10229 else
10230 xorg_cv_cc_flag_unknown_warning_option=no
10231 fi
10232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10233 fi
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10235 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10237 CFLAGS="$xorg_testset_save_CFLAGS"
10238 fi
10239
10240 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10243 fi
10244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10246 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10247 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10248 $as_echo_n "(cached) " >&6
10249 else
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10252 int i;
10253 _ACEOF
10254 if ac_fn_c_try_compile "$LINENO"; then :
10255 xorg_cv_cc_flag_unused_command_line_argument=yes
10256 else
10257 xorg_cv_cc_flag_unused_command_line_argument=no
10258 fi
10259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10260 fi
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10262 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10263 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10264 CFLAGS="$xorg_testset_save_CFLAGS"
10265 fi
10266
10267 found="no"
10268
10269 if test $found = "no" ; then
10270 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
10271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10272 fi
10273
10274 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
10275 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10276 fi
10277
10278 CFLAGS="$CFLAGS -Werror=attributes"
10279
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10281 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10282 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
10283 if eval \${$cacheid+:} false; then :
10284 $as_echo_n "(cached) " >&6
10285 else
10286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10287 /* end confdefs.h. */
10288 int i;
10289 int
10290 main ()
10291 {
10292
10293 ;
10294 return 0;
10295 }
10296 _ACEOF
10297 if ac_fn_c_try_link "$LINENO"; then :
10298 eval $cacheid=yes
10299 else
10300 eval $cacheid=no
10301 fi
10302 rm -f core conftest.err conftest.$ac_objext \
10303 conftest$ac_exeext conftest.$ac_ext
10304 fi
10305
10306
10307 CFLAGS="$xorg_testset_save_CFLAGS"
10308
10309 eval supported=\$$cacheid
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10311 $as_echo "$supported" >&6; }
10312 if test "$supported" = "yes" ; then
10313 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10314 found="yes"
10315 fi
10316 fi
10317
10318
10319
10320 if test "x$STRICT_COMPILE" = "xyes"; then
10321 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10322 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10323 fi
10324
10325
10326
10327
10328
10329
10330 cat >>confdefs.h <<_ACEOF
10331 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10332 _ACEOF
10333
10334 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10335 if test "x$PVM" = "x"; then
10336 PVM="0"
10337 fi
10338
10339 cat >>confdefs.h <<_ACEOF
10340 #define PACKAGE_VERSION_MINOR $PVM
10341 _ACEOF
10342
10343 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10344 if test "x$PVP" = "x"; then
10345 PVP="0"
10346 fi
10347
10348 cat >>confdefs.h <<_ACEOF
10349 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10350 _ACEOF
10351
10352
10353
10354 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10355 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10356 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10357 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10358
10359
10360
10361
10362 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10363 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10364 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10365 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10366 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10367
10368
10369
10370
10371
10372
10373 if test x$APP_MAN_SUFFIX = x ; then
10374 APP_MAN_SUFFIX=1
10375 fi
10376 if test x$APP_MAN_DIR = x ; then
10377 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10378 fi
10379
10380 if test x$LIB_MAN_SUFFIX = x ; then
10381 LIB_MAN_SUFFIX=3
10382 fi
10383 if test x$LIB_MAN_DIR = x ; then
10384 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10385 fi
10386
10387 if test x$FILE_MAN_SUFFIX = x ; then
10388 case $host_os in
10389 solaris*) FILE_MAN_SUFFIX=4 ;;
10390 *) FILE_MAN_SUFFIX=5 ;;
10391 esac
10392 fi
10393 if test x$FILE_MAN_DIR = x ; then
10394 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10395 fi
10396
10397 if test x$MISC_MAN_SUFFIX = x ; then
10398 case $host_os in
10399 solaris*) MISC_MAN_SUFFIX=5 ;;
10400 *) MISC_MAN_SUFFIX=7 ;;
10401 esac
10402 fi
10403 if test x$MISC_MAN_DIR = x ; then
10404 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10405 fi
10406
10407 if test x$DRIVER_MAN_SUFFIX = x ; then
10408 case $host_os in
10409 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10410 *) DRIVER_MAN_SUFFIX=4 ;;
10411 esac
10412 fi
10413 if test x$DRIVER_MAN_DIR = x ; then
10414 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10415 fi
10416
10417 if test x$ADMIN_MAN_SUFFIX = x ; then
10418 case $host_os in
10419 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10420 *) ADMIN_MAN_SUFFIX=8 ;;
10421 esac
10422 fi
10423 if test x$ADMIN_MAN_DIR = x ; then
10424 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10425 fi
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441 XORG_MAN_PAGE="X Version 11"
10442
10443 MAN_SUBSTS="\
10444 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10445 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10446 -e 's|__xservername__|Xorg|g' \
10447 -e 's|__xconfigfile__|xorg.conf|g' \
10448 -e 's|__projectroot__|\$(prefix)|g' \
10449 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10450 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10451 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10452 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10453 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10454 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10455 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10456
10457
10458
10459 # Check whether --enable-silent-rules was given.
10460 if test "${enable_silent_rules+set}" = set; then :
10461 enableval=$enable_silent_rules;
10462 fi
10463
10464 case $enable_silent_rules in
10465 yes) AM_DEFAULT_VERBOSITY=0;;
10466 no) AM_DEFAULT_VERBOSITY=1;;
10467 *) AM_DEFAULT_VERBOSITY=0;;
10468 esac
10469 AM_BACKSLASH='\'
10470
10471
10472
10473
10474 pkg_failed=no
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RGB" >&5
10476 $as_echo_n "checking for RGB... " >&6; }
10477
10478 if test -n "$RGB_CFLAGS"; then
10479 pkg_cv_RGB_CFLAGS="$RGB_CFLAGS"
10480 elif test -n "$PKG_CONFIG"; then
10481 if test -n "$PKG_CONFIG" && \
10482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10483 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10484 ac_status=$?
10485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10486 test $ac_status = 0; }; then
10487 pkg_cv_RGB_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
10488 else
10489 pkg_failed=yes
10490 fi
10491 else
10492 pkg_failed=untried
10493 fi
10494 if test -n "$RGB_LIBS"; then
10495 pkg_cv_RGB_LIBS="$RGB_LIBS"
10496 elif test -n "$PKG_CONFIG"; then
10497 if test -n "$PKG_CONFIG" && \
10498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
10499 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
10500 ac_status=$?
10501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10502 test $ac_status = 0; }; then
10503 pkg_cv_RGB_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
10504 else
10505 pkg_failed=yes
10506 fi
10507 else
10508 pkg_failed=untried
10509 fi
10510
10511
10512
10513 if test $pkg_failed = yes; then
10514
10515 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10516 _pkg_short_errors_supported=yes
10517 else
10518 _pkg_short_errors_supported=no
10519 fi
10520 if test $_pkg_short_errors_supported = yes; then
10521 RGB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
10522 else
10523 RGB_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
10524 fi
10525 # Put the nasty error message in config.log where it belongs
10526 echo "$RGB_PKG_ERRORS" >&5
10527
10528 as_fn_error $? "Package requirements (xproto) were not met:
10529
10530 $RGB_PKG_ERRORS
10531
10532 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10533 installed software in a non-standard prefix.
10534
10535 Alternatively, you may set the environment variables RGB_CFLAGS
10536 and RGB_LIBS to avoid the need to call pkg-config.
10537 See the pkg-config man page for more details.
10538 " "$LINENO" 5
10539 elif test $pkg_failed = untried; then
10540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10542 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10543 is in your PATH or set the PKG_CONFIG environment variable to the full
10544 path to pkg-config.
10545
10546 Alternatively, you may set the environment variables RGB_CFLAGS
10547 and RGB_LIBS to avoid the need to call pkg-config.
10548 See the pkg-config man page for more details.
10549
10550 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10551 See \`config.log' for more details" "$LINENO" 5; }
10552 else
10553 RGB_CFLAGS=$pkg_cv_RGB_CFLAGS
10554 RGB_LIBS=$pkg_cv_RGB_LIBS
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10556 $as_echo "yes" >&6; }
10557 :
10558 fi
10559
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rgb database location" >&5
10561 $as_echo_n "checking for rgb database location... " >&6; }
10562
10563 # Check whether --with-rgb-db-dir was given.
10564 if test "${with_rgb_db_dir+set}" = set; then :
10565 withval=$with_rgb_db_dir; db_path=$withval
10566 else
10567 db_path=${datadir}/X11/rgb
10568 fi
10569
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_path" >&5
10571 $as_echo "$db_path" >&6; }
10572 db_file=`basename $db_path`
10573 db_dir=`dirname $db_path`
10574
10575
10576
10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rgb database format" >&5
10578 $as_echo_n "checking for rgb database format... " >&6; }
10579
10580 # Check whether --with-rgb-db-type was given.
10581 if test "${with_rgb_db_type+set}" = set; then :
10582 withval=$with_rgb_db_type; db_type=$withval
10583 else
10584 db_type="text"
10585 fi
10586
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $db_type" >&5
10588 $as_echo "$db_type" >&6; }
10589
10590 RGB_DB_TYPE=$db_type
10591
10592 case $db_type in
10593 text)
10594 RGB_DB_FILES=""
10595
10596 $as_echo "#define USE_RGB_TXT 1" >>confdefs.h
10597
10598 ;;
10599 dbm)
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbminit" >&5
10601 $as_echo_n "checking for library containing dbminit... " >&6; }
10602 if ${ac_cv_search_dbminit+:} false; then :
10603 $as_echo_n "(cached) " >&6
10604 else
10605 ac_func_search_save_LIBS=$LIBS
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10608
10609 /* Override any GCC internal prototype to avoid an error.
10610 Use char because int might match the return type of a GCC
10611 builtin and then its argument prototype would still apply. */
10612 #ifdef __cplusplus
10613 extern "C"
10614 #endif
10615 char dbminit ();
10616 int
10617 main ()
10618 {
10619 return dbminit ();
10620 ;
10621 return 0;
10622 }
10623 _ACEOF
10624 for ac_lib in '' db dbm nsl; do
10625 if test -z "$ac_lib"; then
10626 ac_res="none required"
10627 else
10628 ac_res=-l$ac_lib
10629 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10630 fi
10631 if ac_fn_c_try_link "$LINENO"; then :
10632 ac_cv_search_dbminit=$ac_res
10633 fi
10634 rm -f core conftest.err conftest.$ac_objext \
10635 conftest$ac_exeext
10636 if ${ac_cv_search_dbminit+:} false; then :
10637 break
10638 fi
10639 done
10640 if ${ac_cv_search_dbminit+:} false; then :
10641
10642 else
10643 ac_cv_search_dbminit=no
10644 fi
10645 rm conftest.$ac_ext
10646 LIBS=$ac_func_search_save_LIBS
10647 fi
10648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbminit" >&5
10649 $as_echo "$ac_cv_search_dbminit" >&6; }
10650 ac_res=$ac_cv_search_dbminit
10651 if test "$ac_res" != no; then :
10652 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10653
10654 else
10655 as_fn_error $? "dbm requested but dbminit() not found in any libraries" "$LINENO" 5
10656 fi
10657
10658 ac_fn_c_check_header_mongrel "$LINENO" "dbm.h" "ac_cv_header_dbm_h" "$ac_includes_default"
10659 if test "x$ac_cv_header_dbm_h" = xyes; then :
10660 DBM_HEADER='<dbm.h>'
10661 else
10662 ac_fn_c_check_header_mongrel "$LINENO" "rpcsvc/dbm.h" "ac_cv_header_rpcsvc_dbm_h" "$ac_includes_default"
10663 if test "x$ac_cv_header_rpcsvc_dbm_h" = xyes; then :
10664 DBM_HEADER='<rpcsvc/dbm.h>'
10665 else
10666 as_fn_error $? "dbm requested but dbm.h not found" "$LINENO" 5
10667 fi
10668
10669
10670 fi
10671
10672
10673
10674 pkg_failed=no
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
10676 $as_echo_n "checking for XORG... " >&6; }
10677
10678 if test -n "$XORG_CFLAGS"; then
10679 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
10680 elif test -n "$PKG_CONFIG"; then
10681 if test -n "$PKG_CONFIG" && \
10682 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
10683 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
10684 ac_status=$?
10685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10686 test $ac_status = 0; }; then
10687 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null`
10688 else
10689 pkg_failed=yes
10690 fi
10691 else
10692 pkg_failed=untried
10693 fi
10694 if test -n "$XORG_LIBS"; then
10695 pkg_cv_XORG_LIBS="$XORG_LIBS"
10696 elif test -n "$PKG_CONFIG"; then
10697 if test -n "$PKG_CONFIG" && \
10698 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
10699 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
10700 ac_status=$?
10701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10702 test $ac_status = 0; }; then
10703 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null`
10704 else
10705 pkg_failed=yes
10706 fi
10707 else
10708 pkg_failed=untried
10709 fi
10710
10711
10712
10713 if test $pkg_failed = yes; then
10714
10715 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10716 _pkg_short_errors_supported=yes
10717 else
10718 _pkg_short_errors_supported=no
10719 fi
10720 if test $_pkg_short_errors_supported = yes; then
10721 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server" 2>&1`
10722 else
10723 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server" 2>&1`
10724 fi
10725 # Put the nasty error message in config.log where it belongs
10726 echo "$XORG_PKG_ERRORS" >&5
10727
10728 as_fn_error $? "Package requirements (xorg-server) were not met:
10729
10730 $XORG_PKG_ERRORS
10731
10732 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10733 installed software in a non-standard prefix.
10734
10735 Alternatively, you may set the environment variables XORG_CFLAGS
10736 and XORG_LIBS to avoid the need to call pkg-config.
10737 See the pkg-config man page for more details.
10738 " "$LINENO" 5
10739 elif test $pkg_failed = untried; then
10740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10742 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10743 is in your PATH or set the PKG_CONFIG environment variable to the full
10744 path to pkg-config.
10745
10746 Alternatively, you may set the environment variables XORG_CFLAGS
10747 and XORG_LIBS to avoid the need to call pkg-config.
10748 See the pkg-config man page for more details.
10749
10750 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10751 See \`config.log' for more details" "$LINENO" 5; }
10752 else
10753 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
10754 XORG_LIBS=$pkg_cv_XORG_LIBS
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10756 $as_echo "yes" >&6; }
10757 :
10758 fi
10759 RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS"
10760 RGB_DB_FILES='$(db_file).dir $(db_file).pag'
10761 ;;
10762 ndbm)
10763 # Find a dbm or ndbm implementation
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
10765 $as_echo_n "checking for library containing dbm_open... " >&6; }
10766 if ${ac_cv_search_dbm_open+:} false; then :
10767 $as_echo_n "(cached) " >&6
10768 else
10769 ac_func_search_save_LIBS=$LIBS
10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* end confdefs.h. */
10772
10773 /* Override any GCC internal prototype to avoid an error.
10774 Use char because int might match the return type of a GCC
10775 builtin and then its argument prototype would still apply. */
10776 #ifdef __cplusplus
10777 extern "C"
10778 #endif
10779 char dbm_open ();
10780 int
10781 main ()
10782 {
10783 return dbm_open ();
10784 ;
10785 return 0;
10786 }
10787 _ACEOF
10788 for ac_lib in '' db ndbm dbm; do
10789 if test -z "$ac_lib"; then
10790 ac_res="none required"
10791 else
10792 ac_res=-l$ac_lib
10793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10794 fi
10795 if ac_fn_c_try_link "$LINENO"; then :
10796 ac_cv_search_dbm_open=$ac_res
10797 fi
10798 rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext
10800 if ${ac_cv_search_dbm_open+:} false; then :
10801 break
10802 fi
10803 done
10804 if ${ac_cv_search_dbm_open+:} false; then :
10805
10806 else
10807 ac_cv_search_dbm_open=no
10808 fi
10809 rm conftest.$ac_ext
10810 LIBS=$ac_func_search_save_LIBS
10811 fi
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
10813 $as_echo "$ac_cv_search_dbm_open" >&6; }
10814 ac_res=$ac_cv_search_dbm_open
10815 if test "$ac_res" != no; then :
10816 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10817
10818 $as_echo "#define NDBM 1" >>confdefs.h
10819
10820 else
10821 as_fn_error $? "ndbm requested but dbm_open() not found in any libraries" "$LINENO" 5
10822 fi
10823
10824 DBM_HEADER='<ndbm.h>'
10825
10826 pkg_failed=no
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XORG" >&5
10828 $as_echo_n "checking for XORG... " >&6; }
10829
10830 if test -n "$XORG_CFLAGS"; then
10831 pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
10832 elif test -n "$PKG_CONFIG"; then
10833 if test -n "$PKG_CONFIG" && \
10834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
10835 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
10836 ac_status=$?
10837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10838 test $ac_status = 0; }; then
10839 pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server" 2>/dev/null`
10840 else
10841 pkg_failed=yes
10842 fi
10843 else
10844 pkg_failed=untried
10845 fi
10846 if test -n "$XORG_LIBS"; then
10847 pkg_cv_XORG_LIBS="$XORG_LIBS"
10848 elif test -n "$PKG_CONFIG"; then
10849 if test -n "$PKG_CONFIG" && \
10850 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-server\""; } >&5
10851 ($PKG_CONFIG --exists --print-errors "xorg-server") 2>&5
10852 ac_status=$?
10853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10854 test $ac_status = 0; }; then
10855 pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server" 2>/dev/null`
10856 else
10857 pkg_failed=yes
10858 fi
10859 else
10860 pkg_failed=untried
10861 fi
10862
10863
10864
10865 if test $pkg_failed = yes; then
10866
10867 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10868 _pkg_short_errors_supported=yes
10869 else
10870 _pkg_short_errors_supported=no
10871 fi
10872 if test $_pkg_short_errors_supported = yes; then
10873 XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xorg-server" 2>&1`
10874 else
10875 XORG_PKG_ERRORS=`$PKG_CONFIG --print-errors "xorg-server" 2>&1`
10876 fi
10877 # Put the nasty error message in config.log where it belongs
10878 echo "$XORG_PKG_ERRORS" >&5
10879
10880 as_fn_error $? "Package requirements (xorg-server) were not met:
10881
10882 $XORG_PKG_ERRORS
10883
10884 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10885 installed software in a non-standard prefix.
10886
10887 Alternatively, you may set the environment variables XORG_CFLAGS
10888 and XORG_LIBS to avoid the need to call pkg-config.
10889 See the pkg-config man page for more details.
10890 " "$LINENO" 5
10891 elif test $pkg_failed = untried; then
10892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10894 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10895 is in your PATH or set the PKG_CONFIG environment variable to the full
10896 path to pkg-config.
10897
10898 Alternatively, you may set the environment variables XORG_CFLAGS
10899 and XORG_LIBS to avoid the need to call pkg-config.
10900 See the pkg-config man page for more details.
10901
10902 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10903 See \`config.log' for more details" "$LINENO" 5; }
10904 else
10905 XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
10906 XORG_LIBS=$pkg_cv_XORG_LIBS
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10908 $as_echo "yes" >&6; }
10909 :
10910 fi
10911 RGB_CFLAGS="$RGB_CFLAGS $XORG_CFLAGS"
10912 RGB_DB_FILES='$(db_file).dir $(db_file).pag'
10913 ;;
10914 esac
10915 if test x$DBM_HEADER != x ; then
10916
10917 cat >>confdefs.h <<_ACEOF
10918 #define DBM_HEADER $DBM_HEADER
10919 _ACEOF
10920
10921 fi
10922
10923
10924 if test x$db_type != xtext; then
10925 RGB_DB_TRUE=
10926 RGB_DB_FALSE='#'
10927 else
10928 RGB_DB_TRUE='#'
10929 RGB_DB_FALSE=
10930 fi
10931
10932
10933 ac_config_files="$ac_config_files Makefile man/Makefile"
10934
10935
10936 cat >confcache <<\_ACEOF
10937 # This file is a shell script that caches the results of configure
10938 # tests run on this system so they can be shared between configure
10939 # scripts and configure runs, see configure's option --config-cache.
10940 # It is not useful on other systems. If it contains results you don't
10941 # want to keep, you may remove or edit it.
10942 #
10943 # config.status only pays attention to the cache file if you give it
10944 # the --recheck option to rerun configure.
10945 #
10946 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10947 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10948 # following values.
10949
10950 _ACEOF
10951
10952 # The following way of writing the cache mishandles newlines in values,
10953 # but we know of no workaround that is simple, portable, and efficient.
10954 # So, we kill variables containing newlines.
10955 # Ultrix sh set writes to stderr and can't be redirected directly,
10956 # and sets the high bit in the cache file unless we assign to the vars.
10957 (
10958 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10959 eval ac_val=\$$ac_var
10960 case $ac_val in #(
10961 *${as_nl}*)
10962 case $ac_var in #(
10963 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10964 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10965 esac
10966 case $ac_var in #(
10967 _ | IFS | as_nl) ;; #(
10968 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10969 *) { eval $ac_var=; unset $ac_var;} ;;
10970 esac ;;
10971 esac
10972 done
10973
10974 (set) 2>&1 |
10975 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10976 *${as_nl}ac_space=\ *)
10977 # `set' does not quote correctly, so add quotes: double-quote
10978 # substitution turns \\\\ into \\, and sed turns \\ into \.
10979 sed -n \
10980 "s/'/'\\\\''/g;
10981 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10982 ;; #(
10983 *)
10984 # `set' quotes correctly as required by POSIX, so do not add quotes.
10985 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10986 ;;
10987 esac |
10988 sort
10989 ) |
10990 sed '
10991 /^ac_cv_env_/b end
10992 t clear
10993 :clear
10994 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10995 t end
10996 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10997 :end' >>confcache
10998 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10999 if test -w "$cache_file"; then
11000 if test "x$cache_file" != "x/dev/null"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11002 $as_echo "$as_me: updating cache $cache_file" >&6;}
11003 if test ! -f "$cache_file" || test -h "$cache_file"; then
11004 cat confcache >"$cache_file"
11005 else
11006 case $cache_file in #(
11007 */* | ?:*)
11008 mv -f confcache "$cache_file"$$ &&
11009 mv -f "$cache_file"$$ "$cache_file" ;; #(
11010 *)
11011 mv -f confcache "$cache_file" ;;
11012 esac
11013 fi
11014 fi
11015 else
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11017 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11018 fi
11019 fi
11020 rm -f confcache
11021
11022 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11023 # Let make expand exec_prefix.
11024 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11025
11026 DEFS=-DHAVE_CONFIG_H
11027
11028 ac_libobjs=
11029 ac_ltlibobjs=
11030 U=
11031 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11032 # 1. Remove the extension, and $U if already installed.
11033 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11034 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11035 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11036 # will be set to the directory where LIBOBJS objects are built.
11037 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11038 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11039 done
11040 LIBOBJS=$ac_libobjs
11041
11042 LTLIBOBJS=$ac_ltlibobjs
11043
11044
11045 if test -n "$EXEEXT"; then
11046 am__EXEEXT_TRUE=
11047 am__EXEEXT_FALSE='#'
11048 else
11049 am__EXEEXT_TRUE='#'
11050 am__EXEEXT_FALSE=
11051 fi
11052
11053 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11054 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
11055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11056 fi
11057 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11058 as_fn_error $? "conditional \"AMDEP\" was never defined.
11059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11060 fi
11061 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11062 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11064 fi
11065 if test -z "${RGB_DB_TRUE}" && test -z "${RGB_DB_FALSE}"; then
11066 as_fn_error $? "conditional \"RGB_DB\" was never defined.
11067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11068 fi
11069
11070 : "${CONFIG_STATUS=./config.status}"
11071 ac_write_fail=0
11072 ac_clean_files_save=$ac_clean_files
11073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11075 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11076 as_write_fail=0
11077 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11078 #! $SHELL
11079 # Generated by $as_me.
11080 # Run this file to recreate the current configuration.
11081 # Compiler output produced by configure, useful for debugging
11082 # configure, is in config.log if it exists.
11083
11084 debug=false
11085 ac_cs_recheck=false
11086 ac_cs_silent=false
11087
11088 SHELL=\${CONFIG_SHELL-$SHELL}
11089 export SHELL
11090 _ASEOF
11091 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11092 ## -------------------- ##
11093 ## M4sh Initialization. ##
11094 ## -------------------- ##
11095
11096 # Be more Bourne compatible
11097 DUALCASE=1; export DUALCASE # for MKS sh
11098 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11099 emulate sh
11100 NULLCMD=:
11101 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11102 # is contrary to our usage. Disable this feature.
11103 alias -g '${1+"$@"}'='"$@"'
11104 setopt NO_GLOB_SUBST
11105 else
11106 case `(set -o) 2>/dev/null` in #(
11107 *posix*) :
11108 set -o posix ;; #(
11109 *) :
11110 ;;
11111 esac
11112 fi
11113
11114
11115 as_nl='
11116 '
11117 export as_nl
11118 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11119 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11120 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11121 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11122 # Prefer a ksh shell builtin over an external printf program on Solaris,
11123 # but without wasting forks for bash or zsh.
11124 if test -z "$BASH_VERSION$ZSH_VERSION" \
11125 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11126 as_echo='print -r --'
11127 as_echo_n='print -rn --'
11128 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11129 as_echo='printf %s\n'
11130 as_echo_n='printf %s'
11131 else
11132 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11133 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11134 as_echo_n='/usr/ucb/echo -n'
11135 else
11136 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11137 as_echo_n_body='eval
11138 arg=$1;
11139 case $arg in #(
11140 *"$as_nl"*)
11141 expr "X$arg" : "X\\(.*\\)$as_nl";
11142 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11143 esac;
11144 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11145 '
11146 export as_echo_n_body
11147 as_echo_n='sh -c $as_echo_n_body as_echo'
11148 fi
11149 export as_echo_body
11150 as_echo='sh -c $as_echo_body as_echo'
11151 fi
11152
11153 # The user is always right.
11154 if test "${PATH_SEPARATOR+set}" != set; then
11155 PATH_SEPARATOR=:
11156 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11157 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11158 PATH_SEPARATOR=';'
11159 }
11160 fi
11161
11162
11163 # IFS
11164 # We need space, tab and new line, in precisely that order. Quoting is
11165 # there to prevent editors from complaining about space-tab.
11166 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11167 # splitting by setting IFS to empty value.)
11168 IFS=" "" $as_nl"
11169
11170 # Find who we are. Look in the path if we contain no directory separator.
11171 as_myself=
11172 case $0 in #((
11173 *[\\/]* ) as_myself=$0 ;;
11174 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11176 do
11177 IFS=$as_save_IFS
11178 test -z "$as_dir" && as_dir=.
11179 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11180 done
11181 IFS=$as_save_IFS
11182
11183 ;;
11184 esac
11185 # We did not find ourselves, most probably we were run as `sh COMMAND'
11186 # in which case we are not to be found in the path.
11187 if test "x$as_myself" = x; then
11188 as_myself=$0
11189 fi
11190 if test ! -f "$as_myself"; then
11191 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11192 exit 1
11193 fi
11194
11195 # Unset variables that we do not need and which cause bugs (e.g. in
11196 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11197 # suppresses any "Segmentation fault" message there. '((' could
11198 # trigger a bug in pdksh 5.2.14.
11199 for as_var in BASH_ENV ENV MAIL MAILPATH
11200 do eval test x\${$as_var+set} = xset \
11201 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11202 done
11203 PS1='$ '
11204 PS2='> '
11205 PS4='+ '
11206
11207 # NLS nuisances.
11208 LC_ALL=C
11209 export LC_ALL
11210 LANGUAGE=C
11211 export LANGUAGE
11212
11213 # CDPATH.
11214 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11215
11216
11217 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11218 # ----------------------------------------
11219 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11220 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11221 # script with STATUS, using 1 if that was 0.
11222 as_fn_error ()
11223 {
11224 as_status=$1; test $as_status -eq 0 && as_status=1
11225 if test "$4"; then
11226 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11227 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11228 fi
11229 $as_echo "$as_me: error: $2" >&2
11230 as_fn_exit $as_status
11231 } # as_fn_error
11232
11233
11234 # as_fn_set_status STATUS
11235 # -----------------------
11236 # Set $? to STATUS, without forking.
11237 as_fn_set_status ()
11238 {
11239 return $1
11240 } # as_fn_set_status
11241
11242 # as_fn_exit STATUS
11243 # -----------------
11244 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11245 as_fn_exit ()
11246 {
11247 set +e
11248 as_fn_set_status $1
11249 exit $1
11250 } # as_fn_exit
11251
11252 # as_fn_unset VAR
11253 # ---------------
11254 # Portably unset VAR.
11255 as_fn_unset ()
11256 {
11257 { eval $1=; unset $1;}
11258 }
11259 as_unset=as_fn_unset
11260 # as_fn_append VAR VALUE
11261 # ----------------------
11262 # Append the text in VALUE to the end of the definition contained in VAR. Take
11263 # advantage of any shell optimizations that allow amortized linear growth over
11264 # repeated appends, instead of the typical quadratic growth present in naive
11265 # implementations.
11266 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11267 eval 'as_fn_append ()
11268 {
11269 eval $1+=\$2
11270 }'
11271 else
11272 as_fn_append ()
11273 {
11274 eval $1=\$$1\$2
11275 }
11276 fi # as_fn_append
11277
11278 # as_fn_arith ARG...
11279 # ------------------
11280 # Perform arithmetic evaluation on the ARGs, and store the result in the
11281 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11282 # must be portable across $(()) and expr.
11283 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11284 eval 'as_fn_arith ()
11285 {
11286 as_val=$(( $* ))
11287 }'
11288 else
11289 as_fn_arith ()
11290 {
11291 as_val=`expr "$@" || test $? -eq 1`
11292 }
11293 fi # as_fn_arith
11294
11295
11296 if expr a : '\(a\)' >/dev/null 2>&1 &&
11297 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11298 as_expr=expr
11299 else
11300 as_expr=false
11301 fi
11302
11303 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11304 as_basename=basename
11305 else
11306 as_basename=false
11307 fi
11308
11309 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11310 as_dirname=dirname
11311 else
11312 as_dirname=false
11313 fi
11314
11315 as_me=`$as_basename -- "$0" ||
11316 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11317 X"$0" : 'X\(//\)$' \| \
11318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11319 $as_echo X/"$0" |
11320 sed '/^.*\/\([^/][^/]*\)\/*$/{
11321 s//\1/
11322 q
11323 }
11324 /^X\/\(\/\/\)$/{
11325 s//\1/
11326 q
11327 }
11328 /^X\/\(\/\).*/{
11329 s//\1/
11330 q
11331 }
11332 s/.*/./; q'`
11333
11334 # Avoid depending upon Character Ranges.
11335 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11336 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11337 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11338 as_cr_digits='0123456789'
11339 as_cr_alnum=$as_cr_Letters$as_cr_digits
11340
11341 ECHO_C= ECHO_N= ECHO_T=
11342 case `echo -n x` in #(((((
11343 -n*)
11344 case `echo 'xy\c'` in
11345 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11346 xy) ECHO_C='\c';;
11347 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11348 ECHO_T=' ';;
11349 esac;;
11350 *)
11351 ECHO_N='-n';;
11352 esac
11353
11354 rm -f conf$$ conf$$.exe conf$$.file
11355 if test -d conf$$.dir; then
11356 rm -f conf$$.dir/conf$$.file
11357 else
11358 rm -f conf$$.dir
11359 mkdir conf$$.dir 2>/dev/null
11360 fi
11361 if (echo >conf$$.file) 2>/dev/null; then
11362 if ln -s conf$$.file conf$$ 2>/dev/null; then
11363 as_ln_s='ln -s'
11364 # ... but there are two gotchas:
11365 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11366 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11367 # In both cases, we have to default to `cp -p'.
11368 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11369 as_ln_s='cp -p'
11370 elif ln conf$$.file conf$$ 2>/dev/null; then
11371 as_ln_s=ln
11372 else
11373 as_ln_s='cp -p'
11374 fi
11375 else
11376 as_ln_s='cp -p'
11377 fi
11378 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11379 rmdir conf$$.dir 2>/dev/null
11380
11381
11382 # as_fn_mkdir_p
11383 # -------------
11384 # Create "$as_dir" as a directory, including parents if necessary.
11385 as_fn_mkdir_p ()
11386 {
11387
11388 case $as_dir in #(
11389 -*) as_dir=./$as_dir;;
11390 esac
11391 test -d "$as_dir" || eval $as_mkdir_p || {
11392 as_dirs=
11393 while :; do
11394 case $as_dir in #(
11395 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11396 *) as_qdir=$as_dir;;
11397 esac
11398 as_dirs="'$as_qdir' $as_dirs"
11399 as_dir=`$as_dirname -- "$as_dir" ||
11400 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11401 X"$as_dir" : 'X\(//\)[^/]' \| \
11402 X"$as_dir" : 'X\(//\)$' \| \
11403 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11404 $as_echo X"$as_dir" |
11405 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11406 s//\1/
11407 q
11408 }
11409 /^X\(\/\/\)[^/].*/{
11410 s//\1/
11411 q
11412 }
11413 /^X\(\/\/\)$/{
11414 s//\1/
11415 q
11416 }
11417 /^X\(\/\).*/{
11418 s//\1/
11419 q
11420 }
11421 s/.*/./; q'`
11422 test -d "$as_dir" && break
11423 done
11424 test -z "$as_dirs" || eval "mkdir $as_dirs"
11425 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11426
11427
11428 } # as_fn_mkdir_p
11429 if mkdir -p . 2>/dev/null; then
11430 as_mkdir_p='mkdir -p "$as_dir"'
11431 else
11432 test -d ./-p && rmdir ./-p
11433 as_mkdir_p=false
11434 fi
11435
11436 if test -x / >/dev/null 2>&1; then
11437 as_test_x='test -x'
11438 else
11439 if ls -dL / >/dev/null 2>&1; then
11440 as_ls_L_option=L
11441 else
11442 as_ls_L_option=
11443 fi
11444 as_test_x='
11445 eval sh -c '\''
11446 if test -d "$1"; then
11447 test -d "$1/.";
11448 else
11449 case $1 in #(
11450 -*)set "./$1";;
11451 esac;
11452 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11453 ???[sx]*):;;*)false;;esac;fi
11454 '\'' sh
11455 '
11456 fi
11457 as_executable_p=$as_test_x
11458
11459 # Sed expression to map a string onto a valid CPP name.
11460 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11461
11462 # Sed expression to map a string onto a valid variable name.
11463 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11464
11465
11466 exec 6>&1
11467 ## ----------------------------------- ##
11468 ## Main body of $CONFIG_STATUS script. ##
11469 ## ----------------------------------- ##
11470 _ASEOF
11471 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11472
11473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11474 # Save the log message, to keep $0 and so on meaningful, and to
11475 # report actual input values of CONFIG_FILES etc. instead of their
11476 # values after options handling.
11477 ac_log="
11478 This file was extended by rgb $as_me 1.0.5, which was
11479 generated by GNU Autoconf 2.68. Invocation command line was
11480
11481 CONFIG_FILES = $CONFIG_FILES
11482 CONFIG_HEADERS = $CONFIG_HEADERS
11483 CONFIG_LINKS = $CONFIG_LINKS
11484 CONFIG_COMMANDS = $CONFIG_COMMANDS
11485 $ $0 $@
11486
11487 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11488 "
11489
11490 _ACEOF
11491
11492 case $ac_config_files in *"
11493 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11494 esac
11495
11496 case $ac_config_headers in *"
11497 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11498 esac
11499
11500
11501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11502 # Files that config.status was made for.
11503 config_files="$ac_config_files"
11504 config_headers="$ac_config_headers"
11505 config_commands="$ac_config_commands"
11506
11507 _ACEOF
11508
11509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11510 ac_cs_usage="\
11511 \`$as_me' instantiates files and other configuration actions
11512 from templates according to the current configuration. Unless the files
11513 and actions are specified as TAGs, all are instantiated by default.
11514
11515 Usage: $0 [OPTION]... [TAG]...
11516
11517 -h, --help print this help, then exit
11518 -V, --version print version number and configuration settings, then exit
11519 --config print configuration, then exit
11520 -q, --quiet, --silent
11521 do not print progress messages
11522 -d, --debug don't remove temporary files
11523 --recheck update $as_me by reconfiguring in the same conditions
11524 --file=FILE[:TEMPLATE]
11525 instantiate the configuration file FILE
11526 --header=FILE[:TEMPLATE]
11527 instantiate the configuration header FILE
11528
11529 Configuration files:
11530 $config_files
11531
11532 Configuration headers:
11533 $config_headers
11534
11535 Configuration commands:
11536 $config_commands
11537
11538 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11539
11540 _ACEOF
11541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11542 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11543 ac_cs_version="\\
11544 rgb config.status 1.0.5
11545 configured by $0, generated by GNU Autoconf 2.68,
11546 with options \\"\$ac_cs_config\\"
11547
11548 Copyright (C) 2010 Free Software Foundation, Inc.
11549 This config.status script is free software; the Free Software Foundation
11550 gives unlimited permission to copy, distribute and modify it."
11551
11552 ac_pwd='$ac_pwd'
11553 srcdir='$srcdir'
11554 INSTALL='$INSTALL'
11555 MKDIR_P='$MKDIR_P'
11556 AWK='$AWK'
11557 test -n "\$AWK" || AWK=awk
11558 _ACEOF
11559
11560 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11561 # The default lists apply if the user does not specify any file.
11562 ac_need_defaults=:
11563 while test $# != 0
11564 do
11565 case $1 in
11566 --*=?*)
11567 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11568 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11569 ac_shift=:
11570 ;;
11571 --*=)
11572 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11573 ac_optarg=
11574 ac_shift=:
11575 ;;
11576 *)
11577 ac_option=$1
11578 ac_optarg=$2
11579 ac_shift=shift
11580 ;;
11581 esac
11582
11583 case $ac_option in
11584 # Handling of the options.
11585 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11586 ac_cs_recheck=: ;;
11587 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11588 $as_echo "$ac_cs_version"; exit ;;
11589 --config | --confi | --conf | --con | --co | --c )
11590 $as_echo "$ac_cs_config"; exit ;;
11591 --debug | --debu | --deb | --de | --d | -d )
11592 debug=: ;;
11593 --file | --fil | --fi | --f )
11594 $ac_shift
11595 case $ac_optarg in
11596 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11597 '') as_fn_error $? "missing file argument" ;;
11598 esac
11599 as_fn_append CONFIG_FILES " '$ac_optarg'"
11600 ac_need_defaults=false;;
11601 --header | --heade | --head | --hea )
11602 $ac_shift
11603 case $ac_optarg in
11604 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11605 esac
11606 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11607 ac_need_defaults=false;;
11608 --he | --h)
11609 # Conflict between --help and --header
11610 as_fn_error $? "ambiguous option: \`$1'
11611 Try \`$0 --help' for more information.";;
11612 --help | --hel | -h )
11613 $as_echo "$ac_cs_usage"; exit ;;
11614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11616 ac_cs_silent=: ;;
11617
11618 # This is an error.
11619 -*) as_fn_error $? "unrecognized option: \`$1'
11620 Try \`$0 --help' for more information." ;;
11621
11622 *) as_fn_append ac_config_targets " $1"
11623 ac_need_defaults=false ;;
11624
11625 esac
11626 shift
11627 done
11628
11629 ac_configure_extra_args=
11630
11631 if $ac_cs_silent; then
11632 exec 6>/dev/null
11633 ac_configure_extra_args="$ac_configure_extra_args --silent"
11634 fi
11635
11636 _ACEOF
11637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11638 if \$ac_cs_recheck; then
11639 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11640 shift
11641 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11642 CONFIG_SHELL='$SHELL'
11643 export CONFIG_SHELL
11644 exec "\$@"
11645 fi
11646
11647 _ACEOF
11648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11649 exec 5>>config.log
11650 {
11651 echo
11652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11653 ## Running $as_me. ##
11654 _ASBOX
11655 $as_echo "$ac_log"
11656 } >&5
11657
11658 _ACEOF
11659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11660 #
11661 # INIT-COMMANDS
11662 #
11663 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11664
11665 _ACEOF
11666
11667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11668
11669 # Handling of arguments.
11670 for ac_config_target in $ac_config_targets
11671 do
11672 case $ac_config_target in
11673 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11674 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11675 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11676 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11677
11678 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11679 esac
11680 done
11681
11682
11683 # If the user did not use the arguments to specify the items to instantiate,
11684 # then the envvar interface is used. Set only those that are not.
11685 # We use the long form for the default assignment because of an extremely
11686 # bizarre bug on SunOS 4.1.3.
11687 if $ac_need_defaults; then
11688 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11689 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11690 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11691 fi
11692
11693 # Have a temporary directory for convenience. Make it in the build tree
11694 # simply because there is no reason against having it here, and in addition,
11695 # creating and moving files from /tmp can sometimes cause problems.
11696 # Hook for its removal unless debugging.
11697 # Note that there is a small window in which the directory will not be cleaned:
11698 # after its creation but before its name has been assigned to `$tmp'.
11699 $debug ||
11700 {
11701 tmp= ac_tmp=
11702 trap 'exit_status=$?
11703 : "${ac_tmp:=$tmp}"
11704 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11705 ' 0
11706 trap 'as_fn_exit 1' 1 2 13 15
11707 }
11708 # Create a (secure) tmp directory for tmp files.
11709
11710 {
11711 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11712 test -d "$tmp"
11713 } ||
11714 {
11715 tmp=./conf$$-$RANDOM
11716 (umask 077 && mkdir "$tmp")
11717 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11718 ac_tmp=$tmp
11719
11720 # Set up the scripts for CONFIG_FILES section.
11721 # No need to generate them if there are no CONFIG_FILES.
11722 # This happens for instance with `./config.status config.h'.
11723 if test -n "$CONFIG_FILES"; then
11724
11725
11726 ac_cr=`echo X | tr X '\015'`
11727 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11728 # But we know of no other shell where ac_cr would be empty at this
11729 # point, so we can use a bashism as a fallback.
11730 if test "x$ac_cr" = x; then
11731 eval ac_cr=\$\'\\r\'
11732 fi
11733 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11734 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11735 ac_cs_awk_cr='\\r'
11736 else
11737 ac_cs_awk_cr=$ac_cr
11738 fi
11739
11740 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11741 _ACEOF
11742
11743
11744 {
11745 echo "cat >conf$$subs.awk <<_ACEOF" &&
11746 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11747 echo "_ACEOF"
11748 } >conf$$subs.sh ||
11749 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11750 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11751 ac_delim='%!_!# '
11752 for ac_last_try in false false false false false :; do
11753 . ./conf$$subs.sh ||
11754 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11755
11756 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11757 if test $ac_delim_n = $ac_delim_num; then
11758 break
11759 elif $ac_last_try; then
11760 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11761 else
11762 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11763 fi
11764 done
11765 rm -f conf$$subs.sh
11766
11767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11768 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11769 _ACEOF
11770 sed -n '
11771 h
11772 s/^/S["/; s/!.*/"]=/
11773 p
11774 g
11775 s/^[^!]*!//
11776 :repl
11777 t repl
11778 s/'"$ac_delim"'$//
11779 t delim
11780 :nl
11781 h
11782 s/\(.\{148\}\)..*/\1/
11783 t more1
11784 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11785 p
11786 n
11787 b repl
11788 :more1
11789 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11790 p
11791 g
11792 s/.\{148\}//
11793 t nl
11794 :delim
11795 h
11796 s/\(.\{148\}\)..*/\1/
11797 t more2
11798 s/["\\]/\\&/g; s/^/"/; s/$/"/
11799 p
11800 b
11801 :more2
11802 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11803 p
11804 g
11805 s/.\{148\}//
11806 t delim
11807 ' <conf$$subs.awk | sed '
11808 /^[^""]/{
11809 N
11810 s/\n//
11811 }
11812 ' >>$CONFIG_STATUS || ac_write_fail=1
11813 rm -f conf$$subs.awk
11814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11815 _ACAWK
11816 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11817 for (key in S) S_is_set[key] = 1
11818 FS = ""
11819
11820 }
11821 {
11822 line = $ 0
11823 nfields = split(line, field, "@")
11824 substed = 0
11825 len = length(field[1])
11826 for (i = 2; i < nfields; i++) {
11827 key = field[i]
11828 keylen = length(key)
11829 if (S_is_set[key]) {
11830 value = S[key]
11831 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11832 len += length(value) + length(field[++i])
11833 substed = 1
11834 } else
11835 len += 1 + keylen
11836 }
11837
11838 print line
11839 }
11840
11841 _ACAWK
11842 _ACEOF
11843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11844 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11845 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11846 else
11847 cat
11848 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11849 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11850 _ACEOF
11851
11852 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11853 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11854 # trailing colons and then remove the whole line if VPATH becomes empty
11855 # (actually we leave an empty line to preserve line numbers).
11856 if test "x$srcdir" = x.; then
11857 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11858 h
11859 s///
11860 s/^/:/
11861 s/[ ]*$/:/
11862 s/:\$(srcdir):/:/g
11863 s/:\${srcdir}:/:/g
11864 s/:@srcdir@:/:/g
11865 s/^:*//
11866 s/:*$//
11867 x
11868 s/\(=[ ]*\).*/\1/
11869 G
11870 s/\n//
11871 s/^[^=]*=[ ]*$//
11872 }'
11873 fi
11874
11875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11876 fi # test -n "$CONFIG_FILES"
11877
11878 # Set up the scripts for CONFIG_HEADERS section.
11879 # No need to generate them if there are no CONFIG_HEADERS.
11880 # This happens for instance with `./config.status Makefile'.
11881 if test -n "$CONFIG_HEADERS"; then
11882 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11883 BEGIN {
11884 _ACEOF
11885
11886 # Transform confdefs.h into an awk script `defines.awk', embedded as
11887 # here-document in config.status, that substitutes the proper values into
11888 # config.h.in to produce config.h.
11889
11890 # Create a delimiter string that does not exist in confdefs.h, to ease
11891 # handling of long lines.
11892 ac_delim='%!_!# '
11893 for ac_last_try in false false :; do
11894 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11895 if test -z "$ac_tt"; then
11896 break
11897 elif $ac_last_try; then
11898 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11899 else
11900 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11901 fi
11902 done
11903
11904 # For the awk script, D is an array of macro values keyed by name,
11905 # likewise P contains macro parameters if any. Preserve backslash
11906 # newline sequences.
11907
11908 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11909 sed -n '
11910 s/.\{148\}/&'"$ac_delim"'/g
11911 t rset
11912 :rset
11913 s/^[ ]*#[ ]*define[ ][ ]*/ /
11914 t def
11915 d
11916 :def
11917 s/\\$//
11918 t bsnl
11919 s/["\\]/\\&/g
11920 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11921 D["\1"]=" \3"/p
11922 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11923 d
11924 :bsnl
11925 s/["\\]/\\&/g
11926 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11927 D["\1"]=" \3\\\\\\n"\\/p
11928 t cont
11929 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11930 t cont
11931 d
11932 :cont
11933 n
11934 s/.\{148\}/&'"$ac_delim"'/g
11935 t clear
11936 :clear
11937 s/\\$//
11938 t bsnlc
11939 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11940 d
11941 :bsnlc
11942 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11943 b cont
11944 ' <confdefs.h | sed '
11945 s/'"$ac_delim"'/"\\\
11946 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11947
11948 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11949 for (key in D) D_is_set[key] = 1
11950 FS = ""
11951 }
11952 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11953 line = \$ 0
11954 split(line, arg, " ")
11955 if (arg[1] == "#") {
11956 defundef = arg[2]
11957 mac1 = arg[3]
11958 } else {
11959 defundef = substr(arg[1], 2)
11960 mac1 = arg[2]
11961 }
11962 split(mac1, mac2, "(") #)
11963 macro = mac2[1]
11964 prefix = substr(line, 1, index(line, defundef) - 1)
11965 if (D_is_set[macro]) {
11966 # Preserve the white space surrounding the "#".
11967 print prefix "define", macro P[macro] D[macro]
11968 next
11969 } else {
11970 # Replace #undef with comments. This is necessary, for example,
11971 # in the case of _POSIX_SOURCE, which is predefined and required
11972 # on some systems where configure will not decide to define it.
11973 if (defundef == "undef") {
11974 print "/*", prefix defundef, macro, "*/"
11975 next
11976 }
11977 }
11978 }
11979 { print }
11980 _ACAWK
11981 _ACEOF
11982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11983 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11984 fi # test -n "$CONFIG_HEADERS"
11985
11986
11987 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11988 shift
11989 for ac_tag
11990 do
11991 case $ac_tag in
11992 :[FHLC]) ac_mode=$ac_tag; continue;;
11993 esac
11994 case $ac_mode$ac_tag in
11995 :[FHL]*:*);;
11996 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11997 :[FH]-) ac_tag=-:-;;
11998 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11999 esac
12000 ac_save_IFS=$IFS
12001 IFS=:
12002 set x $ac_tag
12003 IFS=$ac_save_IFS
12004 shift
12005 ac_file=$1
12006 shift
12007
12008 case $ac_mode in
12009 :L) ac_source=$1;;
12010 :[FH])
12011 ac_file_inputs=
12012 for ac_f
12013 do
12014 case $ac_f in
12015 -) ac_f="$ac_tmp/stdin";;
12016 *) # Look for the file first in the build tree, then in the source tree
12017 # (if the path is not absolute). The absolute path cannot be DOS-style,
12018 # because $ac_f cannot contain `:'.
12019 test -f "$ac_f" ||
12020 case $ac_f in
12021 [\\/$]*) false;;
12022 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12023 esac ||
12024 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12025 esac
12026 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12027 as_fn_append ac_file_inputs " '$ac_f'"
12028 done
12029
12030 # Let's still pretend it is `configure' which instantiates (i.e., don't
12031 # use $as_me), people would be surprised to read:
12032 # /* config.h. Generated by config.status. */
12033 configure_input='Generated from '`
12034 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12035 `' by configure.'
12036 if test x"$ac_file" != x-; then
12037 configure_input="$ac_file. $configure_input"
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12039 $as_echo "$as_me: creating $ac_file" >&6;}
12040 fi
12041 # Neutralize special characters interpreted by sed in replacement strings.
12042 case $configure_input in #(
12043 *\&* | *\|* | *\\* )
12044 ac_sed_conf_input=`$as_echo "$configure_input" |
12045 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12046 *) ac_sed_conf_input=$configure_input;;
12047 esac
12048
12049 case $ac_tag in
12050 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12052 esac
12053 ;;
12054 esac
12055
12056 ac_dir=`$as_dirname -- "$ac_file" ||
12057 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12058 X"$ac_file" : 'X\(//\)[^/]' \| \
12059 X"$ac_file" : 'X\(//\)$' \| \
12060 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12061 $as_echo X"$ac_file" |
12062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12063 s//\1/
12064 q
12065 }
12066 /^X\(\/\/\)[^/].*/{
12067 s//\1/
12068 q
12069 }
12070 /^X\(\/\/\)$/{
12071 s//\1/
12072 q
12073 }
12074 /^X\(\/\).*/{
12075 s//\1/
12076 q
12077 }
12078 s/.*/./; q'`
12079 as_dir="$ac_dir"; as_fn_mkdir_p
12080 ac_builddir=.
12081
12082 case "$ac_dir" in
12083 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12084 *)
12085 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12086 # A ".." for each directory in $ac_dir_suffix.
12087 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12088 case $ac_top_builddir_sub in
12089 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12090 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12091 esac ;;
12092 esac
12093 ac_abs_top_builddir=$ac_pwd
12094 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12095 # for backward compatibility:
12096 ac_top_builddir=$ac_top_build_prefix
12097
12098 case $srcdir in
12099 .) # We are building in place.
12100 ac_srcdir=.
12101 ac_top_srcdir=$ac_top_builddir_sub
12102 ac_abs_top_srcdir=$ac_pwd ;;
12103 [\\/]* | ?:[\\/]* ) # Absolute name.
12104 ac_srcdir=$srcdir$ac_dir_suffix;
12105 ac_top_srcdir=$srcdir
12106 ac_abs_top_srcdir=$srcdir ;;
12107 *) # Relative name.
12108 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12109 ac_top_srcdir=$ac_top_build_prefix$srcdir
12110 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12111 esac
12112 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12113
12114
12115 case $ac_mode in
12116 :F)
12117 #
12118 # CONFIG_FILE
12119 #
12120
12121 case $INSTALL in
12122 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12123 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12124 esac
12125 ac_MKDIR_P=$MKDIR_P
12126 case $MKDIR_P in
12127 [\\/$]* | ?:[\\/]* ) ;;
12128 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12129 esac
12130 _ACEOF
12131
12132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12133 # If the template does not know about datarootdir, expand it.
12134 # FIXME: This hack should be removed a few years after 2.60.
12135 ac_datarootdir_hack=; ac_datarootdir_seen=
12136 ac_sed_dataroot='
12137 /datarootdir/ {
12138 p
12139 q
12140 }
12141 /@datadir@/p
12142 /@docdir@/p
12143 /@infodir@/p
12144 /@localedir@/p
12145 /@mandir@/p'
12146 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12147 *datarootdir*) ac_datarootdir_seen=yes;;
12148 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12150 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12151 _ACEOF
12152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12153 ac_datarootdir_hack='
12154 s&@datadir@&$datadir&g
12155 s&@docdir@&$docdir&g
12156 s&@infodir@&$infodir&g
12157 s&@localedir@&$localedir&g
12158 s&@mandir@&$mandir&g
12159 s&\\\${datarootdir}&$datarootdir&g' ;;
12160 esac
12161 _ACEOF
12162
12163 # Neutralize VPATH when `$srcdir' = `.'.
12164 # Shell code in configure.ac might set extrasub.
12165 # FIXME: do we really want to maintain this feature?
12166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12167 ac_sed_extra="$ac_vpsub
12168 $extrasub
12169 _ACEOF
12170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12171 :t
12172 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12173 s|@configure_input@|$ac_sed_conf_input|;t t
12174 s&@top_builddir@&$ac_top_builddir_sub&;t t
12175 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12176 s&@srcdir@&$ac_srcdir&;t t
12177 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12178 s&@top_srcdir@&$ac_top_srcdir&;t t
12179 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12180 s&@builddir@&$ac_builddir&;t t
12181 s&@abs_builddir@&$ac_abs_builddir&;t t
12182 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12183 s&@INSTALL@&$ac_INSTALL&;t t
12184 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12185 $ac_datarootdir_hack
12186 "
12187 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12188 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12189
12190 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12191 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12192 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12193 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12195 which seems to be undefined. Please make sure it is defined" >&5
12196 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12197 which seems to be undefined. Please make sure it is defined" >&2;}
12198
12199 rm -f "$ac_tmp/stdin"
12200 case $ac_file in
12201 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12202 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12203 esac \
12204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12205 ;;
12206 :H)
12207 #
12208 # CONFIG_HEADER
12209 #
12210 if test x"$ac_file" != x-; then
12211 {
12212 $as_echo "/* $configure_input */" \
12213 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12214 } >"$ac_tmp/config.h" \
12215 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12216 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12218 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12219 else
12220 rm -f "$ac_file"
12221 mv "$ac_tmp/config.h" "$ac_file" \
12222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12223 fi
12224 else
12225 $as_echo "/* $configure_input */" \
12226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12227 || as_fn_error $? "could not create -" "$LINENO" 5
12228 fi
12229 # Compute "$ac_file"'s index in $config_headers.
12230 _am_arg="$ac_file"
12231 _am_stamp_count=1
12232 for _am_header in $config_headers :; do
12233 case $_am_header in
12234 $_am_arg | $_am_arg:* )
12235 break ;;
12236 * )
12237 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12238 esac
12239 done
12240 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12241 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12242 X"$_am_arg" : 'X\(//\)[^/]' \| \
12243 X"$_am_arg" : 'X\(//\)$' \| \
12244 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12245 $as_echo X"$_am_arg" |
12246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12247 s//\1/
12248 q
12249 }
12250 /^X\(\/\/\)[^/].*/{
12251 s//\1/
12252 q
12253 }
12254 /^X\(\/\/\)$/{
12255 s//\1/
12256 q
12257 }
12258 /^X\(\/\).*/{
12259 s//\1/
12260 q
12261 }
12262 s/.*/./; q'`/stamp-h$_am_stamp_count
12263 ;;
12264
12265 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12266 $as_echo "$as_me: executing $ac_file commands" >&6;}
12267 ;;
12268 esac
12269
12270
12271 case $ac_file$ac_mode in
12272 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12273 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12274 # are listed without --file. Let's play safe and only enable the eval
12275 # if we detect the quoting.
12276 case $CONFIG_FILES in
12277 *\'*) eval set x "$CONFIG_FILES" ;;
12278 *) set x $CONFIG_FILES ;;
12279 esac
12280 shift
12281 for mf
12282 do
12283 # Strip MF so we end up with the name of the file.
12284 mf=`echo "$mf" | sed -e 's/:.*$//'`
12285 # Check whether this is an Automake generated Makefile or not.
12286 # We used to match only the files named `Makefile.in', but
12287 # some people rename them; so instead we look at the file content.
12288 # Grep'ing the first line is not enough: some people post-process
12289 # each Makefile.in and add a new line on top of each file to say so.
12290 # Grep'ing the whole file is not good either: AIX grep has a line
12291 # limit of 2048, but all sed's we know have understand at least 4000.
12292 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12293 dirpart=`$as_dirname -- "$mf" ||
12294 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12295 X"$mf" : 'X\(//\)[^/]' \| \
12296 X"$mf" : 'X\(//\)$' \| \
12297 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12298 $as_echo X"$mf" |
12299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12300 s//\1/
12301 q
12302 }
12303 /^X\(\/\/\)[^/].*/{
12304 s//\1/
12305 q
12306 }
12307 /^X\(\/\/\)$/{
12308 s//\1/
12309 q
12310 }
12311 /^X\(\/\).*/{
12312 s//\1/
12313 q
12314 }
12315 s/.*/./; q'`
12316 else
12317 continue
12318 fi
12319 # Extract the definition of DEPDIR, am__include, and am__quote
12320 # from the Makefile without running `make'.
12321 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12322 test -z "$DEPDIR" && continue
12323 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12324 test -z "am__include" && continue
12325 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12326 # When using ansi2knr, U may be empty or an underscore; expand it
12327 U=`sed -n 's/^U = //p' < "$mf"`
12328 # Find all dependency output files, they are included files with
12329 # $(DEPDIR) in their names. We invoke sed twice because it is the
12330 # simplest approach to changing $(DEPDIR) to its actual value in the
12331 # expansion.
12332 for file in `sed -n "
12333 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12334 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12335 # Make sure the directory exists.
12336 test -f "$dirpart/$file" && continue
12337 fdir=`$as_dirname -- "$file" ||
12338 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12339 X"$file" : 'X\(//\)[^/]' \| \
12340 X"$file" : 'X\(//\)$' \| \
12341 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12342 $as_echo X"$file" |
12343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12344 s//\1/
12345 q
12346 }
12347 /^X\(\/\/\)[^/].*/{
12348 s//\1/
12349 q
12350 }
12351 /^X\(\/\/\)$/{
12352 s//\1/
12353 q
12354 }
12355 /^X\(\/\).*/{
12356 s//\1/
12357 q
12358 }
12359 s/.*/./; q'`
12360 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12361 # echo "creating $dirpart/$file"
12362 echo '# dummy' > "$dirpart/$file"
12363 done
12364 done
12365 }
12366 ;;
12367
12368 esac
12369 done # for ac_tag
12370
12371
12372 as_fn_exit 0
12373 _ACEOF
12374 ac_clean_files=$ac_clean_files_save
12375
12376 test $ac_write_fail = 0 ||
12377 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12378
12379
12380 # configure is writing to config.log, and then calls config.status.
12381 # config.status does its own redirection, appending to config.log.
12382 # Unfortunately, on DOS this fails, as config.log is still kept open
12383 # by configure, so config.status won't be able to write to it; its
12384 # output is simply discarded. So we exec the FD to /dev/null,
12385 # effectively closing config.log, so it can be properly (re)opened and
12386 # appended to by config.status. When coming back to configure, we
12387 # need to make the FD available again.
12388 if test "$no_create" != yes; then
12389 ac_cs_success=:
12390 ac_config_status_args=
12391 test "$silent" = yes &&
12392 ac_config_status_args="$ac_config_status_args --quiet"
12393 exec 5>/dev/null
12394 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12395 exec 5>>config.log
12396 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12397 # would make configure fail if this is the last instruction.
12398 $ac_cs_success || as_fn_exit 1
12399 fi
12400 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12402 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12403 fi
12404
12405