configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for xman 1.2.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xman/-/issues/>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
274 $0: https://gitlab.freedesktop.org/xorg/app/xman/-/issues/
275 $0: about your system, including any error possibly output
276 $0: before this message. Then install a modern shell, or
277 $0: manually run the script under such a shell if you do
278 $0: have one."
279 fi
280 exit 1
281 fi ;;
282 esac
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else case e in #(
390 e) as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 } ;;
394 esac
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403 then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else case e in #(
409 e) as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 } ;;
413 esac
414 fi # as_fn_arith
415
416
417 # as_fn_error STATUS ERROR [LINENO LOG_FD]
418 # ----------------------------------------
419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421 # script with STATUS, using 1 if that was 0.
422 as_fn_error ()
423 {
424 as_status=$1; test $as_status -eq 0 && as_status=1
425 if test "$4"; then
426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428 fi
429 printf "%s\n" "$as_me: error: $2" >&2
430 as_fn_exit $as_status
431 } # as_fn_error
432
433 if expr a : '\(a\)' >/dev/null 2>&1 &&
434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
435 as_expr=expr
436 else
437 as_expr=false
438 fi
439
440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441 as_basename=basename
442 else
443 as_basename=false
444 fi
445
446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447 as_dirname=dirname
448 else
449 as_dirname=false
450 fi
451
452 as_me=`$as_basename -- "$0" ||
453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454 X"$0" : 'X\(//\)$' \| \
455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456 printf "%s\n" X/"$0" |
457 sed '/^.*\/\([^/][^/]*\)\/*$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\/\)$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\).*/{
466 s//\1/
467 q
468 }
469 s/.*/./; q'`
470
471 # Avoid depending upon Character Ranges.
472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475 as_cr_digits='0123456789'
476 as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479 as_lineno_1=$LINENO as_lineno_1a=$LINENO
480 as_lineno_2=$LINENO as_lineno_2a=$LINENO
481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 sed -n '
485 p
486 /[$]LINENO/=
487 ' <$as_myself |
488 sed '
489 t clear
490 :clear
491 s/[$]LINENO.*/&-/
492 t lineno
493 b
494 :lineno
495 N
496 :loop
497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498 t loop
499 s/-\n.*//
500 ' >$as_me.lineno &&
501 chmod +x "$as_me.lineno" ||
502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505 # already done that, so ensure we don't try to do so again and fall
506 # in an infinite loop. This has already happened in practice.
507 _as_can_reexec=no; export _as_can_reexec
508 # Don't try to exec as it changes $[0], causing all sort of problems
509 # (the dirname of $[0] is not the place where we might find the
510 # original and so on. Autoconf is especially sensitive to this).
511 . "./$as_me.lineno"
512 # Exit status is that of the last command.
513 exit
514 }
515
516
517 # Determine whether it's possible to make 'echo' print without a newline.
518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519 # for compatibility with existing Makefiles.
520 ECHO_C= ECHO_N= ECHO_T=
521 case `echo -n x` in #(((((
522 -n*)
523 case `echo 'xy\c'` in
524 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
525 xy) ECHO_C='\c';;
526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
527 ECHO_T=' ';;
528 esac;;
529 *)
530 ECHO_N='-n';;
531 esac
532
533 # For backward compatibility with old third-party macros, we provide
534 # the shell variables $as_echo and $as_echo_n. New code should use
535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536 as_echo='printf %s\n'
537 as_echo_n='printf %s'
538
539 rm -f conf$$ conf$$.exe conf$$.file
540 if test -d conf$$.dir; then
541 rm -f conf$$.dir/conf$$.file
542 else
543 rm -f conf$$.dir
544 mkdir conf$$.dir 2>/dev/null
545 fi
546 if (echo >conf$$.file) 2>/dev/null; then
547 if ln -s conf$$.file conf$$ 2>/dev/null; then
548 as_ln_s='ln -s'
549 # ... but there are two gotchas:
550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552 # In both cases, we have to default to 'cp -pR'.
553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554 as_ln_s='cp -pR'
555 elif ln conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s=ln
557 else
558 as_ln_s='cp -pR'
559 fi
560 else
561 as_ln_s='cp -pR'
562 fi
563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564 rmdir conf$$.dir 2>/dev/null
565
566 if mkdir -p . 2>/dev/null; then
567 as_mkdir_p='mkdir -p "$as_dir"'
568 else
569 test -d ./-p && rmdir ./-p
570 as_mkdir_p=false
571 fi
572
573 as_test_x='test -x'
574 as_executable_p=as_fn_executable_p
575
576 # Sed expression to map a string onto a valid CPP name.
577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580 # Sed expression to map a string onto a valid variable name.
581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585 test -n "$DJDIR" || exec 7<&0 </dev/null
586 exec 6>&1
587
588 # Name of the host.
589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590 # so uname gets run too.
591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593 #
594 # Initializations.
595 #
596 ac_default_prefix=/usr/local
597 ac_clean_files=
598 ac_config_libobj_dir=.
599 LIBOBJS=
600 cross_compiling=no
601 subdirs=
602 MFLAGS=
603 MAKEFLAGS=
604
605 # Identity of this package.
606 PACKAGE_NAME='xman'
607 PACKAGE_TARNAME='xman'
608 PACKAGE_VERSION='1.2.0'
609 PACKAGE_STRING='xman 1.2.0'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xman/-/issues/'
611 PACKAGE_URL=''
612
613 ac_unique_file="Makefile.am"
614 # Factoring default headers for most tests.
615 ac_includes_default="\
616 #include <stddef.h>
617 #ifdef HAVE_STDIO_H
618 # include <stdio.h>
619 #endif
620 #ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 #endif
623 #ifdef HAVE_STRING_H
624 # include <string.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
634 #endif
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef HAVE_UNISTD_H
642 # include <unistd.h>
643 #endif"
644
645 ac_header_c_list=
646 enable_year2038=no
647 ac_subst_vars='am__EXEEXT_FALSE
648 am__EXEEXT_TRUE
649 LTLIBOBJS
650 LIBOBJS
651 appdefaultdir
652 APPDEFS_LIBS
653 APPDEFS_CFLAGS
654 XMAN_LIBS
655 XMAN_CFLAGS
656 HELPDIR
657 MANDB
658 GROFF
659 MAN_SUBSTS
660 XORG_MAN_PAGE
661 ADMIN_MAN_DIR
662 DRIVER_MAN_DIR
663 MISC_MAN_DIR
664 FILE_MAN_DIR
665 LIB_MAN_DIR
666 APP_MAN_DIR
667 ADMIN_MAN_SUFFIX
668 DRIVER_MAN_SUFFIX
669 MISC_MAN_SUFFIX
670 FILE_MAN_SUFFIX
671 LIB_MAN_SUFFIX
672 APP_MAN_SUFFIX
673 SED
674 host_os
675 host_vendor
676 host_cpu
677 host
678 build_os
679 build_vendor
680 build_cpu
681 build
682 INSTALL_CMD
683 PKG_CONFIG_LIBDIR
684 PKG_CONFIG_PATH
685 PKG_CONFIG
686 CHANGELOG_CMD
687 STRICT_CFLAGS
688 CWARNFLAGS
689 BASE_CFLAGS
690 am__fastdepCC_FALSE
691 am__fastdepCC_TRUE
692 CCDEPMODE
693 am__nodep
694 AMDEPBACKSLASH
695 AMDEP_FALSE
696 AMDEP_TRUE
697 am__include
698 DEPDIR
699 OBJEXT
700 EXEEXT
701 ac_ct_CC
702 CPPFLAGS
703 LDFLAGS
704 CFLAGS
705 CC
706 AM_BACKSLASH
707 AM_DEFAULT_VERBOSITY
708 AM_DEFAULT_V
709 AM_V
710 CSCOPE
711 ETAGS
712 CTAGS
713 am__untar
714 am__tar
715 AMTAR
716 am__leading_dot
717 SET_MAKE
718 AWK
719 mkdir_p
720 MKDIR_P
721 INSTALL_STRIP_PROGRAM
722 STRIP
723 install_sh
724 MAKEINFO
725 AUTOHEADER
726 AUTOMAKE
727 AUTOCONF
728 ACLOCAL
729 VERSION
730 PACKAGE
731 CYGPATH_W
732 am__isrc
733 INSTALL_DATA
734 INSTALL_SCRIPT
735 INSTALL_PROGRAM
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 runstatedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL
775 am__quote'
776 ac_subst_files=''
777 ac_user_opts='
778 enable_option_checking
779 enable_silent_rules
780 enable_dependency_tracking
781 enable_selective_werror
782 enable_strict_compilation
783 enable_largefile
784 with_helpdir
785 with_sysmanpath
786 with_localmanpath
787 with_manconfig
788 with_appdefaultdir
789 enable_year2038
790 '
791 ac_precious_vars='build_alias
792 host_alias
793 target_alias
794 CC
795 CFLAGS
796 LDFLAGS
797 LIBS
798 CPPFLAGS
799 PKG_CONFIG
800 PKG_CONFIG_PATH
801 PKG_CONFIG_LIBDIR
802 XMAN_CFLAGS
803 XMAN_LIBS
804 APPDEFS_CFLAGS
805 APPDEFS_LIBS'
806
807
808 # Initialize some variables set by options.
809 ac_init_help=
810 ac_init_version=false
811 ac_unrecognized_opts=
812 ac_unrecognized_sep=
813 # The variables have the same names as the options, with
814 # dashes changed to underlines.
815 cache_file=/dev/null
816 exec_prefix=NONE
817 no_create=
818 no_recursion=
819 prefix=NONE
820 program_prefix=NONE
821 program_suffix=NONE
822 program_transform_name=s,x,x,
823 silent=
824 site=
825 srcdir=
826 verbose=
827 x_includes=NONE
828 x_libraries=NONE
829
830 # Installation directory options.
831 # These are left unexpanded so users can "make install exec_prefix=/foo"
832 # and all the variables that are supposed to be based on exec_prefix
833 # by default will actually change.
834 # Use braces instead of parens because sh, perl, etc. also accept them.
835 # (The list follows the same order as the GNU Coding Standards.)
836 bindir='${exec_prefix}/bin'
837 sbindir='${exec_prefix}/sbin'
838 libexecdir='${exec_prefix}/libexec'
839 datarootdir='${prefix}/share'
840 datadir='${datarootdir}'
841 sysconfdir='${prefix}/etc'
842 sharedstatedir='${prefix}/com'
843 localstatedir='${prefix}/var'
844 runstatedir='${localstatedir}/run'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
856
857 ac_prev=
858 ac_dashdash=
859 for ac_option
860 do
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
866 fi
867
868 case $ac_option in
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
872 esac
873
874 case $ac_dashdash$ac_option in
875 --)
876 ac_dashdash=yes ;;
877
878 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 ac_prev=bindir ;;
880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881 bindir=$ac_optarg ;;
882
883 -build | --build | --buil | --bui | --bu)
884 ac_prev=build_alias ;;
885 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886 build_alias=$ac_optarg ;;
887
888 -cache-file | --cache-file | --cache-fil | --cache-fi \
889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890 ac_prev=cache_file ;;
891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893 cache_file=$ac_optarg ;;
894
895 --config-cache | -C)
896 cache_file=config.cache ;;
897
898 -datadir | --datadir | --datadi | --datad)
899 ac_prev=datadir ;;
900 -datadir=* | --datadir=* | --datadi=* | --datad=*)
901 datadir=$ac_optarg ;;
902
903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904 | --dataroo | --dataro | --datar)
905 ac_prev=datarootdir ;;
906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908 datarootdir=$ac_optarg ;;
909
910 -disable-* | --disable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: '$ac_useropt'"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=no ;;
925
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
930
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
935
936 -enable-* | --enable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: '$ac_useropt'"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=\$ac_optarg ;;
951
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
960
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
964
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
971
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
976
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
982
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
989
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
994
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
999
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1006
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1011
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1018
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1023
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1027
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1031
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1035
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1044
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1049
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1056
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1063
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1080
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1085
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1090
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1094
1095 -runstatedir | --runstatedir | --runstatedi | --runstated \
1096 | --runstate | --runstat | --runsta | --runst | --runs \
1097 | --run | --ru | --r)
1098 ac_prev=runstatedir ;;
1099 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1100 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1101 | --run=* | --ru=* | --r=*)
1102 runstatedir=$ac_optarg ;;
1103
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1109
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1120
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1125
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1130
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1137
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1142
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1145
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1148
1149 -with-* | --with-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: '$ac_useropt'"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=\$ac_optarg ;;
1164
1165 -without-* | --without-*)
1166 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1167 # Reject names that are not valid shell variable names.
1168 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169 as_fn_error $? "invalid package name: '$ac_useropt'"
1170 ac_useropt_orig=$ac_useropt
1171 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1172 case $ac_user_opts in
1173 *"
1174 "with_$ac_useropt"
1175 "*) ;;
1176 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1177 ac_unrecognized_sep=', ';;
1178 esac
1179 eval with_$ac_useropt=no ;;
1180
1181 --x)
1182 # Obsolete; use --with-x.
1183 with_x=yes ;;
1184
1185 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1186 | --x-incl | --x-inc | --x-in | --x-i)
1187 ac_prev=x_includes ;;
1188 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1189 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1190 x_includes=$ac_optarg ;;
1191
1192 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1193 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1194 ac_prev=x_libraries ;;
1195 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1196 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1197 x_libraries=$ac_optarg ;;
1198
1199 -*) as_fn_error $? "unrecognized option: '$ac_option'
1200 Try '$0 --help' for more information"
1201 ;;
1202
1203 *=*)
1204 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1205 # Reject names that are not valid shell variable names.
1206 case $ac_envvar in #(
1207 '' | [0-9]* | *[!_$as_cr_alnum]* )
1208 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1209 esac
1210 eval $ac_envvar=\$ac_optarg
1211 export $ac_envvar ;;
1212
1213 *)
1214 # FIXME: should be removed in autoconf 3.0.
1215 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1216 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1217 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1218 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1219 ;;
1220
1221 esac
1222 done
1223
1224 if test -n "$ac_prev"; then
1225 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1226 as_fn_error $? "missing argument to $ac_option"
1227 fi
1228
1229 if test -n "$ac_unrecognized_opts"; then
1230 case $enable_option_checking in
1231 no) ;;
1232 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1233 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1234 esac
1235 fi
1236
1237 # Check all directory arguments for consistency.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir runstatedir
1242 do
1243 eval ac_val=\$$ac_var
1244 # Remove trailing slashes.
1245 case $ac_val in
1246 */ )
1247 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1248 eval $ac_var=\$ac_val;;
1249 esac
1250 # Be sure to have absolute directory names.
1251 case $ac_val in
1252 [\\/$]* | ?:[\\/]* ) continue;;
1253 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1254 esac
1255 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1256 done
1257
1258 # There might be people who depend on the old broken behavior: '$host'
1259 # used to hold the argument of --host etc.
1260 # FIXME: To remove some day.
1261 build=$build_alias
1262 host=$host_alias
1263 target=$target_alias
1264
1265 # FIXME: To remove some day.
1266 if test "x$host_alias" != x; then
1267 if test "x$build_alias" = x; then
1268 cross_compiling=maybe
1269 elif test "x$build_alias" != "x$host_alias"; then
1270 cross_compiling=yes
1271 fi
1272 fi
1273
1274 ac_tool_prefix=
1275 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1276
1277 test "$silent" = yes && exec 6>/dev/null
1278
1279
1280 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1281 ac_ls_di=`ls -di .` &&
1282 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1283 as_fn_error $? "working directory cannot be determined"
1284 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1285 as_fn_error $? "pwd does not report name of working directory"
1286
1287
1288 # Find the source files, if location was not specified.
1289 if test -z "$srcdir"; then
1290 ac_srcdir_defaulted=yes
1291 # Try the directory containing this script, then the parent directory.
1292 ac_confdir=`$as_dirname -- "$as_myself" ||
1293 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1294 X"$as_myself" : 'X\(//\)[^/]' \| \
1295 X"$as_myself" : 'X\(//\)$' \| \
1296 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1297 printf "%s\n" X"$as_myself" |
1298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)[^/].*/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\/\)$/{
1307 s//\1/
1308 q
1309 }
1310 /^X\(\/\).*/{
1311 s//\1/
1312 q
1313 }
1314 s/.*/./; q'`
1315 srcdir=$ac_confdir
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 srcdir=..
1318 fi
1319 else
1320 ac_srcdir_defaulted=no
1321 fi
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1324 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1325 fi
1326 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1327 ac_abs_confdir=`(
1328 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1329 pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1333 fi
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1346
1347 #
1348 # Report the --help message.
1349 #
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1353 cat <<_ACEOF
1354 'configure' configures xman 1.2.0 to adapt to many kinds of systems.
1355
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1357
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1360
1361 Defaults for the options are specified in brackets.
1362
1363 Configuration:
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print 'checking ...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for '--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or '..']
1373
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 [PREFIX]
1379
1380 By default, 'make install' will install all the files in
1381 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than '$ac_default_prefix' using '--prefix',
1383 for instance '--prefix=\$HOME'.
1384
1385 For better control, use the options below.
1386
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1395 --libdir=DIR object code libraries [EPREFIX/lib]
1396 --includedir=DIR C header files [PREFIX/include]
1397 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1398 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1399 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1400 --infodir=DIR info documentation [DATAROOTDIR/info]
1401 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1402 --mandir=DIR man documentation [DATAROOTDIR/man]
1403 --docdir=DIR documentation root [DATAROOTDIR/doc/xman]
1404 --htmldir=DIR html documentation [DOCDIR]
1405 --dvidir=DIR dvi documentation [DOCDIR]
1406 --pdfdir=DIR pdf documentation [DOCDIR]
1407 --psdir=DIR ps documentation [DOCDIR]
1408 _ACEOF
1409
1410 cat <<\_ACEOF
1411
1412 Program names:
1413 --program-prefix=PREFIX prepend PREFIX to installed program names
1414 --program-suffix=SUFFIX append SUFFIX to installed program names
1415 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1416
1417 System types:
1418 --build=BUILD configure for building on BUILD [guessed]
1419 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1420 _ACEOF
1421 fi
1422
1423 if test -n "$ac_init_help"; then
1424 case $ac_init_help in
1425 short | recursive ) echo "Configuration of xman 1.2.0:";;
1426 esac
1427 cat <<\_ACEOF
1428
1429 Optional Features:
1430 --disable-option-checking ignore unrecognized --enable/--with options
1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1433 --enable-silent-rules less verbose build output (undo: "make V=1")
1434 --disable-silent-rules verbose build output (undo: "make V=0")
1435 --enable-dependency-tracking
1436 do not reject slow dependency extractors
1437 --disable-dependency-tracking
1438 speeds up one-time build
1439 --disable-selective-werror
1440 Turn off selective compiler errors. (default:
1441 enabled)
1442 --enable-strict-compilation
1443 Enable all warnings from compiler and make them
1444 errors (default: disabled)
1445 --disable-largefile omit support for large files
1446 --enable-year2038 support timestamps after 2038
1447
1448 Optional Packages:
1449 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1450 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1451 --with-helpdir=<path> Set default directory for xman.help (default:
1452 ${datadir}/X11)
1453 --with-sysmanpath=<path>
1454 Set default system man page search path
1455 --with-localmanpath=<path>
1456 Set default local man page search path
1457 --with-manconfig=<filename>
1458 Set default system man configuration file
1459 --with-appdefaultdir=<pathname>
1460 specify directory for app-defaults files (default is
1461 autodetected)
1462
1463 Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
1468 LIBS libraries to pass to the linker, e.g. -l<library>
1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1470 you have headers in a nonstandard directory <include dir>
1471 PKG_CONFIG path to pkg-config utility
1472 PKG_CONFIG_PATH
1473 directories to add to pkg-config's search path
1474 PKG_CONFIG_LIBDIR
1475 path overriding pkg-config's built-in search path
1476 XMAN_CFLAGS C compiler flags for XMAN, overriding pkg-config
1477 XMAN_LIBS linker flags for XMAN, overriding pkg-config
1478 APPDEFS_CFLAGS
1479 C compiler flags for APPDEFS, overriding pkg-config
1480 APPDEFS_LIBS
1481 linker flags for APPDEFS, overriding pkg-config
1482
1483 Use these variables to override the choices made by 'configure' or to help
1484 it to find libraries and programs with nonstandard names/locations.
1485
1486 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xman/-/issues/>.
1487 _ACEOF
1488 ac_status=$?
1489 fi
1490
1491 if test "$ac_init_help" = "recursive"; then
1492 # If there are subdirs, report their specific --help.
1493 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1494 test -d "$ac_dir" ||
1495 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496 continue
1497 ac_builddir=.
1498
1499 case "$ac_dir" in
1500 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501 *)
1502 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1503 # A ".." for each directory in $ac_dir_suffix.
1504 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1505 case $ac_top_builddir_sub in
1506 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1508 esac ;;
1509 esac
1510 ac_abs_top_builddir=$ac_pwd
1511 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1512 # for backward compatibility:
1513 ac_top_builddir=$ac_top_build_prefix
1514
1515 case $srcdir in
1516 .) # We are building in place.
1517 ac_srcdir=.
1518 ac_top_srcdir=$ac_top_builddir_sub
1519 ac_abs_top_srcdir=$ac_pwd ;;
1520 [\\/]* | ?:[\\/]* ) # Absolute name.
1521 ac_srcdir=$srcdir$ac_dir_suffix;
1522 ac_top_srcdir=$srcdir
1523 ac_abs_top_srcdir=$srcdir ;;
1524 *) # Relative name.
1525 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1526 ac_top_srcdir=$ac_top_build_prefix$srcdir
1527 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1528 esac
1529 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1530
1531 cd "$ac_dir" || { ac_status=$?; continue; }
1532 # Check for configure.gnu first; this name is used for a wrapper for
1533 # Metaconfig's "Configure" on case-insensitive file systems.
1534 if test -f "$ac_srcdir/configure.gnu"; then
1535 echo &&
1536 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1537 elif test -f "$ac_srcdir/configure"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure" --help=recursive
1540 else
1541 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1542 fi || ac_status=$?
1543 cd "$ac_pwd" || { ac_status=$?; break; }
1544 done
1545 fi
1546
1547 test -n "$ac_init_help" && exit $ac_status
1548 if $ac_init_version; then
1549 cat <<\_ACEOF
1550 xman configure 1.2.0
1551 generated by GNU Autoconf 2.72
1552
1553 Copyright (C) 2023 Free Software Foundation, Inc.
1554 This configure script is free software; the Free Software Foundation
1555 gives unlimited permission to copy, distribute and modify it.
1556 _ACEOF
1557 exit
1558 fi
1559
1560 ## ------------------------ ##
1561 ## Autoconf initialization. ##
1562 ## ------------------------ ##
1563
1564 # ac_fn_c_try_compile LINENO
1565 # --------------------------
1566 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1567 ac_fn_c_try_compile ()
1568 {
1569 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1570 rm -f conftest.$ac_objext conftest.beam
1571 if { { ac_try="$ac_compile"
1572 case "(($ac_try" in
1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1574 *) ac_try_echo=$ac_try;;
1575 esac
1576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1577 printf "%s\n" "$ac_try_echo"; } >&5
1578 (eval "$ac_compile") 2>conftest.err
1579 ac_status=$?
1580 if test -s conftest.err; then
1581 grep -v '^ *+' conftest.err >conftest.er1
1582 cat conftest.er1 >&5
1583 mv -f conftest.er1 conftest.err
1584 fi
1585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1586 test $ac_status = 0; } && {
1587 test -z "$ac_c_werror_flag" ||
1588 test ! -s conftest.err
1589 } && test -s conftest.$ac_objext
1590 then :
1591 ac_retval=0
1592 else case e in #(
1593 e) printf "%s\n" "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1595
1596 ac_retval=1 ;;
1597 esac
1598 fi
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1601
1602 } # ac_fn_c_try_compile
1603
1604 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1605 # ------------------------------------------------------------------
1606 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1607 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1608 ac_fn_check_decl ()
1609 {
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 as_decl_name=`echo $2|sed 's/ *(.*//'`
1612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1613 printf %s "checking whether $as_decl_name is declared... " >&6; }
1614 if eval test \${$3+y}
1615 then :
1616 printf %s "(cached) " >&6
1617 else case e in #(
1618 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1619 eval ac_save_FLAGS=\$$6
1620 as_fn_append $6 " $5"
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1623 $4
1624 int
1625 main (void)
1626 {
1627 #ifndef $as_decl_name
1628 #ifdef __cplusplus
1629 (void) $as_decl_use;
1630 #else
1631 (void) $as_decl_name;
1632 #endif
1633 #endif
1634
1635 ;
1636 return 0;
1637 }
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"
1640 then :
1641 eval "$3=yes"
1642 else case e in #(
1643 e) eval "$3=no" ;;
1644 esac
1645 fi
1646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1647 eval $6=\$ac_save_FLAGS
1648 ;;
1649 esac
1650 fi
1651 eval ac_res=\$$3
1652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 printf "%s\n" "$ac_res" >&6; }
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
1656 } # ac_fn_check_decl
1657
1658 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1659 # -------------------------------------------------------
1660 # Tests whether HEADER exists and can be compiled using the include files in
1661 # INCLUDES, setting the cache variable VAR accordingly.
1662 ac_fn_c_check_header_compile ()
1663 {
1664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1666 printf %s "checking for $2... " >&6; }
1667 if eval test \${$3+y}
1668 then :
1669 printf %s "(cached) " >&6
1670 else case e in #(
1671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1672 /* end confdefs.h. */
1673 $4
1674 #include <$2>
1675 _ACEOF
1676 if ac_fn_c_try_compile "$LINENO"
1677 then :
1678 eval "$3=yes"
1679 else case e in #(
1680 e) eval "$3=no" ;;
1681 esac
1682 fi
1683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1684 esac
1685 fi
1686 eval ac_res=\$$3
1687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 printf "%s\n" "$ac_res" >&6; }
1689 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1690
1691 } # ac_fn_c_check_header_compile
1692
1693 # ac_fn_c_try_link LINENO
1694 # -----------------------
1695 # Try to link conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_link ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1700 if { { ac_try="$ac_link"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 printf "%s\n" "$ac_try_echo"; } >&5
1707 (eval "$ac_link") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest$ac_exeext && {
1719 test "$cross_compiling" = yes ||
1720 test -x conftest$ac_exeext
1721 }
1722 then :
1723 ac_retval=0
1724 else case e in #(
1725 e) printf "%s\n" "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1727
1728 ac_retval=1 ;;
1729 esac
1730 fi
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1738
1739 } # ac_fn_c_try_link
1740
1741 # ac_fn_c_check_func LINENO FUNC VAR
1742 # ----------------------------------
1743 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1744 ac_fn_c_check_func ()
1745 {
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 printf %s "checking for $2... " >&6; }
1749 if eval test \${$3+y}
1750 then :
1751 printf %s "(cached) " >&6
1752 else case e in #(
1753 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1754 /* end confdefs.h. */
1755 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1756 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1757 #define $2 innocuous_$2
1758
1759 /* System header to define __stub macros and hopefully few prototypes,
1760 which can conflict with char $2 (void); below. */
1761
1762 #include <limits.h>
1763 #undef $2
1764
1765 /* Override any GCC internal prototype to avoid an error.
1766 Use char because int might match the return type of a GCC
1767 builtin and then its argument prototype would still apply. */
1768 #ifdef __cplusplus
1769 extern "C"
1770 #endif
1771 char $2 (void);
1772 /* The GNU C library defines this for functions which it implements
1773 to always fail with ENOSYS. Some functions are actually named
1774 something starting with __ and the normal name is an alias. */
1775 #if defined __stub_$2 || defined __stub___$2
1776 choke me
1777 #endif
1778
1779 int
1780 main (void)
1781 {
1782 return $2 ();
1783 ;
1784 return 0;
1785 }
1786 _ACEOF
1787 if ac_fn_c_try_link "$LINENO"
1788 then :
1789 eval "$3=yes"
1790 else case e in #(
1791 e) eval "$3=no" ;;
1792 esac
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1795 conftest$ac_exeext conftest.$ac_ext ;;
1796 esac
1797 fi
1798 eval ac_res=\$$3
1799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800 printf "%s\n" "$ac_res" >&6; }
1801 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1802
1803 } # ac_fn_c_check_func
1804 ac_configure_args_raw=
1805 for ac_arg
1806 do
1807 case $ac_arg in
1808 *\'*)
1809 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1810 esac
1811 as_fn_append ac_configure_args_raw " '$ac_arg'"
1812 done
1813
1814 case $ac_configure_args_raw in
1815 *$as_nl*)
1816 ac_safe_unquote= ;;
1817 *)
1818 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1819 ac_unsafe_a="$ac_unsafe_z#~"
1820 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1821 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1822 esac
1823
1824 cat >config.log <<_ACEOF
1825 This file contains any messages produced by compilers while
1826 running configure, to aid debugging if configure makes a mistake.
1827
1828 It was created by xman $as_me 1.2.0, which was
1829 generated by GNU Autoconf 2.72. Invocation command line was
1830
1831 $ $0$ac_configure_args_raw
1832
1833 _ACEOF
1834 exec 5>>config.log
1835 {
1836 cat <<_ASUNAME
1837 ## --------- ##
1838 ## Platform. ##
1839 ## --------- ##
1840
1841 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1842 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1843 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1844 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1845 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1846
1847 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1848 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1849
1850 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1851 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1852 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1853 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1854 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1855 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1856 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1857
1858 _ASUNAME
1859
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863 IFS=$as_save_IFS
1864 case $as_dir in #(((
1865 '') as_dir=./ ;;
1866 */) ;;
1867 *) as_dir=$as_dir/ ;;
1868 esac
1869 printf "%s\n" "PATH: $as_dir"
1870 done
1871 IFS=$as_save_IFS
1872
1873 } >&5
1874
1875 cat >&5 <<_ACEOF
1876
1877
1878 ## ----------- ##
1879 ## Core tests. ##
1880 ## ----------- ##
1881
1882 _ACEOF
1883
1884
1885 # Keep a trace of the command line.
1886 # Strip out --no-create and --no-recursion so they do not pile up.
1887 # Strip out --silent because we don't want to record it for future runs.
1888 # Also quote any args containing shell meta-characters.
1889 # Make two passes to allow for proper duplicate-argument suppression.
1890 ac_configure_args=
1891 ac_configure_args0=
1892 ac_configure_args1=
1893 ac_must_keep_next=false
1894 for ac_pass in 1 2
1895 do
1896 for ac_arg
1897 do
1898 case $ac_arg in
1899 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1900 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1901 | -silent | --silent | --silen | --sile | --sil)
1902 continue ;;
1903 *\'*)
1904 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1905 esac
1906 case $ac_pass in
1907 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1908 2)
1909 as_fn_append ac_configure_args1 " '$ac_arg'"
1910 if test $ac_must_keep_next = true; then
1911 ac_must_keep_next=false # Got value, back to normal.
1912 else
1913 case $ac_arg in
1914 *=* | --config-cache | -C | -disable-* | --disable-* \
1915 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1916 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1917 | -with-* | --with-* | -without-* | --without-* | --x)
1918 case "$ac_configure_args0 " in
1919 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1920 esac
1921 ;;
1922 -* ) ac_must_keep_next=true ;;
1923 esac
1924 fi
1925 as_fn_append ac_configure_args " '$ac_arg'"
1926 ;;
1927 esac
1928 done
1929 done
1930 { ac_configure_args0=; unset ac_configure_args0;}
1931 { ac_configure_args1=; unset ac_configure_args1;}
1932
1933 # When interrupted or exit'd, cleanup temporary files, and complete
1934 # config.log. We remove comments because anyway the quotes in there
1935 # would cause problems or look ugly.
1936 # WARNING: Use '\'' to represent an apostrophe within the trap.
1937 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1938 trap 'exit_status=$?
1939 # Sanitize IFS.
1940 IFS=" "" $as_nl"
1941 # Save into config.log some information that might help in debugging.
1942 {
1943 echo
1944
1945 printf "%s\n" "## ---------------- ##
1946 ## Cache variables. ##
1947 ## ---------------- ##"
1948 echo
1949 # The following way of writing the cache mishandles newlines in values,
1950 (
1951 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1952 eval ac_val=\$$ac_var
1953 case $ac_val in #(
1954 *${as_nl}*)
1955 case $ac_var in #(
1956 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1957 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1958 esac
1959 case $ac_var in #(
1960 _ | IFS | as_nl) ;; #(
1961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1962 *) { eval $ac_var=; unset $ac_var;} ;;
1963 esac ;;
1964 esac
1965 done
1966 (set) 2>&1 |
1967 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1968 *${as_nl}ac_space=\ *)
1969 sed -n \
1970 "s/'\''/'\''\\\\'\'''\''/g;
1971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1972 ;; #(
1973 *)
1974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1975 ;;
1976 esac |
1977 sort
1978 )
1979 echo
1980
1981 printf "%s\n" "## ----------------- ##
1982 ## Output variables. ##
1983 ## ----------------- ##"
1984 echo
1985 for ac_var in $ac_subst_vars
1986 do
1987 eval ac_val=\$$ac_var
1988 case $ac_val in
1989 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1990 esac
1991 printf "%s\n" "$ac_var='\''$ac_val'\''"
1992 done | sort
1993 echo
1994
1995 if test -n "$ac_subst_files"; then
1996 printf "%s\n" "## ------------------- ##
1997 ## File substitutions. ##
1998 ## ------------------- ##"
1999 echo
2000 for ac_var in $ac_subst_files
2001 do
2002 eval ac_val=\$$ac_var
2003 case $ac_val in
2004 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005 esac
2006 printf "%s\n" "$ac_var='\''$ac_val'\''"
2007 done | sort
2008 echo
2009 fi
2010
2011 if test -s confdefs.h; then
2012 printf "%s\n" "## ----------- ##
2013 ## confdefs.h. ##
2014 ## ----------- ##"
2015 echo
2016 cat confdefs.h
2017 echo
2018 fi
2019 test "$ac_signal" != 0 &&
2020 printf "%s\n" "$as_me: caught signal $ac_signal"
2021 printf "%s\n" "$as_me: exit $exit_status"
2022 } >&5
2023 rm -f core *.core core.conftest.* &&
2024 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2025 exit $exit_status
2026 ' 0
2027 for ac_signal in 1 2 13 15; do
2028 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2029 done
2030 ac_signal=0
2031
2032 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2033 rm -f -r conftest* confdefs.h
2034
2035 printf "%s\n" "/* confdefs.h */" > confdefs.h
2036
2037 # Predefined preprocessor variables.
2038
2039 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2040
2041 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2042
2043 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2044
2045 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2046
2047 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2048
2049 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2050
2051
2052 # Let the site file select an alternate cache file if it wants to.
2053 # Prefer an explicitly selected file to automatically selected ones.
2054 if test -n "$CONFIG_SITE"; then
2055 ac_site_files="$CONFIG_SITE"
2056 elif test "x$prefix" != xNONE; then
2057 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2058 else
2059 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2060 fi
2061
2062 for ac_site_file in $ac_site_files
2063 do
2064 case $ac_site_file in #(
2065 */*) :
2066 ;; #(
2067 *) :
2068 ac_site_file=./$ac_site_file ;;
2069 esac
2070 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2072 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2073 sed 's/^/| /' "$ac_site_file" >&5
2074 . "$ac_site_file" \
2075 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2076 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2077 as_fn_error $? "failed to load site script $ac_site_file
2078 See 'config.log' for more details" "$LINENO" 5; }
2079 fi
2080 done
2081
2082 if test -r "$cache_file"; then
2083 # Some versions of bash will fail to source /dev/null (special files
2084 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2085 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2087 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2088 case $cache_file in
2089 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2090 *) . "./$cache_file";;
2091 esac
2092 fi
2093 else
2094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2095 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2096 >$cache_file
2097 fi
2098
2099 # Test code for whether the C compiler supports C89 (global declarations)
2100 ac_c_conftest_c89_globals='
2101 /* Does the compiler advertise C89 conformance?
2102 Do not test the value of __STDC__, because some compilers set it to 0
2103 while being otherwise adequately conformant. */
2104 #if !defined __STDC__
2105 # error "Compiler does not advertise C89 conformance"
2106 #endif
2107
2108 #include <stddef.h>
2109 #include <stdarg.h>
2110 struct stat;
2111 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2112 struct buf { int x; };
2113 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2114 static char *e (char **p, int i)
2115 {
2116 return p[i];
2117 }
2118 static char *f (char * (*g) (char **, int), char **p, ...)
2119 {
2120 char *s;
2121 va_list v;
2122 va_start (v,p);
2123 s = g (p, va_arg (v,int));
2124 va_end (v);
2125 return s;
2126 }
2127
2128 /* C89 style stringification. */
2129 #define noexpand_stringify(a) #a
2130 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2131
2132 /* C89 style token pasting. Exercises some of the corner cases that
2133 e.g. old MSVC gets wrong, but not very hard. */
2134 #define noexpand_concat(a,b) a##b
2135 #define expand_concat(a,b) noexpand_concat(a,b)
2136 extern int vA;
2137 extern int vbee;
2138 #define aye A
2139 #define bee B
2140 int *pvA = &expand_concat(v,aye);
2141 int *pvbee = &noexpand_concat(v,bee);
2142
2143 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2144 function prototypes and stuff, but not \xHH hex character constants.
2145 These do not provoke an error unfortunately, instead are silently treated
2146 as an "x". The following induces an error, until -std is added to get
2147 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2148 array size at least. It is necessary to write \x00 == 0 to get something
2149 that is true only with -std. */
2150 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2151
2152 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2153 inside strings and character constants. */
2154 #define FOO(x) '\''x'\''
2155 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2156
2157 int test (int i, double x);
2158 struct s1 {int (*f) (int a);};
2159 struct s2 {int (*f) (double a);};
2160 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2161 int, int);'
2162
2163 # Test code for whether the C compiler supports C89 (body of main).
2164 ac_c_conftest_c89_main='
2165 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2166 '
2167
2168 # Test code for whether the C compiler supports C99 (global declarations)
2169 ac_c_conftest_c99_globals='
2170 /* Does the compiler advertise C99 conformance? */
2171 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2172 # error "Compiler does not advertise C99 conformance"
2173 #endif
2174
2175 // See if C++-style comments work.
2176
2177 #include <stdbool.h>
2178 extern int puts (const char *);
2179 extern int printf (const char *, ...);
2180 extern int dprintf (int, const char *, ...);
2181 extern void *malloc (size_t);
2182 extern void free (void *);
2183
2184 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2185 // dprintf is used instead of fprintf to avoid needing to declare
2186 // FILE and stderr.
2187 #define debug(...) dprintf (2, __VA_ARGS__)
2188 #define showlist(...) puts (#__VA_ARGS__)
2189 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2190 static void
2191 test_varargs_macros (void)
2192 {
2193 int x = 1234;
2194 int y = 5678;
2195 debug ("Flag");
2196 debug ("X = %d\n", x);
2197 showlist (The first, second, and third items.);
2198 report (x>y, "x is %d but y is %d", x, y);
2199 }
2200
2201 // Check long long types.
2202 #define BIG64 18446744073709551615ull
2203 #define BIG32 4294967295ul
2204 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2205 #if !BIG_OK
2206 #error "your preprocessor is broken"
2207 #endif
2208 #if BIG_OK
2209 #else
2210 #error "your preprocessor is broken"
2211 #endif
2212 static long long int bignum = -9223372036854775807LL;
2213 static unsigned long long int ubignum = BIG64;
2214
2215 struct incomplete_array
2216 {
2217 int datasize;
2218 double data[];
2219 };
2220
2221 struct named_init {
2222 int number;
2223 const wchar_t *name;
2224 double average;
2225 };
2226
2227 typedef const char *ccp;
2228
2229 static inline int
2230 test_restrict (ccp restrict text)
2231 {
2232 // Iterate through items via the restricted pointer.
2233 // Also check for declarations in for loops.
2234 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2235 continue;
2236 return 0;
2237 }
2238
2239 // Check varargs and va_copy.
2240 static bool
2241 test_varargs (const char *format, ...)
2242 {
2243 va_list args;
2244 va_start (args, format);
2245 va_list args_copy;
2246 va_copy (args_copy, args);
2247
2248 const char *str = "";
2249 int number = 0;
2250 float fnumber = 0;
2251
2252 while (*format)
2253 {
2254 switch (*format++)
2255 {
2256 case '\''s'\'': // string
2257 str = va_arg (args_copy, const char *);
2258 break;
2259 case '\''d'\'': // int
2260 number = va_arg (args_copy, int);
2261 break;
2262 case '\''f'\'': // float
2263 fnumber = va_arg (args_copy, double);
2264 break;
2265 default:
2266 break;
2267 }
2268 }
2269 va_end (args_copy);
2270 va_end (args);
2271
2272 return *str && number && fnumber;
2273 }
2274 '
2275
2276 # Test code for whether the C compiler supports C99 (body of main).
2277 ac_c_conftest_c99_main='
2278 // Check bool.
2279 _Bool success = false;
2280 success |= (argc != 0);
2281
2282 // Check restrict.
2283 if (test_restrict ("String literal") == 0)
2284 success = true;
2285 char *restrict newvar = "Another string";
2286
2287 // Check varargs.
2288 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2289 test_varargs_macros ();
2290
2291 // Check flexible array members.
2292 struct incomplete_array *ia =
2293 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2294 ia->datasize = 10;
2295 for (int i = 0; i < ia->datasize; ++i)
2296 ia->data[i] = i * 1.234;
2297 // Work around memory leak warnings.
2298 free (ia);
2299
2300 // Check named initializers.
2301 struct named_init ni = {
2302 .number = 34,
2303 .name = L"Test wide string",
2304 .average = 543.34343,
2305 };
2306
2307 ni.number = 58;
2308
2309 int dynamic_array[ni.number];
2310 dynamic_array[0] = argv[0][0];
2311 dynamic_array[ni.number - 1] = 543;
2312
2313 // work around unused variable warnings
2314 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2315 || dynamic_array[ni.number - 1] != 543);
2316 '
2317
2318 # Test code for whether the C compiler supports C11 (global declarations)
2319 ac_c_conftest_c11_globals='
2320 /* Does the compiler advertise C11 conformance? */
2321 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2322 # error "Compiler does not advertise C11 conformance"
2323 #endif
2324
2325 // Check _Alignas.
2326 char _Alignas (double) aligned_as_double;
2327 char _Alignas (0) no_special_alignment;
2328 extern char aligned_as_int;
2329 char _Alignas (0) _Alignas (int) aligned_as_int;
2330
2331 // Check _Alignof.
2332 enum
2333 {
2334 int_alignment = _Alignof (int),
2335 int_array_alignment = _Alignof (int[100]),
2336 char_alignment = _Alignof (char)
2337 };
2338 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2339
2340 // Check _Noreturn.
2341 int _Noreturn does_not_return (void) { for (;;) continue; }
2342
2343 // Check _Static_assert.
2344 struct test_static_assert
2345 {
2346 int x;
2347 _Static_assert (sizeof (int) <= sizeof (long int),
2348 "_Static_assert does not work in struct");
2349 long int y;
2350 };
2351
2352 // Check UTF-8 literals.
2353 #define u8 syntax error!
2354 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2355
2356 // Check duplicate typedefs.
2357 typedef long *long_ptr;
2358 typedef long int *long_ptr;
2359 typedef long_ptr long_ptr;
2360
2361 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2362 struct anonymous
2363 {
2364 union {
2365 struct { int i; int j; };
2366 struct { int k; long int l; } w;
2367 };
2368 int m;
2369 } v1;
2370 '
2371
2372 # Test code for whether the C compiler supports C11 (body of main).
2373 ac_c_conftest_c11_main='
2374 _Static_assert ((offsetof (struct anonymous, i)
2375 == offsetof (struct anonymous, w.k)),
2376 "Anonymous union alignment botch");
2377 v1.i = 2;
2378 v1.w.k = 5;
2379 ok |= v1.i != 5;
2380 '
2381
2382 # Test code for whether the C compiler supports C11 (complete).
2383 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2384 ${ac_c_conftest_c99_globals}
2385 ${ac_c_conftest_c11_globals}
2386
2387 int
2388 main (int argc, char **argv)
2389 {
2390 int ok = 0;
2391 ${ac_c_conftest_c89_main}
2392 ${ac_c_conftest_c99_main}
2393 ${ac_c_conftest_c11_main}
2394 return ok;
2395 }
2396 "
2397
2398 # Test code for whether the C compiler supports C99 (complete).
2399 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2400 ${ac_c_conftest_c99_globals}
2401
2402 int
2403 main (int argc, char **argv)
2404 {
2405 int ok = 0;
2406 ${ac_c_conftest_c89_main}
2407 ${ac_c_conftest_c99_main}
2408 return ok;
2409 }
2410 "
2411
2412 # Test code for whether the C compiler supports C89 (complete).
2413 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2414
2415 int
2416 main (int argc, char **argv)
2417 {
2418 int ok = 0;
2419 ${ac_c_conftest_c89_main}
2420 return ok;
2421 }
2422 "
2423
2424 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2425 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2426 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2427 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2428 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2429 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2430 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2431 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2432 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2433
2434 # Auxiliary files required by this configure script.
2435 ac_aux_files="config.guess config.sub compile missing install-sh"
2436
2437 # Locations in which to look for auxiliary files.
2438 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2439
2440 # Search for a directory containing all of the required auxiliary files,
2441 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2442 # If we don't find one directory that contains all the files we need,
2443 # we report the set of missing files from the *first* directory in
2444 # $ac_aux_dir_candidates and give up.
2445 ac_missing_aux_files=""
2446 ac_first_candidate=:
2447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2449 as_found=false
2450 for as_dir in $ac_aux_dir_candidates
2451 do
2452 IFS=$as_save_IFS
2453 case $as_dir in #(((
2454 '') as_dir=./ ;;
2455 */) ;;
2456 *) as_dir=$as_dir/ ;;
2457 esac
2458 as_found=:
2459
2460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2461 ac_aux_dir_found=yes
2462 ac_install_sh=
2463 for ac_aux in $ac_aux_files
2464 do
2465 # As a special case, if "install-sh" is required, that requirement
2466 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2467 # and $ac_install_sh is set appropriately for whichever one is found.
2468 if test x"$ac_aux" = x"install-sh"
2469 then
2470 if test -f "${as_dir}install-sh"; then
2471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2472 ac_install_sh="${as_dir}install-sh -c"
2473 elif test -f "${as_dir}install.sh"; then
2474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2475 ac_install_sh="${as_dir}install.sh -c"
2476 elif test -f "${as_dir}shtool"; then
2477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2478 ac_install_sh="${as_dir}shtool install -c"
2479 else
2480 ac_aux_dir_found=no
2481 if $ac_first_candidate; then
2482 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2483 else
2484 break
2485 fi
2486 fi
2487 else
2488 if test -f "${as_dir}${ac_aux}"; then
2489 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2490 else
2491 ac_aux_dir_found=no
2492 if $ac_first_candidate; then
2493 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2494 else
2495 break
2496 fi
2497 fi
2498 fi
2499 done
2500 if test "$ac_aux_dir_found" = yes; then
2501 ac_aux_dir="$as_dir"
2502 break
2503 fi
2504 ac_first_candidate=false
2505
2506 as_found=false
2507 done
2508 IFS=$as_save_IFS
2509 if $as_found
2510 then :
2511
2512 else case e in #(
2513 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2514 esac
2515 fi
2516
2517
2518 # These three variables are undocumented and unsupported,
2519 # and are intended to be withdrawn in a future Autoconf release.
2520 # They can cause serious problems if a builder's source tree is in a directory
2521 # whose full name contains unusual characters.
2522 if test -f "${ac_aux_dir}config.guess"; then
2523 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2524 fi
2525 if test -f "${ac_aux_dir}config.sub"; then
2526 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2527 fi
2528 if test -f "$ac_aux_dir/configure"; then
2529 ac_configure="$SHELL ${ac_aux_dir}configure"
2530 fi
2531
2532 # Check that the precious variables saved in the cache have kept the same
2533 # value.
2534 ac_cache_corrupted=false
2535 for ac_var in $ac_precious_vars; do
2536 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2537 eval ac_new_set=\$ac_env_${ac_var}_set
2538 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2539 eval ac_new_val=\$ac_env_${ac_var}_value
2540 case $ac_old_set,$ac_new_set in
2541 set,)
2542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2543 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2544 ac_cache_corrupted=: ;;
2545 ,set)
2546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2547 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2548 ac_cache_corrupted=: ;;
2549 ,);;
2550 *)
2551 if test "x$ac_old_val" != "x$ac_new_val"; then
2552 # differences in whitespace do not lead to failure.
2553 ac_old_val_w=`echo x $ac_old_val`
2554 ac_new_val_w=`echo x $ac_new_val`
2555 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2557 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2558 ac_cache_corrupted=:
2559 else
2560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2561 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2562 eval $ac_var=\$ac_old_val
2563 fi
2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2565 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2567 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2568 fi;;
2569 esac
2570 # Pass precious variables to config.status.
2571 if test "$ac_new_set" = set; then
2572 case $ac_new_val in
2573 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2574 *) ac_arg=$ac_var=$ac_new_val ;;
2575 esac
2576 case " $ac_configure_args " in
2577 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2578 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2579 esac
2580 fi
2581 done
2582 if $ac_cache_corrupted; then
2583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2584 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2586 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2587 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2588 and start over" "$LINENO" 5
2589 fi
2590 ## -------------------- ##
2591 ## Main body of script. ##
2592 ## -------------------- ##
2593
2594 ac_ext=c
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599
2600
2601
2602 ac_config_headers="$ac_config_headers config.h"
2603
2604
2605 # Initialize Automake
2606 am__api_version='1.16'
2607
2608
2609
2610 # Find a good install program. We prefer a C program (faster),
2611 # so one script is as good as another. But avoid the broken or
2612 # incompatible versions:
2613 # SysV /etc/install, /usr/sbin/install
2614 # SunOS /usr/etc/install
2615 # IRIX /sbin/install
2616 # AIX /bin/install
2617 # AmigaOS /C/install, which installs bootblocks on floppy discs
2618 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2619 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2620 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2621 # OS/2's system install, which has a completely different semantic
2622 # ./install, which can be erroneously created by make from ./install.sh.
2623 # Reject install programs that cannot install multiple files.
2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2625 printf %s "checking for a BSD-compatible install... " >&6; }
2626 if test -z "$INSTALL"; then
2627 if test ${ac_cv_path_install+y}
2628 then :
2629 printf %s "(cached) " >&6
2630 else case e in #(
2631 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634 IFS=$as_save_IFS
2635 case $as_dir in #(((
2636 '') as_dir=./ ;;
2637 */) ;;
2638 *) as_dir=$as_dir/ ;;
2639 esac
2640 # Account for fact that we put trailing slashes in our PATH walk.
2641 case $as_dir in #((
2642 ./ | /[cC]/* | \
2643 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2644 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2645 /usr/ucb/* ) ;;
2646 *)
2647 # OSF1 and SCO ODT 3.0 have their own names for install.
2648 # Don't use installbsd from OSF since it installs stuff as root
2649 # by default.
2650 for ac_prog in ginstall scoinst install; do
2651 for ac_exec_ext in '' $ac_executable_extensions; do
2652 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2653 if test $ac_prog = install &&
2654 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2655 # AIX install. It has an incompatible calling convention.
2656 :
2657 elif test $ac_prog = install &&
2658 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2659 # program-specific install script used by HP pwplus--don't use.
2660 :
2661 else
2662 rm -rf conftest.one conftest.two conftest.dir
2663 echo one > conftest.one
2664 echo two > conftest.two
2665 mkdir conftest.dir
2666 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2667 test -s conftest.one && test -s conftest.two &&
2668 test -s conftest.dir/conftest.one &&
2669 test -s conftest.dir/conftest.two
2670 then
2671 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2672 break 3
2673 fi
2674 fi
2675 fi
2676 done
2677 done
2678 ;;
2679 esac
2680
2681 done
2682 IFS=$as_save_IFS
2683
2684 rm -rf conftest.one conftest.two conftest.dir
2685 ;;
2686 esac
2687 fi
2688 if test ${ac_cv_path_install+y}; then
2689 INSTALL=$ac_cv_path_install
2690 else
2691 # As a last resort, use the slow shell script. Don't cache a
2692 # value for INSTALL within a source directory, because that will
2693 # break other packages using the cache if that directory is
2694 # removed, or if the value is a relative name.
2695 INSTALL=$ac_install_sh
2696 fi
2697 fi
2698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2699 printf "%s\n" "$INSTALL" >&6; }
2700
2701 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2702 # It thinks the first close brace ends the variable substitution.
2703 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2704
2705 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2706
2707 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2708
2709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2710 printf %s "checking whether build environment is sane... " >&6; }
2711 # Reject unsafe characters in $srcdir or the absolute working directory
2712 # name. Accept space and tab only in the latter.
2713 am_lf='
2714 '
2715 case `pwd` in
2716 *[\\\"\#\$\&\'\`$am_lf]*)
2717 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2718 esac
2719 case $srcdir in
2720 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2721 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2722 esac
2723
2724 # Do 'set' in a subshell so we don't clobber the current shell's
2725 # arguments. Must try -L first in case configure is actually a
2726 # symlink; some systems play weird games with the mod time of symlinks
2727 # (eg FreeBSD returns the mod time of the symlink's containing
2728 # directory).
2729 if (
2730 am_has_slept=no
2731 for am_try in 1 2; do
2732 echo "timestamp, slept: $am_has_slept" > conftest.file
2733 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2734 if test "$*" = "X"; then
2735 # -L didn't work.
2736 set X `ls -t "$srcdir/configure" conftest.file`
2737 fi
2738 if test "$*" != "X $srcdir/configure conftest.file" \
2739 && test "$*" != "X conftest.file $srcdir/configure"; then
2740
2741 # If neither matched, then we have a broken ls. This can happen
2742 # if, for instance, CONFIG_SHELL is bash and it inherits a
2743 # broken ls alias from the environment. This has actually
2744 # happened. Such a system could not be considered "sane".
2745 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2746 alias in your environment" "$LINENO" 5
2747 fi
2748 if test "$2" = conftest.file || test $am_try -eq 2; then
2749 break
2750 fi
2751 # Just in case.
2752 sleep 1
2753 am_has_slept=yes
2754 done
2755 test "$2" = conftest.file
2756 )
2757 then
2758 # Ok.
2759 :
2760 else
2761 as_fn_error $? "newly created file is older than distributed files!
2762 Check your system clock" "$LINENO" 5
2763 fi
2764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2765 printf "%s\n" "yes" >&6; }
2766 # If we didn't sleep, we still need to ensure time stamps of config.status and
2767 # generated files are strictly newer.
2768 am_sleep_pid=
2769 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2770 ( sleep 1 ) &
2771 am_sleep_pid=$!
2772 fi
2773
2774 rm -f conftest.file
2775
2776 test "$program_prefix" != NONE &&
2777 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2778 # Use a double $ so make ignores it.
2779 test "$program_suffix" != NONE &&
2780 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2781 # Double any \ or $.
2782 # By default was 's,x,x', remove it if useless.
2783 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2784 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2785
2786
2787 # Expand $ac_aux_dir to an absolute path.
2788 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2789
2790
2791 if test x"${MISSING+set}" != xset; then
2792 MISSING="\${SHELL} '$am_aux_dir/missing'"
2793 fi
2794 # Use eval to expand $SHELL
2795 if eval "$MISSING --is-lightweight"; then
2796 am_missing_run="$MISSING "
2797 else
2798 am_missing_run=
2799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2800 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2801 fi
2802
2803 if test x"${install_sh+set}" != xset; then
2804 case $am_aux_dir in
2805 *\ * | *\ *)
2806 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2807 *)
2808 install_sh="\${SHELL} $am_aux_dir/install-sh"
2809 esac
2810 fi
2811
2812 # Installed binaries are usually stripped using 'strip' when the user
2813 # run "make install-strip". However 'strip' might not be the right
2814 # tool to use in cross-compilation environments, therefore Automake
2815 # will honor the 'STRIP' environment variable to overrule this program.
2816 if test "$cross_compiling" != no; then
2817 if test -n "$ac_tool_prefix"; then
2818 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2819 set dummy ${ac_tool_prefix}strip; ac_word=$2
2820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 printf %s "checking for $ac_word... " >&6; }
2822 if test ${ac_cv_prog_STRIP+y}
2823 then :
2824 printf %s "(cached) " >&6
2825 else case e in #(
2826 e) if test -n "$STRIP"; then
2827 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2828 else
2829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2830 for as_dir in $PATH
2831 do
2832 IFS=$as_save_IFS
2833 case $as_dir in #(((
2834 '') as_dir=./ ;;
2835 */) ;;
2836 *) as_dir=$as_dir/ ;;
2837 esac
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2840 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2842 break 2
2843 fi
2844 done
2845 done
2846 IFS=$as_save_IFS
2847
2848 fi ;;
2849 esac
2850 fi
2851 STRIP=$ac_cv_prog_STRIP
2852 if test -n "$STRIP"; then
2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2854 printf "%s\n" "$STRIP" >&6; }
2855 else
2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 printf "%s\n" "no" >&6; }
2858 fi
2859
2860
2861 fi
2862 if test -z "$ac_cv_prog_STRIP"; then
2863 ac_ct_STRIP=$STRIP
2864 # Extract the first word of "strip", so it can be a program name with args.
2865 set dummy strip; ac_word=$2
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 printf %s "checking for $ac_word... " >&6; }
2868 if test ${ac_cv_prog_ac_ct_STRIP+y}
2869 then :
2870 printf %s "(cached) " >&6
2871 else case e in #(
2872 e) if test -n "$ac_ct_STRIP"; then
2873 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2874 else
2875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2876 for as_dir in $PATH
2877 do
2878 IFS=$as_save_IFS
2879 case $as_dir in #(((
2880 '') as_dir=./ ;;
2881 */) ;;
2882 *) as_dir=$as_dir/ ;;
2883 esac
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2886 ac_cv_prog_ac_ct_STRIP="strip"
2887 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 fi ;;
2895 esac
2896 fi
2897 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2898 if test -n "$ac_ct_STRIP"; then
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2900 printf "%s\n" "$ac_ct_STRIP" >&6; }
2901 else
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 printf "%s\n" "no" >&6; }
2904 fi
2905
2906 if test "x$ac_ct_STRIP" = x; then
2907 STRIP=":"
2908 else
2909 case $cross_compiling:$ac_tool_warned in
2910 yes:)
2911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2912 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2913 ac_tool_warned=yes ;;
2914 esac
2915 STRIP=$ac_ct_STRIP
2916 fi
2917 else
2918 STRIP="$ac_cv_prog_STRIP"
2919 fi
2920
2921 fi
2922 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2923
2924
2925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2926 printf %s "checking for a race-free mkdir -p... " >&6; }
2927 if test -z "$MKDIR_P"; then
2928 if test ${ac_cv_path_mkdir+y}
2929 then :
2930 printf %s "(cached) " >&6
2931 else case e in #(
2932 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2934 do
2935 IFS=$as_save_IFS
2936 case $as_dir in #(((
2937 '') as_dir=./ ;;
2938 */) ;;
2939 *) as_dir=$as_dir/ ;;
2940 esac
2941 for ac_prog in mkdir gmkdir; do
2942 for ac_exec_ext in '' $ac_executable_extensions; do
2943 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2944 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2945 'mkdir ('*'coreutils) '* | \
2946 *'BusyBox '* | \
2947 'mkdir (fileutils) '4.1*)
2948 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2949 break 3;;
2950 esac
2951 done
2952 done
2953 done
2954 IFS=$as_save_IFS
2955 ;;
2956 esac
2957 fi
2958
2959 test -d ./--version && rmdir ./--version
2960 if test ${ac_cv_path_mkdir+y}; then
2961 MKDIR_P="$ac_cv_path_mkdir -p"
2962 else
2963 # As a last resort, use plain mkdir -p,
2964 # in the hope it doesn't have the bugs of ancient mkdir.
2965 MKDIR_P='mkdir -p'
2966 fi
2967 fi
2968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2969 printf "%s\n" "$MKDIR_P" >&6; }
2970
2971 for ac_prog in gawk mawk nawk awk
2972 do
2973 # Extract the first word of "$ac_prog", so it can be a program name with args.
2974 set dummy $ac_prog; ac_word=$2
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 printf %s "checking for $ac_word... " >&6; }
2977 if test ${ac_cv_prog_AWK+y}
2978 then :
2979 printf %s "(cached) " >&6
2980 else case e in #(
2981 e) if test -n "$AWK"; then
2982 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2983 else
2984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985 for as_dir in $PATH
2986 do
2987 IFS=$as_save_IFS
2988 case $as_dir in #(((
2989 '') as_dir=./ ;;
2990 */) ;;
2991 *) as_dir=$as_dir/ ;;
2992 esac
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2995 ac_cv_prog_AWK="$ac_prog"
2996 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2997 break 2
2998 fi
2999 done
3000 done
3001 IFS=$as_save_IFS
3002
3003 fi ;;
3004 esac
3005 fi
3006 AWK=$ac_cv_prog_AWK
3007 if test -n "$AWK"; then
3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3009 printf "%s\n" "$AWK" >&6; }
3010 else
3011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3012 printf "%s\n" "no" >&6; }
3013 fi
3014
3015
3016 test -n "$AWK" && break
3017 done
3018
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3020 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3021 set x ${MAKE-make}
3022 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3023 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3024 then :
3025 printf %s "(cached) " >&6
3026 else case e in #(
3027 e) cat >conftest.make <<\_ACEOF
3028 SHELL = /bin/sh
3029 all:
3030 @echo '@@@%%%=$(MAKE)=@@@%%%'
3031 _ACEOF
3032 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3033 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3034 *@@@%%%=?*=@@@%%%*)
3035 eval ac_cv_prog_make_${ac_make}_set=yes;;
3036 *)
3037 eval ac_cv_prog_make_${ac_make}_set=no;;
3038 esac
3039 rm -f conftest.make ;;
3040 esac
3041 fi
3042 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3044 printf "%s\n" "yes" >&6; }
3045 SET_MAKE=
3046 else
3047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 printf "%s\n" "no" >&6; }
3049 SET_MAKE="MAKE=${MAKE-make}"
3050 fi
3051
3052 rm -rf .tst 2>/dev/null
3053 mkdir .tst 2>/dev/null
3054 if test -d .tst; then
3055 am__leading_dot=.
3056 else
3057 am__leading_dot=_
3058 fi
3059 rmdir .tst 2>/dev/null
3060
3061 # Check whether --enable-silent-rules was given.
3062 if test ${enable_silent_rules+y}
3063 then :
3064 enableval=$enable_silent_rules;
3065 fi
3066
3067 case $enable_silent_rules in # (((
3068 yes) AM_DEFAULT_VERBOSITY=0;;
3069 no) AM_DEFAULT_VERBOSITY=1;;
3070 *) AM_DEFAULT_VERBOSITY=1;;
3071 esac
3072 am_make=${MAKE-make}
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3074 printf %s "checking whether $am_make supports nested variables... " >&6; }
3075 if test ${am_cv_make_support_nested_variables+y}
3076 then :
3077 printf %s "(cached) " >&6
3078 else case e in #(
3079 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3080 BAR0=false
3081 BAR1=true
3082 V=1
3083 am__doit:
3084 @$(TRUE)
3085 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3086 am_cv_make_support_nested_variables=yes
3087 else
3088 am_cv_make_support_nested_variables=no
3089 fi ;;
3090 esac
3091 fi
3092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3093 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3094 if test $am_cv_make_support_nested_variables = yes; then
3095 AM_V='$(V)'
3096 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3097 else
3098 AM_V=$AM_DEFAULT_VERBOSITY
3099 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3100 fi
3101 AM_BACKSLASH='\'
3102
3103 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3104 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3105 # is not polluted with repeated "-I."
3106 am__isrc=' -I$(srcdir)'
3107 # test to see if srcdir already configured
3108 if test -f $srcdir/config.status; then
3109 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3110 fi
3111 fi
3112
3113 # test whether we have cygpath
3114 if test -z "$CYGPATH_W"; then
3115 if (cygpath --version) >/dev/null 2>/dev/null; then
3116 CYGPATH_W='cygpath -w'
3117 else
3118 CYGPATH_W=echo
3119 fi
3120 fi
3121
3122
3123 # Define the identity of the package.
3124 PACKAGE='xman'
3125 VERSION='1.2.0'
3126
3127
3128 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3129
3130
3131 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3132
3133 # Some tools Automake needs.
3134
3135 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3136
3137
3138 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3139
3140
3141 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3142
3143
3144 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3145
3146
3147 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3148
3149 # For better backward compatibility. To be removed once Automake 1.9.x
3150 # dies out for good. For more background, see:
3151 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3152 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3153 mkdir_p='$(MKDIR_P)'
3154
3155 # We need awk for the "check" target (and possibly the TAP driver). The
3156 # system "awk" is bad on some platforms.
3157 # Always define AMTAR for backward compatibility. Yes, it's still used
3158 # in the wild :-( We should find a proper way to deprecate it ...
3159 AMTAR='$${TAR-tar}'
3160
3161
3162 # We'll loop over all known methods to create a tar archive until one works.
3163 _am_tools='gnutar pax cpio none'
3164
3165 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3166
3167
3168
3169
3170
3171 # Variables for tags utilities; see am/tags.am
3172 if test -z "$CTAGS"; then
3173 CTAGS=ctags
3174 fi
3175
3176 if test -z "$ETAGS"; then
3177 ETAGS=etags
3178 fi
3179
3180 if test -z "$CSCOPE"; then
3181 CSCOPE=cscope
3182 fi
3183
3184
3185
3186 # POSIX will say in a future version that running "rm -f" with no argument
3187 # is OK; and we want to be able to make that assumption in our Makefile
3188 # recipes. So use an aggressive probe to check that the usage we want is
3189 # actually supported "in the wild" to an acceptable degree.
3190 # See automake bug#10828.
3191 # To make any issue more visible, cause the running configure to be aborted
3192 # by default if the 'rm' program in use doesn't match our expectations; the
3193 # user can still override this though.
3194 if rm -f && rm -fr && rm -rf; then : OK; else
3195 cat >&2 <<'END'
3196 Oops!
3197
3198 Your 'rm' program seems unable to run without file operands specified
3199 on the command line, even when the '-f' option is present. This is contrary
3200 to the behaviour of most rm programs out there, and not conforming with
3201 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3202
3203 Please tell bug-automake@gnu.org about your system, including the value
3204 of your $PATH and any error possibly output before this message. This
3205 can help us improve future automake versions.
3206
3207 END
3208 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3209 echo 'Configuration will proceed anyway, since you have set the' >&2
3210 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3211 echo >&2
3212 else
3213 cat >&2 <<'END'
3214 Aborting the configuration process, to ensure you take notice of the issue.
3215
3216 You can download and install GNU coreutils to get an 'rm' implementation
3217 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3218
3219 If you want to complete the configuration process using your problematic
3220 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3221 to "yes", and re-run configure.
3222
3223 END
3224 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3225 fi
3226 fi
3227
3228
3229 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250 DEPDIR="${am__leading_dot}deps"
3251
3252 ac_config_commands="$ac_config_commands depfiles"
3253
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3255 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3256 cat > confinc.mk << 'END'
3257 am__doit:
3258 @echo this is the am__doit target >confinc.out
3259 .PHONY: am__doit
3260 END
3261 am__include="#"
3262 am__quote=
3263 # BSD make does it like this.
3264 echo '.include "confinc.mk" # ignored' > confmf.BSD
3265 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3266 echo 'include confinc.mk # ignored' > confmf.GNU
3267 _am_result=no
3268 for s in GNU BSD; do
3269 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3270 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }
3274 case $?:`cat confinc.out 2>/dev/null` in #(
3275 '0:this is the am__doit target') :
3276 case $s in #(
3277 BSD) :
3278 am__include='.include' am__quote='"' ;; #(
3279 *) :
3280 am__include='include' am__quote='' ;;
3281 esac ;; #(
3282 *) :
3283 ;;
3284 esac
3285 if test "$am__include" != "#"; then
3286 _am_result="yes ($s style)"
3287 break
3288 fi
3289 done
3290 rm -f confinc.* confmf.*
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3292 printf "%s\n" "${_am_result}" >&6; }
3293
3294 # Check whether --enable-dependency-tracking was given.
3295 if test ${enable_dependency_tracking+y}
3296 then :
3297 enableval=$enable_dependency_tracking;
3298 fi
3299
3300 if test "x$enable_dependency_tracking" != xno; then
3301 am_depcomp="$ac_aux_dir/depcomp"
3302 AMDEPBACKSLASH='\'
3303 am__nodep='_no'
3304 fi
3305 if test "x$enable_dependency_tracking" != xno; then
3306 AMDEP_TRUE=
3307 AMDEP_FALSE='#'
3308 else
3309 AMDEP_TRUE='#'
3310 AMDEP_FALSE=
3311 fi
3312
3313
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 if test -n "$ac_tool_prefix"; then
3320 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 printf %s "checking for $ac_word... " >&6; }
3324 if test ${ac_cv_prog_CC+y}
3325 then :
3326 printf %s "(cached) " >&6
3327 else case e in #(
3328 e) if test -n "$CC"; then
3329 ac_cv_prog_CC="$CC" # Let the user override the test.
3330 else
3331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 for as_dir in $PATH
3333 do
3334 IFS=$as_save_IFS
3335 case $as_dir in #(((
3336 '') as_dir=./ ;;
3337 */) ;;
3338 *) as_dir=$as_dir/ ;;
3339 esac
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3343 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3344 break 2
3345 fi
3346 done
3347 done
3348 IFS=$as_save_IFS
3349
3350 fi ;;
3351 esac
3352 fi
3353 CC=$ac_cv_prog_CC
3354 if test -n "$CC"; then
3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356 printf "%s\n" "$CC" >&6; }
3357 else
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 printf "%s\n" "no" >&6; }
3360 fi
3361
3362
3363 fi
3364 if test -z "$ac_cv_prog_CC"; then
3365 ac_ct_CC=$CC
3366 # Extract the first word of "gcc", so it can be a program name with args.
3367 set dummy gcc; ac_word=$2
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 printf %s "checking for $ac_word... " >&6; }
3370 if test ${ac_cv_prog_ac_ct_CC+y}
3371 then :
3372 printf %s "(cached) " >&6
3373 else case e in #(
3374 e) if test -n "$ac_ct_CC"; then
3375 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380 IFS=$as_save_IFS
3381 case $as_dir in #(((
3382 '') as_dir=./ ;;
3383 */) ;;
3384 *) as_dir=$as_dir/ ;;
3385 esac
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3388 ac_cv_prog_ac_ct_CC="gcc"
3389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3390 break 2
3391 fi
3392 done
3393 done
3394 IFS=$as_save_IFS
3395
3396 fi ;;
3397 esac
3398 fi
3399 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3400 if test -n "$ac_ct_CC"; then
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3402 printf "%s\n" "$ac_ct_CC" >&6; }
3403 else
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 printf "%s\n" "no" >&6; }
3406 fi
3407
3408 if test "x$ac_ct_CC" = x; then
3409 CC=""
3410 else
3411 case $cross_compiling:$ac_tool_warned in
3412 yes:)
3413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3414 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3415 ac_tool_warned=yes ;;
3416 esac
3417 CC=$ac_ct_CC
3418 fi
3419 else
3420 CC="$ac_cv_prog_CC"
3421 fi
3422
3423 if test -z "$CC"; then
3424 if test -n "$ac_tool_prefix"; then
3425 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3426 set dummy ${ac_tool_prefix}cc; ac_word=$2
3427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3428 printf %s "checking for $ac_word... " >&6; }
3429 if test ${ac_cv_prog_CC+y}
3430 then :
3431 printf %s "(cached) " >&6
3432 else case e in #(
3433 e) if test -n "$CC"; then
3434 ac_cv_prog_CC="$CC" # Let the user override the test.
3435 else
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH
3438 do
3439 IFS=$as_save_IFS
3440 case $as_dir in #(((
3441 '') as_dir=./ ;;
3442 */) ;;
3443 *) as_dir=$as_dir/ ;;
3444 esac
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3447 ac_cv_prog_CC="${ac_tool_prefix}cc"
3448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3449 break 2
3450 fi
3451 done
3452 done
3453 IFS=$as_save_IFS
3454
3455 fi ;;
3456 esac
3457 fi
3458 CC=$ac_cv_prog_CC
3459 if test -n "$CC"; then
3460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3461 printf "%s\n" "$CC" >&6; }
3462 else
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3464 printf "%s\n" "no" >&6; }
3465 fi
3466
3467
3468 fi
3469 fi
3470 if test -z "$CC"; then
3471 # Extract the first word of "cc", so it can be a program name with args.
3472 set dummy cc; ac_word=$2
3473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3474 printf %s "checking for $ac_word... " >&6; }
3475 if test ${ac_cv_prog_CC+y}
3476 then :
3477 printf %s "(cached) " >&6
3478 else case e in #(
3479 e) if test -n "$CC"; then
3480 ac_cv_prog_CC="$CC" # Let the user override the test.
3481 else
3482 ac_prog_rejected=no
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486 IFS=$as_save_IFS
3487 case $as_dir in #(((
3488 '') as_dir=./ ;;
3489 */) ;;
3490 *) as_dir=$as_dir/ ;;
3491 esac
3492 for ac_exec_ext in '' $ac_executable_extensions; do
3493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3494 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3495 ac_prog_rejected=yes
3496 continue
3497 fi
3498 ac_cv_prog_CC="cc"
3499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502 done
3503 done
3504 IFS=$as_save_IFS
3505
3506 if test $ac_prog_rejected = yes; then
3507 # We found a bogon in the path, so make sure we never use it.
3508 set dummy $ac_cv_prog_CC
3509 shift
3510 if test $# != 0; then
3511 # We chose a different compiler from the bogus one.
3512 # However, it has the same basename, so the bogon will be chosen
3513 # first if we set CC to just the basename; use the full file name.
3514 shift
3515 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3516 fi
3517 fi
3518 fi ;;
3519 esac
3520 fi
3521 CC=$ac_cv_prog_CC
3522 if test -n "$CC"; then
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 printf "%s\n" "$CC" >&6; }
3525 else
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 printf "%s\n" "no" >&6; }
3528 fi
3529
3530
3531 fi
3532 if test -z "$CC"; then
3533 if test -n "$ac_tool_prefix"; then
3534 for ac_prog in cl.exe
3535 do
3536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 printf %s "checking for $ac_word... " >&6; }
3540 if test ${ac_cv_prog_CC+y}
3541 then :
3542 printf %s "(cached) " >&6
3543 else case e in #(
3544 e) if test -n "$CC"; then
3545 ac_cv_prog_CC="$CC" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550 IFS=$as_save_IFS
3551 case $as_dir in #(((
3552 '') as_dir=./ ;;
3553 */) ;;
3554 *) as_dir=$as_dir/ ;;
3555 esac
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3558 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3560 break 2
3561 fi
3562 done
3563 done
3564 IFS=$as_save_IFS
3565
3566 fi ;;
3567 esac
3568 fi
3569 CC=$ac_cv_prog_CC
3570 if test -n "$CC"; then
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 printf "%s\n" "$CC" >&6; }
3573 else
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 printf "%s\n" "no" >&6; }
3576 fi
3577
3578
3579 test -n "$CC" && break
3580 done
3581 fi
3582 if test -z "$CC"; then
3583 ac_ct_CC=$CC
3584 for ac_prog in cl.exe
3585 do
3586 # Extract the first word of "$ac_prog", so it can be a program name with args.
3587 set dummy $ac_prog; ac_word=$2
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 printf %s "checking for $ac_word... " >&6; }
3590 if test ${ac_cv_prog_ac_ct_CC+y}
3591 then :
3592 printf %s "(cached) " >&6
3593 else case e in #(
3594 e) if test -n "$ac_ct_CC"; then
3595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600 IFS=$as_save_IFS
3601 case $as_dir in #(((
3602 '') as_dir=./ ;;
3603 */) ;;
3604 *) as_dir=$as_dir/ ;;
3605 esac
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC="$ac_prog"
3609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612 done
3613 done
3614 IFS=$as_save_IFS
3615
3616 fi ;;
3617 esac
3618 fi
3619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3620 if test -n "$ac_ct_CC"; then
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3622 printf "%s\n" "$ac_ct_CC" >&6; }
3623 else
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 printf "%s\n" "no" >&6; }
3626 fi
3627
3628
3629 test -n "$ac_ct_CC" && break
3630 done
3631
3632 if test "x$ac_ct_CC" = x; then
3633 CC=""
3634 else
3635 case $cross_compiling:$ac_tool_warned in
3636 yes:)
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3638 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3639 ac_tool_warned=yes ;;
3640 esac
3641 CC=$ac_ct_CC
3642 fi
3643 fi
3644
3645 fi
3646 if test -z "$CC"; then
3647 if test -n "$ac_tool_prefix"; then
3648 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3649 set dummy ${ac_tool_prefix}clang; ac_word=$2
3650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3651 printf %s "checking for $ac_word... " >&6; }
3652 if test ${ac_cv_prog_CC+y}
3653 then :
3654 printf %s "(cached) " >&6
3655 else case e in #(
3656 e) if test -n "$CC"; then
3657 ac_cv_prog_CC="$CC" # Let the user override the test.
3658 else
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH
3661 do
3662 IFS=$as_save_IFS
3663 case $as_dir in #(((
3664 '') as_dir=./ ;;
3665 */) ;;
3666 *) as_dir=$as_dir/ ;;
3667 esac
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3670 ac_cv_prog_CC="${ac_tool_prefix}clang"
3671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3672 break 2
3673 fi
3674 done
3675 done
3676 IFS=$as_save_IFS
3677
3678 fi ;;
3679 esac
3680 fi
3681 CC=$ac_cv_prog_CC
3682 if test -n "$CC"; then
3683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3684 printf "%s\n" "$CC" >&6; }
3685 else
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3687 printf "%s\n" "no" >&6; }
3688 fi
3689
3690
3691 fi
3692 if test -z "$ac_cv_prog_CC"; then
3693 ac_ct_CC=$CC
3694 # Extract the first word of "clang", so it can be a program name with args.
3695 set dummy clang; ac_word=$2
3696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3697 printf %s "checking for $ac_word... " >&6; }
3698 if test ${ac_cv_prog_ac_ct_CC+y}
3699 then :
3700 printf %s "(cached) " >&6
3701 else case e in #(
3702 e) if test -n "$ac_ct_CC"; then
3703 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708 IFS=$as_save_IFS
3709 case $as_dir in #(((
3710 '') as_dir=./ ;;
3711 */) ;;
3712 *) as_dir=$as_dir/ ;;
3713 esac
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3716 ac_cv_prog_ac_ct_CC="clang"
3717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3718 break 2
3719 fi
3720 done
3721 done
3722 IFS=$as_save_IFS
3723
3724 fi ;;
3725 esac
3726 fi
3727 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3728 if test -n "$ac_ct_CC"; then
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3730 printf "%s\n" "$ac_ct_CC" >&6; }
3731 else
3732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 printf "%s\n" "no" >&6; }
3734 fi
3735
3736 if test "x$ac_ct_CC" = x; then
3737 CC=""
3738 else
3739 case $cross_compiling:$ac_tool_warned in
3740 yes:)
3741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3742 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3743 ac_tool_warned=yes ;;
3744 esac
3745 CC=$ac_ct_CC
3746 fi
3747 else
3748 CC="$ac_cv_prog_CC"
3749 fi
3750
3751 fi
3752
3753
3754 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3755 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3756 as_fn_error $? "no acceptable C compiler found in \$PATH
3757 See 'config.log' for more details" "$LINENO" 5; }
3758
3759 # Provide some information about the compiler.
3760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3761 set X $ac_compile
3762 ac_compiler=$2
3763 for ac_option in --version -v -V -qversion -version; do
3764 { { ac_try="$ac_compiler $ac_option >&5"
3765 case "(($ac_try" in
3766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3767 *) ac_try_echo=$ac_try;;
3768 esac
3769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3770 printf "%s\n" "$ac_try_echo"; } >&5
3771 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3772 ac_status=$?
3773 if test -s conftest.err; then
3774 sed '10a\
3775 ... rest of stderr output deleted ...
3776 10q' conftest.err >conftest.er1
3777 cat conftest.er1 >&5
3778 fi
3779 rm -f conftest.er1 conftest.err
3780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781 test $ac_status = 0; }
3782 done
3783
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3786
3787 int
3788 main (void)
3789 {
3790
3791 ;
3792 return 0;
3793 }
3794 _ACEOF
3795 ac_clean_files_save=$ac_clean_files
3796 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3797 # Try to create an executable without -o first, disregard a.out.
3798 # It will help us diagnose broken compilers, and finding out an intuition
3799 # of exeext.
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3801 printf %s "checking whether the C compiler works... " >&6; }
3802 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3803
3804 # The possible output files:
3805 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3806
3807 ac_rmfiles=
3808 for ac_file in $ac_files
3809 do
3810 case $ac_file in
3811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3812 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3813 esac
3814 done
3815 rm -f $ac_rmfiles
3816
3817 if { { ac_try="$ac_link_default"
3818 case "(($ac_try" in
3819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3820 *) ac_try_echo=$ac_try;;
3821 esac
3822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3823 printf "%s\n" "$ac_try_echo"; } >&5
3824 (eval "$ac_link_default") 2>&5
3825 ac_status=$?
3826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3828 then :
3829 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3830 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3831 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3832 # so that the user can short-circuit this test for compilers unknown to
3833 # Autoconf.
3834 for ac_file in $ac_files ''
3835 do
3836 test -f "$ac_file" || continue
3837 case $ac_file in
3838 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3839 ;;
3840 [ab].out )
3841 # We found the default executable, but exeext='' is most
3842 # certainly right.
3843 break;;
3844 *.* )
3845 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3846 then :; else
3847 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3848 fi
3849 # We set ac_cv_exeext here because the later test for it is not
3850 # safe: cross compilers may not add the suffix if given an '-o'
3851 # argument, so we may need to know it at that point already.
3852 # Even if this section looks crufty: it has the advantage of
3853 # actually working.
3854 break;;
3855 * )
3856 break;;
3857 esac
3858 done
3859 test "$ac_cv_exeext" = no && ac_cv_exeext=
3860
3861 else case e in #(
3862 e) ac_file='' ;;
3863 esac
3864 fi
3865 if test -z "$ac_file"
3866 then :
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 printf "%s\n" "no" >&6; }
3869 printf "%s\n" "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3873 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3874 as_fn_error 77 "C compiler cannot create executables
3875 See 'config.log' for more details" "$LINENO" 5; }
3876 else case e in #(
3877 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3878 printf "%s\n" "yes" >&6; } ;;
3879 esac
3880 fi
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3882 printf %s "checking for C compiler default output file name... " >&6; }
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3884 printf "%s\n" "$ac_file" >&6; }
3885 ac_exeext=$ac_cv_exeext
3886
3887 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3888 ac_clean_files=$ac_clean_files_save
3889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3890 printf %s "checking for suffix of executables... " >&6; }
3891 if { { ac_try="$ac_link"
3892 case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 printf "%s\n" "$ac_try_echo"; } >&5
3898 (eval "$ac_link") 2>&5
3899 ac_status=$?
3900 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }
3902 then :
3903 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3904 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3905 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3906 # 'rm'.
3907 for ac_file in conftest.exe conftest conftest.*; do
3908 test -f "$ac_file" || continue
3909 case $ac_file in
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3911 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3912 break;;
3913 * ) break;;
3914 esac
3915 done
3916 else case e in #(
3917 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3918 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3919 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3920 See 'config.log' for more details" "$LINENO" 5; } ;;
3921 esac
3922 fi
3923 rm -f conftest conftest$ac_cv_exeext
3924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3925 printf "%s\n" "$ac_cv_exeext" >&6; }
3926
3927 rm -f conftest.$ac_ext
3928 EXEEXT=$ac_cv_exeext
3929 ac_exeext=$EXEEXT
3930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3931 /* end confdefs.h. */
3932 #include <stdio.h>
3933 int
3934 main (void)
3935 {
3936 FILE *f = fopen ("conftest.out", "w");
3937 if (!f)
3938 return 1;
3939 return ferror (f) || fclose (f) != 0;
3940
3941 ;
3942 return 0;
3943 }
3944 _ACEOF
3945 ac_clean_files="$ac_clean_files conftest.out"
3946 # Check that the compiler produces executables we can run. If not, either
3947 # the compiler is broken, or we cross compile.
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3949 printf %s "checking whether we are cross compiling... " >&6; }
3950 if test "$cross_compiling" != yes; then
3951 { { ac_try="$ac_link"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 printf "%s\n" "$ac_try_echo"; } >&5
3958 (eval "$ac_link") 2>&5
3959 ac_status=$?
3960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3961 test $ac_status = 0; }
3962 if { ac_try='./conftest$ac_cv_exeext'
3963 { { case "(($ac_try" in
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3966 esac
3967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3968 printf "%s\n" "$ac_try_echo"; } >&5
3969 (eval "$ac_try") 2>&5
3970 ac_status=$?
3971 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3972 test $ac_status = 0; }; }; then
3973 cross_compiling=no
3974 else
3975 if test "$cross_compiling" = maybe; then
3976 cross_compiling=yes
3977 else
3978 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3979 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3980 as_fn_error 77 "cannot run C compiled programs.
3981 If you meant to cross compile, use '--host'.
3982 See 'config.log' for more details" "$LINENO" 5; }
3983 fi
3984 fi
3985 fi
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3987 printf "%s\n" "$cross_compiling" >&6; }
3988
3989 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3990 conftest.o conftest.obj conftest.out
3991 ac_clean_files=$ac_clean_files_save
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3993 printf %s "checking for suffix of object files... " >&6; }
3994 if test ${ac_cv_objext+y}
3995 then :
3996 printf %s "(cached) " >&6
3997 else case e in #(
3998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3999 /* end confdefs.h. */
4000
4001 int
4002 main (void)
4003 {
4004
4005 ;
4006 return 0;
4007 }
4008 _ACEOF
4009 rm -f conftest.o conftest.obj
4010 if { { ac_try="$ac_compile"
4011 case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014 esac
4015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016 printf "%s\n" "$ac_try_echo"; } >&5
4017 (eval "$ac_compile") 2>&5
4018 ac_status=$?
4019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020 test $ac_status = 0; }
4021 then :
4022 for ac_file in conftest.o conftest.obj conftest.*; do
4023 test -f "$ac_file" || continue;
4024 case $ac_file in
4025 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4026 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4027 break;;
4028 esac
4029 done
4030 else case e in #(
4031 e) printf "%s\n" "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4035 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4036 as_fn_error $? "cannot compute suffix of object files: cannot compile
4037 See 'config.log' for more details" "$LINENO" 5; } ;;
4038 esac
4039 fi
4040 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4041 esac
4042 fi
4043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4044 printf "%s\n" "$ac_cv_objext" >&6; }
4045 OBJEXT=$ac_cv_objext
4046 ac_objext=$OBJEXT
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4048 printf %s "checking whether the compiler supports GNU C... " >&6; }
4049 if test ${ac_cv_c_compiler_gnu+y}
4050 then :
4051 printf %s "(cached) " >&6
4052 else case e in #(
4053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055
4056 int
4057 main (void)
4058 {
4059 #ifndef __GNUC__
4060 choke me
4061 #endif
4062
4063 ;
4064 return 0;
4065 }
4066 _ACEOF
4067 if ac_fn_c_try_compile "$LINENO"
4068 then :
4069 ac_compiler_gnu=yes
4070 else case e in #(
4071 e) ac_compiler_gnu=no ;;
4072 esac
4073 fi
4074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4075 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4076 ;;
4077 esac
4078 fi
4079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4080 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082
4083 if test $ac_compiler_gnu = yes; then
4084 GCC=yes
4085 else
4086 GCC=
4087 fi
4088 ac_test_CFLAGS=${CFLAGS+y}
4089 ac_save_CFLAGS=$CFLAGS
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4091 printf %s "checking whether $CC accepts -g... " >&6; }
4092 if test ${ac_cv_prog_cc_g+y}
4093 then :
4094 printf %s "(cached) " >&6
4095 else case e in #(
4096 e) ac_save_c_werror_flag=$ac_c_werror_flag
4097 ac_c_werror_flag=yes
4098 ac_cv_prog_cc_g=no
4099 CFLAGS="-g"
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4102
4103 int
4104 main (void)
4105 {
4106
4107 ;
4108 return 0;
4109 }
4110 _ACEOF
4111 if ac_fn_c_try_compile "$LINENO"
4112 then :
4113 ac_cv_prog_cc_g=yes
4114 else case e in #(
4115 e) CFLAGS=""
4116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4118
4119 int
4120 main (void)
4121 {
4122
4123 ;
4124 return 0;
4125 }
4126 _ACEOF
4127 if ac_fn_c_try_compile "$LINENO"
4128 then :
4129
4130 else case e in #(
4131 e) ac_c_werror_flag=$ac_save_c_werror_flag
4132 CFLAGS="-g"
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4135
4136 int
4137 main (void)
4138 {
4139
4140 ;
4141 return 0;
4142 }
4143 _ACEOF
4144 if ac_fn_c_try_compile "$LINENO"
4145 then :
4146 ac_cv_prog_cc_g=yes
4147 fi
4148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4149 esac
4150 fi
4151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4152 esac
4153 fi
4154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4155 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4156 esac
4157 fi
4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4159 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4160 if test $ac_test_CFLAGS; then
4161 CFLAGS=$ac_save_CFLAGS
4162 elif test $ac_cv_prog_cc_g = yes; then
4163 if test "$GCC" = yes; then
4164 CFLAGS="-g -O2"
4165 else
4166 CFLAGS="-g"
4167 fi
4168 else
4169 if test "$GCC" = yes; then
4170 CFLAGS="-O2"
4171 else
4172 CFLAGS=
4173 fi
4174 fi
4175 ac_prog_cc_stdc=no
4176 if test x$ac_prog_cc_stdc = xno
4177 then :
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4179 printf %s "checking for $CC option to enable C11 features... " >&6; }
4180 if test ${ac_cv_prog_cc_c11+y}
4181 then :
4182 printf %s "(cached) " >&6
4183 else case e in #(
4184 e) ac_cv_prog_cc_c11=no
4185 ac_save_CC=$CC
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 $ac_c_conftest_c11_program
4189 _ACEOF
4190 for ac_arg in '' -std=gnu11
4191 do
4192 CC="$ac_save_CC $ac_arg"
4193 if ac_fn_c_try_compile "$LINENO"
4194 then :
4195 ac_cv_prog_cc_c11=$ac_arg
4196 fi
4197 rm -f core conftest.err conftest.$ac_objext conftest.beam
4198 test "x$ac_cv_prog_cc_c11" != "xno" && break
4199 done
4200 rm -f conftest.$ac_ext
4201 CC=$ac_save_CC ;;
4202 esac
4203 fi
4204
4205 if test "x$ac_cv_prog_cc_c11" = xno
4206 then :
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4208 printf "%s\n" "unsupported" >&6; }
4209 else case e in #(
4210 e) if test "x$ac_cv_prog_cc_c11" = x
4211 then :
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4213 printf "%s\n" "none needed" >&6; }
4214 else case e in #(
4215 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4216 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4217 CC="$CC $ac_cv_prog_cc_c11" ;;
4218 esac
4219 fi
4220 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4221 ac_prog_cc_stdc=c11 ;;
4222 esac
4223 fi
4224 fi
4225 if test x$ac_prog_cc_stdc = xno
4226 then :
4227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4228 printf %s "checking for $CC option to enable C99 features... " >&6; }
4229 if test ${ac_cv_prog_cc_c99+y}
4230 then :
4231 printf %s "(cached) " >&6
4232 else case e in #(
4233 e) ac_cv_prog_cc_c99=no
4234 ac_save_CC=$CC
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4237 $ac_c_conftest_c99_program
4238 _ACEOF
4239 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4240 do
4241 CC="$ac_save_CC $ac_arg"
4242 if ac_fn_c_try_compile "$LINENO"
4243 then :
4244 ac_cv_prog_cc_c99=$ac_arg
4245 fi
4246 rm -f core conftest.err conftest.$ac_objext conftest.beam
4247 test "x$ac_cv_prog_cc_c99" != "xno" && break
4248 done
4249 rm -f conftest.$ac_ext
4250 CC=$ac_save_CC ;;
4251 esac
4252 fi
4253
4254 if test "x$ac_cv_prog_cc_c99" = xno
4255 then :
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4257 printf "%s\n" "unsupported" >&6; }
4258 else case e in #(
4259 e) if test "x$ac_cv_prog_cc_c99" = x
4260 then :
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4262 printf "%s\n" "none needed" >&6; }
4263 else case e in #(
4264 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4265 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4266 CC="$CC $ac_cv_prog_cc_c99" ;;
4267 esac
4268 fi
4269 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4270 ac_prog_cc_stdc=c99 ;;
4271 esac
4272 fi
4273 fi
4274 if test x$ac_prog_cc_stdc = xno
4275 then :
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4277 printf %s "checking for $CC option to enable C89 features... " >&6; }
4278 if test ${ac_cv_prog_cc_c89+y}
4279 then :
4280 printf %s "(cached) " >&6
4281 else case e in #(
4282 e) ac_cv_prog_cc_c89=no
4283 ac_save_CC=$CC
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 $ac_c_conftest_c89_program
4287 _ACEOF
4288 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4289 do
4290 CC="$ac_save_CC $ac_arg"
4291 if ac_fn_c_try_compile "$LINENO"
4292 then :
4293 ac_cv_prog_cc_c89=$ac_arg
4294 fi
4295 rm -f core conftest.err conftest.$ac_objext conftest.beam
4296 test "x$ac_cv_prog_cc_c89" != "xno" && break
4297 done
4298 rm -f conftest.$ac_ext
4299 CC=$ac_save_CC ;;
4300 esac
4301 fi
4302
4303 if test "x$ac_cv_prog_cc_c89" = xno
4304 then :
4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4306 printf "%s\n" "unsupported" >&6; }
4307 else case e in #(
4308 e) if test "x$ac_cv_prog_cc_c89" = x
4309 then :
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4311 printf "%s\n" "none needed" >&6; }
4312 else case e in #(
4313 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4314 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4315 CC="$CC $ac_cv_prog_cc_c89" ;;
4316 esac
4317 fi
4318 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4319 ac_prog_cc_stdc=c89 ;;
4320 esac
4321 fi
4322 fi
4323
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329
4330
4331 ac_ext=c
4332 ac_cpp='$CPP $CPPFLAGS'
4333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4337 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4338 if test ${am_cv_prog_cc_c_o+y}
4339 then :
4340 printf %s "(cached) " >&6
4341 else case e in #(
4342 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4343 /* end confdefs.h. */
4344
4345 int
4346 main (void)
4347 {
4348
4349 ;
4350 return 0;
4351 }
4352 _ACEOF
4353 # Make sure it works both with $CC and with simple cc.
4354 # Following AC_PROG_CC_C_O, we do the test twice because some
4355 # compilers refuse to overwrite an existing .o file with -o,
4356 # though they will create one.
4357 am_cv_prog_cc_c_o=yes
4358 for am_i in 1 2; do
4359 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4360 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } \
4364 && test -f conftest2.$ac_objext; then
4365 : OK
4366 else
4367 am_cv_prog_cc_c_o=no
4368 break
4369 fi
4370 done
4371 rm -f core conftest*
4372 unset am_i ;;
4373 esac
4374 fi
4375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4376 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4377 if test "$am_cv_prog_cc_c_o" != yes; then
4378 # Losing compiler, so override with the script.
4379 # FIXME: It is wrong to rewrite CC.
4380 # But if we don't then we get into trouble of one sort or another.
4381 # A longer-term fix would be to have automake use am__CC in this case,
4382 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4383 CC="$am_aux_dir/compile $CC"
4384 fi
4385 ac_ext=c
4386 ac_cpp='$CPP $CPPFLAGS'
4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4390
4391
4392 depcc="$CC" am_compiler_list=
4393
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4395 printf %s "checking dependency style of $depcc... " >&6; }
4396 if test ${am_cv_CC_dependencies_compiler_type+y}
4397 then :
4398 printf %s "(cached) " >&6
4399 else case e in #(
4400 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4401 # We make a subdir and do the tests there. Otherwise we can end up
4402 # making bogus files that we don't know about and never remove. For
4403 # instance it was reported that on HP-UX the gcc test will end up
4404 # making a dummy file named 'D' -- because '-MD' means "put the output
4405 # in D".
4406 rm -rf conftest.dir
4407 mkdir conftest.dir
4408 # Copy depcomp to subdir because otherwise we won't find it if we're
4409 # using a relative directory.
4410 cp "$am_depcomp" conftest.dir
4411 cd conftest.dir
4412 # We will build objects and dependencies in a subdirectory because
4413 # it helps to detect inapplicable dependency modes. For instance
4414 # both Tru64's cc and ICC support -MD to output dependencies as a
4415 # side effect of compilation, but ICC will put the dependencies in
4416 # the current directory while Tru64 will put them in the object
4417 # directory.
4418 mkdir sub
4419
4420 am_cv_CC_dependencies_compiler_type=none
4421 if test "$am_compiler_list" = ""; then
4422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4423 fi
4424 am__universal=false
4425 case " $depcc " in #(
4426 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4427 esac
4428
4429 for depmode in $am_compiler_list; do
4430 # Setup a source with many dependencies, because some compilers
4431 # like to wrap large dependency lists on column 80 (with \), and
4432 # we should not choose a depcomp mode which is confused by this.
4433 #
4434 # We need to recreate these files for each test, as the compiler may
4435 # overwrite some of them when testing with obscure command lines.
4436 # This happens at least with the AIX C compiler.
4437 : > sub/conftest.c
4438 for i in 1 2 3 4 5 6; do
4439 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4440 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4441 # Solaris 10 /bin/sh.
4442 echo '/* dummy */' > sub/conftst$i.h
4443 done
4444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4445
4446 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4447 # mode. It turns out that the SunPro C++ compiler does not properly
4448 # handle '-M -o', and we need to detect this. Also, some Intel
4449 # versions had trouble with output in subdirs.
4450 am__obj=sub/conftest.${OBJEXT-o}
4451 am__minus_obj="-o $am__obj"
4452 case $depmode in
4453 gcc)
4454 # This depmode causes a compiler race in universal mode.
4455 test "$am__universal" = false || continue
4456 ;;
4457 nosideeffect)
4458 # After this tag, mechanisms are not by side-effect, so they'll
4459 # only be used when explicitly requested.
4460 if test "x$enable_dependency_tracking" = xyes; then
4461 continue
4462 else
4463 break
4464 fi
4465 ;;
4466 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4467 # This compiler won't grok '-c -o', but also, the minuso test has
4468 # not run yet. These depmodes are late enough in the game, and
4469 # so weak that their functioning should not be impacted.
4470 am__obj=conftest.${OBJEXT-o}
4471 am__minus_obj=
4472 ;;
4473 none) break ;;
4474 esac
4475 if depmode=$depmode \
4476 source=sub/conftest.c object=$am__obj \
4477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4478 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4479 >/dev/null 2>conftest.err &&
4480 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4482 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4484 # icc doesn't choke on unknown options, it will just issue warnings
4485 # or remarks (even with -Werror). So we grep stderr for any message
4486 # that says an option was ignored or not supported.
4487 # When given -MP, icc 7.0 and 7.1 complain thusly:
4488 # icc: Command line warning: ignoring option '-M'; no argument required
4489 # The diagnosis changed in icc 8.0:
4490 # icc: Command line remark: option '-MP' not supported
4491 if (grep 'ignoring option' conftest.err ||
4492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4493 am_cv_CC_dependencies_compiler_type=$depmode
4494 break
4495 fi
4496 fi
4497 done
4498
4499 cd ..
4500 rm -rf conftest.dir
4501 else
4502 am_cv_CC_dependencies_compiler_type=none
4503 fi
4504 ;;
4505 esac
4506 fi
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4508 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4509 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4510
4511 if
4512 test "x$enable_dependency_tracking" != xno \
4513 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4514 am__fastdepCC_TRUE=
4515 am__fastdepCC_FALSE='#'
4516 else
4517 am__fastdepCC_TRUE='#'
4518 am__fastdepCC_FALSE=
4519 fi
4520
4521
4522
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4524 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4525 if test ${ac_cv_c_undeclared_builtin_options+y}
4526 then :
4527 printf %s "(cached) " >&6
4528 else case e in #(
4529 e) ac_save_CFLAGS=$CFLAGS
4530 ac_cv_c_undeclared_builtin_options='cannot detect'
4531 for ac_arg in '' -fno-builtin; do
4532 CFLAGS="$ac_save_CFLAGS $ac_arg"
4533 # This test program should *not* compile successfully.
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4536
4537 int
4538 main (void)
4539 {
4540 (void) strchr;
4541 ;
4542 return 0;
4543 }
4544 _ACEOF
4545 if ac_fn_c_try_compile "$LINENO"
4546 then :
4547
4548 else case e in #(
4549 e) # This test program should compile successfully.
4550 # No library function is consistently available on
4551 # freestanding implementations, so test against a dummy
4552 # declaration. Include always-available headers on the
4553 # off chance that they somehow elicit warnings.
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 #include <float.h>
4557 #include <limits.h>
4558 #include <stdarg.h>
4559 #include <stddef.h>
4560 extern void ac_decl (int, char *);
4561
4562 int
4563 main (void)
4564 {
4565 (void) ac_decl (0, (char *) 0);
4566 (void) ac_decl;
4567
4568 ;
4569 return 0;
4570 }
4571 _ACEOF
4572 if ac_fn_c_try_compile "$LINENO"
4573 then :
4574 if test x"$ac_arg" = x
4575 then :
4576 ac_cv_c_undeclared_builtin_options='none needed'
4577 else case e in #(
4578 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4579 esac
4580 fi
4581 break
4582 fi
4583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4584 esac
4585 fi
4586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4587 done
4588 CFLAGS=$ac_save_CFLAGS
4589 ;;
4590 esac
4591 fi
4592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4593 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4594 case $ac_cv_c_undeclared_builtin_options in #(
4595 'cannot detect') :
4596 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4597 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4598 as_fn_error $? "cannot make $CC report undeclared builtins
4599 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4600 'none needed') :
4601 ac_c_undeclared_builtin_options='' ;; #(
4602 *) :
4603 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4604 esac
4605
4606 ac_header= ac_cache=
4607 for ac_item in $ac_header_c_list
4608 do
4609 if test $ac_cache; then
4610 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4611 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4612 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4613 fi
4614 ac_header= ac_cache=
4615 elif test $ac_header; then
4616 ac_cache=$ac_item
4617 else
4618 ac_header=$ac_item
4619 fi
4620 done
4621
4622
4623
4624
4625
4626
4627
4628
4629 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4630 then :
4631
4632 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4633
4634 fi
4635
4636
4637
4638
4639 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4640 if test "x$ac_cv_have_decl___clang__" = xyes
4641 then :
4642 CLANGCC="yes"
4643 else case e in #(
4644 e) CLANGCC="no" ;;
4645 esac
4646 fi
4647 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4648 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4649 then :
4650 INTELCC="yes"
4651 else case e in #(
4652 e) INTELCC="no" ;;
4653 esac
4654 fi
4655 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4656 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4657 then :
4658 SUNCC="yes"
4659 else case e in #(
4660 e) SUNCC="no" ;;
4661 esac
4662 fi
4663
4664
4665
4666
4667
4668
4669
4670
4671 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4672 if test -n "$ac_tool_prefix"; then
4673 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4674 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4676 printf %s "checking for $ac_word... " >&6; }
4677 if test ${ac_cv_path_PKG_CONFIG+y}
4678 then :
4679 printf %s "(cached) " >&6
4680 else case e in #(
4681 e) case $PKG_CONFIG in
4682 [\\/]* | ?:[\\/]*)
4683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4684 ;;
4685 *)
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4688 do
4689 IFS=$as_save_IFS
4690 case $as_dir in #(((
4691 '') as_dir=./ ;;
4692 */) ;;
4693 *) as_dir=$as_dir/ ;;
4694 esac
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4697 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4699 break 2
4700 fi
4701 done
4702 done
4703 IFS=$as_save_IFS
4704
4705 ;;
4706 esac ;;
4707 esac
4708 fi
4709 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4710 if test -n "$PKG_CONFIG"; then
4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4712 printf "%s\n" "$PKG_CONFIG" >&6; }
4713 else
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4715 printf "%s\n" "no" >&6; }
4716 fi
4717
4718
4719 fi
4720 if test -z "$ac_cv_path_PKG_CONFIG"; then
4721 ac_pt_PKG_CONFIG=$PKG_CONFIG
4722 # Extract the first word of "pkg-config", so it can be a program name with args.
4723 set dummy pkg-config; ac_word=$2
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4725 printf %s "checking for $ac_word... " >&6; }
4726 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4727 then :
4728 printf %s "(cached) " >&6
4729 else case e in #(
4730 e) case $ac_pt_PKG_CONFIG in
4731 [\\/]* | ?:[\\/]*)
4732 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4733 ;;
4734 *)
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738 IFS=$as_save_IFS
4739 case $as_dir in #(((
4740 '') as_dir=./ ;;
4741 */) ;;
4742 *) as_dir=$as_dir/ ;;
4743 esac
4744 for ac_exec_ext in '' $ac_executable_extensions; do
4745 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4746 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4748 break 2
4749 fi
4750 done
4751 done
4752 IFS=$as_save_IFS
4753
4754 ;;
4755 esac ;;
4756 esac
4757 fi
4758 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4759 if test -n "$ac_pt_PKG_CONFIG"; then
4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4761 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4762 else
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4764 printf "%s\n" "no" >&6; }
4765 fi
4766
4767 if test "x$ac_pt_PKG_CONFIG" = x; then
4768 PKG_CONFIG=""
4769 else
4770 case $cross_compiling:$ac_tool_warned in
4771 yes:)
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4773 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4774 ac_tool_warned=yes ;;
4775 esac
4776 PKG_CONFIG=$ac_pt_PKG_CONFIG
4777 fi
4778 else
4779 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4780 fi
4781
4782 fi
4783 if test -n "$PKG_CONFIG"; then
4784 _pkg_min_version=0.9.0
4785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4786 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4787 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4789 printf "%s\n" "yes" >&6; }
4790 else
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4792 printf "%s\n" "no" >&6; }
4793 PKG_CONFIG=""
4794 fi
4795 fi
4796
4797
4798 # Make sure we can run config.sub.
4799 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4800 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4801
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4803 printf %s "checking build system type... " >&6; }
4804 if test ${ac_cv_build+y}
4805 then :
4806 printf %s "(cached) " >&6
4807 else case e in #(
4808 e) ac_build_alias=$build_alias
4809 test "x$ac_build_alias" = x &&
4810 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4811 test "x$ac_build_alias" = x &&
4812 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4813 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4814 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4815 ;;
4816 esac
4817 fi
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4819 printf "%s\n" "$ac_cv_build" >&6; }
4820 case $ac_cv_build in
4821 *-*-*) ;;
4822 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4823 esac
4824 build=$ac_cv_build
4825 ac_save_IFS=$IFS; IFS='-'
4826 set x $ac_cv_build
4827 shift
4828 build_cpu=$1
4829 build_vendor=$2
4830 shift; shift
4831 # Remember, the first character of IFS is used to create $*,
4832 # except with old shells:
4833 build_os=$*
4834 IFS=$ac_save_IFS
4835 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4836
4837
4838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4839 printf %s "checking host system type... " >&6; }
4840 if test ${ac_cv_host+y}
4841 then :
4842 printf %s "(cached) " >&6
4843 else case e in #(
4844 e) if test "x$host_alias" = x; then
4845 ac_cv_host=$ac_cv_build
4846 else
4847 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4848 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4849 fi
4850 ;;
4851 esac
4852 fi
4853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4854 printf "%s\n" "$ac_cv_host" >&6; }
4855 case $ac_cv_host in
4856 *-*-*) ;;
4857 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4858 esac
4859 host=$ac_cv_host
4860 ac_save_IFS=$IFS; IFS='-'
4861 set x $ac_cv_host
4862 shift
4863 host_cpu=$1
4864 host_vendor=$2
4865 shift; shift
4866 # Remember, the first character of IFS is used to create $*,
4867 # except with old shells:
4868 host_os=$*
4869 IFS=$ac_save_IFS
4870 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4871
4872
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4874 printf %s "checking for a sed that does not truncate output... " >&6; }
4875 if test ${ac_cv_path_SED+y}
4876 then :
4877 printf %s "(cached) " >&6
4878 else case e in #(
4879 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4880 for ac_i in 1 2 3 4 5 6 7; do
4881 ac_script="$ac_script$as_nl$ac_script"
4882 done
4883 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4884 { ac_script=; unset ac_script;}
4885 if test -z "$SED"; then
4886 ac_path_SED_found=false
4887 # Loop through the user's path and test for each of PROGNAME-LIST
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891 IFS=$as_save_IFS
4892 case $as_dir in #(((
4893 '') as_dir=./ ;;
4894 */) ;;
4895 *) as_dir=$as_dir/ ;;
4896 esac
4897 for ac_prog in sed gsed
4898 do
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4901 as_fn_executable_p "$ac_path_SED" || continue
4902 # Check for GNU ac_path_SED and select it if it is found.
4903 # Check for GNU $ac_path_SED
4904 case `"$ac_path_SED" --version 2>&1` in #(
4905 *GNU*)
4906 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4907 #(
4908 *)
4909 ac_count=0
4910 printf %s 0123456789 >"conftest.in"
4911 while :
4912 do
4913 cat "conftest.in" "conftest.in" >"conftest.tmp"
4914 mv "conftest.tmp" "conftest.in"
4915 cp "conftest.in" "conftest.nl"
4916 printf "%s\n" '' >> "conftest.nl"
4917 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4919 as_fn_arith $ac_count + 1 && ac_count=$as_val
4920 if test $ac_count -gt ${ac_path_SED_max-0}; then
4921 # Best one so far, save it but keep looking for a better one
4922 ac_cv_path_SED="$ac_path_SED"
4923 ac_path_SED_max=$ac_count
4924 fi
4925 # 10*(2^10) chars as input seems more than enough
4926 test $ac_count -gt 10 && break
4927 done
4928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4929 esac
4930
4931 $ac_path_SED_found && break 3
4932 done
4933 done
4934 done
4935 IFS=$as_save_IFS
4936 if test -z "$ac_cv_path_SED"; then
4937 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4938 fi
4939 else
4940 ac_cv_path_SED=$SED
4941 fi
4942 ;;
4943 esac
4944 fi
4945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4946 printf "%s\n" "$ac_cv_path_SED" >&6; }
4947 SED="$ac_cv_path_SED"
4948 rm -f conftest.sed
4949
4950
4951
4952
4953
4954
4955 # Check whether --enable-selective-werror was given.
4956 if test ${enable_selective_werror+y}
4957 then :
4958 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4959 else case e in #(
4960 e) SELECTIVE_WERROR=yes ;;
4961 esac
4962 fi
4963
4964
4965
4966
4967
4968 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4969 if test "x$SUNCC" = "xyes"; then
4970 BASE_CFLAGS="-v"
4971 else
4972 BASE_CFLAGS=""
4973 fi
4974
4975 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989 xorg_testset_save_CFLAGS="$CFLAGS"
4990
4991 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4992 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4994 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4995 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4996 then :
4997 printf %s "(cached) " >&6
4998 else case e in #(
4999 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5001 int i;
5002 _ACEOF
5003 if ac_fn_c_try_compile "$LINENO"
5004 then :
5005 xorg_cv_cc_flag_unknown_warning_option=yes
5006 else case e in #(
5007 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5008 esac
5009 fi
5010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5011 esac
5012 fi
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5014 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5016 CFLAGS="$xorg_testset_save_CFLAGS"
5017 fi
5018
5019 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5022 fi
5023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5025 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5026 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5027 then :
5028 printf %s "(cached) " >&6
5029 else case e in #(
5030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5031 /* end confdefs.h. */
5032 int i;
5033 _ACEOF
5034 if ac_fn_c_try_compile "$LINENO"
5035 then :
5036 xorg_cv_cc_flag_unused_command_line_argument=yes
5037 else case e in #(
5038 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5039 esac
5040 fi
5041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5042 esac
5043 fi
5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5045 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5046 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5047 CFLAGS="$xorg_testset_save_CFLAGS"
5048 fi
5049
5050 found="no"
5051
5052 if test $found = "no" ; then
5053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5055 fi
5056
5057 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5059 fi
5060
5061 CFLAGS="$CFLAGS -Wall"
5062
5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5064 printf %s "checking if $CC supports -Wall... " >&6; }
5065 cacheid=xorg_cv_cc_flag__Wall
5066 if eval test \${$cacheid+y}
5067 then :
5068 printf %s "(cached) " >&6
5069 else case e in #(
5070 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5072 int i;
5073 int
5074 main (void)
5075 {
5076
5077 ;
5078 return 0;
5079 }
5080 _ACEOF
5081 if ac_fn_c_try_link "$LINENO"
5082 then :
5083 eval $cacheid=yes
5084 else case e in #(
5085 e) eval $cacheid=no ;;
5086 esac
5087 fi
5088 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5089 conftest$ac_exeext conftest.$ac_ext ;;
5090 esac
5091 fi
5092
5093
5094 CFLAGS="$xorg_testset_save_CFLAGS"
5095
5096 eval supported=\$$cacheid
5097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5098 printf "%s\n" "$supported" >&6; }
5099 if test "$supported" = "yes" ; then
5100 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5101 found="yes"
5102 fi
5103 fi
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119 xorg_testset_save_CFLAGS="$CFLAGS"
5120
5121 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5124 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5125 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5126 then :
5127 printf %s "(cached) " >&6
5128 else case e in #(
5129 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h. */
5131 int i;
5132 _ACEOF
5133 if ac_fn_c_try_compile "$LINENO"
5134 then :
5135 xorg_cv_cc_flag_unknown_warning_option=yes
5136 else case e in #(
5137 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5138 esac
5139 fi
5140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5141 esac
5142 fi
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5144 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5146 CFLAGS="$xorg_testset_save_CFLAGS"
5147 fi
5148
5149 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5152 fi
5153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5155 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5156 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5157 then :
5158 printf %s "(cached) " >&6
5159 else case e in #(
5160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 int i;
5163 _ACEOF
5164 if ac_fn_c_try_compile "$LINENO"
5165 then :
5166 xorg_cv_cc_flag_unused_command_line_argument=yes
5167 else case e in #(
5168 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5169 esac
5170 fi
5171 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5172 esac
5173 fi
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5175 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5176 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5177 CFLAGS="$xorg_testset_save_CFLAGS"
5178 fi
5179
5180 found="no"
5181
5182 if test $found = "no" ; then
5183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5185 fi
5186
5187 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5189 fi
5190
5191 CFLAGS="$CFLAGS -Wpointer-arith"
5192
5193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5194 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5195 cacheid=xorg_cv_cc_flag__Wpointer_arith
5196 if eval test \${$cacheid+y}
5197 then :
5198 printf %s "(cached) " >&6
5199 else case e in #(
5200 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5202 int i;
5203 int
5204 main (void)
5205 {
5206
5207 ;
5208 return 0;
5209 }
5210 _ACEOF
5211 if ac_fn_c_try_link "$LINENO"
5212 then :
5213 eval $cacheid=yes
5214 else case e in #(
5215 e) eval $cacheid=no ;;
5216 esac
5217 fi
5218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5219 conftest$ac_exeext conftest.$ac_ext ;;
5220 esac
5221 fi
5222
5223
5224 CFLAGS="$xorg_testset_save_CFLAGS"
5225
5226 eval supported=\$$cacheid
5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5228 printf "%s\n" "$supported" >&6; }
5229 if test "$supported" = "yes" ; then
5230 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5231 found="yes"
5232 fi
5233 fi
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249 xorg_testset_save_CFLAGS="$CFLAGS"
5250
5251 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5254 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5255 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5256 then :
5257 printf %s "(cached) " >&6
5258 else case e in #(
5259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5261 int i;
5262 _ACEOF
5263 if ac_fn_c_try_compile "$LINENO"
5264 then :
5265 xorg_cv_cc_flag_unknown_warning_option=yes
5266 else case e in #(
5267 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5268 esac
5269 fi
5270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5271 esac
5272 fi
5273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5274 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5275 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5276 CFLAGS="$xorg_testset_save_CFLAGS"
5277 fi
5278
5279 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5282 fi
5283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5285 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5286 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5287 then :
5288 printf %s "(cached) " >&6
5289 else case e in #(
5290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 int i;
5293 _ACEOF
5294 if ac_fn_c_try_compile "$LINENO"
5295 then :
5296 xorg_cv_cc_flag_unused_command_line_argument=yes
5297 else case e in #(
5298 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5299 esac
5300 fi
5301 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5302 esac
5303 fi
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5305 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5307 CFLAGS="$xorg_testset_save_CFLAGS"
5308 fi
5309
5310 found="no"
5311
5312 if test $found = "no" ; then
5313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5315 fi
5316
5317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5319 fi
5320
5321 CFLAGS="$CFLAGS -Wmissing-declarations"
5322
5323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5324 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5325 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5326 if eval test \${$cacheid+y}
5327 then :
5328 printf %s "(cached) " >&6
5329 else case e in #(
5330 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5332 int i;
5333 int
5334 main (void)
5335 {
5336
5337 ;
5338 return 0;
5339 }
5340 _ACEOF
5341 if ac_fn_c_try_link "$LINENO"
5342 then :
5343 eval $cacheid=yes
5344 else case e in #(
5345 e) eval $cacheid=no ;;
5346 esac
5347 fi
5348 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5349 conftest$ac_exeext conftest.$ac_ext ;;
5350 esac
5351 fi
5352
5353
5354 CFLAGS="$xorg_testset_save_CFLAGS"
5355
5356 eval supported=\$$cacheid
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5358 printf "%s\n" "$supported" >&6; }
5359 if test "$supported" = "yes" ; then
5360 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5361 found="yes"
5362 fi
5363 fi
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379 xorg_testset_save_CFLAGS="$CFLAGS"
5380
5381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5384 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5385 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5386 then :
5387 printf %s "(cached) " >&6
5388 else case e in #(
5389 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5390 /* end confdefs.h. */
5391 int i;
5392 _ACEOF
5393 if ac_fn_c_try_compile "$LINENO"
5394 then :
5395 xorg_cv_cc_flag_unknown_warning_option=yes
5396 else case e in #(
5397 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5398 esac
5399 fi
5400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5401 esac
5402 fi
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5404 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5405 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5406 CFLAGS="$xorg_testset_save_CFLAGS"
5407 fi
5408
5409 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5412 fi
5413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5415 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5416 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5417 then :
5418 printf %s "(cached) " >&6
5419 else case e in #(
5420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 int i;
5423 _ACEOF
5424 if ac_fn_c_try_compile "$LINENO"
5425 then :
5426 xorg_cv_cc_flag_unused_command_line_argument=yes
5427 else case e in #(
5428 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5429 esac
5430 fi
5431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5432 esac
5433 fi
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5435 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5437 CFLAGS="$xorg_testset_save_CFLAGS"
5438 fi
5439
5440 found="no"
5441
5442 if test $found = "no" ; then
5443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5445 fi
5446
5447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5449 fi
5450
5451 CFLAGS="$CFLAGS -Wformat=2"
5452
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5454 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5455 cacheid=xorg_cv_cc_flag__Wformat_2
5456 if eval test \${$cacheid+y}
5457 then :
5458 printf %s "(cached) " >&6
5459 else case e in #(
5460 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462 int i;
5463 int
5464 main (void)
5465 {
5466
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 if ac_fn_c_try_link "$LINENO"
5472 then :
5473 eval $cacheid=yes
5474 else case e in #(
5475 e) eval $cacheid=no ;;
5476 esac
5477 fi
5478 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5479 conftest$ac_exeext conftest.$ac_ext ;;
5480 esac
5481 fi
5482
5483
5484 CFLAGS="$xorg_testset_save_CFLAGS"
5485
5486 eval supported=\$$cacheid
5487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5488 printf "%s\n" "$supported" >&6; }
5489 if test "$supported" = "yes" ; then
5490 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5491 found="yes"
5492 fi
5493 fi
5494
5495 if test $found = "no" ; then
5496 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5498 fi
5499
5500 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5502 fi
5503
5504 CFLAGS="$CFLAGS -Wformat"
5505
5506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5507 printf %s "checking if $CC supports -Wformat... " >&6; }
5508 cacheid=xorg_cv_cc_flag__Wformat
5509 if eval test \${$cacheid+y}
5510 then :
5511 printf %s "(cached) " >&6
5512 else case e in #(
5513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5515 int i;
5516 int
5517 main (void)
5518 {
5519
5520 ;
5521 return 0;
5522 }
5523 _ACEOF
5524 if ac_fn_c_try_link "$LINENO"
5525 then :
5526 eval $cacheid=yes
5527 else case e in #(
5528 e) eval $cacheid=no ;;
5529 esac
5530 fi
5531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5532 conftest$ac_exeext conftest.$ac_ext ;;
5533 esac
5534 fi
5535
5536
5537 CFLAGS="$xorg_testset_save_CFLAGS"
5538
5539 eval supported=\$$cacheid
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5541 printf "%s\n" "$supported" >&6; }
5542 if test "$supported" = "yes" ; then
5543 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5544 found="yes"
5545 fi
5546 fi
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564 xorg_testset_save_CFLAGS="$CFLAGS"
5565
5566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5569 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5570 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5571 then :
5572 printf %s "(cached) " >&6
5573 else case e in #(
5574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575 /* end confdefs.h. */
5576 int i;
5577 _ACEOF
5578 if ac_fn_c_try_compile "$LINENO"
5579 then :
5580 xorg_cv_cc_flag_unknown_warning_option=yes
5581 else case e in #(
5582 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5583 esac
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5586 esac
5587 fi
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5589 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5591 CFLAGS="$xorg_testset_save_CFLAGS"
5592 fi
5593
5594 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5597 fi
5598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5600 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5601 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5602 then :
5603 printf %s "(cached) " >&6
5604 else case e in #(
5605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607 int i;
5608 _ACEOF
5609 if ac_fn_c_try_compile "$LINENO"
5610 then :
5611 xorg_cv_cc_flag_unused_command_line_argument=yes
5612 else case e in #(
5613 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5614 esac
5615 fi
5616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5617 esac
5618 fi
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5620 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5622 CFLAGS="$xorg_testset_save_CFLAGS"
5623 fi
5624
5625 found="no"
5626
5627 if test $found = "no" ; then
5628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5630 fi
5631
5632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5634 fi
5635
5636 CFLAGS="$CFLAGS -Wstrict-prototypes"
5637
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5639 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5640 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5641 if eval test \${$cacheid+y}
5642 then :
5643 printf %s "(cached) " >&6
5644 else case e in #(
5645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647 int i;
5648 int
5649 main (void)
5650 {
5651
5652 ;
5653 return 0;
5654 }
5655 _ACEOF
5656 if ac_fn_c_try_link "$LINENO"
5657 then :
5658 eval $cacheid=yes
5659 else case e in #(
5660 e) eval $cacheid=no ;;
5661 esac
5662 fi
5663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5664 conftest$ac_exeext conftest.$ac_ext ;;
5665 esac
5666 fi
5667
5668
5669 CFLAGS="$xorg_testset_save_CFLAGS"
5670
5671 eval supported=\$$cacheid
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5673 printf "%s\n" "$supported" >&6; }
5674 if test "$supported" = "yes" ; then
5675 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5676 found="yes"
5677 fi
5678 fi
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694 xorg_testset_save_CFLAGS="$CFLAGS"
5695
5696 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5699 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5700 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5701 then :
5702 printf %s "(cached) " >&6
5703 else case e in #(
5704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5706 int i;
5707 _ACEOF
5708 if ac_fn_c_try_compile "$LINENO"
5709 then :
5710 xorg_cv_cc_flag_unknown_warning_option=yes
5711 else case e in #(
5712 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5713 esac
5714 fi
5715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5716 esac
5717 fi
5718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5719 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5721 CFLAGS="$xorg_testset_save_CFLAGS"
5722 fi
5723
5724 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5727 fi
5728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5730 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5731 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5732 then :
5733 printf %s "(cached) " >&6
5734 else case e in #(
5735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5736 /* end confdefs.h. */
5737 int i;
5738 _ACEOF
5739 if ac_fn_c_try_compile "$LINENO"
5740 then :
5741 xorg_cv_cc_flag_unused_command_line_argument=yes
5742 else case e in #(
5743 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5744 esac
5745 fi
5746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5747 esac
5748 fi
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5750 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5752 CFLAGS="$xorg_testset_save_CFLAGS"
5753 fi
5754
5755 found="no"
5756
5757 if test $found = "no" ; then
5758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5760 fi
5761
5762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5764 fi
5765
5766 CFLAGS="$CFLAGS -Wmissing-prototypes"
5767
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5769 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5770 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5771 if eval test \${$cacheid+y}
5772 then :
5773 printf %s "(cached) " >&6
5774 else case e in #(
5775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5776 /* end confdefs.h. */
5777 int i;
5778 int
5779 main (void)
5780 {
5781
5782 ;
5783 return 0;
5784 }
5785 _ACEOF
5786 if ac_fn_c_try_link "$LINENO"
5787 then :
5788 eval $cacheid=yes
5789 else case e in #(
5790 e) eval $cacheid=no ;;
5791 esac
5792 fi
5793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5794 conftest$ac_exeext conftest.$ac_ext ;;
5795 esac
5796 fi
5797
5798
5799 CFLAGS="$xorg_testset_save_CFLAGS"
5800
5801 eval supported=\$$cacheid
5802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5803 printf "%s\n" "$supported" >&6; }
5804 if test "$supported" = "yes" ; then
5805 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5806 found="yes"
5807 fi
5808 fi
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824 xorg_testset_save_CFLAGS="$CFLAGS"
5825
5826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5829 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5830 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5831 then :
5832 printf %s "(cached) " >&6
5833 else case e in #(
5834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5835 /* end confdefs.h. */
5836 int i;
5837 _ACEOF
5838 if ac_fn_c_try_compile "$LINENO"
5839 then :
5840 xorg_cv_cc_flag_unknown_warning_option=yes
5841 else case e in #(
5842 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5843 esac
5844 fi
5845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5846 esac
5847 fi
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5849 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5851 CFLAGS="$xorg_testset_save_CFLAGS"
5852 fi
5853
5854 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5857 fi
5858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5860 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5861 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5862 then :
5863 printf %s "(cached) " >&6
5864 else case e in #(
5865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5866 /* end confdefs.h. */
5867 int i;
5868 _ACEOF
5869 if ac_fn_c_try_compile "$LINENO"
5870 then :
5871 xorg_cv_cc_flag_unused_command_line_argument=yes
5872 else case e in #(
5873 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5874 esac
5875 fi
5876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5877 esac
5878 fi
5879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5880 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5882 CFLAGS="$xorg_testset_save_CFLAGS"
5883 fi
5884
5885 found="no"
5886
5887 if test $found = "no" ; then
5888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5890 fi
5891
5892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5894 fi
5895
5896 CFLAGS="$CFLAGS -Wnested-externs"
5897
5898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5899 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5900 cacheid=xorg_cv_cc_flag__Wnested_externs
5901 if eval test \${$cacheid+y}
5902 then :
5903 printf %s "(cached) " >&6
5904 else case e in #(
5905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5907 int i;
5908 int
5909 main (void)
5910 {
5911
5912 ;
5913 return 0;
5914 }
5915 _ACEOF
5916 if ac_fn_c_try_link "$LINENO"
5917 then :
5918 eval $cacheid=yes
5919 else case e in #(
5920 e) eval $cacheid=no ;;
5921 esac
5922 fi
5923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5924 conftest$ac_exeext conftest.$ac_ext ;;
5925 esac
5926 fi
5927
5928
5929 CFLAGS="$xorg_testset_save_CFLAGS"
5930
5931 eval supported=\$$cacheid
5932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5933 printf "%s\n" "$supported" >&6; }
5934 if test "$supported" = "yes" ; then
5935 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5936 found="yes"
5937 fi
5938 fi
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954 xorg_testset_save_CFLAGS="$CFLAGS"
5955
5956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5959 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5960 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5961 then :
5962 printf %s "(cached) " >&6
5963 else case e in #(
5964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5966 int i;
5967 _ACEOF
5968 if ac_fn_c_try_compile "$LINENO"
5969 then :
5970 xorg_cv_cc_flag_unknown_warning_option=yes
5971 else case e in #(
5972 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5973 esac
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5976 esac
5977 fi
5978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5979 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5981 CFLAGS="$xorg_testset_save_CFLAGS"
5982 fi
5983
5984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5987 fi
5988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5990 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5991 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5992 then :
5993 printf %s "(cached) " >&6
5994 else case e in #(
5995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996 /* end confdefs.h. */
5997 int i;
5998 _ACEOF
5999 if ac_fn_c_try_compile "$LINENO"
6000 then :
6001 xorg_cv_cc_flag_unused_command_line_argument=yes
6002 else case e in #(
6003 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6004 esac
6005 fi
6006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6007 esac
6008 fi
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6010 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6012 CFLAGS="$xorg_testset_save_CFLAGS"
6013 fi
6014
6015 found="no"
6016
6017 if test $found = "no" ; then
6018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6020 fi
6021
6022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6024 fi
6025
6026 CFLAGS="$CFLAGS -Wbad-function-cast"
6027
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6029 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6030 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6031 if eval test \${$cacheid+y}
6032 then :
6033 printf %s "(cached) " >&6
6034 else case e in #(
6035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037 int i;
6038 int
6039 main (void)
6040 {
6041
6042 ;
6043 return 0;
6044 }
6045 _ACEOF
6046 if ac_fn_c_try_link "$LINENO"
6047 then :
6048 eval $cacheid=yes
6049 else case e in #(
6050 e) eval $cacheid=no ;;
6051 esac
6052 fi
6053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6054 conftest$ac_exeext conftest.$ac_ext ;;
6055 esac
6056 fi
6057
6058
6059 CFLAGS="$xorg_testset_save_CFLAGS"
6060
6061 eval supported=\$$cacheid
6062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6063 printf "%s\n" "$supported" >&6; }
6064 if test "$supported" = "yes" ; then
6065 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6066 found="yes"
6067 fi
6068 fi
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084 xorg_testset_save_CFLAGS="$CFLAGS"
6085
6086 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6089 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6090 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6091 then :
6092 printf %s "(cached) " >&6
6093 else case e in #(
6094 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6095 /* end confdefs.h. */
6096 int i;
6097 _ACEOF
6098 if ac_fn_c_try_compile "$LINENO"
6099 then :
6100 xorg_cv_cc_flag_unknown_warning_option=yes
6101 else case e in #(
6102 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6103 esac
6104 fi
6105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6106 esac
6107 fi
6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6109 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6111 CFLAGS="$xorg_testset_save_CFLAGS"
6112 fi
6113
6114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6117 fi
6118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6120 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6121 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6122 then :
6123 printf %s "(cached) " >&6
6124 else case e in #(
6125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126 /* end confdefs.h. */
6127 int i;
6128 _ACEOF
6129 if ac_fn_c_try_compile "$LINENO"
6130 then :
6131 xorg_cv_cc_flag_unused_command_line_argument=yes
6132 else case e in #(
6133 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6134 esac
6135 fi
6136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6137 esac
6138 fi
6139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6140 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6141 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6142 CFLAGS="$xorg_testset_save_CFLAGS"
6143 fi
6144
6145 found="no"
6146
6147 if test $found = "no" ; then
6148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6150 fi
6151
6152 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6154 fi
6155
6156 CFLAGS="$CFLAGS -Wold-style-definition"
6157
6158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6159 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6160 cacheid=xorg_cv_cc_flag__Wold_style_definition
6161 if eval test \${$cacheid+y}
6162 then :
6163 printf %s "(cached) " >&6
6164 else case e in #(
6165 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6166 /* end confdefs.h. */
6167 int i;
6168 int
6169 main (void)
6170 {
6171
6172 ;
6173 return 0;
6174 }
6175 _ACEOF
6176 if ac_fn_c_try_link "$LINENO"
6177 then :
6178 eval $cacheid=yes
6179 else case e in #(
6180 e) eval $cacheid=no ;;
6181 esac
6182 fi
6183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6184 conftest$ac_exeext conftest.$ac_ext ;;
6185 esac
6186 fi
6187
6188
6189 CFLAGS="$xorg_testset_save_CFLAGS"
6190
6191 eval supported=\$$cacheid
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6193 printf "%s\n" "$supported" >&6; }
6194 if test "$supported" = "yes" ; then
6195 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6196 found="yes"
6197 fi
6198 fi
6199
6200 if test $found = "no" ; then
6201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6203 fi
6204
6205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6207 fi
6208
6209 CFLAGS="$CFLAGS -fd"
6210
6211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6212 printf %s "checking if $CC supports -fd... " >&6; }
6213 cacheid=xorg_cv_cc_flag__fd
6214 if eval test \${$cacheid+y}
6215 then :
6216 printf %s "(cached) " >&6
6217 else case e in #(
6218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 int i;
6221 int
6222 main (void)
6223 {
6224
6225 ;
6226 return 0;
6227 }
6228 _ACEOF
6229 if ac_fn_c_try_link "$LINENO"
6230 then :
6231 eval $cacheid=yes
6232 else case e in #(
6233 e) eval $cacheid=no ;;
6234 esac
6235 fi
6236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6237 conftest$ac_exeext conftest.$ac_ext ;;
6238 esac
6239 fi
6240
6241
6242 CFLAGS="$xorg_testset_save_CFLAGS"
6243
6244 eval supported=\$$cacheid
6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6246 printf "%s\n" "$supported" >&6; }
6247 if test "$supported" = "yes" ; then
6248 BASE_CFLAGS="$BASE_CFLAGS -fd"
6249 found="yes"
6250 fi
6251 fi
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267 xorg_testset_save_CFLAGS="$CFLAGS"
6268
6269 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6272 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6273 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6274 then :
6275 printf %s "(cached) " >&6
6276 else case e in #(
6277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6279 int i;
6280 _ACEOF
6281 if ac_fn_c_try_compile "$LINENO"
6282 then :
6283 xorg_cv_cc_flag_unknown_warning_option=yes
6284 else case e in #(
6285 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6286 esac
6287 fi
6288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6289 esac
6290 fi
6291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6292 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6293 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6294 CFLAGS="$xorg_testset_save_CFLAGS"
6295 fi
6296
6297 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6300 fi
6301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6303 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6304 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6305 then :
6306 printf %s "(cached) " >&6
6307 else case e in #(
6308 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6310 int i;
6311 _ACEOF
6312 if ac_fn_c_try_compile "$LINENO"
6313 then :
6314 xorg_cv_cc_flag_unused_command_line_argument=yes
6315 else case e in #(
6316 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6317 esac
6318 fi
6319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6320 esac
6321 fi
6322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6323 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6324 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6325 CFLAGS="$xorg_testset_save_CFLAGS"
6326 fi
6327
6328 found="no"
6329
6330 if test $found = "no" ; then
6331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6333 fi
6334
6335 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6336 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6337 fi
6338
6339 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6340
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6342 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6343 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6344 if eval test \${$cacheid+y}
6345 then :
6346 printf %s "(cached) " >&6
6347 else case e in #(
6348 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 int i;
6351 int
6352 main (void)
6353 {
6354
6355 ;
6356 return 0;
6357 }
6358 _ACEOF
6359 if ac_fn_c_try_link "$LINENO"
6360 then :
6361 eval $cacheid=yes
6362 else case e in #(
6363 e) eval $cacheid=no ;;
6364 esac
6365 fi
6366 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6367 conftest$ac_exeext conftest.$ac_ext ;;
6368 esac
6369 fi
6370
6371
6372 CFLAGS="$xorg_testset_save_CFLAGS"
6373
6374 eval supported=\$$cacheid
6375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6376 printf "%s\n" "$supported" >&6; }
6377 if test "$supported" = "yes" ; then
6378 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6379 found="yes"
6380 fi
6381 fi
6382
6383
6384
6385
6386
6387 # This chunk adds additional warnings that could catch undesired effects.
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401 xorg_testset_save_CFLAGS="$CFLAGS"
6402
6403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6406 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6407 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6408 then :
6409 printf %s "(cached) " >&6
6410 else case e in #(
6411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6413 int i;
6414 _ACEOF
6415 if ac_fn_c_try_compile "$LINENO"
6416 then :
6417 xorg_cv_cc_flag_unknown_warning_option=yes
6418 else case e in #(
6419 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6420 esac
6421 fi
6422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6423 esac
6424 fi
6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6426 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6428 CFLAGS="$xorg_testset_save_CFLAGS"
6429 fi
6430
6431 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6434 fi
6435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6437 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6438 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6439 then :
6440 printf %s "(cached) " >&6
6441 else case e in #(
6442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444 int i;
6445 _ACEOF
6446 if ac_fn_c_try_compile "$LINENO"
6447 then :
6448 xorg_cv_cc_flag_unused_command_line_argument=yes
6449 else case e in #(
6450 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6451 esac
6452 fi
6453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6454 esac
6455 fi
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6457 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6459 CFLAGS="$xorg_testset_save_CFLAGS"
6460 fi
6461
6462 found="no"
6463
6464 if test $found = "no" ; then
6465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6467 fi
6468
6469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6471 fi
6472
6473 CFLAGS="$CFLAGS -Wunused"
6474
6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6476 printf %s "checking if $CC supports -Wunused... " >&6; }
6477 cacheid=xorg_cv_cc_flag__Wunused
6478 if eval test \${$cacheid+y}
6479 then :
6480 printf %s "(cached) " >&6
6481 else case e in #(
6482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484 int i;
6485 int
6486 main (void)
6487 {
6488
6489 ;
6490 return 0;
6491 }
6492 _ACEOF
6493 if ac_fn_c_try_link "$LINENO"
6494 then :
6495 eval $cacheid=yes
6496 else case e in #(
6497 e) eval $cacheid=no ;;
6498 esac
6499 fi
6500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6501 conftest$ac_exeext conftest.$ac_ext ;;
6502 esac
6503 fi
6504
6505
6506 CFLAGS="$xorg_testset_save_CFLAGS"
6507
6508 eval supported=\$$cacheid
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6510 printf "%s\n" "$supported" >&6; }
6511 if test "$supported" = "yes" ; then
6512 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6513 found="yes"
6514 fi
6515 fi
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531 xorg_testset_save_CFLAGS="$CFLAGS"
6532
6533 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6536 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6537 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6538 then :
6539 printf %s "(cached) " >&6
6540 else case e in #(
6541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543 int i;
6544 _ACEOF
6545 if ac_fn_c_try_compile "$LINENO"
6546 then :
6547 xorg_cv_cc_flag_unknown_warning_option=yes
6548 else case e in #(
6549 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6550 esac
6551 fi
6552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6553 esac
6554 fi
6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6556 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6558 CFLAGS="$xorg_testset_save_CFLAGS"
6559 fi
6560
6561 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6564 fi
6565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6567 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6568 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6569 then :
6570 printf %s "(cached) " >&6
6571 else case e in #(
6572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 int i;
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"
6577 then :
6578 xorg_cv_cc_flag_unused_command_line_argument=yes
6579 else case e in #(
6580 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6581 esac
6582 fi
6583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6584 esac
6585 fi
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6587 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6589 CFLAGS="$xorg_testset_save_CFLAGS"
6590 fi
6591
6592 found="no"
6593
6594 if test $found = "no" ; then
6595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6597 fi
6598
6599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6601 fi
6602
6603 CFLAGS="$CFLAGS -Wuninitialized"
6604
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6606 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6607 cacheid=xorg_cv_cc_flag__Wuninitialized
6608 if eval test \${$cacheid+y}
6609 then :
6610 printf %s "(cached) " >&6
6611 else case e in #(
6612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6614 int i;
6615 int
6616 main (void)
6617 {
6618
6619 ;
6620 return 0;
6621 }
6622 _ACEOF
6623 if ac_fn_c_try_link "$LINENO"
6624 then :
6625 eval $cacheid=yes
6626 else case e in #(
6627 e) eval $cacheid=no ;;
6628 esac
6629 fi
6630 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6631 conftest$ac_exeext conftest.$ac_ext ;;
6632 esac
6633 fi
6634
6635
6636 CFLAGS="$xorg_testset_save_CFLAGS"
6637
6638 eval supported=\$$cacheid
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6640 printf "%s\n" "$supported" >&6; }
6641 if test "$supported" = "yes" ; then
6642 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6643 found="yes"
6644 fi
6645 fi
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661 xorg_testset_save_CFLAGS="$CFLAGS"
6662
6663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6666 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6667 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6668 then :
6669 printf %s "(cached) " >&6
6670 else case e in #(
6671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6673 int i;
6674 _ACEOF
6675 if ac_fn_c_try_compile "$LINENO"
6676 then :
6677 xorg_cv_cc_flag_unknown_warning_option=yes
6678 else case e in #(
6679 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6680 esac
6681 fi
6682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6683 esac
6684 fi
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6686 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6688 CFLAGS="$xorg_testset_save_CFLAGS"
6689 fi
6690
6691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6694 fi
6695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6697 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6698 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6699 then :
6700 printf %s "(cached) " >&6
6701 else case e in #(
6702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 int i;
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"
6707 then :
6708 xorg_cv_cc_flag_unused_command_line_argument=yes
6709 else case e in #(
6710 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6711 esac
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6714 esac
6715 fi
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6717 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6719 CFLAGS="$xorg_testset_save_CFLAGS"
6720 fi
6721
6722 found="no"
6723
6724 if test $found = "no" ; then
6725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6727 fi
6728
6729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6731 fi
6732
6733 CFLAGS="$CFLAGS -Wshadow"
6734
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6736 printf %s "checking if $CC supports -Wshadow... " >&6; }
6737 cacheid=xorg_cv_cc_flag__Wshadow
6738 if eval test \${$cacheid+y}
6739 then :
6740 printf %s "(cached) " >&6
6741 else case e in #(
6742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6744 int i;
6745 int
6746 main (void)
6747 {
6748
6749 ;
6750 return 0;
6751 }
6752 _ACEOF
6753 if ac_fn_c_try_link "$LINENO"
6754 then :
6755 eval $cacheid=yes
6756 else case e in #(
6757 e) eval $cacheid=no ;;
6758 esac
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6761 conftest$ac_exeext conftest.$ac_ext ;;
6762 esac
6763 fi
6764
6765
6766 CFLAGS="$xorg_testset_save_CFLAGS"
6767
6768 eval supported=\$$cacheid
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6770 printf "%s\n" "$supported" >&6; }
6771 if test "$supported" = "yes" ; then
6772 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6773 found="yes"
6774 fi
6775 fi
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791 xorg_testset_save_CFLAGS="$CFLAGS"
6792
6793 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6796 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6797 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6798 then :
6799 printf %s "(cached) " >&6
6800 else case e in #(
6801 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6802 /* end confdefs.h. */
6803 int i;
6804 _ACEOF
6805 if ac_fn_c_try_compile "$LINENO"
6806 then :
6807 xorg_cv_cc_flag_unknown_warning_option=yes
6808 else case e in #(
6809 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6810 esac
6811 fi
6812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6813 esac
6814 fi
6815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6816 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6818 CFLAGS="$xorg_testset_save_CFLAGS"
6819 fi
6820
6821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6824 fi
6825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6827 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6828 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6829 then :
6830 printf %s "(cached) " >&6
6831 else case e in #(
6832 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6834 int i;
6835 _ACEOF
6836 if ac_fn_c_try_compile "$LINENO"
6837 then :
6838 xorg_cv_cc_flag_unused_command_line_argument=yes
6839 else case e in #(
6840 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6841 esac
6842 fi
6843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6844 esac
6845 fi
6846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6847 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6849 CFLAGS="$xorg_testset_save_CFLAGS"
6850 fi
6851
6852 found="no"
6853
6854 if test $found = "no" ; then
6855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6857 fi
6858
6859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6861 fi
6862
6863 CFLAGS="$CFLAGS -Wmissing-noreturn"
6864
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6866 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6867 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6868 if eval test \${$cacheid+y}
6869 then :
6870 printf %s "(cached) " >&6
6871 else case e in #(
6872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 int i;
6875 int
6876 main (void)
6877 {
6878
6879 ;
6880 return 0;
6881 }
6882 _ACEOF
6883 if ac_fn_c_try_link "$LINENO"
6884 then :
6885 eval $cacheid=yes
6886 else case e in #(
6887 e) eval $cacheid=no ;;
6888 esac
6889 fi
6890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6891 conftest$ac_exeext conftest.$ac_ext ;;
6892 esac
6893 fi
6894
6895
6896 CFLAGS="$xorg_testset_save_CFLAGS"
6897
6898 eval supported=\$$cacheid
6899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6900 printf "%s\n" "$supported" >&6; }
6901 if test "$supported" = "yes" ; then
6902 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6903 found="yes"
6904 fi
6905 fi
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921 xorg_testset_save_CFLAGS="$CFLAGS"
6922
6923 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6926 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6927 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6928 then :
6929 printf %s "(cached) " >&6
6930 else case e in #(
6931 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 int i;
6934 _ACEOF
6935 if ac_fn_c_try_compile "$LINENO"
6936 then :
6937 xorg_cv_cc_flag_unknown_warning_option=yes
6938 else case e in #(
6939 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6940 esac
6941 fi
6942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6943 esac
6944 fi
6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6946 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6947 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6948 CFLAGS="$xorg_testset_save_CFLAGS"
6949 fi
6950
6951 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6954 fi
6955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6957 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6958 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6959 then :
6960 printf %s "(cached) " >&6
6961 else case e in #(
6962 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6964 int i;
6965 _ACEOF
6966 if ac_fn_c_try_compile "$LINENO"
6967 then :
6968 xorg_cv_cc_flag_unused_command_line_argument=yes
6969 else case e in #(
6970 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6971 esac
6972 fi
6973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6974 esac
6975 fi
6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6977 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6979 CFLAGS="$xorg_testset_save_CFLAGS"
6980 fi
6981
6982 found="no"
6983
6984 if test $found = "no" ; then
6985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6987 fi
6988
6989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6991 fi
6992
6993 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6994
6995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6996 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6997 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6998 if eval test \${$cacheid+y}
6999 then :
7000 printf %s "(cached) " >&6
7001 else case e in #(
7002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7004 int i;
7005 int
7006 main (void)
7007 {
7008
7009 ;
7010 return 0;
7011 }
7012 _ACEOF
7013 if ac_fn_c_try_link "$LINENO"
7014 then :
7015 eval $cacheid=yes
7016 else case e in #(
7017 e) eval $cacheid=no ;;
7018 esac
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7021 conftest$ac_exeext conftest.$ac_ext ;;
7022 esac
7023 fi
7024
7025
7026 CFLAGS="$xorg_testset_save_CFLAGS"
7027
7028 eval supported=\$$cacheid
7029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7030 printf "%s\n" "$supported" >&6; }
7031 if test "$supported" = "yes" ; then
7032 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7033 found="yes"
7034 fi
7035 fi
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051 xorg_testset_save_CFLAGS="$CFLAGS"
7052
7053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7056 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7057 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7058 then :
7059 printf %s "(cached) " >&6
7060 else case e in #(
7061 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* end confdefs.h. */
7063 int i;
7064 _ACEOF
7065 if ac_fn_c_try_compile "$LINENO"
7066 then :
7067 xorg_cv_cc_flag_unknown_warning_option=yes
7068 else case e in #(
7069 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7070 esac
7071 fi
7072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7073 esac
7074 fi
7075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7076 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7077 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7078 CFLAGS="$xorg_testset_save_CFLAGS"
7079 fi
7080
7081 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7084 fi
7085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7087 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7088 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7089 then :
7090 printf %s "(cached) " >&6
7091 else case e in #(
7092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7093 /* end confdefs.h. */
7094 int i;
7095 _ACEOF
7096 if ac_fn_c_try_compile "$LINENO"
7097 then :
7098 xorg_cv_cc_flag_unused_command_line_argument=yes
7099 else case e in #(
7100 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7101 esac
7102 fi
7103 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7104 esac
7105 fi
7106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7107 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7108 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7109 CFLAGS="$xorg_testset_save_CFLAGS"
7110 fi
7111
7112 found="no"
7113
7114 if test $found = "no" ; then
7115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7117 fi
7118
7119 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7121 fi
7122
7123 CFLAGS="$CFLAGS -Wredundant-decls"
7124
7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7126 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7127 cacheid=xorg_cv_cc_flag__Wredundant_decls
7128 if eval test \${$cacheid+y}
7129 then :
7130 printf %s "(cached) " >&6
7131 else case e in #(
7132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7134 int i;
7135 int
7136 main (void)
7137 {
7138
7139 ;
7140 return 0;
7141 }
7142 _ACEOF
7143 if ac_fn_c_try_link "$LINENO"
7144 then :
7145 eval $cacheid=yes
7146 else case e in #(
7147 e) eval $cacheid=no ;;
7148 esac
7149 fi
7150 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7151 conftest$ac_exeext conftest.$ac_ext ;;
7152 esac
7153 fi
7154
7155
7156 CFLAGS="$xorg_testset_save_CFLAGS"
7157
7158 eval supported=\$$cacheid
7159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7160 printf "%s\n" "$supported" >&6; }
7161 if test "$supported" = "yes" ; then
7162 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7163 found="yes"
7164 fi
7165 fi
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181 xorg_testset_save_CFLAGS="$CFLAGS"
7182
7183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7186 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7187 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7188 then :
7189 printf %s "(cached) " >&6
7190 else case e in #(
7191 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7192 /* end confdefs.h. */
7193 int i;
7194 _ACEOF
7195 if ac_fn_c_try_compile "$LINENO"
7196 then :
7197 xorg_cv_cc_flag_unknown_warning_option=yes
7198 else case e in #(
7199 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7200 esac
7201 fi
7202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7203 esac
7204 fi
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7206 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7207 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7208 CFLAGS="$xorg_testset_save_CFLAGS"
7209 fi
7210
7211 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7212 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7214 fi
7215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7217 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7218 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7219 then :
7220 printf %s "(cached) " >&6
7221 else case e in #(
7222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 /* end confdefs.h. */
7224 int i;
7225 _ACEOF
7226 if ac_fn_c_try_compile "$LINENO"
7227 then :
7228 xorg_cv_cc_flag_unused_command_line_argument=yes
7229 else case e in #(
7230 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7231 esac
7232 fi
7233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7234 esac
7235 fi
7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7237 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7239 CFLAGS="$xorg_testset_save_CFLAGS"
7240 fi
7241
7242 found="no"
7243
7244 if test $found = "no" ; then
7245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7247 fi
7248
7249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7251 fi
7252
7253 CFLAGS="$CFLAGS -Wlogical-op"
7254
7255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7256 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7257 cacheid=xorg_cv_cc_flag__Wlogical_op
7258 if eval test \${$cacheid+y}
7259 then :
7260 printf %s "(cached) " >&6
7261 else case e in #(
7262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7264 int i;
7265 int
7266 main (void)
7267 {
7268
7269 ;
7270 return 0;
7271 }
7272 _ACEOF
7273 if ac_fn_c_try_link "$LINENO"
7274 then :
7275 eval $cacheid=yes
7276 else case e in #(
7277 e) eval $cacheid=no ;;
7278 esac
7279 fi
7280 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7281 conftest$ac_exeext conftest.$ac_ext ;;
7282 esac
7283 fi
7284
7285
7286 CFLAGS="$xorg_testset_save_CFLAGS"
7287
7288 eval supported=\$$cacheid
7289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7290 printf "%s\n" "$supported" >&6; }
7291 if test "$supported" = "yes" ; then
7292 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7293 found="yes"
7294 fi
7295 fi
7296
7297
7298
7299 # These are currently disabled because they are noisy. They will be enabled
7300 # in the future once the codebase is sufficiently modernized to silence
7301 # them. For now, I don't want them to drown out the other warnings.
7302 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7303 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7304 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7305
7306 # Turn some warnings into errors, so we don't accidentally get successful builds
7307 # when there are problems that should be fixed.
7308
7309 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323 xorg_testset_save_CFLAGS="$CFLAGS"
7324
7325 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7328 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7329 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7330 then :
7331 printf %s "(cached) " >&6
7332 else case e in #(
7333 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334 /* end confdefs.h. */
7335 int i;
7336 _ACEOF
7337 if ac_fn_c_try_compile "$LINENO"
7338 then :
7339 xorg_cv_cc_flag_unknown_warning_option=yes
7340 else case e in #(
7341 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7342 esac
7343 fi
7344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7345 esac
7346 fi
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7348 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7349 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7350 CFLAGS="$xorg_testset_save_CFLAGS"
7351 fi
7352
7353 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7354 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7356 fi
7357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7359 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7360 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7361 then :
7362 printf %s "(cached) " >&6
7363 else case e in #(
7364 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7365 /* end confdefs.h. */
7366 int i;
7367 _ACEOF
7368 if ac_fn_c_try_compile "$LINENO"
7369 then :
7370 xorg_cv_cc_flag_unused_command_line_argument=yes
7371 else case e in #(
7372 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7373 esac
7374 fi
7375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7376 esac
7377 fi
7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7379 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7381 CFLAGS="$xorg_testset_save_CFLAGS"
7382 fi
7383
7384 found="no"
7385
7386 if test $found = "no" ; then
7387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7389 fi
7390
7391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7393 fi
7394
7395 CFLAGS="$CFLAGS -Werror=implicit"
7396
7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7398 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7399 cacheid=xorg_cv_cc_flag__Werror_implicit
7400 if eval test \${$cacheid+y}
7401 then :
7402 printf %s "(cached) " >&6
7403 else case e in #(
7404 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406 int i;
7407 int
7408 main (void)
7409 {
7410
7411 ;
7412 return 0;
7413 }
7414 _ACEOF
7415 if ac_fn_c_try_link "$LINENO"
7416 then :
7417 eval $cacheid=yes
7418 else case e in #(
7419 e) eval $cacheid=no ;;
7420 esac
7421 fi
7422 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7423 conftest$ac_exeext conftest.$ac_ext ;;
7424 esac
7425 fi
7426
7427
7428 CFLAGS="$xorg_testset_save_CFLAGS"
7429
7430 eval supported=\$$cacheid
7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7432 printf "%s\n" "$supported" >&6; }
7433 if test "$supported" = "yes" ; then
7434 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7435 found="yes"
7436 fi
7437 fi
7438
7439 if test $found = "no" ; then
7440 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7441 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7442 fi
7443
7444 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7446 fi
7447
7448 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7449
7450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
7451 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7452 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7453 if eval test \${$cacheid+y}
7454 then :
7455 printf %s "(cached) " >&6
7456 else case e in #(
7457 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459 int i;
7460 int
7461 main (void)
7462 {
7463
7464 ;
7465 return 0;
7466 }
7467 _ACEOF
7468 if ac_fn_c_try_link "$LINENO"
7469 then :
7470 eval $cacheid=yes
7471 else case e in #(
7472 e) eval $cacheid=no ;;
7473 esac
7474 fi
7475 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7476 conftest$ac_exeext conftest.$ac_ext ;;
7477 esac
7478 fi
7479
7480
7481 CFLAGS="$xorg_testset_save_CFLAGS"
7482
7483 eval supported=\$$cacheid
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7485 printf "%s\n" "$supported" >&6; }
7486 if test "$supported" = "yes" ; then
7487 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7488 found="yes"
7489 fi
7490 fi
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506 xorg_testset_save_CFLAGS="$CFLAGS"
7507
7508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7511 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7512 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7513 then :
7514 printf %s "(cached) " >&6
7515 else case e in #(
7516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7518 int i;
7519 _ACEOF
7520 if ac_fn_c_try_compile "$LINENO"
7521 then :
7522 xorg_cv_cc_flag_unknown_warning_option=yes
7523 else case e in #(
7524 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7525 esac
7526 fi
7527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7528 esac
7529 fi
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7531 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7532 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7533 CFLAGS="$xorg_testset_save_CFLAGS"
7534 fi
7535
7536 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7539 fi
7540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7542 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7543 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7544 then :
7545 printf %s "(cached) " >&6
7546 else case e in #(
7547 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h. */
7549 int i;
7550 _ACEOF
7551 if ac_fn_c_try_compile "$LINENO"
7552 then :
7553 xorg_cv_cc_flag_unused_command_line_argument=yes
7554 else case e in #(
7555 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7556 esac
7557 fi
7558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7559 esac
7560 fi
7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7562 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7564 CFLAGS="$xorg_testset_save_CFLAGS"
7565 fi
7566
7567 found="no"
7568
7569 if test $found = "no" ; then
7570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7572 fi
7573
7574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7576 fi
7577
7578 CFLAGS="$CFLAGS -Werror=nonnull"
7579
7580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7581 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7582 cacheid=xorg_cv_cc_flag__Werror_nonnull
7583 if eval test \${$cacheid+y}
7584 then :
7585 printf %s "(cached) " >&6
7586 else case e in #(
7587 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588 /* end confdefs.h. */
7589 int i;
7590 int
7591 main (void)
7592 {
7593
7594 ;
7595 return 0;
7596 }
7597 _ACEOF
7598 if ac_fn_c_try_link "$LINENO"
7599 then :
7600 eval $cacheid=yes
7601 else case e in #(
7602 e) eval $cacheid=no ;;
7603 esac
7604 fi
7605 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7606 conftest$ac_exeext conftest.$ac_ext ;;
7607 esac
7608 fi
7609
7610
7611 CFLAGS="$xorg_testset_save_CFLAGS"
7612
7613 eval supported=\$$cacheid
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7615 printf "%s\n" "$supported" >&6; }
7616 if test "$supported" = "yes" ; then
7617 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7618 found="yes"
7619 fi
7620 fi
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636 xorg_testset_save_CFLAGS="$CFLAGS"
7637
7638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7641 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7642 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7643 then :
7644 printf %s "(cached) " >&6
7645 else case e in #(
7646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647 /* end confdefs.h. */
7648 int i;
7649 _ACEOF
7650 if ac_fn_c_try_compile "$LINENO"
7651 then :
7652 xorg_cv_cc_flag_unknown_warning_option=yes
7653 else case e in #(
7654 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7655 esac
7656 fi
7657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7658 esac
7659 fi
7660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7661 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7662 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7663 CFLAGS="$xorg_testset_save_CFLAGS"
7664 fi
7665
7666 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7669 fi
7670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7672 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7673 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7674 then :
7675 printf %s "(cached) " >&6
7676 else case e in #(
7677 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7678 /* end confdefs.h. */
7679 int i;
7680 _ACEOF
7681 if ac_fn_c_try_compile "$LINENO"
7682 then :
7683 xorg_cv_cc_flag_unused_command_line_argument=yes
7684 else case e in #(
7685 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7686 esac
7687 fi
7688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7689 esac
7690 fi
7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7692 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7694 CFLAGS="$xorg_testset_save_CFLAGS"
7695 fi
7696
7697 found="no"
7698
7699 if test $found = "no" ; then
7700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7702 fi
7703
7704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7706 fi
7707
7708 CFLAGS="$CFLAGS -Werror=init-self"
7709
7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7711 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7712 cacheid=xorg_cv_cc_flag__Werror_init_self
7713 if eval test \${$cacheid+y}
7714 then :
7715 printf %s "(cached) " >&6
7716 else case e in #(
7717 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7719 int i;
7720 int
7721 main (void)
7722 {
7723
7724 ;
7725 return 0;
7726 }
7727 _ACEOF
7728 if ac_fn_c_try_link "$LINENO"
7729 then :
7730 eval $cacheid=yes
7731 else case e in #(
7732 e) eval $cacheid=no ;;
7733 esac
7734 fi
7735 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7736 conftest$ac_exeext conftest.$ac_ext ;;
7737 esac
7738 fi
7739
7740
7741 CFLAGS="$xorg_testset_save_CFLAGS"
7742
7743 eval supported=\$$cacheid
7744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7745 printf "%s\n" "$supported" >&6; }
7746 if test "$supported" = "yes" ; then
7747 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7748 found="yes"
7749 fi
7750 fi
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766 xorg_testset_save_CFLAGS="$CFLAGS"
7767
7768 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7771 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7772 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7773 then :
7774 printf %s "(cached) " >&6
7775 else case e in #(
7776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778 int i;
7779 _ACEOF
7780 if ac_fn_c_try_compile "$LINENO"
7781 then :
7782 xorg_cv_cc_flag_unknown_warning_option=yes
7783 else case e in #(
7784 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7785 esac
7786 fi
7787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7788 esac
7789 fi
7790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7791 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7793 CFLAGS="$xorg_testset_save_CFLAGS"
7794 fi
7795
7796 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7799 fi
7800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7802 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7803 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7804 then :
7805 printf %s "(cached) " >&6
7806 else case e in #(
7807 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809 int i;
7810 _ACEOF
7811 if ac_fn_c_try_compile "$LINENO"
7812 then :
7813 xorg_cv_cc_flag_unused_command_line_argument=yes
7814 else case e in #(
7815 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7816 esac
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7819 esac
7820 fi
7821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7822 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7823 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7824 CFLAGS="$xorg_testset_save_CFLAGS"
7825 fi
7826
7827 found="no"
7828
7829 if test $found = "no" ; then
7830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7832 fi
7833
7834 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7835 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7836 fi
7837
7838 CFLAGS="$CFLAGS -Werror=main"
7839
7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7841 printf %s "checking if $CC supports -Werror=main... " >&6; }
7842 cacheid=xorg_cv_cc_flag__Werror_main
7843 if eval test \${$cacheid+y}
7844 then :
7845 printf %s "(cached) " >&6
7846 else case e in #(
7847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849 int i;
7850 int
7851 main (void)
7852 {
7853
7854 ;
7855 return 0;
7856 }
7857 _ACEOF
7858 if ac_fn_c_try_link "$LINENO"
7859 then :
7860 eval $cacheid=yes
7861 else case e in #(
7862 e) eval $cacheid=no ;;
7863 esac
7864 fi
7865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7866 conftest$ac_exeext conftest.$ac_ext ;;
7867 esac
7868 fi
7869
7870
7871 CFLAGS="$xorg_testset_save_CFLAGS"
7872
7873 eval supported=\$$cacheid
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7875 printf "%s\n" "$supported" >&6; }
7876 if test "$supported" = "yes" ; then
7877 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7878 found="yes"
7879 fi
7880 fi
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896 xorg_testset_save_CFLAGS="$CFLAGS"
7897
7898 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7901 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7902 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7903 then :
7904 printf %s "(cached) " >&6
7905 else case e in #(
7906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7908 int i;
7909 _ACEOF
7910 if ac_fn_c_try_compile "$LINENO"
7911 then :
7912 xorg_cv_cc_flag_unknown_warning_option=yes
7913 else case e in #(
7914 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7915 esac
7916 fi
7917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7918 esac
7919 fi
7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7921 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7923 CFLAGS="$xorg_testset_save_CFLAGS"
7924 fi
7925
7926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7929 fi
7930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7932 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7933 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7934 then :
7935 printf %s "(cached) " >&6
7936 else case e in #(
7937 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7939 int i;
7940 _ACEOF
7941 if ac_fn_c_try_compile "$LINENO"
7942 then :
7943 xorg_cv_cc_flag_unused_command_line_argument=yes
7944 else case e in #(
7945 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7946 esac
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7949 esac
7950 fi
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7952 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7953 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7954 CFLAGS="$xorg_testset_save_CFLAGS"
7955 fi
7956
7957 found="no"
7958
7959 if test $found = "no" ; then
7960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7962 fi
7963
7964 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7966 fi
7967
7968 CFLAGS="$CFLAGS -Werror=missing-braces"
7969
7970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7971 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7972 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7973 if eval test \${$cacheid+y}
7974 then :
7975 printf %s "(cached) " >&6
7976 else case e in #(
7977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7979 int i;
7980 int
7981 main (void)
7982 {
7983
7984 ;
7985 return 0;
7986 }
7987 _ACEOF
7988 if ac_fn_c_try_link "$LINENO"
7989 then :
7990 eval $cacheid=yes
7991 else case e in #(
7992 e) eval $cacheid=no ;;
7993 esac
7994 fi
7995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7996 conftest$ac_exeext conftest.$ac_ext ;;
7997 esac
7998 fi
7999
8000
8001 CFLAGS="$xorg_testset_save_CFLAGS"
8002
8003 eval supported=\$$cacheid
8004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8005 printf "%s\n" "$supported" >&6; }
8006 if test "$supported" = "yes" ; then
8007 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8008 found="yes"
8009 fi
8010 fi
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026 xorg_testset_save_CFLAGS="$CFLAGS"
8027
8028 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8029 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8031 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8032 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8033 then :
8034 printf %s "(cached) " >&6
8035 else case e in #(
8036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8038 int i;
8039 _ACEOF
8040 if ac_fn_c_try_compile "$LINENO"
8041 then :
8042 xorg_cv_cc_flag_unknown_warning_option=yes
8043 else case e in #(
8044 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8045 esac
8046 fi
8047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8048 esac
8049 fi
8050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8051 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8052 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8053 CFLAGS="$xorg_testset_save_CFLAGS"
8054 fi
8055
8056 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8057 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8058 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8059 fi
8060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8062 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8063 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8064 then :
8065 printf %s "(cached) " >&6
8066 else case e in #(
8067 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8068 /* end confdefs.h. */
8069 int i;
8070 _ACEOF
8071 if ac_fn_c_try_compile "$LINENO"
8072 then :
8073 xorg_cv_cc_flag_unused_command_line_argument=yes
8074 else case e in #(
8075 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8076 esac
8077 fi
8078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8079 esac
8080 fi
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8082 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8084 CFLAGS="$xorg_testset_save_CFLAGS"
8085 fi
8086
8087 found="no"
8088
8089 if test $found = "no" ; then
8090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8092 fi
8093
8094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8096 fi
8097
8098 CFLAGS="$CFLAGS -Werror=sequence-point"
8099
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8101 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8102 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8103 if eval test \${$cacheid+y}
8104 then :
8105 printf %s "(cached) " >&6
8106 else case e in #(
8107 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8109 int i;
8110 int
8111 main (void)
8112 {
8113
8114 ;
8115 return 0;
8116 }
8117 _ACEOF
8118 if ac_fn_c_try_link "$LINENO"
8119 then :
8120 eval $cacheid=yes
8121 else case e in #(
8122 e) eval $cacheid=no ;;
8123 esac
8124 fi
8125 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8126 conftest$ac_exeext conftest.$ac_ext ;;
8127 esac
8128 fi
8129
8130
8131 CFLAGS="$xorg_testset_save_CFLAGS"
8132
8133 eval supported=\$$cacheid
8134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8135 printf "%s\n" "$supported" >&6; }
8136 if test "$supported" = "yes" ; then
8137 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8138 found="yes"
8139 fi
8140 fi
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156 xorg_testset_save_CFLAGS="$CFLAGS"
8157
8158 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8161 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8162 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8163 then :
8164 printf %s "(cached) " >&6
8165 else case e in #(
8166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8167 /* end confdefs.h. */
8168 int i;
8169 _ACEOF
8170 if ac_fn_c_try_compile "$LINENO"
8171 then :
8172 xorg_cv_cc_flag_unknown_warning_option=yes
8173 else case e in #(
8174 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8175 esac
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8178 esac
8179 fi
8180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8181 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8183 CFLAGS="$xorg_testset_save_CFLAGS"
8184 fi
8185
8186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8189 fi
8190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8192 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8193 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8194 then :
8195 printf %s "(cached) " >&6
8196 else case e in #(
8197 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8198 /* end confdefs.h. */
8199 int i;
8200 _ACEOF
8201 if ac_fn_c_try_compile "$LINENO"
8202 then :
8203 xorg_cv_cc_flag_unused_command_line_argument=yes
8204 else case e in #(
8205 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8206 esac
8207 fi
8208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8209 esac
8210 fi
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8212 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8214 CFLAGS="$xorg_testset_save_CFLAGS"
8215 fi
8216
8217 found="no"
8218
8219 if test $found = "no" ; then
8220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8222 fi
8223
8224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8226 fi
8227
8228 CFLAGS="$CFLAGS -Werror=return-type"
8229
8230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8231 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8232 cacheid=xorg_cv_cc_flag__Werror_return_type
8233 if eval test \${$cacheid+y}
8234 then :
8235 printf %s "(cached) " >&6
8236 else case e in #(
8237 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238 /* end confdefs.h. */
8239 int i;
8240 int
8241 main (void)
8242 {
8243
8244 ;
8245 return 0;
8246 }
8247 _ACEOF
8248 if ac_fn_c_try_link "$LINENO"
8249 then :
8250 eval $cacheid=yes
8251 else case e in #(
8252 e) eval $cacheid=no ;;
8253 esac
8254 fi
8255 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8256 conftest$ac_exeext conftest.$ac_ext ;;
8257 esac
8258 fi
8259
8260
8261 CFLAGS="$xorg_testset_save_CFLAGS"
8262
8263 eval supported=\$$cacheid
8264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8265 printf "%s\n" "$supported" >&6; }
8266 if test "$supported" = "yes" ; then
8267 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8268 found="yes"
8269 fi
8270 fi
8271
8272 if test $found = "no" ; then
8273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8275 fi
8276
8277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8279 fi
8280
8281 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8282
8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8284 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8285 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8286 if eval test \${$cacheid+y}
8287 then :
8288 printf %s "(cached) " >&6
8289 else case e in #(
8290 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291 /* end confdefs.h. */
8292 int i;
8293 int
8294 main (void)
8295 {
8296
8297 ;
8298 return 0;
8299 }
8300 _ACEOF
8301 if ac_fn_c_try_link "$LINENO"
8302 then :
8303 eval $cacheid=yes
8304 else case e in #(
8305 e) eval $cacheid=no ;;
8306 esac
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8309 conftest$ac_exeext conftest.$ac_ext ;;
8310 esac
8311 fi
8312
8313
8314 CFLAGS="$xorg_testset_save_CFLAGS"
8315
8316 eval supported=\$$cacheid
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8318 printf "%s\n" "$supported" >&6; }
8319 if test "$supported" = "yes" ; then
8320 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8321 found="yes"
8322 fi
8323 fi
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339 xorg_testset_save_CFLAGS="$CFLAGS"
8340
8341 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8344 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8345 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8346 then :
8347 printf %s "(cached) " >&6
8348 else case e in #(
8349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8351 int i;
8352 _ACEOF
8353 if ac_fn_c_try_compile "$LINENO"
8354 then :
8355 xorg_cv_cc_flag_unknown_warning_option=yes
8356 else case e in #(
8357 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8358 esac
8359 fi
8360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8361 esac
8362 fi
8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8364 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8365 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8366 CFLAGS="$xorg_testset_save_CFLAGS"
8367 fi
8368
8369 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8372 fi
8373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8375 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8376 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8377 then :
8378 printf %s "(cached) " >&6
8379 else case e in #(
8380 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8382 int i;
8383 _ACEOF
8384 if ac_fn_c_try_compile "$LINENO"
8385 then :
8386 xorg_cv_cc_flag_unused_command_line_argument=yes
8387 else case e in #(
8388 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8389 esac
8390 fi
8391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8392 esac
8393 fi
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8395 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8396 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8397 CFLAGS="$xorg_testset_save_CFLAGS"
8398 fi
8399
8400 found="no"
8401
8402 if test $found = "no" ; then
8403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8405 fi
8406
8407 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8409 fi
8410
8411 CFLAGS="$CFLAGS -Werror=trigraphs"
8412
8413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8414 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8415 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8416 if eval test \${$cacheid+y}
8417 then :
8418 printf %s "(cached) " >&6
8419 else case e in #(
8420 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 int i;
8423 int
8424 main (void)
8425 {
8426
8427 ;
8428 return 0;
8429 }
8430 _ACEOF
8431 if ac_fn_c_try_link "$LINENO"
8432 then :
8433 eval $cacheid=yes
8434 else case e in #(
8435 e) eval $cacheid=no ;;
8436 esac
8437 fi
8438 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8439 conftest$ac_exeext conftest.$ac_ext ;;
8440 esac
8441 fi
8442
8443
8444 CFLAGS="$xorg_testset_save_CFLAGS"
8445
8446 eval supported=\$$cacheid
8447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8448 printf "%s\n" "$supported" >&6; }
8449 if test "$supported" = "yes" ; then
8450 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8451 found="yes"
8452 fi
8453 fi
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469 xorg_testset_save_CFLAGS="$CFLAGS"
8470
8471 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8474 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8475 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8476 then :
8477 printf %s "(cached) " >&6
8478 else case e in #(
8479 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h. */
8481 int i;
8482 _ACEOF
8483 if ac_fn_c_try_compile "$LINENO"
8484 then :
8485 xorg_cv_cc_flag_unknown_warning_option=yes
8486 else case e in #(
8487 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8488 esac
8489 fi
8490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8491 esac
8492 fi
8493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8494 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8495 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8496 CFLAGS="$xorg_testset_save_CFLAGS"
8497 fi
8498
8499 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8502 fi
8503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8505 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8506 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8507 then :
8508 printf %s "(cached) " >&6
8509 else case e in #(
8510 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8511 /* end confdefs.h. */
8512 int i;
8513 _ACEOF
8514 if ac_fn_c_try_compile "$LINENO"
8515 then :
8516 xorg_cv_cc_flag_unused_command_line_argument=yes
8517 else case e in #(
8518 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8519 esac
8520 fi
8521 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8522 esac
8523 fi
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8525 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8527 CFLAGS="$xorg_testset_save_CFLAGS"
8528 fi
8529
8530 found="no"
8531
8532 if test $found = "no" ; then
8533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8535 fi
8536
8537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8539 fi
8540
8541 CFLAGS="$CFLAGS -Werror=array-bounds"
8542
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8544 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8545 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8546 if eval test \${$cacheid+y}
8547 then :
8548 printf %s "(cached) " >&6
8549 else case e in #(
8550 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8551 /* end confdefs.h. */
8552 int i;
8553 int
8554 main (void)
8555 {
8556
8557 ;
8558 return 0;
8559 }
8560 _ACEOF
8561 if ac_fn_c_try_link "$LINENO"
8562 then :
8563 eval $cacheid=yes
8564 else case e in #(
8565 e) eval $cacheid=no ;;
8566 esac
8567 fi
8568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8569 conftest$ac_exeext conftest.$ac_ext ;;
8570 esac
8571 fi
8572
8573
8574 CFLAGS="$xorg_testset_save_CFLAGS"
8575
8576 eval supported=\$$cacheid
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8578 printf "%s\n" "$supported" >&6; }
8579 if test "$supported" = "yes" ; then
8580 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8581 found="yes"
8582 fi
8583 fi
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599 xorg_testset_save_CFLAGS="$CFLAGS"
8600
8601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8604 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8605 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8606 then :
8607 printf %s "(cached) " >&6
8608 else case e in #(
8609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8610 /* end confdefs.h. */
8611 int i;
8612 _ACEOF
8613 if ac_fn_c_try_compile "$LINENO"
8614 then :
8615 xorg_cv_cc_flag_unknown_warning_option=yes
8616 else case e in #(
8617 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8618 esac
8619 fi
8620 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8621 esac
8622 fi
8623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8624 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8625 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8626 CFLAGS="$xorg_testset_save_CFLAGS"
8627 fi
8628
8629 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8632 fi
8633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8635 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8636 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8637 then :
8638 printf %s "(cached) " >&6
8639 else case e in #(
8640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 int i;
8643 _ACEOF
8644 if ac_fn_c_try_compile "$LINENO"
8645 then :
8646 xorg_cv_cc_flag_unused_command_line_argument=yes
8647 else case e in #(
8648 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8649 esac
8650 fi
8651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8652 esac
8653 fi
8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8655 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8657 CFLAGS="$xorg_testset_save_CFLAGS"
8658 fi
8659
8660 found="no"
8661
8662 if test $found = "no" ; then
8663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8665 fi
8666
8667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8669 fi
8670
8671 CFLAGS="$CFLAGS -Werror=write-strings"
8672
8673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8674 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8675 cacheid=xorg_cv_cc_flag__Werror_write_strings
8676 if eval test \${$cacheid+y}
8677 then :
8678 printf %s "(cached) " >&6
8679 else case e in #(
8680 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8681 /* end confdefs.h. */
8682 int i;
8683 int
8684 main (void)
8685 {
8686
8687 ;
8688 return 0;
8689 }
8690 _ACEOF
8691 if ac_fn_c_try_link "$LINENO"
8692 then :
8693 eval $cacheid=yes
8694 else case e in #(
8695 e) eval $cacheid=no ;;
8696 esac
8697 fi
8698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8699 conftest$ac_exeext conftest.$ac_ext ;;
8700 esac
8701 fi
8702
8703
8704 CFLAGS="$xorg_testset_save_CFLAGS"
8705
8706 eval supported=\$$cacheid
8707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8708 printf "%s\n" "$supported" >&6; }
8709 if test "$supported" = "yes" ; then
8710 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8711 found="yes"
8712 fi
8713 fi
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729 xorg_testset_save_CFLAGS="$CFLAGS"
8730
8731 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8734 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8735 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8736 then :
8737 printf %s "(cached) " >&6
8738 else case e in #(
8739 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8740 /* end confdefs.h. */
8741 int i;
8742 _ACEOF
8743 if ac_fn_c_try_compile "$LINENO"
8744 then :
8745 xorg_cv_cc_flag_unknown_warning_option=yes
8746 else case e in #(
8747 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8748 esac
8749 fi
8750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8751 esac
8752 fi
8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8754 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8755 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8756 CFLAGS="$xorg_testset_save_CFLAGS"
8757 fi
8758
8759 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8762 fi
8763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8765 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8766 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8767 then :
8768 printf %s "(cached) " >&6
8769 else case e in #(
8770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8771 /* end confdefs.h. */
8772 int i;
8773 _ACEOF
8774 if ac_fn_c_try_compile "$LINENO"
8775 then :
8776 xorg_cv_cc_flag_unused_command_line_argument=yes
8777 else case e in #(
8778 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8779 esac
8780 fi
8781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8782 esac
8783 fi
8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8785 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8786 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8787 CFLAGS="$xorg_testset_save_CFLAGS"
8788 fi
8789
8790 found="no"
8791
8792 if test $found = "no" ; then
8793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8795 fi
8796
8797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8799 fi
8800
8801 CFLAGS="$CFLAGS -Werror=address"
8802
8803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8804 printf %s "checking if $CC supports -Werror=address... " >&6; }
8805 cacheid=xorg_cv_cc_flag__Werror_address
8806 if eval test \${$cacheid+y}
8807 then :
8808 printf %s "(cached) " >&6
8809 else case e in #(
8810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8812 int i;
8813 int
8814 main (void)
8815 {
8816
8817 ;
8818 return 0;
8819 }
8820 _ACEOF
8821 if ac_fn_c_try_link "$LINENO"
8822 then :
8823 eval $cacheid=yes
8824 else case e in #(
8825 e) eval $cacheid=no ;;
8826 esac
8827 fi
8828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8829 conftest$ac_exeext conftest.$ac_ext ;;
8830 esac
8831 fi
8832
8833
8834 CFLAGS="$xorg_testset_save_CFLAGS"
8835
8836 eval supported=\$$cacheid
8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8838 printf "%s\n" "$supported" >&6; }
8839 if test "$supported" = "yes" ; then
8840 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8841 found="yes"
8842 fi
8843 fi
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859 xorg_testset_save_CFLAGS="$CFLAGS"
8860
8861 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8864 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8865 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8866 then :
8867 printf %s "(cached) " >&6
8868 else case e in #(
8869 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8871 int i;
8872 _ACEOF
8873 if ac_fn_c_try_compile "$LINENO"
8874 then :
8875 xorg_cv_cc_flag_unknown_warning_option=yes
8876 else case e in #(
8877 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8878 esac
8879 fi
8880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8881 esac
8882 fi
8883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8884 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8886 CFLAGS="$xorg_testset_save_CFLAGS"
8887 fi
8888
8889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8892 fi
8893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8895 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8896 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8897 then :
8898 printf %s "(cached) " >&6
8899 else case e in #(
8900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8901 /* end confdefs.h. */
8902 int i;
8903 _ACEOF
8904 if ac_fn_c_try_compile "$LINENO"
8905 then :
8906 xorg_cv_cc_flag_unused_command_line_argument=yes
8907 else case e in #(
8908 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8909 esac
8910 fi
8911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8912 esac
8913 fi
8914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8915 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8916 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8917 CFLAGS="$xorg_testset_save_CFLAGS"
8918 fi
8919
8920 found="no"
8921
8922 if test $found = "no" ; then
8923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8925 fi
8926
8927 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8929 fi
8930
8931 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8932
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8934 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8935 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8936 if eval test \${$cacheid+y}
8937 then :
8938 printf %s "(cached) " >&6
8939 else case e in #(
8940 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8942 int i;
8943 int
8944 main (void)
8945 {
8946
8947 ;
8948 return 0;
8949 }
8950 _ACEOF
8951 if ac_fn_c_try_link "$LINENO"
8952 then :
8953 eval $cacheid=yes
8954 else case e in #(
8955 e) eval $cacheid=no ;;
8956 esac
8957 fi
8958 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8959 conftest$ac_exeext conftest.$ac_ext ;;
8960 esac
8961 fi
8962
8963
8964 CFLAGS="$xorg_testset_save_CFLAGS"
8965
8966 eval supported=\$$cacheid
8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8968 printf "%s\n" "$supported" >&6; }
8969 if test "$supported" = "yes" ; then
8970 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8971 found="yes"
8972 fi
8973 fi
8974
8975 if test $found = "no" ; then
8976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8978 fi
8979
8980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8982 fi
8983
8984 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8985
8986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8987 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8988 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8989 if eval test \${$cacheid+y}
8990 then :
8991 printf %s "(cached) " >&6
8992 else case e in #(
8993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995 int i;
8996 int
8997 main (void)
8998 {
8999
9000 ;
9001 return 0;
9002 }
9003 _ACEOF
9004 if ac_fn_c_try_link "$LINENO"
9005 then :
9006 eval $cacheid=yes
9007 else case e in #(
9008 e) eval $cacheid=no ;;
9009 esac
9010 fi
9011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9012 conftest$ac_exeext conftest.$ac_ext ;;
9013 esac
9014 fi
9015
9016
9017 CFLAGS="$xorg_testset_save_CFLAGS"
9018
9019 eval supported=\$$cacheid
9020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9021 printf "%s\n" "$supported" >&6; }
9022 if test "$supported" = "yes" ; then
9023 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9024 found="yes"
9025 fi
9026 fi
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042 xorg_testset_save_CFLAGS="$CFLAGS"
9043
9044 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9047 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9048 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9049 then :
9050 printf %s "(cached) " >&6
9051 else case e in #(
9052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9054 int i;
9055 _ACEOF
9056 if ac_fn_c_try_compile "$LINENO"
9057 then :
9058 xorg_cv_cc_flag_unknown_warning_option=yes
9059 else case e in #(
9060 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9061 esac
9062 fi
9063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9064 esac
9065 fi
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9067 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9069 CFLAGS="$xorg_testset_save_CFLAGS"
9070 fi
9071
9072 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075 fi
9076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9078 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9079 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9080 then :
9081 printf %s "(cached) " >&6
9082 else case e in #(
9083 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9085 int i;
9086 _ACEOF
9087 if ac_fn_c_try_compile "$LINENO"
9088 then :
9089 xorg_cv_cc_flag_unused_command_line_argument=yes
9090 else case e in #(
9091 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9092 esac
9093 fi
9094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9095 esac
9096 fi
9097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9098 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9099 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9100 CFLAGS="$xorg_testset_save_CFLAGS"
9101 fi
9102
9103 found="no"
9104
9105 if test $found = "no" ; then
9106 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9107 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9108 fi
9109
9110 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9112 fi
9113
9114 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9115
9116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9117 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9118 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9119 if eval test \${$cacheid+y}
9120 then :
9121 printf %s "(cached) " >&6
9122 else case e in #(
9123 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9125 int i;
9126 int
9127 main (void)
9128 {
9129
9130 ;
9131 return 0;
9132 }
9133 _ACEOF
9134 if ac_fn_c_try_link "$LINENO"
9135 then :
9136 eval $cacheid=yes
9137 else case e in #(
9138 e) eval $cacheid=no ;;
9139 esac
9140 fi
9141 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9142 conftest$ac_exeext conftest.$ac_ext ;;
9143 esac
9144 fi
9145
9146
9147 CFLAGS="$xorg_testset_save_CFLAGS"
9148
9149 eval supported=\$$cacheid
9150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9151 printf "%s\n" "$supported" >&6; }
9152 if test "$supported" = "yes" ; then
9153 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9154 found="yes"
9155 fi
9156 fi
9157
9158 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9159 else
9160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5
9161 printf "%s\n" "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;}
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175 xorg_testset_save_CFLAGS="$CFLAGS"
9176
9177 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9180 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9181 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9182 then :
9183 printf %s "(cached) " >&6
9184 else case e in #(
9185 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9186 /* end confdefs.h. */
9187 int i;
9188 _ACEOF
9189 if ac_fn_c_try_compile "$LINENO"
9190 then :
9191 xorg_cv_cc_flag_unknown_warning_option=yes
9192 else case e in #(
9193 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9194 esac
9195 fi
9196 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9197 esac
9198 fi
9199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9200 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9202 CFLAGS="$xorg_testset_save_CFLAGS"
9203 fi
9204
9205 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9208 fi
9209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9211 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9212 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9213 then :
9214 printf %s "(cached) " >&6
9215 else case e in #(
9216 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217 /* end confdefs.h. */
9218 int i;
9219 _ACEOF
9220 if ac_fn_c_try_compile "$LINENO"
9221 then :
9222 xorg_cv_cc_flag_unused_command_line_argument=yes
9223 else case e in #(
9224 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9225 esac
9226 fi
9227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9228 esac
9229 fi
9230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9231 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9233 CFLAGS="$xorg_testset_save_CFLAGS"
9234 fi
9235
9236 found="no"
9237
9238 if test $found = "no" ; then
9239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9241 fi
9242
9243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9245 fi
9246
9247 CFLAGS="$CFLAGS -Wimplicit"
9248
9249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9250 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9251 cacheid=xorg_cv_cc_flag__Wimplicit
9252 if eval test \${$cacheid+y}
9253 then :
9254 printf %s "(cached) " >&6
9255 else case e in #(
9256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* end confdefs.h. */
9258 int i;
9259 int
9260 main (void)
9261 {
9262
9263 ;
9264 return 0;
9265 }
9266 _ACEOF
9267 if ac_fn_c_try_link "$LINENO"
9268 then :
9269 eval $cacheid=yes
9270 else case e in #(
9271 e) eval $cacheid=no ;;
9272 esac
9273 fi
9274 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9275 conftest$ac_exeext conftest.$ac_ext ;;
9276 esac
9277 fi
9278
9279
9280 CFLAGS="$xorg_testset_save_CFLAGS"
9281
9282 eval supported=\$$cacheid
9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9284 printf "%s\n" "$supported" >&6; }
9285 if test "$supported" = "yes" ; then
9286 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9287 found="yes"
9288 fi
9289 fi
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305 xorg_testset_save_CFLAGS="$CFLAGS"
9306
9307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9310 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9311 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9312 then :
9313 printf %s "(cached) " >&6
9314 else case e in #(
9315 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9317 int i;
9318 _ACEOF
9319 if ac_fn_c_try_compile "$LINENO"
9320 then :
9321 xorg_cv_cc_flag_unknown_warning_option=yes
9322 else case e in #(
9323 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9324 esac
9325 fi
9326 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9327 esac
9328 fi
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9330 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9331 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9332 CFLAGS="$xorg_testset_save_CFLAGS"
9333 fi
9334
9335 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9338 fi
9339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9341 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9342 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9343 then :
9344 printf %s "(cached) " >&6
9345 else case e in #(
9346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347 /* end confdefs.h. */
9348 int i;
9349 _ACEOF
9350 if ac_fn_c_try_compile "$LINENO"
9351 then :
9352 xorg_cv_cc_flag_unused_command_line_argument=yes
9353 else case e in #(
9354 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9355 esac
9356 fi
9357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9358 esac
9359 fi
9360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9361 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9363 CFLAGS="$xorg_testset_save_CFLAGS"
9364 fi
9365
9366 found="no"
9367
9368 if test $found = "no" ; then
9369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9371 fi
9372
9373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9375 fi
9376
9377 CFLAGS="$CFLAGS -Wnonnull"
9378
9379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9380 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9381 cacheid=xorg_cv_cc_flag__Wnonnull
9382 if eval test \${$cacheid+y}
9383 then :
9384 printf %s "(cached) " >&6
9385 else case e in #(
9386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 int i;
9389 int
9390 main (void)
9391 {
9392
9393 ;
9394 return 0;
9395 }
9396 _ACEOF
9397 if ac_fn_c_try_link "$LINENO"
9398 then :
9399 eval $cacheid=yes
9400 else case e in #(
9401 e) eval $cacheid=no ;;
9402 esac
9403 fi
9404 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9405 conftest$ac_exeext conftest.$ac_ext ;;
9406 esac
9407 fi
9408
9409
9410 CFLAGS="$xorg_testset_save_CFLAGS"
9411
9412 eval supported=\$$cacheid
9413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9414 printf "%s\n" "$supported" >&6; }
9415 if test "$supported" = "yes" ; then
9416 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9417 found="yes"
9418 fi
9419 fi
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435 xorg_testset_save_CFLAGS="$CFLAGS"
9436
9437 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9440 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9441 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9442 then :
9443 printf %s "(cached) " >&6
9444 else case e in #(
9445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446 /* end confdefs.h. */
9447 int i;
9448 _ACEOF
9449 if ac_fn_c_try_compile "$LINENO"
9450 then :
9451 xorg_cv_cc_flag_unknown_warning_option=yes
9452 else case e in #(
9453 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9454 esac
9455 fi
9456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9457 esac
9458 fi
9459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9460 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9462 CFLAGS="$xorg_testset_save_CFLAGS"
9463 fi
9464
9465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9468 fi
9469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9471 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9472 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9473 then :
9474 printf %s "(cached) " >&6
9475 else case e in #(
9476 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h. */
9478 int i;
9479 _ACEOF
9480 if ac_fn_c_try_compile "$LINENO"
9481 then :
9482 xorg_cv_cc_flag_unused_command_line_argument=yes
9483 else case e in #(
9484 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9485 esac
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9488 esac
9489 fi
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9491 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9492 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9493 CFLAGS="$xorg_testset_save_CFLAGS"
9494 fi
9495
9496 found="no"
9497
9498 if test $found = "no" ; then
9499 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9500 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9501 fi
9502
9503 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9505 fi
9506
9507 CFLAGS="$CFLAGS -Winit-self"
9508
9509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9510 printf %s "checking if $CC supports -Winit-self... " >&6; }
9511 cacheid=xorg_cv_cc_flag__Winit_self
9512 if eval test \${$cacheid+y}
9513 then :
9514 printf %s "(cached) " >&6
9515 else case e in #(
9516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9517 /* end confdefs.h. */
9518 int i;
9519 int
9520 main (void)
9521 {
9522
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 if ac_fn_c_try_link "$LINENO"
9528 then :
9529 eval $cacheid=yes
9530 else case e in #(
9531 e) eval $cacheid=no ;;
9532 esac
9533 fi
9534 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9535 conftest$ac_exeext conftest.$ac_ext ;;
9536 esac
9537 fi
9538
9539
9540 CFLAGS="$xorg_testset_save_CFLAGS"
9541
9542 eval supported=\$$cacheid
9543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9544 printf "%s\n" "$supported" >&6; }
9545 if test "$supported" = "yes" ; then
9546 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9547 found="yes"
9548 fi
9549 fi
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565 xorg_testset_save_CFLAGS="$CFLAGS"
9566
9567 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9570 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9571 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9572 then :
9573 printf %s "(cached) " >&6
9574 else case e in #(
9575 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576 /* end confdefs.h. */
9577 int i;
9578 _ACEOF
9579 if ac_fn_c_try_compile "$LINENO"
9580 then :
9581 xorg_cv_cc_flag_unknown_warning_option=yes
9582 else case e in #(
9583 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9584 esac
9585 fi
9586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9587 esac
9588 fi
9589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9590 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9591 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9592 CFLAGS="$xorg_testset_save_CFLAGS"
9593 fi
9594
9595 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9598 fi
9599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9601 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9602 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9603 then :
9604 printf %s "(cached) " >&6
9605 else case e in #(
9606 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h. */
9608 int i;
9609 _ACEOF
9610 if ac_fn_c_try_compile "$LINENO"
9611 then :
9612 xorg_cv_cc_flag_unused_command_line_argument=yes
9613 else case e in #(
9614 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9615 esac
9616 fi
9617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9618 esac
9619 fi
9620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9621 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9623 CFLAGS="$xorg_testset_save_CFLAGS"
9624 fi
9625
9626 found="no"
9627
9628 if test $found = "no" ; then
9629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9631 fi
9632
9633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9635 fi
9636
9637 CFLAGS="$CFLAGS -Wmain"
9638
9639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9640 printf %s "checking if $CC supports -Wmain... " >&6; }
9641 cacheid=xorg_cv_cc_flag__Wmain
9642 if eval test \${$cacheid+y}
9643 then :
9644 printf %s "(cached) " >&6
9645 else case e in #(
9646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h. */
9648 int i;
9649 int
9650 main (void)
9651 {
9652
9653 ;
9654 return 0;
9655 }
9656 _ACEOF
9657 if ac_fn_c_try_link "$LINENO"
9658 then :
9659 eval $cacheid=yes
9660 else case e in #(
9661 e) eval $cacheid=no ;;
9662 esac
9663 fi
9664 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9665 conftest$ac_exeext conftest.$ac_ext ;;
9666 esac
9667 fi
9668
9669
9670 CFLAGS="$xorg_testset_save_CFLAGS"
9671
9672 eval supported=\$$cacheid
9673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9674 printf "%s\n" "$supported" >&6; }
9675 if test "$supported" = "yes" ; then
9676 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9677 found="yes"
9678 fi
9679 fi
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695 xorg_testset_save_CFLAGS="$CFLAGS"
9696
9697 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9700 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9701 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9702 then :
9703 printf %s "(cached) " >&6
9704 else case e in #(
9705 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9706 /* end confdefs.h. */
9707 int i;
9708 _ACEOF
9709 if ac_fn_c_try_compile "$LINENO"
9710 then :
9711 xorg_cv_cc_flag_unknown_warning_option=yes
9712 else case e in #(
9713 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9714 esac
9715 fi
9716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9717 esac
9718 fi
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9720 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9722 CFLAGS="$xorg_testset_save_CFLAGS"
9723 fi
9724
9725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9728 fi
9729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9731 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9732 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9733 then :
9734 printf %s "(cached) " >&6
9735 else case e in #(
9736 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9737 /* end confdefs.h. */
9738 int i;
9739 _ACEOF
9740 if ac_fn_c_try_compile "$LINENO"
9741 then :
9742 xorg_cv_cc_flag_unused_command_line_argument=yes
9743 else case e in #(
9744 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9745 esac
9746 fi
9747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9748 esac
9749 fi
9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9751 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9753 CFLAGS="$xorg_testset_save_CFLAGS"
9754 fi
9755
9756 found="no"
9757
9758 if test $found = "no" ; then
9759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9761 fi
9762
9763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9765 fi
9766
9767 CFLAGS="$CFLAGS -Wmissing-braces"
9768
9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9770 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9771 cacheid=xorg_cv_cc_flag__Wmissing_braces
9772 if eval test \${$cacheid+y}
9773 then :
9774 printf %s "(cached) " >&6
9775 else case e in #(
9776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9778 int i;
9779 int
9780 main (void)
9781 {
9782
9783 ;
9784 return 0;
9785 }
9786 _ACEOF
9787 if ac_fn_c_try_link "$LINENO"
9788 then :
9789 eval $cacheid=yes
9790 else case e in #(
9791 e) eval $cacheid=no ;;
9792 esac
9793 fi
9794 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9795 conftest$ac_exeext conftest.$ac_ext ;;
9796 esac
9797 fi
9798
9799
9800 CFLAGS="$xorg_testset_save_CFLAGS"
9801
9802 eval supported=\$$cacheid
9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9804 printf "%s\n" "$supported" >&6; }
9805 if test "$supported" = "yes" ; then
9806 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9807 found="yes"
9808 fi
9809 fi
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825 xorg_testset_save_CFLAGS="$CFLAGS"
9826
9827 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9830 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9831 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9832 then :
9833 printf %s "(cached) " >&6
9834 else case e in #(
9835 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h. */
9837 int i;
9838 _ACEOF
9839 if ac_fn_c_try_compile "$LINENO"
9840 then :
9841 xorg_cv_cc_flag_unknown_warning_option=yes
9842 else case e in #(
9843 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9844 esac
9845 fi
9846 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9847 esac
9848 fi
9849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9850 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9852 CFLAGS="$xorg_testset_save_CFLAGS"
9853 fi
9854
9855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9858 fi
9859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9861 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9862 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9863 then :
9864 printf %s "(cached) " >&6
9865 else case e in #(
9866 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9867 /* end confdefs.h. */
9868 int i;
9869 _ACEOF
9870 if ac_fn_c_try_compile "$LINENO"
9871 then :
9872 xorg_cv_cc_flag_unused_command_line_argument=yes
9873 else case e in #(
9874 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9875 esac
9876 fi
9877 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9878 esac
9879 fi
9880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9881 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9882 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9883 CFLAGS="$xorg_testset_save_CFLAGS"
9884 fi
9885
9886 found="no"
9887
9888 if test $found = "no" ; then
9889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9891 fi
9892
9893 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9895 fi
9896
9897 CFLAGS="$CFLAGS -Wsequence-point"
9898
9899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9900 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9901 cacheid=xorg_cv_cc_flag__Wsequence_point
9902 if eval test \${$cacheid+y}
9903 then :
9904 printf %s "(cached) " >&6
9905 else case e in #(
9906 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9907 /* end confdefs.h. */
9908 int i;
9909 int
9910 main (void)
9911 {
9912
9913 ;
9914 return 0;
9915 }
9916 _ACEOF
9917 if ac_fn_c_try_link "$LINENO"
9918 then :
9919 eval $cacheid=yes
9920 else case e in #(
9921 e) eval $cacheid=no ;;
9922 esac
9923 fi
9924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9925 conftest$ac_exeext conftest.$ac_ext ;;
9926 esac
9927 fi
9928
9929
9930 CFLAGS="$xorg_testset_save_CFLAGS"
9931
9932 eval supported=\$$cacheid
9933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9934 printf "%s\n" "$supported" >&6; }
9935 if test "$supported" = "yes" ; then
9936 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9937 found="yes"
9938 fi
9939 fi
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955 xorg_testset_save_CFLAGS="$CFLAGS"
9956
9957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9960 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9961 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9962 then :
9963 printf %s "(cached) " >&6
9964 else case e in #(
9965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9966 /* end confdefs.h. */
9967 int i;
9968 _ACEOF
9969 if ac_fn_c_try_compile "$LINENO"
9970 then :
9971 xorg_cv_cc_flag_unknown_warning_option=yes
9972 else case e in #(
9973 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9974 esac
9975 fi
9976 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9977 esac
9978 fi
9979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9980 printf "%s\n" "$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 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9991 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9992 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9993 then :
9994 printf %s "(cached) " >&6
9995 else case e in #(
9996 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h. */
9998 int i;
9999 _ACEOF
10000 if ac_fn_c_try_compile "$LINENO"
10001 then :
10002 xorg_cv_cc_flag_unused_command_line_argument=yes
10003 else case e in #(
10004 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10005 esac
10006 fi
10007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10008 esac
10009 fi
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10011 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10013 CFLAGS="$xorg_testset_save_CFLAGS"
10014 fi
10015
10016 found="no"
10017
10018 if test $found = "no" ; then
10019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10021 fi
10022
10023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10025 fi
10026
10027 CFLAGS="$CFLAGS -Wreturn-type"
10028
10029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10030 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10031 cacheid=xorg_cv_cc_flag__Wreturn_type
10032 if eval test \${$cacheid+y}
10033 then :
10034 printf %s "(cached) " >&6
10035 else case e in #(
10036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10037 /* end confdefs.h. */
10038 int i;
10039 int
10040 main (void)
10041 {
10042
10043 ;
10044 return 0;
10045 }
10046 _ACEOF
10047 if ac_fn_c_try_link "$LINENO"
10048 then :
10049 eval $cacheid=yes
10050 else case e in #(
10051 e) eval $cacheid=no ;;
10052 esac
10053 fi
10054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10055 conftest$ac_exeext conftest.$ac_ext ;;
10056 esac
10057 fi
10058
10059
10060 CFLAGS="$xorg_testset_save_CFLAGS"
10061
10062 eval supported=\$$cacheid
10063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10064 printf "%s\n" "$supported" >&6; }
10065 if test "$supported" = "yes" ; then
10066 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10067 found="yes"
10068 fi
10069 fi
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085 xorg_testset_save_CFLAGS="$CFLAGS"
10086
10087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10090 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10091 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10092 then :
10093 printf %s "(cached) " >&6
10094 else case e in #(
10095 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10097 int i;
10098 _ACEOF
10099 if ac_fn_c_try_compile "$LINENO"
10100 then :
10101 xorg_cv_cc_flag_unknown_warning_option=yes
10102 else case e in #(
10103 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10104 esac
10105 fi
10106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10107 esac
10108 fi
10109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10110 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10111 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10112 CFLAGS="$xorg_testset_save_CFLAGS"
10113 fi
10114
10115 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10118 fi
10119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10121 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10122 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10123 then :
10124 printf %s "(cached) " >&6
10125 else case e in #(
10126 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128 int i;
10129 _ACEOF
10130 if ac_fn_c_try_compile "$LINENO"
10131 then :
10132 xorg_cv_cc_flag_unused_command_line_argument=yes
10133 else case e in #(
10134 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10135 esac
10136 fi
10137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10138 esac
10139 fi
10140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10141 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10143 CFLAGS="$xorg_testset_save_CFLAGS"
10144 fi
10145
10146 found="no"
10147
10148 if test $found = "no" ; then
10149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10151 fi
10152
10153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10155 fi
10156
10157 CFLAGS="$CFLAGS -Wtrigraphs"
10158
10159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10160 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10161 cacheid=xorg_cv_cc_flag__Wtrigraphs
10162 if eval test \${$cacheid+y}
10163 then :
10164 printf %s "(cached) " >&6
10165 else case e in #(
10166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10167 /* end confdefs.h. */
10168 int i;
10169 int
10170 main (void)
10171 {
10172
10173 ;
10174 return 0;
10175 }
10176 _ACEOF
10177 if ac_fn_c_try_link "$LINENO"
10178 then :
10179 eval $cacheid=yes
10180 else case e in #(
10181 e) eval $cacheid=no ;;
10182 esac
10183 fi
10184 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10185 conftest$ac_exeext conftest.$ac_ext ;;
10186 esac
10187 fi
10188
10189
10190 CFLAGS="$xorg_testset_save_CFLAGS"
10191
10192 eval supported=\$$cacheid
10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10194 printf "%s\n" "$supported" >&6; }
10195 if test "$supported" = "yes" ; then
10196 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10197 found="yes"
10198 fi
10199 fi
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215 xorg_testset_save_CFLAGS="$CFLAGS"
10216
10217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10220 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10221 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10222 then :
10223 printf %s "(cached) " >&6
10224 else case e in #(
10225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226 /* end confdefs.h. */
10227 int i;
10228 _ACEOF
10229 if ac_fn_c_try_compile "$LINENO"
10230 then :
10231 xorg_cv_cc_flag_unknown_warning_option=yes
10232 else case e in #(
10233 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10234 esac
10235 fi
10236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10237 esac
10238 fi
10239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10240 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10241 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10242 CFLAGS="$xorg_testset_save_CFLAGS"
10243 fi
10244
10245 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10248 fi
10249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10251 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10252 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10253 then :
10254 printf %s "(cached) " >&6
10255 else case e in #(
10256 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258 int i;
10259 _ACEOF
10260 if ac_fn_c_try_compile "$LINENO"
10261 then :
10262 xorg_cv_cc_flag_unused_command_line_argument=yes
10263 else case e in #(
10264 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10265 esac
10266 fi
10267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10268 esac
10269 fi
10270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10271 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10272 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10273 CFLAGS="$xorg_testset_save_CFLAGS"
10274 fi
10275
10276 found="no"
10277
10278 if test $found = "no" ; then
10279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10281 fi
10282
10283 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10284 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10285 fi
10286
10287 CFLAGS="$CFLAGS -Warray-bounds"
10288
10289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10290 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10291 cacheid=xorg_cv_cc_flag__Warray_bounds
10292 if eval test \${$cacheid+y}
10293 then :
10294 printf %s "(cached) " >&6
10295 else case e in #(
10296 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10297 /* end confdefs.h. */
10298 int i;
10299 int
10300 main (void)
10301 {
10302
10303 ;
10304 return 0;
10305 }
10306 _ACEOF
10307 if ac_fn_c_try_link "$LINENO"
10308 then :
10309 eval $cacheid=yes
10310 else case e in #(
10311 e) eval $cacheid=no ;;
10312 esac
10313 fi
10314 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10315 conftest$ac_exeext conftest.$ac_ext ;;
10316 esac
10317 fi
10318
10319
10320 CFLAGS="$xorg_testset_save_CFLAGS"
10321
10322 eval supported=\$$cacheid
10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10324 printf "%s\n" "$supported" >&6; }
10325 if test "$supported" = "yes" ; then
10326 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10327 found="yes"
10328 fi
10329 fi
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345 xorg_testset_save_CFLAGS="$CFLAGS"
10346
10347 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10350 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10351 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10352 then :
10353 printf %s "(cached) " >&6
10354 else case e in #(
10355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10357 int i;
10358 _ACEOF
10359 if ac_fn_c_try_compile "$LINENO"
10360 then :
10361 xorg_cv_cc_flag_unknown_warning_option=yes
10362 else case e in #(
10363 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10364 esac
10365 fi
10366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10367 esac
10368 fi
10369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10370 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10371 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10372 CFLAGS="$xorg_testset_save_CFLAGS"
10373 fi
10374
10375 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10378 fi
10379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10381 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10382 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10383 then :
10384 printf %s "(cached) " >&6
10385 else case e in #(
10386 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10387 /* end confdefs.h. */
10388 int i;
10389 _ACEOF
10390 if ac_fn_c_try_compile "$LINENO"
10391 then :
10392 xorg_cv_cc_flag_unused_command_line_argument=yes
10393 else case e in #(
10394 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10395 esac
10396 fi
10397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10398 esac
10399 fi
10400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10401 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10403 CFLAGS="$xorg_testset_save_CFLAGS"
10404 fi
10405
10406 found="no"
10407
10408 if test $found = "no" ; then
10409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10411 fi
10412
10413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10415 fi
10416
10417 CFLAGS="$CFLAGS -Wwrite-strings"
10418
10419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10420 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10421 cacheid=xorg_cv_cc_flag__Wwrite_strings
10422 if eval test \${$cacheid+y}
10423 then :
10424 printf %s "(cached) " >&6
10425 else case e in #(
10426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428 int i;
10429 int
10430 main (void)
10431 {
10432
10433 ;
10434 return 0;
10435 }
10436 _ACEOF
10437 if ac_fn_c_try_link "$LINENO"
10438 then :
10439 eval $cacheid=yes
10440 else case e in #(
10441 e) eval $cacheid=no ;;
10442 esac
10443 fi
10444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10445 conftest$ac_exeext conftest.$ac_ext ;;
10446 esac
10447 fi
10448
10449
10450 CFLAGS="$xorg_testset_save_CFLAGS"
10451
10452 eval supported=\$$cacheid
10453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10454 printf "%s\n" "$supported" >&6; }
10455 if test "$supported" = "yes" ; then
10456 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10457 found="yes"
10458 fi
10459 fi
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475 xorg_testset_save_CFLAGS="$CFLAGS"
10476
10477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10480 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10481 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10482 then :
10483 printf %s "(cached) " >&6
10484 else case e in #(
10485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10487 int i;
10488 _ACEOF
10489 if ac_fn_c_try_compile "$LINENO"
10490 then :
10491 xorg_cv_cc_flag_unknown_warning_option=yes
10492 else case e in #(
10493 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10494 esac
10495 fi
10496 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10497 esac
10498 fi
10499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10500 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10502 CFLAGS="$xorg_testset_save_CFLAGS"
10503 fi
10504
10505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10508 fi
10509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10511 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10512 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10513 then :
10514 printf %s "(cached) " >&6
10515 else case e in #(
10516 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10517 /* end confdefs.h. */
10518 int i;
10519 _ACEOF
10520 if ac_fn_c_try_compile "$LINENO"
10521 then :
10522 xorg_cv_cc_flag_unused_command_line_argument=yes
10523 else case e in #(
10524 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10525 esac
10526 fi
10527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10528 esac
10529 fi
10530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10531 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10533 CFLAGS="$xorg_testset_save_CFLAGS"
10534 fi
10535
10536 found="no"
10537
10538 if test $found = "no" ; then
10539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10541 fi
10542
10543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10545 fi
10546
10547 CFLAGS="$CFLAGS -Waddress"
10548
10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10550 printf %s "checking if $CC supports -Waddress... " >&6; }
10551 cacheid=xorg_cv_cc_flag__Waddress
10552 if eval test \${$cacheid+y}
10553 then :
10554 printf %s "(cached) " >&6
10555 else case e in #(
10556 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10558 int i;
10559 int
10560 main (void)
10561 {
10562
10563 ;
10564 return 0;
10565 }
10566 _ACEOF
10567 if ac_fn_c_try_link "$LINENO"
10568 then :
10569 eval $cacheid=yes
10570 else case e in #(
10571 e) eval $cacheid=no ;;
10572 esac
10573 fi
10574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10575 conftest$ac_exeext conftest.$ac_ext ;;
10576 esac
10577 fi
10578
10579
10580 CFLAGS="$xorg_testset_save_CFLAGS"
10581
10582 eval supported=\$$cacheid
10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10584 printf "%s\n" "$supported" >&6; }
10585 if test "$supported" = "yes" ; then
10586 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10587 found="yes"
10588 fi
10589 fi
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605 xorg_testset_save_CFLAGS="$CFLAGS"
10606
10607 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10610 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10611 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10612 then :
10613 printf %s "(cached) " >&6
10614 else case e in #(
10615 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10616 /* end confdefs.h. */
10617 int i;
10618 _ACEOF
10619 if ac_fn_c_try_compile "$LINENO"
10620 then :
10621 xorg_cv_cc_flag_unknown_warning_option=yes
10622 else case e in #(
10623 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10624 esac
10625 fi
10626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10627 esac
10628 fi
10629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10630 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10631 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10632 CFLAGS="$xorg_testset_save_CFLAGS"
10633 fi
10634
10635 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10638 fi
10639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10641 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10642 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10643 then :
10644 printf %s "(cached) " >&6
10645 else case e in #(
10646 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10648 int i;
10649 _ACEOF
10650 if ac_fn_c_try_compile "$LINENO"
10651 then :
10652 xorg_cv_cc_flag_unused_command_line_argument=yes
10653 else case e in #(
10654 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10655 esac
10656 fi
10657 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10658 esac
10659 fi
10660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10661 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10662 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10663 CFLAGS="$xorg_testset_save_CFLAGS"
10664 fi
10665
10666 found="no"
10667
10668 if test $found = "no" ; then
10669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10671 fi
10672
10673 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10675 fi
10676
10677 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10678
10679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10680 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10681 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10682 if eval test \${$cacheid+y}
10683 then :
10684 printf %s "(cached) " >&6
10685 else case e in #(
10686 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10688 int i;
10689 int
10690 main (void)
10691 {
10692
10693 ;
10694 return 0;
10695 }
10696 _ACEOF
10697 if ac_fn_c_try_link "$LINENO"
10698 then :
10699 eval $cacheid=yes
10700 else case e in #(
10701 e) eval $cacheid=no ;;
10702 esac
10703 fi
10704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10705 conftest$ac_exeext conftest.$ac_ext ;;
10706 esac
10707 fi
10708
10709
10710 CFLAGS="$xorg_testset_save_CFLAGS"
10711
10712 eval supported=\$$cacheid
10713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10714 printf "%s\n" "$supported" >&6; }
10715 if test "$supported" = "yes" ; then
10716 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10717 found="yes"
10718 fi
10719 fi
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735 xorg_testset_save_CFLAGS="$CFLAGS"
10736
10737 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10740 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10741 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10742 then :
10743 printf %s "(cached) " >&6
10744 else case e in #(
10745 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h. */
10747 int i;
10748 _ACEOF
10749 if ac_fn_c_try_compile "$LINENO"
10750 then :
10751 xorg_cv_cc_flag_unknown_warning_option=yes
10752 else case e in #(
10753 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10754 esac
10755 fi
10756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10757 esac
10758 fi
10759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10760 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10762 CFLAGS="$xorg_testset_save_CFLAGS"
10763 fi
10764
10765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10768 fi
10769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10771 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10772 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10773 then :
10774 printf %s "(cached) " >&6
10775 else case e in #(
10776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10778 int i;
10779 _ACEOF
10780 if ac_fn_c_try_compile "$LINENO"
10781 then :
10782 xorg_cv_cc_flag_unused_command_line_argument=yes
10783 else case e in #(
10784 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10785 esac
10786 fi
10787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10788 esac
10789 fi
10790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10791 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10792 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10793 CFLAGS="$xorg_testset_save_CFLAGS"
10794 fi
10795
10796 found="no"
10797
10798 if test $found = "no" ; then
10799 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10800 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10801 fi
10802
10803 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10805 fi
10806
10807 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10808
10809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10810 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10811 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10812 if eval test \${$cacheid+y}
10813 then :
10814 printf %s "(cached) " >&6
10815 else case e in #(
10816 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h. */
10818 int i;
10819 int
10820 main (void)
10821 {
10822
10823 ;
10824 return 0;
10825 }
10826 _ACEOF
10827 if ac_fn_c_try_link "$LINENO"
10828 then :
10829 eval $cacheid=yes
10830 else case e in #(
10831 e) eval $cacheid=no ;;
10832 esac
10833 fi
10834 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10835 conftest$ac_exeext conftest.$ac_ext ;;
10836 esac
10837 fi
10838
10839
10840 CFLAGS="$xorg_testset_save_CFLAGS"
10841
10842 eval supported=\$$cacheid
10843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10844 printf "%s\n" "$supported" >&6; }
10845 if test "$supported" = "yes" ; then
10846 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10847 found="yes"
10848 fi
10849 fi
10850
10851
10852 fi
10853
10854
10855
10856
10857
10858
10859
10860 CWARNFLAGS="$BASE_CFLAGS"
10861 if test "x$GCC" = xyes ; then
10862 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10863 fi
10864
10865
10866
10867
10868
10869
10870
10871
10872 # Check whether --enable-strict-compilation was given.
10873 if test ${enable_strict_compilation+y}
10874 then :
10875 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10876 else case e in #(
10877 e) STRICT_COMPILE=no ;;
10878 esac
10879 fi
10880
10881
10882
10883
10884
10885
10886 STRICT_CFLAGS=""
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900 xorg_testset_save_CFLAGS="$CFLAGS"
10901
10902 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10905 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10906 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10907 then :
10908 printf %s "(cached) " >&6
10909 else case e in #(
10910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10911 /* end confdefs.h. */
10912 int i;
10913 _ACEOF
10914 if ac_fn_c_try_compile "$LINENO"
10915 then :
10916 xorg_cv_cc_flag_unknown_warning_option=yes
10917 else case e in #(
10918 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10919 esac
10920 fi
10921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10922 esac
10923 fi
10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10925 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10926 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10927 CFLAGS="$xorg_testset_save_CFLAGS"
10928 fi
10929
10930 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10931 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10933 fi
10934 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10936 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10937 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10938 then :
10939 printf %s "(cached) " >&6
10940 else case e in #(
10941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10942 /* end confdefs.h. */
10943 int i;
10944 _ACEOF
10945 if ac_fn_c_try_compile "$LINENO"
10946 then :
10947 xorg_cv_cc_flag_unused_command_line_argument=yes
10948 else case e in #(
10949 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10950 esac
10951 fi
10952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10953 esac
10954 fi
10955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10956 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10957 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10958 CFLAGS="$xorg_testset_save_CFLAGS"
10959 fi
10960
10961 found="no"
10962
10963 if test $found = "no" ; then
10964 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10966 fi
10967
10968 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10970 fi
10971
10972 CFLAGS="$CFLAGS -pedantic"
10973
10974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10975 printf %s "checking if $CC supports -pedantic... " >&6; }
10976 cacheid=xorg_cv_cc_flag__pedantic
10977 if eval test \${$cacheid+y}
10978 then :
10979 printf %s "(cached) " >&6
10980 else case e in #(
10981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10982 /* end confdefs.h. */
10983 int i;
10984 int
10985 main (void)
10986 {
10987
10988 ;
10989 return 0;
10990 }
10991 _ACEOF
10992 if ac_fn_c_try_link "$LINENO"
10993 then :
10994 eval $cacheid=yes
10995 else case e in #(
10996 e) eval $cacheid=no ;;
10997 esac
10998 fi
10999 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11000 conftest$ac_exeext conftest.$ac_ext ;;
11001 esac
11002 fi
11003
11004
11005 CFLAGS="$xorg_testset_save_CFLAGS"
11006
11007 eval supported=\$$cacheid
11008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11009 printf "%s\n" "$supported" >&6; }
11010 if test "$supported" = "yes" ; then
11011 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11012 found="yes"
11013 fi
11014 fi
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030 xorg_testset_save_CFLAGS="$CFLAGS"
11031
11032 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11035 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11036 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11037 then :
11038 printf %s "(cached) " >&6
11039 else case e in #(
11040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h. */
11042 int i;
11043 _ACEOF
11044 if ac_fn_c_try_compile "$LINENO"
11045 then :
11046 xorg_cv_cc_flag_unknown_warning_option=yes
11047 else case e in #(
11048 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11049 esac
11050 fi
11051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11052 esac
11053 fi
11054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11055 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11056 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11057 CFLAGS="$xorg_testset_save_CFLAGS"
11058 fi
11059
11060 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11061 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11062 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11063 fi
11064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11066 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11067 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11068 then :
11069 printf %s "(cached) " >&6
11070 else case e in #(
11071 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11072 /* end confdefs.h. */
11073 int i;
11074 _ACEOF
11075 if ac_fn_c_try_compile "$LINENO"
11076 then :
11077 xorg_cv_cc_flag_unused_command_line_argument=yes
11078 else case e in #(
11079 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11080 esac
11081 fi
11082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11083 esac
11084 fi
11085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11086 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11088 CFLAGS="$xorg_testset_save_CFLAGS"
11089 fi
11090
11091 found="no"
11092
11093 if test $found = "no" ; then
11094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11096 fi
11097
11098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11100 fi
11101
11102 CFLAGS="$CFLAGS -Werror"
11103
11104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11105 printf %s "checking if $CC supports -Werror... " >&6; }
11106 cacheid=xorg_cv_cc_flag__Werror
11107 if eval test \${$cacheid+y}
11108 then :
11109 printf %s "(cached) " >&6
11110 else case e in #(
11111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11112 /* end confdefs.h. */
11113 int i;
11114 int
11115 main (void)
11116 {
11117
11118 ;
11119 return 0;
11120 }
11121 _ACEOF
11122 if ac_fn_c_try_link "$LINENO"
11123 then :
11124 eval $cacheid=yes
11125 else case e in #(
11126 e) eval $cacheid=no ;;
11127 esac
11128 fi
11129 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11130 conftest$ac_exeext conftest.$ac_ext ;;
11131 esac
11132 fi
11133
11134
11135 CFLAGS="$xorg_testset_save_CFLAGS"
11136
11137 eval supported=\$$cacheid
11138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11139 printf "%s\n" "$supported" >&6; }
11140 if test "$supported" = "yes" ; then
11141 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11142 found="yes"
11143 fi
11144 fi
11145
11146 if test $found = "no" ; then
11147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11149 fi
11150
11151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11153 fi
11154
11155 CFLAGS="$CFLAGS -errwarn"
11156
11157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11158 printf %s "checking if $CC supports -errwarn... " >&6; }
11159 cacheid=xorg_cv_cc_flag__errwarn
11160 if eval test \${$cacheid+y}
11161 then :
11162 printf %s "(cached) " >&6
11163 else case e in #(
11164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11165 /* end confdefs.h. */
11166 int i;
11167 int
11168 main (void)
11169 {
11170
11171 ;
11172 return 0;
11173 }
11174 _ACEOF
11175 if ac_fn_c_try_link "$LINENO"
11176 then :
11177 eval $cacheid=yes
11178 else case e in #(
11179 e) eval $cacheid=no ;;
11180 esac
11181 fi
11182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11183 conftest$ac_exeext conftest.$ac_ext ;;
11184 esac
11185 fi
11186
11187
11188 CFLAGS="$xorg_testset_save_CFLAGS"
11189
11190 eval supported=\$$cacheid
11191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11192 printf "%s\n" "$supported" >&6; }
11193 if test "$supported" = "yes" ; then
11194 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11195 found="yes"
11196 fi
11197 fi
11198
11199
11200
11201 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11202 # activate it with -Werror, so we add it here explicitly.
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216 xorg_testset_save_CFLAGS="$CFLAGS"
11217
11218 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11221 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11222 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11223 then :
11224 printf %s "(cached) " >&6
11225 else case e in #(
11226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11227 /* end confdefs.h. */
11228 int i;
11229 _ACEOF
11230 if ac_fn_c_try_compile "$LINENO"
11231 then :
11232 xorg_cv_cc_flag_unknown_warning_option=yes
11233 else case e in #(
11234 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11235 esac
11236 fi
11237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11238 esac
11239 fi
11240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11241 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11243 CFLAGS="$xorg_testset_save_CFLAGS"
11244 fi
11245
11246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11249 fi
11250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11252 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11253 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11254 then :
11255 printf %s "(cached) " >&6
11256 else case e in #(
11257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258 /* end confdefs.h. */
11259 int i;
11260 _ACEOF
11261 if ac_fn_c_try_compile "$LINENO"
11262 then :
11263 xorg_cv_cc_flag_unused_command_line_argument=yes
11264 else case e in #(
11265 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11266 esac
11267 fi
11268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11269 esac
11270 fi
11271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11272 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11273 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11274 CFLAGS="$xorg_testset_save_CFLAGS"
11275 fi
11276
11277 found="no"
11278
11279 if test $found = "no" ; then
11280 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11282 fi
11283
11284 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11286 fi
11287
11288 CFLAGS="$CFLAGS -Werror=attributes"
11289
11290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11291 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11292 cacheid=xorg_cv_cc_flag__Werror_attributes
11293 if eval test \${$cacheid+y}
11294 then :
11295 printf %s "(cached) " >&6
11296 else case e in #(
11297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298 /* end confdefs.h. */
11299 int i;
11300 int
11301 main (void)
11302 {
11303
11304 ;
11305 return 0;
11306 }
11307 _ACEOF
11308 if ac_fn_c_try_link "$LINENO"
11309 then :
11310 eval $cacheid=yes
11311 else case e in #(
11312 e) eval $cacheid=no ;;
11313 esac
11314 fi
11315 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11316 conftest$ac_exeext conftest.$ac_ext ;;
11317 esac
11318 fi
11319
11320
11321 CFLAGS="$xorg_testset_save_CFLAGS"
11322
11323 eval supported=\$$cacheid
11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11325 printf "%s\n" "$supported" >&6; }
11326 if test "$supported" = "yes" ; then
11327 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11328 found="yes"
11329 fi
11330 fi
11331
11332
11333
11334 if test "x$STRICT_COMPILE" = "xyes"; then
11335 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11336 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11337 fi
11338
11339
11340
11341
11342
11343
11344
11345
11346 cat >>confdefs.h <<_ACEOF
11347 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11348 _ACEOF
11349
11350 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11351 if test "x$PVM" = "x"; then
11352 PVM="0"
11353 fi
11354
11355 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11356
11357 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11358 if test "x$PVP" = "x"; then
11359 PVP="0"
11360 fi
11361
11362 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11363
11364
11365
11366 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11367 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11368 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11369 touch \$(top_srcdir)/ChangeLog; \
11370 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11371
11372
11373
11374
11375 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11376 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11377 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11378 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11379 touch \$(top_srcdir)/INSTALL; \
11380 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11381
11382
11383
11384
11385
11386
11387 case $host_os in
11388 solaris*)
11389 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11390 # check for a man page file found in later versions that use
11391 # traditional section numbers instead
11392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11393 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11394 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11395 then :
11396 printf %s "(cached) " >&6
11397 else case e in #(
11398 e) test "$cross_compiling" = yes &&
11399 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11400 if test -r "/usr/share/man/man7/attributes.7"; then
11401 ac_cv_file__usr_share_man_man7_attributes_7=yes
11402 else
11403 ac_cv_file__usr_share_man_man7_attributes_7=no
11404 fi ;;
11405 esac
11406 fi
11407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11408 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11409 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11410 then :
11411 SYSV_MAN_SECTIONS=false
11412 else case e in #(
11413 e) SYSV_MAN_SECTIONS=true ;;
11414 esac
11415 fi
11416
11417 ;;
11418 *) SYSV_MAN_SECTIONS=false ;;
11419 esac
11420
11421 if test x$APP_MAN_SUFFIX = x ; then
11422 APP_MAN_SUFFIX=1
11423 fi
11424 if test x$APP_MAN_DIR = x ; then
11425 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11426 fi
11427
11428 if test x$LIB_MAN_SUFFIX = x ; then
11429 LIB_MAN_SUFFIX=3
11430 fi
11431 if test x$LIB_MAN_DIR = x ; then
11432 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11433 fi
11434
11435 if test x$FILE_MAN_SUFFIX = x ; then
11436 case $SYSV_MAN_SECTIONS in
11437 true) FILE_MAN_SUFFIX=4 ;;
11438 *) FILE_MAN_SUFFIX=5 ;;
11439 esac
11440 fi
11441 if test x$FILE_MAN_DIR = x ; then
11442 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11443 fi
11444
11445 if test x$MISC_MAN_SUFFIX = x ; then
11446 case $SYSV_MAN_SECTIONS in
11447 true) MISC_MAN_SUFFIX=5 ;;
11448 *) MISC_MAN_SUFFIX=7 ;;
11449 esac
11450 fi
11451 if test x$MISC_MAN_DIR = x ; then
11452 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11453 fi
11454
11455 if test x$DRIVER_MAN_SUFFIX = x ; then
11456 case $SYSV_MAN_SECTIONS in
11457 true) DRIVER_MAN_SUFFIX=7 ;;
11458 *) DRIVER_MAN_SUFFIX=4 ;;
11459 esac
11460 fi
11461 if test x$DRIVER_MAN_DIR = x ; then
11462 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11463 fi
11464
11465 if test x$ADMIN_MAN_SUFFIX = x ; then
11466 case $SYSV_MAN_SECTIONS in
11467 true) ADMIN_MAN_SUFFIX=1m ;;
11468 *) ADMIN_MAN_SUFFIX=8 ;;
11469 esac
11470 fi
11471 if test x$ADMIN_MAN_DIR = x ; then
11472 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11473 fi
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489 XORG_MAN_PAGE="X Version 11"
11490
11491 MAN_SUBSTS="\
11492 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11493 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11494 -e 's|__xservername__|Xorg|g' \
11495 -e 's|__xconfigfile__|xorg.conf|g' \
11496 -e 's|__projectroot__|\$(prefix)|g' \
11497 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11498 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11499 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11500 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11501 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11502 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11503 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11504
11505
11506
11507 # Check whether --enable-silent-rules was given.
11508 if test ${enable_silent_rules+y}
11509 then :
11510 enableval=$enable_silent_rules;
11511 fi
11512
11513 case $enable_silent_rules in # (((
11514 yes) AM_DEFAULT_VERBOSITY=0;;
11515 no) AM_DEFAULT_VERBOSITY=1;;
11516 *) AM_DEFAULT_VERBOSITY=0;;
11517 esac
11518 am_make=${MAKE-make}
11519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11520 printf %s "checking whether $am_make supports nested variables... " >&6; }
11521 if test ${am_cv_make_support_nested_variables+y}
11522 then :
11523 printf %s "(cached) " >&6
11524 else case e in #(
11525 e) if printf "%s\n" 'TRUE=$(BAR$(V))
11526 BAR0=false
11527 BAR1=true
11528 V=1
11529 am__doit:
11530 @$(TRUE)
11531 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11532 am_cv_make_support_nested_variables=yes
11533 else
11534 am_cv_make_support_nested_variables=no
11535 fi ;;
11536 esac
11537 fi
11538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11539 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11540 if test $am_cv_make_support_nested_variables = yes; then
11541 AM_V='$(V)'
11542 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11543 else
11544 AM_V=$AM_DEFAULT_VERBOSITY
11545 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11546 fi
11547 AM_BACKSLASH='\'
11548
11549
11550
11551
11552
11553
11554 # Extract the first word of "groff", so it can be a program name with args.
11555 set dummy groff; ac_word=$2
11556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11557 printf %s "checking for $ac_word... " >&6; }
11558 if test ${ac_cv_prog_GROFF+y}
11559 then :
11560 printf %s "(cached) " >&6
11561 else case e in #(
11562 e) if test -n "$GROFF"; then
11563 ac_cv_prog_GROFF="$GROFF" # Let the user override the test.
11564 else
11565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11566 for as_dir in $PATH
11567 do
11568 IFS=$as_save_IFS
11569 case $as_dir in #(((
11570 '') as_dir=./ ;;
11571 */) ;;
11572 *) as_dir=$as_dir/ ;;
11573 esac
11574 for ac_exec_ext in '' $ac_executable_extensions; do
11575 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11576 ac_cv_prog_GROFF="found"
11577 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11578 break 2
11579 fi
11580 done
11581 done
11582 IFS=$as_save_IFS
11583
11584 test -z "$ac_cv_prog_GROFF" && ac_cv_prog_GROFF="missing"
11585 fi ;;
11586 esac
11587 fi
11588 GROFF=$ac_cv_prog_GROFF
11589 if test -n "$GROFF"; then
11590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
11591 printf "%s\n" "$GROFF" >&6; }
11592 else
11593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594 printf "%s\n" "no" >&6; }
11595 fi
11596
11597
11598 if test "x$GROFF" = "xfound" ; then
11599
11600 printf "%s\n" "#define HAS_GROFF 1" >>confdefs.h
11601
11602 fi
11603
11604 # Extract the first word of "mandb", so it can be a program name with args.
11605 set dummy mandb; ac_word=$2
11606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11607 printf %s "checking for $ac_word... " >&6; }
11608 if test ${ac_cv_prog_MANDB+y}
11609 then :
11610 printf %s "(cached) " >&6
11611 else case e in #(
11612 e) if test -n "$MANDB"; then
11613 ac_cv_prog_MANDB="$MANDB" # Let the user override the test.
11614 else
11615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616 for as_dir in $PATH
11617 do
11618 IFS=$as_save_IFS
11619 case $as_dir in #(((
11620 '') as_dir=./ ;;
11621 */) ;;
11622 *) as_dir=$as_dir/ ;;
11623 esac
11624 for ac_exec_ext in '' $ac_executable_extensions; do
11625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11626 ac_cv_prog_MANDB="yes"
11627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11628 break 2
11629 fi
11630 done
11631 done
11632 IFS=$as_save_IFS
11633
11634 test -z "$ac_cv_prog_MANDB" && ac_cv_prog_MANDB="no"
11635 fi ;;
11636 esac
11637 fi
11638 MANDB=$ac_cv_prog_MANDB
11639 if test -n "$MANDB"; then
11640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANDB" >&5
11641 printf "%s\n" "$MANDB" >&6; }
11642 else
11643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11644 printf "%s\n" "no" >&6; }
11645 fi
11646
11647
11648 if test x"$MANDB" = xyes; then
11649
11650 printf "%s\n" "#define HAVE_MANDB 1" >>confdefs.h
11651
11652 fi
11653
11654 # Checks for typedefs, structures, and compiler characteristics.
11655 # Check whether --enable-largefile was given.
11656 if test ${enable_largefile+y}
11657 then :
11658 enableval=$enable_largefile;
11659 fi
11660 if test "$enable_largefile,$enable_year2038" != no,no
11661 then :
11662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11663 printf %s "checking for $CC option to enable large file support... " >&6; }
11664 if test ${ac_cv_sys_largefile_opts+y}
11665 then :
11666 printf %s "(cached) " >&6
11667 else case e in #(
11668 e) ac_save_CC="$CC"
11669 ac_opt_found=no
11670 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11671 if test x"$ac_opt" != x"none needed"
11672 then :
11673 CC="$ac_save_CC $ac_opt"
11674 fi
11675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676 /* end confdefs.h. */
11677 #include <sys/types.h>
11678 #ifndef FTYPE
11679 # define FTYPE off_t
11680 #endif
11681 /* Check that FTYPE can represent 2**63 - 1 correctly.
11682 We can't simply define LARGE_FTYPE to be 9223372036854775807,
11683 since some C++ compilers masquerading as C compilers
11684 incorrectly reject 9223372036854775807. */
11685 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11686 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11687 && LARGE_FTYPE % 2147483647 == 1)
11688 ? 1 : -1];
11689 int
11690 main (void)
11691 {
11692
11693 ;
11694 return 0;
11695 }
11696 _ACEOF
11697 if ac_fn_c_try_compile "$LINENO"
11698 then :
11699 if test x"$ac_opt" = x"none needed"
11700 then :
11701 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11702 CC="$CC -DFTYPE=ino_t"
11703 if ac_fn_c_try_compile "$LINENO"
11704 then :
11705
11706 else case e in #(
11707 e) CC="$CC -D_FILE_OFFSET_BITS=64"
11708 if ac_fn_c_try_compile "$LINENO"
11709 then :
11710 ac_opt='-D_FILE_OFFSET_BITS=64'
11711 fi
11712 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11713 esac
11714 fi
11715 rm -f core conftest.err conftest.$ac_objext conftest.beam
11716 fi
11717 ac_cv_sys_largefile_opts=$ac_opt
11718 ac_opt_found=yes
11719 fi
11720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11721 test $ac_opt_found = no || break
11722 done
11723 CC="$ac_save_CC"
11724
11725 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11726 esac
11727 fi
11728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11729 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11730
11731 ac_have_largefile=yes
11732 case $ac_cv_sys_largefile_opts in #(
11733 "none needed") :
11734 ;; #(
11735 "supported through gnulib") :
11736 ;; #(
11737 "support not detected") :
11738 ac_have_largefile=no ;; #(
11739 "-D_FILE_OFFSET_BITS=64") :
11740
11741 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11742 ;; #(
11743 "-D_LARGE_FILES=1") :
11744
11745 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11746 ;; #(
11747 "-n32") :
11748 CC="$CC -n32" ;; #(
11749 *) :
11750 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11751 esac
11752
11753 if test "$enable_year2038" != no
11754 then :
11755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11756 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11757 if test ${ac_cv_sys_year2038_opts+y}
11758 then :
11759 printf %s "(cached) " >&6
11760 else case e in #(
11761 e) ac_save_CPPFLAGS="$CPPFLAGS"
11762 ac_opt_found=no
11763 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
11764 if test x"$ac_opt" != x"none needed"
11765 then :
11766 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11767 fi
11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11769 /* end confdefs.h. */
11770
11771 #include <time.h>
11772 /* Check that time_t can represent 2**32 - 1 correctly. */
11773 #define LARGE_TIME_T \\
11774 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11775 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11776 && LARGE_TIME_T % 65537 == 0)
11777 ? 1 : -1];
11778
11779 int
11780 main (void)
11781 {
11782
11783 ;
11784 return 0;
11785 }
11786 _ACEOF
11787 if ac_fn_c_try_compile "$LINENO"
11788 then :
11789 ac_cv_sys_year2038_opts="$ac_opt"
11790 ac_opt_found=yes
11791 fi
11792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11793 test $ac_opt_found = no || break
11794 done
11795 CPPFLAGS="$ac_save_CPPFLAGS"
11796 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11797 esac
11798 fi
11799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11800 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11801
11802 ac_have_year2038=yes
11803 case $ac_cv_sys_year2038_opts in #(
11804 "none needed") :
11805 ;; #(
11806 "support not detected") :
11807 ac_have_year2038=no ;; #(
11808 "-D_TIME_BITS=64") :
11809
11810 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11811 ;; #(
11812 "-D__MINGW_USE_VC2005_COMPAT") :
11813
11814 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11815 ;; #(
11816 "-U_USE_32_BIT_TIME_T"*) :
11817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11818 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11819 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11820 will stop working after mid-January 2038. Remove
11821 _USE_32BIT_TIME_T from the compiler flags.
11822 See 'config.log' for more details" "$LINENO" 5; } ;; #(
11823 *) :
11824 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
11825 esac
11826
11827 fi
11828
11829 fi
11830
11831 # Checks for library functions.
11832 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11833 if test "x$ac_cv_func_mkstemp" = xyes
11834 then :
11835 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
11836
11837 fi
11838
11839
11840
11841 # Check whether --with-helpdir was given.
11842 if test ${with_helpdir+y}
11843 then :
11844 withval=$with_helpdir; HELPDIR="$withval"
11845 else case e in #(
11846 e) HELPDIR=${datadir}/X11 ;;
11847 esac
11848 fi
11849
11850
11851
11852
11853 # Check whether --with-sysmanpath was given.
11854 if test ${with_sysmanpath+y}
11855 then :
11856 withval=$with_sysmanpath; SYSMANPATH="$withval"
11857 fi
11858
11859 if test x$SYSMANPATH != x; then
11860
11861 printf "%s\n" "#define SYSMANPATH \"$SYSMANPATH\"" >>confdefs.h
11862
11863 fi
11864
11865
11866 # Check whether --with-localmanpath was given.
11867 if test ${with_localmanpath+y}
11868 then :
11869 withval=$with_localmanpath; LOCALMANPATH="$withval"
11870 fi
11871
11872 if test x$LOCALMANPATH != x; then
11873
11874 printf "%s\n" "#define LOCALMANPATH \"$LOCALMANPATH\"" >>confdefs.h
11875
11876 fi
11877
11878 # Obtain compiler/linker options from dependencies
11879
11880 pkg_failed=no
11881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMAN" >&5
11882 printf %s "checking for XMAN... " >&6; }
11883
11884 if test -n "$XMAN_CFLAGS"; then
11885 pkg_cv_XMAN_CFLAGS="$XMAN_CFLAGS"
11886 elif test -n "$PKG_CONFIG"; then
11887 if test -n "$PKG_CONFIG" && \
11888 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt\""; } >&5
11889 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt") 2>&5
11890 ac_status=$?
11891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11892 test $ac_status = 0; }; then
11893 pkg_cv_XMAN_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.17 xaw7 xt" 2>/dev/null`
11894 test "x$?" != "x0" && pkg_failed=yes
11895 else
11896 pkg_failed=yes
11897 fi
11898 else
11899 pkg_failed=untried
11900 fi
11901 if test -n "$XMAN_LIBS"; then
11902 pkg_cv_XMAN_LIBS="$XMAN_LIBS"
11903 elif test -n "$PKG_CONFIG"; then
11904 if test -n "$PKG_CONFIG" && \
11905 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.17 xaw7 xt\""; } >&5
11906 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.17 xaw7 xt") 2>&5
11907 ac_status=$?
11908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11909 test $ac_status = 0; }; then
11910 pkg_cv_XMAN_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.17 xaw7 xt" 2>/dev/null`
11911 test "x$?" != "x0" && pkg_failed=yes
11912 else
11913 pkg_failed=yes
11914 fi
11915 else
11916 pkg_failed=untried
11917 fi
11918
11919
11920
11921 if test $pkg_failed = yes; then
11922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11923 printf "%s\n" "no" >&6; }
11924
11925 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11926 _pkg_short_errors_supported=yes
11927 else
11928 _pkg_short_errors_supported=no
11929 fi
11930 if test $_pkg_short_errors_supported = yes; then
11931 XMAN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt" 2>&1`
11932 else
11933 XMAN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.17 xaw7 xt" 2>&1`
11934 fi
11935 # Put the nasty error message in config.log where it belongs
11936 echo "$XMAN_PKG_ERRORS" >&5
11937
11938 as_fn_error $? "Package requirements (xproto >= 7.0.17 xaw7 xt) were not met:
11939
11940 $XMAN_PKG_ERRORS
11941
11942 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11943 installed software in a non-standard prefix.
11944
11945 Alternatively, you may set the environment variables XMAN_CFLAGS
11946 and XMAN_LIBS to avoid the need to call pkg-config.
11947 See the pkg-config man page for more details." "$LINENO" 5
11948 elif test $pkg_failed = untried; then
11949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 printf "%s\n" "no" >&6; }
11951 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11952 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11953 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11954 is in your PATH or set the PKG_CONFIG environment variable to the full
11955 path to pkg-config.
11956
11957 Alternatively, you may set the environment variables XMAN_CFLAGS
11958 and XMAN_LIBS to avoid the need to call pkg-config.
11959 See the pkg-config man page for more details.
11960
11961 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11962 See 'config.log' for more details" "$LINENO" 5; }
11963 else
11964 XMAN_CFLAGS=$pkg_cv_XMAN_CFLAGS
11965 XMAN_LIBS=$pkg_cv_XMAN_LIBS
11966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967 printf "%s\n" "yes" >&6; }
11968
11969 fi
11970
11971
11972 # Check whether --with-manconfig was given.
11973 if test ${with_manconfig+y}
11974 then :
11975 withval=$with_manconfig; MANCONF="$withval"
11976 fi
11977
11978 if test x$MANCONF = x; then
11979 # Check for man page config files
11980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /etc/man.conf" >&5
11981 printf %s "checking for /etc/man.conf... " >&6; }
11982 if test ${ac_cv_file__etc_man_conf+y}
11983 then :
11984 printf %s "(cached) " >&6
11985 else case e in #(
11986 e) test "$cross_compiling" = yes &&
11987 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11988 if test -r "/etc/man.conf"; then
11989 ac_cv_file__etc_man_conf=yes
11990 else
11991 ac_cv_file__etc_man_conf=no
11992 fi ;;
11993 esac
11994 fi
11995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_man_conf" >&5
11996 printf "%s\n" "$ac_cv_file__etc_man_conf" >&6; }
11997 if test "x$ac_cv_file__etc_man_conf" = xyes
11998 then :
11999 MANCONF="/etc/man.conf"
12000 else case e in #(
12001 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /etc/man.config" >&5
12002 printf %s "checking for /etc/man.config... " >&6; }
12003 if test ${ac_cv_file__etc_man_config+y}
12004 then :
12005 printf %s "(cached) " >&6
12006 else case e in #(
12007 e) test "$cross_compiling" = yes &&
12008 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12009 if test -r "/etc/man.config"; then
12010 ac_cv_file__etc_man_config=yes
12011 else
12012 ac_cv_file__etc_man_config=no
12013 fi ;;
12014 esac
12015 fi
12016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_man_config" >&5
12017 printf "%s\n" "$ac_cv_file__etc_man_config" >&6; }
12018 if test "x$ac_cv_file__etc_man_config" = xyes
12019 then :
12020 MANCONF="/etc/man.config"
12021 else case e in #(
12022 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /etc/manpath.config" >&5
12023 printf %s "checking for /etc/manpath.config... " >&6; }
12024 if test ${ac_cv_file__etc_manpath_config+y}
12025 then :
12026 printf %s "(cached) " >&6
12027 else case e in #(
12028 e) test "$cross_compiling" = yes &&
12029 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12030 if test -r "/etc/manpath.config"; then
12031 ac_cv_file__etc_manpath_config=yes
12032 else
12033 ac_cv_file__etc_manpath_config=no
12034 fi ;;
12035 esac
12036 fi
12037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__etc_manpath_config" >&5
12038 printf "%s\n" "$ac_cv_file__etc_manpath_config" >&6; }
12039 if test "x$ac_cv_file__etc_manpath_config" = xyes
12040 then :
12041 MANCONF="/etc/manpath.config"
12042 else case e in #(
12043 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/misc/man.conf" >&5
12044 printf %s "checking for /usr/share/misc/man.conf... " >&6; }
12045 if test ${ac_cv_file__usr_share_misc_man_conf+y}
12046 then :
12047 printf %s "(cached) " >&6
12048 else case e in #(
12049 e) test "$cross_compiling" = yes &&
12050 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12051 if test -r "/usr/share/misc/man.conf"; then
12052 ac_cv_file__usr_share_misc_man_conf=yes
12053 else
12054 ac_cv_file__usr_share_misc_man_conf=no
12055 fi ;;
12056 esac
12057 fi
12058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_misc_man_conf" >&5
12059 printf "%s\n" "$ac_cv_file__usr_share_misc_man_conf" >&6; }
12060 if test "x$ac_cv_file__usr_share_misc_man_conf" = xyes
12061 then :
12062 MANCONF="/usr/share/misc/man.conf"
12063 fi
12064 ;;
12065 esac
12066 fi
12067 ;;
12068 esac
12069 fi
12070 ;;
12071 esac
12072 fi
12073
12074 fi
12075
12076 if test x$MANCONF != x ; then
12077
12078 printf "%s\n" "#define MANCONF \"$MANCONF\"" >>confdefs.h
12079
12080
12081 # Try to determine format of config file
12082 # would be better to somehow determine from the files themselves, but
12083 # we'll guess based on pathname and OS for now (mirrors old Imake tests)
12084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking man config file format" >&5
12085 printf %s "checking man config file format... " >&6; }
12086 if test x$MANCONF = x/etc/manpath.config ; then
12087 MAN_CONFIG_STYLE="FreeBSD"
12088 else
12089 case $host_os in
12090 *darwin* | *openbsd* | *netbsd* )
12091 MAN_CONFIG_STYLE="OpenBSD"
12092 ;;
12093 *linux* | cygwin* )
12094 MAN_CONFIG_STYLE="Linux"
12095 ;;
12096 *bsd* )
12097 MAN_CONFIG_STYLE="BSD"
12098 ;;
12099 *)
12100 ;;
12101 esac
12102 fi
12103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAN_CONFIG_STYLE" >&5
12104 printf "%s\n" "$MAN_CONFIG_STYLE" >&6; }
12105
12106 case $MAN_CONFIG_STYLE in
12107 FreeBSD)
12108
12109 printf "%s\n" "#define MANCONFIGSTYLE_FreeBSD 1" >>confdefs.h
12110
12111 ;;
12112 OpenBSD)
12113
12114 printf "%s\n" "#define MANCONFIGSTYLE_OpenBSD 1" >>confdefs.h
12115
12116 ;;
12117 BSD)
12118
12119 printf "%s\n" "#define MANCONFIGSTYLE_BSD 1" >>confdefs.h
12120
12121 ;;
12122 Linux)
12123
12124 printf "%s\n" "#define MANCONFIGSTYLE_Linux 1" >>confdefs.h
12125
12126 ;;
12127 *)
12128 as_fn_error $? "Could not determine man page file config format." "$LINENO" 5
12129 esac
12130 fi
12131
12132
12133 pkg_failed=no
12134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
12135 printf %s "checking for APPDEFS... " >&6; }
12136
12137 if test -n "$APPDEFS_CFLAGS"; then
12138 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
12139 elif test -n "$PKG_CONFIG"; then
12140 if test -n "$PKG_CONFIG" && \
12141 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
12142 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
12143 ac_status=$?
12144 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12145 test $ac_status = 0; }; then
12146 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
12147 test "x$?" != "x0" && pkg_failed=yes
12148 else
12149 pkg_failed=yes
12150 fi
12151 else
12152 pkg_failed=untried
12153 fi
12154 if test -n "$APPDEFS_LIBS"; then
12155 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
12156 elif test -n "$PKG_CONFIG"; then
12157 if test -n "$PKG_CONFIG" && \
12158 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
12159 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
12160 ac_status=$?
12161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12162 test $ac_status = 0; }; then
12163 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
12164 test "x$?" != "x0" && pkg_failed=yes
12165 else
12166 pkg_failed=yes
12167 fi
12168 else
12169 pkg_failed=untried
12170 fi
12171
12172
12173
12174 if test $pkg_failed = yes; then
12175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 printf "%s\n" "no" >&6; }
12177
12178 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12179 _pkg_short_errors_supported=yes
12180 else
12181 _pkg_short_errors_supported=no
12182 fi
12183 if test $_pkg_short_errors_supported = yes; then
12184 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
12185 else
12186 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
12187 fi
12188 # Put the nasty error message in config.log where it belongs
12189 echo "$APPDEFS_PKG_ERRORS" >&5
12190
12191 as_fn_error $? "Package requirements (xt) were not met:
12192
12193 $APPDEFS_PKG_ERRORS
12194
12195 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12196 installed software in a non-standard prefix.
12197
12198 Alternatively, you may set the environment variables APPDEFS_CFLAGS
12199 and APPDEFS_LIBS to avoid the need to call pkg-config.
12200 See the pkg-config man page for more details." "$LINENO" 5
12201 elif test $pkg_failed = untried; then
12202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203 printf "%s\n" "no" >&6; }
12204 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12205 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12206 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12207 is in your PATH or set the PKG_CONFIG environment variable to the full
12208 path to pkg-config.
12209
12210 Alternatively, you may set the environment variables APPDEFS_CFLAGS
12211 and APPDEFS_LIBS to avoid the need to call pkg-config.
12212 See the pkg-config man page for more details.
12213
12214 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12215 See 'config.log' for more details" "$LINENO" 5; }
12216 else
12217 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
12218 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12220 printf "%s\n" "yes" >&6; }
12221
12222 fi
12223 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
12224
12225 # Check whether --with-appdefaultdir was given.
12226 if test ${with_appdefaultdir+y}
12227 then :
12228 withval=$with_appdefaultdir; appdefaultdir="$withval"
12229 else case e in #(
12230 e) appdefaultdir="${xt_appdefaultdir}" ;;
12231 esac
12232 fi
12233
12234
12235
12236 if test "x$RELEASE_VERSION" != "x"; then
12237
12238 printf "%s\n" "#define RELEASE_VERSION \"$RELEASE_VERSION\"" >>confdefs.h
12239
12240 fi
12241
12242 ac_config_files="$ac_config_files Makefile man/Makefile"
12243
12244 cat >confcache <<\_ACEOF
12245 # This file is a shell script that caches the results of configure
12246 # tests run on this system so they can be shared between configure
12247 # scripts and configure runs, see configure's option --config-cache.
12248 # It is not useful on other systems. If it contains results you don't
12249 # want to keep, you may remove or edit it.
12250 #
12251 # config.status only pays attention to the cache file if you give it
12252 # the --recheck option to rerun configure.
12253 #
12254 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12255 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12256 # following values.
12257
12258 _ACEOF
12259
12260 # The following way of writing the cache mishandles newlines in values,
12261 # but we know of no workaround that is simple, portable, and efficient.
12262 # So, we kill variables containing newlines.
12263 # Ultrix sh set writes to stderr and can't be redirected directly,
12264 # and sets the high bit in the cache file unless we assign to the vars.
12265 (
12266 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12267 eval ac_val=\$$ac_var
12268 case $ac_val in #(
12269 *${as_nl}*)
12270 case $ac_var in #(
12271 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12272 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12273 esac
12274 case $ac_var in #(
12275 _ | IFS | as_nl) ;; #(
12276 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12277 *) { eval $ac_var=; unset $ac_var;} ;;
12278 esac ;;
12279 esac
12280 done
12281
12282 (set) 2>&1 |
12283 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12284 *${as_nl}ac_space=\ *)
12285 # 'set' does not quote correctly, so add quotes: double-quote
12286 # substitution turns \\\\ into \\, and sed turns \\ into \.
12287 sed -n \
12288 "s/'/'\\\\''/g;
12289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12290 ;; #(
12291 *)
12292 # 'set' quotes correctly as required by POSIX, so do not add quotes.
12293 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12294 ;;
12295 esac |
12296 sort
12297 ) |
12298 sed '
12299 /^ac_cv_env_/b end
12300 t clear
12301 :clear
12302 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12303 t end
12304 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12305 :end' >>confcache
12306 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12307 if test -w "$cache_file"; then
12308 if test "x$cache_file" != "x/dev/null"; then
12309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12310 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12311 if test ! -f "$cache_file" || test -h "$cache_file"; then
12312 cat confcache >"$cache_file"
12313 else
12314 case $cache_file in #(
12315 */* | ?:*)
12316 mv -f confcache "$cache_file"$$ &&
12317 mv -f "$cache_file"$$ "$cache_file" ;; #(
12318 *)
12319 mv -f confcache "$cache_file" ;;
12320 esac
12321 fi
12322 fi
12323 else
12324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12325 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12326 fi
12327 fi
12328 rm -f confcache
12329
12330 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12331 # Let make expand exec_prefix.
12332 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12333
12334 DEFS=-DHAVE_CONFIG_H
12335
12336 ac_libobjs=
12337 ac_ltlibobjs=
12338 U=
12339 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12340 # 1. Remove the extension, and $U if already installed.
12341 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12342 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12343 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12344 # will be set to the directory where LIBOBJS objects are built.
12345 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12346 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12347 done
12348 LIBOBJS=$ac_libobjs
12349
12350 LTLIBOBJS=$ac_ltlibobjs
12351
12352
12353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12354 printf %s "checking that generated files are newer than configure... " >&6; }
12355 if test -n "$am_sleep_pid"; then
12356 # Hide warnings about reused PIDs.
12357 wait $am_sleep_pid 2>/dev/null
12358 fi
12359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12360 printf "%s\n" "done" >&6; }
12361 if test -n "$EXEEXT"; then
12362 am__EXEEXT_TRUE=
12363 am__EXEEXT_FALSE='#'
12364 else
12365 am__EXEEXT_TRUE='#'
12366 am__EXEEXT_FALSE=
12367 fi
12368
12369 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12370 as_fn_error $? "conditional \"AMDEP\" was never defined.
12371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12372 fi
12373 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12374 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12376 fi
12377 # Check whether --enable-year2038 was given.
12378 if test ${enable_year2038+y}
12379 then :
12380 enableval=$enable_year2038;
12381 fi
12382
12383
12384 : "${CONFIG_STATUS=./config.status}"
12385 ac_write_fail=0
12386 ac_clean_files_save=$ac_clean_files
12387 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12389 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12390 as_write_fail=0
12391 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12392 #! $SHELL
12393 # Generated by $as_me.
12394 # Run this file to recreate the current configuration.
12395 # Compiler output produced by configure, useful for debugging
12396 # configure, is in config.log if it exists.
12397
12398 debug=false
12399 ac_cs_recheck=false
12400 ac_cs_silent=false
12401
12402 SHELL=\${CONFIG_SHELL-$SHELL}
12403 export SHELL
12404 _ASEOF
12405 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12406 ## -------------------- ##
12407 ## M4sh Initialization. ##
12408 ## -------------------- ##
12409
12410 # Be more Bourne compatible
12411 DUALCASE=1; export DUALCASE # for MKS sh
12412 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12413 then :
12414 emulate sh
12415 NULLCMD=:
12416 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12417 # is contrary to our usage. Disable this feature.
12418 alias -g '${1+"$@"}'='"$@"'
12419 setopt NO_GLOB_SUBST
12420 else case e in #(
12421 e) case `(set -o) 2>/dev/null` in #(
12422 *posix*) :
12423 set -o posix ;; #(
12424 *) :
12425 ;;
12426 esac ;;
12427 esac
12428 fi
12429
12430
12431
12432 # Reset variables that may have inherited troublesome values from
12433 # the environment.
12434
12435 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12436 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12437 # side effect of setting IFS to empty, thus disabling word splitting.)
12438 # Quoting is to prevent editors from complaining about space-tab.
12439 as_nl='
12440 '
12441 export as_nl
12442 IFS=" "" $as_nl"
12443
12444 PS1='$ '
12445 PS2='> '
12446 PS4='+ '
12447
12448 # Ensure predictable behavior from utilities with locale-dependent output.
12449 LC_ALL=C
12450 export LC_ALL
12451 LANGUAGE=C
12452 export LANGUAGE
12453
12454 # We cannot yet rely on "unset" to work, but we need these variables
12455 # to be unset--not just set to an empty or harmless value--now, to
12456 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12457 # also avoids known problems related to "unset" and subshell syntax
12458 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12459 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12460 do eval test \${$as_var+y} \
12461 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12462 done
12463
12464 # Ensure that fds 0, 1, and 2 are open.
12465 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12466 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12467 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12468
12469 # The user is always right.
12470 if ${PATH_SEPARATOR+false} :; then
12471 PATH_SEPARATOR=:
12472 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12473 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12474 PATH_SEPARATOR=';'
12475 }
12476 fi
12477
12478
12479 # Find who we are. Look in the path if we contain no directory separator.
12480 as_myself=
12481 case $0 in #((
12482 *[\\/]* ) as_myself=$0 ;;
12483 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12485 do
12486 IFS=$as_save_IFS
12487 case $as_dir in #(((
12488 '') as_dir=./ ;;
12489 */) ;;
12490 *) as_dir=$as_dir/ ;;
12491 esac
12492 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12493 done
12494 IFS=$as_save_IFS
12495
12496 ;;
12497 esac
12498 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12499 # in which case we are not to be found in the path.
12500 if test "x$as_myself" = x; then
12501 as_myself=$0
12502 fi
12503 if test ! -f "$as_myself"; then
12504 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12505 exit 1
12506 fi
12507
12508
12509
12510 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12511 # ----------------------------------------
12512 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12513 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12514 # script with STATUS, using 1 if that was 0.
12515 as_fn_error ()
12516 {
12517 as_status=$1; test $as_status -eq 0 && as_status=1
12518 if test "$4"; then
12519 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12521 fi
12522 printf "%s\n" "$as_me: error: $2" >&2
12523 as_fn_exit $as_status
12524 } # as_fn_error
12525
12526
12527 # as_fn_set_status STATUS
12528 # -----------------------
12529 # Set $? to STATUS, without forking.
12530 as_fn_set_status ()
12531 {
12532 return $1
12533 } # as_fn_set_status
12534
12535 # as_fn_exit STATUS
12536 # -----------------
12537 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12538 as_fn_exit ()
12539 {
12540 set +e
12541 as_fn_set_status $1
12542 exit $1
12543 } # as_fn_exit
12544
12545 # as_fn_unset VAR
12546 # ---------------
12547 # Portably unset VAR.
12548 as_fn_unset ()
12549 {
12550 { eval $1=; unset $1;}
12551 }
12552 as_unset=as_fn_unset
12553
12554 # as_fn_append VAR VALUE
12555 # ----------------------
12556 # Append the text in VALUE to the end of the definition contained in VAR. Take
12557 # advantage of any shell optimizations that allow amortized linear growth over
12558 # repeated appends, instead of the typical quadratic growth present in naive
12559 # implementations.
12560 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12561 then :
12562 eval 'as_fn_append ()
12563 {
12564 eval $1+=\$2
12565 }'
12566 else case e in #(
12567 e) as_fn_append ()
12568 {
12569 eval $1=\$$1\$2
12570 } ;;
12571 esac
12572 fi # as_fn_append
12573
12574 # as_fn_arith ARG...
12575 # ------------------
12576 # Perform arithmetic evaluation on the ARGs, and store the result in the
12577 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12578 # must be portable across $(()) and expr.
12579 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12580 then :
12581 eval 'as_fn_arith ()
12582 {
12583 as_val=$(( $* ))
12584 }'
12585 else case e in #(
12586 e) as_fn_arith ()
12587 {
12588 as_val=`expr "$@" || test $? -eq 1`
12589 } ;;
12590 esac
12591 fi # as_fn_arith
12592
12593
12594 if expr a : '\(a\)' >/dev/null 2>&1 &&
12595 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12596 as_expr=expr
12597 else
12598 as_expr=false
12599 fi
12600
12601 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12602 as_basename=basename
12603 else
12604 as_basename=false
12605 fi
12606
12607 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12608 as_dirname=dirname
12609 else
12610 as_dirname=false
12611 fi
12612
12613 as_me=`$as_basename -- "$0" ||
12614 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12615 X"$0" : 'X\(//\)$' \| \
12616 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12617 printf "%s\n" X/"$0" |
12618 sed '/^.*\/\([^/][^/]*\)\/*$/{
12619 s//\1/
12620 q
12621 }
12622 /^X\/\(\/\/\)$/{
12623 s//\1/
12624 q
12625 }
12626 /^X\/\(\/\).*/{
12627 s//\1/
12628 q
12629 }
12630 s/.*/./; q'`
12631
12632 # Avoid depending upon Character Ranges.
12633 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12634 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12635 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12636 as_cr_digits='0123456789'
12637 as_cr_alnum=$as_cr_Letters$as_cr_digits
12638
12639
12640 # Determine whether it's possible to make 'echo' print without a newline.
12641 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12642 # for compatibility with existing Makefiles.
12643 ECHO_C= ECHO_N= ECHO_T=
12644 case `echo -n x` in #(((((
12645 -n*)
12646 case `echo 'xy\c'` in
12647 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12648 xy) ECHO_C='\c';;
12649 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12650 ECHO_T=' ';;
12651 esac;;
12652 *)
12653 ECHO_N='-n';;
12654 esac
12655
12656 # For backward compatibility with old third-party macros, we provide
12657 # the shell variables $as_echo and $as_echo_n. New code should use
12658 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12659 as_echo='printf %s\n'
12660 as_echo_n='printf %s'
12661
12662 rm -f conf$$ conf$$.exe conf$$.file
12663 if test -d conf$$.dir; then
12664 rm -f conf$$.dir/conf$$.file
12665 else
12666 rm -f conf$$.dir
12667 mkdir conf$$.dir 2>/dev/null
12668 fi
12669 if (echo >conf$$.file) 2>/dev/null; then
12670 if ln -s conf$$.file conf$$ 2>/dev/null; then
12671 as_ln_s='ln -s'
12672 # ... but there are two gotchas:
12673 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12674 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12675 # In both cases, we have to default to 'cp -pR'.
12676 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12677 as_ln_s='cp -pR'
12678 elif ln conf$$.file conf$$ 2>/dev/null; then
12679 as_ln_s=ln
12680 else
12681 as_ln_s='cp -pR'
12682 fi
12683 else
12684 as_ln_s='cp -pR'
12685 fi
12686 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12687 rmdir conf$$.dir 2>/dev/null
12688
12689
12690 # as_fn_mkdir_p
12691 # -------------
12692 # Create "$as_dir" as a directory, including parents if necessary.
12693 as_fn_mkdir_p ()
12694 {
12695
12696 case $as_dir in #(
12697 -*) as_dir=./$as_dir;;
12698 esac
12699 test -d "$as_dir" || eval $as_mkdir_p || {
12700 as_dirs=
12701 while :; do
12702 case $as_dir in #(
12703 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12704 *) as_qdir=$as_dir;;
12705 esac
12706 as_dirs="'$as_qdir' $as_dirs"
12707 as_dir=`$as_dirname -- "$as_dir" ||
12708 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12709 X"$as_dir" : 'X\(//\)[^/]' \| \
12710 X"$as_dir" : 'X\(//\)$' \| \
12711 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12712 printf "%s\n" X"$as_dir" |
12713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12714 s//\1/
12715 q
12716 }
12717 /^X\(\/\/\)[^/].*/{
12718 s//\1/
12719 q
12720 }
12721 /^X\(\/\/\)$/{
12722 s//\1/
12723 q
12724 }
12725 /^X\(\/\).*/{
12726 s//\1/
12727 q
12728 }
12729 s/.*/./; q'`
12730 test -d "$as_dir" && break
12731 done
12732 test -z "$as_dirs" || eval "mkdir $as_dirs"
12733 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12734
12735
12736 } # as_fn_mkdir_p
12737 if mkdir -p . 2>/dev/null; then
12738 as_mkdir_p='mkdir -p "$as_dir"'
12739 else
12740 test -d ./-p && rmdir ./-p
12741 as_mkdir_p=false
12742 fi
12743
12744
12745 # as_fn_executable_p FILE
12746 # -----------------------
12747 # Test if FILE is an executable regular file.
12748 as_fn_executable_p ()
12749 {
12750 test -f "$1" && test -x "$1"
12751 } # as_fn_executable_p
12752 as_test_x='test -x'
12753 as_executable_p=as_fn_executable_p
12754
12755 # Sed expression to map a string onto a valid CPP name.
12756 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12757 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12758
12759 # Sed expression to map a string onto a valid variable name.
12760 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12761 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12762
12763
12764 exec 6>&1
12765 ## ----------------------------------- ##
12766 ## Main body of $CONFIG_STATUS script. ##
12767 ## ----------------------------------- ##
12768 _ASEOF
12769 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12770
12771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12772 # Save the log message, to keep $0 and so on meaningful, and to
12773 # report actual input values of CONFIG_FILES etc. instead of their
12774 # values after options handling.
12775 ac_log="
12776 This file was extended by xman $as_me 1.2.0, which was
12777 generated by GNU Autoconf 2.72. Invocation command line was
12778
12779 CONFIG_FILES = $CONFIG_FILES
12780 CONFIG_HEADERS = $CONFIG_HEADERS
12781 CONFIG_LINKS = $CONFIG_LINKS
12782 CONFIG_COMMANDS = $CONFIG_COMMANDS
12783 $ $0 $@
12784
12785 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12786 "
12787
12788 _ACEOF
12789
12790 case $ac_config_files in *"
12791 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12792 esac
12793
12794 case $ac_config_headers in *"
12795 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12796 esac
12797
12798
12799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12800 # Files that config.status was made for.
12801 config_files="$ac_config_files"
12802 config_headers="$ac_config_headers"
12803 config_commands="$ac_config_commands"
12804
12805 _ACEOF
12806
12807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12808 ac_cs_usage="\
12809 '$as_me' instantiates files and other configuration actions
12810 from templates according to the current configuration. Unless the files
12811 and actions are specified as TAGs, all are instantiated by default.
12812
12813 Usage: $0 [OPTION]... [TAG]...
12814
12815 -h, --help print this help, then exit
12816 -V, --version print version number and configuration settings, then exit
12817 --config print configuration, then exit
12818 -q, --quiet, --silent
12819 do not print progress messages
12820 -d, --debug don't remove temporary files
12821 --recheck update $as_me by reconfiguring in the same conditions
12822 --file=FILE[:TEMPLATE]
12823 instantiate the configuration file FILE
12824 --header=FILE[:TEMPLATE]
12825 instantiate the configuration header FILE
12826
12827 Configuration files:
12828 $config_files
12829
12830 Configuration headers:
12831 $config_headers
12832
12833 Configuration commands:
12834 $config_commands
12835
12836 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xman/-/issues/>."
12837
12838 _ACEOF
12839 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12840 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12842 ac_cs_config='$ac_cs_config_escaped'
12843 ac_cs_version="\\
12844 xman config.status 1.2.0
12845 configured by $0, generated by GNU Autoconf 2.72,
12846 with options \\"\$ac_cs_config\\"
12847
12848 Copyright (C) 2023 Free Software Foundation, Inc.
12849 This config.status script is free software; the Free Software Foundation
12850 gives unlimited permission to copy, distribute and modify it."
12851
12852 ac_pwd='$ac_pwd'
12853 srcdir='$srcdir'
12854 INSTALL='$INSTALL'
12855 MKDIR_P='$MKDIR_P'
12856 AWK='$AWK'
12857 test -n "\$AWK" || AWK=awk
12858 _ACEOF
12859
12860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12861 # The default lists apply if the user does not specify any file.
12862 ac_need_defaults=:
12863 while test $# != 0
12864 do
12865 case $1 in
12866 --*=?*)
12867 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12868 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12869 ac_shift=:
12870 ;;
12871 --*=)
12872 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12873 ac_optarg=
12874 ac_shift=:
12875 ;;
12876 *)
12877 ac_option=$1
12878 ac_optarg=$2
12879 ac_shift=shift
12880 ;;
12881 esac
12882
12883 case $ac_option in
12884 # Handling of the options.
12885 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12886 ac_cs_recheck=: ;;
12887 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12888 printf "%s\n" "$ac_cs_version"; exit ;;
12889 --config | --confi | --conf | --con | --co | --c )
12890 printf "%s\n" "$ac_cs_config"; exit ;;
12891 --debug | --debu | --deb | --de | --d | -d )
12892 debug=: ;;
12893 --file | --fil | --fi | --f )
12894 $ac_shift
12895 case $ac_optarg in
12896 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12897 '') as_fn_error $? "missing file argument" ;;
12898 esac
12899 as_fn_append CONFIG_FILES " '$ac_optarg'"
12900 ac_need_defaults=false;;
12901 --header | --heade | --head | --hea )
12902 $ac_shift
12903 case $ac_optarg in
12904 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12905 esac
12906 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12907 ac_need_defaults=false;;
12908 --he | --h)
12909 # Conflict between --help and --header
12910 as_fn_error $? "ambiguous option: '$1'
12911 Try '$0 --help' for more information.";;
12912 --help | --hel | -h )
12913 printf "%s\n" "$ac_cs_usage"; exit ;;
12914 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12915 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12916 ac_cs_silent=: ;;
12917
12918 # This is an error.
12919 -*) as_fn_error $? "unrecognized option: '$1'
12920 Try '$0 --help' for more information." ;;
12921
12922 *) as_fn_append ac_config_targets " $1"
12923 ac_need_defaults=false ;;
12924
12925 esac
12926 shift
12927 done
12928
12929 ac_configure_extra_args=
12930
12931 if $ac_cs_silent; then
12932 exec 6>/dev/null
12933 ac_configure_extra_args="$ac_configure_extra_args --silent"
12934 fi
12935
12936 _ACEOF
12937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12938 if \$ac_cs_recheck; then
12939 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12940 shift
12941 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12942 CONFIG_SHELL='$SHELL'
12943 export CONFIG_SHELL
12944 exec "\$@"
12945 fi
12946
12947 _ACEOF
12948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12949 exec 5>>config.log
12950 {
12951 echo
12952 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12953 ## Running $as_me. ##
12954 _ASBOX
12955 printf "%s\n" "$ac_log"
12956 } >&5
12957
12958 _ACEOF
12959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12960 #
12961 # INIT-COMMANDS
12962 #
12963 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12964
12965 _ACEOF
12966
12967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12968
12969 # Handling of arguments.
12970 for ac_config_target in $ac_config_targets
12971 do
12972 case $ac_config_target in
12973 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12974 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12975 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12976 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12977
12978 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12979 esac
12980 done
12981
12982
12983 # If the user did not use the arguments to specify the items to instantiate,
12984 # then the envvar interface is used. Set only those that are not.
12985 # We use the long form for the default assignment because of an extremely
12986 # bizarre bug on SunOS 4.1.3.
12987 if $ac_need_defaults; then
12988 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12989 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12990 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12991 fi
12992
12993 # Have a temporary directory for convenience. Make it in the build tree
12994 # simply because there is no reason against having it here, and in addition,
12995 # creating and moving files from /tmp can sometimes cause problems.
12996 # Hook for its removal unless debugging.
12997 # Note that there is a small window in which the directory will not be cleaned:
12998 # after its creation but before its name has been assigned to '$tmp'.
12999 $debug ||
13000 {
13001 tmp= ac_tmp=
13002 trap 'exit_status=$?
13003 : "${ac_tmp:=$tmp}"
13004 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13005 ' 0
13006 trap 'as_fn_exit 1' 1 2 13 15
13007 }
13008 # Create a (secure) tmp directory for tmp files.
13009
13010 {
13011 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13012 test -d "$tmp"
13013 } ||
13014 {
13015 tmp=./conf$$-$RANDOM
13016 (umask 077 && mkdir "$tmp")
13017 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13018 ac_tmp=$tmp
13019
13020 # Set up the scripts for CONFIG_FILES section.
13021 # No need to generate them if there are no CONFIG_FILES.
13022 # This happens for instance with './config.status config.h'.
13023 if test -n "$CONFIG_FILES"; then
13024
13025
13026 ac_cr=`echo X | tr X '\015'`
13027 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13028 # But we know of no other shell where ac_cr would be empty at this
13029 # point, so we can use a bashism as a fallback.
13030 if test "x$ac_cr" = x; then
13031 eval ac_cr=\$\'\\r\'
13032 fi
13033 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13034 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13035 ac_cs_awk_cr='\\r'
13036 else
13037 ac_cs_awk_cr=$ac_cr
13038 fi
13039
13040 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13041 _ACEOF
13042
13043
13044 {
13045 echo "cat >conf$$subs.awk <<_ACEOF" &&
13046 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13047 echo "_ACEOF"
13048 } >conf$$subs.sh ||
13049 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13050 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13051 ac_delim='%!_!# '
13052 for ac_last_try in false false false false false :; do
13053 . ./conf$$subs.sh ||
13054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13055
13056 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13057 if test $ac_delim_n = $ac_delim_num; then
13058 break
13059 elif $ac_last_try; then
13060 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13061 else
13062 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13063 fi
13064 done
13065 rm -f conf$$subs.sh
13066
13067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13068 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13069 _ACEOF
13070 sed -n '
13071 h
13072 s/^/S["/; s/!.*/"]=/
13073 p
13074 g
13075 s/^[^!]*!//
13076 :repl
13077 t repl
13078 s/'"$ac_delim"'$//
13079 t delim
13080 :nl
13081 h
13082 s/\(.\{148\}\)..*/\1/
13083 t more1
13084 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13085 p
13086 n
13087 b repl
13088 :more1
13089 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13090 p
13091 g
13092 s/.\{148\}//
13093 t nl
13094 :delim
13095 h
13096 s/\(.\{148\}\)..*/\1/
13097 t more2
13098 s/["\\]/\\&/g; s/^/"/; s/$/"/
13099 p
13100 b
13101 :more2
13102 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13103 p
13104 g
13105 s/.\{148\}//
13106 t delim
13107 ' <conf$$subs.awk | sed '
13108 /^[^""]/{
13109 N
13110 s/\n//
13111 }
13112 ' >>$CONFIG_STATUS || ac_write_fail=1
13113 rm -f conf$$subs.awk
13114 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13115 _ACAWK
13116 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13117 for (key in S) S_is_set[key] = 1
13118 FS = ""
13119
13120 }
13121 {
13122 line = $ 0
13123 nfields = split(line, field, "@")
13124 substed = 0
13125 len = length(field[1])
13126 for (i = 2; i < nfields; i++) {
13127 key = field[i]
13128 keylen = length(key)
13129 if (S_is_set[key]) {
13130 value = S[key]
13131 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13132 len += length(value) + length(field[++i])
13133 substed = 1
13134 } else
13135 len += 1 + keylen
13136 }
13137
13138 print line
13139 }
13140
13141 _ACAWK
13142 _ACEOF
13143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13144 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13145 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13146 else
13147 cat
13148 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13149 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13150 _ACEOF
13151
13152 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13153 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13154 # trailing colons and then remove the whole line if VPATH becomes empty
13155 # (actually we leave an empty line to preserve line numbers).
13156 if test "x$srcdir" = x.; then
13157 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13158 h
13159 s///
13160 s/^/:/
13161 s/[ ]*$/:/
13162 s/:\$(srcdir):/:/g
13163 s/:\${srcdir}:/:/g
13164 s/:@srcdir@:/:/g
13165 s/^:*//
13166 s/:*$//
13167 x
13168 s/\(=[ ]*\).*/\1/
13169 G
13170 s/\n//
13171 s/^[^=]*=[ ]*$//
13172 }'
13173 fi
13174
13175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13176 fi # test -n "$CONFIG_FILES"
13177
13178 # Set up the scripts for CONFIG_HEADERS section.
13179 # No need to generate them if there are no CONFIG_HEADERS.
13180 # This happens for instance with './config.status Makefile'.
13181 if test -n "$CONFIG_HEADERS"; then
13182 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13183 BEGIN {
13184 _ACEOF
13185
13186 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13187 # here-document in config.status, that substitutes the proper values into
13188 # config.h.in to produce config.h.
13189
13190 # Create a delimiter string that does not exist in confdefs.h, to ease
13191 # handling of long lines.
13192 ac_delim='%!_!# '
13193 for ac_last_try in false false :; do
13194 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13195 if test -z "$ac_tt"; then
13196 break
13197 elif $ac_last_try; then
13198 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13199 else
13200 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13201 fi
13202 done
13203
13204 # For the awk script, D is an array of macro values keyed by name,
13205 # likewise P contains macro parameters if any. Preserve backslash
13206 # newline sequences.
13207
13208 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13209 sed -n '
13210 s/.\{148\}/&'"$ac_delim"'/g
13211 t rset
13212 :rset
13213 s/^[ ]*#[ ]*define[ ][ ]*/ /
13214 t def
13215 d
13216 :def
13217 s/\\$//
13218 t bsnl
13219 s/["\\]/\\&/g
13220 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13221 D["\1"]=" \3"/p
13222 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13223 d
13224 :bsnl
13225 s/["\\]/\\&/g
13226 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13227 D["\1"]=" \3\\\\\\n"\\/p
13228 t cont
13229 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13230 t cont
13231 d
13232 :cont
13233 n
13234 s/.\{148\}/&'"$ac_delim"'/g
13235 t clear
13236 :clear
13237 s/\\$//
13238 t bsnlc
13239 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13240 d
13241 :bsnlc
13242 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13243 b cont
13244 ' <confdefs.h | sed '
13245 s/'"$ac_delim"'/"\\\
13246 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13247
13248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13249 for (key in D) D_is_set[key] = 1
13250 FS = ""
13251 }
13252 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13253 line = \$ 0
13254 split(line, arg, " ")
13255 if (arg[1] == "#") {
13256 defundef = arg[2]
13257 mac1 = arg[3]
13258 } else {
13259 defundef = substr(arg[1], 2)
13260 mac1 = arg[2]
13261 }
13262 split(mac1, mac2, "(") #)
13263 macro = mac2[1]
13264 prefix = substr(line, 1, index(line, defundef) - 1)
13265 if (D_is_set[macro]) {
13266 # Preserve the white space surrounding the "#".
13267 print prefix "define", macro P[macro] D[macro]
13268 next
13269 } else {
13270 # Replace #undef with comments. This is necessary, for example,
13271 # in the case of _POSIX_SOURCE, which is predefined and required
13272 # on some systems where configure will not decide to define it.
13273 if (defundef == "undef") {
13274 print "/*", prefix defundef, macro, "*/"
13275 next
13276 }
13277 }
13278 }
13279 { print }
13280 _ACAWK
13281 _ACEOF
13282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13283 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13284 fi # test -n "$CONFIG_HEADERS"
13285
13286
13287 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13288 shift
13289 for ac_tag
13290 do
13291 case $ac_tag in
13292 :[FHLC]) ac_mode=$ac_tag; continue;;
13293 esac
13294 case $ac_mode$ac_tag in
13295 :[FHL]*:*);;
13296 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13297 :[FH]-) ac_tag=-:-;;
13298 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13299 esac
13300 ac_save_IFS=$IFS
13301 IFS=:
13302 set x $ac_tag
13303 IFS=$ac_save_IFS
13304 shift
13305 ac_file=$1
13306 shift
13307
13308 case $ac_mode in
13309 :L) ac_source=$1;;
13310 :[FH])
13311 ac_file_inputs=
13312 for ac_f
13313 do
13314 case $ac_f in
13315 -) ac_f="$ac_tmp/stdin";;
13316 *) # Look for the file first in the build tree, then in the source tree
13317 # (if the path is not absolute). The absolute path cannot be DOS-style,
13318 # because $ac_f cannot contain ':'.
13319 test -f "$ac_f" ||
13320 case $ac_f in
13321 [\\/$]*) false;;
13322 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13323 esac ||
13324 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13325 esac
13326 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13327 as_fn_append ac_file_inputs " '$ac_f'"
13328 done
13329
13330 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13331 # use $as_me), people would be surprised to read:
13332 # /* config.h. Generated by config.status. */
13333 configure_input='Generated from '`
13334 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13335 `' by configure.'
13336 if test x"$ac_file" != x-; then
13337 configure_input="$ac_file. $configure_input"
13338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13339 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13340 fi
13341 # Neutralize special characters interpreted by sed in replacement strings.
13342 case $configure_input in #(
13343 *\&* | *\|* | *\\* )
13344 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13345 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13346 *) ac_sed_conf_input=$configure_input;;
13347 esac
13348
13349 case $ac_tag in
13350 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13351 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13352 esac
13353 ;;
13354 esac
13355
13356 ac_dir=`$as_dirname -- "$ac_file" ||
13357 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13358 X"$ac_file" : 'X\(//\)[^/]' \| \
13359 X"$ac_file" : 'X\(//\)$' \| \
13360 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13361 printf "%s\n" X"$ac_file" |
13362 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13363 s//\1/
13364 q
13365 }
13366 /^X\(\/\/\)[^/].*/{
13367 s//\1/
13368 q
13369 }
13370 /^X\(\/\/\)$/{
13371 s//\1/
13372 q
13373 }
13374 /^X\(\/\).*/{
13375 s//\1/
13376 q
13377 }
13378 s/.*/./; q'`
13379 as_dir="$ac_dir"; as_fn_mkdir_p
13380 ac_builddir=.
13381
13382 case "$ac_dir" in
13383 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13384 *)
13385 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13386 # A ".." for each directory in $ac_dir_suffix.
13387 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13388 case $ac_top_builddir_sub in
13389 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13390 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13391 esac ;;
13392 esac
13393 ac_abs_top_builddir=$ac_pwd
13394 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13395 # for backward compatibility:
13396 ac_top_builddir=$ac_top_build_prefix
13397
13398 case $srcdir in
13399 .) # We are building in place.
13400 ac_srcdir=.
13401 ac_top_srcdir=$ac_top_builddir_sub
13402 ac_abs_top_srcdir=$ac_pwd ;;
13403 [\\/]* | ?:[\\/]* ) # Absolute name.
13404 ac_srcdir=$srcdir$ac_dir_suffix;
13405 ac_top_srcdir=$srcdir
13406 ac_abs_top_srcdir=$srcdir ;;
13407 *) # Relative name.
13408 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13409 ac_top_srcdir=$ac_top_build_prefix$srcdir
13410 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13411 esac
13412 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13413
13414
13415 case $ac_mode in
13416 :F)
13417 #
13418 # CONFIG_FILE
13419 #
13420
13421 case $INSTALL in
13422 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13423 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13424 esac
13425 ac_MKDIR_P=$MKDIR_P
13426 case $MKDIR_P in
13427 [\\/$]* | ?:[\\/]* ) ;;
13428 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13429 esac
13430 _ACEOF
13431
13432 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13433 # If the template does not know about datarootdir, expand it.
13434 # FIXME: This hack should be removed a few years after 2.60.
13435 ac_datarootdir_hack=; ac_datarootdir_seen=
13436 ac_sed_dataroot='
13437 /datarootdir/ {
13438 p
13439 q
13440 }
13441 /@datadir@/p
13442 /@docdir@/p
13443 /@infodir@/p
13444 /@localedir@/p
13445 /@mandir@/p'
13446 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13447 *datarootdir*) ac_datarootdir_seen=yes;;
13448 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13450 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13451 _ACEOF
13452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13453 ac_datarootdir_hack='
13454 s&@datadir@&$datadir&g
13455 s&@docdir@&$docdir&g
13456 s&@infodir@&$infodir&g
13457 s&@localedir@&$localedir&g
13458 s&@mandir@&$mandir&g
13459 s&\\\${datarootdir}&$datarootdir&g' ;;
13460 esac
13461 _ACEOF
13462
13463 # Neutralize VPATH when '$srcdir' = '.'.
13464 # Shell code in configure.ac might set extrasub.
13465 # FIXME: do we really want to maintain this feature?
13466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13467 ac_sed_extra="$ac_vpsub
13468 $extrasub
13469 _ACEOF
13470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13471 :t
13472 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13473 s|@configure_input@|$ac_sed_conf_input|;t t
13474 s&@top_builddir@&$ac_top_builddir_sub&;t t
13475 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13476 s&@srcdir@&$ac_srcdir&;t t
13477 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13478 s&@top_srcdir@&$ac_top_srcdir&;t t
13479 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13480 s&@builddir@&$ac_builddir&;t t
13481 s&@abs_builddir@&$ac_abs_builddir&;t t
13482 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13483 s&@INSTALL@&$ac_INSTALL&;t t
13484 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13485 $ac_datarootdir_hack
13486 "
13487 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13488 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13489
13490 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13491 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13492 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13493 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13495 which seems to be undefined. Please make sure it is defined" >&5
13496 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13497 which seems to be undefined. Please make sure it is defined" >&2;}
13498
13499 rm -f "$ac_tmp/stdin"
13500 case $ac_file in
13501 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13502 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13503 esac \
13504 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13505 ;;
13506 :H)
13507 #
13508 # CONFIG_HEADER
13509 #
13510 if test x"$ac_file" != x-; then
13511 {
13512 printf "%s\n" "/* $configure_input */" >&1 \
13513 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13514 } >"$ac_tmp/config.h" \
13515 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13516 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13518 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13519 else
13520 rm -f "$ac_file"
13521 mv "$ac_tmp/config.h" "$ac_file" \
13522 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13523 fi
13524 else
13525 printf "%s\n" "/* $configure_input */" >&1 \
13526 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13527 || as_fn_error $? "could not create -" "$LINENO" 5
13528 fi
13529 # Compute "$ac_file"'s index in $config_headers.
13530 _am_arg="$ac_file"
13531 _am_stamp_count=1
13532 for _am_header in $config_headers :; do
13533 case $_am_header in
13534 $_am_arg | $_am_arg:* )
13535 break ;;
13536 * )
13537 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13538 esac
13539 done
13540 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13541 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13542 X"$_am_arg" : 'X\(//\)[^/]' \| \
13543 X"$_am_arg" : 'X\(//\)$' \| \
13544 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13545 printf "%s\n" X"$_am_arg" |
13546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13547 s//\1/
13548 q
13549 }
13550 /^X\(\/\/\)[^/].*/{
13551 s//\1/
13552 q
13553 }
13554 /^X\(\/\/\)$/{
13555 s//\1/
13556 q
13557 }
13558 /^X\(\/\).*/{
13559 s//\1/
13560 q
13561 }
13562 s/.*/./; q'`/stamp-h$_am_stamp_count
13563 ;;
13564
13565 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13566 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13567 ;;
13568 esac
13569
13570
13571 case $ac_file$ac_mode in
13572 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13573 # Older Autoconf quotes --file arguments for eval, but not when files
13574 # are listed without --file. Let's play safe and only enable the eval
13575 # if we detect the quoting.
13576 # TODO: see whether this extra hack can be removed once we start
13577 # requiring Autoconf 2.70 or later.
13578 case $CONFIG_FILES in #(
13579 *\'*) :
13580 eval set x "$CONFIG_FILES" ;; #(
13581 *) :
13582 set x $CONFIG_FILES ;; #(
13583 *) :
13584 ;;
13585 esac
13586 shift
13587 # Used to flag and report bootstrapping failures.
13588 am_rc=0
13589 for am_mf
13590 do
13591 # Strip MF so we end up with the name of the file.
13592 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13593 # Check whether this is an Automake generated Makefile which includes
13594 # dependency-tracking related rules and includes.
13595 # Grep'ing the whole file directly is not great: AIX grep has a line
13596 # limit of 2048, but all sed's we know have understand at least 4000.
13597 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13598 || continue
13599 am_dirpart=`$as_dirname -- "$am_mf" ||
13600 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13601 X"$am_mf" : 'X\(//\)[^/]' \| \
13602 X"$am_mf" : 'X\(//\)$' \| \
13603 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13604 printf "%s\n" X"$am_mf" |
13605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13606 s//\1/
13607 q
13608 }
13609 /^X\(\/\/\)[^/].*/{
13610 s//\1/
13611 q
13612 }
13613 /^X\(\/\/\)$/{
13614 s//\1/
13615 q
13616 }
13617 /^X\(\/\).*/{
13618 s//\1/
13619 q
13620 }
13621 s/.*/./; q'`
13622 am_filepart=`$as_basename -- "$am_mf" ||
13623 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13624 X"$am_mf" : 'X\(//\)$' \| \
13625 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13626 printf "%s\n" X/"$am_mf" |
13627 sed '/^.*\/\([^/][^/]*\)\/*$/{
13628 s//\1/
13629 q
13630 }
13631 /^X\/\(\/\/\)$/{
13632 s//\1/
13633 q
13634 }
13635 /^X\/\(\/\).*/{
13636 s//\1/
13637 q
13638 }
13639 s/.*/./; q'`
13640 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13641 && sed -e '/# am--include-marker/d' "$am_filepart" \
13642 | $MAKE -f - am--depfiles" >&5
13643 (cd "$am_dirpart" \
13644 && sed -e '/# am--include-marker/d' "$am_filepart" \
13645 | $MAKE -f - am--depfiles) >&5 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } || am_rc=$?
13649 done
13650 if test $am_rc -ne 0; then
13651 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13652 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13653 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13654 for automatic dependency tracking. If GNU make was not used, consider
13655 re-running the configure script with MAKE=\"gmake\" (or whatever is
13656 necessary). You can also try re-running configure with the
13657 '--disable-dependency-tracking' option to at least be able to build
13658 the package (albeit without support for automatic dependency tracking).
13659 See 'config.log' for more details" "$LINENO" 5; }
13660 fi
13661 { am_dirpart=; unset am_dirpart;}
13662 { am_filepart=; unset am_filepart;}
13663 { am_mf=; unset am_mf;}
13664 { am_rc=; unset am_rc;}
13665 rm -f conftest-deps.mk
13666 }
13667 ;;
13668
13669 esac
13670 done # for ac_tag
13671
13672
13673 as_fn_exit 0
13674 _ACEOF
13675 ac_clean_files=$ac_clean_files_save
13676
13677 test $ac_write_fail = 0 ||
13678 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13679
13680
13681 # configure is writing to config.log, and then calls config.status.
13682 # config.status does its own redirection, appending to config.log.
13683 # Unfortunately, on DOS this fails, as config.log is still kept open
13684 # by configure, so config.status won't be able to write to it; its
13685 # output is simply discarded. So we exec the FD to /dev/null,
13686 # effectively closing config.log, so it can be properly (re)opened and
13687 # appended to by config.status. When coming back to configure, we
13688 # need to make the FD available again.
13689 if test "$no_create" != yes; then
13690 ac_cs_success=:
13691 ac_config_status_args=
13692 test "$silent" = yes &&
13693 ac_config_status_args="$ac_config_status_args --quiet"
13694 exec 5>/dev/null
13695 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13696 exec 5>>config.log
13697 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13698 # would make configure fail if this is the last instruction.
13699 $ac_cs_success || as_fn_exit 1
13700 fi
13701 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13703 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13704 fi
13705
13706
13707