configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for makedepend 1.0.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/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/util/makedepend/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='makedepend'
583 PACKAGE_TARNAME='makedepend'
584 PACKAGE_VERSION='1.0.6'
585 PACKAGE_STRING='makedepend 1.0.6'
586 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/util/makedepend/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 X_LIBS
631 X_CFLAGS
632 LINT_FALSE
633 LINT_TRUE
634 LINT_FLAGS
635 LINT
636 MAN_SUBSTS
637 XORG_MAN_PAGE
638 ADMIN_MAN_DIR
639 DRIVER_MAN_DIR
640 MISC_MAN_DIR
641 FILE_MAN_DIR
642 LIB_MAN_DIR
643 APP_MAN_DIR
644 ADMIN_MAN_SUFFIX
645 DRIVER_MAN_SUFFIX
646 MISC_MAN_SUFFIX
647 FILE_MAN_SUFFIX
648 LIB_MAN_SUFFIX
649 APP_MAN_SUFFIX
650 SED
651 host_os
652 host_vendor
653 host_cpu
654 host
655 build_os
656 build_vendor
657 build_cpu
658 build
659 INSTALL_CMD
660 PKG_CONFIG_LIBDIR
661 PKG_CONFIG_PATH
662 PKG_CONFIG
663 CHANGELOG_CMD
664 STRICT_CFLAGS
665 CWARNFLAGS
666 BASE_CFLAGS
667 EGREP
668 GREP
669 CPP
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 am__nodep
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 AM_BACKSLASH
688 AM_DEFAULT_VERBOSITY
689 AM_DEFAULT_V
690 AM_V
691 am__untar
692 am__tar
693 AMTAR
694 am__leading_dot
695 SET_MAKE
696 AWK
697 mkdir_p
698 MKDIR_P
699 INSTALL_STRIP_PROGRAM
700 STRIP
701 install_sh
702 MAKEINFO
703 AUTOHEADER
704 AUTOMAKE
705 AUTOCONF
706 ACLOCAL
707 VERSION
708 PACKAGE
709 CYGPATH_W
710 am__isrc
711 INSTALL_DATA
712 INSTALL_SCRIPT
713 INSTALL_PROGRAM
714 target_alias
715 host_alias
716 build_alias
717 LIBS
718 ECHO_T
719 ECHO_N
720 ECHO_C
721 DEFS
722 mandir
723 localedir
724 libdir
725 psdir
726 pdfdir
727 dvidir
728 htmldir
729 infodir
730 docdir
731 oldincludedir
732 includedir
733 localstatedir
734 sharedstatedir
735 sysconfdir
736 datadir
737 datarootdir
738 libexecdir
739 sbindir
740 bindir
741 program_transform_name
742 prefix
743 exec_prefix
744 PACKAGE_URL
745 PACKAGE_BUGREPORT
746 PACKAGE_STRING
747 PACKAGE_VERSION
748 PACKAGE_TARNAME
749 PACKAGE_NAME
750 PATH_SEPARATOR
751 SHELL'
752 ac_subst_files=''
753 ac_user_opts='
754 enable_option_checking
755 enable_silent_rules
756 enable_dependency_tracking
757 enable_selective_werror
758 enable_strict_compilation
759 with_lint
760 enable_largefile
761 '
762 ac_precious_vars='build_alias
763 host_alias
764 target_alias
765 CC
766 CFLAGS
767 LDFLAGS
768 LIBS
769 CPPFLAGS
770 CPP
771 PKG_CONFIG
772 PKG_CONFIG_PATH
773 PKG_CONFIG_LIBDIR
774 LINT
775 LINT_FLAGS
776 X_CFLAGS
777 X_LIBS'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\$ac_option
835 ac_prev=
836 continue
837 fi
838
839 case $ac_option in
840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
843 esac
844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
871 -datadir | --datadir | --datadi | --datad)
872 ac_prev=datadir ;;
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir=$ac_optarg ;;
875
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
883 -disable-* | --disable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error $? "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
908
909 -enable-* | --enable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: $ac_useropt"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error $? "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
1128
1129 -without-* | --without-*)
1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133 as_fn_error $? "invalid package name: $ac_useropt"
1134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
1144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
1163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 esac
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183 ;;
1184
1185 esac
1186 done
1187
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $? "missing argument to $ac_option"
1191 fi
1192
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1206 do
1207 eval ac_val=\$$ac_var
1208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
1215 case $ac_val in
1216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218 esac
1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 as_fn_error $? "working directory cannot be determined"
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 as_fn_error $? "pwd does not report name of working directory"
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
1255 # Try the directory containing this script, then the parent directory.
1256 ac_confdir=`$as_dirname -- "$as_myself" ||
1257 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261 $as_echo X"$as_myself" |
1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
1279 srcdir=$ac_confdir
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 srcdir=..
1282 fi
1283 else
1284 ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293 pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
1318 \`configure' configures makedepend 1.0.6 to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking ...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/makedepend]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1371 _ACEOF
1372
1373 cat <<\_ACEOF
1374
1375 Program names:
1376 --program-prefix=PREFIX prepend PREFIX to installed program names
1377 --program-suffix=SUFFIX append SUFFIX to installed program names
1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379
1380 System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of makedepend 1.0.6:";;
1389 esac
1390 cat <<\_ACEOF
1391
1392 Optional Features:
1393 --disable-option-checking ignore unrecognized --enable/--with options
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-silent-rules less verbose build output (undo: "make V=1")
1397 --disable-silent-rules verbose build output (undo: "make V=0")
1398 --enable-dependency-tracking
1399 do not reject slow dependency extractors
1400 --disable-dependency-tracking
1401 speeds up one-time build
1402 --disable-selective-werror
1403 Turn off selective compiler errors. (default:
1404 enabled)
1405 --enable-strict-compilation
1406 Enable all warnings from compiler and make them
1407 errors (default: disabled)
1408 --disable-largefile omit support for large files
1409
1410 Optional Packages:
1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1413 --with-lint Use a lint-style source code checker (default:
1414 disabled)
1415
1416 Some influential environment variables:
1417 CC C compiler command
1418 CFLAGS C compiler flags
1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1420 nonstandard directory <lib dir>
1421 LIBS libraries to pass to the linker, e.g. -l<library>
1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423 you have headers in a nonstandard directory <include dir>
1424 CPP C preprocessor
1425 PKG_CONFIG path to pkg-config utility
1426 PKG_CONFIG_PATH
1427 directories to add to pkg-config's search path
1428 PKG_CONFIG_LIBDIR
1429 path overriding pkg-config's built-in search path
1430 LINT Path to a lint-style command
1431 LINT_FLAGS Flags for the lint-style command
1432 X_CFLAGS C compiler flags for X, overriding pkg-config
1433 X_LIBS linker flags for X, overriding pkg-config
1434
1435 Use these variables to override the choices made by `configure' or to help
1436 it to find libraries and programs with nonstandard names/locations.
1437
1438 Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/issues>.
1439 _ACEOF
1440 ac_status=$?
1441 fi
1442
1443 if test "$ac_init_help" = "recursive"; then
1444 # If there are subdirs, report their specific --help.
1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1446 test -d "$ac_dir" ||
1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448 continue
1449 ac_builddir=.
1450
1451 case "$ac_dir" in
1452 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1453 *)
1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1455 # A ".." for each directory in $ac_dir_suffix.
1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1457 case $ac_top_builddir_sub in
1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460 esac ;;
1461 esac
1462 ac_abs_top_builddir=$ac_pwd
1463 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1464 # for backward compatibility:
1465 ac_top_builddir=$ac_top_build_prefix
1466
1467 case $srcdir in
1468 .) # We are building in place.
1469 ac_srcdir=.
1470 ac_top_srcdir=$ac_top_builddir_sub
1471 ac_abs_top_srcdir=$ac_pwd ;;
1472 [\\/]* | ?:[\\/]* ) # Absolute name.
1473 ac_srcdir=$srcdir$ac_dir_suffix;
1474 ac_top_srcdir=$srcdir
1475 ac_abs_top_srcdir=$srcdir ;;
1476 *) # Relative name.
1477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1478 ac_top_srcdir=$ac_top_build_prefix$srcdir
1479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1480 esac
1481 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1482
1483 cd "$ac_dir" || { ac_status=$?; continue; }
1484 # Check for guested configure.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure" --help=recursive
1491 else
1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 fi || ac_status=$?
1494 cd "$ac_pwd" || { ac_status=$?; break; }
1495 done
1496 fi
1497
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1500 cat <<\_ACEOF
1501 makedepend configure 1.0.6
1502 generated by GNU Autoconf 2.69
1503
1504 Copyright (C) 2012 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1507 _ACEOF
1508 exit
1509 fi
1510
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1514
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1519 {
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext
1522 if { { ac_try="$ac_compile"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1535 fi
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext; then :
1541 ac_retval=0
1542 else
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.$ac_ext >&5
1545
1546 ac_retval=1
1547 fi
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 as_fn_set_status $ac_retval
1550
1551 } # ac_fn_c_try_compile
1552
1553 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1554 # ---------------------------------------------
1555 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1556 # accordingly.
1557 ac_fn_c_check_decl ()
1558 {
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 as_decl_name=`echo $2|sed 's/ *(.*//'`
1561 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1563 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1564 if eval \${$3+:} false; then :
1565 $as_echo_n "(cached) " >&6
1566 else
1567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1568 /* end confdefs.h. */
1569 $4
1570 int
1571 main ()
1572 {
1573 #ifndef $as_decl_name
1574 #ifdef __cplusplus
1575 (void) $as_decl_use;
1576 #else
1577 (void) $as_decl_name;
1578 #endif
1579 #endif
1580
1581 ;
1582 return 0;
1583 }
1584 _ACEOF
1585 if ac_fn_c_try_compile "$LINENO"; then :
1586 eval "$3=yes"
1587 else
1588 eval "$3=no"
1589 fi
1590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1591 fi
1592 eval ac_res=\$$3
1593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1594 $as_echo "$ac_res" >&6; }
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596
1597 } # ac_fn_c_check_decl
1598
1599 # ac_fn_c_try_cpp LINENO
1600 # ----------------------
1601 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_cpp ()
1603 {
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if { { ac_try="$ac_cpp conftest.$ac_ext"
1606 case "(($ac_try" in
1607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1608 *) ac_try_echo=$ac_try;;
1609 esac
1610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1611 $as_echo "$ac_try_echo"; } >&5
1612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1613 ac_status=$?
1614 if test -s conftest.err; then
1615 grep -v '^ *+' conftest.err >conftest.er1
1616 cat conftest.er1 >&5
1617 mv -f conftest.er1 conftest.err
1618 fi
1619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620 test $ac_status = 0; } > conftest.i && {
1621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1622 test ! -s conftest.err
1623 }; then :
1624 ac_retval=0
1625 else
1626 $as_echo "$as_me: failed program was:" >&5
1627 sed 's/^/| /' conftest.$ac_ext >&5
1628
1629 ac_retval=1
1630 fi
1631 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1632 as_fn_set_status $ac_retval
1633
1634 } # ac_fn_c_try_cpp
1635
1636 # ac_fn_c_try_run LINENO
1637 # ----------------------
1638 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1639 # that executables *can* be run.
1640 ac_fn_c_try_run ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if { { ac_try="$ac_link"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_link") 2>&5
1651 ac_status=$?
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1654 { { case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_try") 2>&5
1661 ac_status=$?
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; }; }; then :
1664 ac_retval=0
1665 else
1666 $as_echo "$as_me: program exited with status $ac_status" >&5
1667 $as_echo "$as_me: failed program was:" >&5
1668 sed 's/^/| /' conftest.$ac_ext >&5
1669
1670 ac_retval=$ac_status
1671 fi
1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1675
1676 } # ac_fn_c_try_run
1677
1678 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1679 # -------------------------------------------------------
1680 # Tests whether HEADER exists and can be compiled using the include files in
1681 # INCLUDES, setting the cache variable VAR accordingly.
1682 ac_fn_c_check_header_compile ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686 $as_echo_n "checking for $2... " >&6; }
1687 if eval \${$3+:} false; then :
1688 $as_echo_n "(cached) " >&6
1689 else
1690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691 /* end confdefs.h. */
1692 $4
1693 #include <$2>
1694 _ACEOF
1695 if ac_fn_c_try_compile "$LINENO"; then :
1696 eval "$3=yes"
1697 else
1698 eval "$3=no"
1699 fi
1700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701 fi
1702 eval ac_res=\$$3
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704 $as_echo "$ac_res" >&6; }
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707 } # ac_fn_c_check_header_compile
1708
1709 # ac_fn_c_try_link LINENO
1710 # -----------------------
1711 # Try to link conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_link ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext conftest$ac_exeext
1716 if { { ac_try="$ac_link"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest$ac_exeext && {
1735 test "$cross_compiling" = yes ||
1736 test -x conftest$ac_exeext
1737 }; then :
1738 ac_retval=0
1739 else
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=1
1744 fi
1745 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1746 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1747 # interfere with the next link command; also delete a directory that is
1748 # left behind by Apple's compiler. We do this before executing the actions.
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1752
1753 } # ac_fn_c_try_link
1754
1755 # ac_fn_c_check_func LINENO FUNC VAR
1756 # ----------------------------------
1757 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1758 ac_fn_c_check_func ()
1759 {
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1770 #define $2 innocuous_$2
1771
1772 /* System header to define __stub macros and hopefully few prototypes,
1773 which can conflict with char $2 (); below.
1774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1775 <limits.h> exists even on freestanding compilers. */
1776
1777 #ifdef __STDC__
1778 # include <limits.h>
1779 #else
1780 # include <assert.h>
1781 #endif
1782
1783 #undef $2
1784
1785 /* Override any GCC internal prototype to avoid an error.
1786 Use char because int might match the return type of a GCC
1787 builtin and then its argument prototype would still apply. */
1788 #ifdef __cplusplus
1789 extern "C"
1790 #endif
1791 char $2 ();
1792 /* The GNU C library defines this for functions which it implements
1793 to always fail with ENOSYS. Some functions are actually named
1794 something starting with __ and the normal name is an alias. */
1795 #if defined __stub_$2 || defined __stub___$2
1796 choke me
1797 #endif
1798
1799 int
1800 main ()
1801 {
1802 return $2 ();
1803 ;
1804 return 0;
1805 }
1806 _ACEOF
1807 if ac_fn_c_try_link "$LINENO"; then :
1808 eval "$3=yes"
1809 else
1810 eval "$3=no"
1811 fi
1812 rm -f core conftest.err conftest.$ac_objext \
1813 conftest$ac_exeext conftest.$ac_ext
1814 fi
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
1820 } # ac_fn_c_check_func
1821 cat >config.log <<_ACEOF
1822 This file contains any messages produced by compilers while
1823 running configure, to aid debugging if configure makes a mistake.
1824
1825 It was created by makedepend $as_me 1.0.6, which was
1826 generated by GNU Autoconf 2.69. Invocation command line was
1827
1828 $ $0 $@
1829
1830 _ACEOF
1831 exec 5>>config.log
1832 {
1833 cat <<_ASUNAME
1834 ## --------- ##
1835 ## Platform. ##
1836 ## --------- ##
1837
1838 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1839 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1840 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1841 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1842 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1843
1844 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1845 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1846
1847 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1848 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1849 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1850 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1851 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1852 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1853 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1854
1855 _ASUNAME
1856
1857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1858 for as_dir in $PATH
1859 do
1860 IFS=$as_save_IFS
1861 test -z "$as_dir" && as_dir=.
1862 $as_echo "PATH: $as_dir"
1863 done
1864 IFS=$as_save_IFS
1865
1866 } >&5
1867
1868 cat >&5 <<_ACEOF
1869
1870
1871 ## ----------- ##
1872 ## Core tests. ##
1873 ## ----------- ##
1874
1875 _ACEOF
1876
1877
1878 # Keep a trace of the command line.
1879 # Strip out --no-create and --no-recursion so they do not pile up.
1880 # Strip out --silent because we don't want to record it for future runs.
1881 # Also quote any args containing shell meta-characters.
1882 # Make two passes to allow for proper duplicate-argument suppression.
1883 ac_configure_args=
1884 ac_configure_args0=
1885 ac_configure_args1=
1886 ac_must_keep_next=false
1887 for ac_pass in 1 2
1888 do
1889 for ac_arg
1890 do
1891 case $ac_arg in
1892 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1893 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1894 | -silent | --silent | --silen | --sile | --sil)
1895 continue ;;
1896 *\'*)
1897 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898 esac
1899 case $ac_pass in
1900 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1901 2)
1902 as_fn_append ac_configure_args1 " '$ac_arg'"
1903 if test $ac_must_keep_next = true; then
1904 ac_must_keep_next=false # Got value, back to normal.
1905 else
1906 case $ac_arg in
1907 *=* | --config-cache | -C | -disable-* | --disable-* \
1908 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1909 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1910 | -with-* | --with-* | -without-* | --without-* | --x)
1911 case "$ac_configure_args0 " in
1912 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1913 esac
1914 ;;
1915 -* ) ac_must_keep_next=true ;;
1916 esac
1917 fi
1918 as_fn_append ac_configure_args " '$ac_arg'"
1919 ;;
1920 esac
1921 done
1922 done
1923 { ac_configure_args0=; unset ac_configure_args0;}
1924 { ac_configure_args1=; unset ac_configure_args1;}
1925
1926 # When interrupted or exit'd, cleanup temporary files, and complete
1927 # config.log. We remove comments because anyway the quotes in there
1928 # would cause problems or look ugly.
1929 # WARNING: Use '\'' to represent an apostrophe within the trap.
1930 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1931 trap 'exit_status=$?
1932 # Save into config.log some information that might help in debugging.
1933 {
1934 echo
1935
1936 $as_echo "## ---------------- ##
1937 ## Cache variables. ##
1938 ## ---------------- ##"
1939 echo
1940 # The following way of writing the cache mishandles newlines in values,
1941 (
1942 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1943 eval ac_val=\$$ac_var
1944 case $ac_val in #(
1945 *${as_nl}*)
1946 case $ac_var in #(
1947 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1948 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1949 esac
1950 case $ac_var in #(
1951 _ | IFS | as_nl) ;; #(
1952 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1953 *) { eval $ac_var=; unset $ac_var;} ;;
1954 esac ;;
1955 esac
1956 done
1957 (set) 2>&1 |
1958 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1959 *${as_nl}ac_space=\ *)
1960 sed -n \
1961 "s/'\''/'\''\\\\'\'''\''/g;
1962 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1963 ;; #(
1964 *)
1965 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1966 ;;
1967 esac |
1968 sort
1969 )
1970 echo
1971
1972 $as_echo "## ----------------- ##
1973 ## Output variables. ##
1974 ## ----------------- ##"
1975 echo
1976 for ac_var in $ac_subst_vars
1977 do
1978 eval ac_val=\$$ac_var
1979 case $ac_val in
1980 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1981 esac
1982 $as_echo "$ac_var='\''$ac_val'\''"
1983 done | sort
1984 echo
1985
1986 if test -n "$ac_subst_files"; then
1987 $as_echo "## ------------------- ##
1988 ## File substitutions. ##
1989 ## ------------------- ##"
1990 echo
1991 for ac_var in $ac_subst_files
1992 do
1993 eval ac_val=\$$ac_var
1994 case $ac_val in
1995 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1996 esac
1997 $as_echo "$ac_var='\''$ac_val'\''"
1998 done | sort
1999 echo
2000 fi
2001
2002 if test -s confdefs.h; then
2003 $as_echo "## ----------- ##
2004 ## confdefs.h. ##
2005 ## ----------- ##"
2006 echo
2007 cat confdefs.h
2008 echo
2009 fi
2010 test "$ac_signal" != 0 &&
2011 $as_echo "$as_me: caught signal $ac_signal"
2012 $as_echo "$as_me: exit $exit_status"
2013 } >&5
2014 rm -f core *.core core.conftest.* &&
2015 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2016 exit $exit_status
2017 ' 0
2018 for ac_signal in 1 2 13 15; do
2019 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2020 done
2021 ac_signal=0
2022
2023 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2024 rm -f -r conftest* confdefs.h
2025
2026 $as_echo "/* confdefs.h */" > confdefs.h
2027
2028 # Predefined preprocessor variables.
2029
2030 cat >>confdefs.h <<_ACEOF
2031 #define PACKAGE_NAME "$PACKAGE_NAME"
2032 _ACEOF
2033
2034 cat >>confdefs.h <<_ACEOF
2035 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2036 _ACEOF
2037
2038 cat >>confdefs.h <<_ACEOF
2039 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2040 _ACEOF
2041
2042 cat >>confdefs.h <<_ACEOF
2043 #define PACKAGE_STRING "$PACKAGE_STRING"
2044 _ACEOF
2045
2046 cat >>confdefs.h <<_ACEOF
2047 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2048 _ACEOF
2049
2050 cat >>confdefs.h <<_ACEOF
2051 #define PACKAGE_URL "$PACKAGE_URL"
2052 _ACEOF
2053
2054
2055 # Let the site file select an alternate cache file if it wants to.
2056 # Prefer an explicitly selected file to automatically selected ones.
2057 ac_site_file1=NONE
2058 ac_site_file2=NONE
2059 if test -n "$CONFIG_SITE"; then
2060 # We do not want a PATH search for config.site.
2061 case $CONFIG_SITE in #((
2062 -*) ac_site_file1=./$CONFIG_SITE;;
2063 */*) ac_site_file1=$CONFIG_SITE;;
2064 *) ac_site_file1=./$CONFIG_SITE;;
2065 esac
2066 elif test "x$prefix" != xNONE; then
2067 ac_site_file1=$prefix/share/config.site
2068 ac_site_file2=$prefix/etc/config.site
2069 else
2070 ac_site_file1=$ac_default_prefix/share/config.site
2071 ac_site_file2=$ac_default_prefix/etc/config.site
2072 fi
2073 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2074 do
2075 test "x$ac_site_file" = xNONE && continue
2076 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2078 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2079 sed 's/^/| /' "$ac_site_file" >&5
2080 . "$ac_site_file" \
2081 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2083 as_fn_error $? "failed to load site script $ac_site_file
2084 See \`config.log' for more details" "$LINENO" 5; }
2085 fi
2086 done
2087
2088 if test -r "$cache_file"; then
2089 # Some versions of bash will fail to source /dev/null (special files
2090 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2091 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2093 $as_echo "$as_me: loading cache $cache_file" >&6;}
2094 case $cache_file in
2095 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2096 *) . "./$cache_file";;
2097 esac
2098 fi
2099 else
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2101 $as_echo "$as_me: creating cache $cache_file" >&6;}
2102 >$cache_file
2103 fi
2104
2105 # Check that the precious variables saved in the cache have kept the same
2106 # value.
2107 ac_cache_corrupted=false
2108 for ac_var in $ac_precious_vars; do
2109 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2110 eval ac_new_set=\$ac_env_${ac_var}_set
2111 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2112 eval ac_new_val=\$ac_env_${ac_var}_value
2113 case $ac_old_set,$ac_new_set in
2114 set,)
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2116 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2117 ac_cache_corrupted=: ;;
2118 ,set)
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2120 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2121 ac_cache_corrupted=: ;;
2122 ,);;
2123 *)
2124 if test "x$ac_old_val" != "x$ac_new_val"; then
2125 # differences in whitespace do not lead to failure.
2126 ac_old_val_w=`echo x $ac_old_val`
2127 ac_new_val_w=`echo x $ac_new_val`
2128 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2130 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2131 ac_cache_corrupted=:
2132 else
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2134 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2135 eval $ac_var=\$ac_old_val
2136 fi
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2138 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2140 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2141 fi;;
2142 esac
2143 # Pass precious variables to config.status.
2144 if test "$ac_new_set" = set; then
2145 case $ac_new_val in
2146 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2147 *) ac_arg=$ac_var=$ac_new_val ;;
2148 esac
2149 case " $ac_configure_args " in
2150 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2151 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2152 esac
2153 fi
2154 done
2155 if $ac_cache_corrupted; then
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2159 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2160 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2161 fi
2162 ## -------------------- ##
2163 ## Main body of script. ##
2164 ## -------------------- ##
2165
2166 ac_ext=c
2167 ac_cpp='$CPP $CPPFLAGS'
2168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2171
2172
2173
2174 ac_config_headers="$ac_config_headers makedepend-config.h"
2175
2176
2177 # Initialize Automake
2178 am__api_version='1.15'
2179
2180 ac_aux_dir=
2181 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2182 if test -f "$ac_dir/install-sh"; then
2183 ac_aux_dir=$ac_dir
2184 ac_install_sh="$ac_aux_dir/install-sh -c"
2185 break
2186 elif test -f "$ac_dir/install.sh"; then
2187 ac_aux_dir=$ac_dir
2188 ac_install_sh="$ac_aux_dir/install.sh -c"
2189 break
2190 elif test -f "$ac_dir/shtool"; then
2191 ac_aux_dir=$ac_dir
2192 ac_install_sh="$ac_aux_dir/shtool install -c"
2193 break
2194 fi
2195 done
2196 if test -z "$ac_aux_dir"; then
2197 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2198 fi
2199
2200 # These three variables are undocumented and unsupported,
2201 # and are intended to be withdrawn in a future Autoconf release.
2202 # They can cause serious problems if a builder's source tree is in a directory
2203 # whose full name contains unusual characters.
2204 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2205 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2206 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2207
2208
2209 # Find a good install program. We prefer a C program (faster),
2210 # so one script is as good as another. But avoid the broken or
2211 # incompatible versions:
2212 # SysV /etc/install, /usr/sbin/install
2213 # SunOS /usr/etc/install
2214 # IRIX /sbin/install
2215 # AIX /bin/install
2216 # AmigaOS /C/install, which installs bootblocks on floppy discs
2217 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2218 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2219 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2220 # OS/2's system install, which has a completely different semantic
2221 # ./install, which can be erroneously created by make from ./install.sh.
2222 # Reject install programs that cannot install multiple files.
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2224 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2225 if test -z "$INSTALL"; then
2226 if ${ac_cv_path_install+:} false; then :
2227 $as_echo_n "(cached) " >&6
2228 else
2229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230 for as_dir in $PATH
2231 do
2232 IFS=$as_save_IFS
2233 test -z "$as_dir" && as_dir=.
2234 # Account for people who put trailing slashes in PATH elements.
2235 case $as_dir/ in #((
2236 ./ | .// | /[cC]/* | \
2237 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2238 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2239 /usr/ucb/* ) ;;
2240 *)
2241 # OSF1 and SCO ODT 3.0 have their own names for install.
2242 # Don't use installbsd from OSF since it installs stuff as root
2243 # by default.
2244 for ac_prog in ginstall scoinst install; do
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2247 if test $ac_prog = install &&
2248 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2249 # AIX install. It has an incompatible calling convention.
2250 :
2251 elif test $ac_prog = install &&
2252 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2253 # program-specific install script used by HP pwplus--don't use.
2254 :
2255 else
2256 rm -rf conftest.one conftest.two conftest.dir
2257 echo one > conftest.one
2258 echo two > conftest.two
2259 mkdir conftest.dir
2260 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2261 test -s conftest.one && test -s conftest.two &&
2262 test -s conftest.dir/conftest.one &&
2263 test -s conftest.dir/conftest.two
2264 then
2265 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2266 break 3
2267 fi
2268 fi
2269 fi
2270 done
2271 done
2272 ;;
2273 esac
2274
2275 done
2276 IFS=$as_save_IFS
2277
2278 rm -rf conftest.one conftest.two conftest.dir
2279
2280 fi
2281 if test "${ac_cv_path_install+set}" = set; then
2282 INSTALL=$ac_cv_path_install
2283 else
2284 # As a last resort, use the slow shell script. Don't cache a
2285 # value for INSTALL within a source directory, because that will
2286 # break other packages using the cache if that directory is
2287 # removed, or if the value is a relative name.
2288 INSTALL=$ac_install_sh
2289 fi
2290 fi
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2292 $as_echo "$INSTALL" >&6; }
2293
2294 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2295 # It thinks the first close brace ends the variable substitution.
2296 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2297
2298 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2299
2300 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2301
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2303 $as_echo_n "checking whether build environment is sane... " >&6; }
2304 # Reject unsafe characters in $srcdir or the absolute working directory
2305 # name. Accept space and tab only in the latter.
2306 am_lf='
2307 '
2308 case `pwd` in
2309 *[\\\"\#\$\&\'\`$am_lf]*)
2310 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2311 esac
2312 case $srcdir in
2313 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2314 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2315 esac
2316
2317 # Do 'set' in a subshell so we don't clobber the current shell's
2318 # arguments. Must try -L first in case configure is actually a
2319 # symlink; some systems play weird games with the mod time of symlinks
2320 # (eg FreeBSD returns the mod time of the symlink's containing
2321 # directory).
2322 if (
2323 am_has_slept=no
2324 for am_try in 1 2; do
2325 echo "timestamp, slept: $am_has_slept" > conftest.file
2326 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2327 if test "$*" = "X"; then
2328 # -L didn't work.
2329 set X `ls -t "$srcdir/configure" conftest.file`
2330 fi
2331 if test "$*" != "X $srcdir/configure conftest.file" \
2332 && test "$*" != "X conftest.file $srcdir/configure"; then
2333
2334 # If neither matched, then we have a broken ls. This can happen
2335 # if, for instance, CONFIG_SHELL is bash and it inherits a
2336 # broken ls alias from the environment. This has actually
2337 # happened. Such a system could not be considered "sane".
2338 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2339 alias in your environment" "$LINENO" 5
2340 fi
2341 if test "$2" = conftest.file || test $am_try -eq 2; then
2342 break
2343 fi
2344 # Just in case.
2345 sleep 1
2346 am_has_slept=yes
2347 done
2348 test "$2" = conftest.file
2349 )
2350 then
2351 # Ok.
2352 :
2353 else
2354 as_fn_error $? "newly created file is older than distributed files!
2355 Check your system clock" "$LINENO" 5
2356 fi
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2358 $as_echo "yes" >&6; }
2359 # If we didn't sleep, we still need to ensure time stamps of config.status and
2360 # generated files are strictly newer.
2361 am_sleep_pid=
2362 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2363 ( sleep 1 ) &
2364 am_sleep_pid=$!
2365 fi
2366
2367 rm -f conftest.file
2368
2369 test "$program_prefix" != NONE &&
2370 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2371 # Use a double $ so make ignores it.
2372 test "$program_suffix" != NONE &&
2373 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2374 # Double any \ or $.
2375 # By default was `s,x,x', remove it if useless.
2376 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2377 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2378
2379 # Expand $ac_aux_dir to an absolute path.
2380 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2381
2382 if test x"${MISSING+set}" != xset; then
2383 case $am_aux_dir in
2384 *\ * | *\ *)
2385 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2386 *)
2387 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2388 esac
2389 fi
2390 # Use eval to expand $SHELL
2391 if eval "$MISSING --is-lightweight"; then
2392 am_missing_run="$MISSING "
2393 else
2394 am_missing_run=
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2396 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2397 fi
2398
2399 if test x"${install_sh+set}" != xset; then
2400 case $am_aux_dir in
2401 *\ * | *\ *)
2402 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2403 *)
2404 install_sh="\${SHELL} $am_aux_dir/install-sh"
2405 esac
2406 fi
2407
2408 # Installed binaries are usually stripped using 'strip' when the user
2409 # run "make install-strip". However 'strip' might not be the right
2410 # tool to use in cross-compilation environments, therefore Automake
2411 # will honor the 'STRIP' environment variable to overrule this program.
2412 if test "$cross_compiling" != no; then
2413 if test -n "$ac_tool_prefix"; then
2414 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2415 set dummy ${ac_tool_prefix}strip; ac_word=$2
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2417 $as_echo_n "checking for $ac_word... " >&6; }
2418 if ${ac_cv_prog_STRIP+:} false; then :
2419 $as_echo_n "(cached) " >&6
2420 else
2421 if test -n "$STRIP"; then
2422 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2423 else
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 for as_dir in $PATH
2426 do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 break 2
2434 fi
2435 done
2436 done
2437 IFS=$as_save_IFS
2438
2439 fi
2440 fi
2441 STRIP=$ac_cv_prog_STRIP
2442 if test -n "$STRIP"; then
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2444 $as_echo "$STRIP" >&6; }
2445 else
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2447 $as_echo "no" >&6; }
2448 fi
2449
2450
2451 fi
2452 if test -z "$ac_cv_prog_STRIP"; then
2453 ac_ct_STRIP=$STRIP
2454 # Extract the first word of "strip", so it can be a program name with args.
2455 set dummy strip; ac_word=$2
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2457 $as_echo_n "checking for $ac_word... " >&6; }
2458 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2459 $as_echo_n "(cached) " >&6
2460 else
2461 if test -n "$ac_ct_STRIP"; then
2462 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2463 else
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 for as_dir in $PATH
2466 do
2467 IFS=$as_save_IFS
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2471 ac_cv_prog_ac_ct_STRIP="strip"
2472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2473 break 2
2474 fi
2475 done
2476 done
2477 IFS=$as_save_IFS
2478
2479 fi
2480 fi
2481 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2482 if test -n "$ac_ct_STRIP"; then
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2484 $as_echo "$ac_ct_STRIP" >&6; }
2485 else
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2487 $as_echo "no" >&6; }
2488 fi
2489
2490 if test "x$ac_ct_STRIP" = x; then
2491 STRIP=":"
2492 else
2493 case $cross_compiling:$ac_tool_warned in
2494 yes:)
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2497 ac_tool_warned=yes ;;
2498 esac
2499 STRIP=$ac_ct_STRIP
2500 fi
2501 else
2502 STRIP="$ac_cv_prog_STRIP"
2503 fi
2504
2505 fi
2506 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2507
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2509 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2510 if test -z "$MKDIR_P"; then
2511 if ${ac_cv_path_mkdir+:} false; then :
2512 $as_echo_n "(cached) " >&6
2513 else
2514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2515 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2516 do
2517 IFS=$as_save_IFS
2518 test -z "$as_dir" && as_dir=.
2519 for ac_prog in mkdir gmkdir; do
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2522 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2523 'mkdir (GNU coreutils) '* | \
2524 'mkdir (coreutils) '* | \
2525 'mkdir (fileutils) '4.1*)
2526 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2527 break 3;;
2528 esac
2529 done
2530 done
2531 done
2532 IFS=$as_save_IFS
2533
2534 fi
2535
2536 test -d ./--version && rmdir ./--version
2537 if test "${ac_cv_path_mkdir+set}" = set; then
2538 MKDIR_P="$ac_cv_path_mkdir -p"
2539 else
2540 # As a last resort, use the slow shell script. Don't cache a
2541 # value for MKDIR_P within a source directory, because that will
2542 # break other packages using the cache if that directory is
2543 # removed, or if the value is a relative name.
2544 MKDIR_P="$ac_install_sh -d"
2545 fi
2546 fi
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2548 $as_echo "$MKDIR_P" >&6; }
2549
2550 for ac_prog in gawk mawk nawk awk
2551 do
2552 # Extract the first word of "$ac_prog", so it can be a program name with args.
2553 set dummy $ac_prog; ac_word=$2
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2555 $as_echo_n "checking for $ac_word... " >&6; }
2556 if ${ac_cv_prog_AWK+:} false; then :
2557 $as_echo_n "(cached) " >&6
2558 else
2559 if test -n "$AWK"; then
2560 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2561 else
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2563 for as_dir in $PATH
2564 do
2565 IFS=$as_save_IFS
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2569 ac_cv_prog_AWK="$ac_prog"
2570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2571 break 2
2572 fi
2573 done
2574 done
2575 IFS=$as_save_IFS
2576
2577 fi
2578 fi
2579 AWK=$ac_cv_prog_AWK
2580 if test -n "$AWK"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2582 $as_echo "$AWK" >&6; }
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2585 $as_echo "no" >&6; }
2586 fi
2587
2588
2589 test -n "$AWK" && break
2590 done
2591
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2593 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2594 set x ${MAKE-make}
2595 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2596 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 cat >conftest.make <<\_ACEOF
2600 SHELL = /bin/sh
2601 all:
2602 @echo '@@@%%%=$(MAKE)=@@@%%%'
2603 _ACEOF
2604 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2605 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2606 *@@@%%%=?*=@@@%%%*)
2607 eval ac_cv_prog_make_${ac_make}_set=yes;;
2608 *)
2609 eval ac_cv_prog_make_${ac_make}_set=no;;
2610 esac
2611 rm -f conftest.make
2612 fi
2613 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615 $as_echo "yes" >&6; }
2616 SET_MAKE=
2617 else
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2619 $as_echo "no" >&6; }
2620 SET_MAKE="MAKE=${MAKE-make}"
2621 fi
2622
2623 rm -rf .tst 2>/dev/null
2624 mkdir .tst 2>/dev/null
2625 if test -d .tst; then
2626 am__leading_dot=.
2627 else
2628 am__leading_dot=_
2629 fi
2630 rmdir .tst 2>/dev/null
2631
2632 # Check whether --enable-silent-rules was given.
2633 if test "${enable_silent_rules+set}" = set; then :
2634 enableval=$enable_silent_rules;
2635 fi
2636
2637 case $enable_silent_rules in # (((
2638 yes) AM_DEFAULT_VERBOSITY=0;;
2639 no) AM_DEFAULT_VERBOSITY=1;;
2640 *) AM_DEFAULT_VERBOSITY=1;;
2641 esac
2642 am_make=${MAKE-make}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2644 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2645 if ${am_cv_make_support_nested_variables+:} false; then :
2646 $as_echo_n "(cached) " >&6
2647 else
2648 if $as_echo 'TRUE=$(BAR$(V))
2649 BAR0=false
2650 BAR1=true
2651 V=1
2652 am__doit:
2653 @$(TRUE)
2654 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2655 am_cv_make_support_nested_variables=yes
2656 else
2657 am_cv_make_support_nested_variables=no
2658 fi
2659 fi
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2661 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2662 if test $am_cv_make_support_nested_variables = yes; then
2663 AM_V='$(V)'
2664 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2665 else
2666 AM_V=$AM_DEFAULT_VERBOSITY
2667 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2668 fi
2669 AM_BACKSLASH='\'
2670
2671 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2672 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2673 # is not polluted with repeated "-I."
2674 am__isrc=' -I$(srcdir)'
2675 # test to see if srcdir already configured
2676 if test -f $srcdir/config.status; then
2677 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2678 fi
2679 fi
2680
2681 # test whether we have cygpath
2682 if test -z "$CYGPATH_W"; then
2683 if (cygpath --version) >/dev/null 2>/dev/null; then
2684 CYGPATH_W='cygpath -w'
2685 else
2686 CYGPATH_W=echo
2687 fi
2688 fi
2689
2690
2691 # Define the identity of the package.
2692 PACKAGE='makedepend'
2693 VERSION='1.0.6'
2694
2695
2696 cat >>confdefs.h <<_ACEOF
2697 #define PACKAGE "$PACKAGE"
2698 _ACEOF
2699
2700
2701 cat >>confdefs.h <<_ACEOF
2702 #define VERSION "$VERSION"
2703 _ACEOF
2704
2705 # Some tools Automake needs.
2706
2707 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2708
2709
2710 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2711
2712
2713 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2714
2715
2716 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2717
2718
2719 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2720
2721 # For better backward compatibility. To be removed once Automake 1.9.x
2722 # dies out for good. For more background, see:
2723 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2724 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2725 mkdir_p='$(MKDIR_P)'
2726
2727 # We need awk for the "check" target (and possibly the TAP driver). The
2728 # system "awk" is bad on some platforms.
2729 # Always define AMTAR for backward compatibility. Yes, it's still used
2730 # in the wild :-( We should find a proper way to deprecate it ...
2731 AMTAR='$${TAR-tar}'
2732
2733
2734 # We'll loop over all known methods to create a tar archive until one works.
2735 _am_tools='gnutar pax cpio none'
2736
2737 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2738
2739
2740
2741
2742
2743
2744 # POSIX will say in a future version that running "rm -f" with no argument
2745 # is OK; and we want to be able to make that assumption in our Makefile
2746 # recipes. So use an aggressive probe to check that the usage we want is
2747 # actually supported "in the wild" to an acceptable degree.
2748 # See automake bug#10828.
2749 # To make any issue more visible, cause the running configure to be aborted
2750 # by default if the 'rm' program in use doesn't match our expectations; the
2751 # user can still override this though.
2752 if rm -f && rm -fr && rm -rf; then : OK; else
2753 cat >&2 <<'END'
2754 Oops!
2755
2756 Your 'rm' program seems unable to run without file operands specified
2757 on the command line, even when the '-f' option is present. This is contrary
2758 to the behaviour of most rm programs out there, and not conforming with
2759 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2760
2761 Please tell bug-automake@gnu.org about your system, including the value
2762 of your $PATH and any error possibly output before this message. This
2763 can help us improve future automake versions.
2764
2765 END
2766 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2767 echo 'Configuration will proceed anyway, since you have set the' >&2
2768 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2769 echo >&2
2770 else
2771 cat >&2 <<'END'
2772 Aborting the configuration process, to ensure you take notice of the issue.
2773
2774 You can download and install GNU coreutils to get an 'rm' implementation
2775 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2776
2777 If you want to complete the configuration process using your problematic
2778 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2779 to "yes", and re-run configure.
2780
2781 END
2782 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2783 fi
2784 fi
2785
2786
2787 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800 DEPDIR="${am__leading_dot}deps"
2801
2802 ac_config_commands="$ac_config_commands depfiles"
2803
2804
2805 am_make=${MAKE-make}
2806 cat > confinc << 'END'
2807 am__doit:
2808 @echo this is the am__doit target
2809 .PHONY: am__doit
2810 END
2811 # If we don't find an include directive, just comment out the code.
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2813 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2814 am__include="#"
2815 am__quote=
2816 _am_result=none
2817 # First try GNU make style include.
2818 echo "include confinc" > confmf
2819 # Ignore all kinds of additional output from 'make'.
2820 case `$am_make -s -f confmf 2> /dev/null` in #(
2821 *the\ am__doit\ target*)
2822 am__include=include
2823 am__quote=
2824 _am_result=GNU
2825 ;;
2826 esac
2827 # Now try BSD make style include.
2828 if test "$am__include" = "#"; then
2829 echo '.include "confinc"' > confmf
2830 case `$am_make -s -f confmf 2> /dev/null` in #(
2831 *the\ am__doit\ target*)
2832 am__include=.include
2833 am__quote="\""
2834 _am_result=BSD
2835 ;;
2836 esac
2837 fi
2838
2839
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2841 $as_echo "$_am_result" >&6; }
2842 rm -f confinc confmf
2843
2844 # Check whether --enable-dependency-tracking was given.
2845 if test "${enable_dependency_tracking+set}" = set; then :
2846 enableval=$enable_dependency_tracking;
2847 fi
2848
2849 if test "x$enable_dependency_tracking" != xno; then
2850 am_depcomp="$ac_aux_dir/depcomp"
2851 AMDEPBACKSLASH='\'
2852 am__nodep='_no'
2853 fi
2854 if test "x$enable_dependency_tracking" != xno; then
2855 AMDEP_TRUE=
2856 AMDEP_FALSE='#'
2857 else
2858 AMDEP_TRUE='#'
2859 AMDEP_FALSE=
2860 fi
2861
2862
2863 ac_ext=c
2864 ac_cpp='$CPP $CPPFLAGS'
2865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2868 if test -n "$ac_tool_prefix"; then
2869 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2870 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2903 fi
2904
2905
2906 fi
2907 if test -z "$ac_cv_prog_CC"; then
2908 ac_ct_CC=$CC
2909 # Extract the first word of "gcc", so it can be a program name with args.
2910 set dummy gcc; ac_word=$2
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2912 $as_echo_n "checking for $ac_word... " >&6; }
2913 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2914 $as_echo_n "(cached) " >&6
2915 else
2916 if test -n "$ac_ct_CC"; then
2917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2918 else
2919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920 for as_dir in $PATH
2921 do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
2924 for ac_exec_ext in '' $ac_executable_extensions; do
2925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2926 ac_cv_prog_ac_ct_CC="gcc"
2927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 break 2
2929 fi
2930 done
2931 done
2932 IFS=$as_save_IFS
2933
2934 fi
2935 fi
2936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2937 if test -n "$ac_ct_CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2939 $as_echo "$ac_ct_CC" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2943 fi
2944
2945 if test "x$ac_ct_CC" = x; then
2946 CC=""
2947 else
2948 case $cross_compiling:$ac_tool_warned in
2949 yes:)
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952 ac_tool_warned=yes ;;
2953 esac
2954 CC=$ac_ct_CC
2955 fi
2956 else
2957 CC="$ac_cv_prog_CC"
2958 fi
2959
2960 if test -z "$CC"; then
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}cc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if ${ac_cv_prog_CC+:} false; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979 ac_cv_prog_CC="${ac_tool_prefix}cc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2982 fi
2983 done
2984 done
2985 IFS=$as_save_IFS
2986
2987 fi
2988 fi
2989 CC=$ac_cv_prog_CC
2990 if test -n "$CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2996 fi
2997
2998
2999 fi
3000 fi
3001 if test -z "$CC"; then
3002 # Extract the first word of "cc", so it can be a program name with args.
3003 set dummy cc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if ${ac_cv_prog_CC+:} false; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011 else
3012 ac_prog_rejected=no
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014 for as_dir in $PATH
3015 do
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
3018 for ac_exec_ext in '' $ac_executable_extensions; do
3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3020 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3021 ac_prog_rejected=yes
3022 continue
3023 fi
3024 ac_cv_prog_CC="cc"
3025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3026 break 2
3027 fi
3028 done
3029 done
3030 IFS=$as_save_IFS
3031
3032 if test $ac_prog_rejected = yes; then
3033 # We found a bogon in the path, so make sure we never use it.
3034 set dummy $ac_cv_prog_CC
3035 shift
3036 if test $# != 0; then
3037 # We chose a different compiler from the bogus one.
3038 # However, it has the same basename, so the bogon will be chosen
3039 # first if we set CC to just the basename; use the full file name.
3040 shift
3041 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3042 fi
3043 fi
3044 fi
3045 fi
3046 CC=$ac_cv_prog_CC
3047 if test -n "$CC"; then
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3049 $as_echo "$CC" >&6; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052 $as_echo "no" >&6; }
3053 fi
3054
3055
3056 fi
3057 if test -z "$CC"; then
3058 if test -n "$ac_tool_prefix"; then
3059 for ac_prog in cl.exe
3060 do
3061 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_CC+:} false; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 if test -n "$CC"; then
3069 ac_cv_prog_CC="$CC" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3073 do
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3081 fi
3082 done
3083 done
3084 IFS=$as_save_IFS
3085
3086 fi
3087 fi
3088 CC=$ac_cv_prog_CC
3089 if test -n "$CC"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3091 $as_echo "$CC" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3095 fi
3096
3097
3098 test -n "$CC" && break
3099 done
3100 fi
3101 if test -z "$CC"; then
3102 ac_ct_CC=$CC
3103 for ac_prog in cl.exe
3104 do
3105 # Extract the first word of "$ac_prog", so it can be a program name with args.
3106 set dummy $ac_prog; ac_word=$2
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3108 $as_echo_n "checking for $ac_word... " >&6; }
3109 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3110 $as_echo_n "(cached) " >&6
3111 else
3112 if test -n "$ac_ct_CC"; then
3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3114 else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116 for as_dir in $PATH
3117 do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_exec_ext in '' $ac_executable_extensions; do
3121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3122 ac_cv_prog_ac_ct_CC="$ac_prog"
3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 break 2
3125 fi
3126 done
3127 done
3128 IFS=$as_save_IFS
3129
3130 fi
3131 fi
3132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3133 if test -n "$ac_ct_CC"; then
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3135 $as_echo "$ac_ct_CC" >&6; }
3136 else
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 fi
3140
3141
3142 test -n "$ac_ct_CC" && break
3143 done
3144
3145 if test "x$ac_ct_CC" = x; then
3146 CC=""
3147 else
3148 case $cross_compiling:$ac_tool_warned in
3149 yes:)
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3152 ac_tool_warned=yes ;;
3153 esac
3154 CC=$ac_ct_CC
3155 fi
3156 fi
3157
3158 fi
3159
3160
3161 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3163 as_fn_error $? "no acceptable C compiler found in \$PATH
3164 See \`config.log' for more details" "$LINENO" 5; }
3165
3166 # Provide some information about the compiler.
3167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3168 set X $ac_compile
3169 ac_compiler=$2
3170 for ac_option in --version -v -V -qversion; do
3171 { { ac_try="$ac_compiler $ac_option >&5"
3172 case "(($ac_try" in
3173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3174 *) ac_try_echo=$ac_try;;
3175 esac
3176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3177 $as_echo "$ac_try_echo"; } >&5
3178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3179 ac_status=$?
3180 if test -s conftest.err; then
3181 sed '10a\
3182 ... rest of stderr output deleted ...
3183 10q' conftest.err >conftest.er1
3184 cat conftest.er1 >&5
3185 fi
3186 rm -f conftest.er1 conftest.err
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }
3189 done
3190
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193
3194 int
3195 main ()
3196 {
3197
3198 ;
3199 return 0;
3200 }
3201 _ACEOF
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3204 # Try to create an executable without -o first, disregard a.out.
3205 # It will help us diagnose broken compilers, and finding out an intuition
3206 # of exeext.
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3208 $as_echo_n "checking whether the C compiler works... " >&6; }
3209 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3210
3211 # The possible output files:
3212 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3213
3214 ac_rmfiles=
3215 for ac_file in $ac_files
3216 do
3217 case $ac_file in
3218 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3219 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3220 esac
3221 done
3222 rm -f $ac_rmfiles
3223
3224 if { { ac_try="$ac_link_default"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_link_default") 2>&5
3232 ac_status=$?
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; then :
3235 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3236 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3237 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3238 # so that the user can short-circuit this test for compilers unknown to
3239 # Autoconf.
3240 for ac_file in $ac_files ''
3241 do
3242 test -f "$ac_file" || continue
3243 case $ac_file in
3244 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3245 ;;
3246 [ab].out )
3247 # We found the default executable, but exeext='' is most
3248 # certainly right.
3249 break;;
3250 *.* )
3251 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3252 then :; else
3253 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3254 fi
3255 # We set ac_cv_exeext here because the later test for it is not
3256 # safe: cross compilers may not add the suffix if given an `-o'
3257 # argument, so we may need to know it at that point already.
3258 # Even if this section looks crufty: it has the advantage of
3259 # actually working.
3260 break;;
3261 * )
3262 break;;
3263 esac
3264 done
3265 test "$ac_cv_exeext" = no && ac_cv_exeext=
3266
3267 else
3268 ac_file=''
3269 fi
3270 if test -z "$ac_file"; then :
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3273 $as_echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3278 as_fn_error 77 "C compiler cannot create executables
3279 See \`config.log' for more details" "$LINENO" 5; }
3280 else
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3282 $as_echo "yes" >&6; }
3283 fi
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3285 $as_echo_n "checking for C compiler default output file name... " >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3287 $as_echo "$ac_file" >&6; }
3288 ac_exeext=$ac_cv_exeext
3289
3290 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3291 ac_clean_files=$ac_clean_files_save
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3293 $as_echo_n "checking for suffix of executables... " >&6; }
3294 if { { ac_try="$ac_link"
3295 case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298 esac
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_link") 2>&5
3302 ac_status=$?
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3306 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3307 # work properly (i.e., refer to `conftest.exe'), while it won't with
3308 # `rm'.
3309 for ac_file in conftest.exe conftest conftest.*; do
3310 test -f "$ac_file" || continue
3311 case $ac_file in
3312 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3313 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3314 break;;
3315 * ) break;;
3316 esac
3317 done
3318 else
3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3322 See \`config.log' for more details" "$LINENO" 5; }
3323 fi
3324 rm -f conftest conftest$ac_cv_exeext
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3326 $as_echo "$ac_cv_exeext" >&6; }
3327
3328 rm -f conftest.$ac_ext
3329 EXEEXT=$ac_cv_exeext
3330 ac_exeext=$EXEEXT
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3333 #include <stdio.h>
3334 int
3335 main ()
3336 {
3337 FILE *f = fopen ("conftest.out", "w");
3338 return ferror (f) || fclose (f) != 0;
3339
3340 ;
3341 return 0;
3342 }
3343 _ACEOF
3344 ac_clean_files="$ac_clean_files conftest.out"
3345 # Check that the compiler produces executables we can run. If not, either
3346 # the compiler is broken, or we cross compile.
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3348 $as_echo_n "checking whether we are cross compiling... " >&6; }
3349 if test "$cross_compiling" != yes; then
3350 { { ac_try="$ac_link"
3351 case "(($ac_try" in
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3354 esac
3355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3356 $as_echo "$ac_try_echo"; } >&5
3357 (eval "$ac_link") 2>&5
3358 ac_status=$?
3359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3360 test $ac_status = 0; }
3361 if { ac_try='./conftest$ac_cv_exeext'
3362 { { case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367 $as_echo "$ac_try_echo"; } >&5
3368 (eval "$ac_try") 2>&5
3369 ac_status=$?
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; }; then
3372 cross_compiling=no
3373 else
3374 if test "$cross_compiling" = maybe; then
3375 cross_compiling=yes
3376 else
3377 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3378 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3379 as_fn_error $? "cannot run C compiled programs.
3380 If you meant to cross compile, use \`--host'.
3381 See \`config.log' for more details" "$LINENO" 5; }
3382 fi
3383 fi
3384 fi
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3386 $as_echo "$cross_compiling" >&6; }
3387
3388 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3389 ac_clean_files=$ac_clean_files_save
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3391 $as_echo_n "checking for suffix of object files... " >&6; }
3392 if ${ac_cv_objext+:} false; then :
3393 $as_echo_n "(cached) " >&6
3394 else
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3397
3398 int
3399 main ()
3400 {
3401
3402 ;
3403 return 0;
3404 }
3405 _ACEOF
3406 rm -f conftest.o conftest.obj
3407 if { { ac_try="$ac_compile"
3408 case "(($ac_try" in
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3411 esac
3412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3413 $as_echo "$ac_try_echo"; } >&5
3414 (eval "$ac_compile") 2>&5
3415 ac_status=$?
3416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3417 test $ac_status = 0; }; then :
3418 for ac_file in conftest.o conftest.obj conftest.*; do
3419 test -f "$ac_file" || continue;
3420 case $ac_file in
3421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3423 break;;
3424 esac
3425 done
3426 else
3427 $as_echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432 as_fn_error $? "cannot compute suffix of object files: cannot compile
3433 See \`config.log' for more details" "$LINENO" 5; }
3434 fi
3435 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3436 fi
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3438 $as_echo "$ac_cv_objext" >&6; }
3439 OBJEXT=$ac_cv_objext
3440 ac_objext=$OBJEXT
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3442 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3443 if ${ac_cv_c_compiler_gnu+:} false; then :
3444 $as_echo_n "(cached) " >&6
3445 else
3446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447 /* end confdefs.h. */
3448
3449 int
3450 main ()
3451 {
3452 #ifndef __GNUC__
3453 choke me
3454 #endif
3455
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 if ac_fn_c_try_compile "$LINENO"; then :
3461 ac_compiler_gnu=yes
3462 else
3463 ac_compiler_gnu=no
3464 fi
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3466 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3467
3468 fi
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3470 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3471 if test $ac_compiler_gnu = yes; then
3472 GCC=yes
3473 else
3474 GCC=
3475 fi
3476 ac_test_CFLAGS=${CFLAGS+set}
3477 ac_save_CFLAGS=$CFLAGS
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3479 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3480 if ${ac_cv_prog_cc_g+:} false; then :
3481 $as_echo_n "(cached) " >&6
3482 else
3483 ac_save_c_werror_flag=$ac_c_werror_flag
3484 ac_c_werror_flag=yes
3485 ac_cv_prog_cc_g=no
3486 CFLAGS="-g"
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3489
3490 int
3491 main ()
3492 {
3493
3494 ;
3495 return 0;
3496 }
3497 _ACEOF
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_cv_prog_cc_g=yes
3500 else
3501 CFLAGS=""
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main ()
3507 {
3508
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 if ac_fn_c_try_compile "$LINENO"; then :
3514
3515 else
3516 ac_c_werror_flag=$ac_save_c_werror_flag
3517 CFLAGS="-g"
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3520
3521 int
3522 main ()
3523 {
3524
3525 ;
3526 return 0;
3527 }
3528 _ACEOF
3529 if ac_fn_c_try_compile "$LINENO"; then :
3530 ac_cv_prog_cc_g=yes
3531 fi
3532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3533 fi
3534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3535 fi
3536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537 ac_c_werror_flag=$ac_save_c_werror_flag
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3540 $as_echo "$ac_cv_prog_cc_g" >&6; }
3541 if test "$ac_test_CFLAGS" = set; then
3542 CFLAGS=$ac_save_CFLAGS
3543 elif test $ac_cv_prog_cc_g = yes; then
3544 if test "$GCC" = yes; then
3545 CFLAGS="-g -O2"
3546 else
3547 CFLAGS="-g"
3548 fi
3549 else
3550 if test "$GCC" = yes; then
3551 CFLAGS="-O2"
3552 else
3553 CFLAGS=
3554 fi
3555 fi
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3557 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3558 if ${ac_cv_prog_cc_c89+:} false; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 ac_cv_prog_cc_c89=no
3562 ac_save_CC=$CC
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h. */
3565 #include <stdarg.h>
3566 #include <stdio.h>
3567 struct stat;
3568 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3569 struct buf { int x; };
3570 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3571 static char *e (p, i)
3572 char **p;
3573 int i;
3574 {
3575 return p[i];
3576 }
3577 static char *f (char * (*g) (char **, int), char **p, ...)
3578 {
3579 char *s;
3580 va_list v;
3581 va_start (v,p);
3582 s = g (p, va_arg (v,int));
3583 va_end (v);
3584 return s;
3585 }
3586
3587 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3588 function prototypes and stuff, but not '\xHH' hex character constants.
3589 These don't provoke an error unfortunately, instead are silently treated
3590 as 'x'. The following induces an error, until -std is added to get
3591 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3592 array size at least. It's necessary to write '\x00'==0 to get something
3593 that's true only with -std. */
3594 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3595
3596 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3597 inside strings and character constants. */
3598 #define FOO(x) 'x'
3599 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3600
3601 int test (int i, double x);
3602 struct s1 {int (*f) (int a);};
3603 struct s2 {int (*f) (double a);};
3604 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3605 int argc;
3606 char **argv;
3607 int
3608 main ()
3609 {
3610 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3611 ;
3612 return 0;
3613 }
3614 _ACEOF
3615 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3616 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3617 do
3618 CC="$ac_save_CC $ac_arg"
3619 if ac_fn_c_try_compile "$LINENO"; then :
3620 ac_cv_prog_cc_c89=$ac_arg
3621 fi
3622 rm -f core conftest.err conftest.$ac_objext
3623 test "x$ac_cv_prog_cc_c89" != "xno" && break
3624 done
3625 rm -f conftest.$ac_ext
3626 CC=$ac_save_CC
3627
3628 fi
3629 # AC_CACHE_VAL
3630 case "x$ac_cv_prog_cc_c89" in
3631 x)
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3633 $as_echo "none needed" >&6; } ;;
3634 xno)
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3636 $as_echo "unsupported" >&6; } ;;
3637 *)
3638 CC="$CC $ac_cv_prog_cc_c89"
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3640 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3641 esac
3642 if test "x$ac_cv_prog_cc_c89" != xno; then :
3643
3644 fi
3645
3646 ac_ext=c
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3651
3652 ac_ext=c
3653 ac_cpp='$CPP $CPPFLAGS'
3654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3658 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3659 if ${am_cv_prog_cc_c_o+:} false; then :
3660 $as_echo_n "(cached) " >&6
3661 else
3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* end confdefs.h. */
3664
3665 int
3666 main ()
3667 {
3668
3669 ;
3670 return 0;
3671 }
3672 _ACEOF
3673 # Make sure it works both with $CC and with simple cc.
3674 # Following AC_PROG_CC_C_O, we do the test twice because some
3675 # compilers refuse to overwrite an existing .o file with -o,
3676 # though they will create one.
3677 am_cv_prog_cc_c_o=yes
3678 for am_i in 1 2; do
3679 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3680 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } \
3684 && test -f conftest2.$ac_objext; then
3685 : OK
3686 else
3687 am_cv_prog_cc_c_o=no
3688 break
3689 fi
3690 done
3691 rm -f core conftest*
3692 unset am_i
3693 fi
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3695 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3696 if test "$am_cv_prog_cc_c_o" != yes; then
3697 # Losing compiler, so override with the script.
3698 # FIXME: It is wrong to rewrite CC.
3699 # But if we don't then we get into trouble of one sort or another.
3700 # A longer-term fix would be to have automake use am__CC in this case,
3701 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3702 CC="$am_aux_dir/compile $CC"
3703 fi
3704 ac_ext=c
3705 ac_cpp='$CPP $CPPFLAGS'
3706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3709
3710
3711 depcc="$CC" am_compiler_list=
3712
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3714 $as_echo_n "checking dependency style of $depcc... " >&6; }
3715 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3716 $as_echo_n "(cached) " >&6
3717 else
3718 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3719 # We make a subdir and do the tests there. Otherwise we can end up
3720 # making bogus files that we don't know about and never remove. For
3721 # instance it was reported that on HP-UX the gcc test will end up
3722 # making a dummy file named 'D' -- because '-MD' means "put the output
3723 # in D".
3724 rm -rf conftest.dir
3725 mkdir conftest.dir
3726 # Copy depcomp to subdir because otherwise we won't find it if we're
3727 # using a relative directory.
3728 cp "$am_depcomp" conftest.dir
3729 cd conftest.dir
3730 # We will build objects and dependencies in a subdirectory because
3731 # it helps to detect inapplicable dependency modes. For instance
3732 # both Tru64's cc and ICC support -MD to output dependencies as a
3733 # side effect of compilation, but ICC will put the dependencies in
3734 # the current directory while Tru64 will put them in the object
3735 # directory.
3736 mkdir sub
3737
3738 am_cv_CC_dependencies_compiler_type=none
3739 if test "$am_compiler_list" = ""; then
3740 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3741 fi
3742 am__universal=false
3743 case " $depcc " in #(
3744 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3745 esac
3746
3747 for depmode in $am_compiler_list; do
3748 # Setup a source with many dependencies, because some compilers
3749 # like to wrap large dependency lists on column 80 (with \), and
3750 # we should not choose a depcomp mode which is confused by this.
3751 #
3752 # We need to recreate these files for each test, as the compiler may
3753 # overwrite some of them when testing with obscure command lines.
3754 # This happens at least with the AIX C compiler.
3755 : > sub/conftest.c
3756 for i in 1 2 3 4 5 6; do
3757 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3758 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3759 # Solaris 10 /bin/sh.
3760 echo '/* dummy */' > sub/conftst$i.h
3761 done
3762 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3763
3764 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3765 # mode. It turns out that the SunPro C++ compiler does not properly
3766 # handle '-M -o', and we need to detect this. Also, some Intel
3767 # versions had trouble with output in subdirs.
3768 am__obj=sub/conftest.${OBJEXT-o}
3769 am__minus_obj="-o $am__obj"
3770 case $depmode in
3771 gcc)
3772 # This depmode causes a compiler race in universal mode.
3773 test "$am__universal" = false || continue
3774 ;;
3775 nosideeffect)
3776 # After this tag, mechanisms are not by side-effect, so they'll
3777 # only be used when explicitly requested.
3778 if test "x$enable_dependency_tracking" = xyes; then
3779 continue
3780 else
3781 break
3782 fi
3783 ;;
3784 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3785 # This compiler won't grok '-c -o', but also, the minuso test has
3786 # not run yet. These depmodes are late enough in the game, and
3787 # so weak that their functioning should not be impacted.
3788 am__obj=conftest.${OBJEXT-o}
3789 am__minus_obj=
3790 ;;
3791 none) break ;;
3792 esac
3793 if depmode=$depmode \
3794 source=sub/conftest.c object=$am__obj \
3795 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3796 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3797 >/dev/null 2>conftest.err &&
3798 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3799 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3800 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3801 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3802 # icc doesn't choke on unknown options, it will just issue warnings
3803 # or remarks (even with -Werror). So we grep stderr for any message
3804 # that says an option was ignored or not supported.
3805 # When given -MP, icc 7.0 and 7.1 complain thusly:
3806 # icc: Command line warning: ignoring option '-M'; no argument required
3807 # The diagnosis changed in icc 8.0:
3808 # icc: Command line remark: option '-MP' not supported
3809 if (grep 'ignoring option' conftest.err ||
3810 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3811 am_cv_CC_dependencies_compiler_type=$depmode
3812 break
3813 fi
3814 fi
3815 done
3816
3817 cd ..
3818 rm -rf conftest.dir
3819 else
3820 am_cv_CC_dependencies_compiler_type=none
3821 fi
3822
3823 fi
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3825 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3826 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3827
3828 if
3829 test "x$enable_dependency_tracking" != xno \
3830 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3831 am__fastdepCC_TRUE=
3832 am__fastdepCC_FALSE='#'
3833 else
3834 am__fastdepCC_TRUE='#'
3835 am__fastdepCC_FALSE=
3836 fi
3837
3838
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3840 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3841 if ${ac_cv_prog_cc_c99+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 ac_cv_prog_cc_c99=no
3845 ac_save_CC=$CC
3846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3848 #include <stdarg.h>
3849 #include <stdbool.h>
3850 #include <stdlib.h>
3851 #include <wchar.h>
3852 #include <stdio.h>
3853
3854 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3855 #define debug(...) fprintf (stderr, __VA_ARGS__)
3856 #define showlist(...) puts (#__VA_ARGS__)
3857 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3858 static void
3859 test_varargs_macros (void)
3860 {
3861 int x = 1234;
3862 int y = 5678;
3863 debug ("Flag");
3864 debug ("X = %d\n", x);
3865 showlist (The first, second, and third items.);
3866 report (x>y, "x is %d but y is %d", x, y);
3867 }
3868
3869 // Check long long types.
3870 #define BIG64 18446744073709551615ull
3871 #define BIG32 4294967295ul
3872 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3873 #if !BIG_OK
3874 your preprocessor is broken;
3875 #endif
3876 #if BIG_OK
3877 #else
3878 your preprocessor is broken;
3879 #endif
3880 static long long int bignum = -9223372036854775807LL;
3881 static unsigned long long int ubignum = BIG64;
3882
3883 struct incomplete_array
3884 {
3885 int datasize;
3886 double data[];
3887 };
3888
3889 struct named_init {
3890 int number;
3891 const wchar_t *name;
3892 double average;
3893 };
3894
3895 typedef const char *ccp;
3896
3897 static inline int
3898 test_restrict (ccp restrict text)
3899 {
3900 // See if C++-style comments work.
3901 // Iterate through items via the restricted pointer.
3902 // Also check for declarations in for loops.
3903 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3904 continue;
3905 return 0;
3906 }
3907
3908 // Check varargs and va_copy.
3909 static void
3910 test_varargs (const char *format, ...)
3911 {
3912 va_list args;
3913 va_start (args, format);
3914 va_list args_copy;
3915 va_copy (args_copy, args);
3916
3917 const char *str;
3918 int number;
3919 float fnumber;
3920
3921 while (*format)
3922 {
3923 switch (*format++)
3924 {
3925 case 's': // string
3926 str = va_arg (args_copy, const char *);
3927 break;
3928 case 'd': // int
3929 number = va_arg (args_copy, int);
3930 break;
3931 case 'f': // float
3932 fnumber = va_arg (args_copy, double);
3933 break;
3934 default:
3935 break;
3936 }
3937 }
3938 va_end (args_copy);
3939 va_end (args);
3940 }
3941
3942 int
3943 main ()
3944 {
3945
3946 // Check bool.
3947 _Bool success = false;
3948
3949 // Check restrict.
3950 if (test_restrict ("String literal") == 0)
3951 success = true;
3952 char *restrict newvar = "Another string";
3953
3954 // Check varargs.
3955 test_varargs ("s, d' f .", "string", 65, 34.234);
3956 test_varargs_macros ();
3957
3958 // Check flexible array members.
3959 struct incomplete_array *ia =
3960 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3961 ia->datasize = 10;
3962 for (int i = 0; i < ia->datasize; ++i)
3963 ia->data[i] = i * 1.234;
3964
3965 // Check named initializers.
3966 struct named_init ni = {
3967 .number = 34,
3968 .name = L"Test wide string",
3969 .average = 543.34343,
3970 };
3971
3972 ni.number = 58;
3973
3974 int dynamic_array[ni.number];
3975 dynamic_array[ni.number - 1] = 543;
3976
3977 // work around unused variable warnings
3978 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3979 || dynamic_array[ni.number - 1] != 543);
3980
3981 ;
3982 return 0;
3983 }
3984 _ACEOF
3985 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3986 do
3987 CC="$ac_save_CC $ac_arg"
3988 if ac_fn_c_try_compile "$LINENO"; then :
3989 ac_cv_prog_cc_c99=$ac_arg
3990 fi
3991 rm -f core conftest.err conftest.$ac_objext
3992 test "x$ac_cv_prog_cc_c99" != "xno" && break
3993 done
3994 rm -f conftest.$ac_ext
3995 CC=$ac_save_CC
3996
3997 fi
3998 # AC_CACHE_VAL
3999 case "x$ac_cv_prog_cc_c99" in
4000 x)
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4002 $as_echo "none needed" >&6; } ;;
4003 xno)
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4005 $as_echo "unsupported" >&6; } ;;
4006 *)
4007 CC="$CC $ac_cv_prog_cc_c99"
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4009 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4010 esac
4011 if test "x$ac_cv_prog_cc_c99" != xno; then :
4012
4013 fi
4014
4015
4016
4017 ac_ext=c
4018 ac_cpp='$CPP $CPPFLAGS'
4019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4023 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4024 # On Suns, sometimes $CPP names a directory.
4025 if test -n "$CPP" && test -d "$CPP"; then
4026 CPP=
4027 fi
4028 if test -z "$CPP"; then
4029 if ${ac_cv_prog_CPP+:} false; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 # Double quotes because CPP needs to be expanded
4033 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4034 do
4035 ac_preproc_ok=false
4036 for ac_c_preproc_warn_flag in '' yes
4037 do
4038 # Use a header file that comes with gcc, so configuring glibc
4039 # with a fresh cross-compiler works.
4040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041 # <limits.h> exists even on freestanding compilers.
4042 # On the NeXT, cc -E runs the code through the compiler's parser,
4043 # not just through cpp. "Syntax error" is here to catch this case.
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4046 #ifdef __STDC__
4047 # include <limits.h>
4048 #else
4049 # include <assert.h>
4050 #endif
4051 Syntax error
4052 _ACEOF
4053 if ac_fn_c_try_cpp "$LINENO"; then :
4054
4055 else
4056 # Broken: fails on valid input.
4057 continue
4058 fi
4059 rm -f conftest.err conftest.i conftest.$ac_ext
4060
4061 # OK, works on sane cases. Now check whether nonexistent headers
4062 # can be detected and how.
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #include <ac_nonexistent.h>
4066 _ACEOF
4067 if ac_fn_c_try_cpp "$LINENO"; then :
4068 # Broken: success on invalid input.
4069 continue
4070 else
4071 # Passes both tests.
4072 ac_preproc_ok=:
4073 break
4074 fi
4075 rm -f conftest.err conftest.i conftest.$ac_ext
4076
4077 done
4078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079 rm -f conftest.i conftest.err conftest.$ac_ext
4080 if $ac_preproc_ok; then :
4081 break
4082 fi
4083
4084 done
4085 ac_cv_prog_CPP=$CPP
4086
4087 fi
4088 CPP=$ac_cv_prog_CPP
4089 else
4090 ac_cv_prog_CPP=$CPP
4091 fi
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4093 $as_echo "$CPP" >&6; }
4094 ac_preproc_ok=false
4095 for ac_c_preproc_warn_flag in '' yes
4096 do
4097 # Use a header file that comes with gcc, so configuring glibc
4098 # with a fresh cross-compiler works.
4099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100 # <limits.h> exists even on freestanding compilers.
4101 # On the NeXT, cc -E runs the code through the compiler's parser,
4102 # not just through cpp. "Syntax error" is here to catch this case.
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105 #ifdef __STDC__
4106 # include <limits.h>
4107 #else
4108 # include <assert.h>
4109 #endif
4110 Syntax error
4111 _ACEOF
4112 if ac_fn_c_try_cpp "$LINENO"; then :
4113
4114 else
4115 # Broken: fails on valid input.
4116 continue
4117 fi
4118 rm -f conftest.err conftest.i conftest.$ac_ext
4119
4120 # OK, works on sane cases. Now check whether nonexistent headers
4121 # can be detected and how.
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #include <ac_nonexistent.h>
4125 _ACEOF
4126 if ac_fn_c_try_cpp "$LINENO"; then :
4127 # Broken: success on invalid input.
4128 continue
4129 else
4130 # Passes both tests.
4131 ac_preproc_ok=:
4132 break
4133 fi
4134 rm -f conftest.err conftest.i conftest.$ac_ext
4135
4136 done
4137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138 rm -f conftest.i conftest.err conftest.$ac_ext
4139 if $ac_preproc_ok; then :
4140
4141 else
4142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4144 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4145 See \`config.log' for more details" "$LINENO" 5; }
4146 fi
4147
4148 ac_ext=c
4149 ac_cpp='$CPP $CPPFLAGS'
4150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4153
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4156 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4157 if ${ac_cv_path_GREP+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 if test -z "$GREP"; then
4161 ac_path_GREP_found=false
4162 # Loop through the user's path and test for each of PROGNAME-LIST
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4165 do
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
4168 for ac_prog in grep ggrep; do
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4171 as_fn_executable_p "$ac_path_GREP" || continue
4172 # Check for GNU ac_path_GREP and select it if it is found.
4173 # Check for GNU $ac_path_GREP
4174 case `"$ac_path_GREP" --version 2>&1` in
4175 *GNU*)
4176 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4177 *)
4178 ac_count=0
4179 $as_echo_n 0123456789 >"conftest.in"
4180 while :
4181 do
4182 cat "conftest.in" "conftest.in" >"conftest.tmp"
4183 mv "conftest.tmp" "conftest.in"
4184 cp "conftest.in" "conftest.nl"
4185 $as_echo 'GREP' >> "conftest.nl"
4186 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4188 as_fn_arith $ac_count + 1 && ac_count=$as_val
4189 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4190 # Best one so far, save it but keep looking for a better one
4191 ac_cv_path_GREP="$ac_path_GREP"
4192 ac_path_GREP_max=$ac_count
4193 fi
4194 # 10*(2^10) chars as input seems more than enough
4195 test $ac_count -gt 10 && break
4196 done
4197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4198 esac
4199
4200 $ac_path_GREP_found && break 3
4201 done
4202 done
4203 done
4204 IFS=$as_save_IFS
4205 if test -z "$ac_cv_path_GREP"; then
4206 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4207 fi
4208 else
4209 ac_cv_path_GREP=$GREP
4210 fi
4211
4212 fi
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4214 $as_echo "$ac_cv_path_GREP" >&6; }
4215 GREP="$ac_cv_path_GREP"
4216
4217
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4219 $as_echo_n "checking for egrep... " >&6; }
4220 if ${ac_cv_path_EGREP+:} false; then :
4221 $as_echo_n "(cached) " >&6
4222 else
4223 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4224 then ac_cv_path_EGREP="$GREP -E"
4225 else
4226 if test -z "$EGREP"; then
4227 ac_path_EGREP_found=false
4228 # Loop through the user's path and test for each of PROGNAME-LIST
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4231 do
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for ac_prog in egrep; do
4235 for ac_exec_ext in '' $ac_executable_extensions; do
4236 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4237 as_fn_executable_p "$ac_path_EGREP" || continue
4238 # Check for GNU ac_path_EGREP and select it if it is found.
4239 # Check for GNU $ac_path_EGREP
4240 case `"$ac_path_EGREP" --version 2>&1` in
4241 *GNU*)
4242 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4243 *)
4244 ac_count=0
4245 $as_echo_n 0123456789 >"conftest.in"
4246 while :
4247 do
4248 cat "conftest.in" "conftest.in" >"conftest.tmp"
4249 mv "conftest.tmp" "conftest.in"
4250 cp "conftest.in" "conftest.nl"
4251 $as_echo 'EGREP' >> "conftest.nl"
4252 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4253 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4254 as_fn_arith $ac_count + 1 && ac_count=$as_val
4255 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4256 # Best one so far, save it but keep looking for a better one
4257 ac_cv_path_EGREP="$ac_path_EGREP"
4258 ac_path_EGREP_max=$ac_count
4259 fi
4260 # 10*(2^10) chars as input seems more than enough
4261 test $ac_count -gt 10 && break
4262 done
4263 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4264 esac
4265
4266 $ac_path_EGREP_found && break 3
4267 done
4268 done
4269 done
4270 IFS=$as_save_IFS
4271 if test -z "$ac_cv_path_EGREP"; then
4272 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4273 fi
4274 else
4275 ac_cv_path_EGREP=$EGREP
4276 fi
4277
4278 fi
4279 fi
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4281 $as_echo "$ac_cv_path_EGREP" >&6; }
4282 EGREP="$ac_cv_path_EGREP"
4283
4284
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4286 $as_echo_n "checking for ANSI C header files... " >&6; }
4287 if ${ac_cv_header_stdc+:} false; then :
4288 $as_echo_n "(cached) " >&6
4289 else
4290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4292 #include <stdlib.h>
4293 #include <stdarg.h>
4294 #include <string.h>
4295 #include <float.h>
4296
4297 int
4298 main ()
4299 {
4300
4301 ;
4302 return 0;
4303 }
4304 _ACEOF
4305 if ac_fn_c_try_compile "$LINENO"; then :
4306 ac_cv_header_stdc=yes
4307 else
4308 ac_cv_header_stdc=no
4309 fi
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311
4312 if test $ac_cv_header_stdc = yes; then
4313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316 #include <string.h>
4317
4318 _ACEOF
4319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4320 $EGREP "memchr" >/dev/null 2>&1; then :
4321
4322 else
4323 ac_cv_header_stdc=no
4324 fi
4325 rm -f conftest*
4326
4327 fi
4328
4329 if test $ac_cv_header_stdc = yes; then
4330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 #include <stdlib.h>
4334
4335 _ACEOF
4336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4337 $EGREP "free" >/dev/null 2>&1; then :
4338
4339 else
4340 ac_cv_header_stdc=no
4341 fi
4342 rm -f conftest*
4343
4344 fi
4345
4346 if test $ac_cv_header_stdc = yes; then
4347 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4348 if test "$cross_compiling" = yes; then :
4349 :
4350 else
4351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4353 #include <ctype.h>
4354 #include <stdlib.h>
4355 #if ((' ' & 0x0FF) == 0x020)
4356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4358 #else
4359 # define ISLOWER(c) \
4360 (('a' <= (c) && (c) <= 'i') \
4361 || ('j' <= (c) && (c) <= 'r') \
4362 || ('s' <= (c) && (c) <= 'z'))
4363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4364 #endif
4365
4366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4367 int
4368 main ()
4369 {
4370 int i;
4371 for (i = 0; i < 256; i++)
4372 if (XOR (islower (i), ISLOWER (i))
4373 || toupper (i) != TOUPPER (i))
4374 return 2;
4375 return 0;
4376 }
4377 _ACEOF
4378 if ac_fn_c_try_run "$LINENO"; then :
4379
4380 else
4381 ac_cv_header_stdc=no
4382 fi
4383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4384 conftest.$ac_objext conftest.beam conftest.$ac_ext
4385 fi
4386
4387 fi
4388 fi
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4390 $as_echo "$ac_cv_header_stdc" >&6; }
4391 if test $ac_cv_header_stdc = yes; then
4392
4393 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4394
4395 fi
4396
4397 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4398 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4399 inttypes.h stdint.h unistd.h
4400 do :
4401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4402 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4403 "
4404 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4405 cat >>confdefs.h <<_ACEOF
4406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4407 _ACEOF
4408
4409 fi
4410
4411 done
4412
4413
4414
4415
4416
4417
4418 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4419 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4420 CLANGCC="yes"
4421 else
4422 CLANGCC="no"
4423 fi
4424
4425 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4426 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4427 INTELCC="yes"
4428 else
4429 INTELCC="no"
4430 fi
4431
4432 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4433 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4434 SUNCC="yes"
4435 else
4436 SUNCC="no"
4437 fi
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4448 if test -n "$ac_tool_prefix"; then
4449 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4450 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4452 $as_echo_n "checking for $ac_word... " >&6; }
4453 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455 else
4456 case $PKG_CONFIG in
4457 [\\/]* | ?:[\\/]*)
4458 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4459 ;;
4460 *)
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4463 do
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4471 fi
4472 done
4473 done
4474 IFS=$as_save_IFS
4475
4476 ;;
4477 esac
4478 fi
4479 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4480 if test -n "$PKG_CONFIG"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4482 $as_echo "$PKG_CONFIG" >&6; }
4483 else
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4486 fi
4487
4488
4489 fi
4490 if test -z "$ac_cv_path_PKG_CONFIG"; then
4491 ac_pt_PKG_CONFIG=$PKG_CONFIG
4492 # Extract the first word of "pkg-config", so it can be a program name with args.
4493 set dummy pkg-config; ac_word=$2
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4495 $as_echo_n "checking for $ac_word... " >&6; }
4496 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4497 $as_echo_n "(cached) " >&6
4498 else
4499 case $ac_pt_PKG_CONFIG in
4500 [\\/]* | ?:[\\/]*)
4501 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4502 ;;
4503 *)
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4505 for as_dir in $PATH
4506 do
4507 IFS=$as_save_IFS
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4511 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 break 2
4514 fi
4515 done
4516 done
4517 IFS=$as_save_IFS
4518
4519 ;;
4520 esac
4521 fi
4522 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4523 if test -n "$ac_pt_PKG_CONFIG"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4525 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4526 else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4529 fi
4530
4531 if test "x$ac_pt_PKG_CONFIG" = x; then
4532 PKG_CONFIG=""
4533 else
4534 case $cross_compiling:$ac_tool_warned in
4535 yes:)
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4538 ac_tool_warned=yes ;;
4539 esac
4540 PKG_CONFIG=$ac_pt_PKG_CONFIG
4541 fi
4542 else
4543 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4544 fi
4545
4546 fi
4547 if test -n "$PKG_CONFIG"; then
4548 _pkg_min_version=0.9.0
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4550 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4551 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4553 $as_echo "yes" >&6; }
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4557 PKG_CONFIG=""
4558 fi
4559 fi
4560 # Make sure we can run config.sub.
4561 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4562 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4563
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4565 $as_echo_n "checking build system type... " >&6; }
4566 if ${ac_cv_build+:} false; then :
4567 $as_echo_n "(cached) " >&6
4568 else
4569 ac_build_alias=$build_alias
4570 test "x$ac_build_alias" = x &&
4571 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4572 test "x$ac_build_alias" = x &&
4573 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4574 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4575 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4576
4577 fi
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4579 $as_echo "$ac_cv_build" >&6; }
4580 case $ac_cv_build in
4581 *-*-*) ;;
4582 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4583 esac
4584 build=$ac_cv_build
4585 ac_save_IFS=$IFS; IFS='-'
4586 set x $ac_cv_build
4587 shift
4588 build_cpu=$1
4589 build_vendor=$2
4590 shift; shift
4591 # Remember, the first character of IFS is used to create $*,
4592 # except with old shells:
4593 build_os=$*
4594 IFS=$ac_save_IFS
4595 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4596
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4599 $as_echo_n "checking host system type... " >&6; }
4600 if ${ac_cv_host+:} false; then :
4601 $as_echo_n "(cached) " >&6
4602 else
4603 if test "x$host_alias" = x; then
4604 ac_cv_host=$ac_cv_build
4605 else
4606 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4607 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4608 fi
4609
4610 fi
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4612 $as_echo "$ac_cv_host" >&6; }
4613 case $ac_cv_host in
4614 *-*-*) ;;
4615 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4616 esac
4617 host=$ac_cv_host
4618 ac_save_IFS=$IFS; IFS='-'
4619 set x $ac_cv_host
4620 shift
4621 host_cpu=$1
4622 host_vendor=$2
4623 shift; shift
4624 # Remember, the first character of IFS is used to create $*,
4625 # except with old shells:
4626 host_os=$*
4627 IFS=$ac_save_IFS
4628 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4629
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4632 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4633 if ${ac_cv_path_SED+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4637 for ac_i in 1 2 3 4 5 6 7; do
4638 ac_script="$ac_script$as_nl$ac_script"
4639 done
4640 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4641 { ac_script=; unset ac_script;}
4642 if test -z "$SED"; then
4643 ac_path_SED_found=false
4644 # Loop through the user's path and test for each of PROGNAME-LIST
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_prog in sed gsed; do
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4653 as_fn_executable_p "$ac_path_SED" || continue
4654 # Check for GNU ac_path_SED and select it if it is found.
4655 # Check for GNU $ac_path_SED
4656 case `"$ac_path_SED" --version 2>&1` in
4657 *GNU*)
4658 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4659 *)
4660 ac_count=0
4661 $as_echo_n 0123456789 >"conftest.in"
4662 while :
4663 do
4664 cat "conftest.in" "conftest.in" >"conftest.tmp"
4665 mv "conftest.tmp" "conftest.in"
4666 cp "conftest.in" "conftest.nl"
4667 $as_echo '' >> "conftest.nl"
4668 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4669 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4670 as_fn_arith $ac_count + 1 && ac_count=$as_val
4671 if test $ac_count -gt ${ac_path_SED_max-0}; then
4672 # Best one so far, save it but keep looking for a better one
4673 ac_cv_path_SED="$ac_path_SED"
4674 ac_path_SED_max=$ac_count
4675 fi
4676 # 10*(2^10) chars as input seems more than enough
4677 test $ac_count -gt 10 && break
4678 done
4679 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4680 esac
4681
4682 $ac_path_SED_found && break 3
4683 done
4684 done
4685 done
4686 IFS=$as_save_IFS
4687 if test -z "$ac_cv_path_SED"; then
4688 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4689 fi
4690 else
4691 ac_cv_path_SED=$SED
4692 fi
4693
4694 fi
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4696 $as_echo "$ac_cv_path_SED" >&6; }
4697 SED="$ac_cv_path_SED"
4698 rm -f conftest.sed
4699
4700
4701
4702
4703
4704
4705 # Check whether --enable-selective-werror was given.
4706 if test "${enable_selective_werror+set}" = set; then :
4707 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4708 else
4709 SELECTIVE_WERROR=yes
4710 fi
4711
4712
4713
4714
4715
4716 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4717 if test "x$SUNCC" = "xyes"; then
4718 BASE_CFLAGS="-v"
4719 else
4720 BASE_CFLAGS=""
4721 fi
4722
4723 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737 xorg_testset_save_CFLAGS="$CFLAGS"
4738
4739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4742 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4743 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745 else
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748 int i;
4749 _ACEOF
4750 if ac_fn_c_try_compile "$LINENO"; then :
4751 xorg_cv_cc_flag_unknown_warning_option=yes
4752 else
4753 xorg_cv_cc_flag_unknown_warning_option=no
4754 fi
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4758 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4759 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4760 CFLAGS="$xorg_testset_save_CFLAGS"
4761 fi
4762
4763 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4766 fi
4767 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4769 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4770 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 int i;
4776 _ACEOF
4777 if ac_fn_c_try_compile "$LINENO"; then :
4778 xorg_cv_cc_flag_unused_command_line_argument=yes
4779 else
4780 xorg_cv_cc_flag_unused_command_line_argument=no
4781 fi
4782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 fi
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4785 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4787 CFLAGS="$xorg_testset_save_CFLAGS"
4788 fi
4789
4790 found="no"
4791
4792 if test $found = "no" ; then
4793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4795 fi
4796
4797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4799 fi
4800
4801 CFLAGS="$CFLAGS -Wall"
4802
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4804 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4805 cacheid=xorg_cv_cc_flag__Wall
4806 if eval \${$cacheid+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4810 /* end confdefs.h. */
4811 int i;
4812 int
4813 main ()
4814 {
4815
4816 ;
4817 return 0;
4818 }
4819 _ACEOF
4820 if ac_fn_c_try_link "$LINENO"; then :
4821 eval $cacheid=yes
4822 else
4823 eval $cacheid=no
4824 fi
4825 rm -f core conftest.err conftest.$ac_objext \
4826 conftest$ac_exeext conftest.$ac_ext
4827 fi
4828
4829
4830 CFLAGS="$xorg_testset_save_CFLAGS"
4831
4832 eval supported=\$$cacheid
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4834 $as_echo "$supported" >&6; }
4835 if test "$supported" = "yes" ; then
4836 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4837 found="yes"
4838 fi
4839 fi
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855 xorg_testset_save_CFLAGS="$CFLAGS"
4856
4857 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4860 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4861 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4862 $as_echo_n "(cached) " >&6
4863 else
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4866 int i;
4867 _ACEOF
4868 if ac_fn_c_try_compile "$LINENO"; then :
4869 xorg_cv_cc_flag_unknown_warning_option=yes
4870 else
4871 xorg_cv_cc_flag_unknown_warning_option=no
4872 fi
4873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4874 fi
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4876 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4877 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4878 CFLAGS="$xorg_testset_save_CFLAGS"
4879 fi
4880
4881 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4882 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4884 fi
4885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4887 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4888 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 int i;
4894 _ACEOF
4895 if ac_fn_c_try_compile "$LINENO"; then :
4896 xorg_cv_cc_flag_unused_command_line_argument=yes
4897 else
4898 xorg_cv_cc_flag_unused_command_line_argument=no
4899 fi
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4901 fi
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4903 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4904 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4905 CFLAGS="$xorg_testset_save_CFLAGS"
4906 fi
4907
4908 found="no"
4909
4910 if test $found = "no" ; then
4911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4913 fi
4914
4915 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4917 fi
4918
4919 CFLAGS="$CFLAGS -Wpointer-arith"
4920
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4922 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4923 cacheid=xorg_cv_cc_flag__Wpointer_arith
4924 if eval \${$cacheid+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 int i;
4930 int
4931 main ()
4932 {
4933
4934 ;
4935 return 0;
4936 }
4937 _ACEOF
4938 if ac_fn_c_try_link "$LINENO"; then :
4939 eval $cacheid=yes
4940 else
4941 eval $cacheid=no
4942 fi
4943 rm -f core conftest.err conftest.$ac_objext \
4944 conftest$ac_exeext conftest.$ac_ext
4945 fi
4946
4947
4948 CFLAGS="$xorg_testset_save_CFLAGS"
4949
4950 eval supported=\$$cacheid
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4952 $as_echo "$supported" >&6; }
4953 if test "$supported" = "yes" ; then
4954 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4955 found="yes"
4956 fi
4957 fi
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973 xorg_testset_save_CFLAGS="$CFLAGS"
4974
4975 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4976 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4978 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4979 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4983 /* end confdefs.h. */
4984 int i;
4985 _ACEOF
4986 if ac_fn_c_try_compile "$LINENO"; then :
4987 xorg_cv_cc_flag_unknown_warning_option=yes
4988 else
4989 xorg_cv_cc_flag_unknown_warning_option=no
4990 fi
4991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4992 fi
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4994 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4995 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4996 CFLAGS="$xorg_testset_save_CFLAGS"
4997 fi
4998
4999 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5000 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5002 fi
5003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5005 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5006 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5007 $as_echo_n "(cached) " >&6
5008 else
5009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010 /* end confdefs.h. */
5011 int i;
5012 _ACEOF
5013 if ac_fn_c_try_compile "$LINENO"; then :
5014 xorg_cv_cc_flag_unused_command_line_argument=yes
5015 else
5016 xorg_cv_cc_flag_unused_command_line_argument=no
5017 fi
5018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5019 fi
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5021 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5023 CFLAGS="$xorg_testset_save_CFLAGS"
5024 fi
5025
5026 found="no"
5027
5028 if test $found = "no" ; then
5029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5031 fi
5032
5033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5035 fi
5036
5037 CFLAGS="$CFLAGS -Wmissing-declarations"
5038
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5040 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
5041 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5042 if eval \${$cacheid+:} false; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 int i;
5048 int
5049 main ()
5050 {
5051
5052 ;
5053 return 0;
5054 }
5055 _ACEOF
5056 if ac_fn_c_try_link "$LINENO"; then :
5057 eval $cacheid=yes
5058 else
5059 eval $cacheid=no
5060 fi
5061 rm -f core conftest.err conftest.$ac_objext \
5062 conftest$ac_exeext conftest.$ac_ext
5063 fi
5064
5065
5066 CFLAGS="$xorg_testset_save_CFLAGS"
5067
5068 eval supported=\$$cacheid
5069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5070 $as_echo "$supported" >&6; }
5071 if test "$supported" = "yes" ; then
5072 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5073 found="yes"
5074 fi
5075 fi
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091 xorg_testset_save_CFLAGS="$CFLAGS"
5092
5093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5096 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5097 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 int i;
5103 _ACEOF
5104 if ac_fn_c_try_compile "$LINENO"; then :
5105 xorg_cv_cc_flag_unknown_warning_option=yes
5106 else
5107 xorg_cv_cc_flag_unknown_warning_option=no
5108 fi
5109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5110 fi
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5112 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5114 CFLAGS="$xorg_testset_save_CFLAGS"
5115 fi
5116
5117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5120 fi
5121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5123 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5124 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5129 int i;
5130 _ACEOF
5131 if ac_fn_c_try_compile "$LINENO"; then :
5132 xorg_cv_cc_flag_unused_command_line_argument=yes
5133 else
5134 xorg_cv_cc_flag_unused_command_line_argument=no
5135 fi
5136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5137 fi
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5139 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5141 CFLAGS="$xorg_testset_save_CFLAGS"
5142 fi
5143
5144 found="no"
5145
5146 if test $found = "no" ; then
5147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5149 fi
5150
5151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5153 fi
5154
5155 CFLAGS="$CFLAGS -Wformat=2"
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5158 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5159 cacheid=xorg_cv_cc_flag__Wformat_2
5160 if eval \${$cacheid+:} false; then :
5161 $as_echo_n "(cached) " >&6
5162 else
5163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5164 /* end confdefs.h. */
5165 int i;
5166 int
5167 main ()
5168 {
5169
5170 ;
5171 return 0;
5172 }
5173 _ACEOF
5174 if ac_fn_c_try_link "$LINENO"; then :
5175 eval $cacheid=yes
5176 else
5177 eval $cacheid=no
5178 fi
5179 rm -f core conftest.err conftest.$ac_objext \
5180 conftest$ac_exeext conftest.$ac_ext
5181 fi
5182
5183
5184 CFLAGS="$xorg_testset_save_CFLAGS"
5185
5186 eval supported=\$$cacheid
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5188 $as_echo "$supported" >&6; }
5189 if test "$supported" = "yes" ; then
5190 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5191 found="yes"
5192 fi
5193 fi
5194
5195 if test $found = "no" ; then
5196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5198 fi
5199
5200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5202 fi
5203
5204 CFLAGS="$CFLAGS -Wformat"
5205
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5207 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5208 cacheid=xorg_cv_cc_flag__Wformat
5209 if eval \${$cacheid+:} false; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213 /* end confdefs.h. */
5214 int i;
5215 int
5216 main ()
5217 {
5218
5219 ;
5220 return 0;
5221 }
5222 _ACEOF
5223 if ac_fn_c_try_link "$LINENO"; then :
5224 eval $cacheid=yes
5225 else
5226 eval $cacheid=no
5227 fi
5228 rm -f core conftest.err conftest.$ac_objext \
5229 conftest$ac_exeext conftest.$ac_ext
5230 fi
5231
5232
5233 CFLAGS="$xorg_testset_save_CFLAGS"
5234
5235 eval supported=\$$cacheid
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5237 $as_echo "$supported" >&6; }
5238 if test "$supported" = "yes" ; then
5239 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5240 found="yes"
5241 fi
5242 fi
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260 xorg_testset_save_CFLAGS="$CFLAGS"
5261
5262 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5265 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5266 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5271 int i;
5272 _ACEOF
5273 if ac_fn_c_try_compile "$LINENO"; then :
5274 xorg_cv_cc_flag_unknown_warning_option=yes
5275 else
5276 xorg_cv_cc_flag_unknown_warning_option=no
5277 fi
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 fi
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5281 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5283 CFLAGS="$xorg_testset_save_CFLAGS"
5284 fi
5285
5286 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5289 fi
5290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5292 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5293 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5294 $as_echo_n "(cached) " >&6
5295 else
5296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5298 int i;
5299 _ACEOF
5300 if ac_fn_c_try_compile "$LINENO"; then :
5301 xorg_cv_cc_flag_unused_command_line_argument=yes
5302 else
5303 xorg_cv_cc_flag_unused_command_line_argument=no
5304 fi
5305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 fi
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5308 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5309 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5310 CFLAGS="$xorg_testset_save_CFLAGS"
5311 fi
5312
5313 found="no"
5314
5315 if test $found = "no" ; then
5316 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5317 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5318 fi
5319
5320 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5321 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5322 fi
5323
5324 CFLAGS="$CFLAGS -Wstrict-prototypes"
5325
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5327 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5328 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5329 if eval \${$cacheid+:} false; then :
5330 $as_echo_n "(cached) " >&6
5331 else
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 int i;
5335 int
5336 main ()
5337 {
5338
5339 ;
5340 return 0;
5341 }
5342 _ACEOF
5343 if ac_fn_c_try_link "$LINENO"; then :
5344 eval $cacheid=yes
5345 else
5346 eval $cacheid=no
5347 fi
5348 rm -f core conftest.err conftest.$ac_objext \
5349 conftest$ac_exeext conftest.$ac_ext
5350 fi
5351
5352
5353 CFLAGS="$xorg_testset_save_CFLAGS"
5354
5355 eval supported=\$$cacheid
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5357 $as_echo "$supported" >&6; }
5358 if test "$supported" = "yes" ; then
5359 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5360 found="yes"
5361 fi
5362 fi
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378 xorg_testset_save_CFLAGS="$CFLAGS"
5379
5380 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5383 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5384 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5385 $as_echo_n "(cached) " >&6
5386 else
5387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h. */
5389 int i;
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392 xorg_cv_cc_flag_unknown_warning_option=yes
5393 else
5394 xorg_cv_cc_flag_unknown_warning_option=no
5395 fi
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5397 fi
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5399 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5401 CFLAGS="$xorg_testset_save_CFLAGS"
5402 fi
5403
5404 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407 fi
5408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5410 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5411 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415 /* end confdefs.h. */
5416 int i;
5417 _ACEOF
5418 if ac_fn_c_try_compile "$LINENO"; then :
5419 xorg_cv_cc_flag_unused_command_line_argument=yes
5420 else
5421 xorg_cv_cc_flag_unused_command_line_argument=no
5422 fi
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 fi
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5426 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5427 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5428 CFLAGS="$xorg_testset_save_CFLAGS"
5429 fi
5430
5431 found="no"
5432
5433 if test $found = "no" ; then
5434 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5435 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5436 fi
5437
5438 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5440 fi
5441
5442 CFLAGS="$CFLAGS -Wmissing-prototypes"
5443
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5445 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5446 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5447 if eval \${$cacheid+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451 /* end confdefs.h. */
5452 int i;
5453 int
5454 main ()
5455 {
5456
5457 ;
5458 return 0;
5459 }
5460 _ACEOF
5461 if ac_fn_c_try_link "$LINENO"; then :
5462 eval $cacheid=yes
5463 else
5464 eval $cacheid=no
5465 fi
5466 rm -f core conftest.err conftest.$ac_objext \
5467 conftest$ac_exeext conftest.$ac_ext
5468 fi
5469
5470
5471 CFLAGS="$xorg_testset_save_CFLAGS"
5472
5473 eval supported=\$$cacheid
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5475 $as_echo "$supported" >&6; }
5476 if test "$supported" = "yes" ; then
5477 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5478 found="yes"
5479 fi
5480 fi
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496 xorg_testset_save_CFLAGS="$CFLAGS"
5497
5498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5501 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5502 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5503 $as_echo_n "(cached) " >&6
5504 else
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5507 int i;
5508 _ACEOF
5509 if ac_fn_c_try_compile "$LINENO"; then :
5510 xorg_cv_cc_flag_unknown_warning_option=yes
5511 else
5512 xorg_cv_cc_flag_unknown_warning_option=no
5513 fi
5514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5515 fi
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5517 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5519 CFLAGS="$xorg_testset_save_CFLAGS"
5520 fi
5521
5522 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5525 fi
5526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5528 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5529 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531 else
5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5533 /* end confdefs.h. */
5534 int i;
5535 _ACEOF
5536 if ac_fn_c_try_compile "$LINENO"; then :
5537 xorg_cv_cc_flag_unused_command_line_argument=yes
5538 else
5539 xorg_cv_cc_flag_unused_command_line_argument=no
5540 fi
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542 fi
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5544 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5546 CFLAGS="$xorg_testset_save_CFLAGS"
5547 fi
5548
5549 found="no"
5550
5551 if test $found = "no" ; then
5552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5554 fi
5555
5556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5558 fi
5559
5560 CFLAGS="$CFLAGS -Wnested-externs"
5561
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5563 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5564 cacheid=xorg_cv_cc_flag__Wnested_externs
5565 if eval \${$cacheid+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5570 int i;
5571 int
5572 main ()
5573 {
5574
5575 ;
5576 return 0;
5577 }
5578 _ACEOF
5579 if ac_fn_c_try_link "$LINENO"; then :
5580 eval $cacheid=yes
5581 else
5582 eval $cacheid=no
5583 fi
5584 rm -f core conftest.err conftest.$ac_objext \
5585 conftest$ac_exeext conftest.$ac_ext
5586 fi
5587
5588
5589 CFLAGS="$xorg_testset_save_CFLAGS"
5590
5591 eval supported=\$$cacheid
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5593 $as_echo "$supported" >&6; }
5594 if test "$supported" = "yes" ; then
5595 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5596 found="yes"
5597 fi
5598 fi
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614 xorg_testset_save_CFLAGS="$CFLAGS"
5615
5616 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5619 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5620 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h. */
5625 int i;
5626 _ACEOF
5627 if ac_fn_c_try_compile "$LINENO"; then :
5628 xorg_cv_cc_flag_unknown_warning_option=yes
5629 else
5630 xorg_cv_cc_flag_unknown_warning_option=no
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5633 fi
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5635 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5637 CFLAGS="$xorg_testset_save_CFLAGS"
5638 fi
5639
5640 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643 fi
5644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5646 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5647 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 int i;
5653 _ACEOF
5654 if ac_fn_c_try_compile "$LINENO"; then :
5655 xorg_cv_cc_flag_unused_command_line_argument=yes
5656 else
5657 xorg_cv_cc_flag_unused_command_line_argument=no
5658 fi
5659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5660 fi
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5662 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5664 CFLAGS="$xorg_testset_save_CFLAGS"
5665 fi
5666
5667 found="no"
5668
5669 if test $found = "no" ; then
5670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5672 fi
5673
5674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5676 fi
5677
5678 CFLAGS="$CFLAGS -Wbad-function-cast"
5679
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5681 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5682 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5683 if eval \${$cacheid+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5688 int i;
5689 int
5690 main ()
5691 {
5692
5693 ;
5694 return 0;
5695 }
5696 _ACEOF
5697 if ac_fn_c_try_link "$LINENO"; then :
5698 eval $cacheid=yes
5699 else
5700 eval $cacheid=no
5701 fi
5702 rm -f core conftest.err conftest.$ac_objext \
5703 conftest$ac_exeext conftest.$ac_ext
5704 fi
5705
5706
5707 CFLAGS="$xorg_testset_save_CFLAGS"
5708
5709 eval supported=\$$cacheid
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5711 $as_echo "$supported" >&6; }
5712 if test "$supported" = "yes" ; then
5713 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5714 found="yes"
5715 fi
5716 fi
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732 xorg_testset_save_CFLAGS="$CFLAGS"
5733
5734 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5735 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5737 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5738 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5739 $as_echo_n "(cached) " >&6
5740 else
5741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5742 /* end confdefs.h. */
5743 int i;
5744 _ACEOF
5745 if ac_fn_c_try_compile "$LINENO"; then :
5746 xorg_cv_cc_flag_unknown_warning_option=yes
5747 else
5748 xorg_cv_cc_flag_unknown_warning_option=no
5749 fi
5750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5751 fi
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5753 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5754 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5755 CFLAGS="$xorg_testset_save_CFLAGS"
5756 fi
5757
5758 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5761 fi
5762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5764 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5765 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 int i;
5771 _ACEOF
5772 if ac_fn_c_try_compile "$LINENO"; then :
5773 xorg_cv_cc_flag_unused_command_line_argument=yes
5774 else
5775 xorg_cv_cc_flag_unused_command_line_argument=no
5776 fi
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 fi
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5780 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5782 CFLAGS="$xorg_testset_save_CFLAGS"
5783 fi
5784
5785 found="no"
5786
5787 if test $found = "no" ; then
5788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5790 fi
5791
5792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5794 fi
5795
5796 CFLAGS="$CFLAGS -Wold-style-definition"
5797
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5799 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5800 cacheid=xorg_cv_cc_flag__Wold_style_definition
5801 if eval \${$cacheid+:} false; then :
5802 $as_echo_n "(cached) " >&6
5803 else
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 int i;
5807 int
5808 main ()
5809 {
5810
5811 ;
5812 return 0;
5813 }
5814 _ACEOF
5815 if ac_fn_c_try_link "$LINENO"; then :
5816 eval $cacheid=yes
5817 else
5818 eval $cacheid=no
5819 fi
5820 rm -f core conftest.err conftest.$ac_objext \
5821 conftest$ac_exeext conftest.$ac_ext
5822 fi
5823
5824
5825 CFLAGS="$xorg_testset_save_CFLAGS"
5826
5827 eval supported=\$$cacheid
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5829 $as_echo "$supported" >&6; }
5830 if test "$supported" = "yes" ; then
5831 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5832 found="yes"
5833 fi
5834 fi
5835
5836 if test $found = "no" ; then
5837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5839 fi
5840
5841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5843 fi
5844
5845 CFLAGS="$CFLAGS -fd"
5846
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5848 $as_echo_n "checking if $CC supports -fd... " >&6; }
5849 cacheid=xorg_cv_cc_flag__fd
5850 if eval \${$cacheid+:} false; then :
5851 $as_echo_n "(cached) " >&6
5852 else
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 int i;
5856 int
5857 main ()
5858 {
5859
5860 ;
5861 return 0;
5862 }
5863 _ACEOF
5864 if ac_fn_c_try_link "$LINENO"; then :
5865 eval $cacheid=yes
5866 else
5867 eval $cacheid=no
5868 fi
5869 rm -f core conftest.err conftest.$ac_objext \
5870 conftest$ac_exeext conftest.$ac_ext
5871 fi
5872
5873
5874 CFLAGS="$xorg_testset_save_CFLAGS"
5875
5876 eval supported=\$$cacheid
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5878 $as_echo "$supported" >&6; }
5879 if test "$supported" = "yes" ; then
5880 BASE_CFLAGS="$BASE_CFLAGS -fd"
5881 found="yes"
5882 fi
5883 fi
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899 xorg_testset_save_CFLAGS="$CFLAGS"
5900
5901 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5904 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5905 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5906 $as_echo_n "(cached) " >&6
5907 else
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910 int i;
5911 _ACEOF
5912 if ac_fn_c_try_compile "$LINENO"; then :
5913 xorg_cv_cc_flag_unknown_warning_option=yes
5914 else
5915 xorg_cv_cc_flag_unknown_warning_option=no
5916 fi
5917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918 fi
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5920 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5922 CFLAGS="$xorg_testset_save_CFLAGS"
5923 fi
5924
5925 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5928 fi
5929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5931 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5932 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 int i;
5938 _ACEOF
5939 if ac_fn_c_try_compile "$LINENO"; then :
5940 xorg_cv_cc_flag_unused_command_line_argument=yes
5941 else
5942 xorg_cv_cc_flag_unused_command_line_argument=no
5943 fi
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945 fi
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5947 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5949 CFLAGS="$xorg_testset_save_CFLAGS"
5950 fi
5951
5952 found="no"
5953
5954 if test $found = "no" ; then
5955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5957 fi
5958
5959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5961 fi
5962
5963 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5964
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5966 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5967 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5968 if eval \${$cacheid+:} false; then :
5969 $as_echo_n "(cached) " >&6
5970 else
5971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 int i;
5974 int
5975 main ()
5976 {
5977
5978 ;
5979 return 0;
5980 }
5981 _ACEOF
5982 if ac_fn_c_try_link "$LINENO"; then :
5983 eval $cacheid=yes
5984 else
5985 eval $cacheid=no
5986 fi
5987 rm -f core conftest.err conftest.$ac_objext \
5988 conftest$ac_exeext conftest.$ac_ext
5989 fi
5990
5991
5992 CFLAGS="$xorg_testset_save_CFLAGS"
5993
5994 eval supported=\$$cacheid
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5996 $as_echo "$supported" >&6; }
5997 if test "$supported" = "yes" ; then
5998 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5999 found="yes"
6000 fi
6001 fi
6002
6003
6004
6005
6006
6007 # This chunk adds additional warnings that could catch undesired effects.
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021 xorg_testset_save_CFLAGS="$CFLAGS"
6022
6023 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6026 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6027 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 int i;
6033 _ACEOF
6034 if ac_fn_c_try_compile "$LINENO"; then :
6035 xorg_cv_cc_flag_unknown_warning_option=yes
6036 else
6037 xorg_cv_cc_flag_unknown_warning_option=no
6038 fi
6039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6040 fi
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6042 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6043 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6044 CFLAGS="$xorg_testset_save_CFLAGS"
6045 fi
6046
6047 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6050 fi
6051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6053 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6054 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6055 $as_echo_n "(cached) " >&6
6056 else
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6059 int i;
6060 _ACEOF
6061 if ac_fn_c_try_compile "$LINENO"; then :
6062 xorg_cv_cc_flag_unused_command_line_argument=yes
6063 else
6064 xorg_cv_cc_flag_unused_command_line_argument=no
6065 fi
6066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6067 fi
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6069 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6071 CFLAGS="$xorg_testset_save_CFLAGS"
6072 fi
6073
6074 found="no"
6075
6076 if test $found = "no" ; then
6077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6079 fi
6080
6081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6083 fi
6084
6085 CFLAGS="$CFLAGS -Wunused"
6086
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6088 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
6089 cacheid=xorg_cv_cc_flag__Wunused
6090 if eval \${$cacheid+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6094 /* end confdefs.h. */
6095 int i;
6096 int
6097 main ()
6098 {
6099
6100 ;
6101 return 0;
6102 }
6103 _ACEOF
6104 if ac_fn_c_try_link "$LINENO"; then :
6105 eval $cacheid=yes
6106 else
6107 eval $cacheid=no
6108 fi
6109 rm -f core conftest.err conftest.$ac_objext \
6110 conftest$ac_exeext conftest.$ac_ext
6111 fi
6112
6113
6114 CFLAGS="$xorg_testset_save_CFLAGS"
6115
6116 eval supported=\$$cacheid
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6118 $as_echo "$supported" >&6; }
6119 if test "$supported" = "yes" ; then
6120 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6121 found="yes"
6122 fi
6123 fi
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139 xorg_testset_save_CFLAGS="$CFLAGS"
6140
6141 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6144 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6145 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6146 $as_echo_n "(cached) " >&6
6147 else
6148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6149 /* end confdefs.h. */
6150 int i;
6151 _ACEOF
6152 if ac_fn_c_try_compile "$LINENO"; then :
6153 xorg_cv_cc_flag_unknown_warning_option=yes
6154 else
6155 xorg_cv_cc_flag_unknown_warning_option=no
6156 fi
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 fi
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6160 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6162 CFLAGS="$xorg_testset_save_CFLAGS"
6163 fi
6164
6165 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6168 fi
6169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6171 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6172 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6176 /* end confdefs.h. */
6177 int i;
6178 _ACEOF
6179 if ac_fn_c_try_compile "$LINENO"; then :
6180 xorg_cv_cc_flag_unused_command_line_argument=yes
6181 else
6182 xorg_cv_cc_flag_unused_command_line_argument=no
6183 fi
6184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185 fi
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6187 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6189 CFLAGS="$xorg_testset_save_CFLAGS"
6190 fi
6191
6192 found="no"
6193
6194 if test $found = "no" ; then
6195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6197 fi
6198
6199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6201 fi
6202
6203 CFLAGS="$CFLAGS -Wuninitialized"
6204
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6206 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6207 cacheid=xorg_cv_cc_flag__Wuninitialized
6208 if eval \${$cacheid+:} false; then :
6209 $as_echo_n "(cached) " >&6
6210 else
6211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6212 /* end confdefs.h. */
6213 int i;
6214 int
6215 main ()
6216 {
6217
6218 ;
6219 return 0;
6220 }
6221 _ACEOF
6222 if ac_fn_c_try_link "$LINENO"; then :
6223 eval $cacheid=yes
6224 else
6225 eval $cacheid=no
6226 fi
6227 rm -f core conftest.err conftest.$ac_objext \
6228 conftest$ac_exeext conftest.$ac_ext
6229 fi
6230
6231
6232 CFLAGS="$xorg_testset_save_CFLAGS"
6233
6234 eval supported=\$$cacheid
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6236 $as_echo "$supported" >&6; }
6237 if test "$supported" = "yes" ; then
6238 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6239 found="yes"
6240 fi
6241 fi
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257 xorg_testset_save_CFLAGS="$CFLAGS"
6258
6259 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6262 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6263 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6264 $as_echo_n "(cached) " >&6
6265 else
6266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6267 /* end confdefs.h. */
6268 int i;
6269 _ACEOF
6270 if ac_fn_c_try_compile "$LINENO"; then :
6271 xorg_cv_cc_flag_unknown_warning_option=yes
6272 else
6273 xorg_cv_cc_flag_unknown_warning_option=no
6274 fi
6275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 fi
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6278 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6280 CFLAGS="$xorg_testset_save_CFLAGS"
6281 fi
6282
6283 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6286 fi
6287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6289 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6290 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294 /* end confdefs.h. */
6295 int i;
6296 _ACEOF
6297 if ac_fn_c_try_compile "$LINENO"; then :
6298 xorg_cv_cc_flag_unused_command_line_argument=yes
6299 else
6300 xorg_cv_cc_flag_unused_command_line_argument=no
6301 fi
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6305 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6307 CFLAGS="$xorg_testset_save_CFLAGS"
6308 fi
6309
6310 found="no"
6311
6312 if test $found = "no" ; then
6313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6315 fi
6316
6317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6319 fi
6320
6321 CFLAGS="$CFLAGS -Wshadow"
6322
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6324 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6325 cacheid=xorg_cv_cc_flag__Wshadow
6326 if eval \${$cacheid+:} false; then :
6327 $as_echo_n "(cached) " >&6
6328 else
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 int i;
6332 int
6333 main ()
6334 {
6335
6336 ;
6337 return 0;
6338 }
6339 _ACEOF
6340 if ac_fn_c_try_link "$LINENO"; then :
6341 eval $cacheid=yes
6342 else
6343 eval $cacheid=no
6344 fi
6345 rm -f core conftest.err conftest.$ac_objext \
6346 conftest$ac_exeext conftest.$ac_ext
6347 fi
6348
6349
6350 CFLAGS="$xorg_testset_save_CFLAGS"
6351
6352 eval supported=\$$cacheid
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6354 $as_echo "$supported" >&6; }
6355 if test "$supported" = "yes" ; then
6356 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6357 found="yes"
6358 fi
6359 fi
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375 xorg_testset_save_CFLAGS="$CFLAGS"
6376
6377 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6380 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6381 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6382 $as_echo_n "(cached) " >&6
6383 else
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6386 int i;
6387 _ACEOF
6388 if ac_fn_c_try_compile "$LINENO"; then :
6389 xorg_cv_cc_flag_unknown_warning_option=yes
6390 else
6391 xorg_cv_cc_flag_unknown_warning_option=no
6392 fi
6393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6394 fi
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6396 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6398 CFLAGS="$xorg_testset_save_CFLAGS"
6399 fi
6400
6401 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404 fi
6405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6407 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6408 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6409 $as_echo_n "(cached) " >&6
6410 else
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6413 int i;
6414 _ACEOF
6415 if ac_fn_c_try_compile "$LINENO"; then :
6416 xorg_cv_cc_flag_unused_command_line_argument=yes
6417 else
6418 xorg_cv_cc_flag_unused_command_line_argument=no
6419 fi
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 fi
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6423 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6425 CFLAGS="$xorg_testset_save_CFLAGS"
6426 fi
6427
6428 found="no"
6429
6430 if test $found = "no" ; then
6431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6433 fi
6434
6435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6437 fi
6438
6439 CFLAGS="$CFLAGS -Wmissing-noreturn"
6440
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6442 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6443 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6444 if eval \${$cacheid+:} false; then :
6445 $as_echo_n "(cached) " >&6
6446 else
6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6448 /* end confdefs.h. */
6449 int i;
6450 int
6451 main ()
6452 {
6453
6454 ;
6455 return 0;
6456 }
6457 _ACEOF
6458 if ac_fn_c_try_link "$LINENO"; then :
6459 eval $cacheid=yes
6460 else
6461 eval $cacheid=no
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext \
6464 conftest$ac_exeext conftest.$ac_ext
6465 fi
6466
6467
6468 CFLAGS="$xorg_testset_save_CFLAGS"
6469
6470 eval supported=\$$cacheid
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6472 $as_echo "$supported" >&6; }
6473 if test "$supported" = "yes" ; then
6474 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6475 found="yes"
6476 fi
6477 fi
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493 xorg_testset_save_CFLAGS="$CFLAGS"
6494
6495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6498 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6499 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6500 $as_echo_n "(cached) " >&6
6501 else
6502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6503 /* end confdefs.h. */
6504 int i;
6505 _ACEOF
6506 if ac_fn_c_try_compile "$LINENO"; then :
6507 xorg_cv_cc_flag_unknown_warning_option=yes
6508 else
6509 xorg_cv_cc_flag_unknown_warning_option=no
6510 fi
6511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6512 fi
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6514 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6516 CFLAGS="$xorg_testset_save_CFLAGS"
6517 fi
6518
6519 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6522 fi
6523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6525 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6526 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531 int i;
6532 _ACEOF
6533 if ac_fn_c_try_compile "$LINENO"; then :
6534 xorg_cv_cc_flag_unused_command_line_argument=yes
6535 else
6536 xorg_cv_cc_flag_unused_command_line_argument=no
6537 fi
6538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539 fi
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6541 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6543 CFLAGS="$xorg_testset_save_CFLAGS"
6544 fi
6545
6546 found="no"
6547
6548 if test $found = "no" ; then
6549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6551 fi
6552
6553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6555 fi
6556
6557 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6558
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6560 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6561 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6562 if eval \${$cacheid+:} false; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566 /* end confdefs.h. */
6567 int i;
6568 int
6569 main ()
6570 {
6571
6572 ;
6573 return 0;
6574 }
6575 _ACEOF
6576 if ac_fn_c_try_link "$LINENO"; then :
6577 eval $cacheid=yes
6578 else
6579 eval $cacheid=no
6580 fi
6581 rm -f core conftest.err conftest.$ac_objext \
6582 conftest$ac_exeext conftest.$ac_ext
6583 fi
6584
6585
6586 CFLAGS="$xorg_testset_save_CFLAGS"
6587
6588 eval supported=\$$cacheid
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6590 $as_echo "$supported" >&6; }
6591 if test "$supported" = "yes" ; then
6592 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6593 found="yes"
6594 fi
6595 fi
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611 xorg_testset_save_CFLAGS="$CFLAGS"
6612
6613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6616 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6617 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6618 $as_echo_n "(cached) " >&6
6619 else
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6622 int i;
6623 _ACEOF
6624 if ac_fn_c_try_compile "$LINENO"; then :
6625 xorg_cv_cc_flag_unknown_warning_option=yes
6626 else
6627 xorg_cv_cc_flag_unknown_warning_option=no
6628 fi
6629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6630 fi
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6632 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6634 CFLAGS="$xorg_testset_save_CFLAGS"
6635 fi
6636
6637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6640 fi
6641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6643 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6644 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6645 $as_echo_n "(cached) " >&6
6646 else
6647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6648 /* end confdefs.h. */
6649 int i;
6650 _ACEOF
6651 if ac_fn_c_try_compile "$LINENO"; then :
6652 xorg_cv_cc_flag_unused_command_line_argument=yes
6653 else
6654 xorg_cv_cc_flag_unused_command_line_argument=no
6655 fi
6656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6657 fi
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6659 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6661 CFLAGS="$xorg_testset_save_CFLAGS"
6662 fi
6663
6664 found="no"
6665
6666 if test $found = "no" ; then
6667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6669 fi
6670
6671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6673 fi
6674
6675 CFLAGS="$CFLAGS -Wredundant-decls"
6676
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6678 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6679 cacheid=xorg_cv_cc_flag__Wredundant_decls
6680 if eval \${$cacheid+:} false; then :
6681 $as_echo_n "(cached) " >&6
6682 else
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685 int i;
6686 int
6687 main ()
6688 {
6689
6690 ;
6691 return 0;
6692 }
6693 _ACEOF
6694 if ac_fn_c_try_link "$LINENO"; then :
6695 eval $cacheid=yes
6696 else
6697 eval $cacheid=no
6698 fi
6699 rm -f core conftest.err conftest.$ac_objext \
6700 conftest$ac_exeext conftest.$ac_ext
6701 fi
6702
6703
6704 CFLAGS="$xorg_testset_save_CFLAGS"
6705
6706 eval supported=\$$cacheid
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6708 $as_echo "$supported" >&6; }
6709 if test "$supported" = "yes" ; then
6710 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6711 found="yes"
6712 fi
6713 fi
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729 xorg_testset_save_CFLAGS="$CFLAGS"
6730
6731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6734 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6735 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6736 $as_echo_n "(cached) " >&6
6737 else
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6740 int i;
6741 _ACEOF
6742 if ac_fn_c_try_compile "$LINENO"; then :
6743 xorg_cv_cc_flag_unknown_warning_option=yes
6744 else
6745 xorg_cv_cc_flag_unknown_warning_option=no
6746 fi
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 fi
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6750 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6751 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6752 CFLAGS="$xorg_testset_save_CFLAGS"
6753 fi
6754
6755 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6756 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6758 fi
6759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6761 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6762 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6763 $as_echo_n "(cached) " >&6
6764 else
6765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6766 /* end confdefs.h. */
6767 int i;
6768 _ACEOF
6769 if ac_fn_c_try_compile "$LINENO"; then :
6770 xorg_cv_cc_flag_unused_command_line_argument=yes
6771 else
6772 xorg_cv_cc_flag_unused_command_line_argument=no
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6775 fi
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6777 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6778 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6779 CFLAGS="$xorg_testset_save_CFLAGS"
6780 fi
6781
6782 found="no"
6783
6784 if test $found = "no" ; then
6785 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6787 fi
6788
6789 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6791 fi
6792
6793 CFLAGS="$CFLAGS -Wlogical-op"
6794
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6796 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6797 cacheid=xorg_cv_cc_flag__Wlogical_op
6798 if eval \${$cacheid+:} false; then :
6799 $as_echo_n "(cached) " >&6
6800 else
6801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803 int i;
6804 int
6805 main ()
6806 {
6807
6808 ;
6809 return 0;
6810 }
6811 _ACEOF
6812 if ac_fn_c_try_link "$LINENO"; then :
6813 eval $cacheid=yes
6814 else
6815 eval $cacheid=no
6816 fi
6817 rm -f core conftest.err conftest.$ac_objext \
6818 conftest$ac_exeext conftest.$ac_ext
6819 fi
6820
6821
6822 CFLAGS="$xorg_testset_save_CFLAGS"
6823
6824 eval supported=\$$cacheid
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6826 $as_echo "$supported" >&6; }
6827 if test "$supported" = "yes" ; then
6828 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6829 found="yes"
6830 fi
6831 fi
6832
6833
6834
6835 # These are currently disabled because they are noisy. They will be enabled
6836 # in the future once the codebase is sufficiently modernized to silence
6837 # them. For now, I don't want them to drown out the other warnings.
6838 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6839 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6840 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6841
6842 # Turn some warnings into errors, so we don't accidently get successful builds
6843 # when there are problems that should be fixed.
6844
6845 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859 xorg_testset_save_CFLAGS="$CFLAGS"
6860
6861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6864 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6865 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6870 int i;
6871 _ACEOF
6872 if ac_fn_c_try_compile "$LINENO"; then :
6873 xorg_cv_cc_flag_unknown_warning_option=yes
6874 else
6875 xorg_cv_cc_flag_unknown_warning_option=no
6876 fi
6877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878 fi
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6880 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6881 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6882 CFLAGS="$xorg_testset_save_CFLAGS"
6883 fi
6884
6885 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6886 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6887 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6888 fi
6889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6891 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6892 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6893 $as_echo_n "(cached) " >&6
6894 else
6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h. */
6897 int i;
6898 _ACEOF
6899 if ac_fn_c_try_compile "$LINENO"; then :
6900 xorg_cv_cc_flag_unused_command_line_argument=yes
6901 else
6902 xorg_cv_cc_flag_unused_command_line_argument=no
6903 fi
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6905 fi
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6907 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6908 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6909 CFLAGS="$xorg_testset_save_CFLAGS"
6910 fi
6911
6912 found="no"
6913
6914 if test $found = "no" ; then
6915 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6917 fi
6918
6919 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6921 fi
6922
6923 CFLAGS="$CFLAGS -Werror=implicit"
6924
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6926 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6927 cacheid=xorg_cv_cc_flag__Werror_implicit
6928 if eval \${$cacheid+:} false; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 int i;
6934 int
6935 main ()
6936 {
6937
6938 ;
6939 return 0;
6940 }
6941 _ACEOF
6942 if ac_fn_c_try_link "$LINENO"; then :
6943 eval $cacheid=yes
6944 else
6945 eval $cacheid=no
6946 fi
6947 rm -f core conftest.err conftest.$ac_objext \
6948 conftest$ac_exeext conftest.$ac_ext
6949 fi
6950
6951
6952 CFLAGS="$xorg_testset_save_CFLAGS"
6953
6954 eval supported=\$$cacheid
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6956 $as_echo "$supported" >&6; }
6957 if test "$supported" = "yes" ; then
6958 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6959 found="yes"
6960 fi
6961 fi
6962
6963 if test $found = "no" ; then
6964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6966 fi
6967
6968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6970 fi
6971
6972 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6973
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6975 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6976 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6977 if eval \${$cacheid+:} false; then :
6978 $as_echo_n "(cached) " >&6
6979 else
6980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6981 /* end confdefs.h. */
6982 int i;
6983 int
6984 main ()
6985 {
6986
6987 ;
6988 return 0;
6989 }
6990 _ACEOF
6991 if ac_fn_c_try_link "$LINENO"; then :
6992 eval $cacheid=yes
6993 else
6994 eval $cacheid=no
6995 fi
6996 rm -f core conftest.err conftest.$ac_objext \
6997 conftest$ac_exeext conftest.$ac_ext
6998 fi
6999
7000
7001 CFLAGS="$xorg_testset_save_CFLAGS"
7002
7003 eval supported=\$$cacheid
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7005 $as_echo "$supported" >&6; }
7006 if test "$supported" = "yes" ; then
7007 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7008 found="yes"
7009 fi
7010 fi
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026 xorg_testset_save_CFLAGS="$CFLAGS"
7027
7028 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7031 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7032 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7037 int i;
7038 _ACEOF
7039 if ac_fn_c_try_compile "$LINENO"; then :
7040 xorg_cv_cc_flag_unknown_warning_option=yes
7041 else
7042 xorg_cv_cc_flag_unknown_warning_option=no
7043 fi
7044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7045 fi
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7047 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7048 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7049 CFLAGS="$xorg_testset_save_CFLAGS"
7050 fi
7051
7052 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7055 fi
7056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7058 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7059 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7060 $as_echo_n "(cached) " >&6
7061 else
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 int i;
7065 _ACEOF
7066 if ac_fn_c_try_compile "$LINENO"; then :
7067 xorg_cv_cc_flag_unused_command_line_argument=yes
7068 else
7069 xorg_cv_cc_flag_unused_command_line_argument=no
7070 fi
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072 fi
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7074 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7076 CFLAGS="$xorg_testset_save_CFLAGS"
7077 fi
7078
7079 found="no"
7080
7081 if test $found = "no" ; then
7082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7084 fi
7085
7086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7088 fi
7089
7090 CFLAGS="$CFLAGS -Werror=nonnull"
7091
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7093 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7094 cacheid=xorg_cv_cc_flag__Werror_nonnull
7095 if eval \${$cacheid+:} false; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7100 int i;
7101 int
7102 main ()
7103 {
7104
7105 ;
7106 return 0;
7107 }
7108 _ACEOF
7109 if ac_fn_c_try_link "$LINENO"; then :
7110 eval $cacheid=yes
7111 else
7112 eval $cacheid=no
7113 fi
7114 rm -f core conftest.err conftest.$ac_objext \
7115 conftest$ac_exeext conftest.$ac_ext
7116 fi
7117
7118
7119 CFLAGS="$xorg_testset_save_CFLAGS"
7120
7121 eval supported=\$$cacheid
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7123 $as_echo "$supported" >&6; }
7124 if test "$supported" = "yes" ; then
7125 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7126 found="yes"
7127 fi
7128 fi
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144 xorg_testset_save_CFLAGS="$CFLAGS"
7145
7146 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7149 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7150 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7151 $as_echo_n "(cached) " >&6
7152 else
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7155 int i;
7156 _ACEOF
7157 if ac_fn_c_try_compile "$LINENO"; then :
7158 xorg_cv_cc_flag_unknown_warning_option=yes
7159 else
7160 xorg_cv_cc_flag_unknown_warning_option=no
7161 fi
7162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7163 fi
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7165 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7167 CFLAGS="$xorg_testset_save_CFLAGS"
7168 fi
7169
7170 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7173 fi
7174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7176 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7177 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7181 /* end confdefs.h. */
7182 int i;
7183 _ACEOF
7184 if ac_fn_c_try_compile "$LINENO"; then :
7185 xorg_cv_cc_flag_unused_command_line_argument=yes
7186 else
7187 xorg_cv_cc_flag_unused_command_line_argument=no
7188 fi
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 fi
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7192 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7194 CFLAGS="$xorg_testset_save_CFLAGS"
7195 fi
7196
7197 found="no"
7198
7199 if test $found = "no" ; then
7200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7202 fi
7203
7204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7206 fi
7207
7208 CFLAGS="$CFLAGS -Werror=init-self"
7209
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7211 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7212 cacheid=xorg_cv_cc_flag__Werror_init_self
7213 if eval \${$cacheid+:} false; then :
7214 $as_echo_n "(cached) " >&6
7215 else
7216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7218 int i;
7219 int
7220 main ()
7221 {
7222
7223 ;
7224 return 0;
7225 }
7226 _ACEOF
7227 if ac_fn_c_try_link "$LINENO"; then :
7228 eval $cacheid=yes
7229 else
7230 eval $cacheid=no
7231 fi
7232 rm -f core conftest.err conftest.$ac_objext \
7233 conftest$ac_exeext conftest.$ac_ext
7234 fi
7235
7236
7237 CFLAGS="$xorg_testset_save_CFLAGS"
7238
7239 eval supported=\$$cacheid
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7241 $as_echo "$supported" >&6; }
7242 if test "$supported" = "yes" ; then
7243 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7244 found="yes"
7245 fi
7246 fi
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262 xorg_testset_save_CFLAGS="$CFLAGS"
7263
7264 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7267 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7268 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7272 /* end confdefs.h. */
7273 int i;
7274 _ACEOF
7275 if ac_fn_c_try_compile "$LINENO"; then :
7276 xorg_cv_cc_flag_unknown_warning_option=yes
7277 else
7278 xorg_cv_cc_flag_unknown_warning_option=no
7279 fi
7280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7281 fi
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7283 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7284 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7285 CFLAGS="$xorg_testset_save_CFLAGS"
7286 fi
7287
7288 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7289 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7291 fi
7292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7294 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7295 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7296 $as_echo_n "(cached) " >&6
7297 else
7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h. */
7300 int i;
7301 _ACEOF
7302 if ac_fn_c_try_compile "$LINENO"; then :
7303 xorg_cv_cc_flag_unused_command_line_argument=yes
7304 else
7305 xorg_cv_cc_flag_unused_command_line_argument=no
7306 fi
7307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7308 fi
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7310 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7312 CFLAGS="$xorg_testset_save_CFLAGS"
7313 fi
7314
7315 found="no"
7316
7317 if test $found = "no" ; then
7318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7320 fi
7321
7322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7324 fi
7325
7326 CFLAGS="$CFLAGS -Werror=main"
7327
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7329 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7330 cacheid=xorg_cv_cc_flag__Werror_main
7331 if eval \${$cacheid+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7336 int i;
7337 int
7338 main ()
7339 {
7340
7341 ;
7342 return 0;
7343 }
7344 _ACEOF
7345 if ac_fn_c_try_link "$LINENO"; then :
7346 eval $cacheid=yes
7347 else
7348 eval $cacheid=no
7349 fi
7350 rm -f core conftest.err conftest.$ac_objext \
7351 conftest$ac_exeext conftest.$ac_ext
7352 fi
7353
7354
7355 CFLAGS="$xorg_testset_save_CFLAGS"
7356
7357 eval supported=\$$cacheid
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7359 $as_echo "$supported" >&6; }
7360 if test "$supported" = "yes" ; then
7361 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7362 found="yes"
7363 fi
7364 fi
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380 xorg_testset_save_CFLAGS="$CFLAGS"
7381
7382 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7385 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7386 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7387 $as_echo_n "(cached) " >&6
7388 else
7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7391 int i;
7392 _ACEOF
7393 if ac_fn_c_try_compile "$LINENO"; then :
7394 xorg_cv_cc_flag_unknown_warning_option=yes
7395 else
7396 xorg_cv_cc_flag_unknown_warning_option=no
7397 fi
7398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7399 fi
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7401 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7403 CFLAGS="$xorg_testset_save_CFLAGS"
7404 fi
7405
7406 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7409 fi
7410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7412 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7413 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7418 int i;
7419 _ACEOF
7420 if ac_fn_c_try_compile "$LINENO"; then :
7421 xorg_cv_cc_flag_unused_command_line_argument=yes
7422 else
7423 xorg_cv_cc_flag_unused_command_line_argument=no
7424 fi
7425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426 fi
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7428 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7429 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7430 CFLAGS="$xorg_testset_save_CFLAGS"
7431 fi
7432
7433 found="no"
7434
7435 if test $found = "no" ; then
7436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7438 fi
7439
7440 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7442 fi
7443
7444 CFLAGS="$CFLAGS -Werror=missing-braces"
7445
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7447 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7448 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7449 if eval \${$cacheid+:} false; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 int i;
7455 int
7456 main ()
7457 {
7458
7459 ;
7460 return 0;
7461 }
7462 _ACEOF
7463 if ac_fn_c_try_link "$LINENO"; then :
7464 eval $cacheid=yes
7465 else
7466 eval $cacheid=no
7467 fi
7468 rm -f core conftest.err conftest.$ac_objext \
7469 conftest$ac_exeext conftest.$ac_ext
7470 fi
7471
7472
7473 CFLAGS="$xorg_testset_save_CFLAGS"
7474
7475 eval supported=\$$cacheid
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7477 $as_echo "$supported" >&6; }
7478 if test "$supported" = "yes" ; then
7479 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7480 found="yes"
7481 fi
7482 fi
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 xorg_testset_save_CFLAGS="$CFLAGS"
7499
7500 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7503 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7504 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7509 int i;
7510 _ACEOF
7511 if ac_fn_c_try_compile "$LINENO"; then :
7512 xorg_cv_cc_flag_unknown_warning_option=yes
7513 else
7514 xorg_cv_cc_flag_unknown_warning_option=no
7515 fi
7516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7517 fi
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7519 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7520 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7521 CFLAGS="$xorg_testset_save_CFLAGS"
7522 fi
7523
7524 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7525 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7527 fi
7528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7530 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7531 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7532 $as_echo_n "(cached) " >&6
7533 else
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7536 int i;
7537 _ACEOF
7538 if ac_fn_c_try_compile "$LINENO"; then :
7539 xorg_cv_cc_flag_unused_command_line_argument=yes
7540 else
7541 xorg_cv_cc_flag_unused_command_line_argument=no
7542 fi
7543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 fi
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7546 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7548 CFLAGS="$xorg_testset_save_CFLAGS"
7549 fi
7550
7551 found="no"
7552
7553 if test $found = "no" ; then
7554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7556 fi
7557
7558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7560 fi
7561
7562 CFLAGS="$CFLAGS -Werror=sequence-point"
7563
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7565 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7566 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7567 if eval \${$cacheid+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569 else
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7572 int i;
7573 int
7574 main ()
7575 {
7576
7577 ;
7578 return 0;
7579 }
7580 _ACEOF
7581 if ac_fn_c_try_link "$LINENO"; then :
7582 eval $cacheid=yes
7583 else
7584 eval $cacheid=no
7585 fi
7586 rm -f core conftest.err conftest.$ac_objext \
7587 conftest$ac_exeext conftest.$ac_ext
7588 fi
7589
7590
7591 CFLAGS="$xorg_testset_save_CFLAGS"
7592
7593 eval supported=\$$cacheid
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7595 $as_echo "$supported" >&6; }
7596 if test "$supported" = "yes" ; then
7597 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7598 found="yes"
7599 fi
7600 fi
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616 xorg_testset_save_CFLAGS="$CFLAGS"
7617
7618 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7619 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7621 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7622 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7626 /* end confdefs.h. */
7627 int i;
7628 _ACEOF
7629 if ac_fn_c_try_compile "$LINENO"; then :
7630 xorg_cv_cc_flag_unknown_warning_option=yes
7631 else
7632 xorg_cv_cc_flag_unknown_warning_option=no
7633 fi
7634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7635 fi
7636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7637 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7639 CFLAGS="$xorg_testset_save_CFLAGS"
7640 fi
7641
7642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7645 fi
7646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7648 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7649 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7650 $as_echo_n "(cached) " >&6
7651 else
7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h. */
7654 int i;
7655 _ACEOF
7656 if ac_fn_c_try_compile "$LINENO"; then :
7657 xorg_cv_cc_flag_unused_command_line_argument=yes
7658 else
7659 xorg_cv_cc_flag_unused_command_line_argument=no
7660 fi
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 fi
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7664 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7666 CFLAGS="$xorg_testset_save_CFLAGS"
7667 fi
7668
7669 found="no"
7670
7671 if test $found = "no" ; then
7672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7674 fi
7675
7676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678 fi
7679
7680 CFLAGS="$CFLAGS -Werror=return-type"
7681
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7683 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7684 cacheid=xorg_cv_cc_flag__Werror_return_type
7685 if eval \${$cacheid+:} false; then :
7686 $as_echo_n "(cached) " >&6
7687 else
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7690 int i;
7691 int
7692 main ()
7693 {
7694
7695 ;
7696 return 0;
7697 }
7698 _ACEOF
7699 if ac_fn_c_try_link "$LINENO"; then :
7700 eval $cacheid=yes
7701 else
7702 eval $cacheid=no
7703 fi
7704 rm -f core conftest.err conftest.$ac_objext \
7705 conftest$ac_exeext conftest.$ac_ext
7706 fi
7707
7708
7709 CFLAGS="$xorg_testset_save_CFLAGS"
7710
7711 eval supported=\$$cacheid
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7713 $as_echo "$supported" >&6; }
7714 if test "$supported" = "yes" ; then
7715 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7716 found="yes"
7717 fi
7718 fi
7719
7720 if test $found = "no" ; then
7721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7723 fi
7724
7725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7727 fi
7728
7729 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7730
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7732 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7733 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7734 if eval \${$cacheid+:} false; then :
7735 $as_echo_n "(cached) " >&6
7736 else
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 int i;
7740 int
7741 main ()
7742 {
7743
7744 ;
7745 return 0;
7746 }
7747 _ACEOF
7748 if ac_fn_c_try_link "$LINENO"; then :
7749 eval $cacheid=yes
7750 else
7751 eval $cacheid=no
7752 fi
7753 rm -f core conftest.err conftest.$ac_objext \
7754 conftest$ac_exeext conftest.$ac_ext
7755 fi
7756
7757
7758 CFLAGS="$xorg_testset_save_CFLAGS"
7759
7760 eval supported=\$$cacheid
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7762 $as_echo "$supported" >&6; }
7763 if test "$supported" = "yes" ; then
7764 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7765 found="yes"
7766 fi
7767 fi
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783 xorg_testset_save_CFLAGS="$CFLAGS"
7784
7785 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7788 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7789 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7790 $as_echo_n "(cached) " >&6
7791 else
7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793 /* end confdefs.h. */
7794 int i;
7795 _ACEOF
7796 if ac_fn_c_try_compile "$LINENO"; then :
7797 xorg_cv_cc_flag_unknown_warning_option=yes
7798 else
7799 xorg_cv_cc_flag_unknown_warning_option=no
7800 fi
7801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7802 fi
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7804 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7806 CFLAGS="$xorg_testset_save_CFLAGS"
7807 fi
7808
7809 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7812 fi
7813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7815 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7816 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821 int i;
7822 _ACEOF
7823 if ac_fn_c_try_compile "$LINENO"; then :
7824 xorg_cv_cc_flag_unused_command_line_argument=yes
7825 else
7826 xorg_cv_cc_flag_unused_command_line_argument=no
7827 fi
7828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7829 fi
7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7831 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7833 CFLAGS="$xorg_testset_save_CFLAGS"
7834 fi
7835
7836 found="no"
7837
7838 if test $found = "no" ; then
7839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7841 fi
7842
7843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7845 fi
7846
7847 CFLAGS="$CFLAGS -Werror=trigraphs"
7848
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7850 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7851 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7852 if eval \${$cacheid+:} false; then :
7853 $as_echo_n "(cached) " >&6
7854 else
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7857 int i;
7858 int
7859 main ()
7860 {
7861
7862 ;
7863 return 0;
7864 }
7865 _ACEOF
7866 if ac_fn_c_try_link "$LINENO"; then :
7867 eval $cacheid=yes
7868 else
7869 eval $cacheid=no
7870 fi
7871 rm -f core conftest.err conftest.$ac_objext \
7872 conftest$ac_exeext conftest.$ac_ext
7873 fi
7874
7875
7876 CFLAGS="$xorg_testset_save_CFLAGS"
7877
7878 eval supported=\$$cacheid
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7880 $as_echo "$supported" >&6; }
7881 if test "$supported" = "yes" ; then
7882 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7883 found="yes"
7884 fi
7885 fi
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901 xorg_testset_save_CFLAGS="$CFLAGS"
7902
7903 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7906 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7907 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7908 $as_echo_n "(cached) " >&6
7909 else
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912 int i;
7913 _ACEOF
7914 if ac_fn_c_try_compile "$LINENO"; then :
7915 xorg_cv_cc_flag_unknown_warning_option=yes
7916 else
7917 xorg_cv_cc_flag_unknown_warning_option=no
7918 fi
7919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920 fi
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7922 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7923 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7924 CFLAGS="$xorg_testset_save_CFLAGS"
7925 fi
7926
7927 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7928 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930 fi
7931 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7933 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7934 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7939 int i;
7940 _ACEOF
7941 if ac_fn_c_try_compile "$LINENO"; then :
7942 xorg_cv_cc_flag_unused_command_line_argument=yes
7943 else
7944 xorg_cv_cc_flag_unused_command_line_argument=no
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947 fi
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7949 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7950 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7951 CFLAGS="$xorg_testset_save_CFLAGS"
7952 fi
7953
7954 found="no"
7955
7956 if test $found = "no" ; then
7957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7959 fi
7960
7961 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7963 fi
7964
7965 CFLAGS="$CFLAGS -Werror=array-bounds"
7966
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7968 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7969 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7970 if eval \${$cacheid+:} false; then :
7971 $as_echo_n "(cached) " >&6
7972 else
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7975 int i;
7976 int
7977 main ()
7978 {
7979
7980 ;
7981 return 0;
7982 }
7983 _ACEOF
7984 if ac_fn_c_try_link "$LINENO"; then :
7985 eval $cacheid=yes
7986 else
7987 eval $cacheid=no
7988 fi
7989 rm -f core conftest.err conftest.$ac_objext \
7990 conftest$ac_exeext conftest.$ac_ext
7991 fi
7992
7993
7994 CFLAGS="$xorg_testset_save_CFLAGS"
7995
7996 eval supported=\$$cacheid
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7998 $as_echo "$supported" >&6; }
7999 if test "$supported" = "yes" ; then
8000 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8001 found="yes"
8002 fi
8003 fi
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019 xorg_testset_save_CFLAGS="$CFLAGS"
8020
8021 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8024 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8025 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8030 int i;
8031 _ACEOF
8032 if ac_fn_c_try_compile "$LINENO"; then :
8033 xorg_cv_cc_flag_unknown_warning_option=yes
8034 else
8035 xorg_cv_cc_flag_unknown_warning_option=no
8036 fi
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 fi
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8040 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8042 CFLAGS="$xorg_testset_save_CFLAGS"
8043 fi
8044
8045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048 fi
8049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8051 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8052 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8057 int i;
8058 _ACEOF
8059 if ac_fn_c_try_compile "$LINENO"; then :
8060 xorg_cv_cc_flag_unused_command_line_argument=yes
8061 else
8062 xorg_cv_cc_flag_unused_command_line_argument=no
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 fi
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8067 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8068 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8069 CFLAGS="$xorg_testset_save_CFLAGS"
8070 fi
8071
8072 found="no"
8073
8074 if test $found = "no" ; then
8075 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8077 fi
8078
8079 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8081 fi
8082
8083 CFLAGS="$CFLAGS -Werror=write-strings"
8084
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8086 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
8087 cacheid=xorg_cv_cc_flag__Werror_write_strings
8088 if eval \${$cacheid+:} false; then :
8089 $as_echo_n "(cached) " >&6
8090 else
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8093 int i;
8094 int
8095 main ()
8096 {
8097
8098 ;
8099 return 0;
8100 }
8101 _ACEOF
8102 if ac_fn_c_try_link "$LINENO"; then :
8103 eval $cacheid=yes
8104 else
8105 eval $cacheid=no
8106 fi
8107 rm -f core conftest.err conftest.$ac_objext \
8108 conftest$ac_exeext conftest.$ac_ext
8109 fi
8110
8111
8112 CFLAGS="$xorg_testset_save_CFLAGS"
8113
8114 eval supported=\$$cacheid
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8116 $as_echo "$supported" >&6; }
8117 if test "$supported" = "yes" ; then
8118 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8119 found="yes"
8120 fi
8121 fi
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137 xorg_testset_save_CFLAGS="$CFLAGS"
8138
8139 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8142 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8143 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8147 /* end confdefs.h. */
8148 int i;
8149 _ACEOF
8150 if ac_fn_c_try_compile "$LINENO"; then :
8151 xorg_cv_cc_flag_unknown_warning_option=yes
8152 else
8153 xorg_cv_cc_flag_unknown_warning_option=no
8154 fi
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8156 fi
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8158 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8160 CFLAGS="$xorg_testset_save_CFLAGS"
8161 fi
8162
8163 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8166 fi
8167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8169 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8170 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8171 $as_echo_n "(cached) " >&6
8172 else
8173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8175 int i;
8176 _ACEOF
8177 if ac_fn_c_try_compile "$LINENO"; then :
8178 xorg_cv_cc_flag_unused_command_line_argument=yes
8179 else
8180 xorg_cv_cc_flag_unused_command_line_argument=no
8181 fi
8182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183 fi
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8185 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8186 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8187 CFLAGS="$xorg_testset_save_CFLAGS"
8188 fi
8189
8190 found="no"
8191
8192 if test $found = "no" ; then
8193 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8195 fi
8196
8197 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8199 fi
8200
8201 CFLAGS="$CFLAGS -Werror=address"
8202
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8204 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8205 cacheid=xorg_cv_cc_flag__Werror_address
8206 if eval \${$cacheid+:} false; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8211 int i;
8212 int
8213 main ()
8214 {
8215
8216 ;
8217 return 0;
8218 }
8219 _ACEOF
8220 if ac_fn_c_try_link "$LINENO"; then :
8221 eval $cacheid=yes
8222 else
8223 eval $cacheid=no
8224 fi
8225 rm -f core conftest.err conftest.$ac_objext \
8226 conftest$ac_exeext conftest.$ac_ext
8227 fi
8228
8229
8230 CFLAGS="$xorg_testset_save_CFLAGS"
8231
8232 eval supported=\$$cacheid
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8234 $as_echo "$supported" >&6; }
8235 if test "$supported" = "yes" ; then
8236 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8237 found="yes"
8238 fi
8239 fi
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255 xorg_testset_save_CFLAGS="$CFLAGS"
8256
8257 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8260 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8261 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8266 int i;
8267 _ACEOF
8268 if ac_fn_c_try_compile "$LINENO"; then :
8269 xorg_cv_cc_flag_unknown_warning_option=yes
8270 else
8271 xorg_cv_cc_flag_unknown_warning_option=no
8272 fi
8273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8274 fi
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8276 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8278 CFLAGS="$xorg_testset_save_CFLAGS"
8279 fi
8280
8281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8284 fi
8285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8287 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8288 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8289 $as_echo_n "(cached) " >&6
8290 else
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292 /* end confdefs.h. */
8293 int i;
8294 _ACEOF
8295 if ac_fn_c_try_compile "$LINENO"; then :
8296 xorg_cv_cc_flag_unused_command_line_argument=yes
8297 else
8298 xorg_cv_cc_flag_unused_command_line_argument=no
8299 fi
8300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8301 fi
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8303 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8305 CFLAGS="$xorg_testset_save_CFLAGS"
8306 fi
8307
8308 found="no"
8309
8310 if test $found = "no" ; then
8311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8313 fi
8314
8315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8317 fi
8318
8319 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8320
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8322 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8323 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8324 if eval \${$cacheid+:} false; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8328 /* end confdefs.h. */
8329 int i;
8330 int
8331 main ()
8332 {
8333
8334 ;
8335 return 0;
8336 }
8337 _ACEOF
8338 if ac_fn_c_try_link "$LINENO"; then :
8339 eval $cacheid=yes
8340 else
8341 eval $cacheid=no
8342 fi
8343 rm -f core conftest.err conftest.$ac_objext \
8344 conftest$ac_exeext conftest.$ac_ext
8345 fi
8346
8347
8348 CFLAGS="$xorg_testset_save_CFLAGS"
8349
8350 eval supported=\$$cacheid
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8352 $as_echo "$supported" >&6; }
8353 if test "$supported" = "yes" ; then
8354 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8355 found="yes"
8356 fi
8357 fi
8358
8359 if test $found = "no" ; then
8360 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8361 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8362 fi
8363
8364 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8365 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8366 fi
8367
8368 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8369
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8371 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8372 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8373 if eval \${$cacheid+:} false; then :
8374 $as_echo_n "(cached) " >&6
8375 else
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377 /* end confdefs.h. */
8378 int i;
8379 int
8380 main ()
8381 {
8382
8383 ;
8384 return 0;
8385 }
8386 _ACEOF
8387 if ac_fn_c_try_link "$LINENO"; then :
8388 eval $cacheid=yes
8389 else
8390 eval $cacheid=no
8391 fi
8392 rm -f core conftest.err conftest.$ac_objext \
8393 conftest$ac_exeext conftest.$ac_ext
8394 fi
8395
8396
8397 CFLAGS="$xorg_testset_save_CFLAGS"
8398
8399 eval supported=\$$cacheid
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8401 $as_echo "$supported" >&6; }
8402 if test "$supported" = "yes" ; then
8403 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8404 found="yes"
8405 fi
8406 fi
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422 xorg_testset_save_CFLAGS="$CFLAGS"
8423
8424 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8427 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8428 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8429 $as_echo_n "(cached) " >&6
8430 else
8431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h. */
8433 int i;
8434 _ACEOF
8435 if ac_fn_c_try_compile "$LINENO"; then :
8436 xorg_cv_cc_flag_unknown_warning_option=yes
8437 else
8438 xorg_cv_cc_flag_unknown_warning_option=no
8439 fi
8440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8441 fi
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8443 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8445 CFLAGS="$xorg_testset_save_CFLAGS"
8446 fi
8447
8448 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8451 fi
8452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8454 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8455 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457 else
8458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8459 /* end confdefs.h. */
8460 int i;
8461 _ACEOF
8462 if ac_fn_c_try_compile "$LINENO"; then :
8463 xorg_cv_cc_flag_unused_command_line_argument=yes
8464 else
8465 xorg_cv_cc_flag_unused_command_line_argument=no
8466 fi
8467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 fi
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8470 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8471 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8472 CFLAGS="$xorg_testset_save_CFLAGS"
8473 fi
8474
8475 found="no"
8476
8477 if test $found = "no" ; then
8478 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8480 fi
8481
8482 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8484 fi
8485
8486 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8487
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8489 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8490 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8491 if eval \${$cacheid+:} false; then :
8492 $as_echo_n "(cached) " >&6
8493 else
8494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8495 /* end confdefs.h. */
8496 int i;
8497 int
8498 main ()
8499 {
8500
8501 ;
8502 return 0;
8503 }
8504 _ACEOF
8505 if ac_fn_c_try_link "$LINENO"; then :
8506 eval $cacheid=yes
8507 else
8508 eval $cacheid=no
8509 fi
8510 rm -f core conftest.err conftest.$ac_objext \
8511 conftest$ac_exeext conftest.$ac_ext
8512 fi
8513
8514
8515 CFLAGS="$xorg_testset_save_CFLAGS"
8516
8517 eval supported=\$$cacheid
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8519 $as_echo "$supported" >&6; }
8520 if test "$supported" = "yes" ; then
8521 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8522 found="yes"
8523 fi
8524 fi
8525
8526 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8527 else
8528 { $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
8529 $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;}
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543 xorg_testset_save_CFLAGS="$CFLAGS"
8544
8545 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8548 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8549 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8550 $as_echo_n "(cached) " >&6
8551 else
8552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h. */
8554 int i;
8555 _ACEOF
8556 if ac_fn_c_try_compile "$LINENO"; then :
8557 xorg_cv_cc_flag_unknown_warning_option=yes
8558 else
8559 xorg_cv_cc_flag_unknown_warning_option=no
8560 fi
8561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8562 fi
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8564 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8565 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8566 CFLAGS="$xorg_testset_save_CFLAGS"
8567 fi
8568
8569 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8572 fi
8573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8575 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8576 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8577 $as_echo_n "(cached) " >&6
8578 else
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580 /* end confdefs.h. */
8581 int i;
8582 _ACEOF
8583 if ac_fn_c_try_compile "$LINENO"; then :
8584 xorg_cv_cc_flag_unused_command_line_argument=yes
8585 else
8586 xorg_cv_cc_flag_unused_command_line_argument=no
8587 fi
8588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8589 fi
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8591 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8592 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8593 CFLAGS="$xorg_testset_save_CFLAGS"
8594 fi
8595
8596 found="no"
8597
8598 if test $found = "no" ; then
8599 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8601 fi
8602
8603 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8605 fi
8606
8607 CFLAGS="$CFLAGS -Wimplicit"
8608
8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8610 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8611 cacheid=xorg_cv_cc_flag__Wimplicit
8612 if eval \${$cacheid+:} false; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8617 int i;
8618 int
8619 main ()
8620 {
8621
8622 ;
8623 return 0;
8624 }
8625 _ACEOF
8626 if ac_fn_c_try_link "$LINENO"; then :
8627 eval $cacheid=yes
8628 else
8629 eval $cacheid=no
8630 fi
8631 rm -f core conftest.err conftest.$ac_objext \
8632 conftest$ac_exeext conftest.$ac_ext
8633 fi
8634
8635
8636 CFLAGS="$xorg_testset_save_CFLAGS"
8637
8638 eval supported=\$$cacheid
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8640 $as_echo "$supported" >&6; }
8641 if test "$supported" = "yes" ; then
8642 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8643 found="yes"
8644 fi
8645 fi
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661 xorg_testset_save_CFLAGS="$CFLAGS"
8662
8663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8666 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8667 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8668 $as_echo_n "(cached) " >&6
8669 else
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h. */
8672 int i;
8673 _ACEOF
8674 if ac_fn_c_try_compile "$LINENO"; then :
8675 xorg_cv_cc_flag_unknown_warning_option=yes
8676 else
8677 xorg_cv_cc_flag_unknown_warning_option=no
8678 fi
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 fi
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8682 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8684 CFLAGS="$xorg_testset_save_CFLAGS"
8685 fi
8686
8687 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8690 fi
8691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8693 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8694 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8698 /* end confdefs.h. */
8699 int i;
8700 _ACEOF
8701 if ac_fn_c_try_compile "$LINENO"; then :
8702 xorg_cv_cc_flag_unused_command_line_argument=yes
8703 else
8704 xorg_cv_cc_flag_unused_command_line_argument=no
8705 fi
8706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8707 fi
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8709 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8711 CFLAGS="$xorg_testset_save_CFLAGS"
8712 fi
8713
8714 found="no"
8715
8716 if test $found = "no" ; then
8717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719 fi
8720
8721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8723 fi
8724
8725 CFLAGS="$CFLAGS -Wnonnull"
8726
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8728 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8729 cacheid=xorg_cv_cc_flag__Wnonnull
8730 if eval \${$cacheid+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 int i;
8736 int
8737 main ()
8738 {
8739
8740 ;
8741 return 0;
8742 }
8743 _ACEOF
8744 if ac_fn_c_try_link "$LINENO"; then :
8745 eval $cacheid=yes
8746 else
8747 eval $cacheid=no
8748 fi
8749 rm -f core conftest.err conftest.$ac_objext \
8750 conftest$ac_exeext conftest.$ac_ext
8751 fi
8752
8753
8754 CFLAGS="$xorg_testset_save_CFLAGS"
8755
8756 eval supported=\$$cacheid
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8758 $as_echo "$supported" >&6; }
8759 if test "$supported" = "yes" ; then
8760 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8761 found="yes"
8762 fi
8763 fi
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779 xorg_testset_save_CFLAGS="$CFLAGS"
8780
8781 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8784 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8785 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8790 int i;
8791 _ACEOF
8792 if ac_fn_c_try_compile "$LINENO"; then :
8793 xorg_cv_cc_flag_unknown_warning_option=yes
8794 else
8795 xorg_cv_cc_flag_unknown_warning_option=no
8796 fi
8797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798 fi
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8800 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8801 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8802 CFLAGS="$xorg_testset_save_CFLAGS"
8803 fi
8804
8805 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8808 fi
8809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8811 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8812 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8813 $as_echo_n "(cached) " >&6
8814 else
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8817 int i;
8818 _ACEOF
8819 if ac_fn_c_try_compile "$LINENO"; then :
8820 xorg_cv_cc_flag_unused_command_line_argument=yes
8821 else
8822 xorg_cv_cc_flag_unused_command_line_argument=no
8823 fi
8824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 fi
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8827 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8828 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8829 CFLAGS="$xorg_testset_save_CFLAGS"
8830 fi
8831
8832 found="no"
8833
8834 if test $found = "no" ; then
8835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8837 fi
8838
8839 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8840 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8841 fi
8842
8843 CFLAGS="$CFLAGS -Winit-self"
8844
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8846 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8847 cacheid=xorg_cv_cc_flag__Winit_self
8848 if eval \${$cacheid+:} false; then :
8849 $as_echo_n "(cached) " >&6
8850 else
8851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8852 /* end confdefs.h. */
8853 int i;
8854 int
8855 main ()
8856 {
8857
8858 ;
8859 return 0;
8860 }
8861 _ACEOF
8862 if ac_fn_c_try_link "$LINENO"; then :
8863 eval $cacheid=yes
8864 else
8865 eval $cacheid=no
8866 fi
8867 rm -f core conftest.err conftest.$ac_objext \
8868 conftest$ac_exeext conftest.$ac_ext
8869 fi
8870
8871
8872 CFLAGS="$xorg_testset_save_CFLAGS"
8873
8874 eval supported=\$$cacheid
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8876 $as_echo "$supported" >&6; }
8877 if test "$supported" = "yes" ; then
8878 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8879 found="yes"
8880 fi
8881 fi
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897 xorg_testset_save_CFLAGS="$CFLAGS"
8898
8899 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8900 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8902 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8903 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8904 $as_echo_n "(cached) " >&6
8905 else
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8908 int i;
8909 _ACEOF
8910 if ac_fn_c_try_compile "$LINENO"; then :
8911 xorg_cv_cc_flag_unknown_warning_option=yes
8912 else
8913 xorg_cv_cc_flag_unknown_warning_option=no
8914 fi
8915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8916 fi
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8918 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8919 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8920 CFLAGS="$xorg_testset_save_CFLAGS"
8921 fi
8922
8923 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8926 fi
8927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8929 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8930 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934 /* end confdefs.h. */
8935 int i;
8936 _ACEOF
8937 if ac_fn_c_try_compile "$LINENO"; then :
8938 xorg_cv_cc_flag_unused_command_line_argument=yes
8939 else
8940 xorg_cv_cc_flag_unused_command_line_argument=no
8941 fi
8942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8945 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8947 CFLAGS="$xorg_testset_save_CFLAGS"
8948 fi
8949
8950 found="no"
8951
8952 if test $found = "no" ; then
8953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8955 fi
8956
8957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8959 fi
8960
8961 CFLAGS="$CFLAGS -Wmain"
8962
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8964 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8965 cacheid=xorg_cv_cc_flag__Wmain
8966 if eval \${$cacheid+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8970 /* end confdefs.h. */
8971 int i;
8972 int
8973 main ()
8974 {
8975
8976 ;
8977 return 0;
8978 }
8979 _ACEOF
8980 if ac_fn_c_try_link "$LINENO"; then :
8981 eval $cacheid=yes
8982 else
8983 eval $cacheid=no
8984 fi
8985 rm -f core conftest.err conftest.$ac_objext \
8986 conftest$ac_exeext conftest.$ac_ext
8987 fi
8988
8989
8990 CFLAGS="$xorg_testset_save_CFLAGS"
8991
8992 eval supported=\$$cacheid
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8994 $as_echo "$supported" >&6; }
8995 if test "$supported" = "yes" ; then
8996 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8997 found="yes"
8998 fi
8999 fi
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015 xorg_testset_save_CFLAGS="$CFLAGS"
9016
9017 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9020 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9021 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9022 $as_echo_n "(cached) " >&6
9023 else
9024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h. */
9026 int i;
9027 _ACEOF
9028 if ac_fn_c_try_compile "$LINENO"; then :
9029 xorg_cv_cc_flag_unknown_warning_option=yes
9030 else
9031 xorg_cv_cc_flag_unknown_warning_option=no
9032 fi
9033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034 fi
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9036 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9038 CFLAGS="$xorg_testset_save_CFLAGS"
9039 fi
9040
9041 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9044 fi
9045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9047 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9048 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9049 $as_echo_n "(cached) " >&6
9050 else
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9053 int i;
9054 _ACEOF
9055 if ac_fn_c_try_compile "$LINENO"; then :
9056 xorg_cv_cc_flag_unused_command_line_argument=yes
9057 else
9058 xorg_cv_cc_flag_unused_command_line_argument=no
9059 fi
9060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9061 fi
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9063 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9065 CFLAGS="$xorg_testset_save_CFLAGS"
9066 fi
9067
9068 found="no"
9069
9070 if test $found = "no" ; then
9071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9073 fi
9074
9075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9077 fi
9078
9079 CFLAGS="$CFLAGS -Wmissing-braces"
9080
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9082 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
9083 cacheid=xorg_cv_cc_flag__Wmissing_braces
9084 if eval \${$cacheid+:} false; then :
9085 $as_echo_n "(cached) " >&6
9086 else
9087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 int i;
9090 int
9091 main ()
9092 {
9093
9094 ;
9095 return 0;
9096 }
9097 _ACEOF
9098 if ac_fn_c_try_link "$LINENO"; then :
9099 eval $cacheid=yes
9100 else
9101 eval $cacheid=no
9102 fi
9103 rm -f core conftest.err conftest.$ac_objext \
9104 conftest$ac_exeext conftest.$ac_ext
9105 fi
9106
9107
9108 CFLAGS="$xorg_testset_save_CFLAGS"
9109
9110 eval supported=\$$cacheid
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9112 $as_echo "$supported" >&6; }
9113 if test "$supported" = "yes" ; then
9114 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9115 found="yes"
9116 fi
9117 fi
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133 xorg_testset_save_CFLAGS="$CFLAGS"
9134
9135 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9138 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9139 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9143 /* end confdefs.h. */
9144 int i;
9145 _ACEOF
9146 if ac_fn_c_try_compile "$LINENO"; then :
9147 xorg_cv_cc_flag_unknown_warning_option=yes
9148 else
9149 xorg_cv_cc_flag_unknown_warning_option=no
9150 fi
9151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 fi
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9154 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9155 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9156 CFLAGS="$xorg_testset_save_CFLAGS"
9157 fi
9158
9159 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9162 fi
9163 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9165 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9166 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9167 $as_echo_n "(cached) " >&6
9168 else
9169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9170 /* end confdefs.h. */
9171 int i;
9172 _ACEOF
9173 if ac_fn_c_try_compile "$LINENO"; then :
9174 xorg_cv_cc_flag_unused_command_line_argument=yes
9175 else
9176 xorg_cv_cc_flag_unused_command_line_argument=no
9177 fi
9178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9179 fi
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9181 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9183 CFLAGS="$xorg_testset_save_CFLAGS"
9184 fi
9185
9186 found="no"
9187
9188 if test $found = "no" ; then
9189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9191 fi
9192
9193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9195 fi
9196
9197 CFLAGS="$CFLAGS -Wsequence-point"
9198
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9200 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9201 cacheid=xorg_cv_cc_flag__Wsequence_point
9202 if eval \${$cacheid+:} false; then :
9203 $as_echo_n "(cached) " >&6
9204 else
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9207 int i;
9208 int
9209 main ()
9210 {
9211
9212 ;
9213 return 0;
9214 }
9215 _ACEOF
9216 if ac_fn_c_try_link "$LINENO"; then :
9217 eval $cacheid=yes
9218 else
9219 eval $cacheid=no
9220 fi
9221 rm -f core conftest.err conftest.$ac_objext \
9222 conftest$ac_exeext conftest.$ac_ext
9223 fi
9224
9225
9226 CFLAGS="$xorg_testset_save_CFLAGS"
9227
9228 eval supported=\$$cacheid
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9230 $as_echo "$supported" >&6; }
9231 if test "$supported" = "yes" ; then
9232 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9233 found="yes"
9234 fi
9235 fi
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251 xorg_testset_save_CFLAGS="$CFLAGS"
9252
9253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9256 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9257 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9258 $as_echo_n "(cached) " >&6
9259 else
9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261 /* end confdefs.h. */
9262 int i;
9263 _ACEOF
9264 if ac_fn_c_try_compile "$LINENO"; then :
9265 xorg_cv_cc_flag_unknown_warning_option=yes
9266 else
9267 xorg_cv_cc_flag_unknown_warning_option=no
9268 fi
9269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270 fi
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9272 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9274 CFLAGS="$xorg_testset_save_CFLAGS"
9275 fi
9276
9277 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9280 fi
9281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9283 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9284 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9288 /* end confdefs.h. */
9289 int i;
9290 _ACEOF
9291 if ac_fn_c_try_compile "$LINENO"; then :
9292 xorg_cv_cc_flag_unused_command_line_argument=yes
9293 else
9294 xorg_cv_cc_flag_unused_command_line_argument=no
9295 fi
9296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9297 fi
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9299 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9300 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9301 CFLAGS="$xorg_testset_save_CFLAGS"
9302 fi
9303
9304 found="no"
9305
9306 if test $found = "no" ; then
9307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9309 fi
9310
9311 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9313 fi
9314
9315 CFLAGS="$CFLAGS -Wreturn-type"
9316
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9318 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9319 cacheid=xorg_cv_cc_flag__Wreturn_type
9320 if eval \${$cacheid+:} false; then :
9321 $as_echo_n "(cached) " >&6
9322 else
9323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9324 /* end confdefs.h. */
9325 int i;
9326 int
9327 main ()
9328 {
9329
9330 ;
9331 return 0;
9332 }
9333 _ACEOF
9334 if ac_fn_c_try_link "$LINENO"; then :
9335 eval $cacheid=yes
9336 else
9337 eval $cacheid=no
9338 fi
9339 rm -f core conftest.err conftest.$ac_objext \
9340 conftest$ac_exeext conftest.$ac_ext
9341 fi
9342
9343
9344 CFLAGS="$xorg_testset_save_CFLAGS"
9345
9346 eval supported=\$$cacheid
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9348 $as_echo "$supported" >&6; }
9349 if test "$supported" = "yes" ; then
9350 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9351 found="yes"
9352 fi
9353 fi
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369 xorg_testset_save_CFLAGS="$CFLAGS"
9370
9371 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9374 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9375 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9376 $as_echo_n "(cached) " >&6
9377 else
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9380 int i;
9381 _ACEOF
9382 if ac_fn_c_try_compile "$LINENO"; then :
9383 xorg_cv_cc_flag_unknown_warning_option=yes
9384 else
9385 xorg_cv_cc_flag_unknown_warning_option=no
9386 fi
9387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9388 fi
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9390 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9391 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9392 CFLAGS="$xorg_testset_save_CFLAGS"
9393 fi
9394
9395 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9396 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9398 fi
9399 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9401 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9402 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9403 $as_echo_n "(cached) " >&6
9404 else
9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9406 /* end confdefs.h. */
9407 int i;
9408 _ACEOF
9409 if ac_fn_c_try_compile "$LINENO"; then :
9410 xorg_cv_cc_flag_unused_command_line_argument=yes
9411 else
9412 xorg_cv_cc_flag_unused_command_line_argument=no
9413 fi
9414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9415 fi
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9417 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9419 CFLAGS="$xorg_testset_save_CFLAGS"
9420 fi
9421
9422 found="no"
9423
9424 if test $found = "no" ; then
9425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9427 fi
9428
9429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9431 fi
9432
9433 CFLAGS="$CFLAGS -Wtrigraphs"
9434
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9436 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9437 cacheid=xorg_cv_cc_flag__Wtrigraphs
9438 if eval \${$cacheid+:} false; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 int i;
9444 int
9445 main ()
9446 {
9447
9448 ;
9449 return 0;
9450 }
9451 _ACEOF
9452 if ac_fn_c_try_link "$LINENO"; then :
9453 eval $cacheid=yes
9454 else
9455 eval $cacheid=no
9456 fi
9457 rm -f core conftest.err conftest.$ac_objext \
9458 conftest$ac_exeext conftest.$ac_ext
9459 fi
9460
9461
9462 CFLAGS="$xorg_testset_save_CFLAGS"
9463
9464 eval supported=\$$cacheid
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9466 $as_echo "$supported" >&6; }
9467 if test "$supported" = "yes" ; then
9468 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9469 found="yes"
9470 fi
9471 fi
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487 xorg_testset_save_CFLAGS="$CFLAGS"
9488
9489 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9492 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9493 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9494 $as_echo_n "(cached) " >&6
9495 else
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 int i;
9499 _ACEOF
9500 if ac_fn_c_try_compile "$LINENO"; then :
9501 xorg_cv_cc_flag_unknown_warning_option=yes
9502 else
9503 xorg_cv_cc_flag_unknown_warning_option=no
9504 fi
9505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9506 fi
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9508 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9510 CFLAGS="$xorg_testset_save_CFLAGS"
9511 fi
9512
9513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9516 fi
9517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9519 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9520 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9521 $as_echo_n "(cached) " >&6
9522 else
9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9525 int i;
9526 _ACEOF
9527 if ac_fn_c_try_compile "$LINENO"; then :
9528 xorg_cv_cc_flag_unused_command_line_argument=yes
9529 else
9530 xorg_cv_cc_flag_unused_command_line_argument=no
9531 fi
9532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9533 fi
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9535 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9537 CFLAGS="$xorg_testset_save_CFLAGS"
9538 fi
9539
9540 found="no"
9541
9542 if test $found = "no" ; then
9543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9545 fi
9546
9547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9549 fi
9550
9551 CFLAGS="$CFLAGS -Warray-bounds"
9552
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9554 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9555 cacheid=xorg_cv_cc_flag__Warray_bounds
9556 if eval \${$cacheid+:} false; then :
9557 $as_echo_n "(cached) " >&6
9558 else
9559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9560 /* end confdefs.h. */
9561 int i;
9562 int
9563 main ()
9564 {
9565
9566 ;
9567 return 0;
9568 }
9569 _ACEOF
9570 if ac_fn_c_try_link "$LINENO"; then :
9571 eval $cacheid=yes
9572 else
9573 eval $cacheid=no
9574 fi
9575 rm -f core conftest.err conftest.$ac_objext \
9576 conftest$ac_exeext conftest.$ac_ext
9577 fi
9578
9579
9580 CFLAGS="$xorg_testset_save_CFLAGS"
9581
9582 eval supported=\$$cacheid
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9584 $as_echo "$supported" >&6; }
9585 if test "$supported" = "yes" ; then
9586 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9587 found="yes"
9588 fi
9589 fi
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605 xorg_testset_save_CFLAGS="$CFLAGS"
9606
9607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9610 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9611 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9612 $as_echo_n "(cached) " >&6
9613 else
9614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9615 /* end confdefs.h. */
9616 int i;
9617 _ACEOF
9618 if ac_fn_c_try_compile "$LINENO"; then :
9619 xorg_cv_cc_flag_unknown_warning_option=yes
9620 else
9621 xorg_cv_cc_flag_unknown_warning_option=no
9622 fi
9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9624 fi
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9626 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9628 CFLAGS="$xorg_testset_save_CFLAGS"
9629 fi
9630
9631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9634 fi
9635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9637 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9638 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9639 $as_echo_n "(cached) " >&6
9640 else
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9643 int i;
9644 _ACEOF
9645 if ac_fn_c_try_compile "$LINENO"; then :
9646 xorg_cv_cc_flag_unused_command_line_argument=yes
9647 else
9648 xorg_cv_cc_flag_unused_command_line_argument=no
9649 fi
9650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9651 fi
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9653 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9654 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9655 CFLAGS="$xorg_testset_save_CFLAGS"
9656 fi
9657
9658 found="no"
9659
9660 if test $found = "no" ; then
9661 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9663 fi
9664
9665 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9667 fi
9668
9669 CFLAGS="$CFLAGS -Wwrite-strings"
9670
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9672 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9673 cacheid=xorg_cv_cc_flag__Wwrite_strings
9674 if eval \${$cacheid+:} false; then :
9675 $as_echo_n "(cached) " >&6
9676 else
9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9679 int i;
9680 int
9681 main ()
9682 {
9683
9684 ;
9685 return 0;
9686 }
9687 _ACEOF
9688 if ac_fn_c_try_link "$LINENO"; then :
9689 eval $cacheid=yes
9690 else
9691 eval $cacheid=no
9692 fi
9693 rm -f core conftest.err conftest.$ac_objext \
9694 conftest$ac_exeext conftest.$ac_ext
9695 fi
9696
9697
9698 CFLAGS="$xorg_testset_save_CFLAGS"
9699
9700 eval supported=\$$cacheid
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9702 $as_echo "$supported" >&6; }
9703 if test "$supported" = "yes" ; then
9704 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9705 found="yes"
9706 fi
9707 fi
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723 xorg_testset_save_CFLAGS="$CFLAGS"
9724
9725 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9728 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9729 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9734 int i;
9735 _ACEOF
9736 if ac_fn_c_try_compile "$LINENO"; then :
9737 xorg_cv_cc_flag_unknown_warning_option=yes
9738 else
9739 xorg_cv_cc_flag_unknown_warning_option=no
9740 fi
9741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9742 fi
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9744 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9746 CFLAGS="$xorg_testset_save_CFLAGS"
9747 fi
9748
9749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9752 fi
9753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9755 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9756 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9757 $as_echo_n "(cached) " >&6
9758 else
9759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9761 int i;
9762 _ACEOF
9763 if ac_fn_c_try_compile "$LINENO"; then :
9764 xorg_cv_cc_flag_unused_command_line_argument=yes
9765 else
9766 xorg_cv_cc_flag_unused_command_line_argument=no
9767 fi
9768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9769 fi
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9771 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9773 CFLAGS="$xorg_testset_save_CFLAGS"
9774 fi
9775
9776 found="no"
9777
9778 if test $found = "no" ; then
9779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9781 fi
9782
9783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9785 fi
9786
9787 CFLAGS="$CFLAGS -Waddress"
9788
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9790 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9791 cacheid=xorg_cv_cc_flag__Waddress
9792 if eval \${$cacheid+:} false; then :
9793 $as_echo_n "(cached) " >&6
9794 else
9795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9796 /* end confdefs.h. */
9797 int i;
9798 int
9799 main ()
9800 {
9801
9802 ;
9803 return 0;
9804 }
9805 _ACEOF
9806 if ac_fn_c_try_link "$LINENO"; then :
9807 eval $cacheid=yes
9808 else
9809 eval $cacheid=no
9810 fi
9811 rm -f core conftest.err conftest.$ac_objext \
9812 conftest$ac_exeext conftest.$ac_ext
9813 fi
9814
9815
9816 CFLAGS="$xorg_testset_save_CFLAGS"
9817
9818 eval supported=\$$cacheid
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9820 $as_echo "$supported" >&6; }
9821 if test "$supported" = "yes" ; then
9822 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9823 found="yes"
9824 fi
9825 fi
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841 xorg_testset_save_CFLAGS="$CFLAGS"
9842
9843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9846 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9847 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9852 int i;
9853 _ACEOF
9854 if ac_fn_c_try_compile "$LINENO"; then :
9855 xorg_cv_cc_flag_unknown_warning_option=yes
9856 else
9857 xorg_cv_cc_flag_unknown_warning_option=no
9858 fi
9859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9860 fi
9861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9862 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9863 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9864 CFLAGS="$xorg_testset_save_CFLAGS"
9865 fi
9866
9867 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9870 fi
9871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9873 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9874 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9875 $as_echo_n "(cached) " >&6
9876 else
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h. */
9879 int i;
9880 _ACEOF
9881 if ac_fn_c_try_compile "$LINENO"; then :
9882 xorg_cv_cc_flag_unused_command_line_argument=yes
9883 else
9884 xorg_cv_cc_flag_unused_command_line_argument=no
9885 fi
9886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887 fi
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9889 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9891 CFLAGS="$xorg_testset_save_CFLAGS"
9892 fi
9893
9894 found="no"
9895
9896 if test $found = "no" ; then
9897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9899 fi
9900
9901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9903 fi
9904
9905 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9906
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9908 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9909 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9910 if eval \${$cacheid+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912 else
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9915 int i;
9916 int
9917 main ()
9918 {
9919
9920 ;
9921 return 0;
9922 }
9923 _ACEOF
9924 if ac_fn_c_try_link "$LINENO"; then :
9925 eval $cacheid=yes
9926 else
9927 eval $cacheid=no
9928 fi
9929 rm -f core conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931 fi
9932
9933
9934 CFLAGS="$xorg_testset_save_CFLAGS"
9935
9936 eval supported=\$$cacheid
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9938 $as_echo "$supported" >&6; }
9939 if test "$supported" = "yes" ; then
9940 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9941 found="yes"
9942 fi
9943 fi
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959 xorg_testset_save_CFLAGS="$CFLAGS"
9960
9961 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9962 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9964 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9965 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9969 /* end confdefs.h. */
9970 int i;
9971 _ACEOF
9972 if ac_fn_c_try_compile "$LINENO"; then :
9973 xorg_cv_cc_flag_unknown_warning_option=yes
9974 else
9975 xorg_cv_cc_flag_unknown_warning_option=no
9976 fi
9977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9978 fi
9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9980 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9982 CFLAGS="$xorg_testset_save_CFLAGS"
9983 fi
9984
9985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9988 fi
9989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9991 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9992 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9993 $as_echo_n "(cached) " >&6
9994 else
9995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996 /* end confdefs.h. */
9997 int i;
9998 _ACEOF
9999 if ac_fn_c_try_compile "$LINENO"; then :
10000 xorg_cv_cc_flag_unused_command_line_argument=yes
10001 else
10002 xorg_cv_cc_flag_unused_command_line_argument=no
10003 fi
10004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10005 fi
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10007 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10009 CFLAGS="$xorg_testset_save_CFLAGS"
10010 fi
10011
10012 found="no"
10013
10014 if test $found = "no" ; then
10015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10017 fi
10018
10019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10021 fi
10022
10023 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10024
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10026 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10027 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10028 if eval \${$cacheid+:} false; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033 int i;
10034 int
10035 main ()
10036 {
10037
10038 ;
10039 return 0;
10040 }
10041 _ACEOF
10042 if ac_fn_c_try_link "$LINENO"; then :
10043 eval $cacheid=yes
10044 else
10045 eval $cacheid=no
10046 fi
10047 rm -f core conftest.err conftest.$ac_objext \
10048 conftest$ac_exeext conftest.$ac_ext
10049 fi
10050
10051
10052 CFLAGS="$xorg_testset_save_CFLAGS"
10053
10054 eval supported=\$$cacheid
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10056 $as_echo "$supported" >&6; }
10057 if test "$supported" = "yes" ; then
10058 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10059 found="yes"
10060 fi
10061 fi
10062
10063
10064 fi
10065
10066
10067
10068
10069
10070
10071
10072 CWARNFLAGS="$BASE_CFLAGS"
10073 if test "x$GCC" = xyes ; then
10074 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10075 fi
10076
10077
10078
10079
10080
10081
10082
10083
10084 # Check whether --enable-strict-compilation was given.
10085 if test "${enable_strict_compilation+set}" = set; then :
10086 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10087 else
10088 STRICT_COMPILE=no
10089 fi
10090
10091
10092
10093
10094
10095
10096 STRICT_CFLAGS=""
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110 xorg_testset_save_CFLAGS="$CFLAGS"
10111
10112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10115 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10116 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10120 /* end confdefs.h. */
10121 int i;
10122 _ACEOF
10123 if ac_fn_c_try_compile "$LINENO"; then :
10124 xorg_cv_cc_flag_unknown_warning_option=yes
10125 else
10126 xorg_cv_cc_flag_unknown_warning_option=no
10127 fi
10128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10129 fi
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10131 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10133 CFLAGS="$xorg_testset_save_CFLAGS"
10134 fi
10135
10136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10139 fi
10140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10142 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10143 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10144 $as_echo_n "(cached) " >&6
10145 else
10146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10147 /* end confdefs.h. */
10148 int i;
10149 _ACEOF
10150 if ac_fn_c_try_compile "$LINENO"; then :
10151 xorg_cv_cc_flag_unused_command_line_argument=yes
10152 else
10153 xorg_cv_cc_flag_unused_command_line_argument=no
10154 fi
10155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 fi
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10158 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10160 CFLAGS="$xorg_testset_save_CFLAGS"
10161 fi
10162
10163 found="no"
10164
10165 if test $found = "no" ; then
10166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168 fi
10169
10170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172 fi
10173
10174 CFLAGS="$CFLAGS -pedantic"
10175
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10177 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10178 cacheid=xorg_cv_cc_flag__pedantic
10179 if eval \${$cacheid+:} false; then :
10180 $as_echo_n "(cached) " >&6
10181 else
10182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 int i;
10185 int
10186 main ()
10187 {
10188
10189 ;
10190 return 0;
10191 }
10192 _ACEOF
10193 if ac_fn_c_try_link "$LINENO"; then :
10194 eval $cacheid=yes
10195 else
10196 eval $cacheid=no
10197 fi
10198 rm -f core conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext conftest.$ac_ext
10200 fi
10201
10202
10203 CFLAGS="$xorg_testset_save_CFLAGS"
10204
10205 eval supported=\$$cacheid
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10207 $as_echo "$supported" >&6; }
10208 if test "$supported" = "yes" ; then
10209 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10210 found="yes"
10211 fi
10212 fi
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228 xorg_testset_save_CFLAGS="$CFLAGS"
10229
10230 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10233 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10234 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10235 $as_echo_n "(cached) " >&6
10236 else
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10239 int i;
10240 _ACEOF
10241 if ac_fn_c_try_compile "$LINENO"; then :
10242 xorg_cv_cc_flag_unknown_warning_option=yes
10243 else
10244 xorg_cv_cc_flag_unknown_warning_option=no
10245 fi
10246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10247 fi
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10249 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10250 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10251 CFLAGS="$xorg_testset_save_CFLAGS"
10252 fi
10253
10254 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10257 fi
10258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10260 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10261 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10262 $as_echo_n "(cached) " >&6
10263 else
10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10266 int i;
10267 _ACEOF
10268 if ac_fn_c_try_compile "$LINENO"; then :
10269 xorg_cv_cc_flag_unused_command_line_argument=yes
10270 else
10271 xorg_cv_cc_flag_unused_command_line_argument=no
10272 fi
10273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10274 fi
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10276 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10278 CFLAGS="$xorg_testset_save_CFLAGS"
10279 fi
10280
10281 found="no"
10282
10283 if test $found = "no" ; then
10284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10286 fi
10287
10288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10290 fi
10291
10292 CFLAGS="$CFLAGS -Werror"
10293
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10295 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10296 cacheid=xorg_cv_cc_flag__Werror
10297 if eval \${$cacheid+:} false; then :
10298 $as_echo_n "(cached) " >&6
10299 else
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10302 int i;
10303 int
10304 main ()
10305 {
10306
10307 ;
10308 return 0;
10309 }
10310 _ACEOF
10311 if ac_fn_c_try_link "$LINENO"; then :
10312 eval $cacheid=yes
10313 else
10314 eval $cacheid=no
10315 fi
10316 rm -f core conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 fi
10319
10320
10321 CFLAGS="$xorg_testset_save_CFLAGS"
10322
10323 eval supported=\$$cacheid
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10325 $as_echo "$supported" >&6; }
10326 if test "$supported" = "yes" ; then
10327 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10328 found="yes"
10329 fi
10330 fi
10331
10332 if test $found = "no" ; then
10333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10335 fi
10336
10337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10339 fi
10340
10341 CFLAGS="$CFLAGS -errwarn"
10342
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10344 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10345 cacheid=xorg_cv_cc_flag__errwarn
10346 if eval \${$cacheid+:} false; then :
10347 $as_echo_n "(cached) " >&6
10348 else
10349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10350 /* end confdefs.h. */
10351 int i;
10352 int
10353 main ()
10354 {
10355
10356 ;
10357 return 0;
10358 }
10359 _ACEOF
10360 if ac_fn_c_try_link "$LINENO"; then :
10361 eval $cacheid=yes
10362 else
10363 eval $cacheid=no
10364 fi
10365 rm -f core conftest.err conftest.$ac_objext \
10366 conftest$ac_exeext conftest.$ac_ext
10367 fi
10368
10369
10370 CFLAGS="$xorg_testset_save_CFLAGS"
10371
10372 eval supported=\$$cacheid
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10374 $as_echo "$supported" >&6; }
10375 if test "$supported" = "yes" ; then
10376 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10377 found="yes"
10378 fi
10379 fi
10380
10381
10382
10383 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10384 # activate it with -Werror, so we add it here explicitly.
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398 xorg_testset_save_CFLAGS="$CFLAGS"
10399
10400 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10403 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10404 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10405 $as_echo_n "(cached) " >&6
10406 else
10407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10408 /* end confdefs.h. */
10409 int i;
10410 _ACEOF
10411 if ac_fn_c_try_compile "$LINENO"; then :
10412 xorg_cv_cc_flag_unknown_warning_option=yes
10413 else
10414 xorg_cv_cc_flag_unknown_warning_option=no
10415 fi
10416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10417 fi
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10419 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10421 CFLAGS="$xorg_testset_save_CFLAGS"
10422 fi
10423
10424 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10427 fi
10428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10430 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10431 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10432 $as_echo_n "(cached) " >&6
10433 else
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10436 int i;
10437 _ACEOF
10438 if ac_fn_c_try_compile "$LINENO"; then :
10439 xorg_cv_cc_flag_unused_command_line_argument=yes
10440 else
10441 xorg_cv_cc_flag_unused_command_line_argument=no
10442 fi
10443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10444 fi
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10446 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10448 CFLAGS="$xorg_testset_save_CFLAGS"
10449 fi
10450
10451 found="no"
10452
10453 if test $found = "no" ; then
10454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10456 fi
10457
10458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10460 fi
10461
10462 CFLAGS="$CFLAGS -Werror=attributes"
10463
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10465 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10466 cacheid=xorg_cv_cc_flag__Werror_attributes
10467 if eval \${$cacheid+:} false; then :
10468 $as_echo_n "(cached) " >&6
10469 else
10470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10471 /* end confdefs.h. */
10472 int i;
10473 int
10474 main ()
10475 {
10476
10477 ;
10478 return 0;
10479 }
10480 _ACEOF
10481 if ac_fn_c_try_link "$LINENO"; then :
10482 eval $cacheid=yes
10483 else
10484 eval $cacheid=no
10485 fi
10486 rm -f core conftest.err conftest.$ac_objext \
10487 conftest$ac_exeext conftest.$ac_ext
10488 fi
10489
10490
10491 CFLAGS="$xorg_testset_save_CFLAGS"
10492
10493 eval supported=\$$cacheid
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10495 $as_echo "$supported" >&6; }
10496 if test "$supported" = "yes" ; then
10497 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10498 found="yes"
10499 fi
10500 fi
10501
10502
10503
10504 if test "x$STRICT_COMPILE" = "xyes"; then
10505 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10506 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10507 fi
10508
10509
10510
10511
10512
10513
10514 cat >>confdefs.h <<_ACEOF
10515 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10516 _ACEOF
10517
10518 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10519 if test "x$PVM" = "x"; then
10520 PVM="0"
10521 fi
10522
10523 cat >>confdefs.h <<_ACEOF
10524 #define PACKAGE_VERSION_MINOR $PVM
10525 _ACEOF
10526
10527 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10528 if test "x$PVP" = "x"; then
10529 PVP="0"
10530 fi
10531
10532 cat >>confdefs.h <<_ACEOF
10533 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10534 _ACEOF
10535
10536
10537
10538 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10539 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10540 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10541 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10542
10543
10544
10545
10546 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10547 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10548 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10549 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10550 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10551
10552
10553
10554
10555
10556
10557 if test x$APP_MAN_SUFFIX = x ; then
10558 APP_MAN_SUFFIX=1
10559 fi
10560 if test x$APP_MAN_DIR = x ; then
10561 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10562 fi
10563
10564 if test x$LIB_MAN_SUFFIX = x ; then
10565 LIB_MAN_SUFFIX=3
10566 fi
10567 if test x$LIB_MAN_DIR = x ; then
10568 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10569 fi
10570
10571 if test x$FILE_MAN_SUFFIX = x ; then
10572 case $host_os in
10573 # Solaris 2.0 - 11 use SysV man page sections
10574 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;;
10575 *) FILE_MAN_SUFFIX=5 ;;
10576 esac
10577 fi
10578 if test x$FILE_MAN_DIR = x ; then
10579 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10580 fi
10581
10582 if test x$MISC_MAN_SUFFIX = x ; then
10583 case $host_os in
10584 # Solaris 2.0 - 11 use SysV man page sections
10585 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;;
10586 *) MISC_MAN_SUFFIX=7 ;;
10587 esac
10588 fi
10589 if test x$MISC_MAN_DIR = x ; then
10590 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10591 fi
10592
10593 if test x$DRIVER_MAN_SUFFIX = x ; then
10594 case $host_os in
10595 # Solaris 2.0 - 11 use SysV man page sections
10596 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;;
10597 *) DRIVER_MAN_SUFFIX=4 ;;
10598 esac
10599 fi
10600 if test x$DRIVER_MAN_DIR = x ; then
10601 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10602 fi
10603
10604 if test x$ADMIN_MAN_SUFFIX = x ; then
10605 case $host_os in
10606 # Solaris 2.0 - 11 use SysV man page sections
10607 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;;
10608 *) ADMIN_MAN_SUFFIX=8 ;;
10609 esac
10610 fi
10611 if test x$ADMIN_MAN_DIR = x ; then
10612 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10613 fi
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629 XORG_MAN_PAGE="X Version 11"
10630
10631 MAN_SUBSTS="\
10632 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10633 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10634 -e 's|__xservername__|Xorg|g' \
10635 -e 's|__xconfigfile__|xorg.conf|g' \
10636 -e 's|__projectroot__|\$(prefix)|g' \
10637 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10638 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10639 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10640 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10641 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10642 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10643 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10644
10645
10646
10647 # Check whether --enable-silent-rules was given.
10648 if test "${enable_silent_rules+set}" = set; then :
10649 enableval=$enable_silent_rules;
10650 fi
10651
10652 case $enable_silent_rules in # (((
10653 yes) AM_DEFAULT_VERBOSITY=0;;
10654 no) AM_DEFAULT_VERBOSITY=1;;
10655 *) AM_DEFAULT_VERBOSITY=0;;
10656 esac
10657 am_make=${MAKE-make}
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10659 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10660 if ${am_cv_make_support_nested_variables+:} false; then :
10661 $as_echo_n "(cached) " >&6
10662 else
10663 if $as_echo 'TRUE=$(BAR$(V))
10664 BAR0=false
10665 BAR1=true
10666 V=1
10667 am__doit:
10668 @$(TRUE)
10669 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10670 am_cv_make_support_nested_variables=yes
10671 else
10672 am_cv_make_support_nested_variables=no
10673 fi
10674 fi
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10676 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10677 if test $am_cv_make_support_nested_variables = yes; then
10678 AM_V='$(V)'
10679 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10680 else
10681 AM_V=$AM_DEFAULT_VERBOSITY
10682 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10683 fi
10684 AM_BACKSLASH='\'
10685
10686
10687
10688
10689
10690
10691
10692 # Check whether --with-lint was given.
10693 if test "${with_lint+set}" = set; then :
10694 withval=$with_lint; use_lint=$withval
10695 else
10696 use_lint=no
10697 fi
10698
10699
10700 # Obtain platform specific info like program name and options
10701 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
10702 case $host_os in
10703 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
10704 lint_name=splint
10705 lint_options="-badflag"
10706 ;;
10707 *freebsd* | *netbsd*)
10708 lint_name=lint
10709 lint_options="-u -b"
10710 ;;
10711 *solaris*)
10712 lint_name=lint
10713 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
10714 ;;
10715 esac
10716
10717 # Test for the presence of the program (either guessed by the code or spelled out by the user)
10718 if test "x$use_lint" = x"yes" ; then
10719 # Extract the first word of "$lint_name", so it can be a program name with args.
10720 set dummy $lint_name; ac_word=$2
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10722 $as_echo_n "checking for $ac_word... " >&6; }
10723 if ${ac_cv_path_LINT+:} false; then :
10724 $as_echo_n "(cached) " >&6
10725 else
10726 case $LINT in
10727 [\\/]* | ?:[\\/]*)
10728 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
10729 ;;
10730 *)
10731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732 for as_dir in $PATH
10733 do
10734 IFS=$as_save_IFS
10735 test -z "$as_dir" && as_dir=.
10736 for ac_exec_ext in '' $ac_executable_extensions; do
10737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10738 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
10739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10740 break 2
10741 fi
10742 done
10743 done
10744 IFS=$as_save_IFS
10745
10746 ;;
10747 esac
10748 fi
10749 LINT=$ac_cv_path_LINT
10750 if test -n "$LINT"; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
10752 $as_echo "$LINT" >&6; }
10753 else
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10755 $as_echo "no" >&6; }
10756 fi
10757
10758
10759 if test "x$LINT" = "x"; then
10760 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
10761 fi
10762 elif test "x$use_lint" = x"no" ; then
10763 if test "x$LINT" != "x"; then
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
10765 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
10766 fi
10767 else
10768 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
10769 fi
10770
10771 # User supplied flags override default flags
10772 if test "x$LINT_FLAGS" != "x"; then
10773 lint_options=$LINT_FLAGS
10774 fi
10775
10776 LINT_FLAGS=$lint_options
10777
10778 if test "x$LINT" != x; then
10779 LINT_TRUE=
10780 LINT_FALSE='#'
10781 else
10782 LINT_TRUE='#'
10783 LINT_FALSE=
10784 fi
10785
10786
10787
10788
10789 for ac_func in rename fchmod
10790 do :
10791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10792 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10793 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10794 cat >>confdefs.h <<_ACEOF
10795 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10796 _ACEOF
10797
10798 fi
10799 done
10800
10801
10802 # Check whether --enable-largefile was given.
10803 if test "${enable_largefile+set}" = set; then :
10804 enableval=$enable_largefile;
10805 fi
10806
10807 if test "$enable_largefile" != no; then
10808
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10810 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10811 if ${ac_cv_sys_largefile_CC+:} false; then :
10812 $as_echo_n "(cached) " >&6
10813 else
10814 ac_cv_sys_largefile_CC=no
10815 if test "$GCC" != yes; then
10816 ac_save_CC=$CC
10817 while :; do
10818 # IRIX 6.2 and later do not support large files by default,
10819 # so use the C compiler's -n32 option if that helps.
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10822 #include <sys/types.h>
10823 /* Check that off_t can represent 2**63 - 1 correctly.
10824 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10825 since some C++ compilers masquerading as C compilers
10826 incorrectly reject 9223372036854775807. */
10827 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10828 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10829 && LARGE_OFF_T % 2147483647 == 1)
10830 ? 1 : -1];
10831 int
10832 main ()
10833 {
10834
10835 ;
10836 return 0;
10837 }
10838 _ACEOF
10839 if ac_fn_c_try_compile "$LINENO"; then :
10840 break
10841 fi
10842 rm -f core conftest.err conftest.$ac_objext
10843 CC="$CC -n32"
10844 if ac_fn_c_try_compile "$LINENO"; then :
10845 ac_cv_sys_largefile_CC=' -n32'; break
10846 fi
10847 rm -f core conftest.err conftest.$ac_objext
10848 break
10849 done
10850 CC=$ac_save_CC
10851 rm -f conftest.$ac_ext
10852 fi
10853 fi
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10855 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10856 if test "$ac_cv_sys_largefile_CC" != no; then
10857 CC=$CC$ac_cv_sys_largefile_CC
10858 fi
10859
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10861 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10862 if ${ac_cv_sys_file_offset_bits+:} false; then :
10863 $as_echo_n "(cached) " >&6
10864 else
10865 while :; do
10866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10867 /* end confdefs.h. */
10868 #include <sys/types.h>
10869 /* Check that off_t can represent 2**63 - 1 correctly.
10870 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10871 since some C++ compilers masquerading as C compilers
10872 incorrectly reject 9223372036854775807. */
10873 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10874 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10875 && LARGE_OFF_T % 2147483647 == 1)
10876 ? 1 : -1];
10877 int
10878 main ()
10879 {
10880
10881 ;
10882 return 0;
10883 }
10884 _ACEOF
10885 if ac_fn_c_try_compile "$LINENO"; then :
10886 ac_cv_sys_file_offset_bits=no; break
10887 fi
10888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10890 /* end confdefs.h. */
10891 #define _FILE_OFFSET_BITS 64
10892 #include <sys/types.h>
10893 /* Check that off_t can represent 2**63 - 1 correctly.
10894 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10895 since some C++ compilers masquerading as C compilers
10896 incorrectly reject 9223372036854775807. */
10897 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10898 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10899 && LARGE_OFF_T % 2147483647 == 1)
10900 ? 1 : -1];
10901 int
10902 main ()
10903 {
10904
10905 ;
10906 return 0;
10907 }
10908 _ACEOF
10909 if ac_fn_c_try_compile "$LINENO"; then :
10910 ac_cv_sys_file_offset_bits=64; break
10911 fi
10912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10913 ac_cv_sys_file_offset_bits=unknown
10914 break
10915 done
10916 fi
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10918 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10919 case $ac_cv_sys_file_offset_bits in #(
10920 no | unknown) ;;
10921 *)
10922 cat >>confdefs.h <<_ACEOF
10923 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10924 _ACEOF
10925 ;;
10926 esac
10927 rm -rf conftest*
10928 if test $ac_cv_sys_file_offset_bits = unknown; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10930 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10931 if ${ac_cv_sys_large_files+:} false; then :
10932 $as_echo_n "(cached) " >&6
10933 else
10934 while :; do
10935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10936 /* end confdefs.h. */
10937 #include <sys/types.h>
10938 /* Check that off_t can represent 2**63 - 1 correctly.
10939 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10940 since some C++ compilers masquerading as C compilers
10941 incorrectly reject 9223372036854775807. */
10942 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10943 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10944 && LARGE_OFF_T % 2147483647 == 1)
10945 ? 1 : -1];
10946 int
10947 main ()
10948 {
10949
10950 ;
10951 return 0;
10952 }
10953 _ACEOF
10954 if ac_fn_c_try_compile "$LINENO"; then :
10955 ac_cv_sys_large_files=no; break
10956 fi
10957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h. */
10960 #define _LARGE_FILES 1
10961 #include <sys/types.h>
10962 /* Check that off_t can represent 2**63 - 1 correctly.
10963 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10964 since some C++ compilers masquerading as C compilers
10965 incorrectly reject 9223372036854775807. */
10966 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10967 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10968 && LARGE_OFF_T % 2147483647 == 1)
10969 ? 1 : -1];
10970 int
10971 main ()
10972 {
10973
10974 ;
10975 return 0;
10976 }
10977 _ACEOF
10978 if ac_fn_c_try_compile "$LINENO"; then :
10979 ac_cv_sys_large_files=1; break
10980 fi
10981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10982 ac_cv_sys_large_files=unknown
10983 break
10984 done
10985 fi
10986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10987 $as_echo "$ac_cv_sys_large_files" >&6; }
10988 case $ac_cv_sys_large_files in #(
10989 no | unknown) ;;
10990 *)
10991 cat >>confdefs.h <<_ACEOF
10992 #define _LARGE_FILES $ac_cv_sys_large_files
10993 _ACEOF
10994 ;;
10995 esac
10996 rm -rf conftest*
10997 fi
10998
10999
11000 fi
11001
11002
11003
11004 pkg_failed=no
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11006 $as_echo_n "checking for X... " >&6; }
11007
11008 if test -n "$X_CFLAGS"; then
11009 pkg_cv_X_CFLAGS="$X_CFLAGS"
11010 elif test -n "$PKG_CONFIG"; then
11011 if test -n "$PKG_CONFIG" && \
11012 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5
11013 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5
11014 ac_status=$?
11015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11016 test $ac_status = 0; }; then
11017 pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17" 2>/dev/null`
11018 test "x$?" != "x0" && pkg_failed=yes
11019 else
11020 pkg_failed=yes
11021 fi
11022 else
11023 pkg_failed=untried
11024 fi
11025 if test -n "$X_LIBS"; then
11026 pkg_cv_X_LIBS="$X_LIBS"
11027 elif test -n "$PKG_CONFIG"; then
11028 if test -n "$PKG_CONFIG" && \
11029 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17\""; } >&5
11030 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17") 2>&5
11031 ac_status=$?
11032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11033 test $ac_status = 0; }; then
11034 pkg_cv_X_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17" 2>/dev/null`
11035 test "x$?" != "x0" && pkg_failed=yes
11036 else
11037 pkg_failed=yes
11038 fi
11039 else
11040 pkg_failed=untried
11041 fi
11042
11043
11044
11045 if test $pkg_failed = yes; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 $as_echo "no" >&6; }
11048
11049 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11050 _pkg_short_errors_supported=yes
11051 else
11052 _pkg_short_errors_supported=no
11053 fi
11054 if test $_pkg_short_errors_supported = yes; then
11055 X_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1`
11056 else
11057 X_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17" 2>&1`
11058 fi
11059 # Put the nasty error message in config.log where it belongs
11060 echo "$X_PKG_ERRORS" >&5
11061
11062 as_fn_error $? "Package requirements (xproto >= 7.0.17) were not met:
11063
11064 $X_PKG_ERRORS
11065
11066 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11067 installed software in a non-standard prefix.
11068
11069 Alternatively, you may set the environment variables X_CFLAGS
11070 and X_LIBS to avoid the need to call pkg-config.
11071 See the pkg-config man page for more details." "$LINENO" 5
11072 elif test $pkg_failed = untried; then
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11074 $as_echo "no" >&6; }
11075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11077 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11078 is in your PATH or set the PKG_CONFIG environment variable to the full
11079 path to pkg-config.
11080
11081 Alternatively, you may set the environment variables X_CFLAGS
11082 and X_LIBS to avoid the need to call pkg-config.
11083 See the pkg-config man page for more details.
11084
11085 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11086 See \`config.log' for more details" "$LINENO" 5; }
11087 else
11088 X_CFLAGS=$pkg_cv_X_CFLAGS
11089 X_LIBS=$pkg_cv_X_LIBS
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11091 $as_echo "yes" >&6; }
11092
11093 fi
11094
11095 ac_config_files="$ac_config_files Makefile"
11096
11097 cat >confcache <<\_ACEOF
11098 # This file is a shell script that caches the results of configure
11099 # tests run on this system so they can be shared between configure
11100 # scripts and configure runs, see configure's option --config-cache.
11101 # It is not useful on other systems. If it contains results you don't
11102 # want to keep, you may remove or edit it.
11103 #
11104 # config.status only pays attention to the cache file if you give it
11105 # the --recheck option to rerun configure.
11106 #
11107 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11108 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11109 # following values.
11110
11111 _ACEOF
11112
11113 # The following way of writing the cache mishandles newlines in values,
11114 # but we know of no workaround that is simple, portable, and efficient.
11115 # So, we kill variables containing newlines.
11116 # Ultrix sh set writes to stderr and can't be redirected directly,
11117 # and sets the high bit in the cache file unless we assign to the vars.
11118 (
11119 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11120 eval ac_val=\$$ac_var
11121 case $ac_val in #(
11122 *${as_nl}*)
11123 case $ac_var in #(
11124 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11125 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11126 esac
11127 case $ac_var in #(
11128 _ | IFS | as_nl) ;; #(
11129 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11130 *) { eval $ac_var=; unset $ac_var;} ;;
11131 esac ;;
11132 esac
11133 done
11134
11135 (set) 2>&1 |
11136 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11137 *${as_nl}ac_space=\ *)
11138 # `set' does not quote correctly, so add quotes: double-quote
11139 # substitution turns \\\\ into \\, and sed turns \\ into \.
11140 sed -n \
11141 "s/'/'\\\\''/g;
11142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11143 ;; #(
11144 *)
11145 # `set' quotes correctly as required by POSIX, so do not add quotes.
11146 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11147 ;;
11148 esac |
11149 sort
11150 ) |
11151 sed '
11152 /^ac_cv_env_/b end
11153 t clear
11154 :clear
11155 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11156 t end
11157 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11158 :end' >>confcache
11159 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11160 if test -w "$cache_file"; then
11161 if test "x$cache_file" != "x/dev/null"; then
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11163 $as_echo "$as_me: updating cache $cache_file" >&6;}
11164 if test ! -f "$cache_file" || test -h "$cache_file"; then
11165 cat confcache >"$cache_file"
11166 else
11167 case $cache_file in #(
11168 */* | ?:*)
11169 mv -f confcache "$cache_file"$$ &&
11170 mv -f "$cache_file"$$ "$cache_file" ;; #(
11171 *)
11172 mv -f confcache "$cache_file" ;;
11173 esac
11174 fi
11175 fi
11176 else
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11178 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11179 fi
11180 fi
11181 rm -f confcache
11182
11183 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11184 # Let make expand exec_prefix.
11185 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11186
11187 DEFS=-DHAVE_CONFIG_H
11188
11189 ac_libobjs=
11190 ac_ltlibobjs=
11191 U=
11192 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11193 # 1. Remove the extension, and $U if already installed.
11194 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11195 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11196 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11197 # will be set to the directory where LIBOBJS objects are built.
11198 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11199 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11200 done
11201 LIBOBJS=$ac_libobjs
11202
11203 LTLIBOBJS=$ac_ltlibobjs
11204
11205
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11207 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11208 if test -n "$am_sleep_pid"; then
11209 # Hide warnings about reused PIDs.
11210 wait $am_sleep_pid 2>/dev/null
11211 fi
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11213 $as_echo "done" >&6; }
11214 if test -n "$EXEEXT"; then
11215 am__EXEEXT_TRUE=
11216 am__EXEEXT_FALSE='#'
11217 else
11218 am__EXEEXT_TRUE='#'
11219 am__EXEEXT_FALSE=
11220 fi
11221
11222 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11223 as_fn_error $? "conditional \"AMDEP\" was never defined.
11224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11225 fi
11226 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11227 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11229 fi
11230 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11231 as_fn_error $? "conditional \"LINT\" was never defined.
11232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11233 fi
11234
11235 : "${CONFIG_STATUS=./config.status}"
11236 ac_write_fail=0
11237 ac_clean_files_save=$ac_clean_files
11238 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11240 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11241 as_write_fail=0
11242 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11243 #! $SHELL
11244 # Generated by $as_me.
11245 # Run this file to recreate the current configuration.
11246 # Compiler output produced by configure, useful for debugging
11247 # configure, is in config.log if it exists.
11248
11249 debug=false
11250 ac_cs_recheck=false
11251 ac_cs_silent=false
11252
11253 SHELL=\${CONFIG_SHELL-$SHELL}
11254 export SHELL
11255 _ASEOF
11256 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11257 ## -------------------- ##
11258 ## M4sh Initialization. ##
11259 ## -------------------- ##
11260
11261 # Be more Bourne compatible
11262 DUALCASE=1; export DUALCASE # for MKS sh
11263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11264 emulate sh
11265 NULLCMD=:
11266 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11267 # is contrary to our usage. Disable this feature.
11268 alias -g '${1+"$@"}'='"$@"'
11269 setopt NO_GLOB_SUBST
11270 else
11271 case `(set -o) 2>/dev/null` in #(
11272 *posix*) :
11273 set -o posix ;; #(
11274 *) :
11275 ;;
11276 esac
11277 fi
11278
11279
11280 as_nl='
11281 '
11282 export as_nl
11283 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11284 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11285 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11286 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11287 # Prefer a ksh shell builtin over an external printf program on Solaris,
11288 # but without wasting forks for bash or zsh.
11289 if test -z "$BASH_VERSION$ZSH_VERSION" \
11290 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11291 as_echo='print -r --'
11292 as_echo_n='print -rn --'
11293 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11294 as_echo='printf %s\n'
11295 as_echo_n='printf %s'
11296 else
11297 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11298 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11299 as_echo_n='/usr/ucb/echo -n'
11300 else
11301 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11302 as_echo_n_body='eval
11303 arg=$1;
11304 case $arg in #(
11305 *"$as_nl"*)
11306 expr "X$arg" : "X\\(.*\\)$as_nl";
11307 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11308 esac;
11309 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11310 '
11311 export as_echo_n_body
11312 as_echo_n='sh -c $as_echo_n_body as_echo'
11313 fi
11314 export as_echo_body
11315 as_echo='sh -c $as_echo_body as_echo'
11316 fi
11317
11318 # The user is always right.
11319 if test "${PATH_SEPARATOR+set}" != set; then
11320 PATH_SEPARATOR=:
11321 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11322 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11323 PATH_SEPARATOR=';'
11324 }
11325 fi
11326
11327
11328 # IFS
11329 # We need space, tab and new line, in precisely that order. Quoting is
11330 # there to prevent editors from complaining about space-tab.
11331 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11332 # splitting by setting IFS to empty value.)
11333 IFS=" "" $as_nl"
11334
11335 # Find who we are. Look in the path if we contain no directory separator.
11336 as_myself=
11337 case $0 in #((
11338 *[\\/]* ) as_myself=$0 ;;
11339 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11340 for as_dir in $PATH
11341 do
11342 IFS=$as_save_IFS
11343 test -z "$as_dir" && as_dir=.
11344 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11345 done
11346 IFS=$as_save_IFS
11347
11348 ;;
11349 esac
11350 # We did not find ourselves, most probably we were run as `sh COMMAND'
11351 # in which case we are not to be found in the path.
11352 if test "x$as_myself" = x; then
11353 as_myself=$0
11354 fi
11355 if test ! -f "$as_myself"; then
11356 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11357 exit 1
11358 fi
11359
11360 # Unset variables that we do not need and which cause bugs (e.g. in
11361 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11362 # suppresses any "Segmentation fault" message there. '((' could
11363 # trigger a bug in pdksh 5.2.14.
11364 for as_var in BASH_ENV ENV MAIL MAILPATH
11365 do eval test x\${$as_var+set} = xset \
11366 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11367 done
11368 PS1='$ '
11369 PS2='> '
11370 PS4='+ '
11371
11372 # NLS nuisances.
11373 LC_ALL=C
11374 export LC_ALL
11375 LANGUAGE=C
11376 export LANGUAGE
11377
11378 # CDPATH.
11379 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11380
11381
11382 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11383 # ----------------------------------------
11384 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11385 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11386 # script with STATUS, using 1 if that was 0.
11387 as_fn_error ()
11388 {
11389 as_status=$1; test $as_status -eq 0 && as_status=1
11390 if test "$4"; then
11391 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11392 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11393 fi
11394 $as_echo "$as_me: error: $2" >&2
11395 as_fn_exit $as_status
11396 } # as_fn_error
11397
11398
11399 # as_fn_set_status STATUS
11400 # -----------------------
11401 # Set $? to STATUS, without forking.
11402 as_fn_set_status ()
11403 {
11404 return $1
11405 } # as_fn_set_status
11406
11407 # as_fn_exit STATUS
11408 # -----------------
11409 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11410 as_fn_exit ()
11411 {
11412 set +e
11413 as_fn_set_status $1
11414 exit $1
11415 } # as_fn_exit
11416
11417 # as_fn_unset VAR
11418 # ---------------
11419 # Portably unset VAR.
11420 as_fn_unset ()
11421 {
11422 { eval $1=; unset $1;}
11423 }
11424 as_unset=as_fn_unset
11425 # as_fn_append VAR VALUE
11426 # ----------------------
11427 # Append the text in VALUE to the end of the definition contained in VAR. Take
11428 # advantage of any shell optimizations that allow amortized linear growth over
11429 # repeated appends, instead of the typical quadratic growth present in naive
11430 # implementations.
11431 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11432 eval 'as_fn_append ()
11433 {
11434 eval $1+=\$2
11435 }'
11436 else
11437 as_fn_append ()
11438 {
11439 eval $1=\$$1\$2
11440 }
11441 fi # as_fn_append
11442
11443 # as_fn_arith ARG...
11444 # ------------------
11445 # Perform arithmetic evaluation on the ARGs, and store the result in the
11446 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11447 # must be portable across $(()) and expr.
11448 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11449 eval 'as_fn_arith ()
11450 {
11451 as_val=$(( $* ))
11452 }'
11453 else
11454 as_fn_arith ()
11455 {
11456 as_val=`expr "$@" || test $? -eq 1`
11457 }
11458 fi # as_fn_arith
11459
11460
11461 if expr a : '\(a\)' >/dev/null 2>&1 &&
11462 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11463 as_expr=expr
11464 else
11465 as_expr=false
11466 fi
11467
11468 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11469 as_basename=basename
11470 else
11471 as_basename=false
11472 fi
11473
11474 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11475 as_dirname=dirname
11476 else
11477 as_dirname=false
11478 fi
11479
11480 as_me=`$as_basename -- "$0" ||
11481 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11482 X"$0" : 'X\(//\)$' \| \
11483 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11484 $as_echo X/"$0" |
11485 sed '/^.*\/\([^/][^/]*\)\/*$/{
11486 s//\1/
11487 q
11488 }
11489 /^X\/\(\/\/\)$/{
11490 s//\1/
11491 q
11492 }
11493 /^X\/\(\/\).*/{
11494 s//\1/
11495 q
11496 }
11497 s/.*/./; q'`
11498
11499 # Avoid depending upon Character Ranges.
11500 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11501 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11502 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11503 as_cr_digits='0123456789'
11504 as_cr_alnum=$as_cr_Letters$as_cr_digits
11505
11506 ECHO_C= ECHO_N= ECHO_T=
11507 case `echo -n x` in #(((((
11508 -n*)
11509 case `echo 'xy\c'` in
11510 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11511 xy) ECHO_C='\c';;
11512 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11513 ECHO_T=' ';;
11514 esac;;
11515 *)
11516 ECHO_N='-n';;
11517 esac
11518
11519 rm -f conf$$ conf$$.exe conf$$.file
11520 if test -d conf$$.dir; then
11521 rm -f conf$$.dir/conf$$.file
11522 else
11523 rm -f conf$$.dir
11524 mkdir conf$$.dir 2>/dev/null
11525 fi
11526 if (echo >conf$$.file) 2>/dev/null; then
11527 if ln -s conf$$.file conf$$ 2>/dev/null; then
11528 as_ln_s='ln -s'
11529 # ... but there are two gotchas:
11530 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11531 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11532 # In both cases, we have to default to `cp -pR'.
11533 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11534 as_ln_s='cp -pR'
11535 elif ln conf$$.file conf$$ 2>/dev/null; then
11536 as_ln_s=ln
11537 else
11538 as_ln_s='cp -pR'
11539 fi
11540 else
11541 as_ln_s='cp -pR'
11542 fi
11543 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11544 rmdir conf$$.dir 2>/dev/null
11545
11546
11547 # as_fn_mkdir_p
11548 # -------------
11549 # Create "$as_dir" as a directory, including parents if necessary.
11550 as_fn_mkdir_p ()
11551 {
11552
11553 case $as_dir in #(
11554 -*) as_dir=./$as_dir;;
11555 esac
11556 test -d "$as_dir" || eval $as_mkdir_p || {
11557 as_dirs=
11558 while :; do
11559 case $as_dir in #(
11560 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11561 *) as_qdir=$as_dir;;
11562 esac
11563 as_dirs="'$as_qdir' $as_dirs"
11564 as_dir=`$as_dirname -- "$as_dir" ||
11565 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11566 X"$as_dir" : 'X\(//\)[^/]' \| \
11567 X"$as_dir" : 'X\(//\)$' \| \
11568 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11569 $as_echo X"$as_dir" |
11570 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11571 s//\1/
11572 q
11573 }
11574 /^X\(\/\/\)[^/].*/{
11575 s//\1/
11576 q
11577 }
11578 /^X\(\/\/\)$/{
11579 s//\1/
11580 q
11581 }
11582 /^X\(\/\).*/{
11583 s//\1/
11584 q
11585 }
11586 s/.*/./; q'`
11587 test -d "$as_dir" && break
11588 done
11589 test -z "$as_dirs" || eval "mkdir $as_dirs"
11590 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11591
11592
11593 } # as_fn_mkdir_p
11594 if mkdir -p . 2>/dev/null; then
11595 as_mkdir_p='mkdir -p "$as_dir"'
11596 else
11597 test -d ./-p && rmdir ./-p
11598 as_mkdir_p=false
11599 fi
11600
11601
11602 # as_fn_executable_p FILE
11603 # -----------------------
11604 # Test if FILE is an executable regular file.
11605 as_fn_executable_p ()
11606 {
11607 test -f "$1" && test -x "$1"
11608 } # as_fn_executable_p
11609 as_test_x='test -x'
11610 as_executable_p=as_fn_executable_p
11611
11612 # Sed expression to map a string onto a valid CPP name.
11613 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11614
11615 # Sed expression to map a string onto a valid variable name.
11616 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11617
11618
11619 exec 6>&1
11620 ## ----------------------------------- ##
11621 ## Main body of $CONFIG_STATUS script. ##
11622 ## ----------------------------------- ##
11623 _ASEOF
11624 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11625
11626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11627 # Save the log message, to keep $0 and so on meaningful, and to
11628 # report actual input values of CONFIG_FILES etc. instead of their
11629 # values after options handling.
11630 ac_log="
11631 This file was extended by makedepend $as_me 1.0.6, which was
11632 generated by GNU Autoconf 2.69. Invocation command line was
11633
11634 CONFIG_FILES = $CONFIG_FILES
11635 CONFIG_HEADERS = $CONFIG_HEADERS
11636 CONFIG_LINKS = $CONFIG_LINKS
11637 CONFIG_COMMANDS = $CONFIG_COMMANDS
11638 $ $0 $@
11639
11640 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11641 "
11642
11643 _ACEOF
11644
11645 case $ac_config_files in *"
11646 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11647 esac
11648
11649 case $ac_config_headers in *"
11650 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11651 esac
11652
11653
11654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11655 # Files that config.status was made for.
11656 config_files="$ac_config_files"
11657 config_headers="$ac_config_headers"
11658 config_commands="$ac_config_commands"
11659
11660 _ACEOF
11661
11662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11663 ac_cs_usage="\
11664 \`$as_me' instantiates files and other configuration actions
11665 from templates according to the current configuration. Unless the files
11666 and actions are specified as TAGs, all are instantiated by default.
11667
11668 Usage: $0 [OPTION]... [TAG]...
11669
11670 -h, --help print this help, then exit
11671 -V, --version print version number and configuration settings, then exit
11672 --config print configuration, then exit
11673 -q, --quiet, --silent
11674 do not print progress messages
11675 -d, --debug don't remove temporary files
11676 --recheck update $as_me by reconfiguring in the same conditions
11677 --file=FILE[:TEMPLATE]
11678 instantiate the configuration file FILE
11679 --header=FILE[:TEMPLATE]
11680 instantiate the configuration header FILE
11681
11682 Configuration files:
11683 $config_files
11684
11685 Configuration headers:
11686 $config_headers
11687
11688 Configuration commands:
11689 $config_commands
11690
11691 Report bugs to <https://gitlab.freedesktop.org/xorg/util/makedepend/issues>."
11692
11693 _ACEOF
11694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11695 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11696 ac_cs_version="\\
11697 makedepend config.status 1.0.6
11698 configured by $0, generated by GNU Autoconf 2.69,
11699 with options \\"\$ac_cs_config\\"
11700
11701 Copyright (C) 2012 Free Software Foundation, Inc.
11702 This config.status script is free software; the Free Software Foundation
11703 gives unlimited permission to copy, distribute and modify it."
11704
11705 ac_pwd='$ac_pwd'
11706 srcdir='$srcdir'
11707 INSTALL='$INSTALL'
11708 MKDIR_P='$MKDIR_P'
11709 AWK='$AWK'
11710 test -n "\$AWK" || AWK=awk
11711 _ACEOF
11712
11713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11714 # The default lists apply if the user does not specify any file.
11715 ac_need_defaults=:
11716 while test $# != 0
11717 do
11718 case $1 in
11719 --*=?*)
11720 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11721 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11722 ac_shift=:
11723 ;;
11724 --*=)
11725 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11726 ac_optarg=
11727 ac_shift=:
11728 ;;
11729 *)
11730 ac_option=$1
11731 ac_optarg=$2
11732 ac_shift=shift
11733 ;;
11734 esac
11735
11736 case $ac_option in
11737 # Handling of the options.
11738 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11739 ac_cs_recheck=: ;;
11740 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11741 $as_echo "$ac_cs_version"; exit ;;
11742 --config | --confi | --conf | --con | --co | --c )
11743 $as_echo "$ac_cs_config"; exit ;;
11744 --debug | --debu | --deb | --de | --d | -d )
11745 debug=: ;;
11746 --file | --fil | --fi | --f )
11747 $ac_shift
11748 case $ac_optarg in
11749 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11750 '') as_fn_error $? "missing file argument" ;;
11751 esac
11752 as_fn_append CONFIG_FILES " '$ac_optarg'"
11753 ac_need_defaults=false;;
11754 --header | --heade | --head | --hea )
11755 $ac_shift
11756 case $ac_optarg in
11757 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11758 esac
11759 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11760 ac_need_defaults=false;;
11761 --he | --h)
11762 # Conflict between --help and --header
11763 as_fn_error $? "ambiguous option: \`$1'
11764 Try \`$0 --help' for more information.";;
11765 --help | --hel | -h )
11766 $as_echo "$ac_cs_usage"; exit ;;
11767 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11768 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11769 ac_cs_silent=: ;;
11770
11771 # This is an error.
11772 -*) as_fn_error $? "unrecognized option: \`$1'
11773 Try \`$0 --help' for more information." ;;
11774
11775 *) as_fn_append ac_config_targets " $1"
11776 ac_need_defaults=false ;;
11777
11778 esac
11779 shift
11780 done
11781
11782 ac_configure_extra_args=
11783
11784 if $ac_cs_silent; then
11785 exec 6>/dev/null
11786 ac_configure_extra_args="$ac_configure_extra_args --silent"
11787 fi
11788
11789 _ACEOF
11790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11791 if \$ac_cs_recheck; then
11792 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11793 shift
11794 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11795 CONFIG_SHELL='$SHELL'
11796 export CONFIG_SHELL
11797 exec "\$@"
11798 fi
11799
11800 _ACEOF
11801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11802 exec 5>>config.log
11803 {
11804 echo
11805 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11806 ## Running $as_me. ##
11807 _ASBOX
11808 $as_echo "$ac_log"
11809 } >&5
11810
11811 _ACEOF
11812 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11813 #
11814 # INIT-COMMANDS
11815 #
11816 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11817
11818 _ACEOF
11819
11820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11821
11822 # Handling of arguments.
11823 for ac_config_target in $ac_config_targets
11824 do
11825 case $ac_config_target in
11826 "makedepend-config.h") CONFIG_HEADERS="$CONFIG_HEADERS makedepend-config.h" ;;
11827 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11828 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11829
11830 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11831 esac
11832 done
11833
11834
11835 # If the user did not use the arguments to specify the items to instantiate,
11836 # then the envvar interface is used. Set only those that are not.
11837 # We use the long form for the default assignment because of an extremely
11838 # bizarre bug on SunOS 4.1.3.
11839 if $ac_need_defaults; then
11840 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11841 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11842 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11843 fi
11844
11845 # Have a temporary directory for convenience. Make it in the build tree
11846 # simply because there is no reason against having it here, and in addition,
11847 # creating and moving files from /tmp can sometimes cause problems.
11848 # Hook for its removal unless debugging.
11849 # Note that there is a small window in which the directory will not be cleaned:
11850 # after its creation but before its name has been assigned to `$tmp'.
11851 $debug ||
11852 {
11853 tmp= ac_tmp=
11854 trap 'exit_status=$?
11855 : "${ac_tmp:=$tmp}"
11856 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11857 ' 0
11858 trap 'as_fn_exit 1' 1 2 13 15
11859 }
11860 # Create a (secure) tmp directory for tmp files.
11861
11862 {
11863 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11864 test -d "$tmp"
11865 } ||
11866 {
11867 tmp=./conf$$-$RANDOM
11868 (umask 077 && mkdir "$tmp")
11869 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11870 ac_tmp=$tmp
11871
11872 # Set up the scripts for CONFIG_FILES section.
11873 # No need to generate them if there are no CONFIG_FILES.
11874 # This happens for instance with `./config.status config.h'.
11875 if test -n "$CONFIG_FILES"; then
11876
11877
11878 ac_cr=`echo X | tr X '\015'`
11879 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11880 # But we know of no other shell where ac_cr would be empty at this
11881 # point, so we can use a bashism as a fallback.
11882 if test "x$ac_cr" = x; then
11883 eval ac_cr=\$\'\\r\'
11884 fi
11885 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11886 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11887 ac_cs_awk_cr='\\r'
11888 else
11889 ac_cs_awk_cr=$ac_cr
11890 fi
11891
11892 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11893 _ACEOF
11894
11895
11896 {
11897 echo "cat >conf$$subs.awk <<_ACEOF" &&
11898 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11899 echo "_ACEOF"
11900 } >conf$$subs.sh ||
11901 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11902 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11903 ac_delim='%!_!# '
11904 for ac_last_try in false false false false false :; do
11905 . ./conf$$subs.sh ||
11906 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11907
11908 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11909 if test $ac_delim_n = $ac_delim_num; then
11910 break
11911 elif $ac_last_try; then
11912 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11913 else
11914 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11915 fi
11916 done
11917 rm -f conf$$subs.sh
11918
11919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11920 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11921 _ACEOF
11922 sed -n '
11923 h
11924 s/^/S["/; s/!.*/"]=/
11925 p
11926 g
11927 s/^[^!]*!//
11928 :repl
11929 t repl
11930 s/'"$ac_delim"'$//
11931 t delim
11932 :nl
11933 h
11934 s/\(.\{148\}\)..*/\1/
11935 t more1
11936 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11937 p
11938 n
11939 b repl
11940 :more1
11941 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11942 p
11943 g
11944 s/.\{148\}//
11945 t nl
11946 :delim
11947 h
11948 s/\(.\{148\}\)..*/\1/
11949 t more2
11950 s/["\\]/\\&/g; s/^/"/; s/$/"/
11951 p
11952 b
11953 :more2
11954 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11955 p
11956 g
11957 s/.\{148\}//
11958 t delim
11959 ' <conf$$subs.awk | sed '
11960 /^[^""]/{
11961 N
11962 s/\n//
11963 }
11964 ' >>$CONFIG_STATUS || ac_write_fail=1
11965 rm -f conf$$subs.awk
11966 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11967 _ACAWK
11968 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11969 for (key in S) S_is_set[key] = 1
11970 FS = ""
11971
11972 }
11973 {
11974 line = $ 0
11975 nfields = split(line, field, "@")
11976 substed = 0
11977 len = length(field[1])
11978 for (i = 2; i < nfields; i++) {
11979 key = field[i]
11980 keylen = length(key)
11981 if (S_is_set[key]) {
11982 value = S[key]
11983 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11984 len += length(value) + length(field[++i])
11985 substed = 1
11986 } else
11987 len += 1 + keylen
11988 }
11989
11990 print line
11991 }
11992
11993 _ACAWK
11994 _ACEOF
11995 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11996 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11997 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11998 else
11999 cat
12000 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12001 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12002 _ACEOF
12003
12004 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12005 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12006 # trailing colons and then remove the whole line if VPATH becomes empty
12007 # (actually we leave an empty line to preserve line numbers).
12008 if test "x$srcdir" = x.; then
12009 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12010 h
12011 s///
12012 s/^/:/
12013 s/[ ]*$/:/
12014 s/:\$(srcdir):/:/g
12015 s/:\${srcdir}:/:/g
12016 s/:@srcdir@:/:/g
12017 s/^:*//
12018 s/:*$//
12019 x
12020 s/\(=[ ]*\).*/\1/
12021 G
12022 s/\n//
12023 s/^[^=]*=[ ]*$//
12024 }'
12025 fi
12026
12027 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12028 fi # test -n "$CONFIG_FILES"
12029
12030 # Set up the scripts for CONFIG_HEADERS section.
12031 # No need to generate them if there are no CONFIG_HEADERS.
12032 # This happens for instance with `./config.status Makefile'.
12033 if test -n "$CONFIG_HEADERS"; then
12034 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12035 BEGIN {
12036 _ACEOF
12037
12038 # Transform confdefs.h into an awk script `defines.awk', embedded as
12039 # here-document in config.status, that substitutes the proper values into
12040 # config.h.in to produce config.h.
12041
12042 # Create a delimiter string that does not exist in confdefs.h, to ease
12043 # handling of long lines.
12044 ac_delim='%!_!# '
12045 for ac_last_try in false false :; do
12046 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12047 if test -z "$ac_tt"; then
12048 break
12049 elif $ac_last_try; then
12050 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12051 else
12052 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12053 fi
12054 done
12055
12056 # For the awk script, D is an array of macro values keyed by name,
12057 # likewise P contains macro parameters if any. Preserve backslash
12058 # newline sequences.
12059
12060 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12061 sed -n '
12062 s/.\{148\}/&'"$ac_delim"'/g
12063 t rset
12064 :rset
12065 s/^[ ]*#[ ]*define[ ][ ]*/ /
12066 t def
12067 d
12068 :def
12069 s/\\$//
12070 t bsnl
12071 s/["\\]/\\&/g
12072 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12073 D["\1"]=" \3"/p
12074 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12075 d
12076 :bsnl
12077 s/["\\]/\\&/g
12078 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12079 D["\1"]=" \3\\\\\\n"\\/p
12080 t cont
12081 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12082 t cont
12083 d
12084 :cont
12085 n
12086 s/.\{148\}/&'"$ac_delim"'/g
12087 t clear
12088 :clear
12089 s/\\$//
12090 t bsnlc
12091 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12092 d
12093 :bsnlc
12094 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12095 b cont
12096 ' <confdefs.h | sed '
12097 s/'"$ac_delim"'/"\\\
12098 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12099
12100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12101 for (key in D) D_is_set[key] = 1
12102 FS = ""
12103 }
12104 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12105 line = \$ 0
12106 split(line, arg, " ")
12107 if (arg[1] == "#") {
12108 defundef = arg[2]
12109 mac1 = arg[3]
12110 } else {
12111 defundef = substr(arg[1], 2)
12112 mac1 = arg[2]
12113 }
12114 split(mac1, mac2, "(") #)
12115 macro = mac2[1]
12116 prefix = substr(line, 1, index(line, defundef) - 1)
12117 if (D_is_set[macro]) {
12118 # Preserve the white space surrounding the "#".
12119 print prefix "define", macro P[macro] D[macro]
12120 next
12121 } else {
12122 # Replace #undef with comments. This is necessary, for example,
12123 # in the case of _POSIX_SOURCE, which is predefined and required
12124 # on some systems where configure will not decide to define it.
12125 if (defundef == "undef") {
12126 print "/*", prefix defundef, macro, "*/"
12127 next
12128 }
12129 }
12130 }
12131 { print }
12132 _ACAWK
12133 _ACEOF
12134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12135 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12136 fi # test -n "$CONFIG_HEADERS"
12137
12138
12139 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12140 shift
12141 for ac_tag
12142 do
12143 case $ac_tag in
12144 :[FHLC]) ac_mode=$ac_tag; continue;;
12145 esac
12146 case $ac_mode$ac_tag in
12147 :[FHL]*:*);;
12148 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12149 :[FH]-) ac_tag=-:-;;
12150 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12151 esac
12152 ac_save_IFS=$IFS
12153 IFS=:
12154 set x $ac_tag
12155 IFS=$ac_save_IFS
12156 shift
12157 ac_file=$1
12158 shift
12159
12160 case $ac_mode in
12161 :L) ac_source=$1;;
12162 :[FH])
12163 ac_file_inputs=
12164 for ac_f
12165 do
12166 case $ac_f in
12167 -) ac_f="$ac_tmp/stdin";;
12168 *) # Look for the file first in the build tree, then in the source tree
12169 # (if the path is not absolute). The absolute path cannot be DOS-style,
12170 # because $ac_f cannot contain `:'.
12171 test -f "$ac_f" ||
12172 case $ac_f in
12173 [\\/$]*) false;;
12174 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12175 esac ||
12176 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12177 esac
12178 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12179 as_fn_append ac_file_inputs " '$ac_f'"
12180 done
12181
12182 # Let's still pretend it is `configure' which instantiates (i.e., don't
12183 # use $as_me), people would be surprised to read:
12184 # /* config.h. Generated by config.status. */
12185 configure_input='Generated from '`
12186 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12187 `' by configure.'
12188 if test x"$ac_file" != x-; then
12189 configure_input="$ac_file. $configure_input"
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12191 $as_echo "$as_me: creating $ac_file" >&6;}
12192 fi
12193 # Neutralize special characters interpreted by sed in replacement strings.
12194 case $configure_input in #(
12195 *\&* | *\|* | *\\* )
12196 ac_sed_conf_input=`$as_echo "$configure_input" |
12197 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12198 *) ac_sed_conf_input=$configure_input;;
12199 esac
12200
12201 case $ac_tag in
12202 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12203 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12204 esac
12205 ;;
12206 esac
12207
12208 ac_dir=`$as_dirname -- "$ac_file" ||
12209 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12210 X"$ac_file" : 'X\(//\)[^/]' \| \
12211 X"$ac_file" : 'X\(//\)$' \| \
12212 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12213 $as_echo X"$ac_file" |
12214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12215 s//\1/
12216 q
12217 }
12218 /^X\(\/\/\)[^/].*/{
12219 s//\1/
12220 q
12221 }
12222 /^X\(\/\/\)$/{
12223 s//\1/
12224 q
12225 }
12226 /^X\(\/\).*/{
12227 s//\1/
12228 q
12229 }
12230 s/.*/./; q'`
12231 as_dir="$ac_dir"; as_fn_mkdir_p
12232 ac_builddir=.
12233
12234 case "$ac_dir" in
12235 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12236 *)
12237 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12238 # A ".." for each directory in $ac_dir_suffix.
12239 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12240 case $ac_top_builddir_sub in
12241 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12242 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12243 esac ;;
12244 esac
12245 ac_abs_top_builddir=$ac_pwd
12246 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12247 # for backward compatibility:
12248 ac_top_builddir=$ac_top_build_prefix
12249
12250 case $srcdir in
12251 .) # We are building in place.
12252 ac_srcdir=.
12253 ac_top_srcdir=$ac_top_builddir_sub
12254 ac_abs_top_srcdir=$ac_pwd ;;
12255 [\\/]* | ?:[\\/]* ) # Absolute name.
12256 ac_srcdir=$srcdir$ac_dir_suffix;
12257 ac_top_srcdir=$srcdir
12258 ac_abs_top_srcdir=$srcdir ;;
12259 *) # Relative name.
12260 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12261 ac_top_srcdir=$ac_top_build_prefix$srcdir
12262 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12263 esac
12264 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12265
12266
12267 case $ac_mode in
12268 :F)
12269 #
12270 # CONFIG_FILE
12271 #
12272
12273 case $INSTALL in
12274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12275 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12276 esac
12277 ac_MKDIR_P=$MKDIR_P
12278 case $MKDIR_P in
12279 [\\/$]* | ?:[\\/]* ) ;;
12280 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12281 esac
12282 _ACEOF
12283
12284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12285 # If the template does not know about datarootdir, expand it.
12286 # FIXME: This hack should be removed a few years after 2.60.
12287 ac_datarootdir_hack=; ac_datarootdir_seen=
12288 ac_sed_dataroot='
12289 /datarootdir/ {
12290 p
12291 q
12292 }
12293 /@datadir@/p
12294 /@docdir@/p
12295 /@infodir@/p
12296 /@localedir@/p
12297 /@mandir@/p'
12298 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12299 *datarootdir*) ac_datarootdir_seen=yes;;
12300 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12302 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12303 _ACEOF
12304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12305 ac_datarootdir_hack='
12306 s&@datadir@&$datadir&g
12307 s&@docdir@&$docdir&g
12308 s&@infodir@&$infodir&g
12309 s&@localedir@&$localedir&g
12310 s&@mandir@&$mandir&g
12311 s&\\\${datarootdir}&$datarootdir&g' ;;
12312 esac
12313 _ACEOF
12314
12315 # Neutralize VPATH when `$srcdir' = `.'.
12316 # Shell code in configure.ac might set extrasub.
12317 # FIXME: do we really want to maintain this feature?
12318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12319 ac_sed_extra="$ac_vpsub
12320 $extrasub
12321 _ACEOF
12322 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12323 :t
12324 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12325 s|@configure_input@|$ac_sed_conf_input|;t t
12326 s&@top_builddir@&$ac_top_builddir_sub&;t t
12327 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12328 s&@srcdir@&$ac_srcdir&;t t
12329 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12330 s&@top_srcdir@&$ac_top_srcdir&;t t
12331 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12332 s&@builddir@&$ac_builddir&;t t
12333 s&@abs_builddir@&$ac_abs_builddir&;t t
12334 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12335 s&@INSTALL@&$ac_INSTALL&;t t
12336 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12337 $ac_datarootdir_hack
12338 "
12339 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12340 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12341
12342 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12343 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12344 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12345 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12347 which seems to be undefined. Please make sure it is defined" >&5
12348 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12349 which seems to be undefined. Please make sure it is defined" >&2;}
12350
12351 rm -f "$ac_tmp/stdin"
12352 case $ac_file in
12353 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12354 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12355 esac \
12356 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12357 ;;
12358 :H)
12359 #
12360 # CONFIG_HEADER
12361 #
12362 if test x"$ac_file" != x-; then
12363 {
12364 $as_echo "/* $configure_input */" \
12365 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12366 } >"$ac_tmp/config.h" \
12367 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12368 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12370 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12371 else
12372 rm -f "$ac_file"
12373 mv "$ac_tmp/config.h" "$ac_file" \
12374 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12375 fi
12376 else
12377 $as_echo "/* $configure_input */" \
12378 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12379 || as_fn_error $? "could not create -" "$LINENO" 5
12380 fi
12381 # Compute "$ac_file"'s index in $config_headers.
12382 _am_arg="$ac_file"
12383 _am_stamp_count=1
12384 for _am_header in $config_headers :; do
12385 case $_am_header in
12386 $_am_arg | $_am_arg:* )
12387 break ;;
12388 * )
12389 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12390 esac
12391 done
12392 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12393 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12394 X"$_am_arg" : 'X\(//\)[^/]' \| \
12395 X"$_am_arg" : 'X\(//\)$' \| \
12396 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12397 $as_echo X"$_am_arg" |
12398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12399 s//\1/
12400 q
12401 }
12402 /^X\(\/\/\)[^/].*/{
12403 s//\1/
12404 q
12405 }
12406 /^X\(\/\/\)$/{
12407 s//\1/
12408 q
12409 }
12410 /^X\(\/\).*/{
12411 s//\1/
12412 q
12413 }
12414 s/.*/./; q'`/stamp-h$_am_stamp_count
12415 ;;
12416
12417 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12418 $as_echo "$as_me: executing $ac_file commands" >&6;}
12419 ;;
12420 esac
12421
12422
12423 case $ac_file$ac_mode in
12424 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12425 # Older Autoconf quotes --file arguments for eval, but not when files
12426 # are listed without --file. Let's play safe and only enable the eval
12427 # if we detect the quoting.
12428 case $CONFIG_FILES in
12429 *\'*) eval set x "$CONFIG_FILES" ;;
12430 *) set x $CONFIG_FILES ;;
12431 esac
12432 shift
12433 for mf
12434 do
12435 # Strip MF so we end up with the name of the file.
12436 mf=`echo "$mf" | sed -e 's/:.*$//'`
12437 # Check whether this is an Automake generated Makefile or not.
12438 # We used to match only the files named 'Makefile.in', but
12439 # some people rename them; so instead we look at the file content.
12440 # Grep'ing the first line is not enough: some people post-process
12441 # each Makefile.in and add a new line on top of each file to say so.
12442 # Grep'ing the whole file is not good either: AIX grep has a line
12443 # limit of 2048, but all sed's we know have understand at least 4000.
12444 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12445 dirpart=`$as_dirname -- "$mf" ||
12446 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12447 X"$mf" : 'X\(//\)[^/]' \| \
12448 X"$mf" : 'X\(//\)$' \| \
12449 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12450 $as_echo X"$mf" |
12451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12452 s//\1/
12453 q
12454 }
12455 /^X\(\/\/\)[^/].*/{
12456 s//\1/
12457 q
12458 }
12459 /^X\(\/\/\)$/{
12460 s//\1/
12461 q
12462 }
12463 /^X\(\/\).*/{
12464 s//\1/
12465 q
12466 }
12467 s/.*/./; q'`
12468 else
12469 continue
12470 fi
12471 # Extract the definition of DEPDIR, am__include, and am__quote
12472 # from the Makefile without running 'make'.
12473 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12474 test -z "$DEPDIR" && continue
12475 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12476 test -z "$am__include" && continue
12477 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12478 # Find all dependency output files, they are included files with
12479 # $(DEPDIR) in their names. We invoke sed twice because it is the
12480 # simplest approach to changing $(DEPDIR) to its actual value in the
12481 # expansion.
12482 for file in `sed -n "
12483 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12484 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12485 # Make sure the directory exists.
12486 test -f "$dirpart/$file" && continue
12487 fdir=`$as_dirname -- "$file" ||
12488 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12489 X"$file" : 'X\(//\)[^/]' \| \
12490 X"$file" : 'X\(//\)$' \| \
12491 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12492 $as_echo X"$file" |
12493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12494 s//\1/
12495 q
12496 }
12497 /^X\(\/\/\)[^/].*/{
12498 s//\1/
12499 q
12500 }
12501 /^X\(\/\/\)$/{
12502 s//\1/
12503 q
12504 }
12505 /^X\(\/\).*/{
12506 s//\1/
12507 q
12508 }
12509 s/.*/./; q'`
12510 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12511 # echo "creating $dirpart/$file"
12512 echo '# dummy' > "$dirpart/$file"
12513 done
12514 done
12515 }
12516 ;;
12517
12518 esac
12519 done # for ac_tag
12520
12521
12522 as_fn_exit 0
12523 _ACEOF
12524 ac_clean_files=$ac_clean_files_save
12525
12526 test $ac_write_fail = 0 ||
12527 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12528
12529
12530 # configure is writing to config.log, and then calls config.status.
12531 # config.status does its own redirection, appending to config.log.
12532 # Unfortunately, on DOS this fails, as config.log is still kept open
12533 # by configure, so config.status won't be able to write to it; its
12534 # output is simply discarded. So we exec the FD to /dev/null,
12535 # effectively closing config.log, so it can be properly (re)opened and
12536 # appended to by config.status. When coming back to configure, we
12537 # need to make the FD available again.
12538 if test "$no_create" != yes; then
12539 ac_cs_success=:
12540 ac_config_status_args=
12541 test "$silent" = yes &&
12542 ac_config_status_args="$ac_config_status_args --quiet"
12543 exec 5>/dev/null
12544 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12545 exec 5>>config.log
12546 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12547 # would make configure fail if this is the last instruction.
12548 $ac_cs_success || as_fn_exit 1
12549 fi
12550 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12552 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12553 fi
12554
12555