configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xditview 1.0.5.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xditview/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://gitlab.freedesktop.org/xorg/app/xditview/issues
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xditview'
583 PACKAGE_TARNAME='xditview'
584 PACKAGE_VERSION='1.0.5'
585 PACKAGE_STRING='xditview 1.0.5'
586 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xditview/issues'
587 PACKAGE_URL=''
588
589 ac_unique_file="Makefile.am"
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
625
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBOBJS
630 appdefaultdir
631 APPDEFS_LIBS
632 APPDEFS_CFLAGS
633 XDITVIEW_LIBS
634 XDITVIEW_CFLAGS
635 MAN_SUBSTS
636 XORG_MAN_PAGE
637 ADMIN_MAN_DIR
638 DRIVER_MAN_DIR
639 MISC_MAN_DIR
640 FILE_MAN_DIR
641 LIB_MAN_DIR
642 APP_MAN_DIR
643 ADMIN_MAN_SUFFIX
644 DRIVER_MAN_SUFFIX
645 MISC_MAN_SUFFIX
646 FILE_MAN_SUFFIX
647 LIB_MAN_SUFFIX
648 APP_MAN_SUFFIX
649 SED
650 host_os
651 host_vendor
652 host_cpu
653 host
654 build_os
655 build_vendor
656 build_cpu
657 build
658 INSTALL_CMD
659 PKG_CONFIG_LIBDIR
660 PKG_CONFIG_PATH
661 PKG_CONFIG
662 CHANGELOG_CMD
663 STRICT_CFLAGS
664 CWARNFLAGS
665 BASE_CFLAGS
666 EGREP
667 GREP
668 CPP
669 am__fastdepCC_FALSE
670 am__fastdepCC_TRUE
671 CCDEPMODE
672 am__nodep
673 AMDEPBACKSLASH
674 AMDEP_FALSE
675 AMDEP_TRUE
676 am__quote
677 am__include
678 DEPDIR
679 OBJEXT
680 EXEEXT
681 ac_ct_CC
682 CPPFLAGS
683 LDFLAGS
684 CFLAGS
685 CC
686 AM_BACKSLASH
687 AM_DEFAULT_VERBOSITY
688 AM_DEFAULT_V
689 AM_V
690 am__untar
691 am__tar
692 AMTAR
693 am__leading_dot
694 SET_MAKE
695 AWK
696 mkdir_p
697 MKDIR_P
698 INSTALL_STRIP_PROGRAM
699 STRIP
700 install_sh
701 MAKEINFO
702 AUTOHEADER
703 AUTOMAKE
704 AUTOCONF
705 ACLOCAL
706 VERSION
707 PACKAGE
708 CYGPATH_W
709 am__isrc
710 INSTALL_DATA
711 INSTALL_SCRIPT
712 INSTALL_PROGRAM
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 enable_silent_rules
755 enable_dependency_tracking
756 enable_selective_werror
757 enable_strict_compilation
758 with_appdefaultdir
759 '
760 ac_precious_vars='build_alias
761 host_alias
762 target_alias
763 CC
764 CFLAGS
765 LDFLAGS
766 LIBS
767 CPPFLAGS
768 CPP
769 PKG_CONFIG
770 PKG_CONFIG_PATH
771 PKG_CONFIG_LIBDIR
772 XDITVIEW_CFLAGS
773 XDITVIEW_LIBS
774 APPDEFS_CFLAGS
775 APPDEFS_LIBS'
776
777
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 includedir='${prefix}/include'
815 oldincludedir='/usr/include'
816 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
817 infodir='${datarootdir}/info'
818 htmldir='${docdir}'
819 dvidir='${docdir}'
820 pdfdir='${docdir}'
821 psdir='${docdir}'
822 libdir='${exec_prefix}/lib'
823 localedir='${datarootdir}/locale'
824 mandir='${datarootdir}/man'
825
826 ac_prev=
827 ac_dashdash=
828 for ac_option
829 do
830 # If the previous option needs an argument, assign it.
831 if test -n "$ac_prev"; then
832 eval $ac_prev=\$ac_option
833 ac_prev=
834 continue
835 fi
836
837 case $ac_option in
838 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 *=) ac_optarg= ;;
840 *) ac_optarg=yes ;;
841 esac
842
843 # Accept the important Cygnus configure options, so we can diagnose typos.
844
845 case $ac_dashdash$ac_option in
846 --)
847 ac_dashdash=yes ;;
848
849 -bindir | --bindir | --bindi | --bind | --bin | --bi)
850 ac_prev=bindir ;;
851 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
852 bindir=$ac_optarg ;;
853
854 -build | --build | --buil | --bui | --bu)
855 ac_prev=build_alias ;;
856 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
857 build_alias=$ac_optarg ;;
858
859 -cache-file | --cache-file | --cache-fil | --cache-fi \
860 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
861 ac_prev=cache_file ;;
862 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
863 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
864 cache_file=$ac_optarg ;;
865
866 --config-cache | -C)
867 cache_file=config.cache ;;
868
869 -datadir | --datadir | --datadi | --datad)
870 ac_prev=datadir ;;
871 -datadir=* | --datadir=* | --datadi=* | --datad=*)
872 datadir=$ac_optarg ;;
873
874 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
875 | --dataroo | --dataro | --datar)
876 ac_prev=datarootdir ;;
877 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
878 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
879 datarootdir=$ac_optarg ;;
880
881 -disable-* | --disable-*)
882 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
883 # Reject names that are not valid shell variable names.
884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
885 as_fn_error $? "invalid feature name: $ac_useropt"
886 ac_useropt_orig=$ac_useropt
887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
888 case $ac_user_opts in
889 *"
890 "enable_$ac_useropt"
891 "*) ;;
892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
893 ac_unrecognized_sep=', ';;
894 esac
895 eval enable_$ac_useropt=no ;;
896
897 -docdir | --docdir | --docdi | --doc | --do)
898 ac_prev=docdir ;;
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 docdir=$ac_optarg ;;
901
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903 ac_prev=dvidir ;;
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 dvidir=$ac_optarg ;;
906
907 -enable-* | --enable-*)
908 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
909 # Reject names that are not valid shell variable names.
910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
911 as_fn_error $? "invalid feature name: $ac_useropt"
912 ac_useropt_orig=$ac_useropt
913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
914 case $ac_user_opts in
915 *"
916 "enable_$ac_useropt"
917 "*) ;;
918 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
919 ac_unrecognized_sep=', ';;
920 esac
921 eval enable_$ac_useropt=\$ac_optarg ;;
922
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
930 exec_prefix=$ac_optarg ;;
931
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
934 with_gas=yes ;;
935
936 -help | --help | --hel | --he | -h)
937 ac_init_help=long ;;
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
942
943 -host | --host | --hos | --ho)
944 ac_prev=host_alias ;;
945 -host=* | --host=* | --hos=* | --ho=*)
946 host_alias=$ac_optarg ;;
947
948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 ac_prev=htmldir ;;
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 | --ht=*)
952 htmldir=$ac_optarg ;;
953
954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
959 includedir=$ac_optarg ;;
960
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 ac_prev=infodir ;;
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
964 infodir=$ac_optarg ;;
965
966 -libdir | --libdir | --libdi | --libd)
967 ac_prev=libdir ;;
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
969 libdir=$ac_optarg ;;
970
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
976 libexecdir=$ac_optarg ;;
977
978 -localedir | --localedir | --localedi | --localed | --locale)
979 ac_prev=localedir ;;
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
982
983 -localstatedir | --localstatedir | --localstatedi | --localstated \
984 | --localstate | --localstat | --localsta | --localst | --locals)
985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
988 localstatedir=$ac_optarg ;;
989
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 ac_prev=mandir ;;
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993 mandir=$ac_optarg ;;
994
995 -nfp | --nfp | --nf)
996 # Obsolete; use --without-fp.
997 with_fp=no ;;
998
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1000 | --no-cr | --no-c | -n)
1001 no_create=yes ;;
1002
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 no_recursion=yes ;;
1006
1007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1014 oldincludedir=$ac_optarg ;;
1015
1016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 ac_prev=prefix ;;
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1019 prefix=$ac_optarg ;;
1020
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1026 program_prefix=$ac_optarg ;;
1027
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1033 program_suffix=$ac_optarg ;;
1034
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
1050 program_transform_name=$ac_optarg ;;
1051
1052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 ac_prev=pdfdir ;;
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1056
1057 -psdir | --psdir | --psdi | --psd | --ps)
1058 ac_prev=psdir ;;
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 psdir=$ac_optarg ;;
1061
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 silent=yes ;;
1065
1066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 ac_prev=sbindir ;;
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 | --sbi=* | --sb=*)
1070 sbindir=$ac_optarg ;;
1071
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1075 | --sha | --sh)
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 | --sha=* | --sh=*)
1081 sharedstatedir=$ac_optarg ;;
1082
1083 -site | --site | --sit)
1084 ac_prev=site ;;
1085 -site=* | --site=* | --sit=*)
1086 site=$ac_optarg ;;
1087
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 ac_prev=srcdir ;;
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1091 srcdir=$ac_optarg ;;
1092
1093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1098 sysconfdir=$ac_optarg ;;
1099
1100 -target | --target | --targe | --targ | --tar | --ta | --t)
1101 ac_prev=target_alias ;;
1102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1103 target_alias=$ac_optarg ;;
1104
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 verbose=yes ;;
1107
1108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
1110
1111 -with-* | --with-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval with_$ac_useropt=\$ac_optarg ;;
1126
1127 -without-* | --without-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid package name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1135 *"
1136 "with_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval with_$ac_useropt=no ;;
1142
1143 --x)
1144 # Obsolete; use --with-x.
1145 with_x=yes ;;
1146
1147 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1148 | --x-incl | --x-inc | --x-in | --x-i)
1149 ac_prev=x_includes ;;
1150 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1151 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1152 x_includes=$ac_optarg ;;
1153
1154 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1155 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1156 ac_prev=x_libraries ;;
1157 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1158 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1159 x_libraries=$ac_optarg ;;
1160
1161 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1162 Try \`$0 --help' for more information"
1163 ;;
1164
1165 *=*)
1166 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1167 # Reject names that are not valid shell variable names.
1168 case $ac_envvar in #(
1169 '' | [0-9]* | *[!_$as_cr_alnum]* )
1170 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1171 esac
1172 eval $ac_envvar=\$ac_optarg
1173 export $ac_envvar ;;
1174
1175 *)
1176 # FIXME: should be removed in autoconf 3.0.
1177 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1178 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1179 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1180 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1181 ;;
1182
1183 esac
1184 done
1185
1186 if test -n "$ac_prev"; then
1187 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1188 as_fn_error $? "missing argument to $ac_option"
1189 fi
1190
1191 if test -n "$ac_unrecognized_opts"; then
1192 case $enable_option_checking in
1193 no) ;;
1194 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1195 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196 esac
1197 fi
1198
1199 # Check all directory arguments for consistency.
1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1204 do
1205 eval ac_val=\$$ac_var
1206 # Remove trailing slashes.
1207 case $ac_val in
1208 */ )
1209 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1210 eval $ac_var=\$ac_val;;
1211 esac
1212 # Be sure to have absolute directory names.
1213 case $ac_val in
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 esac
1217 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 elif test "x$build_alias" != "x$host_alias"; then
1232 cross_compiling=yes
1233 fi
1234 fi
1235
1236 ac_tool_prefix=
1237 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238
1239 test "$silent" = yes && exec 6>/dev/null
1240
1241
1242 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1243 ac_ls_di=`ls -di .` &&
1244 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1245 as_fn_error $? "working directory cannot be determined"
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 as_fn_error $? "pwd does not report name of working directory"
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1262 q
1263 }
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1266 q
1267 }
1268 /^X\(\/\/\)$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\).*/{
1273 s//\1/
1274 q
1275 }
1276 s/.*/./; q'`
1277 srcdir=$ac_confdir
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 srcdir=..
1280 fi
1281 else
1282 ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1291 pwd)`
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294 srcdir=.
1295 fi
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1299 case $srcdir in
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1301 esac
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 done
1308
1309 #
1310 # Report the --help message.
1311 #
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1315 cat <<_ACEOF
1316 \`configure' configures xditview 1.0.5 to adapt to many kinds of systems.
1317
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1319
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1322
1323 Defaults for the options are specified in brackets.
1324
1325 Configuration:
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking ...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1335
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1340 [PREFIX]
1341
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1346
1347 For better control, use the options below.
1348
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/xditview]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1369 _ACEOF
1370
1371 cat <<\_ACEOF
1372
1373 Program names:
1374 --program-prefix=PREFIX prepend PREFIX to installed program names
1375 --program-suffix=SUFFIX append SUFFIX to installed program names
1376 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1377
1378 System types:
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 _ACEOF
1382 fi
1383
1384 if test -n "$ac_init_help"; then
1385 case $ac_init_help in
1386 short | recursive ) echo "Configuration of xditview 1.0.5:";;
1387 esac
1388 cat <<\_ACEOF
1389
1390 Optional Features:
1391 --disable-option-checking ignore unrecognized --enable/--with options
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-silent-rules less verbose build output (undo: "make V=1")
1395 --disable-silent-rules verbose build output (undo: "make V=0")
1396 --enable-dependency-tracking
1397 do not reject slow dependency extractors
1398 --disable-dependency-tracking
1399 speeds up one-time build
1400 --disable-selective-werror
1401 Turn off selective compiler errors. (default:
1402 enabled)
1403 --enable-strict-compilation
1404 Enable all warnings from compiler and make them
1405 errors (default: disabled)
1406
1407 Optional Packages:
1408 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1409 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1410 --with-appdefaultdir=<pathname>
1411 specify directory for app-defaults files (default is
1412 autodetected)
1413
1414 Some influential environment variables:
1415 CC C compiler command
1416 CFLAGS C compiler flags
1417 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1418 nonstandard directory <lib dir>
1419 LIBS libraries to pass to the linker, e.g. -l<library>
1420 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1421 you have headers in a nonstandard directory <include dir>
1422 CPP C preprocessor
1423 PKG_CONFIG path to pkg-config utility
1424 PKG_CONFIG_PATH
1425 directories to add to pkg-config's search path
1426 PKG_CONFIG_LIBDIR
1427 path overriding pkg-config's built-in search path
1428 XDITVIEW_CFLAGS
1429 C compiler flags for XDITVIEW, overriding pkg-config
1430 XDITVIEW_LIBS
1431 linker flags for XDITVIEW, overriding pkg-config
1432 APPDEFS_CFLAGS
1433 C compiler flags for APPDEFS, overriding pkg-config
1434 APPDEFS_LIBS
1435 linker flags for APPDEFS, overriding pkg-config
1436
1437 Use these variables to override the choices made by `configure' or to help
1438 it to find libraries and programs with nonstandard names/locations.
1439
1440 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xditview/issues>.
1441 _ACEOF
1442 ac_status=$?
1443 fi
1444
1445 if test "$ac_init_help" = "recursive"; then
1446 # If there are subdirs, report their specific --help.
1447 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1448 test -d "$ac_dir" ||
1449 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1450 continue
1451 ac_builddir=.
1452
1453 case "$ac_dir" in
1454 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 *)
1456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1457 # A ".." for each directory in $ac_dir_suffix.
1458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1459 case $ac_top_builddir_sub in
1460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1462 esac ;;
1463 esac
1464 ac_abs_top_builddir=$ac_pwd
1465 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1466 # for backward compatibility:
1467 ac_top_builddir=$ac_top_build_prefix
1468
1469 case $srcdir in
1470 .) # We are building in place.
1471 ac_srcdir=.
1472 ac_top_srcdir=$ac_top_builddir_sub
1473 ac_abs_top_srcdir=$ac_pwd ;;
1474 [\\/]* | ?:[\\/]* ) # Absolute name.
1475 ac_srcdir=$srcdir$ac_dir_suffix;
1476 ac_top_srcdir=$srcdir
1477 ac_abs_top_srcdir=$srcdir ;;
1478 *) # Relative name.
1479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1480 ac_top_srcdir=$ac_top_build_prefix$srcdir
1481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482 esac
1483 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484
1485 cd "$ac_dir" || { ac_status=$?; continue; }
1486 # Check for guested configure.
1487 if test -f "$ac_srcdir/configure.gnu"; then
1488 echo &&
1489 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1490 elif test -f "$ac_srcdir/configure"; then
1491 echo &&
1492 $SHELL "$ac_srcdir/configure" --help=recursive
1493 else
1494 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495 fi || ac_status=$?
1496 cd "$ac_pwd" || { ac_status=$?; break; }
1497 done
1498 fi
1499
1500 test -n "$ac_init_help" && exit $ac_status
1501 if $ac_init_version; then
1502 cat <<\_ACEOF
1503 xditview configure 1.0.5
1504 generated by GNU Autoconf 2.69
1505
1506 Copyright (C) 2012 Free Software Foundation, Inc.
1507 This configure script is free software; the Free Software Foundation
1508 gives unlimited permission to copy, distribute and modify it.
1509 _ACEOF
1510 exit
1511 fi
1512
1513 ## ------------------------ ##
1514 ## Autoconf initialization. ##
1515 ## ------------------------ ##
1516
1517 # ac_fn_c_try_compile LINENO
1518 # --------------------------
1519 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1520 ac_fn_c_try_compile ()
1521 {
1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1523 rm -f conftest.$ac_objext
1524 if { { ac_try="$ac_compile"
1525 case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_compile") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1537 fi
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } && {
1540 test -z "$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 } && test -s conftest.$ac_objext; then :
1543 ac_retval=0
1544 else
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1547
1548 ac_retval=1
1549 fi
1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551 as_fn_set_status $ac_retval
1552
1553 } # ac_fn_c_try_compile
1554
1555 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1556 # ---------------------------------------------
1557 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1558 # accordingly.
1559 ac_fn_c_check_decl ()
1560 {
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 as_decl_name=`echo $2|sed 's/ *(.*//'`
1563 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1565 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1566 if eval \${$3+:} false; then :
1567 $as_echo_n "(cached) " >&6
1568 else
1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1570 /* end confdefs.h. */
1571 $4
1572 int
1573 main ()
1574 {
1575 #ifndef $as_decl_name
1576 #ifdef __cplusplus
1577 (void) $as_decl_use;
1578 #else
1579 (void) $as_decl_name;
1580 #endif
1581 #endif
1582
1583 ;
1584 return 0;
1585 }
1586 _ACEOF
1587 if ac_fn_c_try_compile "$LINENO"; then :
1588 eval "$3=yes"
1589 else
1590 eval "$3=no"
1591 fi
1592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1593 fi
1594 eval ac_res=\$$3
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1596 $as_echo "$ac_res" >&6; }
1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1598
1599 } # ac_fn_c_check_decl
1600
1601 # ac_fn_c_try_cpp LINENO
1602 # ----------------------
1603 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1604 ac_fn_c_try_cpp ()
1605 {
1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1607 if { { ac_try="$ac_cpp conftest.$ac_ext"
1608 case "(($ac_try" in
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1610 *) ac_try_echo=$ac_try;;
1611 esac
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1613 $as_echo "$ac_try_echo"; } >&5
1614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1615 ac_status=$?
1616 if test -s conftest.err; then
1617 grep -v '^ *+' conftest.err >conftest.er1
1618 cat conftest.er1 >&5
1619 mv -f conftest.er1 conftest.err
1620 fi
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1622 test $ac_status = 0; } > conftest.i && {
1623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1624 test ! -s conftest.err
1625 }; then :
1626 ac_retval=0
1627 else
1628 $as_echo "$as_me: failed program was:" >&5
1629 sed 's/^/| /' conftest.$ac_ext >&5
1630
1631 ac_retval=1
1632 fi
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634 as_fn_set_status $ac_retval
1635
1636 } # ac_fn_c_try_cpp
1637
1638 # ac_fn_c_try_run LINENO
1639 # ----------------------
1640 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1641 # that executables *can* be run.
1642 ac_fn_c_try_run ()
1643 {
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if { { ac_try="$ac_link"
1646 case "(($ac_try" in
1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1648 *) ac_try_echo=$ac_try;;
1649 esac
1650 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1651 $as_echo "$ac_try_echo"; } >&5
1652 (eval "$ac_link") 2>&5
1653 ac_status=$?
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1656 { { case "(($ac_try" in
1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1658 *) ac_try_echo=$ac_try;;
1659 esac
1660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1661 $as_echo "$ac_try_echo"; } >&5
1662 (eval "$ac_try") 2>&5
1663 ac_status=$?
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; }; }; then :
1666 ac_retval=0
1667 else
1668 $as_echo "$as_me: program exited with status $ac_status" >&5
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1671
1672 ac_retval=$ac_status
1673 fi
1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_run
1679
1680 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1681 # -------------------------------------------------------
1682 # Tests whether HEADER exists and can be compiled using the include files in
1683 # INCLUDES, setting the cache variable VAR accordingly.
1684 ac_fn_c_check_header_compile ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \${$3+:} false; then :
1690 $as_echo_n "(cached) " >&6
1691 else
1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h. */
1694 $4
1695 #include <$2>
1696 _ACEOF
1697 if ac_fn_c_try_compile "$LINENO"; then :
1698 eval "$3=yes"
1699 else
1700 eval "$3=no"
1701 fi
1702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703 fi
1704 eval ac_res=\$$3
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1706 $as_echo "$ac_res" >&6; }
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708
1709 } # ac_fn_c_check_header_compile
1710
1711 # ac_fn_c_try_link LINENO
1712 # -----------------------
1713 # Try to link conftest.$ac_ext, and return whether this succeeded.
1714 ac_fn_c_try_link ()
1715 {
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 rm -f conftest.$ac_objext conftest$ac_exeext
1718 if { { ac_try="$ac_link"
1719 case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_link") 2>conftest.err
1726 ac_status=$?
1727 if test -s conftest.err; then
1728 grep -v '^ *+' conftest.err >conftest.er1
1729 cat conftest.er1 >&5
1730 mv -f conftest.er1 conftest.err
1731 fi
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; } && {
1734 test -z "$ac_c_werror_flag" ||
1735 test ! -s conftest.err
1736 } && test -s conftest$ac_exeext && {
1737 test "$cross_compiling" = yes ||
1738 test -x conftest$ac_exeext
1739 }; then :
1740 ac_retval=0
1741 else
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746 fi
1747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1749 # interfere with the next link command; also delete a directory that is
1750 # left behind by Apple's compiler. We do this before executing the actions.
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1754
1755 } # ac_fn_c_try_link
1756
1757 # ac_fn_c_check_func LINENO FUNC VAR
1758 # ----------------------------------
1759 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1760 ac_fn_c_check_func ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1767 else
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1772 #define $2 innocuous_$2
1773
1774 /* System header to define __stub macros and hopefully few prototypes,
1775 which can conflict with char $2 (); below.
1776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1777 <limits.h> exists even on freestanding compilers. */
1778
1779 #ifdef __STDC__
1780 # include <limits.h>
1781 #else
1782 # include <assert.h>
1783 #endif
1784
1785 #undef $2
1786
1787 /* Override any GCC internal prototype to avoid an error.
1788 Use char because int might match the return type of a GCC
1789 builtin and then its argument prototype would still apply. */
1790 #ifdef __cplusplus
1791 extern "C"
1792 #endif
1793 char $2 ();
1794 /* The GNU C library defines this for functions which it implements
1795 to always fail with ENOSYS. Some functions are actually named
1796 something starting with __ and the normal name is an alias. */
1797 #if defined __stub_$2 || defined __stub___$2
1798 choke me
1799 #endif
1800
1801 int
1802 main ()
1803 {
1804 return $2 ();
1805 ;
1806 return 0;
1807 }
1808 _ACEOF
1809 if ac_fn_c_try_link "$LINENO"; then :
1810 eval "$3=yes"
1811 else
1812 eval "$3=no"
1813 fi
1814 rm -f core conftest.err conftest.$ac_objext \
1815 conftest$ac_exeext conftest.$ac_ext
1816 fi
1817 eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822 } # ac_fn_c_check_func
1823 cat >config.log <<_ACEOF
1824 This file contains any messages produced by compilers while
1825 running configure, to aid debugging if configure makes a mistake.
1826
1827 It was created by xditview $as_me 1.0.5, which was
1828 generated by GNU Autoconf 2.69. Invocation command line was
1829
1830 $ $0 $@
1831
1832 _ACEOF
1833 exec 5>>config.log
1834 {
1835 cat <<_ASUNAME
1836 ## --------- ##
1837 ## Platform. ##
1838 ## --------- ##
1839
1840 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1841 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1842 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1843 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1844 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1845
1846 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1847 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1848
1849 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1850 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1851 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1852 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1853 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1854 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1855 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1856
1857 _ASUNAME
1858
1859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1860 for as_dir in $PATH
1861 do
1862 IFS=$as_save_IFS
1863 test -z "$as_dir" && as_dir=.
1864 $as_echo "PATH: $as_dir"
1865 done
1866 IFS=$as_save_IFS
1867
1868 } >&5
1869
1870 cat >&5 <<_ACEOF
1871
1872
1873 ## ----------- ##
1874 ## Core tests. ##
1875 ## ----------- ##
1876
1877 _ACEOF
1878
1879
1880 # Keep a trace of the command line.
1881 # Strip out --no-create and --no-recursion so they do not pile up.
1882 # Strip out --silent because we don't want to record it for future runs.
1883 # Also quote any args containing shell meta-characters.
1884 # Make two passes to allow for proper duplicate-argument suppression.
1885 ac_configure_args=
1886 ac_configure_args0=
1887 ac_configure_args1=
1888 ac_must_keep_next=false
1889 for ac_pass in 1 2
1890 do
1891 for ac_arg
1892 do
1893 case $ac_arg in
1894 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896 | -silent | --silent | --silen | --sile | --sil)
1897 continue ;;
1898 *\'*)
1899 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 esac
1901 case $ac_pass in
1902 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1903 2)
1904 as_fn_append ac_configure_args1 " '$ac_arg'"
1905 if test $ac_must_keep_next = true; then
1906 ac_must_keep_next=false # Got value, back to normal.
1907 else
1908 case $ac_arg in
1909 *=* | --config-cache | -C | -disable-* | --disable-* \
1910 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1911 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1912 | -with-* | --with-* | -without-* | --without-* | --x)
1913 case "$ac_configure_args0 " in
1914 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1915 esac
1916 ;;
1917 -* ) ac_must_keep_next=true ;;
1918 esac
1919 fi
1920 as_fn_append ac_configure_args " '$ac_arg'"
1921 ;;
1922 esac
1923 done
1924 done
1925 { ac_configure_args0=; unset ac_configure_args0;}
1926 { ac_configure_args1=; unset ac_configure_args1;}
1927
1928 # When interrupted or exit'd, cleanup temporary files, and complete
1929 # config.log. We remove comments because anyway the quotes in there
1930 # would cause problems or look ugly.
1931 # WARNING: Use '\'' to represent an apostrophe within the trap.
1932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1933 trap 'exit_status=$?
1934 # Save into config.log some information that might help in debugging.
1935 {
1936 echo
1937
1938 $as_echo "## ---------------- ##
1939 ## Cache variables. ##
1940 ## ---------------- ##"
1941 echo
1942 # The following way of writing the cache mishandles newlines in values,
1943 (
1944 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1945 eval ac_val=\$$ac_var
1946 case $ac_val in #(
1947 *${as_nl}*)
1948 case $ac_var in #(
1949 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1950 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1951 esac
1952 case $ac_var in #(
1953 _ | IFS | as_nl) ;; #(
1954 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1955 *) { eval $ac_var=; unset $ac_var;} ;;
1956 esac ;;
1957 esac
1958 done
1959 (set) 2>&1 |
1960 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1961 *${as_nl}ac_space=\ *)
1962 sed -n \
1963 "s/'\''/'\''\\\\'\'''\''/g;
1964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1965 ;; #(
1966 *)
1967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1968 ;;
1969 esac |
1970 sort
1971 )
1972 echo
1973
1974 $as_echo "## ----------------- ##
1975 ## Output variables. ##
1976 ## ----------------- ##"
1977 echo
1978 for ac_var in $ac_subst_vars
1979 do
1980 eval ac_val=\$$ac_var
1981 case $ac_val in
1982 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1983 esac
1984 $as_echo "$ac_var='\''$ac_val'\''"
1985 done | sort
1986 echo
1987
1988 if test -n "$ac_subst_files"; then
1989 $as_echo "## ------------------- ##
1990 ## File substitutions. ##
1991 ## ------------------- ##"
1992 echo
1993 for ac_var in $ac_subst_files
1994 do
1995 eval ac_val=\$$ac_var
1996 case $ac_val in
1997 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1998 esac
1999 $as_echo "$ac_var='\''$ac_val'\''"
2000 done | sort
2001 echo
2002 fi
2003
2004 if test -s confdefs.h; then
2005 $as_echo "## ----------- ##
2006 ## confdefs.h. ##
2007 ## ----------- ##"
2008 echo
2009 cat confdefs.h
2010 echo
2011 fi
2012 test "$ac_signal" != 0 &&
2013 $as_echo "$as_me: caught signal $ac_signal"
2014 $as_echo "$as_me: exit $exit_status"
2015 } >&5
2016 rm -f core *.core core.conftest.* &&
2017 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2018 exit $exit_status
2019 ' 0
2020 for ac_signal in 1 2 13 15; do
2021 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2022 done
2023 ac_signal=0
2024
2025 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2026 rm -f -r conftest* confdefs.h
2027
2028 $as_echo "/* confdefs.h */" > confdefs.h
2029
2030 # Predefined preprocessor variables.
2031
2032 cat >>confdefs.h <<_ACEOF
2033 #define PACKAGE_NAME "$PACKAGE_NAME"
2034 _ACEOF
2035
2036 cat >>confdefs.h <<_ACEOF
2037 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2038 _ACEOF
2039
2040 cat >>confdefs.h <<_ACEOF
2041 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2042 _ACEOF
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_STRING "$PACKAGE_STRING"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_URL "$PACKAGE_URL"
2054 _ACEOF
2055
2056
2057 # Let the site file select an alternate cache file if it wants to.
2058 # Prefer an explicitly selected file to automatically selected ones.
2059 ac_site_file1=NONE
2060 ac_site_file2=NONE
2061 if test -n "$CONFIG_SITE"; then
2062 # We do not want a PATH search for config.site.
2063 case $CONFIG_SITE in #((
2064 -*) ac_site_file1=./$CONFIG_SITE;;
2065 */*) ac_site_file1=$CONFIG_SITE;;
2066 *) ac_site_file1=./$CONFIG_SITE;;
2067 esac
2068 elif test "x$prefix" != xNONE; then
2069 ac_site_file1=$prefix/share/config.site
2070 ac_site_file2=$prefix/etc/config.site
2071 else
2072 ac_site_file1=$ac_default_prefix/share/config.site
2073 ac_site_file2=$ac_default_prefix/etc/config.site
2074 fi
2075 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2076 do
2077 test "x$ac_site_file" = xNONE && continue
2078 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2080 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2081 sed 's/^/| /' "$ac_site_file" >&5
2082 . "$ac_site_file" \
2083 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2085 as_fn_error $? "failed to load site script $ac_site_file
2086 See \`config.log' for more details" "$LINENO" 5; }
2087 fi
2088 done
2089
2090 if test -r "$cache_file"; then
2091 # Some versions of bash will fail to source /dev/null (special files
2092 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2093 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2095 $as_echo "$as_me: loading cache $cache_file" >&6;}
2096 case $cache_file in
2097 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2098 *) . "./$cache_file";;
2099 esac
2100 fi
2101 else
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2103 $as_echo "$as_me: creating cache $cache_file" >&6;}
2104 >$cache_file
2105 fi
2106
2107 # Check that the precious variables saved in the cache have kept the same
2108 # value.
2109 ac_cache_corrupted=false
2110 for ac_var in $ac_precious_vars; do
2111 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2112 eval ac_new_set=\$ac_env_${ac_var}_set
2113 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2114 eval ac_new_val=\$ac_env_${ac_var}_value
2115 case $ac_old_set,$ac_new_set in
2116 set,)
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2118 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2119 ac_cache_corrupted=: ;;
2120 ,set)
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2122 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2123 ac_cache_corrupted=: ;;
2124 ,);;
2125 *)
2126 if test "x$ac_old_val" != "x$ac_new_val"; then
2127 # differences in whitespace do not lead to failure.
2128 ac_old_val_w=`echo x $ac_old_val`
2129 ac_new_val_w=`echo x $ac_new_val`
2130 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2132 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2133 ac_cache_corrupted=:
2134 else
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2136 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2137 eval $ac_var=\$ac_old_val
2138 fi
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2140 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2142 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2143 fi;;
2144 esac
2145 # Pass precious variables to config.status.
2146 if test "$ac_new_set" = set; then
2147 case $ac_new_val in
2148 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2149 *) ac_arg=$ac_var=$ac_new_val ;;
2150 esac
2151 case " $ac_configure_args " in
2152 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2153 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2154 esac
2155 fi
2156 done
2157 if $ac_cache_corrupted; then
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2161 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2162 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2163 fi
2164 ## -------------------- ##
2165 ## Main body of script. ##
2166 ## -------------------- ##
2167
2168 ac_ext=c
2169 ac_cpp='$CPP $CPPFLAGS'
2170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2173
2174
2175
2176 ac_config_headers="$ac_config_headers config.h"
2177
2178
2179 # Initialize Automake
2180 am__api_version='1.15'
2181
2182 ac_aux_dir=
2183 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2184 if test -f "$ac_dir/install-sh"; then
2185 ac_aux_dir=$ac_dir
2186 ac_install_sh="$ac_aux_dir/install-sh -c"
2187 break
2188 elif 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/shtool"; then
2193 ac_aux_dir=$ac_dir
2194 ac_install_sh="$ac_aux_dir/shtool install -c"
2195 break
2196 fi
2197 done
2198 if test -z "$ac_aux_dir"; then
2199 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2200 fi
2201
2202 # These three variables are undocumented and unsupported,
2203 # and are intended to be withdrawn in a future Autoconf release.
2204 # They can cause serious problems if a builder's source tree is in a directory
2205 # whose full name contains unusual characters.
2206 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2207 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2208 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2209
2210
2211 # Find a good install program. We prefer a C program (faster),
2212 # so one script is as good as another. But avoid the broken or
2213 # incompatible versions:
2214 # SysV /etc/install, /usr/sbin/install
2215 # SunOS /usr/etc/install
2216 # IRIX /sbin/install
2217 # AIX /bin/install
2218 # AmigaOS /C/install, which installs bootblocks on floppy discs
2219 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2220 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2221 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2222 # OS/2's system install, which has a completely different semantic
2223 # ./install, which can be erroneously created by make from ./install.sh.
2224 # Reject install programs that cannot install multiple files.
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2226 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2227 if test -z "$INSTALL"; then
2228 if ${ac_cv_path_install+:} false; then :
2229 $as_echo_n "(cached) " >&6
2230 else
2231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 for as_dir in $PATH
2233 do
2234 IFS=$as_save_IFS
2235 test -z "$as_dir" && as_dir=.
2236 # Account for people who put trailing slashes in PATH elements.
2237 case $as_dir/ in #((
2238 ./ | .// | /[cC]/* | \
2239 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2240 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2241 /usr/ucb/* ) ;;
2242 *)
2243 # OSF1 and SCO ODT 3.0 have their own names for install.
2244 # Don't use installbsd from OSF since it installs stuff as root
2245 # by default.
2246 for ac_prog in ginstall scoinst install; do
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2249 if test $ac_prog = install &&
2250 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2251 # AIX install. It has an incompatible calling convention.
2252 :
2253 elif test $ac_prog = install &&
2254 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2255 # program-specific install script used by HP pwplus--don't use.
2256 :
2257 else
2258 rm -rf conftest.one conftest.two conftest.dir
2259 echo one > conftest.one
2260 echo two > conftest.two
2261 mkdir conftest.dir
2262 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2263 test -s conftest.one && test -s conftest.two &&
2264 test -s conftest.dir/conftest.one &&
2265 test -s conftest.dir/conftest.two
2266 then
2267 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2268 break 3
2269 fi
2270 fi
2271 fi
2272 done
2273 done
2274 ;;
2275 esac
2276
2277 done
2278 IFS=$as_save_IFS
2279
2280 rm -rf conftest.one conftest.two conftest.dir
2281
2282 fi
2283 if test "${ac_cv_path_install+set}" = set; then
2284 INSTALL=$ac_cv_path_install
2285 else
2286 # As a last resort, use the slow shell script. Don't cache a
2287 # value for INSTALL within a source directory, because that will
2288 # break other packages using the cache if that directory is
2289 # removed, or if the value is a relative name.
2290 INSTALL=$ac_install_sh
2291 fi
2292 fi
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2294 $as_echo "$INSTALL" >&6; }
2295
2296 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2297 # It thinks the first close brace ends the variable substitution.
2298 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2299
2300 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2301
2302 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2303
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2305 $as_echo_n "checking whether build environment is sane... " >&6; }
2306 # Reject unsafe characters in $srcdir or the absolute working directory
2307 # name. Accept space and tab only in the latter.
2308 am_lf='
2309 '
2310 case `pwd` in
2311 *[\\\"\#\$\&\'\`$am_lf]*)
2312 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2313 esac
2314 case $srcdir in
2315 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2316 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2317 esac
2318
2319 # Do 'set' in a subshell so we don't clobber the current shell's
2320 # arguments. Must try -L first in case configure is actually a
2321 # symlink; some systems play weird games with the mod time of symlinks
2322 # (eg FreeBSD returns the mod time of the symlink's containing
2323 # directory).
2324 if (
2325 am_has_slept=no
2326 for am_try in 1 2; do
2327 echo "timestamp, slept: $am_has_slept" > conftest.file
2328 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2329 if test "$*" = "X"; then
2330 # -L didn't work.
2331 set X `ls -t "$srcdir/configure" conftest.file`
2332 fi
2333 if test "$*" != "X $srcdir/configure conftest.file" \
2334 && test "$*" != "X conftest.file $srcdir/configure"; then
2335
2336 # If neither matched, then we have a broken ls. This can happen
2337 # if, for instance, CONFIG_SHELL is bash and it inherits a
2338 # broken ls alias from the environment. This has actually
2339 # happened. Such a system could not be considered "sane".
2340 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2341 alias in your environment" "$LINENO" 5
2342 fi
2343 if test "$2" = conftest.file || test $am_try -eq 2; then
2344 break
2345 fi
2346 # Just in case.
2347 sleep 1
2348 am_has_slept=yes
2349 done
2350 test "$2" = conftest.file
2351 )
2352 then
2353 # Ok.
2354 :
2355 else
2356 as_fn_error $? "newly created file is older than distributed files!
2357 Check your system clock" "$LINENO" 5
2358 fi
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2360 $as_echo "yes" >&6; }
2361 # If we didn't sleep, we still need to ensure time stamps of config.status and
2362 # generated files are strictly newer.
2363 am_sleep_pid=
2364 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2365 ( sleep 1 ) &
2366 am_sleep_pid=$!
2367 fi
2368
2369 rm -f conftest.file
2370
2371 test "$program_prefix" != NONE &&
2372 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2373 # Use a double $ so make ignores it.
2374 test "$program_suffix" != NONE &&
2375 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2376 # Double any \ or $.
2377 # By default was `s,x,x', remove it if useless.
2378 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2379 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2380
2381 # Expand $ac_aux_dir to an absolute path.
2382 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2383
2384 if test x"${MISSING+set}" != xset; then
2385 case $am_aux_dir in
2386 *\ * | *\ *)
2387 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2388 *)
2389 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2390 esac
2391 fi
2392 # Use eval to expand $SHELL
2393 if eval "$MISSING --is-lightweight"; then
2394 am_missing_run="$MISSING "
2395 else
2396 am_missing_run=
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2398 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2399 fi
2400
2401 if test x"${install_sh+set}" != xset; then
2402 case $am_aux_dir in
2403 *\ * | *\ *)
2404 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2405 *)
2406 install_sh="\${SHELL} $am_aux_dir/install-sh"
2407 esac
2408 fi
2409
2410 # Installed binaries are usually stripped using 'strip' when the user
2411 # run "make install-strip". However 'strip' might not be the right
2412 # tool to use in cross-compilation environments, therefore Automake
2413 # will honor the 'STRIP' environment variable to overrule this program.
2414 if test "$cross_compiling" != no; then
2415 if test -n "$ac_tool_prefix"; then
2416 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2417 set dummy ${ac_tool_prefix}strip; ac_word=$2
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2419 $as_echo_n "checking for $ac_word... " >&6; }
2420 if ${ac_cv_prog_STRIP+:} false; then :
2421 $as_echo_n "(cached) " >&6
2422 else
2423 if test -n "$STRIP"; then
2424 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2425 else
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 for as_dir in $PATH
2428 do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2433 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2435 break 2
2436 fi
2437 done
2438 done
2439 IFS=$as_save_IFS
2440
2441 fi
2442 fi
2443 STRIP=$ac_cv_prog_STRIP
2444 if test -n "$STRIP"; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2446 $as_echo "$STRIP" >&6; }
2447 else
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2449 $as_echo "no" >&6; }
2450 fi
2451
2452
2453 fi
2454 if test -z "$ac_cv_prog_STRIP"; then
2455 ac_ct_STRIP=$STRIP
2456 # Extract the first word of "strip", so it can be a program name with args.
2457 set dummy strip; ac_word=$2
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2459 $as_echo_n "checking for $ac_word... " >&6; }
2460 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2461 $as_echo_n "(cached) " >&6
2462 else
2463 if test -n "$ac_ct_STRIP"; then
2464 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2465 else
2466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 for as_dir in $PATH
2468 do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473 ac_cv_prog_ac_ct_STRIP="strip"
2474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2476 fi
2477 done
2478 done
2479 IFS=$as_save_IFS
2480
2481 fi
2482 fi
2483 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2484 if test -n "$ac_ct_STRIP"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2486 $as_echo "$ac_ct_STRIP" >&6; }
2487 else
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2489 $as_echo "no" >&6; }
2490 fi
2491
2492 if test "x$ac_ct_STRIP" = x; then
2493 STRIP=":"
2494 else
2495 case $cross_compiling:$ac_tool_warned in
2496 yes:)
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2499 ac_tool_warned=yes ;;
2500 esac
2501 STRIP=$ac_ct_STRIP
2502 fi
2503 else
2504 STRIP="$ac_cv_prog_STRIP"
2505 fi
2506
2507 fi
2508 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2509
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2511 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2512 if test -z "$MKDIR_P"; then
2513 if ${ac_cv_path_mkdir+:} false; then :
2514 $as_echo_n "(cached) " >&6
2515 else
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2518 do
2519 IFS=$as_save_IFS
2520 test -z "$as_dir" && as_dir=.
2521 for ac_prog in mkdir gmkdir; do
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2524 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2525 'mkdir (GNU coreutils) '* | \
2526 'mkdir (coreutils) '* | \
2527 'mkdir (fileutils) '4.1*)
2528 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2529 break 3;;
2530 esac
2531 done
2532 done
2533 done
2534 IFS=$as_save_IFS
2535
2536 fi
2537
2538 test -d ./--version && rmdir ./--version
2539 if test "${ac_cv_path_mkdir+set}" = set; then
2540 MKDIR_P="$ac_cv_path_mkdir -p"
2541 else
2542 # As a last resort, use the slow shell script. Don't cache a
2543 # value for MKDIR_P within a source directory, because that will
2544 # break other packages using the cache if that directory is
2545 # removed, or if the value is a relative name.
2546 MKDIR_P="$ac_install_sh -d"
2547 fi
2548 fi
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2550 $as_echo "$MKDIR_P" >&6; }
2551
2552 for ac_prog in gawk mawk nawk awk
2553 do
2554 # Extract the first word of "$ac_prog", so it can be a program name with args.
2555 set dummy $ac_prog; ac_word=$2
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if ${ac_cv_prog_AWK+:} false; then :
2559 $as_echo_n "(cached) " >&6
2560 else
2561 if test -n "$AWK"; then
2562 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2563 else
2564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565 for as_dir in $PATH
2566 do
2567 IFS=$as_save_IFS
2568 test -z "$as_dir" && as_dir=.
2569 for ac_exec_ext in '' $ac_executable_extensions; do
2570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2571 ac_cv_prog_AWK="$ac_prog"
2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 break 2
2574 fi
2575 done
2576 done
2577 IFS=$as_save_IFS
2578
2579 fi
2580 fi
2581 AWK=$ac_cv_prog_AWK
2582 if test -n "$AWK"; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2584 $as_echo "$AWK" >&6; }
2585 else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2587 $as_echo "no" >&6; }
2588 fi
2589
2590
2591 test -n "$AWK" && break
2592 done
2593
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2595 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2596 set x ${MAKE-make}
2597 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2598 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 cat >conftest.make <<\_ACEOF
2602 SHELL = /bin/sh
2603 all:
2604 @echo '@@@%%%=$(MAKE)=@@@%%%'
2605 _ACEOF
2606 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2607 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2608 *@@@%%%=?*=@@@%%%*)
2609 eval ac_cv_prog_make_${ac_make}_set=yes;;
2610 *)
2611 eval ac_cv_prog_make_${ac_make}_set=no;;
2612 esac
2613 rm -f conftest.make
2614 fi
2615 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2617 $as_echo "yes" >&6; }
2618 SET_MAKE=
2619 else
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2621 $as_echo "no" >&6; }
2622 SET_MAKE="MAKE=${MAKE-make}"
2623 fi
2624
2625 rm -rf .tst 2>/dev/null
2626 mkdir .tst 2>/dev/null
2627 if test -d .tst; then
2628 am__leading_dot=.
2629 else
2630 am__leading_dot=_
2631 fi
2632 rmdir .tst 2>/dev/null
2633
2634 # Check whether --enable-silent-rules was given.
2635 if test "${enable_silent_rules+set}" = set; then :
2636 enableval=$enable_silent_rules;
2637 fi
2638
2639 case $enable_silent_rules in # (((
2640 yes) AM_DEFAULT_VERBOSITY=0;;
2641 no) AM_DEFAULT_VERBOSITY=1;;
2642 *) AM_DEFAULT_VERBOSITY=1;;
2643 esac
2644 am_make=${MAKE-make}
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2646 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2647 if ${am_cv_make_support_nested_variables+:} false; then :
2648 $as_echo_n "(cached) " >&6
2649 else
2650 if $as_echo 'TRUE=$(BAR$(V))
2651 BAR0=false
2652 BAR1=true
2653 V=1
2654 am__doit:
2655 @$(TRUE)
2656 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2657 am_cv_make_support_nested_variables=yes
2658 else
2659 am_cv_make_support_nested_variables=no
2660 fi
2661 fi
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2663 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2664 if test $am_cv_make_support_nested_variables = yes; then
2665 AM_V='$(V)'
2666 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2667 else
2668 AM_V=$AM_DEFAULT_VERBOSITY
2669 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2670 fi
2671 AM_BACKSLASH='\'
2672
2673 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2674 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2675 # is not polluted with repeated "-I."
2676 am__isrc=' -I$(srcdir)'
2677 # test to see if srcdir already configured
2678 if test -f $srcdir/config.status; then
2679 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2680 fi
2681 fi
2682
2683 # test whether we have cygpath
2684 if test -z "$CYGPATH_W"; then
2685 if (cygpath --version) >/dev/null 2>/dev/null; then
2686 CYGPATH_W='cygpath -w'
2687 else
2688 CYGPATH_W=echo
2689 fi
2690 fi
2691
2692
2693 # Define the identity of the package.
2694 PACKAGE='xditview'
2695 VERSION='1.0.5'
2696
2697
2698 cat >>confdefs.h <<_ACEOF
2699 #define PACKAGE "$PACKAGE"
2700 _ACEOF
2701
2702
2703 cat >>confdefs.h <<_ACEOF
2704 #define VERSION "$VERSION"
2705 _ACEOF
2706
2707 # Some tools Automake needs.
2708
2709 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2710
2711
2712 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2713
2714
2715 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2716
2717
2718 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2719
2720
2721 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2722
2723 # For better backward compatibility. To be removed once Automake 1.9.x
2724 # dies out for good. For more background, see:
2725 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2726 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2727 mkdir_p='$(MKDIR_P)'
2728
2729 # We need awk for the "check" target (and possibly the TAP driver). The
2730 # system "awk" is bad on some platforms.
2731 # Always define AMTAR for backward compatibility. Yes, it's still used
2732 # in the wild :-( We should find a proper way to deprecate it ...
2733 AMTAR='$${TAR-tar}'
2734
2735
2736 # We'll loop over all known methods to create a tar archive until one works.
2737 _am_tools='gnutar pax cpio none'
2738
2739 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2740
2741
2742
2743
2744
2745
2746 # POSIX will say in a future version that running "rm -f" with no argument
2747 # is OK; and we want to be able to make that assumption in our Makefile
2748 # recipes. So use an aggressive probe to check that the usage we want is
2749 # actually supported "in the wild" to an acceptable degree.
2750 # See automake bug#10828.
2751 # To make any issue more visible, cause the running configure to be aborted
2752 # by default if the 'rm' program in use doesn't match our expectations; the
2753 # user can still override this though.
2754 if rm -f && rm -fr && rm -rf; then : OK; else
2755 cat >&2 <<'END'
2756 Oops!
2757
2758 Your 'rm' program seems unable to run without file operands specified
2759 on the command line, even when the '-f' option is present. This is contrary
2760 to the behaviour of most rm programs out there, and not conforming with
2761 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2762
2763 Please tell bug-automake@gnu.org about your system, including the value
2764 of your $PATH and any error possibly output before this message. This
2765 can help us improve future automake versions.
2766
2767 END
2768 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2769 echo 'Configuration will proceed anyway, since you have set the' >&2
2770 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2771 echo >&2
2772 else
2773 cat >&2 <<'END'
2774 Aborting the configuration process, to ensure you take notice of the issue.
2775
2776 You can download and install GNU coreutils to get an 'rm' implementation
2777 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2778
2779 If you want to complete the configuration process using your problematic
2780 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2781 to "yes", and re-run configure.
2782
2783 END
2784 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2785 fi
2786 fi
2787
2788
2789 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801 DEPDIR="${am__leading_dot}deps"
2802
2803 ac_config_commands="$ac_config_commands depfiles"
2804
2805
2806 am_make=${MAKE-make}
2807 cat > confinc << 'END'
2808 am__doit:
2809 @echo this is the am__doit target
2810 .PHONY: am__doit
2811 END
2812 # If we don't find an include directive, just comment out the code.
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2814 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2815 am__include="#"
2816 am__quote=
2817 _am_result=none
2818 # First try GNU make style include.
2819 echo "include confinc" > confmf
2820 # Ignore all kinds of additional output from 'make'.
2821 case `$am_make -s -f confmf 2> /dev/null` in #(
2822 *the\ am__doit\ target*)
2823 am__include=include
2824 am__quote=
2825 _am_result=GNU
2826 ;;
2827 esac
2828 # Now try BSD make style include.
2829 if test "$am__include" = "#"; then
2830 echo '.include "confinc"' > confmf
2831 case `$am_make -s -f confmf 2> /dev/null` in #(
2832 *the\ am__doit\ target*)
2833 am__include=.include
2834 am__quote="\""
2835 _am_result=BSD
2836 ;;
2837 esac
2838 fi
2839
2840
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2842 $as_echo "$_am_result" >&6; }
2843 rm -f confinc confmf
2844
2845 # Check whether --enable-dependency-tracking was given.
2846 if test "${enable_dependency_tracking+set}" = set; then :
2847 enableval=$enable_dependency_tracking;
2848 fi
2849
2850 if test "x$enable_dependency_tracking" != xno; then
2851 am_depcomp="$ac_aux_dir/depcomp"
2852 AMDEPBACKSLASH='\'
2853 am__nodep='_no'
2854 fi
2855 if test "x$enable_dependency_tracking" != xno; then
2856 AMDEP_TRUE=
2857 AMDEP_FALSE='#'
2858 else
2859 AMDEP_TRUE='#'
2860 AMDEP_FALSE=
2861 fi
2862
2863
2864 ac_ext=c
2865 ac_cpp='$CPP $CPPFLAGS'
2866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2869 if test -n "$ac_tool_prefix"; then
2870 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2871 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873 $as_echo_n "checking for $ac_word... " >&6; }
2874 if ${ac_cv_prog_CC+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 if test -n "$CC"; then
2878 ac_cv_prog_CC="$CC" # Let the user override the test.
2879 else
2880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2887 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2
2890 fi
2891 done
2892 done
2893 IFS=$as_save_IFS
2894
2895 fi
2896 fi
2897 CC=$ac_cv_prog_CC
2898 if test -n "$CC"; then
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2900 $as_echo "$CC" >&6; }
2901 else
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2904 fi
2905
2906
2907 fi
2908 if test -z "$ac_cv_prog_CC"; then
2909 ac_ct_CC=$CC
2910 # Extract the first word of "gcc", so it can be a program name with args.
2911 set dummy gcc; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 if test -n "$ac_ct_CC"; then
2918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_ac_ct_CC="gcc"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931 done
2932 done
2933 IFS=$as_save_IFS
2934
2935 fi
2936 fi
2937 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2938 if test -n "$ac_ct_CC"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2940 $as_echo "$ac_ct_CC" >&6; }
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 fi
2945
2946 if test "x$ac_ct_CC" = x; then
2947 CC=""
2948 else
2949 case $cross_compiling:$ac_tool_warned in
2950 yes:)
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2953 ac_tool_warned=yes ;;
2954 esac
2955 CC=$ac_ct_CC
2956 fi
2957 else
2958 CC="$ac_cv_prog_CC"
2959 fi
2960
2961 if test -z "$CC"; then
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}cc; ac_word=$2
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2966 $as_echo_n "checking for $ac_word... " >&6; }
2967 if ${ac_cv_prog_CC+:} false; then :
2968 $as_echo_n "(cached) " >&6
2969 else
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_CC="${ac_tool_prefix}cc"
2981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2983 fi
2984 done
2985 done
2986 IFS=$as_save_IFS
2987
2988 fi
2989 fi
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2993 $as_echo "$CC" >&6; }
2994 else
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 $as_echo "no" >&6; }
2997 fi
2998
2999
3000 fi
3001 fi
3002 if test -z "$CC"; then
3003 # Extract the first word of "cc", so it can be a program name with args.
3004 set dummy cc; ac_word=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if ${ac_cv_prog_CC+:} false; then :
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 else
3013 ac_prog_rejected=no
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3022 ac_prog_rejected=yes
3023 continue
3024 fi
3025 ac_cv_prog_CC="cc"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 if test $ac_prog_rejected = yes; then
3034 # We found a bogon in the path, so make sure we never use it.
3035 set dummy $ac_cv_prog_CC
3036 shift
3037 if test $# != 0; then
3038 # We chose a different compiler from the bogus one.
3039 # However, it has the same basename, so the bogon will be chosen
3040 # first if we set CC to just the basename; use the full file name.
3041 shift
3042 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3043 fi
3044 fi
3045 fi
3046 fi
3047 CC=$ac_cv_prog_CC
3048 if test -n "$CC"; then
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050 $as_echo "$CC" >&6; }
3051 else
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053 $as_echo "no" >&6; }
3054 fi
3055
3056
3057 fi
3058 if test -z "$CC"; then
3059 if test -n "$ac_tool_prefix"; then
3060 for ac_prog in cl.exe
3061 do
3062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; }
3066 if ${ac_cv_prog_CC+:} false; then :
3067 $as_echo_n "(cached) " >&6
3068 else
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 else
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3074 do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083 done
3084 done
3085 IFS=$as_save_IFS
3086
3087 fi
3088 fi
3089 CC=$ac_cv_prog_CC
3090 if test -n "$CC"; then
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3092 $as_echo "$CC" >&6; }
3093 else
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; }
3096 fi
3097
3098
3099 test -n "$CC" && break
3100 done
3101 fi
3102 if test -z "$CC"; then
3103 ac_ct_CC=$CC
3104 for ac_prog in cl.exe
3105 do
3106 # Extract the first word of "$ac_prog", so it can be a program name with args.
3107 set dummy $ac_prog; ac_word=$2
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 $as_echo_n "checking for $ac_word... " >&6; }
3110 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3111 $as_echo_n "(cached) " >&6
3112 else
3113 if test -n "$ac_ct_CC"; then
3114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119 IFS=$as_save_IFS
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3123 ac_cv_prog_ac_ct_CC="$ac_prog"
3124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 break 2
3126 fi
3127 done
3128 done
3129 IFS=$as_save_IFS
3130
3131 fi
3132 fi
3133 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3134 if test -n "$ac_ct_CC"; then
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3136 $as_echo "$ac_ct_CC" >&6; }
3137 else
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 $as_echo "no" >&6; }
3140 fi
3141
3142
3143 test -n "$ac_ct_CC" && break
3144 done
3145
3146 if test "x$ac_ct_CC" = x; then
3147 CC=""
3148 else
3149 case $cross_compiling:$ac_tool_warned in
3150 yes:)
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3152 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3153 ac_tool_warned=yes ;;
3154 esac
3155 CC=$ac_ct_CC
3156 fi
3157 fi
3158
3159 fi
3160
3161
3162 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3164 as_fn_error $? "no acceptable C compiler found in \$PATH
3165 See \`config.log' for more details" "$LINENO" 5; }
3166
3167 # Provide some information about the compiler.
3168 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3169 set X $ac_compile
3170 ac_compiler=$2
3171 for ac_option in --version -v -V -qversion; do
3172 { { ac_try="$ac_compiler $ac_option >&5"
3173 case "(($ac_try" in
3174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175 *) ac_try_echo=$ac_try;;
3176 esac
3177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3178 $as_echo "$ac_try_echo"; } >&5
3179 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3180 ac_status=$?
3181 if test -s conftest.err; then
3182 sed '10a\
3183 ... rest of stderr output deleted ...
3184 10q' conftest.err >conftest.er1
3185 cat conftest.er1 >&5
3186 fi
3187 rm -f conftest.er1 conftest.err
3188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3189 test $ac_status = 0; }
3190 done
3191
3192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3193 /* end confdefs.h. */
3194
3195 int
3196 main ()
3197 {
3198
3199 ;
3200 return 0;
3201 }
3202 _ACEOF
3203 ac_clean_files_save=$ac_clean_files
3204 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3205 # Try to create an executable without -o first, disregard a.out.
3206 # It will help us diagnose broken compilers, and finding out an intuition
3207 # of exeext.
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3209 $as_echo_n "checking whether the C compiler works... " >&6; }
3210 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3211
3212 # The possible output files:
3213 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3214
3215 ac_rmfiles=
3216 for ac_file in $ac_files
3217 do
3218 case $ac_file in
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3220 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3221 esac
3222 done
3223 rm -f $ac_rmfiles
3224
3225 if { { ac_try="$ac_link_default"
3226 case "(($ac_try" in
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3229 esac
3230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3231 $as_echo "$ac_try_echo"; } >&5
3232 (eval "$ac_link_default") 2>&5
3233 ac_status=$?
3234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3235 test $ac_status = 0; }; then :
3236 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3237 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3238 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3239 # so that the user can short-circuit this test for compilers unknown to
3240 # Autoconf.
3241 for ac_file in $ac_files ''
3242 do
3243 test -f "$ac_file" || continue
3244 case $ac_file in
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3246 ;;
3247 [ab].out )
3248 # We found the default executable, but exeext='' is most
3249 # certainly right.
3250 break;;
3251 *.* )
3252 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3253 then :; else
3254 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3255 fi
3256 # We set ac_cv_exeext here because the later test for it is not
3257 # safe: cross compilers may not add the suffix if given an `-o'
3258 # argument, so we may need to know it at that point already.
3259 # Even if this section looks crufty: it has the advantage of
3260 # actually working.
3261 break;;
3262 * )
3263 break;;
3264 esac
3265 done
3266 test "$ac_cv_exeext" = no && ac_cv_exeext=
3267
3268 else
3269 ac_file=''
3270 fi
3271 if test -z "$ac_file"; then :
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3273 $as_echo "no" >&6; }
3274 $as_echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3276
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 as_fn_error 77 "C compiler cannot create executables
3280 See \`config.log' for more details" "$LINENO" 5; }
3281 else
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3283 $as_echo "yes" >&6; }
3284 fi
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3286 $as_echo_n "checking for C compiler default output file name... " >&6; }
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3288 $as_echo "$ac_file" >&6; }
3289 ac_exeext=$ac_cv_exeext
3290
3291 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3292 ac_clean_files=$ac_clean_files_save
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3294 $as_echo_n "checking for suffix of executables... " >&6; }
3295 if { { ac_try="$ac_link"
3296 case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_link") 2>&5
3303 ac_status=$?
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }; then :
3306 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3307 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3308 # work properly (i.e., refer to `conftest.exe'), while it won't with
3309 # `rm'.
3310 for ac_file in conftest.exe conftest conftest.*; do
3311 test -f "$ac_file" || continue
3312 case $ac_file in
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3315 break;;
3316 * ) break;;
3317 esac
3318 done
3319 else
3320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3323 See \`config.log' for more details" "$LINENO" 5; }
3324 fi
3325 rm -f conftest conftest$ac_cv_exeext
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3327 $as_echo "$ac_cv_exeext" >&6; }
3328
3329 rm -f conftest.$ac_ext
3330 EXEEXT=$ac_cv_exeext
3331 ac_exeext=$EXEEXT
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3334 #include <stdio.h>
3335 int
3336 main ()
3337 {
3338 FILE *f = fopen ("conftest.out", "w");
3339 return ferror (f) || fclose (f) != 0;
3340
3341 ;
3342 return 0;
3343 }
3344 _ACEOF
3345 ac_clean_files="$ac_clean_files conftest.out"
3346 # Check that the compiler produces executables we can run. If not, either
3347 # the compiler is broken, or we cross compile.
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3349 $as_echo_n "checking whether we are cross compiling... " >&6; }
3350 if test "$cross_compiling" != yes; then
3351 { { ac_try="$ac_link"
3352 case "(($ac_try" in
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3355 esac
3356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3357 $as_echo "$ac_try_echo"; } >&5
3358 (eval "$ac_link") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3361 test $ac_status = 0; }
3362 if { ac_try='./conftest$ac_cv_exeext'
3363 { { case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3368 $as_echo "$ac_try_echo"; } >&5
3369 (eval "$ac_try") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3372 test $ac_status = 0; }; }; then
3373 cross_compiling=no
3374 else
3375 if test "$cross_compiling" = maybe; then
3376 cross_compiling=yes
3377 else
3378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3380 as_fn_error $? "cannot run C compiled programs.
3381 If you meant to cross compile, use \`--host'.
3382 See \`config.log' for more details" "$LINENO" 5; }
3383 fi
3384 fi
3385 fi
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3387 $as_echo "$cross_compiling" >&6; }
3388
3389 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3390 ac_clean_files=$ac_clean_files_save
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3392 $as_echo_n "checking for suffix of object files... " >&6; }
3393 if ${ac_cv_objext+:} false; then :
3394 $as_echo_n "(cached) " >&6
3395 else
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3398
3399 int
3400 main ()
3401 {
3402
3403 ;
3404 return 0;
3405 }
3406 _ACEOF
3407 rm -f conftest.o conftest.obj
3408 if { { ac_try="$ac_compile"
3409 case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412 esac
3413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3414 $as_echo "$ac_try_echo"; } >&5
3415 (eval "$ac_compile") 2>&5
3416 ac_status=$?
3417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418 test $ac_status = 0; }; then :
3419 for ac_file in conftest.o conftest.obj conftest.*; do
3420 test -f "$ac_file" || continue;
3421 case $ac_file in
3422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3423 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3424 break;;
3425 esac
3426 done
3427 else
3428 $as_echo "$as_me: failed program was:" >&5
3429 sed 's/^/| /' conftest.$ac_ext >&5
3430
3431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error $? "cannot compute suffix of object files: cannot compile
3434 See \`config.log' for more details" "$LINENO" 5; }
3435 fi
3436 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3437 fi
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3439 $as_echo "$ac_cv_objext" >&6; }
3440 OBJEXT=$ac_cv_objext
3441 ac_objext=$OBJEXT
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3443 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3444 if ${ac_cv_c_compiler_gnu+:} false; then :
3445 $as_echo_n "(cached) " >&6
3446 else
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3449
3450 int
3451 main ()
3452 {
3453 #ifndef __GNUC__
3454 choke me
3455 #endif
3456
3457 ;
3458 return 0;
3459 }
3460 _ACEOF
3461 if ac_fn_c_try_compile "$LINENO"; then :
3462 ac_compiler_gnu=yes
3463 else
3464 ac_compiler_gnu=no
3465 fi
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3468
3469 fi
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3471 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3472 if test $ac_compiler_gnu = yes; then
3473 GCC=yes
3474 else
3475 GCC=
3476 fi
3477 ac_test_CFLAGS=${CFLAGS+set}
3478 ac_save_CFLAGS=$CFLAGS
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3480 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3481 if ${ac_cv_prog_cc_g+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 ac_save_c_werror_flag=$ac_c_werror_flag
3485 ac_c_werror_flag=yes
3486 ac_cv_prog_cc_g=no
3487 CFLAGS="-g"
3488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h. */
3490
3491 int
3492 main ()
3493 {
3494
3495 ;
3496 return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500 ac_cv_prog_cc_g=yes
3501 else
3502 CFLAGS=""
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h. */
3505
3506 int
3507 main ()
3508 {
3509
3510 ;
3511 return 0;
3512 }
3513 _ACEOF
3514 if ac_fn_c_try_compile "$LINENO"; then :
3515
3516 else
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3518 CFLAGS="-g"
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3521
3522 int
3523 main ()
3524 {
3525
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 if ac_fn_c_try_compile "$LINENO"; then :
3531 ac_cv_prog_cc_g=yes
3532 fi
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 fi
3535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3536 fi
3537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3538 ac_c_werror_flag=$ac_save_c_werror_flag
3539 fi
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3541 $as_echo "$ac_cv_prog_cc_g" >&6; }
3542 if test "$ac_test_CFLAGS" = set; then
3543 CFLAGS=$ac_save_CFLAGS
3544 elif test $ac_cv_prog_cc_g = yes; then
3545 if test "$GCC" = yes; then
3546 CFLAGS="-g -O2"
3547 else
3548 CFLAGS="-g"
3549 fi
3550 else
3551 if test "$GCC" = yes; then
3552 CFLAGS="-O2"
3553 else
3554 CFLAGS=
3555 fi
3556 fi
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3558 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3559 if ${ac_cv_prog_cc_c89+:} false; then :
3560 $as_echo_n "(cached) " >&6
3561 else
3562 ac_cv_prog_cc_c89=no
3563 ac_save_CC=$CC
3564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3565 /* end confdefs.h. */
3566 #include <stdarg.h>
3567 #include <stdio.h>
3568 struct stat;
3569 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3570 struct buf { int x; };
3571 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3572 static char *e (p, i)
3573 char **p;
3574 int i;
3575 {
3576 return p[i];
3577 }
3578 static char *f (char * (*g) (char **, int), char **p, ...)
3579 {
3580 char *s;
3581 va_list v;
3582 va_start (v,p);
3583 s = g (p, va_arg (v,int));
3584 va_end (v);
3585 return s;
3586 }
3587
3588 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3589 function prototypes and stuff, but not '\xHH' hex character constants.
3590 These don't provoke an error unfortunately, instead are silently treated
3591 as 'x'. The following induces an error, until -std is added to get
3592 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3593 array size at least. It's necessary to write '\x00'==0 to get something
3594 that's true only with -std. */
3595 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3596
3597 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3598 inside strings and character constants. */
3599 #define FOO(x) 'x'
3600 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3601
3602 int test (int i, double x);
3603 struct s1 {int (*f) (int a);};
3604 struct s2 {int (*f) (double a);};
3605 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3606 int argc;
3607 char **argv;
3608 int
3609 main ()
3610 {
3611 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3612 ;
3613 return 0;
3614 }
3615 _ACEOF
3616 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3617 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3618 do
3619 CC="$ac_save_CC $ac_arg"
3620 if ac_fn_c_try_compile "$LINENO"; then :
3621 ac_cv_prog_cc_c89=$ac_arg
3622 fi
3623 rm -f core conftest.err conftest.$ac_objext
3624 test "x$ac_cv_prog_cc_c89" != "xno" && break
3625 done
3626 rm -f conftest.$ac_ext
3627 CC=$ac_save_CC
3628
3629 fi
3630 # AC_CACHE_VAL
3631 case "x$ac_cv_prog_cc_c89" in
3632 x)
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3634 $as_echo "none needed" >&6; } ;;
3635 xno)
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3637 $as_echo "unsupported" >&6; } ;;
3638 *)
3639 CC="$CC $ac_cv_prog_cc_c89"
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3641 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3642 esac
3643 if test "x$ac_cv_prog_cc_c89" != xno; then :
3644
3645 fi
3646
3647 ac_ext=c
3648 ac_cpp='$CPP $CPPFLAGS'
3649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3652
3653 ac_ext=c
3654 ac_cpp='$CPP $CPPFLAGS'
3655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3659 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3660 if ${am_cv_prog_cc_c_o+:} false; then :
3661 $as_echo_n "(cached) " >&6
3662 else
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665
3666 int
3667 main ()
3668 {
3669
3670 ;
3671 return 0;
3672 }
3673 _ACEOF
3674 # Make sure it works both with $CC and with simple cc.
3675 # Following AC_PROG_CC_C_O, we do the test twice because some
3676 # compilers refuse to overwrite an existing .o file with -o,
3677 # though they will create one.
3678 am_cv_prog_cc_c_o=yes
3679 for am_i in 1 2; do
3680 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3681 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3682 ac_status=$?
3683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3684 (exit $ac_status); } \
3685 && test -f conftest2.$ac_objext; then
3686 : OK
3687 else
3688 am_cv_prog_cc_c_o=no
3689 break
3690 fi
3691 done
3692 rm -f core conftest*
3693 unset am_i
3694 fi
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3696 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3697 if test "$am_cv_prog_cc_c_o" != yes; then
3698 # Losing compiler, so override with the script.
3699 # FIXME: It is wrong to rewrite CC.
3700 # But if we don't then we get into trouble of one sort or another.
3701 # A longer-term fix would be to have automake use am__CC in this case,
3702 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3703 CC="$am_aux_dir/compile $CC"
3704 fi
3705 ac_ext=c
3706 ac_cpp='$CPP $CPPFLAGS'
3707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3710
3711
3712 depcc="$CC" am_compiler_list=
3713
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3715 $as_echo_n "checking dependency style of $depcc... " >&6; }
3716 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3717 $as_echo_n "(cached) " >&6
3718 else
3719 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3720 # We make a subdir and do the tests there. Otherwise we can end up
3721 # making bogus files that we don't know about and never remove. For
3722 # instance it was reported that on HP-UX the gcc test will end up
3723 # making a dummy file named 'D' -- because '-MD' means "put the output
3724 # in D".
3725 rm -rf conftest.dir
3726 mkdir conftest.dir
3727 # Copy depcomp to subdir because otherwise we won't find it if we're
3728 # using a relative directory.
3729 cp "$am_depcomp" conftest.dir
3730 cd conftest.dir
3731 # We will build objects and dependencies in a subdirectory because
3732 # it helps to detect inapplicable dependency modes. For instance
3733 # both Tru64's cc and ICC support -MD to output dependencies as a
3734 # side effect of compilation, but ICC will put the dependencies in
3735 # the current directory while Tru64 will put them in the object
3736 # directory.
3737 mkdir sub
3738
3739 am_cv_CC_dependencies_compiler_type=none
3740 if test "$am_compiler_list" = ""; then
3741 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3742 fi
3743 am__universal=false
3744 case " $depcc " in #(
3745 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3746 esac
3747
3748 for depmode in $am_compiler_list; do
3749 # Setup a source with many dependencies, because some compilers
3750 # like to wrap large dependency lists on column 80 (with \), and
3751 # we should not choose a depcomp mode which is confused by this.
3752 #
3753 # We need to recreate these files for each test, as the compiler may
3754 # overwrite some of them when testing with obscure command lines.
3755 # This happens at least with the AIX C compiler.
3756 : > sub/conftest.c
3757 for i in 1 2 3 4 5 6; do
3758 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3759 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3760 # Solaris 10 /bin/sh.
3761 echo '/* dummy */' > sub/conftst$i.h
3762 done
3763 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3764
3765 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3766 # mode. It turns out that the SunPro C++ compiler does not properly
3767 # handle '-M -o', and we need to detect this. Also, some Intel
3768 # versions had trouble with output in subdirs.
3769 am__obj=sub/conftest.${OBJEXT-o}
3770 am__minus_obj="-o $am__obj"
3771 case $depmode in
3772 gcc)
3773 # This depmode causes a compiler race in universal mode.
3774 test "$am__universal" = false || continue
3775 ;;
3776 nosideeffect)
3777 # After this tag, mechanisms are not by side-effect, so they'll
3778 # only be used when explicitly requested.
3779 if test "x$enable_dependency_tracking" = xyes; then
3780 continue
3781 else
3782 break
3783 fi
3784 ;;
3785 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3786 # This compiler won't grok '-c -o', but also, the minuso test has
3787 # not run yet. These depmodes are late enough in the game, and
3788 # so weak that their functioning should not be impacted.
3789 am__obj=conftest.${OBJEXT-o}
3790 am__minus_obj=
3791 ;;
3792 none) break ;;
3793 esac
3794 if depmode=$depmode \
3795 source=sub/conftest.c object=$am__obj \
3796 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3797 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3798 >/dev/null 2>conftest.err &&
3799 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3800 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3801 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3802 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3803 # icc doesn't choke on unknown options, it will just issue warnings
3804 # or remarks (even with -Werror). So we grep stderr for any message
3805 # that says an option was ignored or not supported.
3806 # When given -MP, icc 7.0 and 7.1 complain thusly:
3807 # icc: Command line warning: ignoring option '-M'; no argument required
3808 # The diagnosis changed in icc 8.0:
3809 # icc: Command line remark: option '-MP' not supported
3810 if (grep 'ignoring option' conftest.err ||
3811 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3812 am_cv_CC_dependencies_compiler_type=$depmode
3813 break
3814 fi
3815 fi
3816 done
3817
3818 cd ..
3819 rm -rf conftest.dir
3820 else
3821 am_cv_CC_dependencies_compiler_type=none
3822 fi
3823
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3826 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3827 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3828
3829 if
3830 test "x$enable_dependency_tracking" != xno \
3831 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3832 am__fastdepCC_TRUE=
3833 am__fastdepCC_FALSE='#'
3834 else
3835 am__fastdepCC_TRUE='#'
3836 am__fastdepCC_FALSE=
3837 fi
3838
3839
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3841 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3842 if ${ac_cv_prog_cc_c99+:} false; then :
3843 $as_echo_n "(cached) " >&6
3844 else
3845 ac_cv_prog_cc_c99=no
3846 ac_save_CC=$CC
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849 #include <stdarg.h>
3850 #include <stdbool.h>
3851 #include <stdlib.h>
3852 #include <wchar.h>
3853 #include <stdio.h>
3854
3855 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3856 #define debug(...) fprintf (stderr, __VA_ARGS__)
3857 #define showlist(...) puts (#__VA_ARGS__)
3858 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3859 static void
3860 test_varargs_macros (void)
3861 {
3862 int x = 1234;
3863 int y = 5678;
3864 debug ("Flag");
3865 debug ("X = %d\n", x);
3866 showlist (The first, second, and third items.);
3867 report (x>y, "x is %d but y is %d", x, y);
3868 }
3869
3870 // Check long long types.
3871 #define BIG64 18446744073709551615ull
3872 #define BIG32 4294967295ul
3873 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3874 #if !BIG_OK
3875 your preprocessor is broken;
3876 #endif
3877 #if BIG_OK
3878 #else
3879 your preprocessor is broken;
3880 #endif
3881 static long long int bignum = -9223372036854775807LL;
3882 static unsigned long long int ubignum = BIG64;
3883
3884 struct incomplete_array
3885 {
3886 int datasize;
3887 double data[];
3888 };
3889
3890 struct named_init {
3891 int number;
3892 const wchar_t *name;
3893 double average;
3894 };
3895
3896 typedef const char *ccp;
3897
3898 static inline int
3899 test_restrict (ccp restrict text)
3900 {
3901 // See if C++-style comments work.
3902 // Iterate through items via the restricted pointer.
3903 // Also check for declarations in for loops.
3904 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3905 continue;
3906 return 0;
3907 }
3908
3909 // Check varargs and va_copy.
3910 static void
3911 test_varargs (const char *format, ...)
3912 {
3913 va_list args;
3914 va_start (args, format);
3915 va_list args_copy;
3916 va_copy (args_copy, args);
3917
3918 const char *str;
3919 int number;
3920 float fnumber;
3921
3922 while (*format)
3923 {
3924 switch (*format++)
3925 {
3926 case 's': // string
3927 str = va_arg (args_copy, const char *);
3928 break;
3929 case 'd': // int
3930 number = va_arg (args_copy, int);
3931 break;
3932 case 'f': // float
3933 fnumber = va_arg (args_copy, double);
3934 break;
3935 default:
3936 break;
3937 }
3938 }
3939 va_end (args_copy);
3940 va_end (args);
3941 }
3942
3943 int
3944 main ()
3945 {
3946
3947 // Check bool.
3948 _Bool success = false;
3949
3950 // Check restrict.
3951 if (test_restrict ("String literal") == 0)
3952 success = true;
3953 char *restrict newvar = "Another string";
3954
3955 // Check varargs.
3956 test_varargs ("s, d' f .", "string", 65, 34.234);
3957 test_varargs_macros ();
3958
3959 // Check flexible array members.
3960 struct incomplete_array *ia =
3961 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3962 ia->datasize = 10;
3963 for (int i = 0; i < ia->datasize; ++i)
3964 ia->data[i] = i * 1.234;
3965
3966 // Check named initializers.
3967 struct named_init ni = {
3968 .number = 34,
3969 .name = L"Test wide string",
3970 .average = 543.34343,
3971 };
3972
3973 ni.number = 58;
3974
3975 int dynamic_array[ni.number];
3976 dynamic_array[ni.number - 1] = 543;
3977
3978 // work around unused variable warnings
3979 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3980 || dynamic_array[ni.number - 1] != 543);
3981
3982 ;
3983 return 0;
3984 }
3985 _ACEOF
3986 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3987 do
3988 CC="$ac_save_CC $ac_arg"
3989 if ac_fn_c_try_compile "$LINENO"; then :
3990 ac_cv_prog_cc_c99=$ac_arg
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext
3993 test "x$ac_cv_prog_cc_c99" != "xno" && break
3994 done
3995 rm -f conftest.$ac_ext
3996 CC=$ac_save_CC
3997
3998 fi
3999 # AC_CACHE_VAL
4000 case "x$ac_cv_prog_cc_c99" in
4001 x)
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4003 $as_echo "none needed" >&6; } ;;
4004 xno)
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4006 $as_echo "unsupported" >&6; } ;;
4007 *)
4008 CC="$CC $ac_cv_prog_cc_c99"
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4010 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4011 esac
4012 if test "x$ac_cv_prog_cc_c99" != xno; then :
4013
4014 fi
4015
4016
4017
4018 ac_ext=c
4019 ac_cpp='$CPP $CPPFLAGS'
4020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4024 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4025 # On Suns, sometimes $CPP names a directory.
4026 if test -n "$CPP" && test -d "$CPP"; then
4027 CPP=
4028 fi
4029 if test -z "$CPP"; then
4030 if ${ac_cv_prog_CPP+:} false; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 # Double quotes because CPP needs to be expanded
4034 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4035 do
4036 ac_preproc_ok=false
4037 for ac_c_preproc_warn_flag in '' yes
4038 do
4039 # Use a header file that comes with gcc, so configuring glibc
4040 # with a fresh cross-compiler works.
4041 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4042 # <limits.h> exists even on freestanding compilers.
4043 # On the NeXT, cc -E runs the code through the compiler's parser,
4044 # not just through cpp. "Syntax error" is here to catch this case.
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047 #ifdef __STDC__
4048 # include <limits.h>
4049 #else
4050 # include <assert.h>
4051 #endif
4052 Syntax error
4053 _ACEOF
4054 if ac_fn_c_try_cpp "$LINENO"; then :
4055
4056 else
4057 # Broken: fails on valid input.
4058 continue
4059 fi
4060 rm -f conftest.err conftest.i conftest.$ac_ext
4061
4062 # OK, works on sane cases. Now check whether nonexistent headers
4063 # can be detected and how.
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #include <ac_nonexistent.h>
4067 _ACEOF
4068 if ac_fn_c_try_cpp "$LINENO"; then :
4069 # Broken: success on invalid input.
4070 continue
4071 else
4072 # Passes both tests.
4073 ac_preproc_ok=:
4074 break
4075 fi
4076 rm -f conftest.err conftest.i conftest.$ac_ext
4077
4078 done
4079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4080 rm -f conftest.i conftest.err conftest.$ac_ext
4081 if $ac_preproc_ok; then :
4082 break
4083 fi
4084
4085 done
4086 ac_cv_prog_CPP=$CPP
4087
4088 fi
4089 CPP=$ac_cv_prog_CPP
4090 else
4091 ac_cv_prog_CPP=$CPP
4092 fi
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4094 $as_echo "$CPP" >&6; }
4095 ac_preproc_ok=false
4096 for ac_c_preproc_warn_flag in '' yes
4097 do
4098 # Use a header file that comes with gcc, so configuring glibc
4099 # with a fresh cross-compiler works.
4100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4101 # <limits.h> exists even on freestanding compilers.
4102 # On the NeXT, cc -E runs the code through the compiler's parser,
4103 # not just through cpp. "Syntax error" is here to catch this case.
4104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4105 /* end confdefs.h. */
4106 #ifdef __STDC__
4107 # include <limits.h>
4108 #else
4109 # include <assert.h>
4110 #endif
4111 Syntax error
4112 _ACEOF
4113 if ac_fn_c_try_cpp "$LINENO"; then :
4114
4115 else
4116 # Broken: fails on valid input.
4117 continue
4118 fi
4119 rm -f conftest.err conftest.i conftest.$ac_ext
4120
4121 # OK, works on sane cases. Now check whether nonexistent headers
4122 # can be detected and how.
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125 #include <ac_nonexistent.h>
4126 _ACEOF
4127 if ac_fn_c_try_cpp "$LINENO"; then :
4128 # Broken: success on invalid input.
4129 continue
4130 else
4131 # Passes both tests.
4132 ac_preproc_ok=:
4133 break
4134 fi
4135 rm -f conftest.err conftest.i conftest.$ac_ext
4136
4137 done
4138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4139 rm -f conftest.i conftest.err conftest.$ac_ext
4140 if $ac_preproc_ok; then :
4141
4142 else
4143 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4144 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4145 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4146 See \`config.log' for more details" "$LINENO" 5; }
4147 fi
4148
4149 ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4157 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4158 if ${ac_cv_path_GREP+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 if test -z "$GREP"; then
4162 ac_path_GREP_found=false
4163 # Loop through the user's path and test for each of PROGNAME-LIST
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4166 do
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_prog in grep ggrep; do
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4172 as_fn_executable_p "$ac_path_GREP" || continue
4173 # Check for GNU ac_path_GREP and select it if it is found.
4174 # Check for GNU $ac_path_GREP
4175 case `"$ac_path_GREP" --version 2>&1` in
4176 *GNU*)
4177 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4178 *)
4179 ac_count=0
4180 $as_echo_n 0123456789 >"conftest.in"
4181 while :
4182 do
4183 cat "conftest.in" "conftest.in" >"conftest.tmp"
4184 mv "conftest.tmp" "conftest.in"
4185 cp "conftest.in" "conftest.nl"
4186 $as_echo 'GREP' >> "conftest.nl"
4187 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4189 as_fn_arith $ac_count + 1 && ac_count=$as_val
4190 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4191 # Best one so far, save it but keep looking for a better one
4192 ac_cv_path_GREP="$ac_path_GREP"
4193 ac_path_GREP_max=$ac_count
4194 fi
4195 # 10*(2^10) chars as input seems more than enough
4196 test $ac_count -gt 10 && break
4197 done
4198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199 esac
4200
4201 $ac_path_GREP_found && break 3
4202 done
4203 done
4204 done
4205 IFS=$as_save_IFS
4206 if test -z "$ac_cv_path_GREP"; then
4207 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4208 fi
4209 else
4210 ac_cv_path_GREP=$GREP
4211 fi
4212
4213 fi
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4215 $as_echo "$ac_cv_path_GREP" >&6; }
4216 GREP="$ac_cv_path_GREP"
4217
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4220 $as_echo_n "checking for egrep... " >&6; }
4221 if ${ac_cv_path_EGREP+:} false; then :
4222 $as_echo_n "(cached) " >&6
4223 else
4224 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4225 then ac_cv_path_EGREP="$GREP -E"
4226 else
4227 if test -z "$EGREP"; then
4228 ac_path_EGREP_found=false
4229 # Loop through the user's path and test for each of PROGNAME-LIST
4230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4232 do
4233 IFS=$as_save_IFS
4234 test -z "$as_dir" && as_dir=.
4235 for ac_prog in egrep; do
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4238 as_fn_executable_p "$ac_path_EGREP" || continue
4239 # Check for GNU ac_path_EGREP and select it if it is found.
4240 # Check for GNU $ac_path_EGREP
4241 case `"$ac_path_EGREP" --version 2>&1` in
4242 *GNU*)
4243 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4244 *)
4245 ac_count=0
4246 $as_echo_n 0123456789 >"conftest.in"
4247 while :
4248 do
4249 cat "conftest.in" "conftest.in" >"conftest.tmp"
4250 mv "conftest.tmp" "conftest.in"
4251 cp "conftest.in" "conftest.nl"
4252 $as_echo 'EGREP' >> "conftest.nl"
4253 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4254 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4255 as_fn_arith $ac_count + 1 && ac_count=$as_val
4256 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4257 # Best one so far, save it but keep looking for a better one
4258 ac_cv_path_EGREP="$ac_path_EGREP"
4259 ac_path_EGREP_max=$ac_count
4260 fi
4261 # 10*(2^10) chars as input seems more than enough
4262 test $ac_count -gt 10 && break
4263 done
4264 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4265 esac
4266
4267 $ac_path_EGREP_found && break 3
4268 done
4269 done
4270 done
4271 IFS=$as_save_IFS
4272 if test -z "$ac_cv_path_EGREP"; then
4273 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4274 fi
4275 else
4276 ac_cv_path_EGREP=$EGREP
4277 fi
4278
4279 fi
4280 fi
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4282 $as_echo "$ac_cv_path_EGREP" >&6; }
4283 EGREP="$ac_cv_path_EGREP"
4284
4285
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4287 $as_echo_n "checking for ANSI C header files... " >&6; }
4288 if ${ac_cv_header_stdc+:} false; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 #include <stdlib.h>
4294 #include <stdarg.h>
4295 #include <string.h>
4296 #include <float.h>
4297
4298 int
4299 main ()
4300 {
4301
4302 ;
4303 return 0;
4304 }
4305 _ACEOF
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_cv_header_stdc=yes
4308 else
4309 ac_cv_header_stdc=no
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312
4313 if test $ac_cv_header_stdc = yes; then
4314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4317 #include <string.h>
4318
4319 _ACEOF
4320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4321 $EGREP "memchr" >/dev/null 2>&1; then :
4322
4323 else
4324 ac_cv_header_stdc=no
4325 fi
4326 rm -f conftest*
4327
4328 fi
4329
4330 if test $ac_cv_header_stdc = yes; then
4331 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4334 #include <stdlib.h>
4335
4336 _ACEOF
4337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4338 $EGREP "free" >/dev/null 2>&1; then :
4339
4340 else
4341 ac_cv_header_stdc=no
4342 fi
4343 rm -f conftest*
4344
4345 fi
4346
4347 if test $ac_cv_header_stdc = yes; then
4348 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4349 if test "$cross_compiling" = yes; then :
4350 :
4351 else
4352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h. */
4354 #include <ctype.h>
4355 #include <stdlib.h>
4356 #if ((' ' & 0x0FF) == 0x020)
4357 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4358 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4359 #else
4360 # define ISLOWER(c) \
4361 (('a' <= (c) && (c) <= 'i') \
4362 || ('j' <= (c) && (c) <= 'r') \
4363 || ('s' <= (c) && (c) <= 'z'))
4364 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4365 #endif
4366
4367 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4368 int
4369 main ()
4370 {
4371 int i;
4372 for (i = 0; i < 256; i++)
4373 if (XOR (islower (i), ISLOWER (i))
4374 || toupper (i) != TOUPPER (i))
4375 return 2;
4376 return 0;
4377 }
4378 _ACEOF
4379 if ac_fn_c_try_run "$LINENO"; then :
4380
4381 else
4382 ac_cv_header_stdc=no
4383 fi
4384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4385 conftest.$ac_objext conftest.beam conftest.$ac_ext
4386 fi
4387
4388 fi
4389 fi
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4391 $as_echo "$ac_cv_header_stdc" >&6; }
4392 if test $ac_cv_header_stdc = yes; then
4393
4394 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4395
4396 fi
4397
4398 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4399 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4400 inttypes.h stdint.h unistd.h
4401 do :
4402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4403 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4404 "
4405 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4406 cat >>confdefs.h <<_ACEOF
4407 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4408 _ACEOF
4409
4410 fi
4411
4412 done
4413
4414
4415
4416
4417
4418
4419 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4420 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4421 CLANGCC="yes"
4422 else
4423 CLANGCC="no"
4424 fi
4425
4426 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4427 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4428 INTELCC="yes"
4429 else
4430 INTELCC="no"
4431 fi
4432
4433 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4434 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4435 SUNCC="yes"
4436 else
4437 SUNCC="no"
4438 fi
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4449 if test -n "$ac_tool_prefix"; then
4450 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4451 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4453 $as_echo_n "checking for $ac_word... " >&6; }
4454 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4457 case $PKG_CONFIG in
4458 [\\/]* | ?:[\\/]*)
4459 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4460 ;;
4461 *)
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH
4464 do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4469 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 break 2
4472 fi
4473 done
4474 done
4475 IFS=$as_save_IFS
4476
4477 ;;
4478 esac
4479 fi
4480 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4481 if test -n "$PKG_CONFIG"; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4483 $as_echo "$PKG_CONFIG" >&6; }
4484 else
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4487 fi
4488
4489
4490 fi
4491 if test -z "$ac_cv_path_PKG_CONFIG"; then
4492 ac_pt_PKG_CONFIG=$PKG_CONFIG
4493 # Extract the first word of "pkg-config", so it can be a program name with args.
4494 set dummy pkg-config; ac_word=$2
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4496 $as_echo_n "checking for $ac_word... " >&6; }
4497 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 case $ac_pt_PKG_CONFIG in
4501 [\\/]* | ?:[\\/]*)
4502 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4503 ;;
4504 *)
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4507 do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4512 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4515 fi
4516 done
4517 done
4518 IFS=$as_save_IFS
4519
4520 ;;
4521 esac
4522 fi
4523 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4524 if test -n "$ac_pt_PKG_CONFIG"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4526 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4527 else
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4530 fi
4531
4532 if test "x$ac_pt_PKG_CONFIG" = x; then
4533 PKG_CONFIG=""
4534 else
4535 case $cross_compiling:$ac_tool_warned in
4536 yes:)
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4539 ac_tool_warned=yes ;;
4540 esac
4541 PKG_CONFIG=$ac_pt_PKG_CONFIG
4542 fi
4543 else
4544 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4545 fi
4546
4547 fi
4548 if test -n "$PKG_CONFIG"; then
4549 _pkg_min_version=0.9.0
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4551 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4552 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4554 $as_echo "yes" >&6; }
4555 else
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4557 $as_echo "no" >&6; }
4558 PKG_CONFIG=""
4559 fi
4560 fi
4561 # Make sure we can run config.sub.
4562 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4563 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4564
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4566 $as_echo_n "checking build system type... " >&6; }
4567 if ${ac_cv_build+:} false; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 ac_build_alias=$build_alias
4571 test "x$ac_build_alias" = x &&
4572 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4573 test "x$ac_build_alias" = x &&
4574 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4575 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4576 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4577
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4580 $as_echo "$ac_cv_build" >&6; }
4581 case $ac_cv_build in
4582 *-*-*) ;;
4583 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4584 esac
4585 build=$ac_cv_build
4586 ac_save_IFS=$IFS; IFS='-'
4587 set x $ac_cv_build
4588 shift
4589 build_cpu=$1
4590 build_vendor=$2
4591 shift; shift
4592 # Remember, the first character of IFS is used to create $*,
4593 # except with old shells:
4594 build_os=$*
4595 IFS=$ac_save_IFS
4596 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4597
4598
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4600 $as_echo_n "checking host system type... " >&6; }
4601 if ${ac_cv_host+:} false; then :
4602 $as_echo_n "(cached) " >&6
4603 else
4604 if test "x$host_alias" = x; then
4605 ac_cv_host=$ac_cv_build
4606 else
4607 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4608 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4609 fi
4610
4611 fi
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4613 $as_echo "$ac_cv_host" >&6; }
4614 case $ac_cv_host in
4615 *-*-*) ;;
4616 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4617 esac
4618 host=$ac_cv_host
4619 ac_save_IFS=$IFS; IFS='-'
4620 set x $ac_cv_host
4621 shift
4622 host_cpu=$1
4623 host_vendor=$2
4624 shift; shift
4625 # Remember, the first character of IFS is used to create $*,
4626 # except with old shells:
4627 host_os=$*
4628 IFS=$ac_save_IFS
4629 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4630
4631
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4633 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4634 if ${ac_cv_path_SED+:} false; then :
4635 $as_echo_n "(cached) " >&6
4636 else
4637 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4638 for ac_i in 1 2 3 4 5 6 7; do
4639 ac_script="$ac_script$as_nl$ac_script"
4640 done
4641 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4642 { ac_script=; unset ac_script;}
4643 if test -z "$SED"; then
4644 ac_path_SED_found=false
4645 # Loop through the user's path and test for each of PROGNAME-LIST
4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 for as_dir in $PATH
4648 do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_prog in sed gsed; do
4652 for ac_exec_ext in '' $ac_executable_extensions; do
4653 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4654 as_fn_executable_p "$ac_path_SED" || continue
4655 # Check for GNU ac_path_SED and select it if it is found.
4656 # Check for GNU $ac_path_SED
4657 case `"$ac_path_SED" --version 2>&1` in
4658 *GNU*)
4659 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4660 *)
4661 ac_count=0
4662 $as_echo_n 0123456789 >"conftest.in"
4663 while :
4664 do
4665 cat "conftest.in" "conftest.in" >"conftest.tmp"
4666 mv "conftest.tmp" "conftest.in"
4667 cp "conftest.in" "conftest.nl"
4668 $as_echo '' >> "conftest.nl"
4669 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4671 as_fn_arith $ac_count + 1 && ac_count=$as_val
4672 if test $ac_count -gt ${ac_path_SED_max-0}; then
4673 # Best one so far, save it but keep looking for a better one
4674 ac_cv_path_SED="$ac_path_SED"
4675 ac_path_SED_max=$ac_count
4676 fi
4677 # 10*(2^10) chars as input seems more than enough
4678 test $ac_count -gt 10 && break
4679 done
4680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4681 esac
4682
4683 $ac_path_SED_found && break 3
4684 done
4685 done
4686 done
4687 IFS=$as_save_IFS
4688 if test -z "$ac_cv_path_SED"; then
4689 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4690 fi
4691 else
4692 ac_cv_path_SED=$SED
4693 fi
4694
4695 fi
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4697 $as_echo "$ac_cv_path_SED" >&6; }
4698 SED="$ac_cv_path_SED"
4699 rm -f conftest.sed
4700
4701
4702
4703
4704
4705
4706 # Check whether --enable-selective-werror was given.
4707 if test "${enable_selective_werror+set}" = set; then :
4708 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4709 else
4710 SELECTIVE_WERROR=yes
4711 fi
4712
4713
4714
4715
4716
4717 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4718 if test "x$SUNCC" = "xyes"; then
4719 BASE_CFLAGS="-v"
4720 else
4721 BASE_CFLAGS=""
4722 fi
4723
4724 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738 xorg_testset_save_CFLAGS="$CFLAGS"
4739
4740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4743 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4744 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4749 int i;
4750 _ACEOF
4751 if ac_fn_c_try_compile "$LINENO"; then :
4752 xorg_cv_cc_flag_unknown_warning_option=yes
4753 else
4754 xorg_cv_cc_flag_unknown_warning_option=no
4755 fi
4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4759 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4761 CFLAGS="$xorg_testset_save_CFLAGS"
4762 fi
4763
4764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4767 fi
4768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4770 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4771 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776 int i;
4777 _ACEOF
4778 if ac_fn_c_try_compile "$LINENO"; then :
4779 xorg_cv_cc_flag_unused_command_line_argument=yes
4780 else
4781 xorg_cv_cc_flag_unused_command_line_argument=no
4782 fi
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784 fi
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4786 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4788 CFLAGS="$xorg_testset_save_CFLAGS"
4789 fi
4790
4791 found="no"
4792
4793 if test $found = "no" ; then
4794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4796 fi
4797
4798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4800 fi
4801
4802 CFLAGS="$CFLAGS -Wall"
4803
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4805 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4806 cacheid=xorg_cv_cc_flag__Wall
4807 if eval \${$cacheid+:} false; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h. */
4812 int i;
4813 int
4814 main ()
4815 {
4816
4817 ;
4818 return 0;
4819 }
4820 _ACEOF
4821 if ac_fn_c_try_link "$LINENO"; then :
4822 eval $cacheid=yes
4823 else
4824 eval $cacheid=no
4825 fi
4826 rm -f core conftest.err conftest.$ac_objext \
4827 conftest$ac_exeext conftest.$ac_ext
4828 fi
4829
4830
4831 CFLAGS="$xorg_testset_save_CFLAGS"
4832
4833 eval supported=\$$cacheid
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4835 $as_echo "$supported" >&6; }
4836 if test "$supported" = "yes" ; then
4837 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4838 found="yes"
4839 fi
4840 fi
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856 xorg_testset_save_CFLAGS="$CFLAGS"
4857
4858 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4859 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4861 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4862 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4863 $as_echo_n "(cached) " >&6
4864 else
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4867 int i;
4868 _ACEOF
4869 if ac_fn_c_try_compile "$LINENO"; then :
4870 xorg_cv_cc_flag_unknown_warning_option=yes
4871 else
4872 xorg_cv_cc_flag_unknown_warning_option=no
4873 fi
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875 fi
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4877 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4879 CFLAGS="$xorg_testset_save_CFLAGS"
4880 fi
4881
4882 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4885 fi
4886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4888 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4889 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4893 /* end confdefs.h. */
4894 int i;
4895 _ACEOF
4896 if ac_fn_c_try_compile "$LINENO"; then :
4897 xorg_cv_cc_flag_unused_command_line_argument=yes
4898 else
4899 xorg_cv_cc_flag_unused_command_line_argument=no
4900 fi
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 fi
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4904 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4906 CFLAGS="$xorg_testset_save_CFLAGS"
4907 fi
4908
4909 found="no"
4910
4911 if test $found = "no" ; then
4912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4914 fi
4915
4916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4918 fi
4919
4920 CFLAGS="$CFLAGS -Wpointer-arith"
4921
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4923 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4924 cacheid=xorg_cv_cc_flag__Wpointer_arith
4925 if eval \${$cacheid+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930 int i;
4931 int
4932 main ()
4933 {
4934
4935 ;
4936 return 0;
4937 }
4938 _ACEOF
4939 if ac_fn_c_try_link "$LINENO"; then :
4940 eval $cacheid=yes
4941 else
4942 eval $cacheid=no
4943 fi
4944 rm -f core conftest.err conftest.$ac_objext \
4945 conftest$ac_exeext conftest.$ac_ext
4946 fi
4947
4948
4949 CFLAGS="$xorg_testset_save_CFLAGS"
4950
4951 eval supported=\$$cacheid
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4953 $as_echo "$supported" >&6; }
4954 if test "$supported" = "yes" ; then
4955 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4956 found="yes"
4957 fi
4958 fi
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974 xorg_testset_save_CFLAGS="$CFLAGS"
4975
4976 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4979 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4980 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4984 /* end confdefs.h. */
4985 int i;
4986 _ACEOF
4987 if ac_fn_c_try_compile "$LINENO"; then :
4988 xorg_cv_cc_flag_unknown_warning_option=yes
4989 else
4990 xorg_cv_cc_flag_unknown_warning_option=no
4991 fi
4992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4993 fi
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4995 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4996 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4997 CFLAGS="$xorg_testset_save_CFLAGS"
4998 fi
4999
5000 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5001 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5003 fi
5004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5006 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5007 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5008 $as_echo_n "(cached) " >&6
5009 else
5010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5011 /* end confdefs.h. */
5012 int i;
5013 _ACEOF
5014 if ac_fn_c_try_compile "$LINENO"; then :
5015 xorg_cv_cc_flag_unused_command_line_argument=yes
5016 else
5017 xorg_cv_cc_flag_unused_command_line_argument=no
5018 fi
5019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5020 fi
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5022 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5024 CFLAGS="$xorg_testset_save_CFLAGS"
5025 fi
5026
5027 found="no"
5028
5029 if test $found = "no" ; then
5030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5032 fi
5033
5034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5036 fi
5037
5038 CFLAGS="$CFLAGS -Wmissing-declarations"
5039
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5041 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5042 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5043 if eval \${$cacheid+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048 int i;
5049 int
5050 main ()
5051 {
5052
5053 ;
5054 return 0;
5055 }
5056 _ACEOF
5057 if ac_fn_c_try_link "$LINENO"; then :
5058 eval $cacheid=yes
5059 else
5060 eval $cacheid=no
5061 fi
5062 rm -f core conftest.err conftest.$ac_objext \
5063 conftest$ac_exeext conftest.$ac_ext
5064 fi
5065
5066
5067 CFLAGS="$xorg_testset_save_CFLAGS"
5068
5069 eval supported=\$$cacheid
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5071 $as_echo "$supported" >&6; }
5072 if test "$supported" = "yes" ; then
5073 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5074 found="yes"
5075 fi
5076 fi
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092 xorg_testset_save_CFLAGS="$CFLAGS"
5093
5094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5097 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5098 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5099 $as_echo_n "(cached) " >&6
5100 else
5101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5102 /* end confdefs.h. */
5103 int i;
5104 _ACEOF
5105 if ac_fn_c_try_compile "$LINENO"; then :
5106 xorg_cv_cc_flag_unknown_warning_option=yes
5107 else
5108 xorg_cv_cc_flag_unknown_warning_option=no
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111 fi
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5113 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5114 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5115 CFLAGS="$xorg_testset_save_CFLAGS"
5116 fi
5117
5118 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5121 fi
5122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5124 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5125 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130 int i;
5131 _ACEOF
5132 if ac_fn_c_try_compile "$LINENO"; then :
5133 xorg_cv_cc_flag_unused_command_line_argument=yes
5134 else
5135 xorg_cv_cc_flag_unused_command_line_argument=no
5136 fi
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 fi
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5140 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5142 CFLAGS="$xorg_testset_save_CFLAGS"
5143 fi
5144
5145 found="no"
5146
5147 if test $found = "no" ; then
5148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5150 fi
5151
5152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5154 fi
5155
5156 CFLAGS="$CFLAGS -Wformat=2"
5157
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5159 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5160 cacheid=xorg_cv_cc_flag__Wformat_2
5161 if eval \${$cacheid+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5165 /* end confdefs.h. */
5166 int i;
5167 int
5168 main ()
5169 {
5170
5171 ;
5172 return 0;
5173 }
5174 _ACEOF
5175 if ac_fn_c_try_link "$LINENO"; then :
5176 eval $cacheid=yes
5177 else
5178 eval $cacheid=no
5179 fi
5180 rm -f core conftest.err conftest.$ac_objext \
5181 conftest$ac_exeext conftest.$ac_ext
5182 fi
5183
5184
5185 CFLAGS="$xorg_testset_save_CFLAGS"
5186
5187 eval supported=\$$cacheid
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5189 $as_echo "$supported" >&6; }
5190 if test "$supported" = "yes" ; then
5191 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5192 found="yes"
5193 fi
5194 fi
5195
5196 if test $found = "no" ; then
5197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5199 fi
5200
5201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5203 fi
5204
5205 CFLAGS="$CFLAGS -Wformat"
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5208 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5209 cacheid=xorg_cv_cc_flag__Wformat
5210 if eval \${$cacheid+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 int i;
5216 int
5217 main ()
5218 {
5219
5220 ;
5221 return 0;
5222 }
5223 _ACEOF
5224 if ac_fn_c_try_link "$LINENO"; then :
5225 eval $cacheid=yes
5226 else
5227 eval $cacheid=no
5228 fi
5229 rm -f core conftest.err conftest.$ac_objext \
5230 conftest$ac_exeext conftest.$ac_ext
5231 fi
5232
5233
5234 CFLAGS="$xorg_testset_save_CFLAGS"
5235
5236 eval supported=\$$cacheid
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5238 $as_echo "$supported" >&6; }
5239 if test "$supported" = "yes" ; then
5240 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5241 found="yes"
5242 fi
5243 fi
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261 xorg_testset_save_CFLAGS="$CFLAGS"
5262
5263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5266 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5267 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 int i;
5273 _ACEOF
5274 if ac_fn_c_try_compile "$LINENO"; then :
5275 xorg_cv_cc_flag_unknown_warning_option=yes
5276 else
5277 xorg_cv_cc_flag_unknown_warning_option=no
5278 fi
5279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280 fi
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5282 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5284 CFLAGS="$xorg_testset_save_CFLAGS"
5285 fi
5286
5287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5290 fi
5291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5293 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5294 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 int i;
5300 _ACEOF
5301 if ac_fn_c_try_compile "$LINENO"; then :
5302 xorg_cv_cc_flag_unused_command_line_argument=yes
5303 else
5304 xorg_cv_cc_flag_unused_command_line_argument=no
5305 fi
5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 fi
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5309 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5310 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5311 CFLAGS="$xorg_testset_save_CFLAGS"
5312 fi
5313
5314 found="no"
5315
5316 if test $found = "no" ; then
5317 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5319 fi
5320
5321 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5323 fi
5324
5325 CFLAGS="$CFLAGS -Wstrict-prototypes"
5326
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5328 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5329 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5330 if eval \${$cacheid+:} false; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 int i;
5336 int
5337 main ()
5338 {
5339
5340 ;
5341 return 0;
5342 }
5343 _ACEOF
5344 if ac_fn_c_try_link "$LINENO"; then :
5345 eval $cacheid=yes
5346 else
5347 eval $cacheid=no
5348 fi
5349 rm -f core conftest.err conftest.$ac_objext \
5350 conftest$ac_exeext conftest.$ac_ext
5351 fi
5352
5353
5354 CFLAGS="$xorg_testset_save_CFLAGS"
5355
5356 eval supported=\$$cacheid
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5358 $as_echo "$supported" >&6; }
5359 if test "$supported" = "yes" ; then
5360 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5361 found="yes"
5362 fi
5363 fi
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379 xorg_testset_save_CFLAGS="$CFLAGS"
5380
5381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5384 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5385 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5389 /* end confdefs.h. */
5390 int i;
5391 _ACEOF
5392 if ac_fn_c_try_compile "$LINENO"; then :
5393 xorg_cv_cc_flag_unknown_warning_option=yes
5394 else
5395 xorg_cv_cc_flag_unknown_warning_option=no
5396 fi
5397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 fi
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5400 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5402 CFLAGS="$xorg_testset_save_CFLAGS"
5403 fi
5404
5405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5408 fi
5409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5411 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5412 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5413 $as_echo_n "(cached) " >&6
5414 else
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 int i;
5418 _ACEOF
5419 if ac_fn_c_try_compile "$LINENO"; then :
5420 xorg_cv_cc_flag_unused_command_line_argument=yes
5421 else
5422 xorg_cv_cc_flag_unused_command_line_argument=no
5423 fi
5424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 fi
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5427 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5429 CFLAGS="$xorg_testset_save_CFLAGS"
5430 fi
5431
5432 found="no"
5433
5434 if test $found = "no" ; then
5435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5437 fi
5438
5439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5441 fi
5442
5443 CFLAGS="$CFLAGS -Wmissing-prototypes"
5444
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5446 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5447 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5448 if eval \${$cacheid+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5453 int i;
5454 int
5455 main ()
5456 {
5457
5458 ;
5459 return 0;
5460 }
5461 _ACEOF
5462 if ac_fn_c_try_link "$LINENO"; then :
5463 eval $cacheid=yes
5464 else
5465 eval $cacheid=no
5466 fi
5467 rm -f core conftest.err conftest.$ac_objext \
5468 conftest$ac_exeext conftest.$ac_ext
5469 fi
5470
5471
5472 CFLAGS="$xorg_testset_save_CFLAGS"
5473
5474 eval supported=\$$cacheid
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5476 $as_echo "$supported" >&6; }
5477 if test "$supported" = "yes" ; then
5478 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5479 found="yes"
5480 fi
5481 fi
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497 xorg_testset_save_CFLAGS="$CFLAGS"
5498
5499 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5502 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5503 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5508 int i;
5509 _ACEOF
5510 if ac_fn_c_try_compile "$LINENO"; then :
5511 xorg_cv_cc_flag_unknown_warning_option=yes
5512 else
5513 xorg_cv_cc_flag_unknown_warning_option=no
5514 fi
5515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 fi
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5518 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5519 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5520 CFLAGS="$xorg_testset_save_CFLAGS"
5521 fi
5522
5523 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5526 fi
5527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5529 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5530 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5534 /* end confdefs.h. */
5535 int i;
5536 _ACEOF
5537 if ac_fn_c_try_compile "$LINENO"; then :
5538 xorg_cv_cc_flag_unused_command_line_argument=yes
5539 else
5540 xorg_cv_cc_flag_unused_command_line_argument=no
5541 fi
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543 fi
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5545 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5547 CFLAGS="$xorg_testset_save_CFLAGS"
5548 fi
5549
5550 found="no"
5551
5552 if test $found = "no" ; then
5553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5555 fi
5556
5557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5559 fi
5560
5561 CFLAGS="$CFLAGS -Wnested-externs"
5562
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5564 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5565 cacheid=xorg_cv_cc_flag__Wnested_externs
5566 if eval \${$cacheid+:} false; then :
5567 $as_echo_n "(cached) " >&6
5568 else
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 int i;
5572 int
5573 main ()
5574 {
5575
5576 ;
5577 return 0;
5578 }
5579 _ACEOF
5580 if ac_fn_c_try_link "$LINENO"; then :
5581 eval $cacheid=yes
5582 else
5583 eval $cacheid=no
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext \
5586 conftest$ac_exeext conftest.$ac_ext
5587 fi
5588
5589
5590 CFLAGS="$xorg_testset_save_CFLAGS"
5591
5592 eval supported=\$$cacheid
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5594 $as_echo "$supported" >&6; }
5595 if test "$supported" = "yes" ; then
5596 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5597 found="yes"
5598 fi
5599 fi
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615 xorg_testset_save_CFLAGS="$CFLAGS"
5616
5617 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5620 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5621 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5622 $as_echo_n "(cached) " >&6
5623 else
5624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5625 /* end confdefs.h. */
5626 int i;
5627 _ACEOF
5628 if ac_fn_c_try_compile "$LINENO"; then :
5629 xorg_cv_cc_flag_unknown_warning_option=yes
5630 else
5631 xorg_cv_cc_flag_unknown_warning_option=no
5632 fi
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 fi
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5636 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5638 CFLAGS="$xorg_testset_save_CFLAGS"
5639 fi
5640
5641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5644 fi
5645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5647 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5648 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 int i;
5654 _ACEOF
5655 if ac_fn_c_try_compile "$LINENO"; then :
5656 xorg_cv_cc_flag_unused_command_line_argument=yes
5657 else
5658 xorg_cv_cc_flag_unused_command_line_argument=no
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5661 fi
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5663 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5664 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5665 CFLAGS="$xorg_testset_save_CFLAGS"
5666 fi
5667
5668 found="no"
5669
5670 if test $found = "no" ; then
5671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5673 fi
5674
5675 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5677 fi
5678
5679 CFLAGS="$CFLAGS -Wbad-function-cast"
5680
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5682 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5683 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5684 if eval \${$cacheid+:} false; then :
5685 $as_echo_n "(cached) " >&6
5686 else
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 int i;
5690 int
5691 main ()
5692 {
5693
5694 ;
5695 return 0;
5696 }
5697 _ACEOF
5698 if ac_fn_c_try_link "$LINENO"; then :
5699 eval $cacheid=yes
5700 else
5701 eval $cacheid=no
5702 fi
5703 rm -f core conftest.err conftest.$ac_objext \
5704 conftest$ac_exeext conftest.$ac_ext
5705 fi
5706
5707
5708 CFLAGS="$xorg_testset_save_CFLAGS"
5709
5710 eval supported=\$$cacheid
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5712 $as_echo "$supported" >&6; }
5713 if test "$supported" = "yes" ; then
5714 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5715 found="yes"
5716 fi
5717 fi
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733 xorg_testset_save_CFLAGS="$CFLAGS"
5734
5735 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5738 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5739 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 int i;
5745 _ACEOF
5746 if ac_fn_c_try_compile "$LINENO"; then :
5747 xorg_cv_cc_flag_unknown_warning_option=yes
5748 else
5749 xorg_cv_cc_flag_unknown_warning_option=no
5750 fi
5751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5752 fi
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5754 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5756 CFLAGS="$xorg_testset_save_CFLAGS"
5757 fi
5758
5759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762 fi
5763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5765 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5766 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5767 $as_echo_n "(cached) " >&6
5768 else
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5771 int i;
5772 _ACEOF
5773 if ac_fn_c_try_compile "$LINENO"; then :
5774 xorg_cv_cc_flag_unused_command_line_argument=yes
5775 else
5776 xorg_cv_cc_flag_unused_command_line_argument=no
5777 fi
5778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5779 fi
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5781 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5782 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5783 CFLAGS="$xorg_testset_save_CFLAGS"
5784 fi
5785
5786 found="no"
5787
5788 if test $found = "no" ; then
5789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5791 fi
5792
5793 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5795 fi
5796
5797 CFLAGS="$CFLAGS -Wold-style-definition"
5798
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5800 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5801 cacheid=xorg_cv_cc_flag__Wold_style_definition
5802 if eval \${$cacheid+:} false; then :
5803 $as_echo_n "(cached) " >&6
5804 else
5805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5806 /* end confdefs.h. */
5807 int i;
5808 int
5809 main ()
5810 {
5811
5812 ;
5813 return 0;
5814 }
5815 _ACEOF
5816 if ac_fn_c_try_link "$LINENO"; then :
5817 eval $cacheid=yes
5818 else
5819 eval $cacheid=no
5820 fi
5821 rm -f core conftest.err conftest.$ac_objext \
5822 conftest$ac_exeext conftest.$ac_ext
5823 fi
5824
5825
5826 CFLAGS="$xorg_testset_save_CFLAGS"
5827
5828 eval supported=\$$cacheid
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5830 $as_echo "$supported" >&6; }
5831 if test "$supported" = "yes" ; then
5832 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5833 found="yes"
5834 fi
5835 fi
5836
5837 if test $found = "no" ; then
5838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5840 fi
5841
5842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5844 fi
5845
5846 CFLAGS="$CFLAGS -fd"
5847
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5849 $as_echo_n "checking if $CC supports -fd... " >&6; }
5850 cacheid=xorg_cv_cc_flag__fd
5851 if eval \${$cacheid+:} false; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5856 int i;
5857 int
5858 main ()
5859 {
5860
5861 ;
5862 return 0;
5863 }
5864 _ACEOF
5865 if ac_fn_c_try_link "$LINENO"; then :
5866 eval $cacheid=yes
5867 else
5868 eval $cacheid=no
5869 fi
5870 rm -f core conftest.err conftest.$ac_objext \
5871 conftest$ac_exeext conftest.$ac_ext
5872 fi
5873
5874
5875 CFLAGS="$xorg_testset_save_CFLAGS"
5876
5877 eval supported=\$$cacheid
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5879 $as_echo "$supported" >&6; }
5880 if test "$supported" = "yes" ; then
5881 BASE_CFLAGS="$BASE_CFLAGS -fd"
5882 found="yes"
5883 fi
5884 fi
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900 xorg_testset_save_CFLAGS="$CFLAGS"
5901
5902 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5905 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5906 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
5913 if ac_fn_c_try_compile "$LINENO"; then :
5914 xorg_cv_cc_flag_unknown_warning_option=yes
5915 else
5916 xorg_cv_cc_flag_unknown_warning_option=no
5917 fi
5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5919 fi
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5921 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5923 CFLAGS="$xorg_testset_save_CFLAGS"
5924 fi
5925
5926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5929 fi
5930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5932 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5933 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5934 $as_echo_n "(cached) " >&6
5935 else
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5938 int i;
5939 _ACEOF
5940 if ac_fn_c_try_compile "$LINENO"; then :
5941 xorg_cv_cc_flag_unused_command_line_argument=yes
5942 else
5943 xorg_cv_cc_flag_unused_command_line_argument=no
5944 fi
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 fi
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5948 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5950 CFLAGS="$xorg_testset_save_CFLAGS"
5951 fi
5952
5953 found="no"
5954
5955 if test $found = "no" ; then
5956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5958 fi
5959
5960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5962 fi
5963
5964 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5965
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5967 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5968 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5969 if eval \${$cacheid+:} false; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5974 int i;
5975 int
5976 main ()
5977 {
5978
5979 ;
5980 return 0;
5981 }
5982 _ACEOF
5983 if ac_fn_c_try_link "$LINENO"; then :
5984 eval $cacheid=yes
5985 else
5986 eval $cacheid=no
5987 fi
5988 rm -f core conftest.err conftest.$ac_objext \
5989 conftest$ac_exeext conftest.$ac_ext
5990 fi
5991
5992
5993 CFLAGS="$xorg_testset_save_CFLAGS"
5994
5995 eval supported=\$$cacheid
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5997 $as_echo "$supported" >&6; }
5998 if test "$supported" = "yes" ; then
5999 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6000 found="yes"
6001 fi
6002 fi
6003
6004
6005
6006
6007
6008 # This chunk adds additional warnings that could catch undesired effects.
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022 xorg_testset_save_CFLAGS="$CFLAGS"
6023
6024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6027 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6028 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6029 $as_echo_n "(cached) " >&6
6030 else
6031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6032 /* end confdefs.h. */
6033 int i;
6034 _ACEOF
6035 if ac_fn_c_try_compile "$LINENO"; then :
6036 xorg_cv_cc_flag_unknown_warning_option=yes
6037 else
6038 xorg_cv_cc_flag_unknown_warning_option=no
6039 fi
6040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 fi
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6043 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6044 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6045 CFLAGS="$xorg_testset_save_CFLAGS"
6046 fi
6047
6048 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6051 fi
6052 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6054 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6055 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6056 $as_echo_n "(cached) " >&6
6057 else
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6060 int i;
6061 _ACEOF
6062 if ac_fn_c_try_compile "$LINENO"; then :
6063 xorg_cv_cc_flag_unused_command_line_argument=yes
6064 else
6065 xorg_cv_cc_flag_unused_command_line_argument=no
6066 fi
6067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6068 fi
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6070 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6071 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6072 CFLAGS="$xorg_testset_save_CFLAGS"
6073 fi
6074
6075 found="no"
6076
6077 if test $found = "no" ; then
6078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6080 fi
6081
6082 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6084 fi
6085
6086 CFLAGS="$CFLAGS -Wunused"
6087
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6089 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6090 cacheid=xorg_cv_cc_flag__Wunused
6091 if eval \${$cacheid+:} false; then :
6092 $as_echo_n "(cached) " >&6
6093 else
6094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 int i;
6097 int
6098 main ()
6099 {
6100
6101 ;
6102 return 0;
6103 }
6104 _ACEOF
6105 if ac_fn_c_try_link "$LINENO"; then :
6106 eval $cacheid=yes
6107 else
6108 eval $cacheid=no
6109 fi
6110 rm -f core conftest.err conftest.$ac_objext \
6111 conftest$ac_exeext conftest.$ac_ext
6112 fi
6113
6114
6115 CFLAGS="$xorg_testset_save_CFLAGS"
6116
6117 eval supported=\$$cacheid
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6119 $as_echo "$supported" >&6; }
6120 if test "$supported" = "yes" ; then
6121 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6122 found="yes"
6123 fi
6124 fi
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140 xorg_testset_save_CFLAGS="$CFLAGS"
6141
6142 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6145 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6146 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6147 $as_echo_n "(cached) " >&6
6148 else
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6151 int i;
6152 _ACEOF
6153 if ac_fn_c_try_compile "$LINENO"; then :
6154 xorg_cv_cc_flag_unknown_warning_option=yes
6155 else
6156 xorg_cv_cc_flag_unknown_warning_option=no
6157 fi
6158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159 fi
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6161 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6163 CFLAGS="$xorg_testset_save_CFLAGS"
6164 fi
6165
6166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6169 fi
6170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6172 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6173 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6174 $as_echo_n "(cached) " >&6
6175 else
6176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6177 /* end confdefs.h. */
6178 int i;
6179 _ACEOF
6180 if ac_fn_c_try_compile "$LINENO"; then :
6181 xorg_cv_cc_flag_unused_command_line_argument=yes
6182 else
6183 xorg_cv_cc_flag_unused_command_line_argument=no
6184 fi
6185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186 fi
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6188 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6189 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6190 CFLAGS="$xorg_testset_save_CFLAGS"
6191 fi
6192
6193 found="no"
6194
6195 if test $found = "no" ; then
6196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6198 fi
6199
6200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6202 fi
6203
6204 CFLAGS="$CFLAGS -Wuninitialized"
6205
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6207 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6208 cacheid=xorg_cv_cc_flag__Wuninitialized
6209 if eval \${$cacheid+:} false; then :
6210 $as_echo_n "(cached) " >&6
6211 else
6212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6213 /* end confdefs.h. */
6214 int i;
6215 int
6216 main ()
6217 {
6218
6219 ;
6220 return 0;
6221 }
6222 _ACEOF
6223 if ac_fn_c_try_link "$LINENO"; then :
6224 eval $cacheid=yes
6225 else
6226 eval $cacheid=no
6227 fi
6228 rm -f core conftest.err conftest.$ac_objext \
6229 conftest$ac_exeext conftest.$ac_ext
6230 fi
6231
6232
6233 CFLAGS="$xorg_testset_save_CFLAGS"
6234
6235 eval supported=\$$cacheid
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6237 $as_echo "$supported" >&6; }
6238 if test "$supported" = "yes" ; then
6239 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6240 found="yes"
6241 fi
6242 fi
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258 xorg_testset_save_CFLAGS="$CFLAGS"
6259
6260 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6263 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6264 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6265 $as_echo_n "(cached) " >&6
6266 else
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269 int i;
6270 _ACEOF
6271 if ac_fn_c_try_compile "$LINENO"; then :
6272 xorg_cv_cc_flag_unknown_warning_option=yes
6273 else
6274 xorg_cv_cc_flag_unknown_warning_option=no
6275 fi
6276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6277 fi
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6279 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6281 CFLAGS="$xorg_testset_save_CFLAGS"
6282 fi
6283
6284 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6287 fi
6288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6290 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6291 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6292 $as_echo_n "(cached) " >&6
6293 else
6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6296 int i;
6297 _ACEOF
6298 if ac_fn_c_try_compile "$LINENO"; then :
6299 xorg_cv_cc_flag_unused_command_line_argument=yes
6300 else
6301 xorg_cv_cc_flag_unused_command_line_argument=no
6302 fi
6303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6304 fi
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6306 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6308 CFLAGS="$xorg_testset_save_CFLAGS"
6309 fi
6310
6311 found="no"
6312
6313 if test $found = "no" ; then
6314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6316 fi
6317
6318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6320 fi
6321
6322 CFLAGS="$CFLAGS -Wshadow"
6323
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6325 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6326 cacheid=xorg_cv_cc_flag__Wshadow
6327 if eval \${$cacheid+:} false; then :
6328 $as_echo_n "(cached) " >&6
6329 else
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331 /* end confdefs.h. */
6332 int i;
6333 int
6334 main ()
6335 {
6336
6337 ;
6338 return 0;
6339 }
6340 _ACEOF
6341 if ac_fn_c_try_link "$LINENO"; then :
6342 eval $cacheid=yes
6343 else
6344 eval $cacheid=no
6345 fi
6346 rm -f core conftest.err conftest.$ac_objext \
6347 conftest$ac_exeext conftest.$ac_ext
6348 fi
6349
6350
6351 CFLAGS="$xorg_testset_save_CFLAGS"
6352
6353 eval supported=\$$cacheid
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6355 $as_echo "$supported" >&6; }
6356 if test "$supported" = "yes" ; then
6357 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6358 found="yes"
6359 fi
6360 fi
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376 xorg_testset_save_CFLAGS="$CFLAGS"
6377
6378 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6381 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6382 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 int i;
6388 _ACEOF
6389 if ac_fn_c_try_compile "$LINENO"; then :
6390 xorg_cv_cc_flag_unknown_warning_option=yes
6391 else
6392 xorg_cv_cc_flag_unknown_warning_option=no
6393 fi
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 fi
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6397 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6399 CFLAGS="$xorg_testset_save_CFLAGS"
6400 fi
6401
6402 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6405 fi
6406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6408 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6409 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6410 $as_echo_n "(cached) " >&6
6411 else
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6414 int i;
6415 _ACEOF
6416 if ac_fn_c_try_compile "$LINENO"; then :
6417 xorg_cv_cc_flag_unused_command_line_argument=yes
6418 else
6419 xorg_cv_cc_flag_unused_command_line_argument=no
6420 fi
6421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6422 fi
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6424 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6426 CFLAGS="$xorg_testset_save_CFLAGS"
6427 fi
6428
6429 found="no"
6430
6431 if test $found = "no" ; then
6432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6434 fi
6435
6436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6438 fi
6439
6440 CFLAGS="$CFLAGS -Wmissing-noreturn"
6441
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6443 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6444 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6445 if eval \${$cacheid+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450 int i;
6451 int
6452 main ()
6453 {
6454
6455 ;
6456 return 0;
6457 }
6458 _ACEOF
6459 if ac_fn_c_try_link "$LINENO"; then :
6460 eval $cacheid=yes
6461 else
6462 eval $cacheid=no
6463 fi
6464 rm -f core conftest.err conftest.$ac_objext \
6465 conftest$ac_exeext conftest.$ac_ext
6466 fi
6467
6468
6469 CFLAGS="$xorg_testset_save_CFLAGS"
6470
6471 eval supported=\$$cacheid
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6473 $as_echo "$supported" >&6; }
6474 if test "$supported" = "yes" ; then
6475 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6476 found="yes"
6477 fi
6478 fi
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494 xorg_testset_save_CFLAGS="$CFLAGS"
6495
6496 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6499 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6500 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6501 $as_echo_n "(cached) " >&6
6502 else
6503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6504 /* end confdefs.h. */
6505 int i;
6506 _ACEOF
6507 if ac_fn_c_try_compile "$LINENO"; then :
6508 xorg_cv_cc_flag_unknown_warning_option=yes
6509 else
6510 xorg_cv_cc_flag_unknown_warning_option=no
6511 fi
6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6513 fi
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6515 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6516 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6517 CFLAGS="$xorg_testset_save_CFLAGS"
6518 fi
6519
6520 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6523 fi
6524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6526 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6527 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6532 int i;
6533 _ACEOF
6534 if ac_fn_c_try_compile "$LINENO"; then :
6535 xorg_cv_cc_flag_unused_command_line_argument=yes
6536 else
6537 xorg_cv_cc_flag_unused_command_line_argument=no
6538 fi
6539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6540 fi
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6542 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6544 CFLAGS="$xorg_testset_save_CFLAGS"
6545 fi
6546
6547 found="no"
6548
6549 if test $found = "no" ; then
6550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6552 fi
6553
6554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6556 fi
6557
6558 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6559
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6561 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6562 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6563 if eval \${$cacheid+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568 int i;
6569 int
6570 main ()
6571 {
6572
6573 ;
6574 return 0;
6575 }
6576 _ACEOF
6577 if ac_fn_c_try_link "$LINENO"; then :
6578 eval $cacheid=yes
6579 else
6580 eval $cacheid=no
6581 fi
6582 rm -f core conftest.err conftest.$ac_objext \
6583 conftest$ac_exeext conftest.$ac_ext
6584 fi
6585
6586
6587 CFLAGS="$xorg_testset_save_CFLAGS"
6588
6589 eval supported=\$$cacheid
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6591 $as_echo "$supported" >&6; }
6592 if test "$supported" = "yes" ; then
6593 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6594 found="yes"
6595 fi
6596 fi
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612 xorg_testset_save_CFLAGS="$CFLAGS"
6613
6614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6617 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6618 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620 else
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 int i;
6624 _ACEOF
6625 if ac_fn_c_try_compile "$LINENO"; then :
6626 xorg_cv_cc_flag_unknown_warning_option=yes
6627 else
6628 xorg_cv_cc_flag_unknown_warning_option=no
6629 fi
6630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631 fi
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6633 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6635 CFLAGS="$xorg_testset_save_CFLAGS"
6636 fi
6637
6638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6641 fi
6642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6644 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6645 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6646 $as_echo_n "(cached) " >&6
6647 else
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6650 int i;
6651 _ACEOF
6652 if ac_fn_c_try_compile "$LINENO"; then :
6653 xorg_cv_cc_flag_unused_command_line_argument=yes
6654 else
6655 xorg_cv_cc_flag_unused_command_line_argument=no
6656 fi
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6658 fi
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6660 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6662 CFLAGS="$xorg_testset_save_CFLAGS"
6663 fi
6664
6665 found="no"
6666
6667 if test $found = "no" ; then
6668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6670 fi
6671
6672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6674 fi
6675
6676 CFLAGS="$CFLAGS -Wredundant-decls"
6677
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6679 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6680 cacheid=xorg_cv_cc_flag__Wredundant_decls
6681 if eval \${$cacheid+:} 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 int
6688 main ()
6689 {
6690
6691 ;
6692 return 0;
6693 }
6694 _ACEOF
6695 if ac_fn_c_try_link "$LINENO"; then :
6696 eval $cacheid=yes
6697 else
6698 eval $cacheid=no
6699 fi
6700 rm -f core conftest.err conftest.$ac_objext \
6701 conftest$ac_exeext conftest.$ac_ext
6702 fi
6703
6704
6705 CFLAGS="$xorg_testset_save_CFLAGS"
6706
6707 eval supported=\$$cacheid
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6709 $as_echo "$supported" >&6; }
6710 if test "$supported" = "yes" ; then
6711 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6712 found="yes"
6713 fi
6714 fi
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730 xorg_testset_save_CFLAGS="$CFLAGS"
6731
6732 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6735 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6736 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6740 /* end confdefs.h. */
6741 int i;
6742 _ACEOF
6743 if ac_fn_c_try_compile "$LINENO"; then :
6744 xorg_cv_cc_flag_unknown_warning_option=yes
6745 else
6746 xorg_cv_cc_flag_unknown_warning_option=no
6747 fi
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6749 fi
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6751 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6753 CFLAGS="$xorg_testset_save_CFLAGS"
6754 fi
6755
6756 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6759 fi
6760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6762 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6763 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6764 $as_echo_n "(cached) " >&6
6765 else
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6768 int i;
6769 _ACEOF
6770 if ac_fn_c_try_compile "$LINENO"; then :
6771 xorg_cv_cc_flag_unused_command_line_argument=yes
6772 else
6773 xorg_cv_cc_flag_unused_command_line_argument=no
6774 fi
6775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776 fi
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6778 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6780 CFLAGS="$xorg_testset_save_CFLAGS"
6781 fi
6782
6783 found="no"
6784
6785 if test $found = "no" ; then
6786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6788 fi
6789
6790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6792 fi
6793
6794 CFLAGS="$CFLAGS -Wlogical-op"
6795
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6797 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6798 cacheid=xorg_cv_cc_flag__Wlogical_op
6799 if eval \${$cacheid+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6804 int i;
6805 int
6806 main ()
6807 {
6808
6809 ;
6810 return 0;
6811 }
6812 _ACEOF
6813 if ac_fn_c_try_link "$LINENO"; then :
6814 eval $cacheid=yes
6815 else
6816 eval $cacheid=no
6817 fi
6818 rm -f core conftest.err conftest.$ac_objext \
6819 conftest$ac_exeext conftest.$ac_ext
6820 fi
6821
6822
6823 CFLAGS="$xorg_testset_save_CFLAGS"
6824
6825 eval supported=\$$cacheid
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6827 $as_echo "$supported" >&6; }
6828 if test "$supported" = "yes" ; then
6829 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6830 found="yes"
6831 fi
6832 fi
6833
6834
6835
6836 # These are currently disabled because they are noisy. They will be enabled
6837 # in the future once the codebase is sufficiently modernized to silence
6838 # them. For now, I don't want them to drown out the other warnings.
6839 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6840 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6841 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6842
6843 # Turn some warnings into errors, so we don't accidently get successful builds
6844 # when there are problems that should be fixed.
6845
6846 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860 xorg_testset_save_CFLAGS="$CFLAGS"
6861
6862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6865 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6866 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6867 $as_echo_n "(cached) " >&6
6868 else
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6871 int i;
6872 _ACEOF
6873 if ac_fn_c_try_compile "$LINENO"; then :
6874 xorg_cv_cc_flag_unknown_warning_option=yes
6875 else
6876 xorg_cv_cc_flag_unknown_warning_option=no
6877 fi
6878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6879 fi
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6881 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6883 CFLAGS="$xorg_testset_save_CFLAGS"
6884 fi
6885
6886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6889 fi
6890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6892 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6893 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6894 $as_echo_n "(cached) " >&6
6895 else
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6898 int i;
6899 _ACEOF
6900 if ac_fn_c_try_compile "$LINENO"; then :
6901 xorg_cv_cc_flag_unused_command_line_argument=yes
6902 else
6903 xorg_cv_cc_flag_unused_command_line_argument=no
6904 fi
6905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906 fi
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6908 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6909 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6910 CFLAGS="$xorg_testset_save_CFLAGS"
6911 fi
6912
6913 found="no"
6914
6915 if test $found = "no" ; then
6916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6918 fi
6919
6920 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6922 fi
6923
6924 CFLAGS="$CFLAGS -Werror=implicit"
6925
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6927 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6928 cacheid=xorg_cv_cc_flag__Werror_implicit
6929 if eval \${$cacheid+:} false; then :
6930 $as_echo_n "(cached) " >&6
6931 else
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6934 int i;
6935 int
6936 main ()
6937 {
6938
6939 ;
6940 return 0;
6941 }
6942 _ACEOF
6943 if ac_fn_c_try_link "$LINENO"; then :
6944 eval $cacheid=yes
6945 else
6946 eval $cacheid=no
6947 fi
6948 rm -f core conftest.err conftest.$ac_objext \
6949 conftest$ac_exeext conftest.$ac_ext
6950 fi
6951
6952
6953 CFLAGS="$xorg_testset_save_CFLAGS"
6954
6955 eval supported=\$$cacheid
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6957 $as_echo "$supported" >&6; }
6958 if test "$supported" = "yes" ; then
6959 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6960 found="yes"
6961 fi
6962 fi
6963
6964 if test $found = "no" ; then
6965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6967 fi
6968
6969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6971 fi
6972
6973 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6974
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6976 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6977 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6978 if eval \${$cacheid+:} false; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6983 int i;
6984 int
6985 main ()
6986 {
6987
6988 ;
6989 return 0;
6990 }
6991 _ACEOF
6992 if ac_fn_c_try_link "$LINENO"; then :
6993 eval $cacheid=yes
6994 else
6995 eval $cacheid=no
6996 fi
6997 rm -f core conftest.err conftest.$ac_objext \
6998 conftest$ac_exeext conftest.$ac_ext
6999 fi
7000
7001
7002 CFLAGS="$xorg_testset_save_CFLAGS"
7003
7004 eval supported=\$$cacheid
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7006 $as_echo "$supported" >&6; }
7007 if test "$supported" = "yes" ; then
7008 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7009 found="yes"
7010 fi
7011 fi
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027 xorg_testset_save_CFLAGS="$CFLAGS"
7028
7029 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7032 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7033 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7038 int i;
7039 _ACEOF
7040 if ac_fn_c_try_compile "$LINENO"; then :
7041 xorg_cv_cc_flag_unknown_warning_option=yes
7042 else
7043 xorg_cv_cc_flag_unknown_warning_option=no
7044 fi
7045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046 fi
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7048 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7049 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7050 CFLAGS="$xorg_testset_save_CFLAGS"
7051 fi
7052
7053 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7056 fi
7057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7059 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7060 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7061 $as_echo_n "(cached) " >&6
7062 else
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7065 int i;
7066 _ACEOF
7067 if ac_fn_c_try_compile "$LINENO"; then :
7068 xorg_cv_cc_flag_unused_command_line_argument=yes
7069 else
7070 xorg_cv_cc_flag_unused_command_line_argument=no
7071 fi
7072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7073 fi
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7075 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7076 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7077 CFLAGS="$xorg_testset_save_CFLAGS"
7078 fi
7079
7080 found="no"
7081
7082 if test $found = "no" ; then
7083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7085 fi
7086
7087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7089 fi
7090
7091 CFLAGS="$CFLAGS -Werror=nonnull"
7092
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7094 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7095 cacheid=xorg_cv_cc_flag__Werror_nonnull
7096 if eval \${$cacheid+:} false; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h. */
7101 int i;
7102 int
7103 main ()
7104 {
7105
7106 ;
7107 return 0;
7108 }
7109 _ACEOF
7110 if ac_fn_c_try_link "$LINENO"; then :
7111 eval $cacheid=yes
7112 else
7113 eval $cacheid=no
7114 fi
7115 rm -f core conftest.err conftest.$ac_objext \
7116 conftest$ac_exeext conftest.$ac_ext
7117 fi
7118
7119
7120 CFLAGS="$xorg_testset_save_CFLAGS"
7121
7122 eval supported=\$$cacheid
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7124 $as_echo "$supported" >&6; }
7125 if test "$supported" = "yes" ; then
7126 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7127 found="yes"
7128 fi
7129 fi
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145 xorg_testset_save_CFLAGS="$CFLAGS"
7146
7147 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7150 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7151 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7152 $as_echo_n "(cached) " >&6
7153 else
7154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7155 /* end confdefs.h. */
7156 int i;
7157 _ACEOF
7158 if ac_fn_c_try_compile "$LINENO"; then :
7159 xorg_cv_cc_flag_unknown_warning_option=yes
7160 else
7161 xorg_cv_cc_flag_unknown_warning_option=no
7162 fi
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164 fi
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7166 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7167 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7168 CFLAGS="$xorg_testset_save_CFLAGS"
7169 fi
7170
7171 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7174 fi
7175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7177 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7178 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7179 $as_echo_n "(cached) " >&6
7180 else
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7183 int i;
7184 _ACEOF
7185 if ac_fn_c_try_compile "$LINENO"; then :
7186 xorg_cv_cc_flag_unused_command_line_argument=yes
7187 else
7188 xorg_cv_cc_flag_unused_command_line_argument=no
7189 fi
7190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 fi
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7193 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7195 CFLAGS="$xorg_testset_save_CFLAGS"
7196 fi
7197
7198 found="no"
7199
7200 if test $found = "no" ; then
7201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7203 fi
7204
7205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7207 fi
7208
7209 CFLAGS="$CFLAGS -Werror=init-self"
7210
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7212 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7213 cacheid=xorg_cv_cc_flag__Werror_init_self
7214 if eval \${$cacheid+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7219 int i;
7220 int
7221 main ()
7222 {
7223
7224 ;
7225 return 0;
7226 }
7227 _ACEOF
7228 if ac_fn_c_try_link "$LINENO"; then :
7229 eval $cacheid=yes
7230 else
7231 eval $cacheid=no
7232 fi
7233 rm -f core conftest.err conftest.$ac_objext \
7234 conftest$ac_exeext conftest.$ac_ext
7235 fi
7236
7237
7238 CFLAGS="$xorg_testset_save_CFLAGS"
7239
7240 eval supported=\$$cacheid
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7242 $as_echo "$supported" >&6; }
7243 if test "$supported" = "yes" ; then
7244 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7245 found="yes"
7246 fi
7247 fi
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263 xorg_testset_save_CFLAGS="$CFLAGS"
7264
7265 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7268 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7269 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7270 $as_echo_n "(cached) " >&6
7271 else
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274 int i;
7275 _ACEOF
7276 if ac_fn_c_try_compile "$LINENO"; then :
7277 xorg_cv_cc_flag_unknown_warning_option=yes
7278 else
7279 xorg_cv_cc_flag_unknown_warning_option=no
7280 fi
7281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282 fi
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7284 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7286 CFLAGS="$xorg_testset_save_CFLAGS"
7287 fi
7288
7289 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7292 fi
7293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7295 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7296 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7301 int i;
7302 _ACEOF
7303 if ac_fn_c_try_compile "$LINENO"; then :
7304 xorg_cv_cc_flag_unused_command_line_argument=yes
7305 else
7306 xorg_cv_cc_flag_unused_command_line_argument=no
7307 fi
7308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309 fi
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7311 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7313 CFLAGS="$xorg_testset_save_CFLAGS"
7314 fi
7315
7316 found="no"
7317
7318 if test $found = "no" ; then
7319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7321 fi
7322
7323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7325 fi
7326
7327 CFLAGS="$CFLAGS -Werror=main"
7328
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7330 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7331 cacheid=xorg_cv_cc_flag__Werror_main
7332 if eval \${$cacheid+:} false; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7337 int i;
7338 int
7339 main ()
7340 {
7341
7342 ;
7343 return 0;
7344 }
7345 _ACEOF
7346 if ac_fn_c_try_link "$LINENO"; then :
7347 eval $cacheid=yes
7348 else
7349 eval $cacheid=no
7350 fi
7351 rm -f core conftest.err conftest.$ac_objext \
7352 conftest$ac_exeext conftest.$ac_ext
7353 fi
7354
7355
7356 CFLAGS="$xorg_testset_save_CFLAGS"
7357
7358 eval supported=\$$cacheid
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7360 $as_echo "$supported" >&6; }
7361 if test "$supported" = "yes" ; then
7362 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7363 found="yes"
7364 fi
7365 fi
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381 xorg_testset_save_CFLAGS="$CFLAGS"
7382
7383 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7386 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7387 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7388 $as_echo_n "(cached) " >&6
7389 else
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 int i;
7393 _ACEOF
7394 if ac_fn_c_try_compile "$LINENO"; then :
7395 xorg_cv_cc_flag_unknown_warning_option=yes
7396 else
7397 xorg_cv_cc_flag_unknown_warning_option=no
7398 fi
7399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7400 fi
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7402 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7403 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7404 CFLAGS="$xorg_testset_save_CFLAGS"
7405 fi
7406
7407 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7410 fi
7411 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7413 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7414 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7419 int i;
7420 _ACEOF
7421 if ac_fn_c_try_compile "$LINENO"; then :
7422 xorg_cv_cc_flag_unused_command_line_argument=yes
7423 else
7424 xorg_cv_cc_flag_unused_command_line_argument=no
7425 fi
7426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427 fi
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7429 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7431 CFLAGS="$xorg_testset_save_CFLAGS"
7432 fi
7433
7434 found="no"
7435
7436 if test $found = "no" ; then
7437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7439 fi
7440
7441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7443 fi
7444
7445 CFLAGS="$CFLAGS -Werror=missing-braces"
7446
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7448 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7449 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7450 if eval \${$cacheid+:} false; then :
7451 $as_echo_n "(cached) " >&6
7452 else
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7455 int i;
7456 int
7457 main ()
7458 {
7459
7460 ;
7461 return 0;
7462 }
7463 _ACEOF
7464 if ac_fn_c_try_link "$LINENO"; then :
7465 eval $cacheid=yes
7466 else
7467 eval $cacheid=no
7468 fi
7469 rm -f core conftest.err conftest.$ac_objext \
7470 conftest$ac_exeext conftest.$ac_ext
7471 fi
7472
7473
7474 CFLAGS="$xorg_testset_save_CFLAGS"
7475
7476 eval supported=\$$cacheid
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7478 $as_echo "$supported" >&6; }
7479 if test "$supported" = "yes" ; then
7480 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7481 found="yes"
7482 fi
7483 fi
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499 xorg_testset_save_CFLAGS="$CFLAGS"
7500
7501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7504 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7505 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7510 int i;
7511 _ACEOF
7512 if ac_fn_c_try_compile "$LINENO"; then :
7513 xorg_cv_cc_flag_unknown_warning_option=yes
7514 else
7515 xorg_cv_cc_flag_unknown_warning_option=no
7516 fi
7517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7518 fi
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7520 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7521 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7522 CFLAGS="$xorg_testset_save_CFLAGS"
7523 fi
7524
7525 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7526 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7527 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7528 fi
7529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7531 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7532 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7533 $as_echo_n "(cached) " >&6
7534 else
7535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7536 /* end confdefs.h. */
7537 int i;
7538 _ACEOF
7539 if ac_fn_c_try_compile "$LINENO"; then :
7540 xorg_cv_cc_flag_unused_command_line_argument=yes
7541 else
7542 xorg_cv_cc_flag_unused_command_line_argument=no
7543 fi
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7545 fi
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7547 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7549 CFLAGS="$xorg_testset_save_CFLAGS"
7550 fi
7551
7552 found="no"
7553
7554 if test $found = "no" ; then
7555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7557 fi
7558
7559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7561 fi
7562
7563 CFLAGS="$CFLAGS -Werror=sequence-point"
7564
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7566 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7567 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7568 if eval \${$cacheid+:} false; then :
7569 $as_echo_n "(cached) " >&6
7570 else
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7573 int i;
7574 int
7575 main ()
7576 {
7577
7578 ;
7579 return 0;
7580 }
7581 _ACEOF
7582 if ac_fn_c_try_link "$LINENO"; then :
7583 eval $cacheid=yes
7584 else
7585 eval $cacheid=no
7586 fi
7587 rm -f core conftest.err conftest.$ac_objext \
7588 conftest$ac_exeext conftest.$ac_ext
7589 fi
7590
7591
7592 CFLAGS="$xorg_testset_save_CFLAGS"
7593
7594 eval supported=\$$cacheid
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7596 $as_echo "$supported" >&6; }
7597 if test "$supported" = "yes" ; then
7598 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7599 found="yes"
7600 fi
7601 fi
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617 xorg_testset_save_CFLAGS="$CFLAGS"
7618
7619 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7622 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7623 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625 else
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628 int i;
7629 _ACEOF
7630 if ac_fn_c_try_compile "$LINENO"; then :
7631 xorg_cv_cc_flag_unknown_warning_option=yes
7632 else
7633 xorg_cv_cc_flag_unknown_warning_option=no
7634 fi
7635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7636 fi
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7638 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7640 CFLAGS="$xorg_testset_save_CFLAGS"
7641 fi
7642
7643 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7646 fi
7647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7649 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7650 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7655 int i;
7656 _ACEOF
7657 if ac_fn_c_try_compile "$LINENO"; then :
7658 xorg_cv_cc_flag_unused_command_line_argument=yes
7659 else
7660 xorg_cv_cc_flag_unused_command_line_argument=no
7661 fi
7662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663 fi
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7665 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7667 CFLAGS="$xorg_testset_save_CFLAGS"
7668 fi
7669
7670 found="no"
7671
7672 if test $found = "no" ; then
7673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7675 fi
7676
7677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7679 fi
7680
7681 CFLAGS="$CFLAGS -Werror=return-type"
7682
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7684 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7685 cacheid=xorg_cv_cc_flag__Werror_return_type
7686 if eval \${$cacheid+:} false; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h. */
7691 int i;
7692 int
7693 main ()
7694 {
7695
7696 ;
7697 return 0;
7698 }
7699 _ACEOF
7700 if ac_fn_c_try_link "$LINENO"; then :
7701 eval $cacheid=yes
7702 else
7703 eval $cacheid=no
7704 fi
7705 rm -f core conftest.err conftest.$ac_objext \
7706 conftest$ac_exeext conftest.$ac_ext
7707 fi
7708
7709
7710 CFLAGS="$xorg_testset_save_CFLAGS"
7711
7712 eval supported=\$$cacheid
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7714 $as_echo "$supported" >&6; }
7715 if test "$supported" = "yes" ; then
7716 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7717 found="yes"
7718 fi
7719 fi
7720
7721 if test $found = "no" ; then
7722 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7724 fi
7725
7726 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7728 fi
7729
7730 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7731
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7733 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7734 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7735 if eval \${$cacheid+:} false; then :
7736 $as_echo_n "(cached) " >&6
7737 else
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7740 int i;
7741 int
7742 main ()
7743 {
7744
7745 ;
7746 return 0;
7747 }
7748 _ACEOF
7749 if ac_fn_c_try_link "$LINENO"; then :
7750 eval $cacheid=yes
7751 else
7752 eval $cacheid=no
7753 fi
7754 rm -f core conftest.err conftest.$ac_objext \
7755 conftest$ac_exeext conftest.$ac_ext
7756 fi
7757
7758
7759 CFLAGS="$xorg_testset_save_CFLAGS"
7760
7761 eval supported=\$$cacheid
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7763 $as_echo "$supported" >&6; }
7764 if test "$supported" = "yes" ; then
7765 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7766 found="yes"
7767 fi
7768 fi
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784 xorg_testset_save_CFLAGS="$CFLAGS"
7785
7786 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7789 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7790 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7795 int i;
7796 _ACEOF
7797 if ac_fn_c_try_compile "$LINENO"; then :
7798 xorg_cv_cc_flag_unknown_warning_option=yes
7799 else
7800 xorg_cv_cc_flag_unknown_warning_option=no
7801 fi
7802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7803 fi
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7805 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7807 CFLAGS="$xorg_testset_save_CFLAGS"
7808 fi
7809
7810 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7813 fi
7814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7816 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7817 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7818 $as_echo_n "(cached) " >&6
7819 else
7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7821 /* end confdefs.h. */
7822 int i;
7823 _ACEOF
7824 if ac_fn_c_try_compile "$LINENO"; then :
7825 xorg_cv_cc_flag_unused_command_line_argument=yes
7826 else
7827 xorg_cv_cc_flag_unused_command_line_argument=no
7828 fi
7829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7830 fi
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7832 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7833 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7834 CFLAGS="$xorg_testset_save_CFLAGS"
7835 fi
7836
7837 found="no"
7838
7839 if test $found = "no" ; then
7840 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7842 fi
7843
7844 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7846 fi
7847
7848 CFLAGS="$CFLAGS -Werror=trigraphs"
7849
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7851 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7852 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7853 if eval \${$cacheid+:} false; then :
7854 $as_echo_n "(cached) " >&6
7855 else
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7858 int i;
7859 int
7860 main ()
7861 {
7862
7863 ;
7864 return 0;
7865 }
7866 _ACEOF
7867 if ac_fn_c_try_link "$LINENO"; then :
7868 eval $cacheid=yes
7869 else
7870 eval $cacheid=no
7871 fi
7872 rm -f core conftest.err conftest.$ac_objext \
7873 conftest$ac_exeext conftest.$ac_ext
7874 fi
7875
7876
7877 CFLAGS="$xorg_testset_save_CFLAGS"
7878
7879 eval supported=\$$cacheid
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7881 $as_echo "$supported" >&6; }
7882 if test "$supported" = "yes" ; then
7883 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7884 found="yes"
7885 fi
7886 fi
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902 xorg_testset_save_CFLAGS="$CFLAGS"
7903
7904 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7905 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7907 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7908 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7909 $as_echo_n "(cached) " >&6
7910 else
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7913 int i;
7914 _ACEOF
7915 if ac_fn_c_try_compile "$LINENO"; then :
7916 xorg_cv_cc_flag_unknown_warning_option=yes
7917 else
7918 xorg_cv_cc_flag_unknown_warning_option=no
7919 fi
7920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7921 fi
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7923 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7924 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7925 CFLAGS="$xorg_testset_save_CFLAGS"
7926 fi
7927
7928 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7929 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7930 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7931 fi
7932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7934 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7935 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7940 int i;
7941 _ACEOF
7942 if ac_fn_c_try_compile "$LINENO"; then :
7943 xorg_cv_cc_flag_unused_command_line_argument=yes
7944 else
7945 xorg_cv_cc_flag_unused_command_line_argument=no
7946 fi
7947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948 fi
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7950 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7952 CFLAGS="$xorg_testset_save_CFLAGS"
7953 fi
7954
7955 found="no"
7956
7957 if test $found = "no" ; then
7958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7960 fi
7961
7962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7964 fi
7965
7966 CFLAGS="$CFLAGS -Werror=array-bounds"
7967
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7969 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7970 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7971 if eval \${$cacheid+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7975 /* end confdefs.h. */
7976 int i;
7977 int
7978 main ()
7979 {
7980
7981 ;
7982 return 0;
7983 }
7984 _ACEOF
7985 if ac_fn_c_try_link "$LINENO"; then :
7986 eval $cacheid=yes
7987 else
7988 eval $cacheid=no
7989 fi
7990 rm -f core conftest.err conftest.$ac_objext \
7991 conftest$ac_exeext conftest.$ac_ext
7992 fi
7993
7994
7995 CFLAGS="$xorg_testset_save_CFLAGS"
7996
7997 eval supported=\$$cacheid
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7999 $as_echo "$supported" >&6; }
8000 if test "$supported" = "yes" ; then
8001 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8002 found="yes"
8003 fi
8004 fi
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020 xorg_testset_save_CFLAGS="$CFLAGS"
8021
8022 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8025 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8026 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8027 $as_echo_n "(cached) " >&6
8028 else
8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030 /* end confdefs.h. */
8031 int i;
8032 _ACEOF
8033 if ac_fn_c_try_compile "$LINENO"; then :
8034 xorg_cv_cc_flag_unknown_warning_option=yes
8035 else
8036 xorg_cv_cc_flag_unknown_warning_option=no
8037 fi
8038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8039 fi
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8041 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8043 CFLAGS="$xorg_testset_save_CFLAGS"
8044 fi
8045
8046 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8049 fi
8050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8052 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8053 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8054 $as_echo_n "(cached) " >&6
8055 else
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 int i;
8059 _ACEOF
8060 if ac_fn_c_try_compile "$LINENO"; then :
8061 xorg_cv_cc_flag_unused_command_line_argument=yes
8062 else
8063 xorg_cv_cc_flag_unused_command_line_argument=no
8064 fi
8065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 fi
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8068 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8070 CFLAGS="$xorg_testset_save_CFLAGS"
8071 fi
8072
8073 found="no"
8074
8075 if test $found = "no" ; then
8076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8078 fi
8079
8080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8082 fi
8083
8084 CFLAGS="$CFLAGS -Werror=write-strings"
8085
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8087 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8088 cacheid=xorg_cv_cc_flag__Werror_write_strings
8089 if eval \${$cacheid+:} false; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8094 int i;
8095 int
8096 main ()
8097 {
8098
8099 ;
8100 return 0;
8101 }
8102 _ACEOF
8103 if ac_fn_c_try_link "$LINENO"; then :
8104 eval $cacheid=yes
8105 else
8106 eval $cacheid=no
8107 fi
8108 rm -f core conftest.err conftest.$ac_objext \
8109 conftest$ac_exeext conftest.$ac_ext
8110 fi
8111
8112
8113 CFLAGS="$xorg_testset_save_CFLAGS"
8114
8115 eval supported=\$$cacheid
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8117 $as_echo "$supported" >&6; }
8118 if test "$supported" = "yes" ; then
8119 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8120 found="yes"
8121 fi
8122 fi
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138 xorg_testset_save_CFLAGS="$CFLAGS"
8139
8140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8143 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8144 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8145 $as_echo_n "(cached) " >&6
8146 else
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 int i;
8150 _ACEOF
8151 if ac_fn_c_try_compile "$LINENO"; then :
8152 xorg_cv_cc_flag_unknown_warning_option=yes
8153 else
8154 xorg_cv_cc_flag_unknown_warning_option=no
8155 fi
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 fi
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8159 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8160 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8161 CFLAGS="$xorg_testset_save_CFLAGS"
8162 fi
8163
8164 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8167 fi
8168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8170 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8171 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 int i;
8177 _ACEOF
8178 if ac_fn_c_try_compile "$LINENO"; then :
8179 xorg_cv_cc_flag_unused_command_line_argument=yes
8180 else
8181 xorg_cv_cc_flag_unused_command_line_argument=no
8182 fi
8183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8184 fi
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8186 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8188 CFLAGS="$xorg_testset_save_CFLAGS"
8189 fi
8190
8191 found="no"
8192
8193 if test $found = "no" ; then
8194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196 fi
8197
8198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8200 fi
8201
8202 CFLAGS="$CFLAGS -Werror=address"
8203
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8205 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8206 cacheid=xorg_cv_cc_flag__Werror_address
8207 if eval \${$cacheid+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8211 /* end confdefs.h. */
8212 int i;
8213 int
8214 main ()
8215 {
8216
8217 ;
8218 return 0;
8219 }
8220 _ACEOF
8221 if ac_fn_c_try_link "$LINENO"; then :
8222 eval $cacheid=yes
8223 else
8224 eval $cacheid=no
8225 fi
8226 rm -f core conftest.err conftest.$ac_objext \
8227 conftest$ac_exeext conftest.$ac_ext
8228 fi
8229
8230
8231 CFLAGS="$xorg_testset_save_CFLAGS"
8232
8233 eval supported=\$$cacheid
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8235 $as_echo "$supported" >&6; }
8236 if test "$supported" = "yes" ; then
8237 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8238 found="yes"
8239 fi
8240 fi
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256 xorg_testset_save_CFLAGS="$CFLAGS"
8257
8258 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8261 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8262 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8263 $as_echo_n "(cached) " >&6
8264 else
8265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h. */
8267 int i;
8268 _ACEOF
8269 if ac_fn_c_try_compile "$LINENO"; then :
8270 xorg_cv_cc_flag_unknown_warning_option=yes
8271 else
8272 xorg_cv_cc_flag_unknown_warning_option=no
8273 fi
8274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8275 fi
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8277 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8279 CFLAGS="$xorg_testset_save_CFLAGS"
8280 fi
8281
8282 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8285 fi
8286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8288 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8289 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8290 $as_echo_n "(cached) " >&6
8291 else
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8294 int i;
8295 _ACEOF
8296 if ac_fn_c_try_compile "$LINENO"; then :
8297 xorg_cv_cc_flag_unused_command_line_argument=yes
8298 else
8299 xorg_cv_cc_flag_unused_command_line_argument=no
8300 fi
8301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8302 fi
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8304 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8306 CFLAGS="$xorg_testset_save_CFLAGS"
8307 fi
8308
8309 found="no"
8310
8311 if test $found = "no" ; then
8312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8314 fi
8315
8316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8318 fi
8319
8320 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8321
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8323 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8324 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8325 if eval \${$cacheid+:} false; then :
8326 $as_echo_n "(cached) " >&6
8327 else
8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8329 /* end confdefs.h. */
8330 int i;
8331 int
8332 main ()
8333 {
8334
8335 ;
8336 return 0;
8337 }
8338 _ACEOF
8339 if ac_fn_c_try_link "$LINENO"; then :
8340 eval $cacheid=yes
8341 else
8342 eval $cacheid=no
8343 fi
8344 rm -f core conftest.err conftest.$ac_objext \
8345 conftest$ac_exeext conftest.$ac_ext
8346 fi
8347
8348
8349 CFLAGS="$xorg_testset_save_CFLAGS"
8350
8351 eval supported=\$$cacheid
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8353 $as_echo "$supported" >&6; }
8354 if test "$supported" = "yes" ; then
8355 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8356 found="yes"
8357 fi
8358 fi
8359
8360 if test $found = "no" ; then
8361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8363 fi
8364
8365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8367 fi
8368
8369 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8370
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8372 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8373 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8374 if eval \${$cacheid+:} false; then :
8375 $as_echo_n "(cached) " >&6
8376 else
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8379 int i;
8380 int
8381 main ()
8382 {
8383
8384 ;
8385 return 0;
8386 }
8387 _ACEOF
8388 if ac_fn_c_try_link "$LINENO"; then :
8389 eval $cacheid=yes
8390 else
8391 eval $cacheid=no
8392 fi
8393 rm -f core conftest.err conftest.$ac_objext \
8394 conftest$ac_exeext conftest.$ac_ext
8395 fi
8396
8397
8398 CFLAGS="$xorg_testset_save_CFLAGS"
8399
8400 eval supported=\$$cacheid
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8402 $as_echo "$supported" >&6; }
8403 if test "$supported" = "yes" ; then
8404 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8405 found="yes"
8406 fi
8407 fi
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423 xorg_testset_save_CFLAGS="$CFLAGS"
8424
8425 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8428 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8429 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8430 $as_echo_n "(cached) " >&6
8431 else
8432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8433 /* end confdefs.h. */
8434 int i;
8435 _ACEOF
8436 if ac_fn_c_try_compile "$LINENO"; then :
8437 xorg_cv_cc_flag_unknown_warning_option=yes
8438 else
8439 xorg_cv_cc_flag_unknown_warning_option=no
8440 fi
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442 fi
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8444 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8446 CFLAGS="$xorg_testset_save_CFLAGS"
8447 fi
8448
8449 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8452 fi
8453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8455 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8456 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8457 $as_echo_n "(cached) " >&6
8458 else
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461 int i;
8462 _ACEOF
8463 if ac_fn_c_try_compile "$LINENO"; then :
8464 xorg_cv_cc_flag_unused_command_line_argument=yes
8465 else
8466 xorg_cv_cc_flag_unused_command_line_argument=no
8467 fi
8468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8469 fi
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8471 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8472 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8473 CFLAGS="$xorg_testset_save_CFLAGS"
8474 fi
8475
8476 found="no"
8477
8478 if test $found = "no" ; then
8479 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8481 fi
8482
8483 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8484 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8485 fi
8486
8487 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8488
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8490 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8491 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8492 if eval \${$cacheid+:} false; then :
8493 $as_echo_n "(cached) " >&6
8494 else
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8497 int i;
8498 int
8499 main ()
8500 {
8501
8502 ;
8503 return 0;
8504 }
8505 _ACEOF
8506 if ac_fn_c_try_link "$LINENO"; then :
8507 eval $cacheid=yes
8508 else
8509 eval $cacheid=no
8510 fi
8511 rm -f core conftest.err conftest.$ac_objext \
8512 conftest$ac_exeext conftest.$ac_ext
8513 fi
8514
8515
8516 CFLAGS="$xorg_testset_save_CFLAGS"
8517
8518 eval supported=\$$cacheid
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8520 $as_echo "$supported" >&6; }
8521 if test "$supported" = "yes" ; then
8522 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8523 found="yes"
8524 fi
8525 fi
8526
8527 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8528 else
8529 { $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
8530 $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;}
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544 xorg_testset_save_CFLAGS="$CFLAGS"
8545
8546 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8549 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8550 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8551 $as_echo_n "(cached) " >&6
8552 else
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554 /* end confdefs.h. */
8555 int i;
8556 _ACEOF
8557 if ac_fn_c_try_compile "$LINENO"; then :
8558 xorg_cv_cc_flag_unknown_warning_option=yes
8559 else
8560 xorg_cv_cc_flag_unknown_warning_option=no
8561 fi
8562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 fi
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8565 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8566 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8567 CFLAGS="$xorg_testset_save_CFLAGS"
8568 fi
8569
8570 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8571 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8573 fi
8574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8576 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8577 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8578 $as_echo_n "(cached) " >&6
8579 else
8580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8581 /* end confdefs.h. */
8582 int i;
8583 _ACEOF
8584 if ac_fn_c_try_compile "$LINENO"; then :
8585 xorg_cv_cc_flag_unused_command_line_argument=yes
8586 else
8587 xorg_cv_cc_flag_unused_command_line_argument=no
8588 fi
8589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8590 fi
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8592 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8594 CFLAGS="$xorg_testset_save_CFLAGS"
8595 fi
8596
8597 found="no"
8598
8599 if test $found = "no" ; then
8600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8602 fi
8603
8604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8606 fi
8607
8608 CFLAGS="$CFLAGS -Wimplicit"
8609
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8611 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8612 cacheid=xorg_cv_cc_flag__Wimplicit
8613 if eval \${$cacheid+:} false; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8618 int i;
8619 int
8620 main ()
8621 {
8622
8623 ;
8624 return 0;
8625 }
8626 _ACEOF
8627 if ac_fn_c_try_link "$LINENO"; then :
8628 eval $cacheid=yes
8629 else
8630 eval $cacheid=no
8631 fi
8632 rm -f core conftest.err conftest.$ac_objext \
8633 conftest$ac_exeext conftest.$ac_ext
8634 fi
8635
8636
8637 CFLAGS="$xorg_testset_save_CFLAGS"
8638
8639 eval supported=\$$cacheid
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8641 $as_echo "$supported" >&6; }
8642 if test "$supported" = "yes" ; then
8643 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8644 found="yes"
8645 fi
8646 fi
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662 xorg_testset_save_CFLAGS="$CFLAGS"
8663
8664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8667 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8668 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 int i;
8674 _ACEOF
8675 if ac_fn_c_try_compile "$LINENO"; then :
8676 xorg_cv_cc_flag_unknown_warning_option=yes
8677 else
8678 xorg_cv_cc_flag_unknown_warning_option=no
8679 fi
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8681 fi
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8683 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8684 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8685 CFLAGS="$xorg_testset_save_CFLAGS"
8686 fi
8687
8688 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8689 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8690 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8691 fi
8692 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8694 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8695 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8696 $as_echo_n "(cached) " >&6
8697 else
8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8699 /* end confdefs.h. */
8700 int i;
8701 _ACEOF
8702 if ac_fn_c_try_compile "$LINENO"; then :
8703 xorg_cv_cc_flag_unused_command_line_argument=yes
8704 else
8705 xorg_cv_cc_flag_unused_command_line_argument=no
8706 fi
8707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8708 fi
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8710 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8711 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8712 CFLAGS="$xorg_testset_save_CFLAGS"
8713 fi
8714
8715 found="no"
8716
8717 if test $found = "no" ; then
8718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8719 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8720 fi
8721
8722 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8724 fi
8725
8726 CFLAGS="$CFLAGS -Wnonnull"
8727
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8729 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8730 cacheid=xorg_cv_cc_flag__Wnonnull
8731 if eval \${$cacheid+:} false; then :
8732 $as_echo_n "(cached) " >&6
8733 else
8734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8736 int i;
8737 int
8738 main ()
8739 {
8740
8741 ;
8742 return 0;
8743 }
8744 _ACEOF
8745 if ac_fn_c_try_link "$LINENO"; then :
8746 eval $cacheid=yes
8747 else
8748 eval $cacheid=no
8749 fi
8750 rm -f core conftest.err conftest.$ac_objext \
8751 conftest$ac_exeext conftest.$ac_ext
8752 fi
8753
8754
8755 CFLAGS="$xorg_testset_save_CFLAGS"
8756
8757 eval supported=\$$cacheid
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8759 $as_echo "$supported" >&6; }
8760 if test "$supported" = "yes" ; then
8761 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8762 found="yes"
8763 fi
8764 fi
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780 xorg_testset_save_CFLAGS="$CFLAGS"
8781
8782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8785 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8786 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 int i;
8792 _ACEOF
8793 if ac_fn_c_try_compile "$LINENO"; then :
8794 xorg_cv_cc_flag_unknown_warning_option=yes
8795 else
8796 xorg_cv_cc_flag_unknown_warning_option=no
8797 fi
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 fi
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8801 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8803 CFLAGS="$xorg_testset_save_CFLAGS"
8804 fi
8805
8806 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8809 fi
8810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8812 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8813 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8814 $as_echo_n "(cached) " >&6
8815 else
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8818 int i;
8819 _ACEOF
8820 if ac_fn_c_try_compile "$LINENO"; then :
8821 xorg_cv_cc_flag_unused_command_line_argument=yes
8822 else
8823 xorg_cv_cc_flag_unused_command_line_argument=no
8824 fi
8825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 fi
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8828 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8830 CFLAGS="$xorg_testset_save_CFLAGS"
8831 fi
8832
8833 found="no"
8834
8835 if test $found = "no" ; then
8836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8838 fi
8839
8840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8842 fi
8843
8844 CFLAGS="$CFLAGS -Winit-self"
8845
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8847 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8848 cacheid=xorg_cv_cc_flag__Winit_self
8849 if eval \${$cacheid+:} false; then :
8850 $as_echo_n "(cached) " >&6
8851 else
8852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8853 /* end confdefs.h. */
8854 int i;
8855 int
8856 main ()
8857 {
8858
8859 ;
8860 return 0;
8861 }
8862 _ACEOF
8863 if ac_fn_c_try_link "$LINENO"; then :
8864 eval $cacheid=yes
8865 else
8866 eval $cacheid=no
8867 fi
8868 rm -f core conftest.err conftest.$ac_objext \
8869 conftest$ac_exeext conftest.$ac_ext
8870 fi
8871
8872
8873 CFLAGS="$xorg_testset_save_CFLAGS"
8874
8875 eval supported=\$$cacheid
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8877 $as_echo "$supported" >&6; }
8878 if test "$supported" = "yes" ; then
8879 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8880 found="yes"
8881 fi
8882 fi
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898 xorg_testset_save_CFLAGS="$CFLAGS"
8899
8900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8903 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8904 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8905 $as_echo_n "(cached) " >&6
8906 else
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909 int i;
8910 _ACEOF
8911 if ac_fn_c_try_compile "$LINENO"; then :
8912 xorg_cv_cc_flag_unknown_warning_option=yes
8913 else
8914 xorg_cv_cc_flag_unknown_warning_option=no
8915 fi
8916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8917 fi
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8919 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8921 CFLAGS="$xorg_testset_save_CFLAGS"
8922 fi
8923
8924 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8927 fi
8928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8930 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8931 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h. */
8936 int i;
8937 _ACEOF
8938 if ac_fn_c_try_compile "$LINENO"; then :
8939 xorg_cv_cc_flag_unused_command_line_argument=yes
8940 else
8941 xorg_cv_cc_flag_unused_command_line_argument=no
8942 fi
8943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 fi
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8946 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8948 CFLAGS="$xorg_testset_save_CFLAGS"
8949 fi
8950
8951 found="no"
8952
8953 if test $found = "no" ; then
8954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8956 fi
8957
8958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8960 fi
8961
8962 CFLAGS="$CFLAGS -Wmain"
8963
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8965 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8966 cacheid=xorg_cv_cc_flag__Wmain
8967 if eval \${$cacheid+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 int i;
8973 int
8974 main ()
8975 {
8976
8977 ;
8978 return 0;
8979 }
8980 _ACEOF
8981 if ac_fn_c_try_link "$LINENO"; then :
8982 eval $cacheid=yes
8983 else
8984 eval $cacheid=no
8985 fi
8986 rm -f core conftest.err conftest.$ac_objext \
8987 conftest$ac_exeext conftest.$ac_ext
8988 fi
8989
8990
8991 CFLAGS="$xorg_testset_save_CFLAGS"
8992
8993 eval supported=\$$cacheid
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8995 $as_echo "$supported" >&6; }
8996 if test "$supported" = "yes" ; then
8997 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8998 found="yes"
8999 fi
9000 fi
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016 xorg_testset_save_CFLAGS="$CFLAGS"
9017
9018 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9021 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9022 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9027 int i;
9028 _ACEOF
9029 if ac_fn_c_try_compile "$LINENO"; then :
9030 xorg_cv_cc_flag_unknown_warning_option=yes
9031 else
9032 xorg_cv_cc_flag_unknown_warning_option=no
9033 fi
9034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9035 fi
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9037 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9039 CFLAGS="$xorg_testset_save_CFLAGS"
9040 fi
9041
9042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9045 fi
9046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9048 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9049 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9050 $as_echo_n "(cached) " >&6
9051 else
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9054 int i;
9055 _ACEOF
9056 if ac_fn_c_try_compile "$LINENO"; then :
9057 xorg_cv_cc_flag_unused_command_line_argument=yes
9058 else
9059 xorg_cv_cc_flag_unused_command_line_argument=no
9060 fi
9061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062 fi
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9064 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9066 CFLAGS="$xorg_testset_save_CFLAGS"
9067 fi
9068
9069 found="no"
9070
9071 if test $found = "no" ; then
9072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9074 fi
9075
9076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9078 fi
9079
9080 CFLAGS="$CFLAGS -Wmissing-braces"
9081
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9083 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9084 cacheid=xorg_cv_cc_flag__Wmissing_braces
9085 if eval \${$cacheid+:} false; then :
9086 $as_echo_n "(cached) " >&6
9087 else
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9090 int i;
9091 int
9092 main ()
9093 {
9094
9095 ;
9096 return 0;
9097 }
9098 _ACEOF
9099 if ac_fn_c_try_link "$LINENO"; then :
9100 eval $cacheid=yes
9101 else
9102 eval $cacheid=no
9103 fi
9104 rm -f core conftest.err conftest.$ac_objext \
9105 conftest$ac_exeext conftest.$ac_ext
9106 fi
9107
9108
9109 CFLAGS="$xorg_testset_save_CFLAGS"
9110
9111 eval supported=\$$cacheid
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9113 $as_echo "$supported" >&6; }
9114 if test "$supported" = "yes" ; then
9115 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9116 found="yes"
9117 fi
9118 fi
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134 xorg_testset_save_CFLAGS="$CFLAGS"
9135
9136 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9139 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9140 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9141 $as_echo_n "(cached) " >&6
9142 else
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9145 int i;
9146 _ACEOF
9147 if ac_fn_c_try_compile "$LINENO"; then :
9148 xorg_cv_cc_flag_unknown_warning_option=yes
9149 else
9150 xorg_cv_cc_flag_unknown_warning_option=no
9151 fi
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 fi
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9155 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9157 CFLAGS="$xorg_testset_save_CFLAGS"
9158 fi
9159
9160 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9163 fi
9164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9166 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9167 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9168 $as_echo_n "(cached) " >&6
9169 else
9170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9171 /* end confdefs.h. */
9172 int i;
9173 _ACEOF
9174 if ac_fn_c_try_compile "$LINENO"; then :
9175 xorg_cv_cc_flag_unused_command_line_argument=yes
9176 else
9177 xorg_cv_cc_flag_unused_command_line_argument=no
9178 fi
9179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9180 fi
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9182 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9184 CFLAGS="$xorg_testset_save_CFLAGS"
9185 fi
9186
9187 found="no"
9188
9189 if test $found = "no" ; then
9190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9192 fi
9193
9194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9196 fi
9197
9198 CFLAGS="$CFLAGS -Wsequence-point"
9199
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9201 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9202 cacheid=xorg_cv_cc_flag__Wsequence_point
9203 if eval \${$cacheid+:} false; then :
9204 $as_echo_n "(cached) " >&6
9205 else
9206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9207 /* end confdefs.h. */
9208 int i;
9209 int
9210 main ()
9211 {
9212
9213 ;
9214 return 0;
9215 }
9216 _ACEOF
9217 if ac_fn_c_try_link "$LINENO"; then :
9218 eval $cacheid=yes
9219 else
9220 eval $cacheid=no
9221 fi
9222 rm -f core conftest.err conftest.$ac_objext \
9223 conftest$ac_exeext conftest.$ac_ext
9224 fi
9225
9226
9227 CFLAGS="$xorg_testset_save_CFLAGS"
9228
9229 eval supported=\$$cacheid
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9231 $as_echo "$supported" >&6; }
9232 if test "$supported" = "yes" ; then
9233 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9234 found="yes"
9235 fi
9236 fi
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252 xorg_testset_save_CFLAGS="$CFLAGS"
9253
9254 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9257 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9258 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9259 $as_echo_n "(cached) " >&6
9260 else
9261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9263 int i;
9264 _ACEOF
9265 if ac_fn_c_try_compile "$LINENO"; then :
9266 xorg_cv_cc_flag_unknown_warning_option=yes
9267 else
9268 xorg_cv_cc_flag_unknown_warning_option=no
9269 fi
9270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9271 fi
9272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9273 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9275 CFLAGS="$xorg_testset_save_CFLAGS"
9276 fi
9277
9278 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9281 fi
9282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9284 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9285 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9286 $as_echo_n "(cached) " >&6
9287 else
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 int i;
9291 _ACEOF
9292 if ac_fn_c_try_compile "$LINENO"; then :
9293 xorg_cv_cc_flag_unused_command_line_argument=yes
9294 else
9295 xorg_cv_cc_flag_unused_command_line_argument=no
9296 fi
9297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298 fi
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9300 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9302 CFLAGS="$xorg_testset_save_CFLAGS"
9303 fi
9304
9305 found="no"
9306
9307 if test $found = "no" ; then
9308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9310 fi
9311
9312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9314 fi
9315
9316 CFLAGS="$CFLAGS -Wreturn-type"
9317
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9319 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9320 cacheid=xorg_cv_cc_flag__Wreturn_type
9321 if eval \${$cacheid+:} false; then :
9322 $as_echo_n "(cached) " >&6
9323 else
9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9325 /* end confdefs.h. */
9326 int i;
9327 int
9328 main ()
9329 {
9330
9331 ;
9332 return 0;
9333 }
9334 _ACEOF
9335 if ac_fn_c_try_link "$LINENO"; then :
9336 eval $cacheid=yes
9337 else
9338 eval $cacheid=no
9339 fi
9340 rm -f core conftest.err conftest.$ac_objext \
9341 conftest$ac_exeext conftest.$ac_ext
9342 fi
9343
9344
9345 CFLAGS="$xorg_testset_save_CFLAGS"
9346
9347 eval supported=\$$cacheid
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9349 $as_echo "$supported" >&6; }
9350 if test "$supported" = "yes" ; then
9351 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9352 found="yes"
9353 fi
9354 fi
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370 xorg_testset_save_CFLAGS="$CFLAGS"
9371
9372 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9375 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9376 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9377 $as_echo_n "(cached) " >&6
9378 else
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381 int i;
9382 _ACEOF
9383 if ac_fn_c_try_compile "$LINENO"; then :
9384 xorg_cv_cc_flag_unknown_warning_option=yes
9385 else
9386 xorg_cv_cc_flag_unknown_warning_option=no
9387 fi
9388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9389 fi
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9391 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9392 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9393 CFLAGS="$xorg_testset_save_CFLAGS"
9394 fi
9395
9396 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9399 fi
9400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9402 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9403 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9408 int i;
9409 _ACEOF
9410 if ac_fn_c_try_compile "$LINENO"; then :
9411 xorg_cv_cc_flag_unused_command_line_argument=yes
9412 else
9413 xorg_cv_cc_flag_unused_command_line_argument=no
9414 fi
9415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9416 fi
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9418 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9420 CFLAGS="$xorg_testset_save_CFLAGS"
9421 fi
9422
9423 found="no"
9424
9425 if test $found = "no" ; then
9426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9428 fi
9429
9430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9432 fi
9433
9434 CFLAGS="$CFLAGS -Wtrigraphs"
9435
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9437 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9438 cacheid=xorg_cv_cc_flag__Wtrigraphs
9439 if eval \${$cacheid+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9443 /* end confdefs.h. */
9444 int i;
9445 int
9446 main ()
9447 {
9448
9449 ;
9450 return 0;
9451 }
9452 _ACEOF
9453 if ac_fn_c_try_link "$LINENO"; then :
9454 eval $cacheid=yes
9455 else
9456 eval $cacheid=no
9457 fi
9458 rm -f core conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
9460 fi
9461
9462
9463 CFLAGS="$xorg_testset_save_CFLAGS"
9464
9465 eval supported=\$$cacheid
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9467 $as_echo "$supported" >&6; }
9468 if test "$supported" = "yes" ; then
9469 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9470 found="yes"
9471 fi
9472 fi
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488 xorg_testset_save_CFLAGS="$CFLAGS"
9489
9490 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9493 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9494 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9498 /* end confdefs.h. */
9499 int i;
9500 _ACEOF
9501 if ac_fn_c_try_compile "$LINENO"; then :
9502 xorg_cv_cc_flag_unknown_warning_option=yes
9503 else
9504 xorg_cv_cc_flag_unknown_warning_option=no
9505 fi
9506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9507 fi
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9509 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9511 CFLAGS="$xorg_testset_save_CFLAGS"
9512 fi
9513
9514 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9517 fi
9518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9520 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9521 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9526 int i;
9527 _ACEOF
9528 if ac_fn_c_try_compile "$LINENO"; then :
9529 xorg_cv_cc_flag_unused_command_line_argument=yes
9530 else
9531 xorg_cv_cc_flag_unused_command_line_argument=no
9532 fi
9533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9534 fi
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9536 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9538 CFLAGS="$xorg_testset_save_CFLAGS"
9539 fi
9540
9541 found="no"
9542
9543 if test $found = "no" ; then
9544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9546 fi
9547
9548 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9550 fi
9551
9552 CFLAGS="$CFLAGS -Warray-bounds"
9553
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9555 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9556 cacheid=xorg_cv_cc_flag__Warray_bounds
9557 if eval \${$cacheid+:} false; then :
9558 $as_echo_n "(cached) " >&6
9559 else
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9562 int i;
9563 int
9564 main ()
9565 {
9566
9567 ;
9568 return 0;
9569 }
9570 _ACEOF
9571 if ac_fn_c_try_link "$LINENO"; then :
9572 eval $cacheid=yes
9573 else
9574 eval $cacheid=no
9575 fi
9576 rm -f core conftest.err conftest.$ac_objext \
9577 conftest$ac_exeext conftest.$ac_ext
9578 fi
9579
9580
9581 CFLAGS="$xorg_testset_save_CFLAGS"
9582
9583 eval supported=\$$cacheid
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9585 $as_echo "$supported" >&6; }
9586 if test "$supported" = "yes" ; then
9587 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9588 found="yes"
9589 fi
9590 fi
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606 xorg_testset_save_CFLAGS="$CFLAGS"
9607
9608 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9611 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9612 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617 int i;
9618 _ACEOF
9619 if ac_fn_c_try_compile "$LINENO"; then :
9620 xorg_cv_cc_flag_unknown_warning_option=yes
9621 else
9622 xorg_cv_cc_flag_unknown_warning_option=no
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9625 fi
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9627 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9629 CFLAGS="$xorg_testset_save_CFLAGS"
9630 fi
9631
9632 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9635 fi
9636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9638 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9639 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9640 $as_echo_n "(cached) " >&6
9641 else
9642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643 /* end confdefs.h. */
9644 int i;
9645 _ACEOF
9646 if ac_fn_c_try_compile "$LINENO"; then :
9647 xorg_cv_cc_flag_unused_command_line_argument=yes
9648 else
9649 xorg_cv_cc_flag_unused_command_line_argument=no
9650 fi
9651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9652 fi
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9654 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9655 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9656 CFLAGS="$xorg_testset_save_CFLAGS"
9657 fi
9658
9659 found="no"
9660
9661 if test $found = "no" ; then
9662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9664 fi
9665
9666 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9668 fi
9669
9670 CFLAGS="$CFLAGS -Wwrite-strings"
9671
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9673 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9674 cacheid=xorg_cv_cc_flag__Wwrite_strings
9675 if eval \${$cacheid+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9680 int i;
9681 int
9682 main ()
9683 {
9684
9685 ;
9686 return 0;
9687 }
9688 _ACEOF
9689 if ac_fn_c_try_link "$LINENO"; then :
9690 eval $cacheid=yes
9691 else
9692 eval $cacheid=no
9693 fi
9694 rm -f core conftest.err conftest.$ac_objext \
9695 conftest$ac_exeext conftest.$ac_ext
9696 fi
9697
9698
9699 CFLAGS="$xorg_testset_save_CFLAGS"
9700
9701 eval supported=\$$cacheid
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9703 $as_echo "$supported" >&6; }
9704 if test "$supported" = "yes" ; then
9705 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9706 found="yes"
9707 fi
9708 fi
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724 xorg_testset_save_CFLAGS="$CFLAGS"
9725
9726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9729 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9730 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9731 $as_echo_n "(cached) " >&6
9732 else
9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9735 int i;
9736 _ACEOF
9737 if ac_fn_c_try_compile "$LINENO"; then :
9738 xorg_cv_cc_flag_unknown_warning_option=yes
9739 else
9740 xorg_cv_cc_flag_unknown_warning_option=no
9741 fi
9742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743 fi
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9745 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9747 CFLAGS="$xorg_testset_save_CFLAGS"
9748 fi
9749
9750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9753 fi
9754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9756 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9757 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9758 $as_echo_n "(cached) " >&6
9759 else
9760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9761 /* end confdefs.h. */
9762 int i;
9763 _ACEOF
9764 if ac_fn_c_try_compile "$LINENO"; then :
9765 xorg_cv_cc_flag_unused_command_line_argument=yes
9766 else
9767 xorg_cv_cc_flag_unused_command_line_argument=no
9768 fi
9769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9770 fi
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9772 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9774 CFLAGS="$xorg_testset_save_CFLAGS"
9775 fi
9776
9777 found="no"
9778
9779 if test $found = "no" ; then
9780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9782 fi
9783
9784 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9786 fi
9787
9788 CFLAGS="$CFLAGS -Waddress"
9789
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9791 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9792 cacheid=xorg_cv_cc_flag__Waddress
9793 if eval \${$cacheid+:} false; then :
9794 $as_echo_n "(cached) " >&6
9795 else
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9798 int i;
9799 int
9800 main ()
9801 {
9802
9803 ;
9804 return 0;
9805 }
9806 _ACEOF
9807 if ac_fn_c_try_link "$LINENO"; then :
9808 eval $cacheid=yes
9809 else
9810 eval $cacheid=no
9811 fi
9812 rm -f core conftest.err conftest.$ac_objext \
9813 conftest$ac_exeext conftest.$ac_ext
9814 fi
9815
9816
9817 CFLAGS="$xorg_testset_save_CFLAGS"
9818
9819 eval supported=\$$cacheid
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9821 $as_echo "$supported" >&6; }
9822 if test "$supported" = "yes" ; then
9823 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9824 found="yes"
9825 fi
9826 fi
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842 xorg_testset_save_CFLAGS="$CFLAGS"
9843
9844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853 int i;
9854 _ACEOF
9855 if ac_fn_c_try_compile "$LINENO"; then :
9856 xorg_cv_cc_flag_unknown_warning_option=yes
9857 else
9858 xorg_cv_cc_flag_unknown_warning_option=no
9859 fi
9860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 fi
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9865 CFLAGS="$xorg_testset_save_CFLAGS"
9866 fi
9867
9868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9871 fi
9872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9876 $as_echo_n "(cached) " >&6
9877 else
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h. */
9880 int i;
9881 _ACEOF
9882 if ac_fn_c_try_compile "$LINENO"; then :
9883 xorg_cv_cc_flag_unused_command_line_argument=yes
9884 else
9885 xorg_cv_cc_flag_unused_command_line_argument=no
9886 fi
9887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9888 fi
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9892 CFLAGS="$xorg_testset_save_CFLAGS"
9893 fi
9894
9895 found="no"
9896
9897 if test $found = "no" ; then
9898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9900 fi
9901
9902 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9904 fi
9905
9906 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9907
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9909 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9910 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9911 if eval \${$cacheid+:} false; then :
9912 $as_echo_n "(cached) " >&6
9913 else
9914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9915 /* end confdefs.h. */
9916 int i;
9917 int
9918 main ()
9919 {
9920
9921 ;
9922 return 0;
9923 }
9924 _ACEOF
9925 if ac_fn_c_try_link "$LINENO"; then :
9926 eval $cacheid=yes
9927 else
9928 eval $cacheid=no
9929 fi
9930 rm -f core conftest.err conftest.$ac_objext \
9931 conftest$ac_exeext conftest.$ac_ext
9932 fi
9933
9934
9935 CFLAGS="$xorg_testset_save_CFLAGS"
9936
9937 eval supported=\$$cacheid
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9939 $as_echo "$supported" >&6; }
9940 if test "$supported" = "yes" ; then
9941 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9942 found="yes"
9943 fi
9944 fi
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960 xorg_testset_save_CFLAGS="$CFLAGS"
9961
9962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9965 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9966 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9967 $as_echo_n "(cached) " >&6
9968 else
9969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9970 /* end confdefs.h. */
9971 int i;
9972 _ACEOF
9973 if ac_fn_c_try_compile "$LINENO"; then :
9974 xorg_cv_cc_flag_unknown_warning_option=yes
9975 else
9976 xorg_cv_cc_flag_unknown_warning_option=no
9977 fi
9978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9979 fi
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9981 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9983 CFLAGS="$xorg_testset_save_CFLAGS"
9984 fi
9985
9986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9989 fi
9990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9993 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9994 $as_echo_n "(cached) " >&6
9995 else
9996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h. */
9998 int i;
9999 _ACEOF
10000 if ac_fn_c_try_compile "$LINENO"; then :
10001 xorg_cv_cc_flag_unused_command_line_argument=yes
10002 else
10003 xorg_cv_cc_flag_unused_command_line_argument=no
10004 fi
10005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10006 fi
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10008 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10010 CFLAGS="$xorg_testset_save_CFLAGS"
10011 fi
10012
10013 found="no"
10014
10015 if test $found = "no" ; then
10016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10018 fi
10019
10020 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10022 fi
10023
10024 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10025
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10027 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10028 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10029 if eval \${$cacheid+:} false; then :
10030 $as_echo_n "(cached) " >&6
10031 else
10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h. */
10034 int i;
10035 int
10036 main ()
10037 {
10038
10039 ;
10040 return 0;
10041 }
10042 _ACEOF
10043 if ac_fn_c_try_link "$LINENO"; then :
10044 eval $cacheid=yes
10045 else
10046 eval $cacheid=no
10047 fi
10048 rm -f core conftest.err conftest.$ac_objext \
10049 conftest$ac_exeext conftest.$ac_ext
10050 fi
10051
10052
10053 CFLAGS="$xorg_testset_save_CFLAGS"
10054
10055 eval supported=\$$cacheid
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10057 $as_echo "$supported" >&6; }
10058 if test "$supported" = "yes" ; then
10059 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10060 found="yes"
10061 fi
10062 fi
10063
10064
10065 fi
10066
10067
10068
10069
10070
10071
10072
10073 CWARNFLAGS="$BASE_CFLAGS"
10074 if test "x$GCC" = xyes ; then
10075 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10076 fi
10077
10078
10079
10080
10081
10082
10083
10084
10085 # Check whether --enable-strict-compilation was given.
10086 if test "${enable_strict_compilation+set}" = set; then :
10087 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10088 else
10089 STRICT_COMPILE=no
10090 fi
10091
10092
10093
10094
10095
10096
10097 STRICT_CFLAGS=""
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111 xorg_testset_save_CFLAGS="$CFLAGS"
10112
10113 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10116 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10117 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10118 $as_echo_n "(cached) " >&6
10119 else
10120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10121 /* end confdefs.h. */
10122 int i;
10123 _ACEOF
10124 if ac_fn_c_try_compile "$LINENO"; then :
10125 xorg_cv_cc_flag_unknown_warning_option=yes
10126 else
10127 xorg_cv_cc_flag_unknown_warning_option=no
10128 fi
10129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10130 fi
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10132 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10133 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10134 CFLAGS="$xorg_testset_save_CFLAGS"
10135 fi
10136
10137 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10138 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10140 fi
10141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10143 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10144 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10145 $as_echo_n "(cached) " >&6
10146 else
10147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10148 /* end confdefs.h. */
10149 int i;
10150 _ACEOF
10151 if ac_fn_c_try_compile "$LINENO"; then :
10152 xorg_cv_cc_flag_unused_command_line_argument=yes
10153 else
10154 xorg_cv_cc_flag_unused_command_line_argument=no
10155 fi
10156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 fi
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10159 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10160 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10161 CFLAGS="$xorg_testset_save_CFLAGS"
10162 fi
10163
10164 found="no"
10165
10166 if test $found = "no" ; then
10167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10169 fi
10170
10171 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10173 fi
10174
10175 CFLAGS="$CFLAGS -pedantic"
10176
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10178 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10179 cacheid=xorg_cv_cc_flag__pedantic
10180 if eval \${$cacheid+:} false; then :
10181 $as_echo_n "(cached) " >&6
10182 else
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10185 int i;
10186 int
10187 main ()
10188 {
10189
10190 ;
10191 return 0;
10192 }
10193 _ACEOF
10194 if ac_fn_c_try_link "$LINENO"; then :
10195 eval $cacheid=yes
10196 else
10197 eval $cacheid=no
10198 fi
10199 rm -f core conftest.err conftest.$ac_objext \
10200 conftest$ac_exeext conftest.$ac_ext
10201 fi
10202
10203
10204 CFLAGS="$xorg_testset_save_CFLAGS"
10205
10206 eval supported=\$$cacheid
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10208 $as_echo "$supported" >&6; }
10209 if test "$supported" = "yes" ; then
10210 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10211 found="yes"
10212 fi
10213 fi
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229 xorg_testset_save_CFLAGS="$CFLAGS"
10230
10231 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10234 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10235 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10236 $as_echo_n "(cached) " >&6
10237 else
10238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10239 /* end confdefs.h. */
10240 int i;
10241 _ACEOF
10242 if ac_fn_c_try_compile "$LINENO"; then :
10243 xorg_cv_cc_flag_unknown_warning_option=yes
10244 else
10245 xorg_cv_cc_flag_unknown_warning_option=no
10246 fi
10247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10248 fi
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10250 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10251 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10252 CFLAGS="$xorg_testset_save_CFLAGS"
10253 fi
10254
10255 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10258 fi
10259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10261 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10262 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10263 $as_echo_n "(cached) " >&6
10264 else
10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10266 /* end confdefs.h. */
10267 int i;
10268 _ACEOF
10269 if ac_fn_c_try_compile "$LINENO"; then :
10270 xorg_cv_cc_flag_unused_command_line_argument=yes
10271 else
10272 xorg_cv_cc_flag_unused_command_line_argument=no
10273 fi
10274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10275 fi
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10277 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10279 CFLAGS="$xorg_testset_save_CFLAGS"
10280 fi
10281
10282 found="no"
10283
10284 if test $found = "no" ; then
10285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10287 fi
10288
10289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10291 fi
10292
10293 CFLAGS="$CFLAGS -Werror"
10294
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10296 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10297 cacheid=xorg_cv_cc_flag__Werror
10298 if eval \${$cacheid+:} false; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10303 int i;
10304 int
10305 main ()
10306 {
10307
10308 ;
10309 return 0;
10310 }
10311 _ACEOF
10312 if ac_fn_c_try_link "$LINENO"; then :
10313 eval $cacheid=yes
10314 else
10315 eval $cacheid=no
10316 fi
10317 rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319 fi
10320
10321
10322 CFLAGS="$xorg_testset_save_CFLAGS"
10323
10324 eval supported=\$$cacheid
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10326 $as_echo "$supported" >&6; }
10327 if test "$supported" = "yes" ; then
10328 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10329 found="yes"
10330 fi
10331 fi
10332
10333 if test $found = "no" ; then
10334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10336 fi
10337
10338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10340 fi
10341
10342 CFLAGS="$CFLAGS -errwarn"
10343
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10345 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10346 cacheid=xorg_cv_cc_flag__errwarn
10347 if eval \${$cacheid+:} false; then :
10348 $as_echo_n "(cached) " >&6
10349 else
10350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352 int i;
10353 int
10354 main ()
10355 {
10356
10357 ;
10358 return 0;
10359 }
10360 _ACEOF
10361 if ac_fn_c_try_link "$LINENO"; then :
10362 eval $cacheid=yes
10363 else
10364 eval $cacheid=no
10365 fi
10366 rm -f core conftest.err conftest.$ac_objext \
10367 conftest$ac_exeext conftest.$ac_ext
10368 fi
10369
10370
10371 CFLAGS="$xorg_testset_save_CFLAGS"
10372
10373 eval supported=\$$cacheid
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10375 $as_echo "$supported" >&6; }
10376 if test "$supported" = "yes" ; then
10377 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10378 found="yes"
10379 fi
10380 fi
10381
10382
10383
10384 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10385 # activate it with -Werror, so we add it here explicitly.
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399 xorg_testset_save_CFLAGS="$CFLAGS"
10400
10401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10404 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10405 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10406 $as_echo_n "(cached) " >&6
10407 else
10408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10409 /* end confdefs.h. */
10410 int i;
10411 _ACEOF
10412 if ac_fn_c_try_compile "$LINENO"; then :
10413 xorg_cv_cc_flag_unknown_warning_option=yes
10414 else
10415 xorg_cv_cc_flag_unknown_warning_option=no
10416 fi
10417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10418 fi
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10420 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10422 CFLAGS="$xorg_testset_save_CFLAGS"
10423 fi
10424
10425 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10428 fi
10429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10431 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10432 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10433 $as_echo_n "(cached) " >&6
10434 else
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436 /* end confdefs.h. */
10437 int i;
10438 _ACEOF
10439 if ac_fn_c_try_compile "$LINENO"; then :
10440 xorg_cv_cc_flag_unused_command_line_argument=yes
10441 else
10442 xorg_cv_cc_flag_unused_command_line_argument=no
10443 fi
10444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10445 fi
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10447 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10449 CFLAGS="$xorg_testset_save_CFLAGS"
10450 fi
10451
10452 found="no"
10453
10454 if test $found = "no" ; then
10455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10457 fi
10458
10459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10461 fi
10462
10463 CFLAGS="$CFLAGS -Werror=attributes"
10464
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10466 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10467 cacheid=xorg_cv_cc_flag__Werror_attributes
10468 if eval \${$cacheid+:} false; then :
10469 $as_echo_n "(cached) " >&6
10470 else
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10473 int i;
10474 int
10475 main ()
10476 {
10477
10478 ;
10479 return 0;
10480 }
10481 _ACEOF
10482 if ac_fn_c_try_link "$LINENO"; then :
10483 eval $cacheid=yes
10484 else
10485 eval $cacheid=no
10486 fi
10487 rm -f core conftest.err conftest.$ac_objext \
10488 conftest$ac_exeext conftest.$ac_ext
10489 fi
10490
10491
10492 CFLAGS="$xorg_testset_save_CFLAGS"
10493
10494 eval supported=\$$cacheid
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10496 $as_echo "$supported" >&6; }
10497 if test "$supported" = "yes" ; then
10498 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10499 found="yes"
10500 fi
10501 fi
10502
10503
10504
10505 if test "x$STRICT_COMPILE" = "xyes"; then
10506 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10507 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10508 fi
10509
10510
10511
10512
10513
10514
10515 cat >>confdefs.h <<_ACEOF
10516 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10517 _ACEOF
10518
10519 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10520 if test "x$PVM" = "x"; then
10521 PVM="0"
10522 fi
10523
10524 cat >>confdefs.h <<_ACEOF
10525 #define PACKAGE_VERSION_MINOR $PVM
10526 _ACEOF
10527
10528 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10529 if test "x$PVP" = "x"; then
10530 PVP="0"
10531 fi
10532
10533 cat >>confdefs.h <<_ACEOF
10534 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10535 _ACEOF
10536
10537
10538
10539 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10540 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10541 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10542 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10543
10544
10545
10546
10547 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10548 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10549 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10550 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10551 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10552
10553
10554
10555
10556
10557
10558 if test x$APP_MAN_SUFFIX = x ; then
10559 APP_MAN_SUFFIX=1
10560 fi
10561 if test x$APP_MAN_DIR = x ; then
10562 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10563 fi
10564
10565 if test x$LIB_MAN_SUFFIX = x ; then
10566 LIB_MAN_SUFFIX=3
10567 fi
10568 if test x$LIB_MAN_DIR = x ; then
10569 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10570 fi
10571
10572 if test x$FILE_MAN_SUFFIX = x ; then
10573 case $host_os in
10574 # Solaris 2.0 - 11 use SysV man page sections
10575 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10576 *) FILE_MAN_SUFFIX=5 ;;
10577 esac
10578 fi
10579 if test x$FILE_MAN_DIR = x ; then
10580 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10581 fi
10582
10583 if test x$MISC_MAN_SUFFIX = x ; then
10584 case $host_os in
10585 # Solaris 2.0 - 11 use SysV man page sections
10586 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10587 *) MISC_MAN_SUFFIX=7 ;;
10588 esac
10589 fi
10590 if test x$MISC_MAN_DIR = x ; then
10591 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10592 fi
10593
10594 if test x$DRIVER_MAN_SUFFIX = x ; then
10595 case $host_os in
10596 # Solaris 2.0 - 11 use SysV man page sections
10597 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10598 *) DRIVER_MAN_SUFFIX=4 ;;
10599 esac
10600 fi
10601 if test x$DRIVER_MAN_DIR = x ; then
10602 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10603 fi
10604
10605 if test x$ADMIN_MAN_SUFFIX = x ; then
10606 case $host_os in
10607 # Solaris 2.0 - 11 use SysV man page sections
10608 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10609 *) ADMIN_MAN_SUFFIX=8 ;;
10610 esac
10611 fi
10612 if test x$ADMIN_MAN_DIR = x ; then
10613 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10614 fi
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630 XORG_MAN_PAGE="X Version 11"
10631
10632 MAN_SUBSTS="\
10633 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10634 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10635 -e 's|__xservername__|Xorg|g' \
10636 -e 's|__xconfigfile__|xorg.conf|g' \
10637 -e 's|__projectroot__|\$(prefix)|g' \
10638 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10639 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10640 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10641 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10642 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10643 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10644 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10645
10646
10647
10648 # Check whether --enable-silent-rules was given.
10649 if test "${enable_silent_rules+set}" = set; then :
10650 enableval=$enable_silent_rules;
10651 fi
10652
10653 case $enable_silent_rules in # (((
10654 yes) AM_DEFAULT_VERBOSITY=0;;
10655 no) AM_DEFAULT_VERBOSITY=1;;
10656 *) AM_DEFAULT_VERBOSITY=0;;
10657 esac
10658 am_make=${MAKE-make}
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10660 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10661 if ${am_cv_make_support_nested_variables+:} false; then :
10662 $as_echo_n "(cached) " >&6
10663 else
10664 if $as_echo 'TRUE=$(BAR$(V))
10665 BAR0=false
10666 BAR1=true
10667 V=1
10668 am__doit:
10669 @$(TRUE)
10670 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10671 am_cv_make_support_nested_variables=yes
10672 else
10673 am_cv_make_support_nested_variables=no
10674 fi
10675 fi
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10677 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10678 if test $am_cv_make_support_nested_variables = yes; then
10679 AM_V='$(V)'
10680 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10681 else
10682 AM_V=$AM_DEFAULT_VERBOSITY
10683 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10684 fi
10685 AM_BACKSLASH='\'
10686
10687
10688
10689 # Checks for library functions.
10690 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
10691 if test "x$ac_cv_func_mkstemp" = xyes; then :
10692
10693 $as_echo "#define HAS_MKSTEMP 1" >>confdefs.h
10694
10695 fi
10696
10697
10698 # Checks for pkg-config packages
10699
10700 pkg_failed=no
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDITVIEW" >&5
10702 $as_echo_n "checking for XDITVIEW... " >&6; }
10703
10704 if test -n "$XDITVIEW_CFLAGS"; then
10705 pkg_cv_XDITVIEW_CFLAGS="$XDITVIEW_CFLAGS"
10706 elif test -n "$PKG_CONFIG"; then
10707 if test -n "$PKG_CONFIG" && \
10708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
10709 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
10710 ac_status=$?
10711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10712 test $ac_status = 0; }; then
10713 pkg_cv_XDITVIEW_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null`
10714 test "x$?" != "x0" && pkg_failed=yes
10715 else
10716 pkg_failed=yes
10717 fi
10718 else
10719 pkg_failed=untried
10720 fi
10721 if test -n "$XDITVIEW_LIBS"; then
10722 pkg_cv_XDITVIEW_LIBS="$XDITVIEW_LIBS"
10723 elif test -n "$PKG_CONFIG"; then
10724 if test -n "$PKG_CONFIG" && \
10725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
10726 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
10727 ac_status=$?
10728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10729 test $ac_status = 0; }; then
10730 pkg_cv_XDITVIEW_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null`
10731 test "x$?" != "x0" && pkg_failed=yes
10732 else
10733 pkg_failed=yes
10734 fi
10735 else
10736 pkg_failed=untried
10737 fi
10738
10739
10740
10741 if test $pkg_failed = yes; then
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10743 $as_echo "no" >&6; }
10744
10745 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10746 _pkg_short_errors_supported=yes
10747 else
10748 _pkg_short_errors_supported=no
10749 fi
10750 if test $_pkg_short_errors_supported = yes; then
10751 XDITVIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11" 2>&1`
10752 else
10753 XDITVIEW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11" 2>&1`
10754 fi
10755 # Put the nasty error message in config.log where it belongs
10756 echo "$XDITVIEW_PKG_ERRORS" >&5
10757
10758 as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met:
10759
10760 $XDITVIEW_PKG_ERRORS
10761
10762 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10763 installed software in a non-standard prefix.
10764
10765 Alternatively, you may set the environment variables XDITVIEW_CFLAGS
10766 and XDITVIEW_LIBS to avoid the need to call pkg-config.
10767 See the pkg-config man page for more details." "$LINENO" 5
10768 elif test $pkg_failed = untried; then
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10770 $as_echo "no" >&6; }
10771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10773 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10774 is in your PATH or set the PKG_CONFIG environment variable to the full
10775 path to pkg-config.
10776
10777 Alternatively, you may set the environment variables XDITVIEW_CFLAGS
10778 and XDITVIEW_LIBS to avoid the need to call pkg-config.
10779 See the pkg-config man page for more details.
10780
10781 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10782 See \`config.log' for more details" "$LINENO" 5; }
10783 else
10784 XDITVIEW_CFLAGS=$pkg_cv_XDITVIEW_CFLAGS
10785 XDITVIEW_LIBS=$pkg_cv_XDITVIEW_LIBS
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10787 $as_echo "yes" >&6; }
10788
10789 fi
10790
10791
10792 pkg_failed=no
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
10794 $as_echo_n "checking for APPDEFS... " >&6; }
10795
10796 if test -n "$APPDEFS_CFLAGS"; then
10797 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
10798 elif test -n "$PKG_CONFIG"; then
10799 if test -n "$PKG_CONFIG" && \
10800 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10801 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10802 ac_status=$?
10803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10804 test $ac_status = 0; }; then
10805 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
10806 test "x$?" != "x0" && pkg_failed=yes
10807 else
10808 pkg_failed=yes
10809 fi
10810 else
10811 pkg_failed=untried
10812 fi
10813 if test -n "$APPDEFS_LIBS"; then
10814 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
10815 elif test -n "$PKG_CONFIG"; then
10816 if test -n "$PKG_CONFIG" && \
10817 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
10818 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
10819 ac_status=$?
10820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10821 test $ac_status = 0; }; then
10822 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
10823 test "x$?" != "x0" && pkg_failed=yes
10824 else
10825 pkg_failed=yes
10826 fi
10827 else
10828 pkg_failed=untried
10829 fi
10830
10831
10832
10833 if test $pkg_failed = yes; then
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10835 $as_echo "no" >&6; }
10836
10837 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10838 _pkg_short_errors_supported=yes
10839 else
10840 _pkg_short_errors_supported=no
10841 fi
10842 if test $_pkg_short_errors_supported = yes; then
10843 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
10844 else
10845 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
10846 fi
10847 # Put the nasty error message in config.log where it belongs
10848 echo "$APPDEFS_PKG_ERRORS" >&5
10849
10850 as_fn_error $? "Package requirements (xt) were not met:
10851
10852 $APPDEFS_PKG_ERRORS
10853
10854 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10855 installed software in a non-standard prefix.
10856
10857 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10858 and APPDEFS_LIBS to avoid the need to call pkg-config.
10859 See the pkg-config man page for more details." "$LINENO" 5
10860 elif test $pkg_failed = untried; then
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10865 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10866 is in your PATH or set the PKG_CONFIG environment variable to the full
10867 path to pkg-config.
10868
10869 Alternatively, you may set the environment variables APPDEFS_CFLAGS
10870 and APPDEFS_LIBS to avoid the need to call pkg-config.
10871 See the pkg-config man page for more details.
10872
10873 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10874 See \`config.log' for more details" "$LINENO" 5; }
10875 else
10876 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
10877 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10879 $as_echo "yes" >&6; }
10880
10881 fi
10882 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
10883
10884 # Check whether --with-appdefaultdir was given.
10885 if test "${with_appdefaultdir+set}" = set; then :
10886 withval=$with_appdefaultdir; appdefaultdir="$withval"
10887 else
10888 appdefaultdir="${xt_appdefaultdir}"
10889 fi
10890
10891
10892
10893
10894 ac_config_files="$ac_config_files Makefile man/Makefile"
10895
10896 cat >confcache <<\_ACEOF
10897 # This file is a shell script that caches the results of configure
10898 # tests run on this system so they can be shared between configure
10899 # scripts and configure runs, see configure's option --config-cache.
10900 # It is not useful on other systems. If it contains results you don't
10901 # want to keep, you may remove or edit it.
10902 #
10903 # config.status only pays attention to the cache file if you give it
10904 # the --recheck option to rerun configure.
10905 #
10906 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10907 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10908 # following values.
10909
10910 _ACEOF
10911
10912 # The following way of writing the cache mishandles newlines in values,
10913 # but we know of no workaround that is simple, portable, and efficient.
10914 # So, we kill variables containing newlines.
10915 # Ultrix sh set writes to stderr and can't be redirected directly,
10916 # and sets the high bit in the cache file unless we assign to the vars.
10917 (
10918 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10919 eval ac_val=\$$ac_var
10920 case $ac_val in #(
10921 *${as_nl}*)
10922 case $ac_var in #(
10923 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10924 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10925 esac
10926 case $ac_var in #(
10927 _ | IFS | as_nl) ;; #(
10928 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10929 *) { eval $ac_var=; unset $ac_var;} ;;
10930 esac ;;
10931 esac
10932 done
10933
10934 (set) 2>&1 |
10935 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10936 *${as_nl}ac_space=\ *)
10937 # `set' does not quote correctly, so add quotes: double-quote
10938 # substitution turns \\\\ into \\, and sed turns \\ into \.
10939 sed -n \
10940 "s/'/'\\\\''/g;
10941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10942 ;; #(
10943 *)
10944 # `set' quotes correctly as required by POSIX, so do not add quotes.
10945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10946 ;;
10947 esac |
10948 sort
10949 ) |
10950 sed '
10951 /^ac_cv_env_/b end
10952 t clear
10953 :clear
10954 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10955 t end
10956 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10957 :end' >>confcache
10958 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10959 if test -w "$cache_file"; then
10960 if test "x$cache_file" != "x/dev/null"; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10962 $as_echo "$as_me: updating cache $cache_file" >&6;}
10963 if test ! -f "$cache_file" || test -h "$cache_file"; then
10964 cat confcache >"$cache_file"
10965 else
10966 case $cache_file in #(
10967 */* | ?:*)
10968 mv -f confcache "$cache_file"$$ &&
10969 mv -f "$cache_file"$$ "$cache_file" ;; #(
10970 *)
10971 mv -f confcache "$cache_file" ;;
10972 esac
10973 fi
10974 fi
10975 else
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10977 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10978 fi
10979 fi
10980 rm -f confcache
10981
10982 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10983 # Let make expand exec_prefix.
10984 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10985
10986 DEFS=-DHAVE_CONFIG_H
10987
10988 ac_libobjs=
10989 ac_ltlibobjs=
10990 U=
10991 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10992 # 1. Remove the extension, and $U if already installed.
10993 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10994 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10995 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10996 # will be set to the directory where LIBOBJS objects are built.
10997 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10998 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10999 done
11000 LIBOBJS=$ac_libobjs
11001
11002 LTLIBOBJS=$ac_ltlibobjs
11003
11004
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11006 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11007 if test -n "$am_sleep_pid"; then
11008 # Hide warnings about reused PIDs.
11009 wait $am_sleep_pid 2>/dev/null
11010 fi
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11012 $as_echo "done" >&6; }
11013 if test -n "$EXEEXT"; then
11014 am__EXEEXT_TRUE=
11015 am__EXEEXT_FALSE='#'
11016 else
11017 am__EXEEXT_TRUE='#'
11018 am__EXEEXT_FALSE=
11019 fi
11020
11021 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11022 as_fn_error $? "conditional \"AMDEP\" was never defined.
11023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11024 fi
11025 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11026 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11028 fi
11029
11030 : "${CONFIG_STATUS=./config.status}"
11031 ac_write_fail=0
11032 ac_clean_files_save=$ac_clean_files
11033 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11035 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11036 as_write_fail=0
11037 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11038 #! $SHELL
11039 # Generated by $as_me.
11040 # Run this file to recreate the current configuration.
11041 # Compiler output produced by configure, useful for debugging
11042 # configure, is in config.log if it exists.
11043
11044 debug=false
11045 ac_cs_recheck=false
11046 ac_cs_silent=false
11047
11048 SHELL=\${CONFIG_SHELL-$SHELL}
11049 export SHELL
11050 _ASEOF
11051 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11052 ## -------------------- ##
11053 ## M4sh Initialization. ##
11054 ## -------------------- ##
11055
11056 # Be more Bourne compatible
11057 DUALCASE=1; export DUALCASE # for MKS sh
11058 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11059 emulate sh
11060 NULLCMD=:
11061 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11062 # is contrary to our usage. Disable this feature.
11063 alias -g '${1+"$@"}'='"$@"'
11064 setopt NO_GLOB_SUBST
11065 else
11066 case `(set -o) 2>/dev/null` in #(
11067 *posix*) :
11068 set -o posix ;; #(
11069 *) :
11070 ;;
11071 esac
11072 fi
11073
11074
11075 as_nl='
11076 '
11077 export as_nl
11078 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11079 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11080 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11081 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11082 # Prefer a ksh shell builtin over an external printf program on Solaris,
11083 # but without wasting forks for bash or zsh.
11084 if test -z "$BASH_VERSION$ZSH_VERSION" \
11085 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11086 as_echo='print -r --'
11087 as_echo_n='print -rn --'
11088 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11089 as_echo='printf %s\n'
11090 as_echo_n='printf %s'
11091 else
11092 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11093 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11094 as_echo_n='/usr/ucb/echo -n'
11095 else
11096 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11097 as_echo_n_body='eval
11098 arg=$1;
11099 case $arg in #(
11100 *"$as_nl"*)
11101 expr "X$arg" : "X\\(.*\\)$as_nl";
11102 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11103 esac;
11104 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11105 '
11106 export as_echo_n_body
11107 as_echo_n='sh -c $as_echo_n_body as_echo'
11108 fi
11109 export as_echo_body
11110 as_echo='sh -c $as_echo_body as_echo'
11111 fi
11112
11113 # The user is always right.
11114 if test "${PATH_SEPARATOR+set}" != set; then
11115 PATH_SEPARATOR=:
11116 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11117 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11118 PATH_SEPARATOR=';'
11119 }
11120 fi
11121
11122
11123 # IFS
11124 # We need space, tab and new line, in precisely that order. Quoting is
11125 # there to prevent editors from complaining about space-tab.
11126 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11127 # splitting by setting IFS to empty value.)
11128 IFS=" "" $as_nl"
11129
11130 # Find who we are. Look in the path if we contain no directory separator.
11131 as_myself=
11132 case $0 in #((
11133 *[\\/]* ) as_myself=$0 ;;
11134 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135 for as_dir in $PATH
11136 do
11137 IFS=$as_save_IFS
11138 test -z "$as_dir" && as_dir=.
11139 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11140 done
11141 IFS=$as_save_IFS
11142
11143 ;;
11144 esac
11145 # We did not find ourselves, most probably we were run as `sh COMMAND'
11146 # in which case we are not to be found in the path.
11147 if test "x$as_myself" = x; then
11148 as_myself=$0
11149 fi
11150 if test ! -f "$as_myself"; then
11151 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11152 exit 1
11153 fi
11154
11155 # Unset variables that we do not need and which cause bugs (e.g. in
11156 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11157 # suppresses any "Segmentation fault" message there. '((' could
11158 # trigger a bug in pdksh 5.2.14.
11159 for as_var in BASH_ENV ENV MAIL MAILPATH
11160 do eval test x\${$as_var+set} = xset \
11161 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11162 done
11163 PS1='$ '
11164 PS2='> '
11165 PS4='+ '
11166
11167 # NLS nuisances.
11168 LC_ALL=C
11169 export LC_ALL
11170 LANGUAGE=C
11171 export LANGUAGE
11172
11173 # CDPATH.
11174 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11175
11176
11177 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11178 # ----------------------------------------
11179 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11180 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11181 # script with STATUS, using 1 if that was 0.
11182 as_fn_error ()
11183 {
11184 as_status=$1; test $as_status -eq 0 && as_status=1
11185 if test "$4"; then
11186 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11187 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11188 fi
11189 $as_echo "$as_me: error: $2" >&2
11190 as_fn_exit $as_status
11191 } # as_fn_error
11192
11193
11194 # as_fn_set_status STATUS
11195 # -----------------------
11196 # Set $? to STATUS, without forking.
11197 as_fn_set_status ()
11198 {
11199 return $1
11200 } # as_fn_set_status
11201
11202 # as_fn_exit STATUS
11203 # -----------------
11204 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11205 as_fn_exit ()
11206 {
11207 set +e
11208 as_fn_set_status $1
11209 exit $1
11210 } # as_fn_exit
11211
11212 # as_fn_unset VAR
11213 # ---------------
11214 # Portably unset VAR.
11215 as_fn_unset ()
11216 {
11217 { eval $1=; unset $1;}
11218 }
11219 as_unset=as_fn_unset
11220 # as_fn_append VAR VALUE
11221 # ----------------------
11222 # Append the text in VALUE to the end of the definition contained in VAR. Take
11223 # advantage of any shell optimizations that allow amortized linear growth over
11224 # repeated appends, instead of the typical quadratic growth present in naive
11225 # implementations.
11226 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11227 eval 'as_fn_append ()
11228 {
11229 eval $1+=\$2
11230 }'
11231 else
11232 as_fn_append ()
11233 {
11234 eval $1=\$$1\$2
11235 }
11236 fi # as_fn_append
11237
11238 # as_fn_arith ARG...
11239 # ------------------
11240 # Perform arithmetic evaluation on the ARGs, and store the result in the
11241 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11242 # must be portable across $(()) and expr.
11243 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11244 eval 'as_fn_arith ()
11245 {
11246 as_val=$(( $* ))
11247 }'
11248 else
11249 as_fn_arith ()
11250 {
11251 as_val=`expr "$@" || test $? -eq 1`
11252 }
11253 fi # as_fn_arith
11254
11255
11256 if expr a : '\(a\)' >/dev/null 2>&1 &&
11257 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11258 as_expr=expr
11259 else
11260 as_expr=false
11261 fi
11262
11263 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11264 as_basename=basename
11265 else
11266 as_basename=false
11267 fi
11268
11269 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11270 as_dirname=dirname
11271 else
11272 as_dirname=false
11273 fi
11274
11275 as_me=`$as_basename -- "$0" ||
11276 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11277 X"$0" : 'X\(//\)$' \| \
11278 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11279 $as_echo X/"$0" |
11280 sed '/^.*\/\([^/][^/]*\)\/*$/{
11281 s//\1/
11282 q
11283 }
11284 /^X\/\(\/\/\)$/{
11285 s//\1/
11286 q
11287 }
11288 /^X\/\(\/\).*/{
11289 s//\1/
11290 q
11291 }
11292 s/.*/./; q'`
11293
11294 # Avoid depending upon Character Ranges.
11295 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11296 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11297 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11298 as_cr_digits='0123456789'
11299 as_cr_alnum=$as_cr_Letters$as_cr_digits
11300
11301 ECHO_C= ECHO_N= ECHO_T=
11302 case `echo -n x` in #(((((
11303 -n*)
11304 case `echo 'xy\c'` in
11305 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11306 xy) ECHO_C='\c';;
11307 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11308 ECHO_T=' ';;
11309 esac;;
11310 *)
11311 ECHO_N='-n';;
11312 esac
11313
11314 rm -f conf$$ conf$$.exe conf$$.file
11315 if test -d conf$$.dir; then
11316 rm -f conf$$.dir/conf$$.file
11317 else
11318 rm -f conf$$.dir
11319 mkdir conf$$.dir 2>/dev/null
11320 fi
11321 if (echo >conf$$.file) 2>/dev/null; then
11322 if ln -s conf$$.file conf$$ 2>/dev/null; then
11323 as_ln_s='ln -s'
11324 # ... but there are two gotchas:
11325 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11326 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11327 # In both cases, we have to default to `cp -pR'.
11328 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11329 as_ln_s='cp -pR'
11330 elif ln conf$$.file conf$$ 2>/dev/null; then
11331 as_ln_s=ln
11332 else
11333 as_ln_s='cp -pR'
11334 fi
11335 else
11336 as_ln_s='cp -pR'
11337 fi
11338 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11339 rmdir conf$$.dir 2>/dev/null
11340
11341
11342 # as_fn_mkdir_p
11343 # -------------
11344 # Create "$as_dir" as a directory, including parents if necessary.
11345 as_fn_mkdir_p ()
11346 {
11347
11348 case $as_dir in #(
11349 -*) as_dir=./$as_dir;;
11350 esac
11351 test -d "$as_dir" || eval $as_mkdir_p || {
11352 as_dirs=
11353 while :; do
11354 case $as_dir in #(
11355 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11356 *) as_qdir=$as_dir;;
11357 esac
11358 as_dirs="'$as_qdir' $as_dirs"
11359 as_dir=`$as_dirname -- "$as_dir" ||
11360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11361 X"$as_dir" : 'X\(//\)[^/]' \| \
11362 X"$as_dir" : 'X\(//\)$' \| \
11363 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11364 $as_echo X"$as_dir" |
11365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11366 s//\1/
11367 q
11368 }
11369 /^X\(\/\/\)[^/].*/{
11370 s//\1/
11371 q
11372 }
11373 /^X\(\/\/\)$/{
11374 s//\1/
11375 q
11376 }
11377 /^X\(\/\).*/{
11378 s//\1/
11379 q
11380 }
11381 s/.*/./; q'`
11382 test -d "$as_dir" && break
11383 done
11384 test -z "$as_dirs" || eval "mkdir $as_dirs"
11385 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11386
11387
11388 } # as_fn_mkdir_p
11389 if mkdir -p . 2>/dev/null; then
11390 as_mkdir_p='mkdir -p "$as_dir"'
11391 else
11392 test -d ./-p && rmdir ./-p
11393 as_mkdir_p=false
11394 fi
11395
11396
11397 # as_fn_executable_p FILE
11398 # -----------------------
11399 # Test if FILE is an executable regular file.
11400 as_fn_executable_p ()
11401 {
11402 test -f "$1" && test -x "$1"
11403 } # as_fn_executable_p
11404 as_test_x='test -x'
11405 as_executable_p=as_fn_executable_p
11406
11407 # Sed expression to map a string onto a valid CPP name.
11408 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11409
11410 # Sed expression to map a string onto a valid variable name.
11411 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11412
11413
11414 exec 6>&1
11415 ## ----------------------------------- ##
11416 ## Main body of $CONFIG_STATUS script. ##
11417 ## ----------------------------------- ##
11418 _ASEOF
11419 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11420
11421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11422 # Save the log message, to keep $0 and so on meaningful, and to
11423 # report actual input values of CONFIG_FILES etc. instead of their
11424 # values after options handling.
11425 ac_log="
11426 This file was extended by xditview $as_me 1.0.5, which was
11427 generated by GNU Autoconf 2.69. Invocation command line was
11428
11429 CONFIG_FILES = $CONFIG_FILES
11430 CONFIG_HEADERS = $CONFIG_HEADERS
11431 CONFIG_LINKS = $CONFIG_LINKS
11432 CONFIG_COMMANDS = $CONFIG_COMMANDS
11433 $ $0 $@
11434
11435 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11436 "
11437
11438 _ACEOF
11439
11440 case $ac_config_files in *"
11441 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11442 esac
11443
11444 case $ac_config_headers in *"
11445 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11446 esac
11447
11448
11449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11450 # Files that config.status was made for.
11451 config_files="$ac_config_files"
11452 config_headers="$ac_config_headers"
11453 config_commands="$ac_config_commands"
11454
11455 _ACEOF
11456
11457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11458 ac_cs_usage="\
11459 \`$as_me' instantiates files and other configuration actions
11460 from templates according to the current configuration. Unless the files
11461 and actions are specified as TAGs, all are instantiated by default.
11462
11463 Usage: $0 [OPTION]... [TAG]...
11464
11465 -h, --help print this help, then exit
11466 -V, --version print version number and configuration settings, then exit
11467 --config print configuration, then exit
11468 -q, --quiet, --silent
11469 do not print progress messages
11470 -d, --debug don't remove temporary files
11471 --recheck update $as_me by reconfiguring in the same conditions
11472 --file=FILE[:TEMPLATE]
11473 instantiate the configuration file FILE
11474 --header=FILE[:TEMPLATE]
11475 instantiate the configuration header FILE
11476
11477 Configuration files:
11478 $config_files
11479
11480 Configuration headers:
11481 $config_headers
11482
11483 Configuration commands:
11484 $config_commands
11485
11486 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xditview/issues>."
11487
11488 _ACEOF
11489 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11490 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11491 ac_cs_version="\\
11492 xditview config.status 1.0.5
11493 configured by $0, generated by GNU Autoconf 2.69,
11494 with options \\"\$ac_cs_config\\"
11495
11496 Copyright (C) 2012 Free Software Foundation, Inc.
11497 This config.status script is free software; the Free Software Foundation
11498 gives unlimited permission to copy, distribute and modify it."
11499
11500 ac_pwd='$ac_pwd'
11501 srcdir='$srcdir'
11502 INSTALL='$INSTALL'
11503 MKDIR_P='$MKDIR_P'
11504 AWK='$AWK'
11505 test -n "\$AWK" || AWK=awk
11506 _ACEOF
11507
11508 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11509 # The default lists apply if the user does not specify any file.
11510 ac_need_defaults=:
11511 while test $# != 0
11512 do
11513 case $1 in
11514 --*=?*)
11515 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11516 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11517 ac_shift=:
11518 ;;
11519 --*=)
11520 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11521 ac_optarg=
11522 ac_shift=:
11523 ;;
11524 *)
11525 ac_option=$1
11526 ac_optarg=$2
11527 ac_shift=shift
11528 ;;
11529 esac
11530
11531 case $ac_option in
11532 # Handling of the options.
11533 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11534 ac_cs_recheck=: ;;
11535 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11536 $as_echo "$ac_cs_version"; exit ;;
11537 --config | --confi | --conf | --con | --co | --c )
11538 $as_echo "$ac_cs_config"; exit ;;
11539 --debug | --debu | --deb | --de | --d | -d )
11540 debug=: ;;
11541 --file | --fil | --fi | --f )
11542 $ac_shift
11543 case $ac_optarg in
11544 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11545 '') as_fn_error $? "missing file argument" ;;
11546 esac
11547 as_fn_append CONFIG_FILES " '$ac_optarg'"
11548 ac_need_defaults=false;;
11549 --header | --heade | --head | --hea )
11550 $ac_shift
11551 case $ac_optarg in
11552 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11553 esac
11554 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11555 ac_need_defaults=false;;
11556 --he | --h)
11557 # Conflict between --help and --header
11558 as_fn_error $? "ambiguous option: \`$1'
11559 Try \`$0 --help' for more information.";;
11560 --help | --hel | -h )
11561 $as_echo "$ac_cs_usage"; exit ;;
11562 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11563 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11564 ac_cs_silent=: ;;
11565
11566 # This is an error.
11567 -*) as_fn_error $? "unrecognized option: \`$1'
11568 Try \`$0 --help' for more information." ;;
11569
11570 *) as_fn_append ac_config_targets " $1"
11571 ac_need_defaults=false ;;
11572
11573 esac
11574 shift
11575 done
11576
11577 ac_configure_extra_args=
11578
11579 if $ac_cs_silent; then
11580 exec 6>/dev/null
11581 ac_configure_extra_args="$ac_configure_extra_args --silent"
11582 fi
11583
11584 _ACEOF
11585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11586 if \$ac_cs_recheck; then
11587 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11588 shift
11589 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11590 CONFIG_SHELL='$SHELL'
11591 export CONFIG_SHELL
11592 exec "\$@"
11593 fi
11594
11595 _ACEOF
11596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11597 exec 5>>config.log
11598 {
11599 echo
11600 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11601 ## Running $as_me. ##
11602 _ASBOX
11603 $as_echo "$ac_log"
11604 } >&5
11605
11606 _ACEOF
11607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11608 #
11609 # INIT-COMMANDS
11610 #
11611 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11612
11613 _ACEOF
11614
11615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11616
11617 # Handling of arguments.
11618 for ac_config_target in $ac_config_targets
11619 do
11620 case $ac_config_target in
11621 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11622 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11623 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11624 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11625
11626 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11627 esac
11628 done
11629
11630
11631 # If the user did not use the arguments to specify the items to instantiate,
11632 # then the envvar interface is used. Set only those that are not.
11633 # We use the long form for the default assignment because of an extremely
11634 # bizarre bug on SunOS 4.1.3.
11635 if $ac_need_defaults; then
11636 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11637 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11638 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11639 fi
11640
11641 # Have a temporary directory for convenience. Make it in the build tree
11642 # simply because there is no reason against having it here, and in addition,
11643 # creating and moving files from /tmp can sometimes cause problems.
11644 # Hook for its removal unless debugging.
11645 # Note that there is a small window in which the directory will not be cleaned:
11646 # after its creation but before its name has been assigned to `$tmp'.
11647 $debug ||
11648 {
11649 tmp= ac_tmp=
11650 trap 'exit_status=$?
11651 : "${ac_tmp:=$tmp}"
11652 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11653 ' 0
11654 trap 'as_fn_exit 1' 1 2 13 15
11655 }
11656 # Create a (secure) tmp directory for tmp files.
11657
11658 {
11659 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11660 test -d "$tmp"
11661 } ||
11662 {
11663 tmp=./conf$$-$RANDOM
11664 (umask 077 && mkdir "$tmp")
11665 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11666 ac_tmp=$tmp
11667
11668 # Set up the scripts for CONFIG_FILES section.
11669 # No need to generate them if there are no CONFIG_FILES.
11670 # This happens for instance with `./config.status config.h'.
11671 if test -n "$CONFIG_FILES"; then
11672
11673
11674 ac_cr=`echo X | tr X '\015'`
11675 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11676 # But we know of no other shell where ac_cr would be empty at this
11677 # point, so we can use a bashism as a fallback.
11678 if test "x$ac_cr" = x; then
11679 eval ac_cr=\$\'\\r\'
11680 fi
11681 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11682 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11683 ac_cs_awk_cr='\\r'
11684 else
11685 ac_cs_awk_cr=$ac_cr
11686 fi
11687
11688 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11689 _ACEOF
11690
11691
11692 {
11693 echo "cat >conf$$subs.awk <<_ACEOF" &&
11694 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11695 echo "_ACEOF"
11696 } >conf$$subs.sh ||
11697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11698 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11699 ac_delim='%!_!# '
11700 for ac_last_try in false false false false false :; do
11701 . ./conf$$subs.sh ||
11702 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11703
11704 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11705 if test $ac_delim_n = $ac_delim_num; then
11706 break
11707 elif $ac_last_try; then
11708 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11709 else
11710 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11711 fi
11712 done
11713 rm -f conf$$subs.sh
11714
11715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11716 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11717 _ACEOF
11718 sed -n '
11719 h
11720 s/^/S["/; s/!.*/"]=/
11721 p
11722 g
11723 s/^[^!]*!//
11724 :repl
11725 t repl
11726 s/'"$ac_delim"'$//
11727 t delim
11728 :nl
11729 h
11730 s/\(.\{148\}\)..*/\1/
11731 t more1
11732 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11733 p
11734 n
11735 b repl
11736 :more1
11737 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11738 p
11739 g
11740 s/.\{148\}//
11741 t nl
11742 :delim
11743 h
11744 s/\(.\{148\}\)..*/\1/
11745 t more2
11746 s/["\\]/\\&/g; s/^/"/; s/$/"/
11747 p
11748 b
11749 :more2
11750 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11751 p
11752 g
11753 s/.\{148\}//
11754 t delim
11755 ' <conf$$subs.awk | sed '
11756 /^[^""]/{
11757 N
11758 s/\n//
11759 }
11760 ' >>$CONFIG_STATUS || ac_write_fail=1
11761 rm -f conf$$subs.awk
11762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11763 _ACAWK
11764 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11765 for (key in S) S_is_set[key] = 1
11766 FS = ""
11767
11768 }
11769 {
11770 line = $ 0
11771 nfields = split(line, field, "@")
11772 substed = 0
11773 len = length(field[1])
11774 for (i = 2; i < nfields; i++) {
11775 key = field[i]
11776 keylen = length(key)
11777 if (S_is_set[key]) {
11778 value = S[key]
11779 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11780 len += length(value) + length(field[++i])
11781 substed = 1
11782 } else
11783 len += 1 + keylen
11784 }
11785
11786 print line
11787 }
11788
11789 _ACAWK
11790 _ACEOF
11791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11792 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11793 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11794 else
11795 cat
11796 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11797 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11798 _ACEOF
11799
11800 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11801 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11802 # trailing colons and then remove the whole line if VPATH becomes empty
11803 # (actually we leave an empty line to preserve line numbers).
11804 if test "x$srcdir" = x.; then
11805 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11806 h
11807 s///
11808 s/^/:/
11809 s/[ ]*$/:/
11810 s/:\$(srcdir):/:/g
11811 s/:\${srcdir}:/:/g
11812 s/:@srcdir@:/:/g
11813 s/^:*//
11814 s/:*$//
11815 x
11816 s/\(=[ ]*\).*/\1/
11817 G
11818 s/\n//
11819 s/^[^=]*=[ ]*$//
11820 }'
11821 fi
11822
11823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11824 fi # test -n "$CONFIG_FILES"
11825
11826 # Set up the scripts for CONFIG_HEADERS section.
11827 # No need to generate them if there are no CONFIG_HEADERS.
11828 # This happens for instance with `./config.status Makefile'.
11829 if test -n "$CONFIG_HEADERS"; then
11830 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11831 BEGIN {
11832 _ACEOF
11833
11834 # Transform confdefs.h into an awk script `defines.awk', embedded as
11835 # here-document in config.status, that substitutes the proper values into
11836 # config.h.in to produce config.h.
11837
11838 # Create a delimiter string that does not exist in confdefs.h, to ease
11839 # handling of long lines.
11840 ac_delim='%!_!# '
11841 for ac_last_try in false false :; do
11842 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11843 if test -z "$ac_tt"; then
11844 break
11845 elif $ac_last_try; then
11846 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11847 else
11848 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11849 fi
11850 done
11851
11852 # For the awk script, D is an array of macro values keyed by name,
11853 # likewise P contains macro parameters if any. Preserve backslash
11854 # newline sequences.
11855
11856 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11857 sed -n '
11858 s/.\{148\}/&'"$ac_delim"'/g
11859 t rset
11860 :rset
11861 s/^[ ]*#[ ]*define[ ][ ]*/ /
11862 t def
11863 d
11864 :def
11865 s/\\$//
11866 t bsnl
11867 s/["\\]/\\&/g
11868 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11869 D["\1"]=" \3"/p
11870 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11871 d
11872 :bsnl
11873 s/["\\]/\\&/g
11874 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11875 D["\1"]=" \3\\\\\\n"\\/p
11876 t cont
11877 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11878 t cont
11879 d
11880 :cont
11881 n
11882 s/.\{148\}/&'"$ac_delim"'/g
11883 t clear
11884 :clear
11885 s/\\$//
11886 t bsnlc
11887 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11888 d
11889 :bsnlc
11890 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11891 b cont
11892 ' <confdefs.h | sed '
11893 s/'"$ac_delim"'/"\\\
11894 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11895
11896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11897 for (key in D) D_is_set[key] = 1
11898 FS = ""
11899 }
11900 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11901 line = \$ 0
11902 split(line, arg, " ")
11903 if (arg[1] == "#") {
11904 defundef = arg[2]
11905 mac1 = arg[3]
11906 } else {
11907 defundef = substr(arg[1], 2)
11908 mac1 = arg[2]
11909 }
11910 split(mac1, mac2, "(") #)
11911 macro = mac2[1]
11912 prefix = substr(line, 1, index(line, defundef) - 1)
11913 if (D_is_set[macro]) {
11914 # Preserve the white space surrounding the "#".
11915 print prefix "define", macro P[macro] D[macro]
11916 next
11917 } else {
11918 # Replace #undef with comments. This is necessary, for example,
11919 # in the case of _POSIX_SOURCE, which is predefined and required
11920 # on some systems where configure will not decide to define it.
11921 if (defundef == "undef") {
11922 print "/*", prefix defundef, macro, "*/"
11923 next
11924 }
11925 }
11926 }
11927 { print }
11928 _ACAWK
11929 _ACEOF
11930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11931 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11932 fi # test -n "$CONFIG_HEADERS"
11933
11934
11935 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11936 shift
11937 for ac_tag
11938 do
11939 case $ac_tag in
11940 :[FHLC]) ac_mode=$ac_tag; continue;;
11941 esac
11942 case $ac_mode$ac_tag in
11943 :[FHL]*:*);;
11944 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11945 :[FH]-) ac_tag=-:-;;
11946 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11947 esac
11948 ac_save_IFS=$IFS
11949 IFS=:
11950 set x $ac_tag
11951 IFS=$ac_save_IFS
11952 shift
11953 ac_file=$1
11954 shift
11955
11956 case $ac_mode in
11957 :L) ac_source=$1;;
11958 :[FH])
11959 ac_file_inputs=
11960 for ac_f
11961 do
11962 case $ac_f in
11963 -) ac_f="$ac_tmp/stdin";;
11964 *) # Look for the file first in the build tree, then in the source tree
11965 # (if the path is not absolute). The absolute path cannot be DOS-style,
11966 # because $ac_f cannot contain `:'.
11967 test -f "$ac_f" ||
11968 case $ac_f in
11969 [\\/$]*) false;;
11970 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11971 esac ||
11972 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11973 esac
11974 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11975 as_fn_append ac_file_inputs " '$ac_f'"
11976 done
11977
11978 # Let's still pretend it is `configure' which instantiates (i.e., don't
11979 # use $as_me), people would be surprised to read:
11980 # /* config.h. Generated by config.status. */
11981 configure_input='Generated from '`
11982 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11983 `' by configure.'
11984 if test x"$ac_file" != x-; then
11985 configure_input="$ac_file. $configure_input"
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11987 $as_echo "$as_me: creating $ac_file" >&6;}
11988 fi
11989 # Neutralize special characters interpreted by sed in replacement strings.
11990 case $configure_input in #(
11991 *\&* | *\|* | *\\* )
11992 ac_sed_conf_input=`$as_echo "$configure_input" |
11993 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11994 *) ac_sed_conf_input=$configure_input;;
11995 esac
11996
11997 case $ac_tag in
11998 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11999 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12000 esac
12001 ;;
12002 esac
12003
12004 ac_dir=`$as_dirname -- "$ac_file" ||
12005 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12006 X"$ac_file" : 'X\(//\)[^/]' \| \
12007 X"$ac_file" : 'X\(//\)$' \| \
12008 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12009 $as_echo X"$ac_file" |
12010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12011 s//\1/
12012 q
12013 }
12014 /^X\(\/\/\)[^/].*/{
12015 s//\1/
12016 q
12017 }
12018 /^X\(\/\/\)$/{
12019 s//\1/
12020 q
12021 }
12022 /^X\(\/\).*/{
12023 s//\1/
12024 q
12025 }
12026 s/.*/./; q'`
12027 as_dir="$ac_dir"; as_fn_mkdir_p
12028 ac_builddir=.
12029
12030 case "$ac_dir" in
12031 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12032 *)
12033 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12034 # A ".." for each directory in $ac_dir_suffix.
12035 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12036 case $ac_top_builddir_sub in
12037 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12038 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12039 esac ;;
12040 esac
12041 ac_abs_top_builddir=$ac_pwd
12042 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12043 # for backward compatibility:
12044 ac_top_builddir=$ac_top_build_prefix
12045
12046 case $srcdir in
12047 .) # We are building in place.
12048 ac_srcdir=.
12049 ac_top_srcdir=$ac_top_builddir_sub
12050 ac_abs_top_srcdir=$ac_pwd ;;
12051 [\\/]* | ?:[\\/]* ) # Absolute name.
12052 ac_srcdir=$srcdir$ac_dir_suffix;
12053 ac_top_srcdir=$srcdir
12054 ac_abs_top_srcdir=$srcdir ;;
12055 *) # Relative name.
12056 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12057 ac_top_srcdir=$ac_top_build_prefix$srcdir
12058 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12059 esac
12060 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12061
12062
12063 case $ac_mode in
12064 :F)
12065 #
12066 # CONFIG_FILE
12067 #
12068
12069 case $INSTALL in
12070 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12071 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12072 esac
12073 ac_MKDIR_P=$MKDIR_P
12074 case $MKDIR_P in
12075 [\\/$]* | ?:[\\/]* ) ;;
12076 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12077 esac
12078 _ACEOF
12079
12080 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12081 # If the template does not know about datarootdir, expand it.
12082 # FIXME: This hack should be removed a few years after 2.60.
12083 ac_datarootdir_hack=; ac_datarootdir_seen=
12084 ac_sed_dataroot='
12085 /datarootdir/ {
12086 p
12087 q
12088 }
12089 /@datadir@/p
12090 /@docdir@/p
12091 /@infodir@/p
12092 /@localedir@/p
12093 /@mandir@/p'
12094 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12095 *datarootdir*) ac_datarootdir_seen=yes;;
12096 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12098 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12099 _ACEOF
12100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12101 ac_datarootdir_hack='
12102 s&@datadir@&$datadir&g
12103 s&@docdir@&$docdir&g
12104 s&@infodir@&$infodir&g
12105 s&@localedir@&$localedir&g
12106 s&@mandir@&$mandir&g
12107 s&\\\${datarootdir}&$datarootdir&g' ;;
12108 esac
12109 _ACEOF
12110
12111 # Neutralize VPATH when `$srcdir' = `.'.
12112 # Shell code in configure.ac might set extrasub.
12113 # FIXME: do we really want to maintain this feature?
12114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12115 ac_sed_extra="$ac_vpsub
12116 $extrasub
12117 _ACEOF
12118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12119 :t
12120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12121 s|@configure_input@|$ac_sed_conf_input|;t t
12122 s&@top_builddir@&$ac_top_builddir_sub&;t t
12123 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12124 s&@srcdir@&$ac_srcdir&;t t
12125 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12126 s&@top_srcdir@&$ac_top_srcdir&;t t
12127 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12128 s&@builddir@&$ac_builddir&;t t
12129 s&@abs_builddir@&$ac_abs_builddir&;t t
12130 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12131 s&@INSTALL@&$ac_INSTALL&;t t
12132 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12133 $ac_datarootdir_hack
12134 "
12135 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12136 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12137
12138 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12139 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12140 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12141 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12143 which seems to be undefined. Please make sure it is defined" >&5
12144 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12145 which seems to be undefined. Please make sure it is defined" >&2;}
12146
12147 rm -f "$ac_tmp/stdin"
12148 case $ac_file in
12149 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12150 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12151 esac \
12152 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12153 ;;
12154 :H)
12155 #
12156 # CONFIG_HEADER
12157 #
12158 if test x"$ac_file" != x-; then
12159 {
12160 $as_echo "/* $configure_input */" \
12161 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12162 } >"$ac_tmp/config.h" \
12163 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12164 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12166 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12167 else
12168 rm -f "$ac_file"
12169 mv "$ac_tmp/config.h" "$ac_file" \
12170 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12171 fi
12172 else
12173 $as_echo "/* $configure_input */" \
12174 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12175 || as_fn_error $? "could not create -" "$LINENO" 5
12176 fi
12177 # Compute "$ac_file"'s index in $config_headers.
12178 _am_arg="$ac_file"
12179 _am_stamp_count=1
12180 for _am_header in $config_headers :; do
12181 case $_am_header in
12182 $_am_arg | $_am_arg:* )
12183 break ;;
12184 * )
12185 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12186 esac
12187 done
12188 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12189 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12190 X"$_am_arg" : 'X\(//\)[^/]' \| \
12191 X"$_am_arg" : 'X\(//\)$' \| \
12192 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12193 $as_echo X"$_am_arg" |
12194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12195 s//\1/
12196 q
12197 }
12198 /^X\(\/\/\)[^/].*/{
12199 s//\1/
12200 q
12201 }
12202 /^X\(\/\/\)$/{
12203 s//\1/
12204 q
12205 }
12206 /^X\(\/\).*/{
12207 s//\1/
12208 q
12209 }
12210 s/.*/./; q'`/stamp-h$_am_stamp_count
12211 ;;
12212
12213 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12214 $as_echo "$as_me: executing $ac_file commands" >&6;}
12215 ;;
12216 esac
12217
12218
12219 case $ac_file$ac_mode in
12220 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12221 # Older Autoconf quotes --file arguments for eval, but not when files
12222 # are listed without --file. Let's play safe and only enable the eval
12223 # if we detect the quoting.
12224 case $CONFIG_FILES in
12225 *\'*) eval set x "$CONFIG_FILES" ;;
12226 *) set x $CONFIG_FILES ;;
12227 esac
12228 shift
12229 for mf
12230 do
12231 # Strip MF so we end up with the name of the file.
12232 mf=`echo "$mf" | sed -e 's/:.*$//'`
12233 # Check whether this is an Automake generated Makefile or not.
12234 # We used to match only the files named 'Makefile.in', but
12235 # some people rename them; so instead we look at the file content.
12236 # Grep'ing the first line is not enough: some people post-process
12237 # each Makefile.in and add a new line on top of each file to say so.
12238 # Grep'ing the whole file is not good either: AIX grep has a line
12239 # limit of 2048, but all sed's we know have understand at least 4000.
12240 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12241 dirpart=`$as_dirname -- "$mf" ||
12242 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12243 X"$mf" : 'X\(//\)[^/]' \| \
12244 X"$mf" : 'X\(//\)$' \| \
12245 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12246 $as_echo X"$mf" |
12247 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12248 s//\1/
12249 q
12250 }
12251 /^X\(\/\/\)[^/].*/{
12252 s//\1/
12253 q
12254 }
12255 /^X\(\/\/\)$/{
12256 s//\1/
12257 q
12258 }
12259 /^X\(\/\).*/{
12260 s//\1/
12261 q
12262 }
12263 s/.*/./; q'`
12264 else
12265 continue
12266 fi
12267 # Extract the definition of DEPDIR, am__include, and am__quote
12268 # from the Makefile without running 'make'.
12269 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12270 test -z "$DEPDIR" && continue
12271 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12272 test -z "$am__include" && continue
12273 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12274 # Find all dependency output files, they are included files with
12275 # $(DEPDIR) in their names. We invoke sed twice because it is the
12276 # simplest approach to changing $(DEPDIR) to its actual value in the
12277 # expansion.
12278 for file in `sed -n "
12279 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12280 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12281 # Make sure the directory exists.
12282 test -f "$dirpart/$file" && continue
12283 fdir=`$as_dirname -- "$file" ||
12284 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12285 X"$file" : 'X\(//\)[^/]' \| \
12286 X"$file" : 'X\(//\)$' \| \
12287 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12288 $as_echo X"$file" |
12289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12290 s//\1/
12291 q
12292 }
12293 /^X\(\/\/\)[^/].*/{
12294 s//\1/
12295 q
12296 }
12297 /^X\(\/\/\)$/{
12298 s//\1/
12299 q
12300 }
12301 /^X\(\/\).*/{
12302 s//\1/
12303 q
12304 }
12305 s/.*/./; q'`
12306 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12307 # echo "creating $dirpart/$file"
12308 echo '# dummy' > "$dirpart/$file"
12309 done
12310 done
12311 }
12312 ;;
12313
12314 esac
12315 done # for ac_tag
12316
12317
12318 as_fn_exit 0
12319 _ACEOF
12320 ac_clean_files=$ac_clean_files_save
12321
12322 test $ac_write_fail = 0 ||
12323 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12324
12325
12326 # configure is writing to config.log, and then calls config.status.
12327 # config.status does its own redirection, appending to config.log.
12328 # Unfortunately, on DOS this fails, as config.log is still kept open
12329 # by configure, so config.status won't be able to write to it; its
12330 # output is simply discarded. So we exec the FD to /dev/null,
12331 # effectively closing config.log, so it can be properly (re)opened and
12332 # appended to by config.status. When coming back to configure, we
12333 # need to make the FD available again.
12334 if test "$no_create" != yes; then
12335 ac_cs_success=:
12336 ac_config_status_args=
12337 test "$silent" = yes &&
12338 ac_config_status_args="$ac_config_status_args --quiet"
12339 exec 5>/dev/null
12340 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12341 exec 5>>config.log
12342 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12343 # would make configure fail if this is the last instruction.
12344 $ac_cs_success || as_fn_exit 1
12345 fi
12346 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12348 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12349 fi
12350
12351