configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for xconsole 1.1.0.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xconsole/-/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/xconsole/-/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='xconsole'
607 PACKAGE_TARNAME='xconsole'
608 PACKAGE_VERSION='1.1.0'
609 PACKAGE_STRING='xconsole 1.1.0'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xconsole/-/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 XCONSOLE_LIBS
655 XCONSOLE_CFLAGS
656 MAN_SUBSTS
657 XORG_MAN_PAGE
658 ADMIN_MAN_DIR
659 DRIVER_MAN_DIR
660 MISC_MAN_DIR
661 FILE_MAN_DIR
662 LIB_MAN_DIR
663 APP_MAN_DIR
664 ADMIN_MAN_SUFFIX
665 DRIVER_MAN_SUFFIX
666 MISC_MAN_SUFFIX
667 FILE_MAN_SUFFIX
668 LIB_MAN_SUFFIX
669 APP_MAN_SUFFIX
670 SED
671 host_os
672 host_vendor
673 host_cpu
674 host
675 build_os
676 build_vendor
677 build_cpu
678 build
679 INSTALL_CMD
680 PKG_CONFIG_LIBDIR
681 PKG_CONFIG_PATH
682 PKG_CONFIG
683 CHANGELOG_CMD
684 STRICT_CFLAGS
685 CWARNFLAGS
686 BASE_CFLAGS
687 AM_BACKSLASH
688 AM_DEFAULT_VERBOSITY
689 AM_DEFAULT_V
690 AM_V
691 CSCOPE
692 ETAGS
693 CTAGS
694 am__fastdepCC_FALSE
695 am__fastdepCC_TRUE
696 CCDEPMODE
697 am__nodep
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__include
702 DEPDIR
703 am__untar
704 am__tar
705 AMTAR
706 am__leading_dot
707 SET_MAKE
708 AWK
709 mkdir_p
710 MKDIR_P
711 INSTALL_STRIP_PROGRAM
712 STRIP
713 install_sh
714 MAKEINFO
715 AUTOHEADER
716 AUTOMAKE
717 AUTOCONF
718 ACLOCAL
719 VERSION
720 PACKAGE
721 CYGPATH_W
722 am__isrc
723 INSTALL_DATA
724 INSTALL_SCRIPT
725 INSTALL_PROGRAM
726 OBJEXT
727 EXEEXT
728 ac_ct_CC
729 CPPFLAGS
730 LDFLAGS
731 CFLAGS
732 CC
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 runstatedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL
772 am__quote'
773 ac_subst_files=''
774 ac_user_opts='
775 enable_option_checking
776 enable_dependency_tracking
777 enable_silent_rules
778 enable_selective_werror
779 enable_strict_compilation
780 with_appdefaultdir
781 enable_largefile
782 enable_year2038
783 '
784 ac_precious_vars='build_alias
785 host_alias
786 target_alias
787 CC
788 CFLAGS
789 LDFLAGS
790 LIBS
791 CPPFLAGS
792 PKG_CONFIG
793 PKG_CONFIG_PATH
794 PKG_CONFIG_LIBDIR
795 XCONSOLE_CFLAGS
796 XCONSOLE_LIBS
797 APPDEFS_CFLAGS
798 APPDEFS_LIBS'
799
800
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
822
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 runstatedir='${localstatedir}/run'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
859 fi
860
861 case $ac_option in
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
865 esac
866
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
895
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: '$ac_useropt'"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
928
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: '$ac_useropt'"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -runstatedir | --runstatedir | --runstatedi | --runstated \
1089 | --runstate | --runstat | --runsta | --runst | --runs \
1090 | --run | --ru | --r)
1091 ac_prev=runstatedir ;;
1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1094 | --run=* | --ru=* | --r=*)
1095 runstatedir=$ac_optarg ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: '$ac_useropt'"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: '$ac_useropt'"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
1192 -*) as_fn_error $? "unrecognized option: '$ac_option'
1193 Try '$0 --help' for more information"
1194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
1208 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 ;;
1213
1214 esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir runstatedir
1235 do
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: '$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1264 fi
1265 fi
1266
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270 test "$silent" = yes && exec 6>/dev/null
1271
1272
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 printf "%s\n" X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\).*/{
1304 s//\1/
1305 q
1306 }
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1311 fi
1312 else
1313 ac_srcdir_defaulted=no
1314 fi
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 fi
1319 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1326 fi
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1339
1340 #
1341 # Report the --help message.
1342 #
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347 'configure' configures xconsole 1.1.0 to adapt to many kinds of systems.
1348
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1353
1354 Defaults for the options are specified in brackets.
1355
1356 Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print 'checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for '--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or '..']
1366
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 [PREFIX]
1372
1373 By default, 'make install' will install all the files in
1374 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than '$ac_default_prefix' using '--prefix',
1376 for instance '--prefix=\$HOME'.
1377
1378 For better control, use the options below.
1379
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/xconsole]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1401 _ACEOF
1402
1403 cat <<\_ACEOF
1404
1405 Program names:
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409
1410 System types:
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 _ACEOF
1414 fi
1415
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of xconsole 1.1.0:";;
1419 esac
1420 cat <<\_ACEOF
1421
1422 Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-dependency-tracking
1427 do not reject slow dependency extractors
1428 --disable-dependency-tracking
1429 speeds up one-time build
1430 --enable-silent-rules less verbose build output (undo: "make V=1")
1431 --disable-silent-rules verbose build output (undo: "make V=0")
1432 --disable-selective-werror
1433 Turn off selective compiler errors. (default:
1434 enabled)
1435 --enable-strict-compilation
1436 Enable all warnings from compiler and make them
1437 errors (default: disabled)
1438 --disable-largefile omit support for large files
1439 --enable-year2038 support timestamps after 2038
1440
1441 Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-appdefaultdir=<pathname>
1445 specify directory for app-defaults files (default is
1446 autodetected)
1447
1448 Some influential environment variables:
1449 CC C compiler command
1450 CFLAGS C compiler flags
1451 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1452 nonstandard directory <lib dir>
1453 LIBS libraries to pass to the linker, e.g. -l<library>
1454 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1455 you have headers in a nonstandard directory <include dir>
1456 PKG_CONFIG path to pkg-config utility
1457 PKG_CONFIG_PATH
1458 directories to add to pkg-config's search path
1459 PKG_CONFIG_LIBDIR
1460 path overriding pkg-config's built-in search path
1461 XCONSOLE_CFLAGS
1462 C compiler flags for XCONSOLE, overriding pkg-config
1463 XCONSOLE_LIBS
1464 linker flags for XCONSOLE, overriding pkg-config
1465 APPDEFS_CFLAGS
1466 C compiler flags for APPDEFS, overriding pkg-config
1467 APPDEFS_LIBS
1468 linker flags for APPDEFS, overriding pkg-config
1469
1470 Use these variables to override the choices made by 'configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1472
1473 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xconsole/-/issues>.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 continue
1484 ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for configure.gnu first; this name is used for a wrapper for
1520 # Metaconfig's "Configure" on case-insensitive file systems.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1527 else
1528 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1531 done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536 cat <<\_ACEOF
1537 xconsole configure 1.1.0
1538 generated by GNU Autoconf 2.72
1539
1540 Copyright (C) 2023 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544 exit
1545 fi
1546
1547 ## ------------------------ ##
1548 ## Autoconf initialization. ##
1549 ## ------------------------ ##
1550
1551 # ac_fn_c_try_compile LINENO
1552 # --------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_compile ()
1555 {
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext conftest.beam
1558 if { { ac_try="$ac_compile"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 printf "%s\n" "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext
1577 then :
1578 ac_retval=0
1579 else case e in #(
1580 e) printf "%s\n" "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1 ;;
1584 esac
1585 fi
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1588
1589 } # ac_fn_c_try_compile
1590
1591 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1592 # -------------------------------------------------------
1593 # Tests whether HEADER exists and can be compiled using the include files in
1594 # INCLUDES, setting the cache variable VAR accordingly.
1595 ac_fn_c_check_header_compile ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599 printf %s "checking for $2... " >&6; }
1600 if eval test \${$3+y}
1601 then :
1602 printf %s "(cached) " >&6
1603 else case e in #(
1604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h. */
1606 $4
1607 #include <$2>
1608 _ACEOF
1609 if ac_fn_c_try_compile "$LINENO"
1610 then :
1611 eval "$3=yes"
1612 else case e in #(
1613 e) eval "$3=no" ;;
1614 esac
1615 fi
1616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1617 esac
1618 fi
1619 eval ac_res=\$$3
1620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621 printf "%s\n" "$ac_res" >&6; }
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623
1624 } # ac_fn_c_check_header_compile
1625
1626 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1627 # ------------------------------------------------------------------
1628 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1629 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1630 ac_fn_check_decl ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 as_decl_name=`echo $2|sed 's/ *(.*//'`
1634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1635 printf %s "checking whether $as_decl_name is declared... " >&6; }
1636 if eval test \${$3+y}
1637 then :
1638 printf %s "(cached) " >&6
1639 else case e in #(
1640 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1641 eval ac_save_FLAGS=\$$6
1642 as_fn_append $6 " $5"
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h. */
1645 $4
1646 int
1647 main (void)
1648 {
1649 #ifndef $as_decl_name
1650 #ifdef __cplusplus
1651 (void) $as_decl_use;
1652 #else
1653 (void) $as_decl_name;
1654 #endif
1655 #endif
1656
1657 ;
1658 return 0;
1659 }
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"
1662 then :
1663 eval "$3=yes"
1664 else case e in #(
1665 e) eval "$3=no" ;;
1666 esac
1667 fi
1668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1669 eval $6=\$ac_save_FLAGS
1670 ;;
1671 esac
1672 fi
1673 eval ac_res=\$$3
1674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675 printf "%s\n" "$ac_res" >&6; }
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677
1678 } # ac_fn_check_decl
1679
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_link ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 printf "%s\n" "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1700 fi
1701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest$ac_exeext && {
1706 test "$cross_compiling" = yes ||
1707 test -x conftest$ac_exeext
1708 }
1709 then :
1710 ac_retval=0
1711 else case e in #(
1712 e) printf "%s\n" "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1 ;;
1716 esac
1717 fi
1718 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720 # interfere with the next link command; also delete a directory that is
1721 # left behind by Apple's compiler. We do this before executing the actions.
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_link
1727
1728 # ac_fn_c_check_func LINENO FUNC VAR
1729 # ----------------------------------
1730 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1731 ac_fn_c_check_func ()
1732 {
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 printf %s "checking for $2... " >&6; }
1736 if eval test \${$3+y}
1737 then :
1738 printf %s "(cached) " >&6
1739 else case e in #(
1740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1742 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1744 #define $2 innocuous_$2
1745
1746 /* System header to define __stub macros and hopefully few prototypes,
1747 which can conflict with char $2 (void); below. */
1748
1749 #include <limits.h>
1750 #undef $2
1751
1752 /* Override any GCC internal prototype to avoid an error.
1753 Use char because int might match the return type of a GCC
1754 builtin and then its argument prototype would still apply. */
1755 #ifdef __cplusplus
1756 extern "C"
1757 #endif
1758 char $2 (void);
1759 /* The GNU C library defines this for functions which it implements
1760 to always fail with ENOSYS. Some functions are actually named
1761 something starting with __ and the normal name is an alias. */
1762 #if defined __stub_$2 || defined __stub___$2
1763 choke me
1764 #endif
1765
1766 int
1767 main (void)
1768 {
1769 return $2 ();
1770 ;
1771 return 0;
1772 }
1773 _ACEOF
1774 if ac_fn_c_try_link "$LINENO"
1775 then :
1776 eval "$3=yes"
1777 else case e in #(
1778 e) eval "$3=no" ;;
1779 esac
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1782 conftest$ac_exeext conftest.$ac_ext ;;
1783 esac
1784 fi
1785 eval ac_res=\$$3
1786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787 printf "%s\n" "$ac_res" >&6; }
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789
1790 } # ac_fn_c_check_func
1791 ac_configure_args_raw=
1792 for ac_arg
1793 do
1794 case $ac_arg in
1795 *\'*)
1796 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1797 esac
1798 as_fn_append ac_configure_args_raw " '$ac_arg'"
1799 done
1800
1801 case $ac_configure_args_raw in
1802 *$as_nl*)
1803 ac_safe_unquote= ;;
1804 *)
1805 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1806 ac_unsafe_a="$ac_unsafe_z#~"
1807 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1808 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1809 esac
1810
1811 cat >config.log <<_ACEOF
1812 This file contains any messages produced by compilers while
1813 running configure, to aid debugging if configure makes a mistake.
1814
1815 It was created by xconsole $as_me 1.1.0, which was
1816 generated by GNU Autoconf 2.72. Invocation command line was
1817
1818 $ $0$ac_configure_args_raw
1819
1820 _ACEOF
1821 exec 5>>config.log
1822 {
1823 cat <<_ASUNAME
1824 ## --------- ##
1825 ## Platform. ##
1826 ## --------- ##
1827
1828 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1829 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1830 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1831 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1832 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1833
1834 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1835 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1836
1837 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1838 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1839 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1840 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1841 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1842 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1843 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1844
1845 _ASUNAME
1846
1847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 for as_dir in $PATH
1849 do
1850 IFS=$as_save_IFS
1851 case $as_dir in #(((
1852 '') as_dir=./ ;;
1853 */) ;;
1854 *) as_dir=$as_dir/ ;;
1855 esac
1856 printf "%s\n" "PATH: $as_dir"
1857 done
1858 IFS=$as_save_IFS
1859
1860 } >&5
1861
1862 cat >&5 <<_ACEOF
1863
1864
1865 ## ----------- ##
1866 ## Core tests. ##
1867 ## ----------- ##
1868
1869 _ACEOF
1870
1871
1872 # Keep a trace of the command line.
1873 # Strip out --no-create and --no-recursion so they do not pile up.
1874 # Strip out --silent because we don't want to record it for future runs.
1875 # Also quote any args containing shell meta-characters.
1876 # Make two passes to allow for proper duplicate-argument suppression.
1877 ac_configure_args=
1878 ac_configure_args0=
1879 ac_configure_args1=
1880 ac_must_keep_next=false
1881 for ac_pass in 1 2
1882 do
1883 for ac_arg
1884 do
1885 case $ac_arg in
1886 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1887 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1888 | -silent | --silent | --silen | --sile | --sil)
1889 continue ;;
1890 *\'*)
1891 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1892 esac
1893 case $ac_pass in
1894 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1895 2)
1896 as_fn_append ac_configure_args1 " '$ac_arg'"
1897 if test $ac_must_keep_next = true; then
1898 ac_must_keep_next=false # Got value, back to normal.
1899 else
1900 case $ac_arg in
1901 *=* | --config-cache | -C | -disable-* | --disable-* \
1902 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1903 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1904 | -with-* | --with-* | -without-* | --without-* | --x)
1905 case "$ac_configure_args0 " in
1906 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1907 esac
1908 ;;
1909 -* ) ac_must_keep_next=true ;;
1910 esac
1911 fi
1912 as_fn_append ac_configure_args " '$ac_arg'"
1913 ;;
1914 esac
1915 done
1916 done
1917 { ac_configure_args0=; unset ac_configure_args0;}
1918 { ac_configure_args1=; unset ac_configure_args1;}
1919
1920 # When interrupted or exit'd, cleanup temporary files, and complete
1921 # config.log. We remove comments because anyway the quotes in there
1922 # would cause problems or look ugly.
1923 # WARNING: Use '\'' to represent an apostrophe within the trap.
1924 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1925 trap 'exit_status=$?
1926 # Sanitize IFS.
1927 IFS=" "" $as_nl"
1928 # Save into config.log some information that might help in debugging.
1929 {
1930 echo
1931
1932 printf "%s\n" "## ---------------- ##
1933 ## Cache variables. ##
1934 ## ---------------- ##"
1935 echo
1936 # The following way of writing the cache mishandles newlines in values,
1937 (
1938 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1939 eval ac_val=\$$ac_var
1940 case $ac_val in #(
1941 *${as_nl}*)
1942 case $ac_var in #(
1943 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1944 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1945 esac
1946 case $ac_var in #(
1947 _ | IFS | as_nl) ;; #(
1948 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1949 *) { eval $ac_var=; unset $ac_var;} ;;
1950 esac ;;
1951 esac
1952 done
1953 (set) 2>&1 |
1954 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1955 *${as_nl}ac_space=\ *)
1956 sed -n \
1957 "s/'\''/'\''\\\\'\'''\''/g;
1958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1959 ;; #(
1960 *)
1961 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1962 ;;
1963 esac |
1964 sort
1965 )
1966 echo
1967
1968 printf "%s\n" "## ----------------- ##
1969 ## Output variables. ##
1970 ## ----------------- ##"
1971 echo
1972 for ac_var in $ac_subst_vars
1973 do
1974 eval ac_val=\$$ac_var
1975 case $ac_val in
1976 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1977 esac
1978 printf "%s\n" "$ac_var='\''$ac_val'\''"
1979 done | sort
1980 echo
1981
1982 if test -n "$ac_subst_files"; then
1983 printf "%s\n" "## ------------------- ##
1984 ## File substitutions. ##
1985 ## ------------------- ##"
1986 echo
1987 for ac_var in $ac_subst_files
1988 do
1989 eval ac_val=\$$ac_var
1990 case $ac_val in
1991 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1992 esac
1993 printf "%s\n" "$ac_var='\''$ac_val'\''"
1994 done | sort
1995 echo
1996 fi
1997
1998 if test -s confdefs.h; then
1999 printf "%s\n" "## ----------- ##
2000 ## confdefs.h. ##
2001 ## ----------- ##"
2002 echo
2003 cat confdefs.h
2004 echo
2005 fi
2006 test "$ac_signal" != 0 &&
2007 printf "%s\n" "$as_me: caught signal $ac_signal"
2008 printf "%s\n" "$as_me: exit $exit_status"
2009 } >&5
2010 rm -f core *.core core.conftest.* &&
2011 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2012 exit $exit_status
2013 ' 0
2014 for ac_signal in 1 2 13 15; do
2015 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2016 done
2017 ac_signal=0
2018
2019 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2020 rm -f -r conftest* confdefs.h
2021
2022 printf "%s\n" "/* confdefs.h */" > confdefs.h
2023
2024 # Predefined preprocessor variables.
2025
2026 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2027
2028 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2029
2030 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2031
2032 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2033
2034 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2035
2036 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2037
2038
2039 # Let the site file select an alternate cache file if it wants to.
2040 # Prefer an explicitly selected file to automatically selected ones.
2041 if test -n "$CONFIG_SITE"; then
2042 ac_site_files="$CONFIG_SITE"
2043 elif test "x$prefix" != xNONE; then
2044 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2045 else
2046 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2047 fi
2048
2049 for ac_site_file in $ac_site_files
2050 do
2051 case $ac_site_file in #(
2052 */*) :
2053 ;; #(
2054 *) :
2055 ac_site_file=./$ac_site_file ;;
2056 esac
2057 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2059 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2060 sed 's/^/| /' "$ac_site_file" >&5
2061 . "$ac_site_file" \
2062 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2063 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2064 as_fn_error $? "failed to load site script $ac_site_file
2065 See 'config.log' for more details" "$LINENO" 5; }
2066 fi
2067 done
2068
2069 if test -r "$cache_file"; then
2070 # Some versions of bash will fail to source /dev/null (special files
2071 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2072 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2074 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2075 case $cache_file in
2076 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2077 *) . "./$cache_file";;
2078 esac
2079 fi
2080 else
2081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2082 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2083 >$cache_file
2084 fi
2085
2086 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2087 # Test code for whether the C compiler supports C89 (global declarations)
2088 ac_c_conftest_c89_globals='
2089 /* Does the compiler advertise C89 conformance?
2090 Do not test the value of __STDC__, because some compilers set it to 0
2091 while being otherwise adequately conformant. */
2092 #if !defined __STDC__
2093 # error "Compiler does not advertise C89 conformance"
2094 #endif
2095
2096 #include <stddef.h>
2097 #include <stdarg.h>
2098 struct stat;
2099 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2100 struct buf { int x; };
2101 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2102 static char *e (char **p, int i)
2103 {
2104 return p[i];
2105 }
2106 static char *f (char * (*g) (char **, int), char **p, ...)
2107 {
2108 char *s;
2109 va_list v;
2110 va_start (v,p);
2111 s = g (p, va_arg (v,int));
2112 va_end (v);
2113 return s;
2114 }
2115
2116 /* C89 style stringification. */
2117 #define noexpand_stringify(a) #a
2118 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2119
2120 /* C89 style token pasting. Exercises some of the corner cases that
2121 e.g. old MSVC gets wrong, but not very hard. */
2122 #define noexpand_concat(a,b) a##b
2123 #define expand_concat(a,b) noexpand_concat(a,b)
2124 extern int vA;
2125 extern int vbee;
2126 #define aye A
2127 #define bee B
2128 int *pvA = &expand_concat(v,aye);
2129 int *pvbee = &noexpand_concat(v,bee);
2130
2131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2132 function prototypes and stuff, but not \xHH hex character constants.
2133 These do not provoke an error unfortunately, instead are silently treated
2134 as an "x". The following induces an error, until -std is added to get
2135 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2136 array size at least. It is necessary to write \x00 == 0 to get something
2137 that is true only with -std. */
2138 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2139
2140 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2141 inside strings and character constants. */
2142 #define FOO(x) '\''x'\''
2143 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2144
2145 int test (int i, double x);
2146 struct s1 {int (*f) (int a);};
2147 struct s2 {int (*f) (double a);};
2148 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2149 int, int);'
2150
2151 # Test code for whether the C compiler supports C89 (body of main).
2152 ac_c_conftest_c89_main='
2153 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2154 '
2155
2156 # Test code for whether the C compiler supports C99 (global declarations)
2157 ac_c_conftest_c99_globals='
2158 /* Does the compiler advertise C99 conformance? */
2159 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2160 # error "Compiler does not advertise C99 conformance"
2161 #endif
2162
2163 // See if C++-style comments work.
2164
2165 #include <stdbool.h>
2166 extern int puts (const char *);
2167 extern int printf (const char *, ...);
2168 extern int dprintf (int, const char *, ...);
2169 extern void *malloc (size_t);
2170 extern void free (void *);
2171
2172 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2173 // dprintf is used instead of fprintf to avoid needing to declare
2174 // FILE and stderr.
2175 #define debug(...) dprintf (2, __VA_ARGS__)
2176 #define showlist(...) puts (#__VA_ARGS__)
2177 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2178 static void
2179 test_varargs_macros (void)
2180 {
2181 int x = 1234;
2182 int y = 5678;
2183 debug ("Flag");
2184 debug ("X = %d\n", x);
2185 showlist (The first, second, and third items.);
2186 report (x>y, "x is %d but y is %d", x, y);
2187 }
2188
2189 // Check long long types.
2190 #define BIG64 18446744073709551615ull
2191 #define BIG32 4294967295ul
2192 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2193 #if !BIG_OK
2194 #error "your preprocessor is broken"
2195 #endif
2196 #if BIG_OK
2197 #else
2198 #error "your preprocessor is broken"
2199 #endif
2200 static long long int bignum = -9223372036854775807LL;
2201 static unsigned long long int ubignum = BIG64;
2202
2203 struct incomplete_array
2204 {
2205 int datasize;
2206 double data[];
2207 };
2208
2209 struct named_init {
2210 int number;
2211 const wchar_t *name;
2212 double average;
2213 };
2214
2215 typedef const char *ccp;
2216
2217 static inline int
2218 test_restrict (ccp restrict text)
2219 {
2220 // Iterate through items via the restricted pointer.
2221 // Also check for declarations in for loops.
2222 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2223 continue;
2224 return 0;
2225 }
2226
2227 // Check varargs and va_copy.
2228 static bool
2229 test_varargs (const char *format, ...)
2230 {
2231 va_list args;
2232 va_start (args, format);
2233 va_list args_copy;
2234 va_copy (args_copy, args);
2235
2236 const char *str = "";
2237 int number = 0;
2238 float fnumber = 0;
2239
2240 while (*format)
2241 {
2242 switch (*format++)
2243 {
2244 case '\''s'\'': // string
2245 str = va_arg (args_copy, const char *);
2246 break;
2247 case '\''d'\'': // int
2248 number = va_arg (args_copy, int);
2249 break;
2250 case '\''f'\'': // float
2251 fnumber = va_arg (args_copy, double);
2252 break;
2253 default:
2254 break;
2255 }
2256 }
2257 va_end (args_copy);
2258 va_end (args);
2259
2260 return *str && number && fnumber;
2261 }
2262 '
2263
2264 # Test code for whether the C compiler supports C99 (body of main).
2265 ac_c_conftest_c99_main='
2266 // Check bool.
2267 _Bool success = false;
2268 success |= (argc != 0);
2269
2270 // Check restrict.
2271 if (test_restrict ("String literal") == 0)
2272 success = true;
2273 char *restrict newvar = "Another string";
2274
2275 // Check varargs.
2276 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2277 test_varargs_macros ();
2278
2279 // Check flexible array members.
2280 struct incomplete_array *ia =
2281 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2282 ia->datasize = 10;
2283 for (int i = 0; i < ia->datasize; ++i)
2284 ia->data[i] = i * 1.234;
2285 // Work around memory leak warnings.
2286 free (ia);
2287
2288 // Check named initializers.
2289 struct named_init ni = {
2290 .number = 34,
2291 .name = L"Test wide string",
2292 .average = 543.34343,
2293 };
2294
2295 ni.number = 58;
2296
2297 int dynamic_array[ni.number];
2298 dynamic_array[0] = argv[0][0];
2299 dynamic_array[ni.number - 1] = 543;
2300
2301 // work around unused variable warnings
2302 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2303 || dynamic_array[ni.number - 1] != 543);
2304 '
2305
2306 # Test code for whether the C compiler supports C11 (global declarations)
2307 ac_c_conftest_c11_globals='
2308 /* Does the compiler advertise C11 conformance? */
2309 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2310 # error "Compiler does not advertise C11 conformance"
2311 #endif
2312
2313 // Check _Alignas.
2314 char _Alignas (double) aligned_as_double;
2315 char _Alignas (0) no_special_alignment;
2316 extern char aligned_as_int;
2317 char _Alignas (0) _Alignas (int) aligned_as_int;
2318
2319 // Check _Alignof.
2320 enum
2321 {
2322 int_alignment = _Alignof (int),
2323 int_array_alignment = _Alignof (int[100]),
2324 char_alignment = _Alignof (char)
2325 };
2326 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2327
2328 // Check _Noreturn.
2329 int _Noreturn does_not_return (void) { for (;;) continue; }
2330
2331 // Check _Static_assert.
2332 struct test_static_assert
2333 {
2334 int x;
2335 _Static_assert (sizeof (int) <= sizeof (long int),
2336 "_Static_assert does not work in struct");
2337 long int y;
2338 };
2339
2340 // Check UTF-8 literals.
2341 #define u8 syntax error!
2342 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2343
2344 // Check duplicate typedefs.
2345 typedef long *long_ptr;
2346 typedef long int *long_ptr;
2347 typedef long_ptr long_ptr;
2348
2349 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2350 struct anonymous
2351 {
2352 union {
2353 struct { int i; int j; };
2354 struct { int k; long int l; } w;
2355 };
2356 int m;
2357 } v1;
2358 '
2359
2360 # Test code for whether the C compiler supports C11 (body of main).
2361 ac_c_conftest_c11_main='
2362 _Static_assert ((offsetof (struct anonymous, i)
2363 == offsetof (struct anonymous, w.k)),
2364 "Anonymous union alignment botch");
2365 v1.i = 2;
2366 v1.w.k = 5;
2367 ok |= v1.i != 5;
2368 '
2369
2370 # Test code for whether the C compiler supports C11 (complete).
2371 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2372 ${ac_c_conftest_c99_globals}
2373 ${ac_c_conftest_c11_globals}
2374
2375 int
2376 main (int argc, char **argv)
2377 {
2378 int ok = 0;
2379 ${ac_c_conftest_c89_main}
2380 ${ac_c_conftest_c99_main}
2381 ${ac_c_conftest_c11_main}
2382 return ok;
2383 }
2384 "
2385
2386 # Test code for whether the C compiler supports C99 (complete).
2387 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2388 ${ac_c_conftest_c99_globals}
2389
2390 int
2391 main (int argc, char **argv)
2392 {
2393 int ok = 0;
2394 ${ac_c_conftest_c89_main}
2395 ${ac_c_conftest_c99_main}
2396 return ok;
2397 }
2398 "
2399
2400 # Test code for whether the C compiler supports C89 (complete).
2401 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2402
2403 int
2404 main (int argc, char **argv)
2405 {
2406 int ok = 0;
2407 ${ac_c_conftest_c89_main}
2408 return ok;
2409 }
2410 "
2411
2412 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2413 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2414 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2415 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2416 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2417 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2418 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2419 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2420 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2421 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2422
2423 # Auxiliary files required by this configure script.
2424 ac_aux_files="config.guess config.sub missing install-sh compile"
2425
2426 # Locations in which to look for auxiliary files.
2427 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2428
2429 # Search for a directory containing all of the required auxiliary files,
2430 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2431 # If we don't find one directory that contains all the files we need,
2432 # we report the set of missing files from the *first* directory in
2433 # $ac_aux_dir_candidates and give up.
2434 ac_missing_aux_files=""
2435 ac_first_candidate=:
2436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438 as_found=false
2439 for as_dir in $ac_aux_dir_candidates
2440 do
2441 IFS=$as_save_IFS
2442 case $as_dir in #(((
2443 '') as_dir=./ ;;
2444 */) ;;
2445 *) as_dir=$as_dir/ ;;
2446 esac
2447 as_found=:
2448
2449 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2450 ac_aux_dir_found=yes
2451 ac_install_sh=
2452 for ac_aux in $ac_aux_files
2453 do
2454 # As a special case, if "install-sh" is required, that requirement
2455 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2456 # and $ac_install_sh is set appropriately for whichever one is found.
2457 if test x"$ac_aux" = x"install-sh"
2458 then
2459 if test -f "${as_dir}install-sh"; then
2460 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2461 ac_install_sh="${as_dir}install-sh -c"
2462 elif test -f "${as_dir}install.sh"; then
2463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2464 ac_install_sh="${as_dir}install.sh -c"
2465 elif test -f "${as_dir}shtool"; then
2466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2467 ac_install_sh="${as_dir}shtool install -c"
2468 else
2469 ac_aux_dir_found=no
2470 if $ac_first_candidate; then
2471 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2472 else
2473 break
2474 fi
2475 fi
2476 else
2477 if test -f "${as_dir}${ac_aux}"; then
2478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2479 else
2480 ac_aux_dir_found=no
2481 if $ac_first_candidate; then
2482 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2483 else
2484 break
2485 fi
2486 fi
2487 fi
2488 done
2489 if test "$ac_aux_dir_found" = yes; then
2490 ac_aux_dir="$as_dir"
2491 break
2492 fi
2493 ac_first_candidate=false
2494
2495 as_found=false
2496 done
2497 IFS=$as_save_IFS
2498 if $as_found
2499 then :
2500
2501 else case e in #(
2502 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2503 esac
2504 fi
2505
2506
2507 # These three variables are undocumented and unsupported,
2508 # and are intended to be withdrawn in a future Autoconf release.
2509 # They can cause serious problems if a builder's source tree is in a directory
2510 # whose full name contains unusual characters.
2511 if test -f "${ac_aux_dir}config.guess"; then
2512 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2513 fi
2514 if test -f "${ac_aux_dir}config.sub"; then
2515 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2516 fi
2517 if test -f "$ac_aux_dir/configure"; then
2518 ac_configure="$SHELL ${ac_aux_dir}configure"
2519 fi
2520
2521 # Check that the precious variables saved in the cache have kept the same
2522 # value.
2523 ac_cache_corrupted=false
2524 for ac_var in $ac_precious_vars; do
2525 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2526 eval ac_new_set=\$ac_env_${ac_var}_set
2527 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2528 eval ac_new_val=\$ac_env_${ac_var}_value
2529 case $ac_old_set,$ac_new_set in
2530 set,)
2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2532 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2533 ac_cache_corrupted=: ;;
2534 ,set)
2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2536 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2537 ac_cache_corrupted=: ;;
2538 ,);;
2539 *)
2540 if test "x$ac_old_val" != "x$ac_new_val"; then
2541 # differences in whitespace do not lead to failure.
2542 ac_old_val_w=`echo x $ac_old_val`
2543 ac_new_val_w=`echo x $ac_new_val`
2544 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2546 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2547 ac_cache_corrupted=:
2548 else
2549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2550 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2551 eval $ac_var=\$ac_old_val
2552 fi
2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2554 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2556 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2557 fi;;
2558 esac
2559 # Pass precious variables to config.status.
2560 if test "$ac_new_set" = set; then
2561 case $ac_new_val in
2562 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2563 *) ac_arg=$ac_var=$ac_new_val ;;
2564 esac
2565 case " $ac_configure_args " in
2566 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2567 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2568 esac
2569 fi
2570 done
2571 if $ac_cache_corrupted; then
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2573 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2575 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2576 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2577 and start over" "$LINENO" 5
2578 fi
2579 ## -------------------- ##
2580 ## Main body of script. ##
2581 ## -------------------- ##
2582
2583 ac_ext=c
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588
2589
2590
2591 ac_config_headers="$ac_config_headers config.h"
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604 # Expand $ac_aux_dir to an absolute path.
2605 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2606
2607 ac_ext=c
2608 ac_cpp='$CPP $CPPFLAGS'
2609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612 if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2614 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 printf %s "checking for $ac_word... " >&6; }
2617 if test ${ac_cv_prog_CC+y}
2618 then :
2619 printf %s "(cached) " >&6
2620 else case e in #(
2621 e) if test -n "$CC"; then
2622 ac_cv_prog_CC="$CC" # Let the user override the test.
2623 else
2624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2625 for as_dir in $PATH
2626 do
2627 IFS=$as_save_IFS
2628 case $as_dir in #(((
2629 '') as_dir=./ ;;
2630 */) ;;
2631 *) as_dir=$as_dir/ ;;
2632 esac
2633 for ac_exec_ext in '' $ac_executable_extensions; do
2634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2635 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2637 break 2
2638 fi
2639 done
2640 done
2641 IFS=$as_save_IFS
2642
2643 fi ;;
2644 esac
2645 fi
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2649 printf "%s\n" "$CC" >&6; }
2650 else
2651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652 printf "%s\n" "no" >&6; }
2653 fi
2654
2655
2656 fi
2657 if test -z "$ac_cv_prog_CC"; then
2658 ac_ct_CC=$CC
2659 # Extract the first word of "gcc", so it can be a program name with args.
2660 set dummy gcc; ac_word=$2
2661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2662 printf %s "checking for $ac_word... " >&6; }
2663 if test ${ac_cv_prog_ac_ct_CC+y}
2664 then :
2665 printf %s "(cached) " >&6
2666 else case e in #(
2667 e) if test -n "$ac_ct_CC"; then
2668 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2669 else
2670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2671 for as_dir in $PATH
2672 do
2673 IFS=$as_save_IFS
2674 case $as_dir in #(((
2675 '') as_dir=./ ;;
2676 */) ;;
2677 *) as_dir=$as_dir/ ;;
2678 esac
2679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2681 ac_cv_prog_ac_ct_CC="gcc"
2682 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2683 break 2
2684 fi
2685 done
2686 done
2687 IFS=$as_save_IFS
2688
2689 fi ;;
2690 esac
2691 fi
2692 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2693 if test -n "$ac_ct_CC"; then
2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2695 printf "%s\n" "$ac_ct_CC" >&6; }
2696 else
2697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 printf "%s\n" "no" >&6; }
2699 fi
2700
2701 if test "x$ac_ct_CC" = x; then
2702 CC=""
2703 else
2704 case $cross_compiling:$ac_tool_warned in
2705 yes:)
2706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2707 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2708 ac_tool_warned=yes ;;
2709 esac
2710 CC=$ac_ct_CC
2711 fi
2712 else
2713 CC="$ac_cv_prog_CC"
2714 fi
2715
2716 if test -z "$CC"; then
2717 if test -n "$ac_tool_prefix"; then
2718 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2719 set dummy ${ac_tool_prefix}cc; ac_word=$2
2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2721 printf %s "checking for $ac_word... " >&6; }
2722 if test ${ac_cv_prog_CC+y}
2723 then :
2724 printf %s "(cached) " >&6
2725 else case e in #(
2726 e) if test -n "$CC"; then
2727 ac_cv_prog_CC="$CC" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732 IFS=$as_save_IFS
2733 case $as_dir in #(((
2734 '') as_dir=./ ;;
2735 */) ;;
2736 *) as_dir=$as_dir/ ;;
2737 esac
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2740 ac_cv_prog_CC="${ac_tool_prefix}cc"
2741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2742 break 2
2743 fi
2744 done
2745 done
2746 IFS=$as_save_IFS
2747
2748 fi ;;
2749 esac
2750 fi
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2754 printf "%s\n" "$CC" >&6; }
2755 else
2756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 printf "%s\n" "no" >&6; }
2758 fi
2759
2760
2761 fi
2762 fi
2763 if test -z "$CC"; then
2764 # Extract the first word of "cc", so it can be a program name with args.
2765 set dummy cc; ac_word=$2
2766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 printf %s "checking for $ac_word... " >&6; }
2768 if test ${ac_cv_prog_CC+y}
2769 then :
2770 printf %s "(cached) " >&6
2771 else case e in #(
2772 e) if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2774 else
2775 ac_prog_rejected=no
2776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2777 for as_dir in $PATH
2778 do
2779 IFS=$as_save_IFS
2780 case $as_dir in #(((
2781 '') as_dir=./ ;;
2782 */) ;;
2783 *) as_dir=$as_dir/ ;;
2784 esac
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2787 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2788 ac_prog_rejected=yes
2789 continue
2790 fi
2791 ac_cv_prog_CC="cc"
2792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795 done
2796 done
2797 IFS=$as_save_IFS
2798
2799 if test $ac_prog_rejected = yes; then
2800 # We found a bogon in the path, so make sure we never use it.
2801 set dummy $ac_cv_prog_CC
2802 shift
2803 if test $# != 0; then
2804 # We chose a different compiler from the bogus one.
2805 # However, it has the same basename, so the bogon will be chosen
2806 # first if we set CC to just the basename; use the full file name.
2807 shift
2808 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2809 fi
2810 fi
2811 fi ;;
2812 esac
2813 fi
2814 CC=$ac_cv_prog_CC
2815 if test -n "$CC"; then
2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2817 printf "%s\n" "$CC" >&6; }
2818 else
2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 printf "%s\n" "no" >&6; }
2821 fi
2822
2823
2824 fi
2825 if test -z "$CC"; then
2826 if test -n "$ac_tool_prefix"; then
2827 for ac_prog in cl.exe
2828 do
2829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2832 printf %s "checking for $ac_word... " >&6; }
2833 if test ${ac_cv_prog_CC+y}
2834 then :
2835 printf %s "(cached) " >&6
2836 else case e in #(
2837 e) if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843 IFS=$as_save_IFS
2844 case $as_dir in #(((
2845 '') as_dir=./ ;;
2846 */) ;;
2847 *) as_dir=$as_dir/ ;;
2848 esac
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2851 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2853 break 2
2854 fi
2855 done
2856 done
2857 IFS=$as_save_IFS
2858
2859 fi ;;
2860 esac
2861 fi
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865 printf "%s\n" "$CC" >&6; }
2866 else
2867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 printf "%s\n" "no" >&6; }
2869 fi
2870
2871
2872 test -n "$CC" && break
2873 done
2874 fi
2875 if test -z "$CC"; then
2876 ac_ct_CC=$CC
2877 for ac_prog in cl.exe
2878 do
2879 # Extract the first word of "$ac_prog", so it can be a program name with args.
2880 set dummy $ac_prog; ac_word=$2
2881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 printf %s "checking for $ac_word... " >&6; }
2883 if test ${ac_cv_prog_ac_ct_CC+y}
2884 then :
2885 printf %s "(cached) " >&6
2886 else case e in #(
2887 e) if test -n "$ac_ct_CC"; then
2888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2889 else
2890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 for as_dir in $PATH
2892 do
2893 IFS=$as_save_IFS
2894 case $as_dir in #(((
2895 '') as_dir=./ ;;
2896 */) ;;
2897 *) as_dir=$as_dir/ ;;
2898 esac
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2901 ac_cv_prog_ac_ct_CC="$ac_prog"
2902 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905 done
2906 done
2907 IFS=$as_save_IFS
2908
2909 fi ;;
2910 esac
2911 fi
2912 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2913 if test -n "$ac_ct_CC"; then
2914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2915 printf "%s\n" "$ac_ct_CC" >&6; }
2916 else
2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918 printf "%s\n" "no" >&6; }
2919 fi
2920
2921
2922 test -n "$ac_ct_CC" && break
2923 done
2924
2925 if test "x$ac_ct_CC" = x; then
2926 CC=""
2927 else
2928 case $cross_compiling:$ac_tool_warned in
2929 yes:)
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2933 esac
2934 CC=$ac_ct_CC
2935 fi
2936 fi
2937
2938 fi
2939 if test -z "$CC"; then
2940 if test -n "$ac_tool_prefix"; then
2941 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2942 set dummy ${ac_tool_prefix}clang; ac_word=$2
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 printf %s "checking for $ac_word... " >&6; }
2945 if test ${ac_cv_prog_CC+y}
2946 then :
2947 printf %s "(cached) " >&6
2948 else case e in #(
2949 e) if test -n "$CC"; then
2950 ac_cv_prog_CC="$CC" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 case $as_dir in #(((
2957 '') as_dir=./ ;;
2958 */) ;;
2959 *) as_dir=$as_dir/ ;;
2960 esac
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_CC="${ac_tool_prefix}clang"
2964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967 done
2968 done
2969 IFS=$as_save_IFS
2970
2971 fi ;;
2972 esac
2973 fi
2974 CC=$ac_cv_prog_CC
2975 if test -n "$CC"; then
2976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2977 printf "%s\n" "$CC" >&6; }
2978 else
2979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 printf "%s\n" "no" >&6; }
2981 fi
2982
2983
2984 fi
2985 if test -z "$ac_cv_prog_CC"; then
2986 ac_ct_CC=$CC
2987 # Extract the first word of "clang", so it can be a program name with args.
2988 set dummy clang; ac_word=$2
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 printf %s "checking for $ac_word... " >&6; }
2991 if test ${ac_cv_prog_ac_ct_CC+y}
2992 then :
2993 printf %s "(cached) " >&6
2994 else case e in #(
2995 e) if test -n "$ac_ct_CC"; then
2996 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2997 else
2998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999 for as_dir in $PATH
3000 do
3001 IFS=$as_save_IFS
3002 case $as_dir in #(((
3003 '') as_dir=./ ;;
3004 */) ;;
3005 *) as_dir=$as_dir/ ;;
3006 esac
3007 for ac_exec_ext in '' $ac_executable_extensions; do
3008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3009 ac_cv_prog_ac_ct_CC="clang"
3010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3011 break 2
3012 fi
3013 done
3014 done
3015 IFS=$as_save_IFS
3016
3017 fi ;;
3018 esac
3019 fi
3020 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3021 if test -n "$ac_ct_CC"; then
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3023 printf "%s\n" "$ac_ct_CC" >&6; }
3024 else
3025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 printf "%s\n" "no" >&6; }
3027 fi
3028
3029 if test "x$ac_ct_CC" = x; then
3030 CC=""
3031 else
3032 case $cross_compiling:$ac_tool_warned in
3033 yes:)
3034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036 ac_tool_warned=yes ;;
3037 esac
3038 CC=$ac_ct_CC
3039 fi
3040 else
3041 CC="$ac_cv_prog_CC"
3042 fi
3043
3044 fi
3045
3046
3047 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3048 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3049 as_fn_error $? "no acceptable C compiler found in \$PATH
3050 See 'config.log' for more details" "$LINENO" 5; }
3051
3052 # Provide some information about the compiler.
3053 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3054 set X $ac_compile
3055 ac_compiler=$2
3056 for ac_option in --version -v -V -qversion -version; do
3057 { { ac_try="$ac_compiler $ac_option >&5"
3058 case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061 esac
3062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3063 printf "%s\n" "$ac_try_echo"; } >&5
3064 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3065 ac_status=$?
3066 if test -s conftest.err; then
3067 sed '10a\
3068 ... rest of stderr output deleted ...
3069 10q' conftest.err >conftest.er1
3070 cat conftest.er1 >&5
3071 fi
3072 rm -f conftest.er1 conftest.err
3073 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3074 test $ac_status = 0; }
3075 done
3076
3077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3078 /* end confdefs.h. */
3079
3080 int
3081 main (void)
3082 {
3083
3084 ;
3085 return 0;
3086 }
3087 _ACEOF
3088 ac_clean_files_save=$ac_clean_files
3089 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3090 # Try to create an executable without -o first, disregard a.out.
3091 # It will help us diagnose broken compilers, and finding out an intuition
3092 # of exeext.
3093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3094 printf %s "checking whether the C compiler works... " >&6; }
3095 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3096
3097 # The possible output files:
3098 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3099
3100 ac_rmfiles=
3101 for ac_file in $ac_files
3102 do
3103 case $ac_file in
3104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3105 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3106 esac
3107 done
3108 rm -f $ac_rmfiles
3109
3110 if { { ac_try="$ac_link_default"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3116 printf "%s\n" "$ac_try_echo"; } >&5
3117 (eval "$ac_link_default") 2>&5
3118 ac_status=$?
3119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3120 test $ac_status = 0; }
3121 then :
3122 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3123 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3124 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3125 # so that the user can short-circuit this test for compilers unknown to
3126 # Autoconf.
3127 for ac_file in $ac_files ''
3128 do
3129 test -f "$ac_file" || continue
3130 case $ac_file in
3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3132 ;;
3133 [ab].out )
3134 # We found the default executable, but exeext='' is most
3135 # certainly right.
3136 break;;
3137 *.* )
3138 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3139 then :; else
3140 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3141 fi
3142 # We set ac_cv_exeext here because the later test for it is not
3143 # safe: cross compilers may not add the suffix if given an '-o'
3144 # argument, so we may need to know it at that point already.
3145 # Even if this section looks crufty: it has the advantage of
3146 # actually working.
3147 break;;
3148 * )
3149 break;;
3150 esac
3151 done
3152 test "$ac_cv_exeext" = no && ac_cv_exeext=
3153
3154 else case e in #(
3155 e) ac_file='' ;;
3156 esac
3157 fi
3158 if test -z "$ac_file"
3159 then :
3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 printf "%s\n" "no" >&6; }
3162 printf "%s\n" "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3164
3165 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3166 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3167 as_fn_error 77 "C compiler cannot create executables
3168 See 'config.log' for more details" "$LINENO" 5; }
3169 else case e in #(
3170 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3171 printf "%s\n" "yes" >&6; } ;;
3172 esac
3173 fi
3174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3175 printf %s "checking for C compiler default output file name... " >&6; }
3176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3177 printf "%s\n" "$ac_file" >&6; }
3178 ac_exeext=$ac_cv_exeext
3179
3180 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3181 ac_clean_files=$ac_clean_files_save
3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3183 printf %s "checking for suffix of executables... " >&6; }
3184 if { { ac_try="$ac_link"
3185 case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 printf "%s\n" "$ac_try_echo"; } >&5
3191 (eval "$ac_link") 2>&5
3192 ac_status=$?
3193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }
3195 then :
3196 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3197 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3198 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3199 # 'rm'.
3200 for ac_file in conftest.exe conftest conftest.*; do
3201 test -f "$ac_file" || continue
3202 case $ac_file in
3203 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3204 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3205 break;;
3206 * ) break;;
3207 esac
3208 done
3209 else case e in #(
3210 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3211 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3212 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3213 See 'config.log' for more details" "$LINENO" 5; } ;;
3214 esac
3215 fi
3216 rm -f conftest conftest$ac_cv_exeext
3217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3218 printf "%s\n" "$ac_cv_exeext" >&6; }
3219
3220 rm -f conftest.$ac_ext
3221 EXEEXT=$ac_cv_exeext
3222 ac_exeext=$EXEEXT
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3225 #include <stdio.h>
3226 int
3227 main (void)
3228 {
3229 FILE *f = fopen ("conftest.out", "w");
3230 if (!f)
3231 return 1;
3232 return ferror (f) || fclose (f) != 0;
3233
3234 ;
3235 return 0;
3236 }
3237 _ACEOF
3238 ac_clean_files="$ac_clean_files conftest.out"
3239 # Check that the compiler produces executables we can run. If not, either
3240 # the compiler is broken, or we cross compile.
3241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3242 printf %s "checking whether we are cross compiling... " >&6; }
3243 if test "$cross_compiling" != yes; then
3244 { { ac_try="$ac_link"
3245 case "(($ac_try" in
3246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3247 *) ac_try_echo=$ac_try;;
3248 esac
3249 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3250 printf "%s\n" "$ac_try_echo"; } >&5
3251 (eval "$ac_link") 2>&5
3252 ac_status=$?
3253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3254 test $ac_status = 0; }
3255 if { ac_try='./conftest$ac_cv_exeext'
3256 { { case "(($ac_try" in
3257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3258 *) ac_try_echo=$ac_try;;
3259 esac
3260 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3261 printf "%s\n" "$ac_try_echo"; } >&5
3262 (eval "$ac_try") 2>&5
3263 ac_status=$?
3264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3265 test $ac_status = 0; }; }; then
3266 cross_compiling=no
3267 else
3268 if test "$cross_compiling" = maybe; then
3269 cross_compiling=yes
3270 else
3271 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3272 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3273 as_fn_error 77 "cannot run C compiled programs.
3274 If you meant to cross compile, use '--host'.
3275 See 'config.log' for more details" "$LINENO" 5; }
3276 fi
3277 fi
3278 fi
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3280 printf "%s\n" "$cross_compiling" >&6; }
3281
3282 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3283 conftest.o conftest.obj conftest.out
3284 ac_clean_files=$ac_clean_files_save
3285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3286 printf %s "checking for suffix of object files... " >&6; }
3287 if test ${ac_cv_objext+y}
3288 then :
3289 printf %s "(cached) " >&6
3290 else case e in #(
3291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3292 /* end confdefs.h. */
3293
3294 int
3295 main (void)
3296 {
3297
3298 ;
3299 return 0;
3300 }
3301 _ACEOF
3302 rm -f conftest.o conftest.obj
3303 if { { ac_try="$ac_compile"
3304 case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307 esac
3308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309 printf "%s\n" "$ac_try_echo"; } >&5
3310 (eval "$ac_compile") 2>&5
3311 ac_status=$?
3312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313 test $ac_status = 0; }
3314 then :
3315 for ac_file in conftest.o conftest.obj conftest.*; do
3316 test -f "$ac_file" || continue;
3317 case $ac_file in
3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3320 break;;
3321 esac
3322 done
3323 else case e in #(
3324 e) printf "%s\n" "$as_me: failed program was:" >&5
3325 sed 's/^/| /' conftest.$ac_ext >&5
3326
3327 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3328 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3329 as_fn_error $? "cannot compute suffix of object files: cannot compile
3330 See 'config.log' for more details" "$LINENO" 5; } ;;
3331 esac
3332 fi
3333 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3334 esac
3335 fi
3336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3337 printf "%s\n" "$ac_cv_objext" >&6; }
3338 OBJEXT=$ac_cv_objext
3339 ac_objext=$OBJEXT
3340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3341 printf %s "checking whether the compiler supports GNU C... " >&6; }
3342 if test ${ac_cv_c_compiler_gnu+y}
3343 then :
3344 printf %s "(cached) " >&6
3345 else case e in #(
3346 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3347 /* end confdefs.h. */
3348
3349 int
3350 main (void)
3351 {
3352 #ifndef __GNUC__
3353 choke me
3354 #endif
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 if ac_fn_c_try_compile "$LINENO"
3361 then :
3362 ac_compiler_gnu=yes
3363 else case e in #(
3364 e) ac_compiler_gnu=no ;;
3365 esac
3366 fi
3367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3369 ;;
3370 esac
3371 fi
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3373 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3375
3376 if test $ac_compiler_gnu = yes; then
3377 GCC=yes
3378 else
3379 GCC=
3380 fi
3381 ac_test_CFLAGS=${CFLAGS+y}
3382 ac_save_CFLAGS=$CFLAGS
3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3384 printf %s "checking whether $CC accepts -g... " >&6; }
3385 if test ${ac_cv_prog_cc_g+y}
3386 then :
3387 printf %s "(cached) " >&6
3388 else case e in #(
3389 e) ac_save_c_werror_flag=$ac_c_werror_flag
3390 ac_c_werror_flag=yes
3391 ac_cv_prog_cc_g=no
3392 CFLAGS="-g"
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3395
3396 int
3397 main (void)
3398 {
3399
3400 ;
3401 return 0;
3402 }
3403 _ACEOF
3404 if ac_fn_c_try_compile "$LINENO"
3405 then :
3406 ac_cv_prog_cc_g=yes
3407 else case e in #(
3408 e) CFLAGS=""
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3411
3412 int
3413 main (void)
3414 {
3415
3416 ;
3417 return 0;
3418 }
3419 _ACEOF
3420 if ac_fn_c_try_compile "$LINENO"
3421 then :
3422
3423 else case e in #(
3424 e) ac_c_werror_flag=$ac_save_c_werror_flag
3425 CFLAGS="-g"
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3428
3429 int
3430 main (void)
3431 {
3432
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 if ac_fn_c_try_compile "$LINENO"
3438 then :
3439 ac_cv_prog_cc_g=yes
3440 fi
3441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3442 esac
3443 fi
3444 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3445 esac
3446 fi
3447 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3448 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3449 esac
3450 fi
3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3452 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3453 if test $ac_test_CFLAGS; then
3454 CFLAGS=$ac_save_CFLAGS
3455 elif test $ac_cv_prog_cc_g = yes; then
3456 if test "$GCC" = yes; then
3457 CFLAGS="-g -O2"
3458 else
3459 CFLAGS="-g"
3460 fi
3461 else
3462 if test "$GCC" = yes; then
3463 CFLAGS="-O2"
3464 else
3465 CFLAGS=
3466 fi
3467 fi
3468 ac_prog_cc_stdc=no
3469 if test x$ac_prog_cc_stdc = xno
3470 then :
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3472 printf %s "checking for $CC option to enable C11 features... " >&6; }
3473 if test ${ac_cv_prog_cc_c11+y}
3474 then :
3475 printf %s "(cached) " >&6
3476 else case e in #(
3477 e) ac_cv_prog_cc_c11=no
3478 ac_save_CC=$CC
3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3480 /* end confdefs.h. */
3481 $ac_c_conftest_c11_program
3482 _ACEOF
3483 for ac_arg in '' -std=gnu11
3484 do
3485 CC="$ac_save_CC $ac_arg"
3486 if ac_fn_c_try_compile "$LINENO"
3487 then :
3488 ac_cv_prog_cc_c11=$ac_arg
3489 fi
3490 rm -f core conftest.err conftest.$ac_objext conftest.beam
3491 test "x$ac_cv_prog_cc_c11" != "xno" && break
3492 done
3493 rm -f conftest.$ac_ext
3494 CC=$ac_save_CC ;;
3495 esac
3496 fi
3497
3498 if test "x$ac_cv_prog_cc_c11" = xno
3499 then :
3500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3501 printf "%s\n" "unsupported" >&6; }
3502 else case e in #(
3503 e) if test "x$ac_cv_prog_cc_c11" = x
3504 then :
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3506 printf "%s\n" "none needed" >&6; }
3507 else case e in #(
3508 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3509 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3510 CC="$CC $ac_cv_prog_cc_c11" ;;
3511 esac
3512 fi
3513 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3514 ac_prog_cc_stdc=c11 ;;
3515 esac
3516 fi
3517 fi
3518 if test x$ac_prog_cc_stdc = xno
3519 then :
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3521 printf %s "checking for $CC option to enable C99 features... " >&6; }
3522 if test ${ac_cv_prog_cc_c99+y}
3523 then :
3524 printf %s "(cached) " >&6
3525 else case e in #(
3526 e) ac_cv_prog_cc_c99=no
3527 ac_save_CC=$CC
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3530 $ac_c_conftest_c99_program
3531 _ACEOF
3532 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3533 do
3534 CC="$ac_save_CC $ac_arg"
3535 if ac_fn_c_try_compile "$LINENO"
3536 then :
3537 ac_cv_prog_cc_c99=$ac_arg
3538 fi
3539 rm -f core conftest.err conftest.$ac_objext conftest.beam
3540 test "x$ac_cv_prog_cc_c99" != "xno" && break
3541 done
3542 rm -f conftest.$ac_ext
3543 CC=$ac_save_CC ;;
3544 esac
3545 fi
3546
3547 if test "x$ac_cv_prog_cc_c99" = xno
3548 then :
3549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3550 printf "%s\n" "unsupported" >&6; }
3551 else case e in #(
3552 e) if test "x$ac_cv_prog_cc_c99" = x
3553 then :
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3555 printf "%s\n" "none needed" >&6; }
3556 else case e in #(
3557 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3558 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3559 CC="$CC $ac_cv_prog_cc_c99" ;;
3560 esac
3561 fi
3562 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3563 ac_prog_cc_stdc=c99 ;;
3564 esac
3565 fi
3566 fi
3567 if test x$ac_prog_cc_stdc = xno
3568 then :
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3570 printf %s "checking for $CC option to enable C89 features... " >&6; }
3571 if test ${ac_cv_prog_cc_c89+y}
3572 then :
3573 printf %s "(cached) " >&6
3574 else case e in #(
3575 e) ac_cv_prog_cc_c89=no
3576 ac_save_CC=$CC
3577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3578 /* end confdefs.h. */
3579 $ac_c_conftest_c89_program
3580 _ACEOF
3581 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3582 do
3583 CC="$ac_save_CC $ac_arg"
3584 if ac_fn_c_try_compile "$LINENO"
3585 then :
3586 ac_cv_prog_cc_c89=$ac_arg
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext conftest.beam
3589 test "x$ac_cv_prog_cc_c89" != "xno" && break
3590 done
3591 rm -f conftest.$ac_ext
3592 CC=$ac_save_CC ;;
3593 esac
3594 fi
3595
3596 if test "x$ac_cv_prog_cc_c89" = xno
3597 then :
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3599 printf "%s\n" "unsupported" >&6; }
3600 else case e in #(
3601 e) if test "x$ac_cv_prog_cc_c89" = x
3602 then :
3603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3604 printf "%s\n" "none needed" >&6; }
3605 else case e in #(
3606 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3607 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3608 CC="$CC $ac_cv_prog_cc_c89" ;;
3609 esac
3610 fi
3611 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3612 ac_prog_cc_stdc=c89 ;;
3613 esac
3614 fi
3615 fi
3616
3617 ac_ext=c
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623
3624 ac_ext=c
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3630 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3631 if test ${am_cv_prog_cc_c_o+y}
3632 then :
3633 printf %s "(cached) " >&6
3634 else case e in #(
3635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3637
3638 int
3639 main (void)
3640 {
3641
3642 ;
3643 return 0;
3644 }
3645 _ACEOF
3646 # Make sure it works both with $CC and with simple cc.
3647 # Following AC_PROG_CC_C_O, we do the test twice because some
3648 # compilers refuse to overwrite an existing .o file with -o,
3649 # though they will create one.
3650 am_cv_prog_cc_c_o=yes
3651 for am_i in 1 2; do
3652 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3653 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3654 ac_status=$?
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } \
3657 && test -f conftest2.$ac_objext; then
3658 : OK
3659 else
3660 am_cv_prog_cc_c_o=no
3661 break
3662 fi
3663 done
3664 rm -f core conftest*
3665 unset am_i ;;
3666 esac
3667 fi
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3669 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3670 if test "$am_cv_prog_cc_c_o" != yes; then
3671 # Losing compiler, so override with the script.
3672 # FIXME: It is wrong to rewrite CC.
3673 # But if we don't then we get into trouble of one sort or another.
3674 # A longer-term fix would be to have automake use am__CC in this case,
3675 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3676 CC="$am_aux_dir/compile $CC"
3677 fi
3678 ac_ext=c
3679 ac_cpp='$CPP $CPPFLAGS'
3680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3683
3684
3685
3686 ac_header= ac_cache=
3687 for ac_item in $ac_header_c_list
3688 do
3689 if test $ac_cache; then
3690 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3691 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3692 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3693 fi
3694 ac_header= ac_cache=
3695 elif test $ac_header; then
3696 ac_cache=$ac_item
3697 else
3698 ac_header=$ac_item
3699 fi
3700 done
3701
3702
3703
3704
3705
3706
3707
3708
3709 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3710 then :
3711
3712 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3713
3714 fi
3715
3716
3717
3718
3719
3720
3721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3722 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3723 if test ${ac_cv_safe_to_define___extensions__+y}
3724 then :
3725 printf %s "(cached) " >&6
3726 else case e in #(
3727 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3729
3730 # define __EXTENSIONS__ 1
3731 $ac_includes_default
3732 int
3733 main (void)
3734 {
3735
3736 ;
3737 return 0;
3738 }
3739 _ACEOF
3740 if ac_fn_c_try_compile "$LINENO"
3741 then :
3742 ac_cv_safe_to_define___extensions__=yes
3743 else case e in #(
3744 e) ac_cv_safe_to_define___extensions__=no ;;
3745 esac
3746 fi
3747 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3748 esac
3749 fi
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3751 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3752
3753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3754 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3755 if test ${ac_cv_should_define__xopen_source+y}
3756 then :
3757 printf %s "(cached) " >&6
3758 else case e in #(
3759 e) ac_cv_should_define__xopen_source=no
3760 if test $ac_cv_header_wchar_h = yes
3761 then :
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764
3765 #include <wchar.h>
3766 mbstate_t x;
3767 int
3768 main (void)
3769 {
3770
3771 ;
3772 return 0;
3773 }
3774 _ACEOF
3775 if ac_fn_c_try_compile "$LINENO"
3776 then :
3777
3778 else case e in #(
3779 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781
3782 #define _XOPEN_SOURCE 500
3783 #include <wchar.h>
3784 mbstate_t x;
3785 int
3786 main (void)
3787 {
3788
3789 ;
3790 return 0;
3791 }
3792 _ACEOF
3793 if ac_fn_c_try_compile "$LINENO"
3794 then :
3795 ac_cv_should_define__xopen_source=yes
3796 fi
3797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3798 esac
3799 fi
3800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3801 fi ;;
3802 esac
3803 fi
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3805 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3806
3807 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3808
3809 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3810
3811 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3812
3813 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3814
3815 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3816
3817 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3818
3819 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3820
3821 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3822
3823 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3824
3825 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3826
3827 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3828
3829 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3830
3831 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3832
3833 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3834
3835 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3836
3837 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3838
3839 if test $ac_cv_header_minix_config_h = yes
3840 then :
3841 MINIX=yes
3842 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3843
3844 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3845
3846 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3847
3848 else case e in #(
3849 e) MINIX= ;;
3850 esac
3851 fi
3852 if test $ac_cv_safe_to_define___extensions__ = yes
3853 then :
3854 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3855
3856 fi
3857 if test $ac_cv_should_define__xopen_source = yes
3858 then :
3859 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3860
3861 fi
3862
3863
3864 # Initialize Automake
3865 am__api_version='1.16'
3866
3867
3868 # Find a good install program. We prefer a C program (faster),
3869 # so one script is as good as another. But avoid the broken or
3870 # incompatible versions:
3871 # SysV /etc/install, /usr/sbin/install
3872 # SunOS /usr/etc/install
3873 # IRIX /sbin/install
3874 # AIX /bin/install
3875 # AmigaOS /C/install, which installs bootblocks on floppy discs
3876 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3877 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3878 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3879 # OS/2's system install, which has a completely different semantic
3880 # ./install, which can be erroneously created by make from ./install.sh.
3881 # Reject install programs that cannot install multiple files.
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3883 printf %s "checking for a BSD-compatible install... " >&6; }
3884 if test -z "$INSTALL"; then
3885 if test ${ac_cv_path_install+y}
3886 then :
3887 printf %s "(cached) " >&6
3888 else case e in #(
3889 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3890 for as_dir in $PATH
3891 do
3892 IFS=$as_save_IFS
3893 case $as_dir in #(((
3894 '') as_dir=./ ;;
3895 */) ;;
3896 *) as_dir=$as_dir/ ;;
3897 esac
3898 # Account for fact that we put trailing slashes in our PATH walk.
3899 case $as_dir in #((
3900 ./ | /[cC]/* | \
3901 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3902 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3903 /usr/ucb/* ) ;;
3904 *)
3905 # OSF1 and SCO ODT 3.0 have their own names for install.
3906 # Don't use installbsd from OSF since it installs stuff as root
3907 # by default.
3908 for ac_prog in ginstall scoinst install; do
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3911 if test $ac_prog = install &&
3912 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3913 # AIX install. It has an incompatible calling convention.
3914 :
3915 elif test $ac_prog = install &&
3916 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3917 # program-specific install script used by HP pwplus--don't use.
3918 :
3919 else
3920 rm -rf conftest.one conftest.two conftest.dir
3921 echo one > conftest.one
3922 echo two > conftest.two
3923 mkdir conftest.dir
3924 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3925 test -s conftest.one && test -s conftest.two &&
3926 test -s conftest.dir/conftest.one &&
3927 test -s conftest.dir/conftest.two
3928 then
3929 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3930 break 3
3931 fi
3932 fi
3933 fi
3934 done
3935 done
3936 ;;
3937 esac
3938
3939 done
3940 IFS=$as_save_IFS
3941
3942 rm -rf conftest.one conftest.two conftest.dir
3943 ;;
3944 esac
3945 fi
3946 if test ${ac_cv_path_install+y}; then
3947 INSTALL=$ac_cv_path_install
3948 else
3949 # As a last resort, use the slow shell script. Don't cache a
3950 # value for INSTALL within a source directory, because that will
3951 # break other packages using the cache if that directory is
3952 # removed, or if the value is a relative name.
3953 INSTALL=$ac_install_sh
3954 fi
3955 fi
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3957 printf "%s\n" "$INSTALL" >&6; }
3958
3959 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3960 # It thinks the first close brace ends the variable substitution.
3961 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3962
3963 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3964
3965 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3966
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3968 printf %s "checking whether build environment is sane... " >&6; }
3969 # Reject unsafe characters in $srcdir or the absolute working directory
3970 # name. Accept space and tab only in the latter.
3971 am_lf='
3972 '
3973 case `pwd` in
3974 *[\\\"\#\$\&\'\`$am_lf]*)
3975 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3976 esac
3977 case $srcdir in
3978 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3979 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3980 esac
3981
3982 # Do 'set' in a subshell so we don't clobber the current shell's
3983 # arguments. Must try -L first in case configure is actually a
3984 # symlink; some systems play weird games with the mod time of symlinks
3985 # (eg FreeBSD returns the mod time of the symlink's containing
3986 # directory).
3987 if (
3988 am_has_slept=no
3989 for am_try in 1 2; do
3990 echo "timestamp, slept: $am_has_slept" > conftest.file
3991 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3992 if test "$*" = "X"; then
3993 # -L didn't work.
3994 set X `ls -t "$srcdir/configure" conftest.file`
3995 fi
3996 if test "$*" != "X $srcdir/configure conftest.file" \
3997 && test "$*" != "X conftest.file $srcdir/configure"; then
3998
3999 # If neither matched, then we have a broken ls. This can happen
4000 # if, for instance, CONFIG_SHELL is bash and it inherits a
4001 # broken ls alias from the environment. This has actually
4002 # happened. Such a system could not be considered "sane".
4003 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4004 alias in your environment" "$LINENO" 5
4005 fi
4006 if test "$2" = conftest.file || test $am_try -eq 2; then
4007 break
4008 fi
4009 # Just in case.
4010 sleep 1
4011 am_has_slept=yes
4012 done
4013 test "$2" = conftest.file
4014 )
4015 then
4016 # Ok.
4017 :
4018 else
4019 as_fn_error $? "newly created file is older than distributed files!
4020 Check your system clock" "$LINENO" 5
4021 fi
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4023 printf "%s\n" "yes" >&6; }
4024 # If we didn't sleep, we still need to ensure time stamps of config.status and
4025 # generated files are strictly newer.
4026 am_sleep_pid=
4027 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4028 ( sleep 1 ) &
4029 am_sleep_pid=$!
4030 fi
4031
4032 rm -f conftest.file
4033
4034 test "$program_prefix" != NONE &&
4035 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4036 # Use a double $ so make ignores it.
4037 test "$program_suffix" != NONE &&
4038 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4039 # Double any \ or $.
4040 # By default was 's,x,x', remove it if useless.
4041 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4042 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4043
4044
4045 if test x"${MISSING+set}" != xset; then
4046 MISSING="\${SHELL} '$am_aux_dir/missing'"
4047 fi
4048 # Use eval to expand $SHELL
4049 if eval "$MISSING --is-lightweight"; then
4050 am_missing_run="$MISSING "
4051 else
4052 am_missing_run=
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4054 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4055 fi
4056
4057 if test x"${install_sh+set}" != xset; then
4058 case $am_aux_dir in
4059 *\ * | *\ *)
4060 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4061 *)
4062 install_sh="\${SHELL} $am_aux_dir/install-sh"
4063 esac
4064 fi
4065
4066 # Installed binaries are usually stripped using 'strip' when the user
4067 # run "make install-strip". However 'strip' might not be the right
4068 # tool to use in cross-compilation environments, therefore Automake
4069 # will honor the 'STRIP' environment variable to overrule this program.
4070 if test "$cross_compiling" != no; then
4071 if test -n "$ac_tool_prefix"; then
4072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4073 set dummy ${ac_tool_prefix}strip; ac_word=$2
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4075 printf %s "checking for $ac_word... " >&6; }
4076 if test ${ac_cv_prog_STRIP+y}
4077 then :
4078 printf %s "(cached) " >&6
4079 else case e in #(
4080 e) if test -n "$STRIP"; then
4081 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4082 else
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH
4085 do
4086 IFS=$as_save_IFS
4087 case $as_dir in #(((
4088 '') as_dir=./ ;;
4089 */) ;;
4090 *) as_dir=$as_dir/ ;;
4091 esac
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4095 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4096 break 2
4097 fi
4098 done
4099 done
4100 IFS=$as_save_IFS
4101
4102 fi ;;
4103 esac
4104 fi
4105 STRIP=$ac_cv_prog_STRIP
4106 if test -n "$STRIP"; then
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4108 printf "%s\n" "$STRIP" >&6; }
4109 else
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 printf "%s\n" "no" >&6; }
4112 fi
4113
4114
4115 fi
4116 if test -z "$ac_cv_prog_STRIP"; then
4117 ac_ct_STRIP=$STRIP
4118 # Extract the first word of "strip", so it can be a program name with args.
4119 set dummy strip; ac_word=$2
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 printf %s "checking for $ac_word... " >&6; }
4122 if test ${ac_cv_prog_ac_ct_STRIP+y}
4123 then :
4124 printf %s "(cached) " >&6
4125 else case e in #(
4126 e) if test -n "$ac_ct_STRIP"; then
4127 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4128 else
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 for as_dir in $PATH
4131 do
4132 IFS=$as_save_IFS
4133 case $as_dir in #(((
4134 '') as_dir=./ ;;
4135 */) ;;
4136 *) as_dir=$as_dir/ ;;
4137 esac
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4140 ac_cv_prog_ac_ct_STRIP="strip"
4141 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4142 break 2
4143 fi
4144 done
4145 done
4146 IFS=$as_save_IFS
4147
4148 fi ;;
4149 esac
4150 fi
4151 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4152 if test -n "$ac_ct_STRIP"; then
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4154 printf "%s\n" "$ac_ct_STRIP" >&6; }
4155 else
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 printf "%s\n" "no" >&6; }
4158 fi
4159
4160 if test "x$ac_ct_STRIP" = x; then
4161 STRIP=":"
4162 else
4163 case $cross_compiling:$ac_tool_warned in
4164 yes:)
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4166 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4167 ac_tool_warned=yes ;;
4168 esac
4169 STRIP=$ac_ct_STRIP
4170 fi
4171 else
4172 STRIP="$ac_cv_prog_STRIP"
4173 fi
4174
4175 fi
4176 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4177
4178
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4180 printf %s "checking for a race-free mkdir -p... " >&6; }
4181 if test -z "$MKDIR_P"; then
4182 if test ${ac_cv_path_mkdir+y}
4183 then :
4184 printf %s "(cached) " >&6
4185 else case e in #(
4186 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4188 do
4189 IFS=$as_save_IFS
4190 case $as_dir in #(((
4191 '') as_dir=./ ;;
4192 */) ;;
4193 *) as_dir=$as_dir/ ;;
4194 esac
4195 for ac_prog in mkdir gmkdir; do
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4198 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4199 'mkdir ('*'coreutils) '* | \
4200 *'BusyBox '* | \
4201 'mkdir (fileutils) '4.1*)
4202 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4203 break 3;;
4204 esac
4205 done
4206 done
4207 done
4208 IFS=$as_save_IFS
4209 ;;
4210 esac
4211 fi
4212
4213 test -d ./--version && rmdir ./--version
4214 if test ${ac_cv_path_mkdir+y}; then
4215 MKDIR_P="$ac_cv_path_mkdir -p"
4216 else
4217 # As a last resort, use plain mkdir -p,
4218 # in the hope it doesn't have the bugs of ancient mkdir.
4219 MKDIR_P='mkdir -p'
4220 fi
4221 fi
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4223 printf "%s\n" "$MKDIR_P" >&6; }
4224
4225 for ac_prog in gawk mawk nawk awk
4226 do
4227 # Extract the first word of "$ac_prog", so it can be a program name with args.
4228 set dummy $ac_prog; ac_word=$2
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 printf %s "checking for $ac_word... " >&6; }
4231 if test ${ac_cv_prog_AWK+y}
4232 then :
4233 printf %s "(cached) " >&6
4234 else case e in #(
4235 e) if test -n "$AWK"; then
4236 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4240 do
4241 IFS=$as_save_IFS
4242 case $as_dir in #(((
4243 '') as_dir=./ ;;
4244 */) ;;
4245 *) as_dir=$as_dir/ ;;
4246 esac
4247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4249 ac_cv_prog_AWK="$ac_prog"
4250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4251 break 2
4252 fi
4253 done
4254 done
4255 IFS=$as_save_IFS
4256
4257 fi ;;
4258 esac
4259 fi
4260 AWK=$ac_cv_prog_AWK
4261 if test -n "$AWK"; then
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4263 printf "%s\n" "$AWK" >&6; }
4264 else
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 printf "%s\n" "no" >&6; }
4267 fi
4268
4269
4270 test -n "$AWK" && break
4271 done
4272
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4274 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4275 set x ${MAKE-make}
4276 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4277 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4278 then :
4279 printf %s "(cached) " >&6
4280 else case e in #(
4281 e) cat >conftest.make <<\_ACEOF
4282 SHELL = /bin/sh
4283 all:
4284 @echo '@@@%%%=$(MAKE)=@@@%%%'
4285 _ACEOF
4286 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4287 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4288 *@@@%%%=?*=@@@%%%*)
4289 eval ac_cv_prog_make_${ac_make}_set=yes;;
4290 *)
4291 eval ac_cv_prog_make_${ac_make}_set=no;;
4292 esac
4293 rm -f conftest.make ;;
4294 esac
4295 fi
4296 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4298 printf "%s\n" "yes" >&6; }
4299 SET_MAKE=
4300 else
4301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 printf "%s\n" "no" >&6; }
4303 SET_MAKE="MAKE=${MAKE-make}"
4304 fi
4305
4306 rm -rf .tst 2>/dev/null
4307 mkdir .tst 2>/dev/null
4308 if test -d .tst; then
4309 am__leading_dot=.
4310 else
4311 am__leading_dot=_
4312 fi
4313 rmdir .tst 2>/dev/null
4314
4315 DEPDIR="${am__leading_dot}deps"
4316
4317 ac_config_commands="$ac_config_commands depfiles"
4318
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4320 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4321 cat > confinc.mk << 'END'
4322 am__doit:
4323 @echo this is the am__doit target >confinc.out
4324 .PHONY: am__doit
4325 END
4326 am__include="#"
4327 am__quote=
4328 # BSD make does it like this.
4329 echo '.include "confinc.mk" # ignored' > confmf.BSD
4330 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4331 echo 'include confinc.mk # ignored' > confmf.GNU
4332 _am_result=no
4333 for s in GNU BSD; do
4334 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4335 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4336 ac_status=$?
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }
4339 case $?:`cat confinc.out 2>/dev/null` in #(
4340 '0:this is the am__doit target') :
4341 case $s in #(
4342 BSD) :
4343 am__include='.include' am__quote='"' ;; #(
4344 *) :
4345 am__include='include' am__quote='' ;;
4346 esac ;; #(
4347 *) :
4348 ;;
4349 esac
4350 if test "$am__include" != "#"; then
4351 _am_result="yes ($s style)"
4352 break
4353 fi
4354 done
4355 rm -f confinc.* confmf.*
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4357 printf "%s\n" "${_am_result}" >&6; }
4358
4359 # Check whether --enable-dependency-tracking was given.
4360 if test ${enable_dependency_tracking+y}
4361 then :
4362 enableval=$enable_dependency_tracking;
4363 fi
4364
4365 if test "x$enable_dependency_tracking" != xno; then
4366 am_depcomp="$ac_aux_dir/depcomp"
4367 AMDEPBACKSLASH='\'
4368 am__nodep='_no'
4369 fi
4370 if test "x$enable_dependency_tracking" != xno; then
4371 AMDEP_TRUE=
4372 AMDEP_FALSE='#'
4373 else
4374 AMDEP_TRUE='#'
4375 AMDEP_FALSE=
4376 fi
4377
4378
4379 # Check whether --enable-silent-rules was given.
4380 if test ${enable_silent_rules+y}
4381 then :
4382 enableval=$enable_silent_rules;
4383 fi
4384
4385 case $enable_silent_rules in # (((
4386 yes) AM_DEFAULT_VERBOSITY=0;;
4387 no) AM_DEFAULT_VERBOSITY=1;;
4388 *) AM_DEFAULT_VERBOSITY=1;;
4389 esac
4390 am_make=${MAKE-make}
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4392 printf %s "checking whether $am_make supports nested variables... " >&6; }
4393 if test ${am_cv_make_support_nested_variables+y}
4394 then :
4395 printf %s "(cached) " >&6
4396 else case e in #(
4397 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4398 BAR0=false
4399 BAR1=true
4400 V=1
4401 am__doit:
4402 @$(TRUE)
4403 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4404 am_cv_make_support_nested_variables=yes
4405 else
4406 am_cv_make_support_nested_variables=no
4407 fi ;;
4408 esac
4409 fi
4410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4411 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4412 if test $am_cv_make_support_nested_variables = yes; then
4413 AM_V='$(V)'
4414 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4415 else
4416 AM_V=$AM_DEFAULT_VERBOSITY
4417 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4418 fi
4419 AM_BACKSLASH='\'
4420
4421 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4422 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4423 # is not polluted with repeated "-I."
4424 am__isrc=' -I$(srcdir)'
4425 # test to see if srcdir already configured
4426 if test -f $srcdir/config.status; then
4427 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4428 fi
4429 fi
4430
4431 # test whether we have cygpath
4432 if test -z "$CYGPATH_W"; then
4433 if (cygpath --version) >/dev/null 2>/dev/null; then
4434 CYGPATH_W='cygpath -w'
4435 else
4436 CYGPATH_W=echo
4437 fi
4438 fi
4439
4440
4441 # Define the identity of the package.
4442 PACKAGE='xconsole'
4443 VERSION='1.1.0'
4444
4445
4446 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4447
4448
4449 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4450
4451 # Some tools Automake needs.
4452
4453 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4454
4455
4456 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4457
4458
4459 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4460
4461
4462 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4463
4464
4465 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4466
4467 # For better backward compatibility. To be removed once Automake 1.9.x
4468 # dies out for good. For more background, see:
4469 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4470 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4471 mkdir_p='$(MKDIR_P)'
4472
4473 # We need awk for the "check" target (and possibly the TAP driver). The
4474 # system "awk" is bad on some platforms.
4475 # Always define AMTAR for backward compatibility. Yes, it's still used
4476 # in the wild :-( We should find a proper way to deprecate it ...
4477 AMTAR='$${TAR-tar}'
4478
4479
4480 # We'll loop over all known methods to create a tar archive until one works.
4481 _am_tools='gnutar pax cpio none'
4482
4483 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4484
4485
4486
4487
4488
4489 depcc="$CC" am_compiler_list=
4490
4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4492 printf %s "checking dependency style of $depcc... " >&6; }
4493 if test ${am_cv_CC_dependencies_compiler_type+y}
4494 then :
4495 printf %s "(cached) " >&6
4496 else case e in #(
4497 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4498 # We make a subdir and do the tests there. Otherwise we can end up
4499 # making bogus files that we don't know about and never remove. For
4500 # instance it was reported that on HP-UX the gcc test will end up
4501 # making a dummy file named 'D' -- because '-MD' means "put the output
4502 # in D".
4503 rm -rf conftest.dir
4504 mkdir conftest.dir
4505 # Copy depcomp to subdir because otherwise we won't find it if we're
4506 # using a relative directory.
4507 cp "$am_depcomp" conftest.dir
4508 cd conftest.dir
4509 # We will build objects and dependencies in a subdirectory because
4510 # it helps to detect inapplicable dependency modes. For instance
4511 # both Tru64's cc and ICC support -MD to output dependencies as a
4512 # side effect of compilation, but ICC will put the dependencies in
4513 # the current directory while Tru64 will put them in the object
4514 # directory.
4515 mkdir sub
4516
4517 am_cv_CC_dependencies_compiler_type=none
4518 if test "$am_compiler_list" = ""; then
4519 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4520 fi
4521 am__universal=false
4522 case " $depcc " in #(
4523 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4524 esac
4525
4526 for depmode in $am_compiler_list; do
4527 # Setup a source with many dependencies, because some compilers
4528 # like to wrap large dependency lists on column 80 (with \), and
4529 # we should not choose a depcomp mode which is confused by this.
4530 #
4531 # We need to recreate these files for each test, as the compiler may
4532 # overwrite some of them when testing with obscure command lines.
4533 # This happens at least with the AIX C compiler.
4534 : > sub/conftest.c
4535 for i in 1 2 3 4 5 6; do
4536 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4537 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4538 # Solaris 10 /bin/sh.
4539 echo '/* dummy */' > sub/conftst$i.h
4540 done
4541 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4542
4543 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4544 # mode. It turns out that the SunPro C++ compiler does not properly
4545 # handle '-M -o', and we need to detect this. Also, some Intel
4546 # versions had trouble with output in subdirs.
4547 am__obj=sub/conftest.${OBJEXT-o}
4548 am__minus_obj="-o $am__obj"
4549 case $depmode in
4550 gcc)
4551 # This depmode causes a compiler race in universal mode.
4552 test "$am__universal" = false || continue
4553 ;;
4554 nosideeffect)
4555 # After this tag, mechanisms are not by side-effect, so they'll
4556 # only be used when explicitly requested.
4557 if test "x$enable_dependency_tracking" = xyes; then
4558 continue
4559 else
4560 break
4561 fi
4562 ;;
4563 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4564 # This compiler won't grok '-c -o', but also, the minuso test has
4565 # not run yet. These depmodes are late enough in the game, and
4566 # so weak that their functioning should not be impacted.
4567 am__obj=conftest.${OBJEXT-o}
4568 am__minus_obj=
4569 ;;
4570 none) break ;;
4571 esac
4572 if depmode=$depmode \
4573 source=sub/conftest.c object=$am__obj \
4574 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4575 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4576 >/dev/null 2>conftest.err &&
4577 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4578 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4579 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4580 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4581 # icc doesn't choke on unknown options, it will just issue warnings
4582 # or remarks (even with -Werror). So we grep stderr for any message
4583 # that says an option was ignored or not supported.
4584 # When given -MP, icc 7.0 and 7.1 complain thusly:
4585 # icc: Command line warning: ignoring option '-M'; no argument required
4586 # The diagnosis changed in icc 8.0:
4587 # icc: Command line remark: option '-MP' not supported
4588 if (grep 'ignoring option' conftest.err ||
4589 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4590 am_cv_CC_dependencies_compiler_type=$depmode
4591 break
4592 fi
4593 fi
4594 done
4595
4596 cd ..
4597 rm -rf conftest.dir
4598 else
4599 am_cv_CC_dependencies_compiler_type=none
4600 fi
4601 ;;
4602 esac
4603 fi
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4605 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4606 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4607
4608 if
4609 test "x$enable_dependency_tracking" != xno \
4610 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4611 am__fastdepCC_TRUE=
4612 am__fastdepCC_FALSE='#'
4613 else
4614 am__fastdepCC_TRUE='#'
4615 am__fastdepCC_FALSE=
4616 fi
4617
4618
4619 # Variables for tags utilities; see am/tags.am
4620 if test -z "$CTAGS"; then
4621 CTAGS=ctags
4622 fi
4623
4624 if test -z "$ETAGS"; then
4625 ETAGS=etags
4626 fi
4627
4628 if test -z "$CSCOPE"; then
4629 CSCOPE=cscope
4630 fi
4631
4632
4633
4634 # POSIX will say in a future version that running "rm -f" with no argument
4635 # is OK; and we want to be able to make that assumption in our Makefile
4636 # recipes. So use an aggressive probe to check that the usage we want is
4637 # actually supported "in the wild" to an acceptable degree.
4638 # See automake bug#10828.
4639 # To make any issue more visible, cause the running configure to be aborted
4640 # by default if the 'rm' program in use doesn't match our expectations; the
4641 # user can still override this though.
4642 if rm -f && rm -fr && rm -rf; then : OK; else
4643 cat >&2 <<'END'
4644 Oops!
4645
4646 Your 'rm' program seems unable to run without file operands specified
4647 on the command line, even when the '-f' option is present. This is contrary
4648 to the behaviour of most rm programs out there, and not conforming with
4649 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4650
4651 Please tell bug-automake@gnu.org about your system, including the value
4652 of your $PATH and any error possibly output before this message. This
4653 can help us improve future automake versions.
4654
4655 END
4656 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4657 echo 'Configuration will proceed anyway, since you have set the' >&2
4658 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4659 echo >&2
4660 else
4661 cat >&2 <<'END'
4662 Aborting the configuration process, to ensure you take notice of the issue.
4663
4664 You can download and install GNU coreutils to get an 'rm' implementation
4665 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4666
4667 If you want to complete the configuration process using your problematic
4668 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4669 to "yes", and re-run configure.
4670
4671 END
4672 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4673 fi
4674 fi
4675
4676
4677 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4690 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4691 if test ${ac_cv_c_undeclared_builtin_options+y}
4692 then :
4693 printf %s "(cached) " >&6
4694 else case e in #(
4695 e) ac_save_CFLAGS=$CFLAGS
4696 ac_cv_c_undeclared_builtin_options='cannot detect'
4697 for ac_arg in '' -fno-builtin; do
4698 CFLAGS="$ac_save_CFLAGS $ac_arg"
4699 # This test program should *not* compile successfully.
4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4701 /* end confdefs.h. */
4702
4703 int
4704 main (void)
4705 {
4706 (void) strchr;
4707 ;
4708 return 0;
4709 }
4710 _ACEOF
4711 if ac_fn_c_try_compile "$LINENO"
4712 then :
4713
4714 else case e in #(
4715 e) # This test program should compile successfully.
4716 # No library function is consistently available on
4717 # freestanding implementations, so test against a dummy
4718 # declaration. Include always-available headers on the
4719 # off chance that they somehow elicit warnings.
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722 #include <float.h>
4723 #include <limits.h>
4724 #include <stdarg.h>
4725 #include <stddef.h>
4726 extern void ac_decl (int, char *);
4727
4728 int
4729 main (void)
4730 {
4731 (void) ac_decl (0, (char *) 0);
4732 (void) ac_decl;
4733
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 if ac_fn_c_try_compile "$LINENO"
4739 then :
4740 if test x"$ac_arg" = x
4741 then :
4742 ac_cv_c_undeclared_builtin_options='none needed'
4743 else case e in #(
4744 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4745 esac
4746 fi
4747 break
4748 fi
4749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4750 esac
4751 fi
4752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4753 done
4754 CFLAGS=$ac_save_CFLAGS
4755 ;;
4756 esac
4757 fi
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4759 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4760 case $ac_cv_c_undeclared_builtin_options in #(
4761 'cannot detect') :
4762 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4763 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4764 as_fn_error $? "cannot make $CC report undeclared builtins
4765 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4766 'none needed') :
4767 ac_c_undeclared_builtin_options='' ;; #(
4768 *) :
4769 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4770 esac
4771
4772
4773
4774
4775
4776 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4777 if test "x$ac_cv_have_decl___clang__" = xyes
4778 then :
4779 CLANGCC="yes"
4780 else case e in #(
4781 e) CLANGCC="no" ;;
4782 esac
4783 fi
4784 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4785 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4786 then :
4787 INTELCC="yes"
4788 else case e in #(
4789 e) INTELCC="no" ;;
4790 esac
4791 fi
4792 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4793 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4794 then :
4795 SUNCC="yes"
4796 else case e in #(
4797 e) SUNCC="no" ;;
4798 esac
4799 fi
4800
4801
4802
4803
4804
4805
4806
4807
4808 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4809 if test -n "$ac_tool_prefix"; then
4810 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4811 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4813 printf %s "checking for $ac_word... " >&6; }
4814 if test ${ac_cv_path_PKG_CONFIG+y}
4815 then :
4816 printf %s "(cached) " >&6
4817 else case e in #(
4818 e) case $PKG_CONFIG in
4819 [\\/]* | ?:[\\/]*)
4820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4821 ;;
4822 *)
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH
4825 do
4826 IFS=$as_save_IFS
4827 case $as_dir in #(((
4828 '') as_dir=./ ;;
4829 */) ;;
4830 *) as_dir=$as_dir/ ;;
4831 esac
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4834 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4836 break 2
4837 fi
4838 done
4839 done
4840 IFS=$as_save_IFS
4841
4842 ;;
4843 esac ;;
4844 esac
4845 fi
4846 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4847 if test -n "$PKG_CONFIG"; then
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4849 printf "%s\n" "$PKG_CONFIG" >&6; }
4850 else
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852 printf "%s\n" "no" >&6; }
4853 fi
4854
4855
4856 fi
4857 if test -z "$ac_cv_path_PKG_CONFIG"; then
4858 ac_pt_PKG_CONFIG=$PKG_CONFIG
4859 # Extract the first word of "pkg-config", so it can be a program name with args.
4860 set dummy pkg-config; ac_word=$2
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862 printf %s "checking for $ac_word... " >&6; }
4863 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4864 then :
4865 printf %s "(cached) " >&6
4866 else case e in #(
4867 e) case $ac_pt_PKG_CONFIG in
4868 [\\/]* | ?:[\\/]*)
4869 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4870 ;;
4871 *)
4872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 for as_dir in $PATH
4874 do
4875 IFS=$as_save_IFS
4876 case $as_dir in #(((
4877 '') as_dir=./ ;;
4878 */) ;;
4879 *) as_dir=$as_dir/ ;;
4880 esac
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4883 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4885 break 2
4886 fi
4887 done
4888 done
4889 IFS=$as_save_IFS
4890
4891 ;;
4892 esac ;;
4893 esac
4894 fi
4895 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4896 if test -n "$ac_pt_PKG_CONFIG"; then
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4898 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4899 else
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 printf "%s\n" "no" >&6; }
4902 fi
4903
4904 if test "x$ac_pt_PKG_CONFIG" = x; then
4905 PKG_CONFIG=""
4906 else
4907 case $cross_compiling:$ac_tool_warned in
4908 yes:)
4909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4910 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4911 ac_tool_warned=yes ;;
4912 esac
4913 PKG_CONFIG=$ac_pt_PKG_CONFIG
4914 fi
4915 else
4916 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4917 fi
4918
4919 fi
4920 if test -n "$PKG_CONFIG"; then
4921 _pkg_min_version=0.9.0
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4923 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4924 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4926 printf "%s\n" "yes" >&6; }
4927 else
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 printf "%s\n" "no" >&6; }
4930 PKG_CONFIG=""
4931 fi
4932 fi
4933
4934
4935 # Make sure we can run config.sub.
4936 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4937 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4938
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4940 printf %s "checking build system type... " >&6; }
4941 if test ${ac_cv_build+y}
4942 then :
4943 printf %s "(cached) " >&6
4944 else case e in #(
4945 e) ac_build_alias=$build_alias
4946 test "x$ac_build_alias" = x &&
4947 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4948 test "x$ac_build_alias" = x &&
4949 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4950 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4951 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4952 ;;
4953 esac
4954 fi
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4956 printf "%s\n" "$ac_cv_build" >&6; }
4957 case $ac_cv_build in
4958 *-*-*) ;;
4959 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4960 esac
4961 build=$ac_cv_build
4962 ac_save_IFS=$IFS; IFS='-'
4963 set x $ac_cv_build
4964 shift
4965 build_cpu=$1
4966 build_vendor=$2
4967 shift; shift
4968 # Remember, the first character of IFS is used to create $*,
4969 # except with old shells:
4970 build_os=$*
4971 IFS=$ac_save_IFS
4972 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4973
4974
4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4976 printf %s "checking host system type... " >&6; }
4977 if test ${ac_cv_host+y}
4978 then :
4979 printf %s "(cached) " >&6
4980 else case e in #(
4981 e) if test "x$host_alias" = x; then
4982 ac_cv_host=$ac_cv_build
4983 else
4984 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4985 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4986 fi
4987 ;;
4988 esac
4989 fi
4990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4991 printf "%s\n" "$ac_cv_host" >&6; }
4992 case $ac_cv_host in
4993 *-*-*) ;;
4994 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4995 esac
4996 host=$ac_cv_host
4997 ac_save_IFS=$IFS; IFS='-'
4998 set x $ac_cv_host
4999 shift
5000 host_cpu=$1
5001 host_vendor=$2
5002 shift; shift
5003 # Remember, the first character of IFS is used to create $*,
5004 # except with old shells:
5005 host_os=$*
5006 IFS=$ac_save_IFS
5007 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5008
5009
5010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5011 printf %s "checking for a sed that does not truncate output... " >&6; }
5012 if test ${ac_cv_path_SED+y}
5013 then :
5014 printf %s "(cached) " >&6
5015 else case e in #(
5016 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5017 for ac_i in 1 2 3 4 5 6 7; do
5018 ac_script="$ac_script$as_nl$ac_script"
5019 done
5020 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5021 { ac_script=; unset ac_script;}
5022 if test -z "$SED"; then
5023 ac_path_SED_found=false
5024 # Loop through the user's path and test for each of PROGNAME-LIST
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028 IFS=$as_save_IFS
5029 case $as_dir in #(((
5030 '') as_dir=./ ;;
5031 */) ;;
5032 *) as_dir=$as_dir/ ;;
5033 esac
5034 for ac_prog in sed gsed
5035 do
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5038 as_fn_executable_p "$ac_path_SED" || continue
5039 # Check for GNU ac_path_SED and select it if it is found.
5040 # Check for GNU $ac_path_SED
5041 case `"$ac_path_SED" --version 2>&1` in #(
5042 *GNU*)
5043 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5044 #(
5045 *)
5046 ac_count=0
5047 printf %s 0123456789 >"conftest.in"
5048 while :
5049 do
5050 cat "conftest.in" "conftest.in" >"conftest.tmp"
5051 mv "conftest.tmp" "conftest.in"
5052 cp "conftest.in" "conftest.nl"
5053 printf "%s\n" '' >> "conftest.nl"
5054 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5056 as_fn_arith $ac_count + 1 && ac_count=$as_val
5057 if test $ac_count -gt ${ac_path_SED_max-0}; then
5058 # Best one so far, save it but keep looking for a better one
5059 ac_cv_path_SED="$ac_path_SED"
5060 ac_path_SED_max=$ac_count
5061 fi
5062 # 10*(2^10) chars as input seems more than enough
5063 test $ac_count -gt 10 && break
5064 done
5065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5066 esac
5067
5068 $ac_path_SED_found && break 3
5069 done
5070 done
5071 done
5072 IFS=$as_save_IFS
5073 if test -z "$ac_cv_path_SED"; then
5074 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5075 fi
5076 else
5077 ac_cv_path_SED=$SED
5078 fi
5079 ;;
5080 esac
5081 fi
5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5083 printf "%s\n" "$ac_cv_path_SED" >&6; }
5084 SED="$ac_cv_path_SED"
5085 rm -f conftest.sed
5086
5087
5088
5089
5090
5091
5092 # Check whether --enable-selective-werror was given.
5093 if test ${enable_selective_werror+y}
5094 then :
5095 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5096 else case e in #(
5097 e) SELECTIVE_WERROR=yes ;;
5098 esac
5099 fi
5100
5101
5102
5103
5104
5105 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5106 if test "x$SUNCC" = "xyes"; then
5107 BASE_CFLAGS="-v"
5108 else
5109 BASE_CFLAGS=""
5110 fi
5111
5112 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126 xorg_testset_save_CFLAGS="$CFLAGS"
5127
5128 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5129 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5131 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5132 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5133 then :
5134 printf %s "(cached) " >&6
5135 else case e in #(
5136 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5138 int i;
5139 _ACEOF
5140 if ac_fn_c_try_compile "$LINENO"
5141 then :
5142 xorg_cv_cc_flag_unknown_warning_option=yes
5143 else case e in #(
5144 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5145 esac
5146 fi
5147 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5148 esac
5149 fi
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5151 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5152 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5153 CFLAGS="$xorg_testset_save_CFLAGS"
5154 fi
5155
5156 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5159 fi
5160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5162 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5163 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5164 then :
5165 printf %s "(cached) " >&6
5166 else case e in #(
5167 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5169 int i;
5170 _ACEOF
5171 if ac_fn_c_try_compile "$LINENO"
5172 then :
5173 xorg_cv_cc_flag_unused_command_line_argument=yes
5174 else case e in #(
5175 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5176 esac
5177 fi
5178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5179 esac
5180 fi
5181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5182 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5184 CFLAGS="$xorg_testset_save_CFLAGS"
5185 fi
5186
5187 found="no"
5188
5189 if test $found = "no" ; then
5190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5192 fi
5193
5194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5196 fi
5197
5198 CFLAGS="$CFLAGS -Wall"
5199
5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5201 printf %s "checking if $CC supports -Wall... " >&6; }
5202 cacheid=xorg_cv_cc_flag__Wall
5203 if eval test \${$cacheid+y}
5204 then :
5205 printf %s "(cached) " >&6
5206 else case e in #(
5207 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5209 int i;
5210 int
5211 main (void)
5212 {
5213
5214 ;
5215 return 0;
5216 }
5217 _ACEOF
5218 if ac_fn_c_try_link "$LINENO"
5219 then :
5220 eval $cacheid=yes
5221 else case e in #(
5222 e) eval $cacheid=no ;;
5223 esac
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5226 conftest$ac_exeext conftest.$ac_ext ;;
5227 esac
5228 fi
5229
5230
5231 CFLAGS="$xorg_testset_save_CFLAGS"
5232
5233 eval supported=\$$cacheid
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5235 printf "%s\n" "$supported" >&6; }
5236 if test "$supported" = "yes" ; then
5237 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5238 found="yes"
5239 fi
5240 fi
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256 xorg_testset_save_CFLAGS="$CFLAGS"
5257
5258 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5259 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5261 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5262 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5263 then :
5264 printf %s "(cached) " >&6
5265 else case e in #(
5266 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267 /* end confdefs.h. */
5268 int i;
5269 _ACEOF
5270 if ac_fn_c_try_compile "$LINENO"
5271 then :
5272 xorg_cv_cc_flag_unknown_warning_option=yes
5273 else case e in #(
5274 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5275 esac
5276 fi
5277 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5278 esac
5279 fi
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5281 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5283 CFLAGS="$xorg_testset_save_CFLAGS"
5284 fi
5285
5286 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5289 fi
5290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5292 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5293 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5294 then :
5295 printf %s "(cached) " >&6
5296 else case e in #(
5297 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5298 /* end confdefs.h. */
5299 int i;
5300 _ACEOF
5301 if ac_fn_c_try_compile "$LINENO"
5302 then :
5303 xorg_cv_cc_flag_unused_command_line_argument=yes
5304 else case e in #(
5305 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5306 esac
5307 fi
5308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5309 esac
5310 fi
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5312 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5313 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5314 CFLAGS="$xorg_testset_save_CFLAGS"
5315 fi
5316
5317 found="no"
5318
5319 if test $found = "no" ; then
5320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5322 fi
5323
5324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5326 fi
5327
5328 CFLAGS="$CFLAGS -Wpointer-arith"
5329
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5331 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5332 cacheid=xorg_cv_cc_flag__Wpointer_arith
5333 if eval test \${$cacheid+y}
5334 then :
5335 printf %s "(cached) " >&6
5336 else case e in #(
5337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5339 int i;
5340 int
5341 main (void)
5342 {
5343
5344 ;
5345 return 0;
5346 }
5347 _ACEOF
5348 if ac_fn_c_try_link "$LINENO"
5349 then :
5350 eval $cacheid=yes
5351 else case e in #(
5352 e) eval $cacheid=no ;;
5353 esac
5354 fi
5355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5356 conftest$ac_exeext conftest.$ac_ext ;;
5357 esac
5358 fi
5359
5360
5361 CFLAGS="$xorg_testset_save_CFLAGS"
5362
5363 eval supported=\$$cacheid
5364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5365 printf "%s\n" "$supported" >&6; }
5366 if test "$supported" = "yes" ; then
5367 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5368 found="yes"
5369 fi
5370 fi
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386 xorg_testset_save_CFLAGS="$CFLAGS"
5387
5388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5391 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5392 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5393 then :
5394 printf %s "(cached) " >&6
5395 else case e in #(
5396 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 int i;
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"
5401 then :
5402 xorg_cv_cc_flag_unknown_warning_option=yes
5403 else case e in #(
5404 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5405 esac
5406 fi
5407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5408 esac
5409 fi
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5411 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5412 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5413 CFLAGS="$xorg_testset_save_CFLAGS"
5414 fi
5415
5416 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5419 fi
5420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5422 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5423 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5424 then :
5425 printf %s "(cached) " >&6
5426 else case e in #(
5427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429 int i;
5430 _ACEOF
5431 if ac_fn_c_try_compile "$LINENO"
5432 then :
5433 xorg_cv_cc_flag_unused_command_line_argument=yes
5434 else case e in #(
5435 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5436 esac
5437 fi
5438 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5439 esac
5440 fi
5441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5442 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5444 CFLAGS="$xorg_testset_save_CFLAGS"
5445 fi
5446
5447 found="no"
5448
5449 if test $found = "no" ; then
5450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5452 fi
5453
5454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5456 fi
5457
5458 CFLAGS="$CFLAGS -Wmissing-declarations"
5459
5460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5461 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5462 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5463 if eval test \${$cacheid+y}
5464 then :
5465 printf %s "(cached) " >&6
5466 else case e in #(
5467 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5469 int i;
5470 int
5471 main (void)
5472 {
5473
5474 ;
5475 return 0;
5476 }
5477 _ACEOF
5478 if ac_fn_c_try_link "$LINENO"
5479 then :
5480 eval $cacheid=yes
5481 else case e in #(
5482 e) eval $cacheid=no ;;
5483 esac
5484 fi
5485 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5486 conftest$ac_exeext conftest.$ac_ext ;;
5487 esac
5488 fi
5489
5490
5491 CFLAGS="$xorg_testset_save_CFLAGS"
5492
5493 eval supported=\$$cacheid
5494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5495 printf "%s\n" "$supported" >&6; }
5496 if test "$supported" = "yes" ; then
5497 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5498 found="yes"
5499 fi
5500 fi
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516 xorg_testset_save_CFLAGS="$CFLAGS"
5517
5518 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5521 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5522 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5523 then :
5524 printf %s "(cached) " >&6
5525 else case e in #(
5526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5528 int i;
5529 _ACEOF
5530 if ac_fn_c_try_compile "$LINENO"
5531 then :
5532 xorg_cv_cc_flag_unknown_warning_option=yes
5533 else case e in #(
5534 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5535 esac
5536 fi
5537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5538 esac
5539 fi
5540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5541 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5542 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5543 CFLAGS="$xorg_testset_save_CFLAGS"
5544 fi
5545
5546 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5549 fi
5550 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5552 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5553 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5554 then :
5555 printf %s "(cached) " >&6
5556 else case e in #(
5557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 int i;
5560 _ACEOF
5561 if ac_fn_c_try_compile "$LINENO"
5562 then :
5563 xorg_cv_cc_flag_unused_command_line_argument=yes
5564 else case e in #(
5565 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5566 esac
5567 fi
5568 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5569 esac
5570 fi
5571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5572 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5574 CFLAGS="$xorg_testset_save_CFLAGS"
5575 fi
5576
5577 found="no"
5578
5579 if test $found = "no" ; then
5580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5582 fi
5583
5584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5586 fi
5587
5588 CFLAGS="$CFLAGS -Wformat=2"
5589
5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5591 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5592 cacheid=xorg_cv_cc_flag__Wformat_2
5593 if eval test \${$cacheid+y}
5594 then :
5595 printf %s "(cached) " >&6
5596 else case e in #(
5597 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5599 int i;
5600 int
5601 main (void)
5602 {
5603
5604 ;
5605 return 0;
5606 }
5607 _ACEOF
5608 if ac_fn_c_try_link "$LINENO"
5609 then :
5610 eval $cacheid=yes
5611 else case e in #(
5612 e) eval $cacheid=no ;;
5613 esac
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5616 conftest$ac_exeext conftest.$ac_ext ;;
5617 esac
5618 fi
5619
5620
5621 CFLAGS="$xorg_testset_save_CFLAGS"
5622
5623 eval supported=\$$cacheid
5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5625 printf "%s\n" "$supported" >&6; }
5626 if test "$supported" = "yes" ; then
5627 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5628 found="yes"
5629 fi
5630 fi
5631
5632 if test $found = "no" ; then
5633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5635 fi
5636
5637 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5639 fi
5640
5641 CFLAGS="$CFLAGS -Wformat"
5642
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5644 printf %s "checking if $CC supports -Wformat... " >&6; }
5645 cacheid=xorg_cv_cc_flag__Wformat
5646 if eval test \${$cacheid+y}
5647 then :
5648 printf %s "(cached) " >&6
5649 else case e in #(
5650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5652 int i;
5653 int
5654 main (void)
5655 {
5656
5657 ;
5658 return 0;
5659 }
5660 _ACEOF
5661 if ac_fn_c_try_link "$LINENO"
5662 then :
5663 eval $cacheid=yes
5664 else case e in #(
5665 e) eval $cacheid=no ;;
5666 esac
5667 fi
5668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5669 conftest$ac_exeext conftest.$ac_ext ;;
5670 esac
5671 fi
5672
5673
5674 CFLAGS="$xorg_testset_save_CFLAGS"
5675
5676 eval supported=\$$cacheid
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5678 printf "%s\n" "$supported" >&6; }
5679 if test "$supported" = "yes" ; then
5680 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5681 found="yes"
5682 fi
5683 fi
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701 xorg_testset_save_CFLAGS="$CFLAGS"
5702
5703 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5706 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5707 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5708 then :
5709 printf %s "(cached) " >&6
5710 else case e in #(
5711 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 int i;
5714 _ACEOF
5715 if ac_fn_c_try_compile "$LINENO"
5716 then :
5717 xorg_cv_cc_flag_unknown_warning_option=yes
5718 else case e in #(
5719 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5720 esac
5721 fi
5722 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5723 esac
5724 fi
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5726 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5728 CFLAGS="$xorg_testset_save_CFLAGS"
5729 fi
5730
5731 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5734 fi
5735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5737 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5738 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5739 then :
5740 printf %s "(cached) " >&6
5741 else case e in #(
5742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743 /* end confdefs.h. */
5744 int i;
5745 _ACEOF
5746 if ac_fn_c_try_compile "$LINENO"
5747 then :
5748 xorg_cv_cc_flag_unused_command_line_argument=yes
5749 else case e in #(
5750 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5751 esac
5752 fi
5753 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5754 esac
5755 fi
5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5757 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5758 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5759 CFLAGS="$xorg_testset_save_CFLAGS"
5760 fi
5761
5762 found="no"
5763
5764 if test $found = "no" ; then
5765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5767 fi
5768
5769 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5771 fi
5772
5773 CFLAGS="$CFLAGS -Wstrict-prototypes"
5774
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5776 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5777 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5778 if eval test \${$cacheid+y}
5779 then :
5780 printf %s "(cached) " >&6
5781 else case e in #(
5782 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5784 int i;
5785 int
5786 main (void)
5787 {
5788
5789 ;
5790 return 0;
5791 }
5792 _ACEOF
5793 if ac_fn_c_try_link "$LINENO"
5794 then :
5795 eval $cacheid=yes
5796 else case e in #(
5797 e) eval $cacheid=no ;;
5798 esac
5799 fi
5800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5801 conftest$ac_exeext conftest.$ac_ext ;;
5802 esac
5803 fi
5804
5805
5806 CFLAGS="$xorg_testset_save_CFLAGS"
5807
5808 eval supported=\$$cacheid
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5810 printf "%s\n" "$supported" >&6; }
5811 if test "$supported" = "yes" ; then
5812 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5813 found="yes"
5814 fi
5815 fi
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831 xorg_testset_save_CFLAGS="$CFLAGS"
5832
5833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5836 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5837 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5838 then :
5839 printf %s "(cached) " >&6
5840 else case e in #(
5841 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 int i;
5844 _ACEOF
5845 if ac_fn_c_try_compile "$LINENO"
5846 then :
5847 xorg_cv_cc_flag_unknown_warning_option=yes
5848 else case e in #(
5849 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5850 esac
5851 fi
5852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5853 esac
5854 fi
5855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5856 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5858 CFLAGS="$xorg_testset_save_CFLAGS"
5859 fi
5860
5861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5864 fi
5865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5867 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5868 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5869 then :
5870 printf %s "(cached) " >&6
5871 else case e in #(
5872 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5874 int i;
5875 _ACEOF
5876 if ac_fn_c_try_compile "$LINENO"
5877 then :
5878 xorg_cv_cc_flag_unused_command_line_argument=yes
5879 else case e in #(
5880 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5881 esac
5882 fi
5883 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5884 esac
5885 fi
5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5887 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5888 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5889 CFLAGS="$xorg_testset_save_CFLAGS"
5890 fi
5891
5892 found="no"
5893
5894 if test $found = "no" ; then
5895 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5897 fi
5898
5899 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5901 fi
5902
5903 CFLAGS="$CFLAGS -Wmissing-prototypes"
5904
5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5906 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5907 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5908 if eval test \${$cacheid+y}
5909 then :
5910 printf %s "(cached) " >&6
5911 else case e in #(
5912 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5914 int i;
5915 int
5916 main (void)
5917 {
5918
5919 ;
5920 return 0;
5921 }
5922 _ACEOF
5923 if ac_fn_c_try_link "$LINENO"
5924 then :
5925 eval $cacheid=yes
5926 else case e in #(
5927 e) eval $cacheid=no ;;
5928 esac
5929 fi
5930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5931 conftest$ac_exeext conftest.$ac_ext ;;
5932 esac
5933 fi
5934
5935
5936 CFLAGS="$xorg_testset_save_CFLAGS"
5937
5938 eval supported=\$$cacheid
5939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5940 printf "%s\n" "$supported" >&6; }
5941 if test "$supported" = "yes" ; then
5942 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5943 found="yes"
5944 fi
5945 fi
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961 xorg_testset_save_CFLAGS="$CFLAGS"
5962
5963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5966 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5967 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5968 then :
5969 printf %s "(cached) " >&6
5970 else case e in #(
5971 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5972 /* end confdefs.h. */
5973 int i;
5974 _ACEOF
5975 if ac_fn_c_try_compile "$LINENO"
5976 then :
5977 xorg_cv_cc_flag_unknown_warning_option=yes
5978 else case e in #(
5979 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5980 esac
5981 fi
5982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5983 esac
5984 fi
5985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5986 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5987 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5988 CFLAGS="$xorg_testset_save_CFLAGS"
5989 fi
5990
5991 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5994 fi
5995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5997 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5998 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5999 then :
6000 printf %s "(cached) " >&6
6001 else case e in #(
6002 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6003 /* end confdefs.h. */
6004 int i;
6005 _ACEOF
6006 if ac_fn_c_try_compile "$LINENO"
6007 then :
6008 xorg_cv_cc_flag_unused_command_line_argument=yes
6009 else case e in #(
6010 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6011 esac
6012 fi
6013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6014 esac
6015 fi
6016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6017 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6019 CFLAGS="$xorg_testset_save_CFLAGS"
6020 fi
6021
6022 found="no"
6023
6024 if test $found = "no" ; then
6025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6027 fi
6028
6029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6031 fi
6032
6033 CFLAGS="$CFLAGS -Wnested-externs"
6034
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6036 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6037 cacheid=xorg_cv_cc_flag__Wnested_externs
6038 if eval test \${$cacheid+y}
6039 then :
6040 printf %s "(cached) " >&6
6041 else case e in #(
6042 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6043 /* end confdefs.h. */
6044 int i;
6045 int
6046 main (void)
6047 {
6048
6049 ;
6050 return 0;
6051 }
6052 _ACEOF
6053 if ac_fn_c_try_link "$LINENO"
6054 then :
6055 eval $cacheid=yes
6056 else case e in #(
6057 e) eval $cacheid=no ;;
6058 esac
6059 fi
6060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6061 conftest$ac_exeext conftest.$ac_ext ;;
6062 esac
6063 fi
6064
6065
6066 CFLAGS="$xorg_testset_save_CFLAGS"
6067
6068 eval supported=\$$cacheid
6069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6070 printf "%s\n" "$supported" >&6; }
6071 if test "$supported" = "yes" ; then
6072 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6073 found="yes"
6074 fi
6075 fi
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091 xorg_testset_save_CFLAGS="$CFLAGS"
6092
6093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6096 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6097 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6098 then :
6099 printf %s "(cached) " >&6
6100 else case e in #(
6101 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6102 /* end confdefs.h. */
6103 int i;
6104 _ACEOF
6105 if ac_fn_c_try_compile "$LINENO"
6106 then :
6107 xorg_cv_cc_flag_unknown_warning_option=yes
6108 else case e in #(
6109 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6110 esac
6111 fi
6112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6113 esac
6114 fi
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6116 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6118 CFLAGS="$xorg_testset_save_CFLAGS"
6119 fi
6120
6121 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6124 fi
6125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6127 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6128 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6129 then :
6130 printf %s "(cached) " >&6
6131 else case e in #(
6132 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134 int i;
6135 _ACEOF
6136 if ac_fn_c_try_compile "$LINENO"
6137 then :
6138 xorg_cv_cc_flag_unused_command_line_argument=yes
6139 else case e in #(
6140 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6141 esac
6142 fi
6143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6144 esac
6145 fi
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6147 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6148 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6149 CFLAGS="$xorg_testset_save_CFLAGS"
6150 fi
6151
6152 found="no"
6153
6154 if test $found = "no" ; then
6155 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6156 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6157 fi
6158
6159 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6160 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6161 fi
6162
6163 CFLAGS="$CFLAGS -Wbad-function-cast"
6164
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6166 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6167 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6168 if eval test \${$cacheid+y}
6169 then :
6170 printf %s "(cached) " >&6
6171 else case e in #(
6172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6173 /* end confdefs.h. */
6174 int i;
6175 int
6176 main (void)
6177 {
6178
6179 ;
6180 return 0;
6181 }
6182 _ACEOF
6183 if ac_fn_c_try_link "$LINENO"
6184 then :
6185 eval $cacheid=yes
6186 else case e in #(
6187 e) eval $cacheid=no ;;
6188 esac
6189 fi
6190 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6191 conftest$ac_exeext conftest.$ac_ext ;;
6192 esac
6193 fi
6194
6195
6196 CFLAGS="$xorg_testset_save_CFLAGS"
6197
6198 eval supported=\$$cacheid
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6200 printf "%s\n" "$supported" >&6; }
6201 if test "$supported" = "yes" ; then
6202 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6203 found="yes"
6204 fi
6205 fi
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221 xorg_testset_save_CFLAGS="$CFLAGS"
6222
6223 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6226 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6227 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6228 then :
6229 printf %s "(cached) " >&6
6230 else case e in #(
6231 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232 /* end confdefs.h. */
6233 int i;
6234 _ACEOF
6235 if ac_fn_c_try_compile "$LINENO"
6236 then :
6237 xorg_cv_cc_flag_unknown_warning_option=yes
6238 else case e in #(
6239 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6240 esac
6241 fi
6242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6243 esac
6244 fi
6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6246 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6247 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6248 CFLAGS="$xorg_testset_save_CFLAGS"
6249 fi
6250
6251 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6254 fi
6255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6257 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6258 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6259 then :
6260 printf %s "(cached) " >&6
6261 else case e in #(
6262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 int i;
6265 _ACEOF
6266 if ac_fn_c_try_compile "$LINENO"
6267 then :
6268 xorg_cv_cc_flag_unused_command_line_argument=yes
6269 else case e in #(
6270 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6271 esac
6272 fi
6273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6274 esac
6275 fi
6276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6277 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6278 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6279 CFLAGS="$xorg_testset_save_CFLAGS"
6280 fi
6281
6282 found="no"
6283
6284 if test $found = "no" ; then
6285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6287 fi
6288
6289 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6291 fi
6292
6293 CFLAGS="$CFLAGS -Wold-style-definition"
6294
6295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6296 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6297 cacheid=xorg_cv_cc_flag__Wold_style_definition
6298 if eval test \${$cacheid+y}
6299 then :
6300 printf %s "(cached) " >&6
6301 else case e in #(
6302 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6304 int i;
6305 int
6306 main (void)
6307 {
6308
6309 ;
6310 return 0;
6311 }
6312 _ACEOF
6313 if ac_fn_c_try_link "$LINENO"
6314 then :
6315 eval $cacheid=yes
6316 else case e in #(
6317 e) eval $cacheid=no ;;
6318 esac
6319 fi
6320 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6321 conftest$ac_exeext conftest.$ac_ext ;;
6322 esac
6323 fi
6324
6325
6326 CFLAGS="$xorg_testset_save_CFLAGS"
6327
6328 eval supported=\$$cacheid
6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6330 printf "%s\n" "$supported" >&6; }
6331 if test "$supported" = "yes" ; then
6332 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6333 found="yes"
6334 fi
6335 fi
6336
6337 if test $found = "no" ; then
6338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6340 fi
6341
6342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6344 fi
6345
6346 CFLAGS="$CFLAGS -fd"
6347
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6349 printf %s "checking if $CC supports -fd... " >&6; }
6350 cacheid=xorg_cv_cc_flag__fd
6351 if eval test \${$cacheid+y}
6352 then :
6353 printf %s "(cached) " >&6
6354 else case e in #(
6355 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h. */
6357 int i;
6358 int
6359 main (void)
6360 {
6361
6362 ;
6363 return 0;
6364 }
6365 _ACEOF
6366 if ac_fn_c_try_link "$LINENO"
6367 then :
6368 eval $cacheid=yes
6369 else case e in #(
6370 e) eval $cacheid=no ;;
6371 esac
6372 fi
6373 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6374 conftest$ac_exeext conftest.$ac_ext ;;
6375 esac
6376 fi
6377
6378
6379 CFLAGS="$xorg_testset_save_CFLAGS"
6380
6381 eval supported=\$$cacheid
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6383 printf "%s\n" "$supported" >&6; }
6384 if test "$supported" = "yes" ; then
6385 BASE_CFLAGS="$BASE_CFLAGS -fd"
6386 found="yes"
6387 fi
6388 fi
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404 xorg_testset_save_CFLAGS="$CFLAGS"
6405
6406 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6409 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6410 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6411 then :
6412 printf %s "(cached) " >&6
6413 else case e in #(
6414 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6415 /* end confdefs.h. */
6416 int i;
6417 _ACEOF
6418 if ac_fn_c_try_compile "$LINENO"
6419 then :
6420 xorg_cv_cc_flag_unknown_warning_option=yes
6421 else case e in #(
6422 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6423 esac
6424 fi
6425 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6426 esac
6427 fi
6428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6429 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6431 CFLAGS="$xorg_testset_save_CFLAGS"
6432 fi
6433
6434 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6437 fi
6438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6440 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6441 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6442 then :
6443 printf %s "(cached) " >&6
6444 else case e in #(
6445 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6446 /* end confdefs.h. */
6447 int i;
6448 _ACEOF
6449 if ac_fn_c_try_compile "$LINENO"
6450 then :
6451 xorg_cv_cc_flag_unused_command_line_argument=yes
6452 else case e in #(
6453 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6454 esac
6455 fi
6456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6457 esac
6458 fi
6459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6460 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6462 CFLAGS="$xorg_testset_save_CFLAGS"
6463 fi
6464
6465 found="no"
6466
6467 if test $found = "no" ; then
6468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6470 fi
6471
6472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6474 fi
6475
6476 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6477
6478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6479 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6480 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6481 if eval test \${$cacheid+y}
6482 then :
6483 printf %s "(cached) " >&6
6484 else case e in #(
6485 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6486 /* end confdefs.h. */
6487 int i;
6488 int
6489 main (void)
6490 {
6491
6492 ;
6493 return 0;
6494 }
6495 _ACEOF
6496 if ac_fn_c_try_link "$LINENO"
6497 then :
6498 eval $cacheid=yes
6499 else case e in #(
6500 e) eval $cacheid=no ;;
6501 esac
6502 fi
6503 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6504 conftest$ac_exeext conftest.$ac_ext ;;
6505 esac
6506 fi
6507
6508
6509 CFLAGS="$xorg_testset_save_CFLAGS"
6510
6511 eval supported=\$$cacheid
6512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6513 printf "%s\n" "$supported" >&6; }
6514 if test "$supported" = "yes" ; then
6515 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6516 found="yes"
6517 fi
6518 fi
6519
6520
6521
6522
6523
6524 # This chunk adds additional warnings that could catch undesired effects.
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538 xorg_testset_save_CFLAGS="$CFLAGS"
6539
6540 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6543 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6544 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6545 then :
6546 printf %s "(cached) " >&6
6547 else case e in #(
6548 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549 /* end confdefs.h. */
6550 int i;
6551 _ACEOF
6552 if ac_fn_c_try_compile "$LINENO"
6553 then :
6554 xorg_cv_cc_flag_unknown_warning_option=yes
6555 else case e in #(
6556 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6557 esac
6558 fi
6559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6560 esac
6561 fi
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6563 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6565 CFLAGS="$xorg_testset_save_CFLAGS"
6566 fi
6567
6568 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6571 fi
6572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6574 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6575 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6576 then :
6577 printf %s "(cached) " >&6
6578 else case e in #(
6579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580 /* end confdefs.h. */
6581 int i;
6582 _ACEOF
6583 if ac_fn_c_try_compile "$LINENO"
6584 then :
6585 xorg_cv_cc_flag_unused_command_line_argument=yes
6586 else case e in #(
6587 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6588 esac
6589 fi
6590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6591 esac
6592 fi
6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6594 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6596 CFLAGS="$xorg_testset_save_CFLAGS"
6597 fi
6598
6599 found="no"
6600
6601 if test $found = "no" ; then
6602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6604 fi
6605
6606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6608 fi
6609
6610 CFLAGS="$CFLAGS -Wunused"
6611
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6613 printf %s "checking if $CC supports -Wunused... " >&6; }
6614 cacheid=xorg_cv_cc_flag__Wunused
6615 if eval test \${$cacheid+y}
6616 then :
6617 printf %s "(cached) " >&6
6618 else case e in #(
6619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620 /* end confdefs.h. */
6621 int i;
6622 int
6623 main (void)
6624 {
6625
6626 ;
6627 return 0;
6628 }
6629 _ACEOF
6630 if ac_fn_c_try_link "$LINENO"
6631 then :
6632 eval $cacheid=yes
6633 else case e in #(
6634 e) eval $cacheid=no ;;
6635 esac
6636 fi
6637 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6638 conftest$ac_exeext conftest.$ac_ext ;;
6639 esac
6640 fi
6641
6642
6643 CFLAGS="$xorg_testset_save_CFLAGS"
6644
6645 eval supported=\$$cacheid
6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6647 printf "%s\n" "$supported" >&6; }
6648 if test "$supported" = "yes" ; then
6649 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6650 found="yes"
6651 fi
6652 fi
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668 xorg_testset_save_CFLAGS="$CFLAGS"
6669
6670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6673 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6674 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6675 then :
6676 printf %s "(cached) " >&6
6677 else case e in #(
6678 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6679 /* end confdefs.h. */
6680 int i;
6681 _ACEOF
6682 if ac_fn_c_try_compile "$LINENO"
6683 then :
6684 xorg_cv_cc_flag_unknown_warning_option=yes
6685 else case e in #(
6686 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6687 esac
6688 fi
6689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6690 esac
6691 fi
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6693 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6694 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6695 CFLAGS="$xorg_testset_save_CFLAGS"
6696 fi
6697
6698 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6699 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6701 fi
6702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6704 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6705 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6706 then :
6707 printf %s "(cached) " >&6
6708 else case e in #(
6709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6710 /* end confdefs.h. */
6711 int i;
6712 _ACEOF
6713 if ac_fn_c_try_compile "$LINENO"
6714 then :
6715 xorg_cv_cc_flag_unused_command_line_argument=yes
6716 else case e in #(
6717 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6718 esac
6719 fi
6720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6721 esac
6722 fi
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6724 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6725 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6726 CFLAGS="$xorg_testset_save_CFLAGS"
6727 fi
6728
6729 found="no"
6730
6731 if test $found = "no" ; then
6732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6734 fi
6735
6736 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6737 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6738 fi
6739
6740 CFLAGS="$CFLAGS -Wuninitialized"
6741
6742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6743 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6744 cacheid=xorg_cv_cc_flag__Wuninitialized
6745 if eval test \${$cacheid+y}
6746 then :
6747 printf %s "(cached) " >&6
6748 else case e in #(
6749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6751 int i;
6752 int
6753 main (void)
6754 {
6755
6756 ;
6757 return 0;
6758 }
6759 _ACEOF
6760 if ac_fn_c_try_link "$LINENO"
6761 then :
6762 eval $cacheid=yes
6763 else case e in #(
6764 e) eval $cacheid=no ;;
6765 esac
6766 fi
6767 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6768 conftest$ac_exeext conftest.$ac_ext ;;
6769 esac
6770 fi
6771
6772
6773 CFLAGS="$xorg_testset_save_CFLAGS"
6774
6775 eval supported=\$$cacheid
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6777 printf "%s\n" "$supported" >&6; }
6778 if test "$supported" = "yes" ; then
6779 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6780 found="yes"
6781 fi
6782 fi
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798 xorg_testset_save_CFLAGS="$CFLAGS"
6799
6800 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6803 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6804 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6805 then :
6806 printf %s "(cached) " >&6
6807 else case e in #(
6808 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6809 /* end confdefs.h. */
6810 int i;
6811 _ACEOF
6812 if ac_fn_c_try_compile "$LINENO"
6813 then :
6814 xorg_cv_cc_flag_unknown_warning_option=yes
6815 else case e in #(
6816 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6817 esac
6818 fi
6819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6820 esac
6821 fi
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6823 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6824 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6825 CFLAGS="$xorg_testset_save_CFLAGS"
6826 fi
6827
6828 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6829 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6830 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6831 fi
6832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6834 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6835 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6836 then :
6837 printf %s "(cached) " >&6
6838 else case e in #(
6839 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6840 /* end confdefs.h. */
6841 int i;
6842 _ACEOF
6843 if ac_fn_c_try_compile "$LINENO"
6844 then :
6845 xorg_cv_cc_flag_unused_command_line_argument=yes
6846 else case e in #(
6847 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6848 esac
6849 fi
6850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6851 esac
6852 fi
6853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6854 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6856 CFLAGS="$xorg_testset_save_CFLAGS"
6857 fi
6858
6859 found="no"
6860
6861 if test $found = "no" ; then
6862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6864 fi
6865
6866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6868 fi
6869
6870 CFLAGS="$CFLAGS -Wshadow"
6871
6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6873 printf %s "checking if $CC supports -Wshadow... " >&6; }
6874 cacheid=xorg_cv_cc_flag__Wshadow
6875 if eval test \${$cacheid+y}
6876 then :
6877 printf %s "(cached) " >&6
6878 else case e in #(
6879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6880 /* end confdefs.h. */
6881 int i;
6882 int
6883 main (void)
6884 {
6885
6886 ;
6887 return 0;
6888 }
6889 _ACEOF
6890 if ac_fn_c_try_link "$LINENO"
6891 then :
6892 eval $cacheid=yes
6893 else case e in #(
6894 e) eval $cacheid=no ;;
6895 esac
6896 fi
6897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6898 conftest$ac_exeext conftest.$ac_ext ;;
6899 esac
6900 fi
6901
6902
6903 CFLAGS="$xorg_testset_save_CFLAGS"
6904
6905 eval supported=\$$cacheid
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6907 printf "%s\n" "$supported" >&6; }
6908 if test "$supported" = "yes" ; then
6909 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6910 found="yes"
6911 fi
6912 fi
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928 xorg_testset_save_CFLAGS="$CFLAGS"
6929
6930 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6933 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6934 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6935 then :
6936 printf %s "(cached) " >&6
6937 else case e in #(
6938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940 int i;
6941 _ACEOF
6942 if ac_fn_c_try_compile "$LINENO"
6943 then :
6944 xorg_cv_cc_flag_unknown_warning_option=yes
6945 else case e in #(
6946 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6947 esac
6948 fi
6949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6950 esac
6951 fi
6952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6953 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6954 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6955 CFLAGS="$xorg_testset_save_CFLAGS"
6956 fi
6957
6958 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6961 fi
6962 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6964 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6965 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6966 then :
6967 printf %s "(cached) " >&6
6968 else case e in #(
6969 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971 int i;
6972 _ACEOF
6973 if ac_fn_c_try_compile "$LINENO"
6974 then :
6975 xorg_cv_cc_flag_unused_command_line_argument=yes
6976 else case e in #(
6977 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6978 esac
6979 fi
6980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6981 esac
6982 fi
6983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6984 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6985 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6986 CFLAGS="$xorg_testset_save_CFLAGS"
6987 fi
6988
6989 found="no"
6990
6991 if test $found = "no" ; then
6992 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6993 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6994 fi
6995
6996 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6998 fi
6999
7000 CFLAGS="$CFLAGS -Wmissing-noreturn"
7001
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7003 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7004 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7005 if eval test \${$cacheid+y}
7006 then :
7007 printf %s "(cached) " >&6
7008 else case e in #(
7009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h. */
7011 int i;
7012 int
7013 main (void)
7014 {
7015
7016 ;
7017 return 0;
7018 }
7019 _ACEOF
7020 if ac_fn_c_try_link "$LINENO"
7021 then :
7022 eval $cacheid=yes
7023 else case e in #(
7024 e) eval $cacheid=no ;;
7025 esac
7026 fi
7027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7028 conftest$ac_exeext conftest.$ac_ext ;;
7029 esac
7030 fi
7031
7032
7033 CFLAGS="$xorg_testset_save_CFLAGS"
7034
7035 eval supported=\$$cacheid
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7037 printf "%s\n" "$supported" >&6; }
7038 if test "$supported" = "yes" ; then
7039 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7040 found="yes"
7041 fi
7042 fi
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058 xorg_testset_save_CFLAGS="$CFLAGS"
7059
7060 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7063 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7064 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7065 then :
7066 printf %s "(cached) " >&6
7067 else case e in #(
7068 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 int i;
7071 _ACEOF
7072 if ac_fn_c_try_compile "$LINENO"
7073 then :
7074 xorg_cv_cc_flag_unknown_warning_option=yes
7075 else case e in #(
7076 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7077 esac
7078 fi
7079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7080 esac
7081 fi
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7083 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7084 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7085 CFLAGS="$xorg_testset_save_CFLAGS"
7086 fi
7087
7088 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091 fi
7092 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7094 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7095 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7096 then :
7097 printf %s "(cached) " >&6
7098 else case e in #(
7099 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7100 /* end confdefs.h. */
7101 int i;
7102 _ACEOF
7103 if ac_fn_c_try_compile "$LINENO"
7104 then :
7105 xorg_cv_cc_flag_unused_command_line_argument=yes
7106 else case e in #(
7107 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7108 esac
7109 fi
7110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7111 esac
7112 fi
7113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7114 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7115 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7116 CFLAGS="$xorg_testset_save_CFLAGS"
7117 fi
7118
7119 found="no"
7120
7121 if test $found = "no" ; then
7122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7124 fi
7125
7126 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7128 fi
7129
7130 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7131
7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7133 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7134 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7135 if eval test \${$cacheid+y}
7136 then :
7137 printf %s "(cached) " >&6
7138 else case e in #(
7139 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7141 int i;
7142 int
7143 main (void)
7144 {
7145
7146 ;
7147 return 0;
7148 }
7149 _ACEOF
7150 if ac_fn_c_try_link "$LINENO"
7151 then :
7152 eval $cacheid=yes
7153 else case e in #(
7154 e) eval $cacheid=no ;;
7155 esac
7156 fi
7157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7158 conftest$ac_exeext conftest.$ac_ext ;;
7159 esac
7160 fi
7161
7162
7163 CFLAGS="$xorg_testset_save_CFLAGS"
7164
7165 eval supported=\$$cacheid
7166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7167 printf "%s\n" "$supported" >&6; }
7168 if test "$supported" = "yes" ; then
7169 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7170 found="yes"
7171 fi
7172 fi
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188 xorg_testset_save_CFLAGS="$CFLAGS"
7189
7190 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7193 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7194 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7195 then :
7196 printf %s "(cached) " >&6
7197 else case e in #(
7198 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h. */
7200 int i;
7201 _ACEOF
7202 if ac_fn_c_try_compile "$LINENO"
7203 then :
7204 xorg_cv_cc_flag_unknown_warning_option=yes
7205 else case e in #(
7206 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7207 esac
7208 fi
7209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7210 esac
7211 fi
7212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7213 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7215 CFLAGS="$xorg_testset_save_CFLAGS"
7216 fi
7217
7218 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7221 fi
7222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7224 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7225 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7226 then :
7227 printf %s "(cached) " >&6
7228 else case e in #(
7229 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7230 /* end confdefs.h. */
7231 int i;
7232 _ACEOF
7233 if ac_fn_c_try_compile "$LINENO"
7234 then :
7235 xorg_cv_cc_flag_unused_command_line_argument=yes
7236 else case e in #(
7237 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7238 esac
7239 fi
7240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7241 esac
7242 fi
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7244 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7246 CFLAGS="$xorg_testset_save_CFLAGS"
7247 fi
7248
7249 found="no"
7250
7251 if test $found = "no" ; then
7252 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7254 fi
7255
7256 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7258 fi
7259
7260 CFLAGS="$CFLAGS -Wredundant-decls"
7261
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7263 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7264 cacheid=xorg_cv_cc_flag__Wredundant_decls
7265 if eval test \${$cacheid+y}
7266 then :
7267 printf %s "(cached) " >&6
7268 else case e in #(
7269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7271 int i;
7272 int
7273 main (void)
7274 {
7275
7276 ;
7277 return 0;
7278 }
7279 _ACEOF
7280 if ac_fn_c_try_link "$LINENO"
7281 then :
7282 eval $cacheid=yes
7283 else case e in #(
7284 e) eval $cacheid=no ;;
7285 esac
7286 fi
7287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7288 conftest$ac_exeext conftest.$ac_ext ;;
7289 esac
7290 fi
7291
7292
7293 CFLAGS="$xorg_testset_save_CFLAGS"
7294
7295 eval supported=\$$cacheid
7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7297 printf "%s\n" "$supported" >&6; }
7298 if test "$supported" = "yes" ; then
7299 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7300 found="yes"
7301 fi
7302 fi
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318 xorg_testset_save_CFLAGS="$CFLAGS"
7319
7320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7323 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7324 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7325 then :
7326 printf %s "(cached) " >&6
7327 else case e in #(
7328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330 int i;
7331 _ACEOF
7332 if ac_fn_c_try_compile "$LINENO"
7333 then :
7334 xorg_cv_cc_flag_unknown_warning_option=yes
7335 else case e in #(
7336 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7337 esac
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7340 esac
7341 fi
7342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7343 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7345 CFLAGS="$xorg_testset_save_CFLAGS"
7346 fi
7347
7348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7351 fi
7352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7354 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7355 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7356 then :
7357 printf %s "(cached) " >&6
7358 else case e in #(
7359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7361 int i;
7362 _ACEOF
7363 if ac_fn_c_try_compile "$LINENO"
7364 then :
7365 xorg_cv_cc_flag_unused_command_line_argument=yes
7366 else case e in #(
7367 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7368 esac
7369 fi
7370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7371 esac
7372 fi
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7374 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7376 CFLAGS="$xorg_testset_save_CFLAGS"
7377 fi
7378
7379 found="no"
7380
7381 if test $found = "no" ; then
7382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7384 fi
7385
7386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7388 fi
7389
7390 CFLAGS="$CFLAGS -Wlogical-op"
7391
7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7393 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7394 cacheid=xorg_cv_cc_flag__Wlogical_op
7395 if eval test \${$cacheid+y}
7396 then :
7397 printf %s "(cached) " >&6
7398 else case e in #(
7399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7401 int i;
7402 int
7403 main (void)
7404 {
7405
7406 ;
7407 return 0;
7408 }
7409 _ACEOF
7410 if ac_fn_c_try_link "$LINENO"
7411 then :
7412 eval $cacheid=yes
7413 else case e in #(
7414 e) eval $cacheid=no ;;
7415 esac
7416 fi
7417 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7418 conftest$ac_exeext conftest.$ac_ext ;;
7419 esac
7420 fi
7421
7422
7423 CFLAGS="$xorg_testset_save_CFLAGS"
7424
7425 eval supported=\$$cacheid
7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7427 printf "%s\n" "$supported" >&6; }
7428 if test "$supported" = "yes" ; then
7429 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7430 found="yes"
7431 fi
7432 fi
7433
7434
7435
7436 # These are currently disabled because they are noisy. They will be enabled
7437 # in the future once the codebase is sufficiently modernized to silence
7438 # them. For now, I don't want them to drown out the other warnings.
7439 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7440 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7441 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7442
7443 # Turn some warnings into errors, so we don't accidentally get successful builds
7444 # when there are problems that should be fixed.
7445
7446 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460 xorg_testset_save_CFLAGS="$CFLAGS"
7461
7462 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7465 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7466 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7467 then :
7468 printf %s "(cached) " >&6
7469 else case e in #(
7470 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7471 /* end confdefs.h. */
7472 int i;
7473 _ACEOF
7474 if ac_fn_c_try_compile "$LINENO"
7475 then :
7476 xorg_cv_cc_flag_unknown_warning_option=yes
7477 else case e in #(
7478 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7479 esac
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7482 esac
7483 fi
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7485 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7486 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7487 CFLAGS="$xorg_testset_save_CFLAGS"
7488 fi
7489
7490 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7493 fi
7494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7496 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7497 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7498 then :
7499 printf %s "(cached) " >&6
7500 else case e in #(
7501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7502 /* end confdefs.h. */
7503 int i;
7504 _ACEOF
7505 if ac_fn_c_try_compile "$LINENO"
7506 then :
7507 xorg_cv_cc_flag_unused_command_line_argument=yes
7508 else case e in #(
7509 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7510 esac
7511 fi
7512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7513 esac
7514 fi
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7516 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7518 CFLAGS="$xorg_testset_save_CFLAGS"
7519 fi
7520
7521 found="no"
7522
7523 if test $found = "no" ; then
7524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7526 fi
7527
7528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7530 fi
7531
7532 CFLAGS="$CFLAGS -Werror=implicit"
7533
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7535 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7536 cacheid=xorg_cv_cc_flag__Werror_implicit
7537 if eval test \${$cacheid+y}
7538 then :
7539 printf %s "(cached) " >&6
7540 else case e in #(
7541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 int i;
7544 int
7545 main (void)
7546 {
7547
7548 ;
7549 return 0;
7550 }
7551 _ACEOF
7552 if ac_fn_c_try_link "$LINENO"
7553 then :
7554 eval $cacheid=yes
7555 else case e in #(
7556 e) eval $cacheid=no ;;
7557 esac
7558 fi
7559 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7560 conftest$ac_exeext conftest.$ac_ext ;;
7561 esac
7562 fi
7563
7564
7565 CFLAGS="$xorg_testset_save_CFLAGS"
7566
7567 eval supported=\$$cacheid
7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7569 printf "%s\n" "$supported" >&6; }
7570 if test "$supported" = "yes" ; then
7571 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7572 found="yes"
7573 fi
7574 fi
7575
7576 if test $found = "no" ; then
7577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7579 fi
7580
7581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7583 fi
7584
7585 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7586
7587 { 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
7588 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7589 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7590 if eval test \${$cacheid+y}
7591 then :
7592 printf %s "(cached) " >&6
7593 else case e in #(
7594 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595 /* end confdefs.h. */
7596 int i;
7597 int
7598 main (void)
7599 {
7600
7601 ;
7602 return 0;
7603 }
7604 _ACEOF
7605 if ac_fn_c_try_link "$LINENO"
7606 then :
7607 eval $cacheid=yes
7608 else case e in #(
7609 e) eval $cacheid=no ;;
7610 esac
7611 fi
7612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7613 conftest$ac_exeext conftest.$ac_ext ;;
7614 esac
7615 fi
7616
7617
7618 CFLAGS="$xorg_testset_save_CFLAGS"
7619
7620 eval supported=\$$cacheid
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7622 printf "%s\n" "$supported" >&6; }
7623 if test "$supported" = "yes" ; then
7624 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7625 found="yes"
7626 fi
7627 fi
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643 xorg_testset_save_CFLAGS="$CFLAGS"
7644
7645 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7648 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7649 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7650 then :
7651 printf %s "(cached) " >&6
7652 else case e in #(
7653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7655 int i;
7656 _ACEOF
7657 if ac_fn_c_try_compile "$LINENO"
7658 then :
7659 xorg_cv_cc_flag_unknown_warning_option=yes
7660 else case e in #(
7661 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7662 esac
7663 fi
7664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7665 esac
7666 fi
7667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7668 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7669 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7670 CFLAGS="$xorg_testset_save_CFLAGS"
7671 fi
7672
7673 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7676 fi
7677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7679 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7680 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7681 then :
7682 printf %s "(cached) " >&6
7683 else case e in #(
7684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7686 int i;
7687 _ACEOF
7688 if ac_fn_c_try_compile "$LINENO"
7689 then :
7690 xorg_cv_cc_flag_unused_command_line_argument=yes
7691 else case e in #(
7692 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7693 esac
7694 fi
7695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7696 esac
7697 fi
7698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7699 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7700 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7701 CFLAGS="$xorg_testset_save_CFLAGS"
7702 fi
7703
7704 found="no"
7705
7706 if test $found = "no" ; then
7707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7708 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7709 fi
7710
7711 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7712 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7713 fi
7714
7715 CFLAGS="$CFLAGS -Werror=nonnull"
7716
7717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7718 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7719 cacheid=xorg_cv_cc_flag__Werror_nonnull
7720 if eval test \${$cacheid+y}
7721 then :
7722 printf %s "(cached) " >&6
7723 else case e in #(
7724 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7726 int i;
7727 int
7728 main (void)
7729 {
7730
7731 ;
7732 return 0;
7733 }
7734 _ACEOF
7735 if ac_fn_c_try_link "$LINENO"
7736 then :
7737 eval $cacheid=yes
7738 else case e in #(
7739 e) eval $cacheid=no ;;
7740 esac
7741 fi
7742 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7743 conftest$ac_exeext conftest.$ac_ext ;;
7744 esac
7745 fi
7746
7747
7748 CFLAGS="$xorg_testset_save_CFLAGS"
7749
7750 eval supported=\$$cacheid
7751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7752 printf "%s\n" "$supported" >&6; }
7753 if test "$supported" = "yes" ; then
7754 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7755 found="yes"
7756 fi
7757 fi
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773 xorg_testset_save_CFLAGS="$CFLAGS"
7774
7775 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7778 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7779 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7780 then :
7781 printf %s "(cached) " >&6
7782 else case e in #(
7783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7784 /* end confdefs.h. */
7785 int i;
7786 _ACEOF
7787 if ac_fn_c_try_compile "$LINENO"
7788 then :
7789 xorg_cv_cc_flag_unknown_warning_option=yes
7790 else case e in #(
7791 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7792 esac
7793 fi
7794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7795 esac
7796 fi
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7798 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7800 CFLAGS="$xorg_testset_save_CFLAGS"
7801 fi
7802
7803 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7806 fi
7807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7809 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7810 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7811 then :
7812 printf %s "(cached) " >&6
7813 else case e in #(
7814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7815 /* end confdefs.h. */
7816 int i;
7817 _ACEOF
7818 if ac_fn_c_try_compile "$LINENO"
7819 then :
7820 xorg_cv_cc_flag_unused_command_line_argument=yes
7821 else case e in #(
7822 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7823 esac
7824 fi
7825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7826 esac
7827 fi
7828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7829 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7830 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7831 CFLAGS="$xorg_testset_save_CFLAGS"
7832 fi
7833
7834 found="no"
7835
7836 if test $found = "no" ; then
7837 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7839 fi
7840
7841 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7842 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7843 fi
7844
7845 CFLAGS="$CFLAGS -Werror=init-self"
7846
7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7848 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7849 cacheid=xorg_cv_cc_flag__Werror_init_self
7850 if eval test \${$cacheid+y}
7851 then :
7852 printf %s "(cached) " >&6
7853 else case e in #(
7854 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855 /* end confdefs.h. */
7856 int i;
7857 int
7858 main (void)
7859 {
7860
7861 ;
7862 return 0;
7863 }
7864 _ACEOF
7865 if ac_fn_c_try_link "$LINENO"
7866 then :
7867 eval $cacheid=yes
7868 else case e in #(
7869 e) eval $cacheid=no ;;
7870 esac
7871 fi
7872 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7873 conftest$ac_exeext conftest.$ac_ext ;;
7874 esac
7875 fi
7876
7877
7878 CFLAGS="$xorg_testset_save_CFLAGS"
7879
7880 eval supported=\$$cacheid
7881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7882 printf "%s\n" "$supported" >&6; }
7883 if test "$supported" = "yes" ; then
7884 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7885 found="yes"
7886 fi
7887 fi
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903 xorg_testset_save_CFLAGS="$CFLAGS"
7904
7905 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7908 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7909 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7910 then :
7911 printf %s "(cached) " >&6
7912 else case e in #(
7913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7915 int i;
7916 _ACEOF
7917 if ac_fn_c_try_compile "$LINENO"
7918 then :
7919 xorg_cv_cc_flag_unknown_warning_option=yes
7920 else case e in #(
7921 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7922 esac
7923 fi
7924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7925 esac
7926 fi
7927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7928 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7930 CFLAGS="$xorg_testset_save_CFLAGS"
7931 fi
7932
7933 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7936 fi
7937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7939 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7940 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7941 then :
7942 printf %s "(cached) " >&6
7943 else case e in #(
7944 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7946 int i;
7947 _ACEOF
7948 if ac_fn_c_try_compile "$LINENO"
7949 then :
7950 xorg_cv_cc_flag_unused_command_line_argument=yes
7951 else case e in #(
7952 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7953 esac
7954 fi
7955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7956 esac
7957 fi
7958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7959 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7960 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7961 CFLAGS="$xorg_testset_save_CFLAGS"
7962 fi
7963
7964 found="no"
7965
7966 if test $found = "no" ; then
7967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7969 fi
7970
7971 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7973 fi
7974
7975 CFLAGS="$CFLAGS -Werror=main"
7976
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7978 printf %s "checking if $CC supports -Werror=main... " >&6; }
7979 cacheid=xorg_cv_cc_flag__Werror_main
7980 if eval test \${$cacheid+y}
7981 then :
7982 printf %s "(cached) " >&6
7983 else case e in #(
7984 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 int i;
7987 int
7988 main (void)
7989 {
7990
7991 ;
7992 return 0;
7993 }
7994 _ACEOF
7995 if ac_fn_c_try_link "$LINENO"
7996 then :
7997 eval $cacheid=yes
7998 else case e in #(
7999 e) eval $cacheid=no ;;
8000 esac
8001 fi
8002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8003 conftest$ac_exeext conftest.$ac_ext ;;
8004 esac
8005 fi
8006
8007
8008 CFLAGS="$xorg_testset_save_CFLAGS"
8009
8010 eval supported=\$$cacheid
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8012 printf "%s\n" "$supported" >&6; }
8013 if test "$supported" = "yes" ; then
8014 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8015 found="yes"
8016 fi
8017 fi
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033 xorg_testset_save_CFLAGS="$CFLAGS"
8034
8035 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8038 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8039 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8040 then :
8041 printf %s "(cached) " >&6
8042 else case e in #(
8043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8044 /* end confdefs.h. */
8045 int i;
8046 _ACEOF
8047 if ac_fn_c_try_compile "$LINENO"
8048 then :
8049 xorg_cv_cc_flag_unknown_warning_option=yes
8050 else case e in #(
8051 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8052 esac
8053 fi
8054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8055 esac
8056 fi
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8058 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8060 CFLAGS="$xorg_testset_save_CFLAGS"
8061 fi
8062
8063 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8066 fi
8067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8069 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8070 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8071 then :
8072 printf %s "(cached) " >&6
8073 else case e in #(
8074 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8076 int i;
8077 _ACEOF
8078 if ac_fn_c_try_compile "$LINENO"
8079 then :
8080 xorg_cv_cc_flag_unused_command_line_argument=yes
8081 else case e in #(
8082 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8083 esac
8084 fi
8085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8086 esac
8087 fi
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8089 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8090 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8091 CFLAGS="$xorg_testset_save_CFLAGS"
8092 fi
8093
8094 found="no"
8095
8096 if test $found = "no" ; then
8097 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8098 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8099 fi
8100
8101 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8103 fi
8104
8105 CFLAGS="$CFLAGS -Werror=missing-braces"
8106
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8108 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8109 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8110 if eval test \${$cacheid+y}
8111 then :
8112 printf %s "(cached) " >&6
8113 else case e in #(
8114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8115 /* end confdefs.h. */
8116 int i;
8117 int
8118 main (void)
8119 {
8120
8121 ;
8122 return 0;
8123 }
8124 _ACEOF
8125 if ac_fn_c_try_link "$LINENO"
8126 then :
8127 eval $cacheid=yes
8128 else case e in #(
8129 e) eval $cacheid=no ;;
8130 esac
8131 fi
8132 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8133 conftest$ac_exeext conftest.$ac_ext ;;
8134 esac
8135 fi
8136
8137
8138 CFLAGS="$xorg_testset_save_CFLAGS"
8139
8140 eval supported=\$$cacheid
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8142 printf "%s\n" "$supported" >&6; }
8143 if test "$supported" = "yes" ; then
8144 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8145 found="yes"
8146 fi
8147 fi
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163 xorg_testset_save_CFLAGS="$CFLAGS"
8164
8165 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8168 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8169 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8170 then :
8171 printf %s "(cached) " >&6
8172 else case e in #(
8173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8174 /* end confdefs.h. */
8175 int i;
8176 _ACEOF
8177 if ac_fn_c_try_compile "$LINENO"
8178 then :
8179 xorg_cv_cc_flag_unknown_warning_option=yes
8180 else case e in #(
8181 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8182 esac
8183 fi
8184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8185 esac
8186 fi
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8188 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8190 CFLAGS="$xorg_testset_save_CFLAGS"
8191 fi
8192
8193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8196 fi
8197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8199 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8200 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8201 then :
8202 printf %s "(cached) " >&6
8203 else case e in #(
8204 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8205 /* end confdefs.h. */
8206 int i;
8207 _ACEOF
8208 if ac_fn_c_try_compile "$LINENO"
8209 then :
8210 xorg_cv_cc_flag_unused_command_line_argument=yes
8211 else case e in #(
8212 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8213 esac
8214 fi
8215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8216 esac
8217 fi
8218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8219 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8220 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8221 CFLAGS="$xorg_testset_save_CFLAGS"
8222 fi
8223
8224 found="no"
8225
8226 if test $found = "no" ; then
8227 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8228 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8229 fi
8230
8231 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8233 fi
8234
8235 CFLAGS="$CFLAGS -Werror=sequence-point"
8236
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8238 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8239 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8240 if eval test \${$cacheid+y}
8241 then :
8242 printf %s "(cached) " >&6
8243 else case e in #(
8244 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8245 /* end confdefs.h. */
8246 int i;
8247 int
8248 main (void)
8249 {
8250
8251 ;
8252 return 0;
8253 }
8254 _ACEOF
8255 if ac_fn_c_try_link "$LINENO"
8256 then :
8257 eval $cacheid=yes
8258 else case e in #(
8259 e) eval $cacheid=no ;;
8260 esac
8261 fi
8262 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8263 conftest$ac_exeext conftest.$ac_ext ;;
8264 esac
8265 fi
8266
8267
8268 CFLAGS="$xorg_testset_save_CFLAGS"
8269
8270 eval supported=\$$cacheid
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8272 printf "%s\n" "$supported" >&6; }
8273 if test "$supported" = "yes" ; then
8274 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8275 found="yes"
8276 fi
8277 fi
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293 xorg_testset_save_CFLAGS="$CFLAGS"
8294
8295 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8298 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8299 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8300 then :
8301 printf %s "(cached) " >&6
8302 else case e in #(
8303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8305 int i;
8306 _ACEOF
8307 if ac_fn_c_try_compile "$LINENO"
8308 then :
8309 xorg_cv_cc_flag_unknown_warning_option=yes
8310 else case e in #(
8311 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8312 esac
8313 fi
8314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8315 esac
8316 fi
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8318 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8320 CFLAGS="$xorg_testset_save_CFLAGS"
8321 fi
8322
8323 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8326 fi
8327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8329 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8330 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8331 then :
8332 printf %s "(cached) " >&6
8333 else case e in #(
8334 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8335 /* end confdefs.h. */
8336 int i;
8337 _ACEOF
8338 if ac_fn_c_try_compile "$LINENO"
8339 then :
8340 xorg_cv_cc_flag_unused_command_line_argument=yes
8341 else case e in #(
8342 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8343 esac
8344 fi
8345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8346 esac
8347 fi
8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8349 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8351 CFLAGS="$xorg_testset_save_CFLAGS"
8352 fi
8353
8354 found="no"
8355
8356 if test $found = "no" ; then
8357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8359 fi
8360
8361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8363 fi
8364
8365 CFLAGS="$CFLAGS -Werror=return-type"
8366
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8368 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8369 cacheid=xorg_cv_cc_flag__Werror_return_type
8370 if eval test \${$cacheid+y}
8371 then :
8372 printf %s "(cached) " >&6
8373 else case e in #(
8374 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8375 /* end confdefs.h. */
8376 int i;
8377 int
8378 main (void)
8379 {
8380
8381 ;
8382 return 0;
8383 }
8384 _ACEOF
8385 if ac_fn_c_try_link "$LINENO"
8386 then :
8387 eval $cacheid=yes
8388 else case e in #(
8389 e) eval $cacheid=no ;;
8390 esac
8391 fi
8392 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8393 conftest$ac_exeext conftest.$ac_ext ;;
8394 esac
8395 fi
8396
8397
8398 CFLAGS="$xorg_testset_save_CFLAGS"
8399
8400 eval supported=\$$cacheid
8401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8402 printf "%s\n" "$supported" >&6; }
8403 if test "$supported" = "yes" ; then
8404 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8405 found="yes"
8406 fi
8407 fi
8408
8409 if test $found = "no" ; then
8410 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8412 fi
8413
8414 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8416 fi
8417
8418 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8419
8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8421 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8422 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8423 if eval test \${$cacheid+y}
8424 then :
8425 printf %s "(cached) " >&6
8426 else case e in #(
8427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8428 /* end confdefs.h. */
8429 int i;
8430 int
8431 main (void)
8432 {
8433
8434 ;
8435 return 0;
8436 }
8437 _ACEOF
8438 if ac_fn_c_try_link "$LINENO"
8439 then :
8440 eval $cacheid=yes
8441 else case e in #(
8442 e) eval $cacheid=no ;;
8443 esac
8444 fi
8445 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8446 conftest$ac_exeext conftest.$ac_ext ;;
8447 esac
8448 fi
8449
8450
8451 CFLAGS="$xorg_testset_save_CFLAGS"
8452
8453 eval supported=\$$cacheid
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8455 printf "%s\n" "$supported" >&6; }
8456 if test "$supported" = "yes" ; then
8457 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8458 found="yes"
8459 fi
8460 fi
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476 xorg_testset_save_CFLAGS="$CFLAGS"
8477
8478 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8479 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8481 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8482 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8483 then :
8484 printf %s "(cached) " >&6
8485 else case e in #(
8486 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 int i;
8489 _ACEOF
8490 if ac_fn_c_try_compile "$LINENO"
8491 then :
8492 xorg_cv_cc_flag_unknown_warning_option=yes
8493 else case e in #(
8494 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8495 esac
8496 fi
8497 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8498 esac
8499 fi
8500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8501 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8502 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8503 CFLAGS="$xorg_testset_save_CFLAGS"
8504 fi
8505
8506 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8507 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8508 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8509 fi
8510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8512 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8513 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8514 then :
8515 printf %s "(cached) " >&6
8516 else case e in #(
8517 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 int i;
8520 _ACEOF
8521 if ac_fn_c_try_compile "$LINENO"
8522 then :
8523 xorg_cv_cc_flag_unused_command_line_argument=yes
8524 else case e in #(
8525 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8526 esac
8527 fi
8528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8529 esac
8530 fi
8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8532 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8534 CFLAGS="$xorg_testset_save_CFLAGS"
8535 fi
8536
8537 found="no"
8538
8539 if test $found = "no" ; then
8540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542 fi
8543
8544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8546 fi
8547
8548 CFLAGS="$CFLAGS -Werror=trigraphs"
8549
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8551 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8552 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8553 if eval test \${$cacheid+y}
8554 then :
8555 printf %s "(cached) " >&6
8556 else case e in #(
8557 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 int i;
8560 int
8561 main (void)
8562 {
8563
8564 ;
8565 return 0;
8566 }
8567 _ACEOF
8568 if ac_fn_c_try_link "$LINENO"
8569 then :
8570 eval $cacheid=yes
8571 else case e in #(
8572 e) eval $cacheid=no ;;
8573 esac
8574 fi
8575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8576 conftest$ac_exeext conftest.$ac_ext ;;
8577 esac
8578 fi
8579
8580
8581 CFLAGS="$xorg_testset_save_CFLAGS"
8582
8583 eval supported=\$$cacheid
8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8585 printf "%s\n" "$supported" >&6; }
8586 if test "$supported" = "yes" ; then
8587 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8588 found="yes"
8589 fi
8590 fi
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606 xorg_testset_save_CFLAGS="$CFLAGS"
8607
8608 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8611 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8612 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8613 then :
8614 printf %s "(cached) " >&6
8615 else case e in #(
8616 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8617 /* end confdefs.h. */
8618 int i;
8619 _ACEOF
8620 if ac_fn_c_try_compile "$LINENO"
8621 then :
8622 xorg_cv_cc_flag_unknown_warning_option=yes
8623 else case e in #(
8624 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8625 esac
8626 fi
8627 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8628 esac
8629 fi
8630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8631 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8632 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8633 CFLAGS="$xorg_testset_save_CFLAGS"
8634 fi
8635
8636 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8639 fi
8640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8642 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8643 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8644 then :
8645 printf %s "(cached) " >&6
8646 else case e in #(
8647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8648 /* end confdefs.h. */
8649 int i;
8650 _ACEOF
8651 if ac_fn_c_try_compile "$LINENO"
8652 then :
8653 xorg_cv_cc_flag_unused_command_line_argument=yes
8654 else case e in #(
8655 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8656 esac
8657 fi
8658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8659 esac
8660 fi
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8662 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8664 CFLAGS="$xorg_testset_save_CFLAGS"
8665 fi
8666
8667 found="no"
8668
8669 if test $found = "no" ; then
8670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8672 fi
8673
8674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8676 fi
8677
8678 CFLAGS="$CFLAGS -Werror=array-bounds"
8679
8680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8681 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8682 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8683 if eval test \${$cacheid+y}
8684 then :
8685 printf %s "(cached) " >&6
8686 else case e in #(
8687 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 int i;
8690 int
8691 main (void)
8692 {
8693
8694 ;
8695 return 0;
8696 }
8697 _ACEOF
8698 if ac_fn_c_try_link "$LINENO"
8699 then :
8700 eval $cacheid=yes
8701 else case e in #(
8702 e) eval $cacheid=no ;;
8703 esac
8704 fi
8705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8706 conftest$ac_exeext conftest.$ac_ext ;;
8707 esac
8708 fi
8709
8710
8711 CFLAGS="$xorg_testset_save_CFLAGS"
8712
8713 eval supported=\$$cacheid
8714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8715 printf "%s\n" "$supported" >&6; }
8716 if test "$supported" = "yes" ; then
8717 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8718 found="yes"
8719 fi
8720 fi
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736 xorg_testset_save_CFLAGS="$CFLAGS"
8737
8738 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8741 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8742 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8743 then :
8744 printf %s "(cached) " >&6
8745 else case e in #(
8746 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8747 /* end confdefs.h. */
8748 int i;
8749 _ACEOF
8750 if ac_fn_c_try_compile "$LINENO"
8751 then :
8752 xorg_cv_cc_flag_unknown_warning_option=yes
8753 else case e in #(
8754 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8755 esac
8756 fi
8757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8758 esac
8759 fi
8760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8761 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8763 CFLAGS="$xorg_testset_save_CFLAGS"
8764 fi
8765
8766 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8769 fi
8770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8772 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8773 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8774 then :
8775 printf %s "(cached) " >&6
8776 else case e in #(
8777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8778 /* end confdefs.h. */
8779 int i;
8780 _ACEOF
8781 if ac_fn_c_try_compile "$LINENO"
8782 then :
8783 xorg_cv_cc_flag_unused_command_line_argument=yes
8784 else case e in #(
8785 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8786 esac
8787 fi
8788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8789 esac
8790 fi
8791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8792 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8793 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8794 CFLAGS="$xorg_testset_save_CFLAGS"
8795 fi
8796
8797 found="no"
8798
8799 if test $found = "no" ; then
8800 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8801 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8802 fi
8803
8804 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8806 fi
8807
8808 CFLAGS="$CFLAGS -Werror=write-strings"
8809
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8811 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8812 cacheid=xorg_cv_cc_flag__Werror_write_strings
8813 if eval test \${$cacheid+y}
8814 then :
8815 printf %s "(cached) " >&6
8816 else case e in #(
8817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8818 /* end confdefs.h. */
8819 int i;
8820 int
8821 main (void)
8822 {
8823
8824 ;
8825 return 0;
8826 }
8827 _ACEOF
8828 if ac_fn_c_try_link "$LINENO"
8829 then :
8830 eval $cacheid=yes
8831 else case e in #(
8832 e) eval $cacheid=no ;;
8833 esac
8834 fi
8835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8836 conftest$ac_exeext conftest.$ac_ext ;;
8837 esac
8838 fi
8839
8840
8841 CFLAGS="$xorg_testset_save_CFLAGS"
8842
8843 eval supported=\$$cacheid
8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8845 printf "%s\n" "$supported" >&6; }
8846 if test "$supported" = "yes" ; then
8847 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8848 found="yes"
8849 fi
8850 fi
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866 xorg_testset_save_CFLAGS="$CFLAGS"
8867
8868 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8871 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8872 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8873 then :
8874 printf %s "(cached) " >&6
8875 else case e in #(
8876 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878 int i;
8879 _ACEOF
8880 if ac_fn_c_try_compile "$LINENO"
8881 then :
8882 xorg_cv_cc_flag_unknown_warning_option=yes
8883 else case e in #(
8884 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8885 esac
8886 fi
8887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8888 esac
8889 fi
8890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8891 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8892 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8893 CFLAGS="$xorg_testset_save_CFLAGS"
8894 fi
8895
8896 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8899 fi
8900 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8902 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8903 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8904 then :
8905 printf %s "(cached) " >&6
8906 else case e in #(
8907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8909 int i;
8910 _ACEOF
8911 if ac_fn_c_try_compile "$LINENO"
8912 then :
8913 xorg_cv_cc_flag_unused_command_line_argument=yes
8914 else case e in #(
8915 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8916 esac
8917 fi
8918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8919 esac
8920 fi
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8922 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8923 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8924 CFLAGS="$xorg_testset_save_CFLAGS"
8925 fi
8926
8927 found="no"
8928
8929 if test $found = "no" ; then
8930 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8932 fi
8933
8934 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8935 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8936 fi
8937
8938 CFLAGS="$CFLAGS -Werror=address"
8939
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8941 printf %s "checking if $CC supports -Werror=address... " >&6; }
8942 cacheid=xorg_cv_cc_flag__Werror_address
8943 if eval test \${$cacheid+y}
8944 then :
8945 printf %s "(cached) " >&6
8946 else case e in #(
8947 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8948 /* end confdefs.h. */
8949 int i;
8950 int
8951 main (void)
8952 {
8953
8954 ;
8955 return 0;
8956 }
8957 _ACEOF
8958 if ac_fn_c_try_link "$LINENO"
8959 then :
8960 eval $cacheid=yes
8961 else case e in #(
8962 e) eval $cacheid=no ;;
8963 esac
8964 fi
8965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8966 conftest$ac_exeext conftest.$ac_ext ;;
8967 esac
8968 fi
8969
8970
8971 CFLAGS="$xorg_testset_save_CFLAGS"
8972
8973 eval supported=\$$cacheid
8974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8975 printf "%s\n" "$supported" >&6; }
8976 if test "$supported" = "yes" ; then
8977 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8978 found="yes"
8979 fi
8980 fi
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996 xorg_testset_save_CFLAGS="$CFLAGS"
8997
8998 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9001 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9002 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9003 then :
9004 printf %s "(cached) " >&6
9005 else case e in #(
9006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9007 /* end confdefs.h. */
9008 int i;
9009 _ACEOF
9010 if ac_fn_c_try_compile "$LINENO"
9011 then :
9012 xorg_cv_cc_flag_unknown_warning_option=yes
9013 else case e in #(
9014 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9015 esac
9016 fi
9017 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9018 esac
9019 fi
9020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9021 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9022 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9023 CFLAGS="$xorg_testset_save_CFLAGS"
9024 fi
9025
9026 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9029 fi
9030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9032 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9033 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9034 then :
9035 printf %s "(cached) " >&6
9036 else case e in #(
9037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9039 int i;
9040 _ACEOF
9041 if ac_fn_c_try_compile "$LINENO"
9042 then :
9043 xorg_cv_cc_flag_unused_command_line_argument=yes
9044 else case e in #(
9045 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9046 esac
9047 fi
9048 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9049 esac
9050 fi
9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9052 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9054 CFLAGS="$xorg_testset_save_CFLAGS"
9055 fi
9056
9057 found="no"
9058
9059 if test $found = "no" ; then
9060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9062 fi
9063
9064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9066 fi
9067
9068 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9069
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9071 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9072 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9073 if eval test \${$cacheid+y}
9074 then :
9075 printf %s "(cached) " >&6
9076 else case e in #(
9077 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9078 /* end confdefs.h. */
9079 int i;
9080 int
9081 main (void)
9082 {
9083
9084 ;
9085 return 0;
9086 }
9087 _ACEOF
9088 if ac_fn_c_try_link "$LINENO"
9089 then :
9090 eval $cacheid=yes
9091 else case e in #(
9092 e) eval $cacheid=no ;;
9093 esac
9094 fi
9095 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9096 conftest$ac_exeext conftest.$ac_ext ;;
9097 esac
9098 fi
9099
9100
9101 CFLAGS="$xorg_testset_save_CFLAGS"
9102
9103 eval supported=\$$cacheid
9104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9105 printf "%s\n" "$supported" >&6; }
9106 if test "$supported" = "yes" ; then
9107 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9108 found="yes"
9109 fi
9110 fi
9111
9112 if test $found = "no" ; then
9113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9115 fi
9116
9117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9119 fi
9120
9121 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9122
9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9124 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9125 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9126 if eval test \${$cacheid+y}
9127 then :
9128 printf %s "(cached) " >&6
9129 else case e in #(
9130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9132 int i;
9133 int
9134 main (void)
9135 {
9136
9137 ;
9138 return 0;
9139 }
9140 _ACEOF
9141 if ac_fn_c_try_link "$LINENO"
9142 then :
9143 eval $cacheid=yes
9144 else case e in #(
9145 e) eval $cacheid=no ;;
9146 esac
9147 fi
9148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9149 conftest$ac_exeext conftest.$ac_ext ;;
9150 esac
9151 fi
9152
9153
9154 CFLAGS="$xorg_testset_save_CFLAGS"
9155
9156 eval supported=\$$cacheid
9157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9158 printf "%s\n" "$supported" >&6; }
9159 if test "$supported" = "yes" ; then
9160 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9161 found="yes"
9162 fi
9163 fi
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179 xorg_testset_save_CFLAGS="$CFLAGS"
9180
9181 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9184 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9185 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9186 then :
9187 printf %s "(cached) " >&6
9188 else case e in #(
9189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9191 int i;
9192 _ACEOF
9193 if ac_fn_c_try_compile "$LINENO"
9194 then :
9195 xorg_cv_cc_flag_unknown_warning_option=yes
9196 else case e in #(
9197 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9198 esac
9199 fi
9200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9201 esac
9202 fi
9203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9204 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9206 CFLAGS="$xorg_testset_save_CFLAGS"
9207 fi
9208
9209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9212 fi
9213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9215 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9216 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9217 then :
9218 printf %s "(cached) " >&6
9219 else case e in #(
9220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 int i;
9223 _ACEOF
9224 if ac_fn_c_try_compile "$LINENO"
9225 then :
9226 xorg_cv_cc_flag_unused_command_line_argument=yes
9227 else case e in #(
9228 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9229 esac
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9232 esac
9233 fi
9234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9235 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9237 CFLAGS="$xorg_testset_save_CFLAGS"
9238 fi
9239
9240 found="no"
9241
9242 if test $found = "no" ; then
9243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9245 fi
9246
9247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9249 fi
9250
9251 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9252
9253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9254 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9255 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9256 if eval test \${$cacheid+y}
9257 then :
9258 printf %s "(cached) " >&6
9259 else case e in #(
9260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261 /* end confdefs.h. */
9262 int i;
9263 int
9264 main (void)
9265 {
9266
9267 ;
9268 return 0;
9269 }
9270 _ACEOF
9271 if ac_fn_c_try_link "$LINENO"
9272 then :
9273 eval $cacheid=yes
9274 else case e in #(
9275 e) eval $cacheid=no ;;
9276 esac
9277 fi
9278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9279 conftest$ac_exeext conftest.$ac_ext ;;
9280 esac
9281 fi
9282
9283
9284 CFLAGS="$xorg_testset_save_CFLAGS"
9285
9286 eval supported=\$$cacheid
9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9288 printf "%s\n" "$supported" >&6; }
9289 if test "$supported" = "yes" ; then
9290 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9291 found="yes"
9292 fi
9293 fi
9294
9295 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9296 else
9297 { 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
9298 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;}
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312 xorg_testset_save_CFLAGS="$CFLAGS"
9313
9314 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9317 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9318 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9319 then :
9320 printf %s "(cached) " >&6
9321 else case e in #(
9322 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9323 /* end confdefs.h. */
9324 int i;
9325 _ACEOF
9326 if ac_fn_c_try_compile "$LINENO"
9327 then :
9328 xorg_cv_cc_flag_unknown_warning_option=yes
9329 else case e in #(
9330 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9331 esac
9332 fi
9333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9334 esac
9335 fi
9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9337 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9339 CFLAGS="$xorg_testset_save_CFLAGS"
9340 fi
9341
9342 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9345 fi
9346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9348 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9349 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9350 then :
9351 printf %s "(cached) " >&6
9352 else case e in #(
9353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354 /* end confdefs.h. */
9355 int i;
9356 _ACEOF
9357 if ac_fn_c_try_compile "$LINENO"
9358 then :
9359 xorg_cv_cc_flag_unused_command_line_argument=yes
9360 else case e in #(
9361 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9362 esac
9363 fi
9364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9365 esac
9366 fi
9367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9368 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9370 CFLAGS="$xorg_testset_save_CFLAGS"
9371 fi
9372
9373 found="no"
9374
9375 if test $found = "no" ; then
9376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9378 fi
9379
9380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9382 fi
9383
9384 CFLAGS="$CFLAGS -Wimplicit"
9385
9386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9387 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9388 cacheid=xorg_cv_cc_flag__Wimplicit
9389 if eval test \${$cacheid+y}
9390 then :
9391 printf %s "(cached) " >&6
9392 else case e in #(
9393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9394 /* end confdefs.h. */
9395 int i;
9396 int
9397 main (void)
9398 {
9399
9400 ;
9401 return 0;
9402 }
9403 _ACEOF
9404 if ac_fn_c_try_link "$LINENO"
9405 then :
9406 eval $cacheid=yes
9407 else case e in #(
9408 e) eval $cacheid=no ;;
9409 esac
9410 fi
9411 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9412 conftest$ac_exeext conftest.$ac_ext ;;
9413 esac
9414 fi
9415
9416
9417 CFLAGS="$xorg_testset_save_CFLAGS"
9418
9419 eval supported=\$$cacheid
9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9421 printf "%s\n" "$supported" >&6; }
9422 if test "$supported" = "yes" ; then
9423 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9424 found="yes"
9425 fi
9426 fi
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442 xorg_testset_save_CFLAGS="$CFLAGS"
9443
9444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9447 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9448 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9449 then :
9450 printf %s "(cached) " >&6
9451 else case e in #(
9452 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9454 int i;
9455 _ACEOF
9456 if ac_fn_c_try_compile "$LINENO"
9457 then :
9458 xorg_cv_cc_flag_unknown_warning_option=yes
9459 else case e in #(
9460 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9461 esac
9462 fi
9463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9464 esac
9465 fi
9466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9467 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9468 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9469 CFLAGS="$xorg_testset_save_CFLAGS"
9470 fi
9471
9472 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9475 fi
9476 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9478 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9479 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9480 then :
9481 printf %s "(cached) " >&6
9482 else case e in #(
9483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485 int i;
9486 _ACEOF
9487 if ac_fn_c_try_compile "$LINENO"
9488 then :
9489 xorg_cv_cc_flag_unused_command_line_argument=yes
9490 else case e in #(
9491 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9492 esac
9493 fi
9494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9495 esac
9496 fi
9497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9498 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9500 CFLAGS="$xorg_testset_save_CFLAGS"
9501 fi
9502
9503 found="no"
9504
9505 if test $found = "no" ; then
9506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9508 fi
9509
9510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9512 fi
9513
9514 CFLAGS="$CFLAGS -Wnonnull"
9515
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9517 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9518 cacheid=xorg_cv_cc_flag__Wnonnull
9519 if eval test \${$cacheid+y}
9520 then :
9521 printf %s "(cached) " >&6
9522 else case e in #(
9523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9525 int i;
9526 int
9527 main (void)
9528 {
9529
9530 ;
9531 return 0;
9532 }
9533 _ACEOF
9534 if ac_fn_c_try_link "$LINENO"
9535 then :
9536 eval $cacheid=yes
9537 else case e in #(
9538 e) eval $cacheid=no ;;
9539 esac
9540 fi
9541 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9542 conftest$ac_exeext conftest.$ac_ext ;;
9543 esac
9544 fi
9545
9546
9547 CFLAGS="$xorg_testset_save_CFLAGS"
9548
9549 eval supported=\$$cacheid
9550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9551 printf "%s\n" "$supported" >&6; }
9552 if test "$supported" = "yes" ; then
9553 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9554 found="yes"
9555 fi
9556 fi
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572 xorg_testset_save_CFLAGS="$CFLAGS"
9573
9574 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9577 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9578 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9579 then :
9580 printf %s "(cached) " >&6
9581 else case e in #(
9582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584 int i;
9585 _ACEOF
9586 if ac_fn_c_try_compile "$LINENO"
9587 then :
9588 xorg_cv_cc_flag_unknown_warning_option=yes
9589 else case e in #(
9590 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9591 esac
9592 fi
9593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9594 esac
9595 fi
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9597 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9598 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9599 CFLAGS="$xorg_testset_save_CFLAGS"
9600 fi
9601
9602 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9603 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9605 fi
9606 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9608 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9609 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9610 then :
9611 printf %s "(cached) " >&6
9612 else case e in #(
9613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9614 /* end confdefs.h. */
9615 int i;
9616 _ACEOF
9617 if ac_fn_c_try_compile "$LINENO"
9618 then :
9619 xorg_cv_cc_flag_unused_command_line_argument=yes
9620 else case e in #(
9621 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9622 esac
9623 fi
9624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9625 esac
9626 fi
9627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9628 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9629 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9630 CFLAGS="$xorg_testset_save_CFLAGS"
9631 fi
9632
9633 found="no"
9634
9635 if test $found = "no" ; then
9636 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9638 fi
9639
9640 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9642 fi
9643
9644 CFLAGS="$CFLAGS -Winit-self"
9645
9646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9647 printf %s "checking if $CC supports -Winit-self... " >&6; }
9648 cacheid=xorg_cv_cc_flag__Winit_self
9649 if eval test \${$cacheid+y}
9650 then :
9651 printf %s "(cached) " >&6
9652 else case e in #(
9653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9655 int i;
9656 int
9657 main (void)
9658 {
9659
9660 ;
9661 return 0;
9662 }
9663 _ACEOF
9664 if ac_fn_c_try_link "$LINENO"
9665 then :
9666 eval $cacheid=yes
9667 else case e in #(
9668 e) eval $cacheid=no ;;
9669 esac
9670 fi
9671 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9672 conftest$ac_exeext conftest.$ac_ext ;;
9673 esac
9674 fi
9675
9676
9677 CFLAGS="$xorg_testset_save_CFLAGS"
9678
9679 eval supported=\$$cacheid
9680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9681 printf "%s\n" "$supported" >&6; }
9682 if test "$supported" = "yes" ; then
9683 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9684 found="yes"
9685 fi
9686 fi
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702 xorg_testset_save_CFLAGS="$CFLAGS"
9703
9704 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9707 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9708 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9709 then :
9710 printf %s "(cached) " >&6
9711 else case e in #(
9712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9713 /* end confdefs.h. */
9714 int i;
9715 _ACEOF
9716 if ac_fn_c_try_compile "$LINENO"
9717 then :
9718 xorg_cv_cc_flag_unknown_warning_option=yes
9719 else case e in #(
9720 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9721 esac
9722 fi
9723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9724 esac
9725 fi
9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9727 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9728 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9729 CFLAGS="$xorg_testset_save_CFLAGS"
9730 fi
9731
9732 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9733 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9735 fi
9736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9738 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9739 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9740 then :
9741 printf %s "(cached) " >&6
9742 else case e in #(
9743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h. */
9745 int i;
9746 _ACEOF
9747 if ac_fn_c_try_compile "$LINENO"
9748 then :
9749 xorg_cv_cc_flag_unused_command_line_argument=yes
9750 else case e in #(
9751 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9752 esac
9753 fi
9754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9755 esac
9756 fi
9757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9758 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9760 CFLAGS="$xorg_testset_save_CFLAGS"
9761 fi
9762
9763 found="no"
9764
9765 if test $found = "no" ; then
9766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9768 fi
9769
9770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9772 fi
9773
9774 CFLAGS="$CFLAGS -Wmain"
9775
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9777 printf %s "checking if $CC supports -Wmain... " >&6; }
9778 cacheid=xorg_cv_cc_flag__Wmain
9779 if eval test \${$cacheid+y}
9780 then :
9781 printf %s "(cached) " >&6
9782 else case e in #(
9783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9785 int i;
9786 int
9787 main (void)
9788 {
9789
9790 ;
9791 return 0;
9792 }
9793 _ACEOF
9794 if ac_fn_c_try_link "$LINENO"
9795 then :
9796 eval $cacheid=yes
9797 else case e in #(
9798 e) eval $cacheid=no ;;
9799 esac
9800 fi
9801 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9802 conftest$ac_exeext conftest.$ac_ext ;;
9803 esac
9804 fi
9805
9806
9807 CFLAGS="$xorg_testset_save_CFLAGS"
9808
9809 eval supported=\$$cacheid
9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9811 printf "%s\n" "$supported" >&6; }
9812 if test "$supported" = "yes" ; then
9813 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9814 found="yes"
9815 fi
9816 fi
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832 xorg_testset_save_CFLAGS="$CFLAGS"
9833
9834 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9837 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9838 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9839 then :
9840 printf %s "(cached) " >&6
9841 else case e in #(
9842 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9843 /* end confdefs.h. */
9844 int i;
9845 _ACEOF
9846 if ac_fn_c_try_compile "$LINENO"
9847 then :
9848 xorg_cv_cc_flag_unknown_warning_option=yes
9849 else case e in #(
9850 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9851 esac
9852 fi
9853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9854 esac
9855 fi
9856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9857 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9858 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9859 CFLAGS="$xorg_testset_save_CFLAGS"
9860 fi
9861
9862 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9863 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9865 fi
9866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9868 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9869 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9870 then :
9871 printf %s "(cached) " >&6
9872 else case e in #(
9873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874 /* end confdefs.h. */
9875 int i;
9876 _ACEOF
9877 if ac_fn_c_try_compile "$LINENO"
9878 then :
9879 xorg_cv_cc_flag_unused_command_line_argument=yes
9880 else case e in #(
9881 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9882 esac
9883 fi
9884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9885 esac
9886 fi
9887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9888 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9890 CFLAGS="$xorg_testset_save_CFLAGS"
9891 fi
9892
9893 found="no"
9894
9895 if test $found = "no" ; then
9896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9898 fi
9899
9900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9902 fi
9903
9904 CFLAGS="$CFLAGS -Wmissing-braces"
9905
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9907 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9908 cacheid=xorg_cv_cc_flag__Wmissing_braces
9909 if eval test \${$cacheid+y}
9910 then :
9911 printf %s "(cached) " >&6
9912 else case e in #(
9913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914 /* end confdefs.h. */
9915 int i;
9916 int
9917 main (void)
9918 {
9919
9920 ;
9921 return 0;
9922 }
9923 _ACEOF
9924 if ac_fn_c_try_link "$LINENO"
9925 then :
9926 eval $cacheid=yes
9927 else case e in #(
9928 e) eval $cacheid=no ;;
9929 esac
9930 fi
9931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9932 conftest$ac_exeext conftest.$ac_ext ;;
9933 esac
9934 fi
9935
9936
9937 CFLAGS="$xorg_testset_save_CFLAGS"
9938
9939 eval supported=\$$cacheid
9940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9941 printf "%s\n" "$supported" >&6; }
9942 if test "$supported" = "yes" ; then
9943 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9944 found="yes"
9945 fi
9946 fi
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962 xorg_testset_save_CFLAGS="$CFLAGS"
9963
9964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9967 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9968 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9969 then :
9970 printf %s "(cached) " >&6
9971 else case e in #(
9972 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h. */
9974 int i;
9975 _ACEOF
9976 if ac_fn_c_try_compile "$LINENO"
9977 then :
9978 xorg_cv_cc_flag_unknown_warning_option=yes
9979 else case e in #(
9980 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9981 esac
9982 fi
9983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9984 esac
9985 fi
9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9987 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9989 CFLAGS="$xorg_testset_save_CFLAGS"
9990 fi
9991
9992 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9995 fi
9996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9998 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9999 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10000 then :
10001 printf %s "(cached) " >&6
10002 else case e in #(
10003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10004 /* end confdefs.h. */
10005 int i;
10006 _ACEOF
10007 if ac_fn_c_try_compile "$LINENO"
10008 then :
10009 xorg_cv_cc_flag_unused_command_line_argument=yes
10010 else case e in #(
10011 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10012 esac
10013 fi
10014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10015 esac
10016 fi
10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10018 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10020 CFLAGS="$xorg_testset_save_CFLAGS"
10021 fi
10022
10023 found="no"
10024
10025 if test $found = "no" ; then
10026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10028 fi
10029
10030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10032 fi
10033
10034 CFLAGS="$CFLAGS -Wsequence-point"
10035
10036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10037 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10038 cacheid=xorg_cv_cc_flag__Wsequence_point
10039 if eval test \${$cacheid+y}
10040 then :
10041 printf %s "(cached) " >&6
10042 else case e in #(
10043 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10044 /* end confdefs.h. */
10045 int i;
10046 int
10047 main (void)
10048 {
10049
10050 ;
10051 return 0;
10052 }
10053 _ACEOF
10054 if ac_fn_c_try_link "$LINENO"
10055 then :
10056 eval $cacheid=yes
10057 else case e in #(
10058 e) eval $cacheid=no ;;
10059 esac
10060 fi
10061 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10062 conftest$ac_exeext conftest.$ac_ext ;;
10063 esac
10064 fi
10065
10066
10067 CFLAGS="$xorg_testset_save_CFLAGS"
10068
10069 eval supported=\$$cacheid
10070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10071 printf "%s\n" "$supported" >&6; }
10072 if test "$supported" = "yes" ; then
10073 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10074 found="yes"
10075 fi
10076 fi
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092 xorg_testset_save_CFLAGS="$CFLAGS"
10093
10094 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10097 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10098 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10099 then :
10100 printf %s "(cached) " >&6
10101 else case e in #(
10102 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103 /* end confdefs.h. */
10104 int i;
10105 _ACEOF
10106 if ac_fn_c_try_compile "$LINENO"
10107 then :
10108 xorg_cv_cc_flag_unknown_warning_option=yes
10109 else case e in #(
10110 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10111 esac
10112 fi
10113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10114 esac
10115 fi
10116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10117 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10118 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10119 CFLAGS="$xorg_testset_save_CFLAGS"
10120 fi
10121
10122 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10125 fi
10126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10128 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10129 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10130 then :
10131 printf %s "(cached) " >&6
10132 else case e in #(
10133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h. */
10135 int i;
10136 _ACEOF
10137 if ac_fn_c_try_compile "$LINENO"
10138 then :
10139 xorg_cv_cc_flag_unused_command_line_argument=yes
10140 else case e in #(
10141 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10142 esac
10143 fi
10144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10145 esac
10146 fi
10147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10148 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10149 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10150 CFLAGS="$xorg_testset_save_CFLAGS"
10151 fi
10152
10153 found="no"
10154
10155 if test $found = "no" ; then
10156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10158 fi
10159
10160 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10162 fi
10163
10164 CFLAGS="$CFLAGS -Wreturn-type"
10165
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10167 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10168 cacheid=xorg_cv_cc_flag__Wreturn_type
10169 if eval test \${$cacheid+y}
10170 then :
10171 printf %s "(cached) " >&6
10172 else case e in #(
10173 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10174 /* end confdefs.h. */
10175 int i;
10176 int
10177 main (void)
10178 {
10179
10180 ;
10181 return 0;
10182 }
10183 _ACEOF
10184 if ac_fn_c_try_link "$LINENO"
10185 then :
10186 eval $cacheid=yes
10187 else case e in #(
10188 e) eval $cacheid=no ;;
10189 esac
10190 fi
10191 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10192 conftest$ac_exeext conftest.$ac_ext ;;
10193 esac
10194 fi
10195
10196
10197 CFLAGS="$xorg_testset_save_CFLAGS"
10198
10199 eval supported=\$$cacheid
10200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10201 printf "%s\n" "$supported" >&6; }
10202 if test "$supported" = "yes" ; then
10203 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10204 found="yes"
10205 fi
10206 fi
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222 xorg_testset_save_CFLAGS="$CFLAGS"
10223
10224 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10227 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10228 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10229 then :
10230 printf %s "(cached) " >&6
10231 else case e in #(
10232 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10233 /* end confdefs.h. */
10234 int i;
10235 _ACEOF
10236 if ac_fn_c_try_compile "$LINENO"
10237 then :
10238 xorg_cv_cc_flag_unknown_warning_option=yes
10239 else case e in #(
10240 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10241 esac
10242 fi
10243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10244 esac
10245 fi
10246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10247 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10248 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10249 CFLAGS="$xorg_testset_save_CFLAGS"
10250 fi
10251
10252 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10255 fi
10256 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10258 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10259 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10260 then :
10261 printf %s "(cached) " >&6
10262 else case e in #(
10263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h. */
10265 int i;
10266 _ACEOF
10267 if ac_fn_c_try_compile "$LINENO"
10268 then :
10269 xorg_cv_cc_flag_unused_command_line_argument=yes
10270 else case e in #(
10271 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10272 esac
10273 fi
10274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10275 esac
10276 fi
10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10278 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10279 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10280 CFLAGS="$xorg_testset_save_CFLAGS"
10281 fi
10282
10283 found="no"
10284
10285 if test $found = "no" ; then
10286 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10288 fi
10289
10290 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10292 fi
10293
10294 CFLAGS="$CFLAGS -Wtrigraphs"
10295
10296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10297 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10298 cacheid=xorg_cv_cc_flag__Wtrigraphs
10299 if eval test \${$cacheid+y}
10300 then :
10301 printf %s "(cached) " >&6
10302 else case e in #(
10303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304 /* end confdefs.h. */
10305 int i;
10306 int
10307 main (void)
10308 {
10309
10310 ;
10311 return 0;
10312 }
10313 _ACEOF
10314 if ac_fn_c_try_link "$LINENO"
10315 then :
10316 eval $cacheid=yes
10317 else case e in #(
10318 e) eval $cacheid=no ;;
10319 esac
10320 fi
10321 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10322 conftest$ac_exeext conftest.$ac_ext ;;
10323 esac
10324 fi
10325
10326
10327 CFLAGS="$xorg_testset_save_CFLAGS"
10328
10329 eval supported=\$$cacheid
10330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10331 printf "%s\n" "$supported" >&6; }
10332 if test "$supported" = "yes" ; then
10333 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10334 found="yes"
10335 fi
10336 fi
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352 xorg_testset_save_CFLAGS="$CFLAGS"
10353
10354 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10355 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10357 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10358 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10359 then :
10360 printf %s "(cached) " >&6
10361 else case e in #(
10362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10363 /* end confdefs.h. */
10364 int i;
10365 _ACEOF
10366 if ac_fn_c_try_compile "$LINENO"
10367 then :
10368 xorg_cv_cc_flag_unknown_warning_option=yes
10369 else case e in #(
10370 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10371 esac
10372 fi
10373 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10374 esac
10375 fi
10376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10377 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10378 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10379 CFLAGS="$xorg_testset_save_CFLAGS"
10380 fi
10381
10382 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10383 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10384 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10385 fi
10386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10388 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10389 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10390 then :
10391 printf %s "(cached) " >&6
10392 else case e in #(
10393 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10394 /* end confdefs.h. */
10395 int i;
10396 _ACEOF
10397 if ac_fn_c_try_compile "$LINENO"
10398 then :
10399 xorg_cv_cc_flag_unused_command_line_argument=yes
10400 else case e in #(
10401 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10402 esac
10403 fi
10404 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10405 esac
10406 fi
10407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10408 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10410 CFLAGS="$xorg_testset_save_CFLAGS"
10411 fi
10412
10413 found="no"
10414
10415 if test $found = "no" ; then
10416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10418 fi
10419
10420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10422 fi
10423
10424 CFLAGS="$CFLAGS -Warray-bounds"
10425
10426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10427 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10428 cacheid=xorg_cv_cc_flag__Warray_bounds
10429 if eval test \${$cacheid+y}
10430 then :
10431 printf %s "(cached) " >&6
10432 else case e in #(
10433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10435 int i;
10436 int
10437 main (void)
10438 {
10439
10440 ;
10441 return 0;
10442 }
10443 _ACEOF
10444 if ac_fn_c_try_link "$LINENO"
10445 then :
10446 eval $cacheid=yes
10447 else case e in #(
10448 e) eval $cacheid=no ;;
10449 esac
10450 fi
10451 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10452 conftest$ac_exeext conftest.$ac_ext ;;
10453 esac
10454 fi
10455
10456
10457 CFLAGS="$xorg_testset_save_CFLAGS"
10458
10459 eval supported=\$$cacheid
10460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10461 printf "%s\n" "$supported" >&6; }
10462 if test "$supported" = "yes" ; then
10463 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10464 found="yes"
10465 fi
10466 fi
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482 xorg_testset_save_CFLAGS="$CFLAGS"
10483
10484 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10487 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10488 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10489 then :
10490 printf %s "(cached) " >&6
10491 else case e in #(
10492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10494 int i;
10495 _ACEOF
10496 if ac_fn_c_try_compile "$LINENO"
10497 then :
10498 xorg_cv_cc_flag_unknown_warning_option=yes
10499 else case e in #(
10500 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10501 esac
10502 fi
10503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10504 esac
10505 fi
10506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10507 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10509 CFLAGS="$xorg_testset_save_CFLAGS"
10510 fi
10511
10512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10515 fi
10516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10518 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10519 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10520 then :
10521 printf %s "(cached) " >&6
10522 else case e in #(
10523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10525 int i;
10526 _ACEOF
10527 if ac_fn_c_try_compile "$LINENO"
10528 then :
10529 xorg_cv_cc_flag_unused_command_line_argument=yes
10530 else case e in #(
10531 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10532 esac
10533 fi
10534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10535 esac
10536 fi
10537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10538 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10540 CFLAGS="$xorg_testset_save_CFLAGS"
10541 fi
10542
10543 found="no"
10544
10545 if test $found = "no" ; then
10546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10548 fi
10549
10550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10552 fi
10553
10554 CFLAGS="$CFLAGS -Wwrite-strings"
10555
10556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10557 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10558 cacheid=xorg_cv_cc_flag__Wwrite_strings
10559 if eval test \${$cacheid+y}
10560 then :
10561 printf %s "(cached) " >&6
10562 else case e in #(
10563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10564 /* end confdefs.h. */
10565 int i;
10566 int
10567 main (void)
10568 {
10569
10570 ;
10571 return 0;
10572 }
10573 _ACEOF
10574 if ac_fn_c_try_link "$LINENO"
10575 then :
10576 eval $cacheid=yes
10577 else case e in #(
10578 e) eval $cacheid=no ;;
10579 esac
10580 fi
10581 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10582 conftest$ac_exeext conftest.$ac_ext ;;
10583 esac
10584 fi
10585
10586
10587 CFLAGS="$xorg_testset_save_CFLAGS"
10588
10589 eval supported=\$$cacheid
10590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10591 printf "%s\n" "$supported" >&6; }
10592 if test "$supported" = "yes" ; then
10593 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10594 found="yes"
10595 fi
10596 fi
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612 xorg_testset_save_CFLAGS="$CFLAGS"
10613
10614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10617 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10618 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10619 then :
10620 printf %s "(cached) " >&6
10621 else case e in #(
10622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10623 /* end confdefs.h. */
10624 int i;
10625 _ACEOF
10626 if ac_fn_c_try_compile "$LINENO"
10627 then :
10628 xorg_cv_cc_flag_unknown_warning_option=yes
10629 else case e in #(
10630 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10631 esac
10632 fi
10633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10634 esac
10635 fi
10636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10637 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10639 CFLAGS="$xorg_testset_save_CFLAGS"
10640 fi
10641
10642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10645 fi
10646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10648 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10649 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10650 then :
10651 printf %s "(cached) " >&6
10652 else case e in #(
10653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654 /* end confdefs.h. */
10655 int i;
10656 _ACEOF
10657 if ac_fn_c_try_compile "$LINENO"
10658 then :
10659 xorg_cv_cc_flag_unused_command_line_argument=yes
10660 else case e in #(
10661 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10662 esac
10663 fi
10664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10665 esac
10666 fi
10667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10668 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10669 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10670 CFLAGS="$xorg_testset_save_CFLAGS"
10671 fi
10672
10673 found="no"
10674
10675 if test $found = "no" ; then
10676 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10677 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10678 fi
10679
10680 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10681 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10682 fi
10683
10684 CFLAGS="$CFLAGS -Waddress"
10685
10686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10687 printf %s "checking if $CC supports -Waddress... " >&6; }
10688 cacheid=xorg_cv_cc_flag__Waddress
10689 if eval test \${$cacheid+y}
10690 then :
10691 printf %s "(cached) " >&6
10692 else case e in #(
10693 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10694 /* end confdefs.h. */
10695 int i;
10696 int
10697 main (void)
10698 {
10699
10700 ;
10701 return 0;
10702 }
10703 _ACEOF
10704 if ac_fn_c_try_link "$LINENO"
10705 then :
10706 eval $cacheid=yes
10707 else case e in #(
10708 e) eval $cacheid=no ;;
10709 esac
10710 fi
10711 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10712 conftest$ac_exeext conftest.$ac_ext ;;
10713 esac
10714 fi
10715
10716
10717 CFLAGS="$xorg_testset_save_CFLAGS"
10718
10719 eval supported=\$$cacheid
10720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10721 printf "%s\n" "$supported" >&6; }
10722 if test "$supported" = "yes" ; then
10723 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10724 found="yes"
10725 fi
10726 fi
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742 xorg_testset_save_CFLAGS="$CFLAGS"
10743
10744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10747 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10748 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10749 then :
10750 printf %s "(cached) " >&6
10751 else case e in #(
10752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10753 /* end confdefs.h. */
10754 int i;
10755 _ACEOF
10756 if ac_fn_c_try_compile "$LINENO"
10757 then :
10758 xorg_cv_cc_flag_unknown_warning_option=yes
10759 else case e in #(
10760 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10761 esac
10762 fi
10763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10764 esac
10765 fi
10766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10767 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10768 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10769 CFLAGS="$xorg_testset_save_CFLAGS"
10770 fi
10771
10772 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10775 fi
10776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10778 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10779 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10780 then :
10781 printf %s "(cached) " >&6
10782 else case e in #(
10783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10785 int i;
10786 _ACEOF
10787 if ac_fn_c_try_compile "$LINENO"
10788 then :
10789 xorg_cv_cc_flag_unused_command_line_argument=yes
10790 else case e in #(
10791 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10792 esac
10793 fi
10794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10795 esac
10796 fi
10797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10798 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10799 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10800 CFLAGS="$xorg_testset_save_CFLAGS"
10801 fi
10802
10803 found="no"
10804
10805 if test $found = "no" ; then
10806 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10808 fi
10809
10810 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10812 fi
10813
10814 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10815
10816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10817 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10818 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10819 if eval test \${$cacheid+y}
10820 then :
10821 printf %s "(cached) " >&6
10822 else case e in #(
10823 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824 /* end confdefs.h. */
10825 int i;
10826 int
10827 main (void)
10828 {
10829
10830 ;
10831 return 0;
10832 }
10833 _ACEOF
10834 if ac_fn_c_try_link "$LINENO"
10835 then :
10836 eval $cacheid=yes
10837 else case e in #(
10838 e) eval $cacheid=no ;;
10839 esac
10840 fi
10841 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10842 conftest$ac_exeext conftest.$ac_ext ;;
10843 esac
10844 fi
10845
10846
10847 CFLAGS="$xorg_testset_save_CFLAGS"
10848
10849 eval supported=\$$cacheid
10850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10851 printf "%s\n" "$supported" >&6; }
10852 if test "$supported" = "yes" ; then
10853 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10854 found="yes"
10855 fi
10856 fi
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872 xorg_testset_save_CFLAGS="$CFLAGS"
10873
10874 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10877 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10878 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10879 then :
10880 printf %s "(cached) " >&6
10881 else case e in #(
10882 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10883 /* end confdefs.h. */
10884 int i;
10885 _ACEOF
10886 if ac_fn_c_try_compile "$LINENO"
10887 then :
10888 xorg_cv_cc_flag_unknown_warning_option=yes
10889 else case e in #(
10890 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10891 esac
10892 fi
10893 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10894 esac
10895 fi
10896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10897 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10898 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10899 CFLAGS="$xorg_testset_save_CFLAGS"
10900 fi
10901
10902 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10903 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10904 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10905 fi
10906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10908 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10909 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10910 then :
10911 printf %s "(cached) " >&6
10912 else case e in #(
10913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10914 /* end confdefs.h. */
10915 int i;
10916 _ACEOF
10917 if ac_fn_c_try_compile "$LINENO"
10918 then :
10919 xorg_cv_cc_flag_unused_command_line_argument=yes
10920 else case e in #(
10921 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10922 esac
10923 fi
10924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10925 esac
10926 fi
10927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10928 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10930 CFLAGS="$xorg_testset_save_CFLAGS"
10931 fi
10932
10933 found="no"
10934
10935 if test $found = "no" ; then
10936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10938 fi
10939
10940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10942 fi
10943
10944 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10945
10946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10947 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10948 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10949 if eval test \${$cacheid+y}
10950 then :
10951 printf %s "(cached) " >&6
10952 else case e in #(
10953 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10954 /* end confdefs.h. */
10955 int i;
10956 int
10957 main (void)
10958 {
10959
10960 ;
10961 return 0;
10962 }
10963 _ACEOF
10964 if ac_fn_c_try_link "$LINENO"
10965 then :
10966 eval $cacheid=yes
10967 else case e in #(
10968 e) eval $cacheid=no ;;
10969 esac
10970 fi
10971 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10972 conftest$ac_exeext conftest.$ac_ext ;;
10973 esac
10974 fi
10975
10976
10977 CFLAGS="$xorg_testset_save_CFLAGS"
10978
10979 eval supported=\$$cacheid
10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10981 printf "%s\n" "$supported" >&6; }
10982 if test "$supported" = "yes" ; then
10983 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10984 found="yes"
10985 fi
10986 fi
10987
10988
10989 fi
10990
10991
10992
10993
10994
10995
10996
10997 CWARNFLAGS="$BASE_CFLAGS"
10998 if test "x$GCC" = xyes ; then
10999 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11000 fi
11001
11002
11003
11004
11005
11006
11007
11008
11009 # Check whether --enable-strict-compilation was given.
11010 if test ${enable_strict_compilation+y}
11011 then :
11012 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11013 else case e in #(
11014 e) STRICT_COMPILE=no ;;
11015 esac
11016 fi
11017
11018
11019
11020
11021
11022
11023 STRICT_CFLAGS=""
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037 xorg_testset_save_CFLAGS="$CFLAGS"
11038
11039 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11042 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11043 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11044 then :
11045 printf %s "(cached) " >&6
11046 else case e in #(
11047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11048 /* end confdefs.h. */
11049 int i;
11050 _ACEOF
11051 if ac_fn_c_try_compile "$LINENO"
11052 then :
11053 xorg_cv_cc_flag_unknown_warning_option=yes
11054 else case e in #(
11055 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11056 esac
11057 fi
11058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11059 esac
11060 fi
11061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11062 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11064 CFLAGS="$xorg_testset_save_CFLAGS"
11065 fi
11066
11067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11070 fi
11071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11073 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11074 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11075 then :
11076 printf %s "(cached) " >&6
11077 else case e in #(
11078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11079 /* end confdefs.h. */
11080 int i;
11081 _ACEOF
11082 if ac_fn_c_try_compile "$LINENO"
11083 then :
11084 xorg_cv_cc_flag_unused_command_line_argument=yes
11085 else case e in #(
11086 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11087 esac
11088 fi
11089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11090 esac
11091 fi
11092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11093 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11095 CFLAGS="$xorg_testset_save_CFLAGS"
11096 fi
11097
11098 found="no"
11099
11100 if test $found = "no" ; then
11101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11103 fi
11104
11105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11107 fi
11108
11109 CFLAGS="$CFLAGS -pedantic"
11110
11111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11112 printf %s "checking if $CC supports -pedantic... " >&6; }
11113 cacheid=xorg_cv_cc_flag__pedantic
11114 if eval test \${$cacheid+y}
11115 then :
11116 printf %s "(cached) " >&6
11117 else case e in #(
11118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11119 /* end confdefs.h. */
11120 int i;
11121 int
11122 main (void)
11123 {
11124
11125 ;
11126 return 0;
11127 }
11128 _ACEOF
11129 if ac_fn_c_try_link "$LINENO"
11130 then :
11131 eval $cacheid=yes
11132 else case e in #(
11133 e) eval $cacheid=no ;;
11134 esac
11135 fi
11136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11137 conftest$ac_exeext conftest.$ac_ext ;;
11138 esac
11139 fi
11140
11141
11142 CFLAGS="$xorg_testset_save_CFLAGS"
11143
11144 eval supported=\$$cacheid
11145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11146 printf "%s\n" "$supported" >&6; }
11147 if test "$supported" = "yes" ; then
11148 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11149 found="yes"
11150 fi
11151 fi
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167 xorg_testset_save_CFLAGS="$CFLAGS"
11168
11169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11172 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11173 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11174 then :
11175 printf %s "(cached) " >&6
11176 else case e in #(
11177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11178 /* end confdefs.h. */
11179 int i;
11180 _ACEOF
11181 if ac_fn_c_try_compile "$LINENO"
11182 then :
11183 xorg_cv_cc_flag_unknown_warning_option=yes
11184 else case e in #(
11185 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11186 esac
11187 fi
11188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11189 esac
11190 fi
11191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11192 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11193 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11194 CFLAGS="$xorg_testset_save_CFLAGS"
11195 fi
11196
11197 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11200 fi
11201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11203 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11204 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11205 then :
11206 printf %s "(cached) " >&6
11207 else case e in #(
11208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h. */
11210 int i;
11211 _ACEOF
11212 if ac_fn_c_try_compile "$LINENO"
11213 then :
11214 xorg_cv_cc_flag_unused_command_line_argument=yes
11215 else case e in #(
11216 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11217 esac
11218 fi
11219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11220 esac
11221 fi
11222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11223 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11224 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11225 CFLAGS="$xorg_testset_save_CFLAGS"
11226 fi
11227
11228 found="no"
11229
11230 if test $found = "no" ; then
11231 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11233 fi
11234
11235 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11237 fi
11238
11239 CFLAGS="$CFLAGS -Werror"
11240
11241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11242 printf %s "checking if $CC supports -Werror... " >&6; }
11243 cacheid=xorg_cv_cc_flag__Werror
11244 if eval test \${$cacheid+y}
11245 then :
11246 printf %s "(cached) " >&6
11247 else case e in #(
11248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11249 /* end confdefs.h. */
11250 int i;
11251 int
11252 main (void)
11253 {
11254
11255 ;
11256 return 0;
11257 }
11258 _ACEOF
11259 if ac_fn_c_try_link "$LINENO"
11260 then :
11261 eval $cacheid=yes
11262 else case e in #(
11263 e) eval $cacheid=no ;;
11264 esac
11265 fi
11266 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11267 conftest$ac_exeext conftest.$ac_ext ;;
11268 esac
11269 fi
11270
11271
11272 CFLAGS="$xorg_testset_save_CFLAGS"
11273
11274 eval supported=\$$cacheid
11275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11276 printf "%s\n" "$supported" >&6; }
11277 if test "$supported" = "yes" ; then
11278 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11279 found="yes"
11280 fi
11281 fi
11282
11283 if test $found = "no" ; then
11284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11286 fi
11287
11288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11290 fi
11291
11292 CFLAGS="$CFLAGS -errwarn"
11293
11294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11295 printf %s "checking if $CC supports -errwarn... " >&6; }
11296 cacheid=xorg_cv_cc_flag__errwarn
11297 if eval test \${$cacheid+y}
11298 then :
11299 printf %s "(cached) " >&6
11300 else case e in #(
11301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11302 /* end confdefs.h. */
11303 int i;
11304 int
11305 main (void)
11306 {
11307
11308 ;
11309 return 0;
11310 }
11311 _ACEOF
11312 if ac_fn_c_try_link "$LINENO"
11313 then :
11314 eval $cacheid=yes
11315 else case e in #(
11316 e) eval $cacheid=no ;;
11317 esac
11318 fi
11319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11320 conftest$ac_exeext conftest.$ac_ext ;;
11321 esac
11322 fi
11323
11324
11325 CFLAGS="$xorg_testset_save_CFLAGS"
11326
11327 eval supported=\$$cacheid
11328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11329 printf "%s\n" "$supported" >&6; }
11330 if test "$supported" = "yes" ; then
11331 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11332 found="yes"
11333 fi
11334 fi
11335
11336
11337
11338 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11339 # activate it with -Werror, so we add it here explicitly.
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353 xorg_testset_save_CFLAGS="$CFLAGS"
11354
11355 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11358 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11359 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11360 then :
11361 printf %s "(cached) " >&6
11362 else case e in #(
11363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11364 /* end confdefs.h. */
11365 int i;
11366 _ACEOF
11367 if ac_fn_c_try_compile "$LINENO"
11368 then :
11369 xorg_cv_cc_flag_unknown_warning_option=yes
11370 else case e in #(
11371 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11372 esac
11373 fi
11374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11375 esac
11376 fi
11377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11378 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11380 CFLAGS="$xorg_testset_save_CFLAGS"
11381 fi
11382
11383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11386 fi
11387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11389 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11390 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11391 then :
11392 printf %s "(cached) " >&6
11393 else case e in #(
11394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11395 /* end confdefs.h. */
11396 int i;
11397 _ACEOF
11398 if ac_fn_c_try_compile "$LINENO"
11399 then :
11400 xorg_cv_cc_flag_unused_command_line_argument=yes
11401 else case e in #(
11402 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11403 esac
11404 fi
11405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11406 esac
11407 fi
11408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11409 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11411 CFLAGS="$xorg_testset_save_CFLAGS"
11412 fi
11413
11414 found="no"
11415
11416 if test $found = "no" ; then
11417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11419 fi
11420
11421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11423 fi
11424
11425 CFLAGS="$CFLAGS -Werror=attributes"
11426
11427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11428 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11429 cacheid=xorg_cv_cc_flag__Werror_attributes
11430 if eval test \${$cacheid+y}
11431 then :
11432 printf %s "(cached) " >&6
11433 else case e in #(
11434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11435 /* end confdefs.h. */
11436 int i;
11437 int
11438 main (void)
11439 {
11440
11441 ;
11442 return 0;
11443 }
11444 _ACEOF
11445 if ac_fn_c_try_link "$LINENO"
11446 then :
11447 eval $cacheid=yes
11448 else case e in #(
11449 e) eval $cacheid=no ;;
11450 esac
11451 fi
11452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11453 conftest$ac_exeext conftest.$ac_ext ;;
11454 esac
11455 fi
11456
11457
11458 CFLAGS="$xorg_testset_save_CFLAGS"
11459
11460 eval supported=\$$cacheid
11461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11462 printf "%s\n" "$supported" >&6; }
11463 if test "$supported" = "yes" ; then
11464 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11465 found="yes"
11466 fi
11467 fi
11468
11469
11470
11471 if test "x$STRICT_COMPILE" = "xyes"; then
11472 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11473 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11474 fi
11475
11476
11477
11478
11479
11480
11481
11482
11483 cat >>confdefs.h <<_ACEOF
11484 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11485 _ACEOF
11486
11487 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11488 if test "x$PVM" = "x"; then
11489 PVM="0"
11490 fi
11491
11492 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11493
11494 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11495 if test "x$PVP" = "x"; then
11496 PVP="0"
11497 fi
11498
11499 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11500
11501
11502
11503 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11504 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11505 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11506 touch \$(top_srcdir)/ChangeLog; \
11507 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11508
11509
11510
11511
11512 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11513 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11514 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11515 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11516 touch \$(top_srcdir)/INSTALL; \
11517 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11518
11519
11520
11521
11522
11523
11524 case $host_os in
11525 solaris*)
11526 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11527 # check for a man page file found in later versions that use
11528 # traditional section numbers instead
11529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11530 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11531 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11532 then :
11533 printf %s "(cached) " >&6
11534 else case e in #(
11535 e) test "$cross_compiling" = yes &&
11536 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11537 if test -r "/usr/share/man/man7/attributes.7"; then
11538 ac_cv_file__usr_share_man_man7_attributes_7=yes
11539 else
11540 ac_cv_file__usr_share_man_man7_attributes_7=no
11541 fi ;;
11542 esac
11543 fi
11544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11545 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11546 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11547 then :
11548 SYSV_MAN_SECTIONS=false
11549 else case e in #(
11550 e) SYSV_MAN_SECTIONS=true ;;
11551 esac
11552 fi
11553
11554 ;;
11555 *) SYSV_MAN_SECTIONS=false ;;
11556 esac
11557
11558 if test x$APP_MAN_SUFFIX = x ; then
11559 APP_MAN_SUFFIX=1
11560 fi
11561 if test x$APP_MAN_DIR = x ; then
11562 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11563 fi
11564
11565 if test x$LIB_MAN_SUFFIX = x ; then
11566 LIB_MAN_SUFFIX=3
11567 fi
11568 if test x$LIB_MAN_DIR = x ; then
11569 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11570 fi
11571
11572 if test x$FILE_MAN_SUFFIX = x ; then
11573 case $SYSV_MAN_SECTIONS in
11574 true) FILE_MAN_SUFFIX=4 ;;
11575 *) FILE_MAN_SUFFIX=5 ;;
11576 esac
11577 fi
11578 if test x$FILE_MAN_DIR = x ; then
11579 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11580 fi
11581
11582 if test x$MISC_MAN_SUFFIX = x ; then
11583 case $SYSV_MAN_SECTIONS in
11584 true) MISC_MAN_SUFFIX=5 ;;
11585 *) MISC_MAN_SUFFIX=7 ;;
11586 esac
11587 fi
11588 if test x$MISC_MAN_DIR = x ; then
11589 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11590 fi
11591
11592 if test x$DRIVER_MAN_SUFFIX = x ; then
11593 case $SYSV_MAN_SECTIONS in
11594 true) DRIVER_MAN_SUFFIX=7 ;;
11595 *) DRIVER_MAN_SUFFIX=4 ;;
11596 esac
11597 fi
11598 if test x$DRIVER_MAN_DIR = x ; then
11599 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11600 fi
11601
11602 if test x$ADMIN_MAN_SUFFIX = x ; then
11603 case $SYSV_MAN_SECTIONS in
11604 true) ADMIN_MAN_SUFFIX=1m ;;
11605 *) ADMIN_MAN_SUFFIX=8 ;;
11606 esac
11607 fi
11608 if test x$ADMIN_MAN_DIR = x ; then
11609 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11610 fi
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626 XORG_MAN_PAGE="X Version 11"
11627
11628 MAN_SUBSTS="\
11629 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11630 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11631 -e 's|__xservername__|Xorg|g' \
11632 -e 's|__xconfigfile__|xorg.conf|g' \
11633 -e 's|__projectroot__|\$(prefix)|g' \
11634 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11635 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11636 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11637 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11638 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11639 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11640 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11641
11642
11643
11644 # Check whether --enable-silent-rules was given.
11645 if test ${enable_silent_rules+y}
11646 then :
11647 enableval=$enable_silent_rules;
11648 fi
11649
11650 case $enable_silent_rules in # (((
11651 yes) AM_DEFAULT_VERBOSITY=0;;
11652 no) AM_DEFAULT_VERBOSITY=1;;
11653 *) AM_DEFAULT_VERBOSITY=0;;
11654 esac
11655 am_make=${MAKE-make}
11656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11657 printf %s "checking whether $am_make supports nested variables... " >&6; }
11658 if test ${am_cv_make_support_nested_variables+y}
11659 then :
11660 printf %s "(cached) " >&6
11661 else case e in #(
11662 e) if printf "%s\n" 'TRUE=$(BAR$(V))
11663 BAR0=false
11664 BAR1=true
11665 V=1
11666 am__doit:
11667 @$(TRUE)
11668 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11669 am_cv_make_support_nested_variables=yes
11670 else
11671 am_cv_make_support_nested_variables=no
11672 fi ;;
11673 esac
11674 fi
11675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11676 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11677 if test $am_cv_make_support_nested_variables = yes; then
11678 AM_V='$(V)'
11679 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11680 else
11681 AM_V=$AM_DEFAULT_VERBOSITY
11682 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11683 fi
11684 AM_BACKSLASH='\'
11685
11686
11687
11688
11689 # Checks for pkg-config packages
11690
11691 pkg_failed=no
11692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XCONSOLE" >&5
11693 printf %s "checking for XCONSOLE... " >&6; }
11694
11695 if test -n "$XCONSOLE_CFLAGS"; then
11696 pkg_cv_XCONSOLE_CFLAGS="$XCONSOLE_CFLAGS"
11697 elif test -n "$PKG_CONFIG"; then
11698 if test -n "$PKG_CONFIG" && \
11699 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5
11700 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5
11701 ac_status=$?
11702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11703 test $ac_status = 0; }; then
11704 pkg_cv_XCONSOLE_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null`
11705 test "x$?" != "x0" && pkg_failed=yes
11706 else
11707 pkg_failed=yes
11708 fi
11709 else
11710 pkg_failed=untried
11711 fi
11712 if test -n "$XCONSOLE_LIBS"; then
11713 pkg_cv_XCONSOLE_LIBS="$XCONSOLE_LIBS"
11714 elif test -n "$PKG_CONFIG"; then
11715 if test -n "$PKG_CONFIG" && \
11716 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17\""; } >&5
11717 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17") 2>&5
11718 ac_status=$?
11719 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11720 test $ac_status = 0; }; then
11721 pkg_cv_XCONSOLE_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>/dev/null`
11722 test "x$?" != "x0" && pkg_failed=yes
11723 else
11724 pkg_failed=yes
11725 fi
11726 else
11727 pkg_failed=untried
11728 fi
11729
11730
11731
11732 if test $pkg_failed = yes; then
11733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 printf "%s\n" "no" >&6; }
11735
11736 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11737 _pkg_short_errors_supported=yes
11738 else
11739 _pkg_short_errors_supported=no
11740 fi
11741 if test $_pkg_short_errors_supported = yes; then
11742 XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1`
11743 else
11744 XCONSOLE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17" 2>&1`
11745 fi
11746 # Put the nasty error message in config.log where it belongs
11747 echo "$XCONSOLE_PKG_ERRORS" >&5
11748
11749 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.0 x11 xproto >= 7.0.17) were not met:
11750
11751 $XCONSOLE_PKG_ERRORS
11752
11753 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11754 installed software in a non-standard prefix.
11755
11756 Alternatively, you may set the environment variables XCONSOLE_CFLAGS
11757 and XCONSOLE_LIBS to avoid the need to call pkg-config.
11758 See the pkg-config man page for more details." "$LINENO" 5
11759 elif test $pkg_failed = untried; then
11760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11761 printf "%s\n" "no" >&6; }
11762 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11763 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11764 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11765 is in your PATH or set the PKG_CONFIG environment variable to the full
11766 path to pkg-config.
11767
11768 Alternatively, you may set the environment variables XCONSOLE_CFLAGS
11769 and XCONSOLE_LIBS to avoid the need to call pkg-config.
11770 See the pkg-config man page for more details.
11771
11772 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11773 See 'config.log' for more details" "$LINENO" 5; }
11774 else
11775 XCONSOLE_CFLAGS=$pkg_cv_XCONSOLE_CFLAGS
11776 XCONSOLE_LIBS=$pkg_cv_XCONSOLE_LIBS
11777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11778 printf "%s\n" "yes" >&6; }
11779
11780 fi
11781
11782
11783 pkg_failed=no
11784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11785 printf %s "checking for APPDEFS... " >&6; }
11786
11787 if test -n "$APPDEFS_CFLAGS"; then
11788 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11789 elif test -n "$PKG_CONFIG"; then
11790 if test -n "$PKG_CONFIG" && \
11791 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11792 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11793 ac_status=$?
11794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11795 test $ac_status = 0; }; then
11796 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11797 test "x$?" != "x0" && pkg_failed=yes
11798 else
11799 pkg_failed=yes
11800 fi
11801 else
11802 pkg_failed=untried
11803 fi
11804 if test -n "$APPDEFS_LIBS"; then
11805 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11806 elif test -n "$PKG_CONFIG"; then
11807 if test -n "$PKG_CONFIG" && \
11808 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11809 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11810 ac_status=$?
11811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11812 test $ac_status = 0; }; then
11813 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11814 test "x$?" != "x0" && pkg_failed=yes
11815 else
11816 pkg_failed=yes
11817 fi
11818 else
11819 pkg_failed=untried
11820 fi
11821
11822
11823
11824 if test $pkg_failed = yes; then
11825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11826 printf "%s\n" "no" >&6; }
11827
11828 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11829 _pkg_short_errors_supported=yes
11830 else
11831 _pkg_short_errors_supported=no
11832 fi
11833 if test $_pkg_short_errors_supported = yes; then
11834 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11835 else
11836 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11837 fi
11838 # Put the nasty error message in config.log where it belongs
11839 echo "$APPDEFS_PKG_ERRORS" >&5
11840
11841 as_fn_error $? "Package requirements (xt) were not met:
11842
11843 $APPDEFS_PKG_ERRORS
11844
11845 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11846 installed software in a non-standard prefix.
11847
11848 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11849 and APPDEFS_LIBS to avoid the need to call pkg-config.
11850 See the pkg-config man page for more details." "$LINENO" 5
11851 elif test $pkg_failed = untried; then
11852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11853 printf "%s\n" "no" >&6; }
11854 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11855 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11856 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11857 is in your PATH or set the PKG_CONFIG environment variable to the full
11858 path to pkg-config.
11859
11860 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11861 and APPDEFS_LIBS to avoid the need to call pkg-config.
11862 See the pkg-config man page for more details.
11863
11864 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11865 See 'config.log' for more details" "$LINENO" 5; }
11866 else
11867 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11868 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11870 printf "%s\n" "yes" >&6; }
11871
11872 fi
11873 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11874
11875 # Check whether --with-appdefaultdir was given.
11876 if test ${with_appdefaultdir+y}
11877 then :
11878 withval=$with_appdefaultdir; appdefaultdir="$withval"
11879 else case e in #(
11880 e) appdefaultdir="${xt_appdefaultdir}" ;;
11881 esac
11882 fi
11883
11884
11885
11886 # Checks for typedefs, structures, and compiler characteristics.
11887 # Check whether --enable-largefile was given.
11888 if test ${enable_largefile+y}
11889 then :
11890 enableval=$enable_largefile;
11891 fi
11892 if test "$enable_largefile,$enable_year2038" != no,no
11893 then :
11894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11895 printf %s "checking for $CC option to enable large file support... " >&6; }
11896 if test ${ac_cv_sys_largefile_opts+y}
11897 then :
11898 printf %s "(cached) " >&6
11899 else case e in #(
11900 e) ac_save_CC="$CC"
11901 ac_opt_found=no
11902 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11903 if test x"$ac_opt" != x"none needed"
11904 then :
11905 CC="$ac_save_CC $ac_opt"
11906 fi
11907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11908 /* end confdefs.h. */
11909 #include <sys/types.h>
11910 #ifndef FTYPE
11911 # define FTYPE off_t
11912 #endif
11913 /* Check that FTYPE can represent 2**63 - 1 correctly.
11914 We can't simply define LARGE_FTYPE to be 9223372036854775807,
11915 since some C++ compilers masquerading as C compilers
11916 incorrectly reject 9223372036854775807. */
11917 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11918 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11919 && LARGE_FTYPE % 2147483647 == 1)
11920 ? 1 : -1];
11921 int
11922 main (void)
11923 {
11924
11925 ;
11926 return 0;
11927 }
11928 _ACEOF
11929 if ac_fn_c_try_compile "$LINENO"
11930 then :
11931 if test x"$ac_opt" = x"none needed"
11932 then :
11933 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11934 CC="$CC -DFTYPE=ino_t"
11935 if ac_fn_c_try_compile "$LINENO"
11936 then :
11937
11938 else case e in #(
11939 e) CC="$CC -D_FILE_OFFSET_BITS=64"
11940 if ac_fn_c_try_compile "$LINENO"
11941 then :
11942 ac_opt='-D_FILE_OFFSET_BITS=64'
11943 fi
11944 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11945 esac
11946 fi
11947 rm -f core conftest.err conftest.$ac_objext conftest.beam
11948 fi
11949 ac_cv_sys_largefile_opts=$ac_opt
11950 ac_opt_found=yes
11951 fi
11952 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11953 test $ac_opt_found = no || break
11954 done
11955 CC="$ac_save_CC"
11956
11957 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11958 esac
11959 fi
11960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11961 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11962
11963 ac_have_largefile=yes
11964 case $ac_cv_sys_largefile_opts in #(
11965 "none needed") :
11966 ;; #(
11967 "supported through gnulib") :
11968 ;; #(
11969 "support not detected") :
11970 ac_have_largefile=no ;; #(
11971 "-D_FILE_OFFSET_BITS=64") :
11972
11973 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11974 ;; #(
11975 "-D_LARGE_FILES=1") :
11976
11977 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11978 ;; #(
11979 "-n32") :
11980 CC="$CC -n32" ;; #(
11981 *) :
11982 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11983 esac
11984
11985 if test "$enable_year2038" != no
11986 then :
11987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11988 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11989 if test ${ac_cv_sys_year2038_opts+y}
11990 then :
11991 printf %s "(cached) " >&6
11992 else case e in #(
11993 e) ac_save_CPPFLAGS="$CPPFLAGS"
11994 ac_opt_found=no
11995 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
11996 if test x"$ac_opt" != x"none needed"
11997 then :
11998 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11999 fi
12000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12001 /* end confdefs.h. */
12002
12003 #include <time.h>
12004 /* Check that time_t can represent 2**32 - 1 correctly. */
12005 #define LARGE_TIME_T \\
12006 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
12007 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
12008 && LARGE_TIME_T % 65537 == 0)
12009 ? 1 : -1];
12010
12011 int
12012 main (void)
12013 {
12014
12015 ;
12016 return 0;
12017 }
12018 _ACEOF
12019 if ac_fn_c_try_compile "$LINENO"
12020 then :
12021 ac_cv_sys_year2038_opts="$ac_opt"
12022 ac_opt_found=yes
12023 fi
12024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12025 test $ac_opt_found = no || break
12026 done
12027 CPPFLAGS="$ac_save_CPPFLAGS"
12028 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
12029 esac
12030 fi
12031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
12032 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
12033
12034 ac_have_year2038=yes
12035 case $ac_cv_sys_year2038_opts in #(
12036 "none needed") :
12037 ;; #(
12038 "support not detected") :
12039 ac_have_year2038=no ;; #(
12040 "-D_TIME_BITS=64") :
12041
12042 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
12043 ;; #(
12044 "-D__MINGW_USE_VC2005_COMPAT") :
12045
12046 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
12047 ;; #(
12048 "-U_USE_32_BIT_TIME_T"*) :
12049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12050 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12051 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
12052 will stop working after mid-January 2038. Remove
12053 _USE_32BIT_TIME_T from the compiler flags.
12054 See 'config.log' for more details" "$LINENO" 5; } ;; #(
12055 *) :
12056 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
12057 esac
12058
12059 fi
12060
12061 fi
12062
12063 # Checks for library functions.
12064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
12065 printf %s "checking for library containing openpty... " >&6; }
12066 if test ${ac_cv_search_openpty+y}
12067 then :
12068 printf %s "(cached) " >&6
12069 else case e in #(
12070 e) ac_func_search_save_LIBS=$LIBS
12071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12072 /* end confdefs.h. */
12073
12074 /* Override any GCC internal prototype to avoid an error.
12075 Use char because int might match the return type of a GCC
12076 builtin and then its argument prototype would still apply.
12077 The 'extern "C"' is for builds by C++ compilers;
12078 although this is not generally supported in C code supporting it here
12079 has little cost and some practical benefit (sr 110532). */
12080 #ifdef __cplusplus
12081 extern "C"
12082 #endif
12083 char openpty (void);
12084 int
12085 main (void)
12086 {
12087 return openpty ();
12088 ;
12089 return 0;
12090 }
12091 _ACEOF
12092 for ac_lib in '' util
12093 do
12094 if test -z "$ac_lib"; then
12095 ac_res="none required"
12096 else
12097 ac_res=-l$ac_lib
12098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12099 fi
12100 if ac_fn_c_try_link "$LINENO"
12101 then :
12102 ac_cv_search_openpty=$ac_res
12103 fi
12104 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12105 conftest$ac_exeext
12106 if test ${ac_cv_search_openpty+y}
12107 then :
12108 break
12109 fi
12110 done
12111 if test ${ac_cv_search_openpty+y}
12112 then :
12113
12114 else case e in #(
12115 e) ac_cv_search_openpty=no ;;
12116 esac
12117 fi
12118 rm conftest.$ac_ext
12119 LIBS=$ac_func_search_save_LIBS ;;
12120 esac
12121 fi
12122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
12123 printf "%s\n" "$ac_cv_search_openpty" >&6; }
12124 ac_res=$ac_cv_search_openpty
12125 if test "$ac_res" != no
12126 then :
12127 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12128
12129 fi
12130
12131 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty"
12132 if test "x$ac_cv_func_openpty" = xyes
12133 then :
12134 HAS_OPENPTY="yes"
12135 fi
12136
12137 if test "x$HAS_OPENPTY" = "xyes" ; then
12138
12139 printf "%s\n" "#define HAS_OPENPTY 1" >>confdefs.h
12140
12141 for ac_header in util.h libutil.h pty.h
12142 do :
12143 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
12144 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12145 if eval test \"x\$"$as_ac_Header"\" = x"yes"
12146 then :
12147 cat >>confdefs.h <<_ACEOF
12148 #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
12149 _ACEOF
12150 break
12151 fi
12152
12153 done
12154 fi
12155
12156
12157 ac_config_files="$ac_config_files Makefile man/Makefile"
12158
12159 cat >confcache <<\_ACEOF
12160 # This file is a shell script that caches the results of configure
12161 # tests run on this system so they can be shared between configure
12162 # scripts and configure runs, see configure's option --config-cache.
12163 # It is not useful on other systems. If it contains results you don't
12164 # want to keep, you may remove or edit it.
12165 #
12166 # config.status only pays attention to the cache file if you give it
12167 # the --recheck option to rerun configure.
12168 #
12169 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12170 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12171 # following values.
12172
12173 _ACEOF
12174
12175 # The following way of writing the cache mishandles newlines in values,
12176 # but we know of no workaround that is simple, portable, and efficient.
12177 # So, we kill variables containing newlines.
12178 # Ultrix sh set writes to stderr and can't be redirected directly,
12179 # and sets the high bit in the cache file unless we assign to the vars.
12180 (
12181 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12182 eval ac_val=\$$ac_var
12183 case $ac_val in #(
12184 *${as_nl}*)
12185 case $ac_var in #(
12186 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12187 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12188 esac
12189 case $ac_var in #(
12190 _ | IFS | as_nl) ;; #(
12191 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12192 *) { eval $ac_var=; unset $ac_var;} ;;
12193 esac ;;
12194 esac
12195 done
12196
12197 (set) 2>&1 |
12198 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12199 *${as_nl}ac_space=\ *)
12200 # 'set' does not quote correctly, so add quotes: double-quote
12201 # substitution turns \\\\ into \\, and sed turns \\ into \.
12202 sed -n \
12203 "s/'/'\\\\''/g;
12204 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12205 ;; #(
12206 *)
12207 # 'set' quotes correctly as required by POSIX, so do not add quotes.
12208 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12209 ;;
12210 esac |
12211 sort
12212 ) |
12213 sed '
12214 /^ac_cv_env_/b end
12215 t clear
12216 :clear
12217 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12218 t end
12219 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12220 :end' >>confcache
12221 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12222 if test -w "$cache_file"; then
12223 if test "x$cache_file" != "x/dev/null"; then
12224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12225 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12226 if test ! -f "$cache_file" || test -h "$cache_file"; then
12227 cat confcache >"$cache_file"
12228 else
12229 case $cache_file in #(
12230 */* | ?:*)
12231 mv -f confcache "$cache_file"$$ &&
12232 mv -f "$cache_file"$$ "$cache_file" ;; #(
12233 *)
12234 mv -f confcache "$cache_file" ;;
12235 esac
12236 fi
12237 fi
12238 else
12239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12240 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12241 fi
12242 fi
12243 rm -f confcache
12244
12245 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12246 # Let make expand exec_prefix.
12247 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12248
12249 DEFS=-DHAVE_CONFIG_H
12250
12251 ac_libobjs=
12252 ac_ltlibobjs=
12253 U=
12254 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12255 # 1. Remove the extension, and $U if already installed.
12256 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12257 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12258 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12259 # will be set to the directory where LIBOBJS objects are built.
12260 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12261 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12262 done
12263 LIBOBJS=$ac_libobjs
12264
12265 LTLIBOBJS=$ac_ltlibobjs
12266
12267
12268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12269 printf %s "checking that generated files are newer than configure... " >&6; }
12270 if test -n "$am_sleep_pid"; then
12271 # Hide warnings about reused PIDs.
12272 wait $am_sleep_pid 2>/dev/null
12273 fi
12274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12275 printf "%s\n" "done" >&6; }
12276 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12277 as_fn_error $? "conditional \"AMDEP\" was never defined.
12278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12279 fi
12280 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12281 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12283 fi
12284 if test -n "$EXEEXT"; then
12285 am__EXEEXT_TRUE=
12286 am__EXEEXT_FALSE='#'
12287 else
12288 am__EXEEXT_TRUE='#'
12289 am__EXEEXT_FALSE=
12290 fi
12291
12292 # Check whether --enable-year2038 was given.
12293 if test ${enable_year2038+y}
12294 then :
12295 enableval=$enable_year2038;
12296 fi
12297
12298
12299 : "${CONFIG_STATUS=./config.status}"
12300 ac_write_fail=0
12301 ac_clean_files_save=$ac_clean_files
12302 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12304 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12305 as_write_fail=0
12306 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12307 #! $SHELL
12308 # Generated by $as_me.
12309 # Run this file to recreate the current configuration.
12310 # Compiler output produced by configure, useful for debugging
12311 # configure, is in config.log if it exists.
12312
12313 debug=false
12314 ac_cs_recheck=false
12315 ac_cs_silent=false
12316
12317 SHELL=\${CONFIG_SHELL-$SHELL}
12318 export SHELL
12319 _ASEOF
12320 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12321 ## -------------------- ##
12322 ## M4sh Initialization. ##
12323 ## -------------------- ##
12324
12325 # Be more Bourne compatible
12326 DUALCASE=1; export DUALCASE # for MKS sh
12327 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12328 then :
12329 emulate sh
12330 NULLCMD=:
12331 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12332 # is contrary to our usage. Disable this feature.
12333 alias -g '${1+"$@"}'='"$@"'
12334 setopt NO_GLOB_SUBST
12335 else case e in #(
12336 e) case `(set -o) 2>/dev/null` in #(
12337 *posix*) :
12338 set -o posix ;; #(
12339 *) :
12340 ;;
12341 esac ;;
12342 esac
12343 fi
12344
12345
12346
12347 # Reset variables that may have inherited troublesome values from
12348 # the environment.
12349
12350 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12351 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12352 # side effect of setting IFS to empty, thus disabling word splitting.)
12353 # Quoting is to prevent editors from complaining about space-tab.
12354 as_nl='
12355 '
12356 export as_nl
12357 IFS=" "" $as_nl"
12358
12359 PS1='$ '
12360 PS2='> '
12361 PS4='+ '
12362
12363 # Ensure predictable behavior from utilities with locale-dependent output.
12364 LC_ALL=C
12365 export LC_ALL
12366 LANGUAGE=C
12367 export LANGUAGE
12368
12369 # We cannot yet rely on "unset" to work, but we need these variables
12370 # to be unset--not just set to an empty or harmless value--now, to
12371 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12372 # also avoids known problems related to "unset" and subshell syntax
12373 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12374 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12375 do eval test \${$as_var+y} \
12376 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12377 done
12378
12379 # Ensure that fds 0, 1, and 2 are open.
12380 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12381 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12382 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12383
12384 # The user is always right.
12385 if ${PATH_SEPARATOR+false} :; then
12386 PATH_SEPARATOR=:
12387 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12388 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12389 PATH_SEPARATOR=';'
12390 }
12391 fi
12392
12393
12394 # Find who we are. Look in the path if we contain no directory separator.
12395 as_myself=
12396 case $0 in #((
12397 *[\\/]* ) as_myself=$0 ;;
12398 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399 for as_dir in $PATH
12400 do
12401 IFS=$as_save_IFS
12402 case $as_dir in #(((
12403 '') as_dir=./ ;;
12404 */) ;;
12405 *) as_dir=$as_dir/ ;;
12406 esac
12407 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12408 done
12409 IFS=$as_save_IFS
12410
12411 ;;
12412 esac
12413 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12414 # in which case we are not to be found in the path.
12415 if test "x$as_myself" = x; then
12416 as_myself=$0
12417 fi
12418 if test ! -f "$as_myself"; then
12419 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12420 exit 1
12421 fi
12422
12423
12424
12425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12426 # ----------------------------------------
12427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12429 # script with STATUS, using 1 if that was 0.
12430 as_fn_error ()
12431 {
12432 as_status=$1; test $as_status -eq 0 && as_status=1
12433 if test "$4"; then
12434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12436 fi
12437 printf "%s\n" "$as_me: error: $2" >&2
12438 as_fn_exit $as_status
12439 } # as_fn_error
12440
12441
12442 # as_fn_set_status STATUS
12443 # -----------------------
12444 # Set $? to STATUS, without forking.
12445 as_fn_set_status ()
12446 {
12447 return $1
12448 } # as_fn_set_status
12449
12450 # as_fn_exit STATUS
12451 # -----------------
12452 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12453 as_fn_exit ()
12454 {
12455 set +e
12456 as_fn_set_status $1
12457 exit $1
12458 } # as_fn_exit
12459
12460 # as_fn_unset VAR
12461 # ---------------
12462 # Portably unset VAR.
12463 as_fn_unset ()
12464 {
12465 { eval $1=; unset $1;}
12466 }
12467 as_unset=as_fn_unset
12468
12469 # as_fn_append VAR VALUE
12470 # ----------------------
12471 # Append the text in VALUE to the end of the definition contained in VAR. Take
12472 # advantage of any shell optimizations that allow amortized linear growth over
12473 # repeated appends, instead of the typical quadratic growth present in naive
12474 # implementations.
12475 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12476 then :
12477 eval 'as_fn_append ()
12478 {
12479 eval $1+=\$2
12480 }'
12481 else case e in #(
12482 e) as_fn_append ()
12483 {
12484 eval $1=\$$1\$2
12485 } ;;
12486 esac
12487 fi # as_fn_append
12488
12489 # as_fn_arith ARG...
12490 # ------------------
12491 # Perform arithmetic evaluation on the ARGs, and store the result in the
12492 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12493 # must be portable across $(()) and expr.
12494 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12495 then :
12496 eval 'as_fn_arith ()
12497 {
12498 as_val=$(( $* ))
12499 }'
12500 else case e in #(
12501 e) as_fn_arith ()
12502 {
12503 as_val=`expr "$@" || test $? -eq 1`
12504 } ;;
12505 esac
12506 fi # as_fn_arith
12507
12508
12509 if expr a : '\(a\)' >/dev/null 2>&1 &&
12510 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12511 as_expr=expr
12512 else
12513 as_expr=false
12514 fi
12515
12516 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12517 as_basename=basename
12518 else
12519 as_basename=false
12520 fi
12521
12522 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12523 as_dirname=dirname
12524 else
12525 as_dirname=false
12526 fi
12527
12528 as_me=`$as_basename -- "$0" ||
12529 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12530 X"$0" : 'X\(//\)$' \| \
12531 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12532 printf "%s\n" X/"$0" |
12533 sed '/^.*\/\([^/][^/]*\)\/*$/{
12534 s//\1/
12535 q
12536 }
12537 /^X\/\(\/\/\)$/{
12538 s//\1/
12539 q
12540 }
12541 /^X\/\(\/\).*/{
12542 s//\1/
12543 q
12544 }
12545 s/.*/./; q'`
12546
12547 # Avoid depending upon Character Ranges.
12548 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12549 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12550 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12551 as_cr_digits='0123456789'
12552 as_cr_alnum=$as_cr_Letters$as_cr_digits
12553
12554
12555 # Determine whether it's possible to make 'echo' print without a newline.
12556 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12557 # for compatibility with existing Makefiles.
12558 ECHO_C= ECHO_N= ECHO_T=
12559 case `echo -n x` in #(((((
12560 -n*)
12561 case `echo 'xy\c'` in
12562 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12563 xy) ECHO_C='\c';;
12564 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12565 ECHO_T=' ';;
12566 esac;;
12567 *)
12568 ECHO_N='-n';;
12569 esac
12570
12571 # For backward compatibility with old third-party macros, we provide
12572 # the shell variables $as_echo and $as_echo_n. New code should use
12573 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12574 as_echo='printf %s\n'
12575 as_echo_n='printf %s'
12576
12577 rm -f conf$$ conf$$.exe conf$$.file
12578 if test -d conf$$.dir; then
12579 rm -f conf$$.dir/conf$$.file
12580 else
12581 rm -f conf$$.dir
12582 mkdir conf$$.dir 2>/dev/null
12583 fi
12584 if (echo >conf$$.file) 2>/dev/null; then
12585 if ln -s conf$$.file conf$$ 2>/dev/null; then
12586 as_ln_s='ln -s'
12587 # ... but there are two gotchas:
12588 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12589 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12590 # In both cases, we have to default to 'cp -pR'.
12591 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12592 as_ln_s='cp -pR'
12593 elif ln conf$$.file conf$$ 2>/dev/null; then
12594 as_ln_s=ln
12595 else
12596 as_ln_s='cp -pR'
12597 fi
12598 else
12599 as_ln_s='cp -pR'
12600 fi
12601 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12602 rmdir conf$$.dir 2>/dev/null
12603
12604
12605 # as_fn_mkdir_p
12606 # -------------
12607 # Create "$as_dir" as a directory, including parents if necessary.
12608 as_fn_mkdir_p ()
12609 {
12610
12611 case $as_dir in #(
12612 -*) as_dir=./$as_dir;;
12613 esac
12614 test -d "$as_dir" || eval $as_mkdir_p || {
12615 as_dirs=
12616 while :; do
12617 case $as_dir in #(
12618 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12619 *) as_qdir=$as_dir;;
12620 esac
12621 as_dirs="'$as_qdir' $as_dirs"
12622 as_dir=`$as_dirname -- "$as_dir" ||
12623 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12624 X"$as_dir" : 'X\(//\)[^/]' \| \
12625 X"$as_dir" : 'X\(//\)$' \| \
12626 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12627 printf "%s\n" X"$as_dir" |
12628 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12629 s//\1/
12630 q
12631 }
12632 /^X\(\/\/\)[^/].*/{
12633 s//\1/
12634 q
12635 }
12636 /^X\(\/\/\)$/{
12637 s//\1/
12638 q
12639 }
12640 /^X\(\/\).*/{
12641 s//\1/
12642 q
12643 }
12644 s/.*/./; q'`
12645 test -d "$as_dir" && break
12646 done
12647 test -z "$as_dirs" || eval "mkdir $as_dirs"
12648 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12649
12650
12651 } # as_fn_mkdir_p
12652 if mkdir -p . 2>/dev/null; then
12653 as_mkdir_p='mkdir -p "$as_dir"'
12654 else
12655 test -d ./-p && rmdir ./-p
12656 as_mkdir_p=false
12657 fi
12658
12659
12660 # as_fn_executable_p FILE
12661 # -----------------------
12662 # Test if FILE is an executable regular file.
12663 as_fn_executable_p ()
12664 {
12665 test -f "$1" && test -x "$1"
12666 } # as_fn_executable_p
12667 as_test_x='test -x'
12668 as_executable_p=as_fn_executable_p
12669
12670 # Sed expression to map a string onto a valid CPP name.
12671 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12672 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12673
12674 # Sed expression to map a string onto a valid variable name.
12675 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12676 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12677
12678
12679 exec 6>&1
12680 ## ----------------------------------- ##
12681 ## Main body of $CONFIG_STATUS script. ##
12682 ## ----------------------------------- ##
12683 _ASEOF
12684 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12685
12686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12687 # Save the log message, to keep $0 and so on meaningful, and to
12688 # report actual input values of CONFIG_FILES etc. instead of their
12689 # values after options handling.
12690 ac_log="
12691 This file was extended by xconsole $as_me 1.1.0, which was
12692 generated by GNU Autoconf 2.72. Invocation command line was
12693
12694 CONFIG_FILES = $CONFIG_FILES
12695 CONFIG_HEADERS = $CONFIG_HEADERS
12696 CONFIG_LINKS = $CONFIG_LINKS
12697 CONFIG_COMMANDS = $CONFIG_COMMANDS
12698 $ $0 $@
12699
12700 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12701 "
12702
12703 _ACEOF
12704
12705 case $ac_config_files in *"
12706 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12707 esac
12708
12709 case $ac_config_headers in *"
12710 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12711 esac
12712
12713
12714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12715 # Files that config.status was made for.
12716 config_files="$ac_config_files"
12717 config_headers="$ac_config_headers"
12718 config_commands="$ac_config_commands"
12719
12720 _ACEOF
12721
12722 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12723 ac_cs_usage="\
12724 '$as_me' instantiates files and other configuration actions
12725 from templates according to the current configuration. Unless the files
12726 and actions are specified as TAGs, all are instantiated by default.
12727
12728 Usage: $0 [OPTION]... [TAG]...
12729
12730 -h, --help print this help, then exit
12731 -V, --version print version number and configuration settings, then exit
12732 --config print configuration, then exit
12733 -q, --quiet, --silent
12734 do not print progress messages
12735 -d, --debug don't remove temporary files
12736 --recheck update $as_me by reconfiguring in the same conditions
12737 --file=FILE[:TEMPLATE]
12738 instantiate the configuration file FILE
12739 --header=FILE[:TEMPLATE]
12740 instantiate the configuration header FILE
12741
12742 Configuration files:
12743 $config_files
12744
12745 Configuration headers:
12746 $config_headers
12747
12748 Configuration commands:
12749 $config_commands
12750
12751 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xconsole/-/issues>."
12752
12753 _ACEOF
12754 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12755 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12757 ac_cs_config='$ac_cs_config_escaped'
12758 ac_cs_version="\\
12759 xconsole config.status 1.1.0
12760 configured by $0, generated by GNU Autoconf 2.72,
12761 with options \\"\$ac_cs_config\\"
12762
12763 Copyright (C) 2023 Free Software Foundation, Inc.
12764 This config.status script is free software; the Free Software Foundation
12765 gives unlimited permission to copy, distribute and modify it."
12766
12767 ac_pwd='$ac_pwd'
12768 srcdir='$srcdir'
12769 INSTALL='$INSTALL'
12770 MKDIR_P='$MKDIR_P'
12771 AWK='$AWK'
12772 test -n "\$AWK" || AWK=awk
12773 _ACEOF
12774
12775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12776 # The default lists apply if the user does not specify any file.
12777 ac_need_defaults=:
12778 while test $# != 0
12779 do
12780 case $1 in
12781 --*=?*)
12782 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12783 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12784 ac_shift=:
12785 ;;
12786 --*=)
12787 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12788 ac_optarg=
12789 ac_shift=:
12790 ;;
12791 *)
12792 ac_option=$1
12793 ac_optarg=$2
12794 ac_shift=shift
12795 ;;
12796 esac
12797
12798 case $ac_option in
12799 # Handling of the options.
12800 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12801 ac_cs_recheck=: ;;
12802 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12803 printf "%s\n" "$ac_cs_version"; exit ;;
12804 --config | --confi | --conf | --con | --co | --c )
12805 printf "%s\n" "$ac_cs_config"; exit ;;
12806 --debug | --debu | --deb | --de | --d | -d )
12807 debug=: ;;
12808 --file | --fil | --fi | --f )
12809 $ac_shift
12810 case $ac_optarg in
12811 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12812 '') as_fn_error $? "missing file argument" ;;
12813 esac
12814 as_fn_append CONFIG_FILES " '$ac_optarg'"
12815 ac_need_defaults=false;;
12816 --header | --heade | --head | --hea )
12817 $ac_shift
12818 case $ac_optarg in
12819 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12820 esac
12821 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12822 ac_need_defaults=false;;
12823 --he | --h)
12824 # Conflict between --help and --header
12825 as_fn_error $? "ambiguous option: '$1'
12826 Try '$0 --help' for more information.";;
12827 --help | --hel | -h )
12828 printf "%s\n" "$ac_cs_usage"; exit ;;
12829 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12830 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12831 ac_cs_silent=: ;;
12832
12833 # This is an error.
12834 -*) as_fn_error $? "unrecognized option: '$1'
12835 Try '$0 --help' for more information." ;;
12836
12837 *) as_fn_append ac_config_targets " $1"
12838 ac_need_defaults=false ;;
12839
12840 esac
12841 shift
12842 done
12843
12844 ac_configure_extra_args=
12845
12846 if $ac_cs_silent; then
12847 exec 6>/dev/null
12848 ac_configure_extra_args="$ac_configure_extra_args --silent"
12849 fi
12850
12851 _ACEOF
12852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12853 if \$ac_cs_recheck; then
12854 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12855 shift
12856 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12857 CONFIG_SHELL='$SHELL'
12858 export CONFIG_SHELL
12859 exec "\$@"
12860 fi
12861
12862 _ACEOF
12863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12864 exec 5>>config.log
12865 {
12866 echo
12867 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12868 ## Running $as_me. ##
12869 _ASBOX
12870 printf "%s\n" "$ac_log"
12871 } >&5
12872
12873 _ACEOF
12874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12875 #
12876 # INIT-COMMANDS
12877 #
12878 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12879
12880 _ACEOF
12881
12882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12883
12884 # Handling of arguments.
12885 for ac_config_target in $ac_config_targets
12886 do
12887 case $ac_config_target in
12888 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12889 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12890 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12891 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12892
12893 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12894 esac
12895 done
12896
12897
12898 # If the user did not use the arguments to specify the items to instantiate,
12899 # then the envvar interface is used. Set only those that are not.
12900 # We use the long form for the default assignment because of an extremely
12901 # bizarre bug on SunOS 4.1.3.
12902 if $ac_need_defaults; then
12903 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12904 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12905 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12906 fi
12907
12908 # Have a temporary directory for convenience. Make it in the build tree
12909 # simply because there is no reason against having it here, and in addition,
12910 # creating and moving files from /tmp can sometimes cause problems.
12911 # Hook for its removal unless debugging.
12912 # Note that there is a small window in which the directory will not be cleaned:
12913 # after its creation but before its name has been assigned to '$tmp'.
12914 $debug ||
12915 {
12916 tmp= ac_tmp=
12917 trap 'exit_status=$?
12918 : "${ac_tmp:=$tmp}"
12919 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12920 ' 0
12921 trap 'as_fn_exit 1' 1 2 13 15
12922 }
12923 # Create a (secure) tmp directory for tmp files.
12924
12925 {
12926 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12927 test -d "$tmp"
12928 } ||
12929 {
12930 tmp=./conf$$-$RANDOM
12931 (umask 077 && mkdir "$tmp")
12932 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12933 ac_tmp=$tmp
12934
12935 # Set up the scripts for CONFIG_FILES section.
12936 # No need to generate them if there are no CONFIG_FILES.
12937 # This happens for instance with './config.status config.h'.
12938 if test -n "$CONFIG_FILES"; then
12939
12940
12941 ac_cr=`echo X | tr X '\015'`
12942 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12943 # But we know of no other shell where ac_cr would be empty at this
12944 # point, so we can use a bashism as a fallback.
12945 if test "x$ac_cr" = x; then
12946 eval ac_cr=\$\'\\r\'
12947 fi
12948 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12949 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12950 ac_cs_awk_cr='\\r'
12951 else
12952 ac_cs_awk_cr=$ac_cr
12953 fi
12954
12955 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12956 _ACEOF
12957
12958
12959 {
12960 echo "cat >conf$$subs.awk <<_ACEOF" &&
12961 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12962 echo "_ACEOF"
12963 } >conf$$subs.sh ||
12964 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12965 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12966 ac_delim='%!_!# '
12967 for ac_last_try in false false false false false :; do
12968 . ./conf$$subs.sh ||
12969 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12970
12971 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12972 if test $ac_delim_n = $ac_delim_num; then
12973 break
12974 elif $ac_last_try; then
12975 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12976 else
12977 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12978 fi
12979 done
12980 rm -f conf$$subs.sh
12981
12982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12983 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12984 _ACEOF
12985 sed -n '
12986 h
12987 s/^/S["/; s/!.*/"]=/
12988 p
12989 g
12990 s/^[^!]*!//
12991 :repl
12992 t repl
12993 s/'"$ac_delim"'$//
12994 t delim
12995 :nl
12996 h
12997 s/\(.\{148\}\)..*/\1/
12998 t more1
12999 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13000 p
13001 n
13002 b repl
13003 :more1
13004 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13005 p
13006 g
13007 s/.\{148\}//
13008 t nl
13009 :delim
13010 h
13011 s/\(.\{148\}\)..*/\1/
13012 t more2
13013 s/["\\]/\\&/g; s/^/"/; s/$/"/
13014 p
13015 b
13016 :more2
13017 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13018 p
13019 g
13020 s/.\{148\}//
13021 t delim
13022 ' <conf$$subs.awk | sed '
13023 /^[^""]/{
13024 N
13025 s/\n//
13026 }
13027 ' >>$CONFIG_STATUS || ac_write_fail=1
13028 rm -f conf$$subs.awk
13029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13030 _ACAWK
13031 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13032 for (key in S) S_is_set[key] = 1
13033 FS = ""
13034
13035 }
13036 {
13037 line = $ 0
13038 nfields = split(line, field, "@")
13039 substed = 0
13040 len = length(field[1])
13041 for (i = 2; i < nfields; i++) {
13042 key = field[i]
13043 keylen = length(key)
13044 if (S_is_set[key]) {
13045 value = S[key]
13046 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13047 len += length(value) + length(field[++i])
13048 substed = 1
13049 } else
13050 len += 1 + keylen
13051 }
13052
13053 print line
13054 }
13055
13056 _ACAWK
13057 _ACEOF
13058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13059 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13060 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13061 else
13062 cat
13063 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13064 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13065 _ACEOF
13066
13067 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13068 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13069 # trailing colons and then remove the whole line if VPATH becomes empty
13070 # (actually we leave an empty line to preserve line numbers).
13071 if test "x$srcdir" = x.; then
13072 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13073 h
13074 s///
13075 s/^/:/
13076 s/[ ]*$/:/
13077 s/:\$(srcdir):/:/g
13078 s/:\${srcdir}:/:/g
13079 s/:@srcdir@:/:/g
13080 s/^:*//
13081 s/:*$//
13082 x
13083 s/\(=[ ]*\).*/\1/
13084 G
13085 s/\n//
13086 s/^[^=]*=[ ]*$//
13087 }'
13088 fi
13089
13090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13091 fi # test -n "$CONFIG_FILES"
13092
13093 # Set up the scripts for CONFIG_HEADERS section.
13094 # No need to generate them if there are no CONFIG_HEADERS.
13095 # This happens for instance with './config.status Makefile'.
13096 if test -n "$CONFIG_HEADERS"; then
13097 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13098 BEGIN {
13099 _ACEOF
13100
13101 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13102 # here-document in config.status, that substitutes the proper values into
13103 # config.h.in to produce config.h.
13104
13105 # Create a delimiter string that does not exist in confdefs.h, to ease
13106 # handling of long lines.
13107 ac_delim='%!_!# '
13108 for ac_last_try in false false :; do
13109 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13110 if test -z "$ac_tt"; then
13111 break
13112 elif $ac_last_try; then
13113 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13114 else
13115 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13116 fi
13117 done
13118
13119 # For the awk script, D is an array of macro values keyed by name,
13120 # likewise P contains macro parameters if any. Preserve backslash
13121 # newline sequences.
13122
13123 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13124 sed -n '
13125 s/.\{148\}/&'"$ac_delim"'/g
13126 t rset
13127 :rset
13128 s/^[ ]*#[ ]*define[ ][ ]*/ /
13129 t def
13130 d
13131 :def
13132 s/\\$//
13133 t bsnl
13134 s/["\\]/\\&/g
13135 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13136 D["\1"]=" \3"/p
13137 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13138 d
13139 :bsnl
13140 s/["\\]/\\&/g
13141 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13142 D["\1"]=" \3\\\\\\n"\\/p
13143 t cont
13144 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13145 t cont
13146 d
13147 :cont
13148 n
13149 s/.\{148\}/&'"$ac_delim"'/g
13150 t clear
13151 :clear
13152 s/\\$//
13153 t bsnlc
13154 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13155 d
13156 :bsnlc
13157 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13158 b cont
13159 ' <confdefs.h | sed '
13160 s/'"$ac_delim"'/"\\\
13161 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13162
13163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13164 for (key in D) D_is_set[key] = 1
13165 FS = ""
13166 }
13167 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13168 line = \$ 0
13169 split(line, arg, " ")
13170 if (arg[1] == "#") {
13171 defundef = arg[2]
13172 mac1 = arg[3]
13173 } else {
13174 defundef = substr(arg[1], 2)
13175 mac1 = arg[2]
13176 }
13177 split(mac1, mac2, "(") #)
13178 macro = mac2[1]
13179 prefix = substr(line, 1, index(line, defundef) - 1)
13180 if (D_is_set[macro]) {
13181 # Preserve the white space surrounding the "#".
13182 print prefix "define", macro P[macro] D[macro]
13183 next
13184 } else {
13185 # Replace #undef with comments. This is necessary, for example,
13186 # in the case of _POSIX_SOURCE, which is predefined and required
13187 # on some systems where configure will not decide to define it.
13188 if (defundef == "undef") {
13189 print "/*", prefix defundef, macro, "*/"
13190 next
13191 }
13192 }
13193 }
13194 { print }
13195 _ACAWK
13196 _ACEOF
13197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13198 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13199 fi # test -n "$CONFIG_HEADERS"
13200
13201
13202 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13203 shift
13204 for ac_tag
13205 do
13206 case $ac_tag in
13207 :[FHLC]) ac_mode=$ac_tag; continue;;
13208 esac
13209 case $ac_mode$ac_tag in
13210 :[FHL]*:*);;
13211 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13212 :[FH]-) ac_tag=-:-;;
13213 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13214 esac
13215 ac_save_IFS=$IFS
13216 IFS=:
13217 set x $ac_tag
13218 IFS=$ac_save_IFS
13219 shift
13220 ac_file=$1
13221 shift
13222
13223 case $ac_mode in
13224 :L) ac_source=$1;;
13225 :[FH])
13226 ac_file_inputs=
13227 for ac_f
13228 do
13229 case $ac_f in
13230 -) ac_f="$ac_tmp/stdin";;
13231 *) # Look for the file first in the build tree, then in the source tree
13232 # (if the path is not absolute). The absolute path cannot be DOS-style,
13233 # because $ac_f cannot contain ':'.
13234 test -f "$ac_f" ||
13235 case $ac_f in
13236 [\\/$]*) false;;
13237 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13238 esac ||
13239 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13240 esac
13241 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13242 as_fn_append ac_file_inputs " '$ac_f'"
13243 done
13244
13245 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13246 # use $as_me), people would be surprised to read:
13247 # /* config.h. Generated by config.status. */
13248 configure_input='Generated from '`
13249 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13250 `' by configure.'
13251 if test x"$ac_file" != x-; then
13252 configure_input="$ac_file. $configure_input"
13253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13254 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13255 fi
13256 # Neutralize special characters interpreted by sed in replacement strings.
13257 case $configure_input in #(
13258 *\&* | *\|* | *\\* )
13259 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13260 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13261 *) ac_sed_conf_input=$configure_input;;
13262 esac
13263
13264 case $ac_tag in
13265 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13266 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13267 esac
13268 ;;
13269 esac
13270
13271 ac_dir=`$as_dirname -- "$ac_file" ||
13272 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13273 X"$ac_file" : 'X\(//\)[^/]' \| \
13274 X"$ac_file" : 'X\(//\)$' \| \
13275 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13276 printf "%s\n" X"$ac_file" |
13277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13278 s//\1/
13279 q
13280 }
13281 /^X\(\/\/\)[^/].*/{
13282 s//\1/
13283 q
13284 }
13285 /^X\(\/\/\)$/{
13286 s//\1/
13287 q
13288 }
13289 /^X\(\/\).*/{
13290 s//\1/
13291 q
13292 }
13293 s/.*/./; q'`
13294 as_dir="$ac_dir"; as_fn_mkdir_p
13295 ac_builddir=.
13296
13297 case "$ac_dir" in
13298 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13299 *)
13300 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13301 # A ".." for each directory in $ac_dir_suffix.
13302 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13303 case $ac_top_builddir_sub in
13304 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13305 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13306 esac ;;
13307 esac
13308 ac_abs_top_builddir=$ac_pwd
13309 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13310 # for backward compatibility:
13311 ac_top_builddir=$ac_top_build_prefix
13312
13313 case $srcdir in
13314 .) # We are building in place.
13315 ac_srcdir=.
13316 ac_top_srcdir=$ac_top_builddir_sub
13317 ac_abs_top_srcdir=$ac_pwd ;;
13318 [\\/]* | ?:[\\/]* ) # Absolute name.
13319 ac_srcdir=$srcdir$ac_dir_suffix;
13320 ac_top_srcdir=$srcdir
13321 ac_abs_top_srcdir=$srcdir ;;
13322 *) # Relative name.
13323 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13324 ac_top_srcdir=$ac_top_build_prefix$srcdir
13325 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13326 esac
13327 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13328
13329
13330 case $ac_mode in
13331 :F)
13332 #
13333 # CONFIG_FILE
13334 #
13335
13336 case $INSTALL in
13337 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13338 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13339 esac
13340 ac_MKDIR_P=$MKDIR_P
13341 case $MKDIR_P in
13342 [\\/$]* | ?:[\\/]* ) ;;
13343 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13344 esac
13345 _ACEOF
13346
13347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13348 # If the template does not know about datarootdir, expand it.
13349 # FIXME: This hack should be removed a few years after 2.60.
13350 ac_datarootdir_hack=; ac_datarootdir_seen=
13351 ac_sed_dataroot='
13352 /datarootdir/ {
13353 p
13354 q
13355 }
13356 /@datadir@/p
13357 /@docdir@/p
13358 /@infodir@/p
13359 /@localedir@/p
13360 /@mandir@/p'
13361 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13362 *datarootdir*) ac_datarootdir_seen=yes;;
13363 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13365 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13366 _ACEOF
13367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13368 ac_datarootdir_hack='
13369 s&@datadir@&$datadir&g
13370 s&@docdir@&$docdir&g
13371 s&@infodir@&$infodir&g
13372 s&@localedir@&$localedir&g
13373 s&@mandir@&$mandir&g
13374 s&\\\${datarootdir}&$datarootdir&g' ;;
13375 esac
13376 _ACEOF
13377
13378 # Neutralize VPATH when '$srcdir' = '.'.
13379 # Shell code in configure.ac might set extrasub.
13380 # FIXME: do we really want to maintain this feature?
13381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13382 ac_sed_extra="$ac_vpsub
13383 $extrasub
13384 _ACEOF
13385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13386 :t
13387 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13388 s|@configure_input@|$ac_sed_conf_input|;t t
13389 s&@top_builddir@&$ac_top_builddir_sub&;t t
13390 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13391 s&@srcdir@&$ac_srcdir&;t t
13392 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13393 s&@top_srcdir@&$ac_top_srcdir&;t t
13394 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13395 s&@builddir@&$ac_builddir&;t t
13396 s&@abs_builddir@&$ac_abs_builddir&;t t
13397 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13398 s&@INSTALL@&$ac_INSTALL&;t t
13399 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13400 $ac_datarootdir_hack
13401 "
13402 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13403 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13404
13405 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13406 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13407 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13408 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13410 which seems to be undefined. Please make sure it is defined" >&5
13411 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13412 which seems to be undefined. Please make sure it is defined" >&2;}
13413
13414 rm -f "$ac_tmp/stdin"
13415 case $ac_file in
13416 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13417 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13418 esac \
13419 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13420 ;;
13421 :H)
13422 #
13423 # CONFIG_HEADER
13424 #
13425 if test x"$ac_file" != x-; then
13426 {
13427 printf "%s\n" "/* $configure_input */" >&1 \
13428 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13429 } >"$ac_tmp/config.h" \
13430 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13431 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13433 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13434 else
13435 rm -f "$ac_file"
13436 mv "$ac_tmp/config.h" "$ac_file" \
13437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13438 fi
13439 else
13440 printf "%s\n" "/* $configure_input */" >&1 \
13441 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13442 || as_fn_error $? "could not create -" "$LINENO" 5
13443 fi
13444 # Compute "$ac_file"'s index in $config_headers.
13445 _am_arg="$ac_file"
13446 _am_stamp_count=1
13447 for _am_header in $config_headers :; do
13448 case $_am_header in
13449 $_am_arg | $_am_arg:* )
13450 break ;;
13451 * )
13452 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13453 esac
13454 done
13455 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13456 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13457 X"$_am_arg" : 'X\(//\)[^/]' \| \
13458 X"$_am_arg" : 'X\(//\)$' \| \
13459 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13460 printf "%s\n" X"$_am_arg" |
13461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13462 s//\1/
13463 q
13464 }
13465 /^X\(\/\/\)[^/].*/{
13466 s//\1/
13467 q
13468 }
13469 /^X\(\/\/\)$/{
13470 s//\1/
13471 q
13472 }
13473 /^X\(\/\).*/{
13474 s//\1/
13475 q
13476 }
13477 s/.*/./; q'`/stamp-h$_am_stamp_count
13478 ;;
13479
13480 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13481 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13482 ;;
13483 esac
13484
13485
13486 case $ac_file$ac_mode in
13487 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13488 # Older Autoconf quotes --file arguments for eval, but not when files
13489 # are listed without --file. Let's play safe and only enable the eval
13490 # if we detect the quoting.
13491 # TODO: see whether this extra hack can be removed once we start
13492 # requiring Autoconf 2.70 or later.
13493 case $CONFIG_FILES in #(
13494 *\'*) :
13495 eval set x "$CONFIG_FILES" ;; #(
13496 *) :
13497 set x $CONFIG_FILES ;; #(
13498 *) :
13499 ;;
13500 esac
13501 shift
13502 # Used to flag and report bootstrapping failures.
13503 am_rc=0
13504 for am_mf
13505 do
13506 # Strip MF so we end up with the name of the file.
13507 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13508 # Check whether this is an Automake generated Makefile which includes
13509 # dependency-tracking related rules and includes.
13510 # Grep'ing the whole file directly is not great: AIX grep has a line
13511 # limit of 2048, but all sed's we know have understand at least 4000.
13512 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13513 || continue
13514 am_dirpart=`$as_dirname -- "$am_mf" ||
13515 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13516 X"$am_mf" : 'X\(//\)[^/]' \| \
13517 X"$am_mf" : 'X\(//\)$' \| \
13518 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13519 printf "%s\n" X"$am_mf" |
13520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13521 s//\1/
13522 q
13523 }
13524 /^X\(\/\/\)[^/].*/{
13525 s//\1/
13526 q
13527 }
13528 /^X\(\/\/\)$/{
13529 s//\1/
13530 q
13531 }
13532 /^X\(\/\).*/{
13533 s//\1/
13534 q
13535 }
13536 s/.*/./; q'`
13537 am_filepart=`$as_basename -- "$am_mf" ||
13538 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13539 X"$am_mf" : 'X\(//\)$' \| \
13540 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13541 printf "%s\n" X/"$am_mf" |
13542 sed '/^.*\/\([^/][^/]*\)\/*$/{
13543 s//\1/
13544 q
13545 }
13546 /^X\/\(\/\/\)$/{
13547 s//\1/
13548 q
13549 }
13550 /^X\/\(\/\).*/{
13551 s//\1/
13552 q
13553 }
13554 s/.*/./; q'`
13555 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13556 && sed -e '/# am--include-marker/d' "$am_filepart" \
13557 | $MAKE -f - am--depfiles" >&5
13558 (cd "$am_dirpart" \
13559 && sed -e '/# am--include-marker/d' "$am_filepart" \
13560 | $MAKE -f - am--depfiles) >&5 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } || am_rc=$?
13564 done
13565 if test $am_rc -ne 0; then
13566 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13567 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13568 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13569 for automatic dependency tracking. If GNU make was not used, consider
13570 re-running the configure script with MAKE=\"gmake\" (or whatever is
13571 necessary). You can also try re-running configure with the
13572 '--disable-dependency-tracking' option to at least be able to build
13573 the package (albeit without support for automatic dependency tracking).
13574 See 'config.log' for more details" "$LINENO" 5; }
13575 fi
13576 { am_dirpart=; unset am_dirpart;}
13577 { am_filepart=; unset am_filepart;}
13578 { am_mf=; unset am_mf;}
13579 { am_rc=; unset am_rc;}
13580 rm -f conftest-deps.mk
13581 }
13582 ;;
13583
13584 esac
13585 done # for ac_tag
13586
13587
13588 as_fn_exit 0
13589 _ACEOF
13590 ac_clean_files=$ac_clean_files_save
13591
13592 test $ac_write_fail = 0 ||
13593 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13594
13595
13596 # configure is writing to config.log, and then calls config.status.
13597 # config.status does its own redirection, appending to config.log.
13598 # Unfortunately, on DOS this fails, as config.log is still kept open
13599 # by configure, so config.status won't be able to write to it; its
13600 # output is simply discarded. So we exec the FD to /dev/null,
13601 # effectively closing config.log, so it can be properly (re)opened and
13602 # appended to by config.status. When coming back to configure, we
13603 # need to make the FD available again.
13604 if test "$no_create" != yes; then
13605 ac_cs_success=:
13606 ac_config_status_args=
13607 test "$silent" = yes &&
13608 ac_config_status_args="$ac_config_status_args --quiet"
13609 exec 5>/dev/null
13610 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13611 exec 5>>config.log
13612 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13613 # would make configure fail if this is the last instruction.
13614 $ac_cs_success || as_fn_exit 1
13615 fi
13616 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13618 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13619 fi
13620
13621
13622