Debian Codegraph @

xprop/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for xprop 1.2.7.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/-/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 [email protected] and
274 $0: https://gitlab.freedesktop.org/xorg/app/xprop/-/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='xprop'
607 PACKAGE_TARNAME='xprop'
608 PACKAGE_VERSION='1.2.7'
609 PACKAGE_STRING='xprop 1.2.7'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xprop/-/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 ac_subst_vars='am__EXEEXT_FALSE
647 am__EXEEXT_TRUE
648 LTLIBOBJS
649 LIBOBJS
650 LINT_FALSE
651 LINT_TRUE
652 LINT_FLAGS
653 LINT
654 XPROP_LIBS
655 XPROP_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__fastdepCC_FALSE
688 am__fastdepCC_TRUE
689 CCDEPMODE
690 am__nodep
691 AMDEPBACKSLASH
692 AMDEP_FALSE
693 AMDEP_TRUE
694 am__include
695 DEPDIR
696 OBJEXT
697 EXEEXT
698 ac_ct_CC
699 CPPFLAGS
700 LDFLAGS
701 CFLAGS
702 CC
703 AM_BACKSLASH
704 AM_DEFAULT_VERBOSITY
705 AM_DEFAULT_V
706 AM_V
707 CSCOPE
708 ETAGS
709 CTAGS
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
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_silent_rules
777 enable_dependency_tracking
778 enable_selective_werror
779 enable_strict_compilation
780 with_lint
781 '
782 ac_precious_vars='build_alias
783 host_alias
784 target_alias
785 CC
786 CFLAGS
787 LDFLAGS
788 LIBS
789 CPPFLAGS
790 PKG_CONFIG
791 PKG_CONFIG_PATH
792 PKG_CONFIG_LIBDIR
793 XPROP_CFLAGS
794 XPROP_LIBS
795 LINT
796 LINT_FLAGS'
797
798
799 # Initialize some variables set by options.
800 ac_init_help=
801 ac_init_version=false
802 ac_unrecognized_opts=
803 ac_unrecognized_sep=
804 # The variables have the same names as the options, with
805 # dashes changed to underlines.
806 cache_file=/dev/null
807 exec_prefix=NONE
808 no_create=
809 no_recursion=
810 prefix=NONE
811 program_prefix=NONE
812 program_suffix=NONE
813 program_transform_name=s,x,x,
814 silent=
815 site=
816 srcdir=
817 verbose=
818 x_includes=NONE
819 x_libraries=NONE
820
821 # Installation directory options.
822 # These are left unexpanded so users can "make install exec_prefix=/foo"
823 # and all the variables that are supposed to be based on exec_prefix
824 # by default will actually change.
825 # Use braces instead of parens because sh, perl, etc. also accept them.
826 # (The list follows the same order as the GNU Coding Standards.)
827 bindir='${exec_prefix}/bin'
828 sbindir='${exec_prefix}/sbin'
829 libexecdir='${exec_prefix}/libexec'
830 datarootdir='${prefix}/share'
831 datadir='${datarootdir}'
832 sysconfdir='${prefix}/etc'
833 sharedstatedir='${prefix}/com'
834 localstatedir='${prefix}/var'
835 runstatedir='${localstatedir}/run'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
857 fi
858
859 case $ac_option in
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 case $ac_dashdash$ac_option in
866 --)
867 ac_dashdash=yes ;;
868
869 -bindir | --bindir | --bindi | --bind | --bin | --bi)
870 ac_prev=bindir ;;
871 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
872 bindir=$ac_optarg ;;
873
874 -build | --build | --buil | --bui | --bu)
875 ac_prev=build_alias ;;
876 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
877 build_alias=$ac_optarg ;;
878
879 -cache-file | --cache-file | --cache-fil | --cache-fi \
880 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
881 ac_prev=cache_file ;;
882 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
883 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
884 cache_file=$ac_optarg ;;
885
886 --config-cache | -C)
887 cache_file=config.cache ;;
888
889 -datadir | --datadir | --datadi | --datad)
890 ac_prev=datadir ;;
891 -datadir=* | --datadir=* | --datadi=* | --datad=*)
892 datadir=$ac_optarg ;;
893
894 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
895 | --dataroo | --dataro | --datar)
896 ac_prev=datarootdir ;;
897 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
898 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
899 datarootdir=$ac_optarg ;;
900
901 -disable-* | --disable-*)
902 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
905 as_fn_error $? "invalid feature name: '$ac_useropt'"
906 ac_useropt_orig=$ac_useropt
907 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
909 *"
910 "enable_$ac_useropt"
911 "*) ;;
912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
913 ac_unrecognized_sep=', ';;
914 esac
915 eval enable_$ac_useropt=no ;;
916
917 -docdir | --docdir | --docdi | --doc | --do)
918 ac_prev=docdir ;;
919 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
920 docdir=$ac_optarg ;;
921
922 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
923 ac_prev=dvidir ;;
924 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
925 dvidir=$ac_optarg ;;
926
927 -enable-* | --enable-*)
928 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
929 # Reject names that are not valid shell variable names.
930 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
931 as_fn_error $? "invalid feature name: '$ac_useropt'"
932 ac_useropt_orig=$ac_useropt
933 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
934 case $ac_user_opts in
935 *"
936 "enable_$ac_useropt"
937 "*) ;;
938 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
939 ac_unrecognized_sep=', ';;
940 esac
941 eval enable_$ac_useropt=\$ac_optarg ;;
942
943 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
944 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
945 | --exec | --exe | --ex)
946 ac_prev=exec_prefix ;;
947 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
948 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
949 | --exec=* | --exe=* | --ex=*)
950 exec_prefix=$ac_optarg ;;
951
952 -gas | --gas | --ga | --g)
953 # Obsolete; use --with-gas.
954 with_gas=yes ;;
955
956 -help | --help | --hel | --he | -h)
957 ac_init_help=long ;;
958 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
959 ac_init_help=recursive ;;
960 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
961 ac_init_help=short ;;
962
963 -host | --host | --hos | --ho)
964 ac_prev=host_alias ;;
965 -host=* | --host=* | --hos=* | --ho=*)
966 host_alias=$ac_optarg ;;
967
968 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 ac_prev=htmldir ;;
970 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 | --ht=*)
972 htmldir=$ac_optarg ;;
973
974 -includedir | --includedir | --includedi | --included | --include \
975 | --includ | --inclu | --incl | --inc)
976 ac_prev=includedir ;;
977 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
978 | --includ=* | --inclu=* | --incl=* | --inc=*)
979 includedir=$ac_optarg ;;
980
981 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 ac_prev=infodir ;;
983 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
984 infodir=$ac_optarg ;;
985
986 -libdir | --libdir | --libdi | --libd)
987 ac_prev=libdir ;;
988 -libdir=* | --libdir=* | --libdi=* | --libd=*)
989 libdir=$ac_optarg ;;
990
991 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
992 | --libexe | --libex | --libe)
993 ac_prev=libexecdir ;;
994 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
995 | --libexe=* | --libex=* | --libe=*)
996 libexecdir=$ac_optarg ;;
997
998 -localedir | --localedir | --localedi | --localed | --locale)
999 ac_prev=localedir ;;
1000 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1001 localedir=$ac_optarg ;;
1002
1003 -localstatedir | --localstatedir | --localstatedi | --localstated \
1004 | --localstate | --localstat | --localsta | --localst | --locals)
1005 ac_prev=localstatedir ;;
1006 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1007 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1008 localstatedir=$ac_optarg ;;
1009
1010 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 ac_prev=mandir ;;
1012 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1013 mandir=$ac_optarg ;;
1014
1015 -nfp | --nfp | --nf)
1016 # Obsolete; use --without-fp.
1017 with_fp=no ;;
1018
1019 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1020 | --no-cr | --no-c | -n)
1021 no_create=yes ;;
1022
1023 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1024 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1025 no_recursion=yes ;;
1026
1027 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1028 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1029 | --oldin | --oldi | --old | --ol | --o)
1030 ac_prev=oldincludedir ;;
1031 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1032 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1033 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1034 oldincludedir=$ac_optarg ;;
1035
1036 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 ac_prev=prefix ;;
1038 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1039 prefix=$ac_optarg ;;
1040
1041 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1042 | --program-pre | --program-pr | --program-p)
1043 ac_prev=program_prefix ;;
1044 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1045 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1046 program_prefix=$ac_optarg ;;
1047
1048 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1049 | --program-suf | --program-su | --program-s)
1050 ac_prev=program_suffix ;;
1051 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1052 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1053 program_suffix=$ac_optarg ;;
1054
1055 -program-transform-name | --program-transform-name \
1056 | --program-transform-nam | --program-transform-na \
1057 | --program-transform-n | --program-transform- \
1058 | --program-transform | --program-transfor \
1059 | --program-transfo | --program-transf \
1060 | --program-trans | --program-tran \
1061 | --progr-tra | --program-tr | --program-t)
1062 ac_prev=program_transform_name ;;
1063 -program-transform-name=* | --program-transform-name=* \
1064 | --program-transform-nam=* | --program-transform-na=* \
1065 | --program-transform-n=* | --program-transform-=* \
1066 | --program-transform=* | --program-transfor=* \
1067 | --program-transfo=* | --program-transf=* \
1068 | --program-trans=* | --program-tran=* \
1069 | --progr-tra=* | --program-tr=* | --program-t=*)
1070 program_transform_name=$ac_optarg ;;
1071
1072 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 ac_prev=pdfdir ;;
1074 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1075 pdfdir=$ac_optarg ;;
1076
1077 -psdir | --psdir | --psdi | --psd | --ps)
1078 ac_prev=psdir ;;
1079 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1080 psdir=$ac_optarg ;;
1081
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 silent=yes ;;
1085
1086 -runstatedir | --runstatedir | --runstatedi | --runstated \
1087 | --runstate | --runstat | --runsta | --runst | --runs \
1088 | --run | --ru | --r)
1089 ac_prev=runstatedir ;;
1090 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1091 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1092 | --run=* | --ru=* | --r=*)
1093 runstatedir=$ac_optarg ;;
1094
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1100
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1111
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1116
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1121
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1128
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1133
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1136
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1139
1140 -with-* | --with-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: '$ac_useropt'"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=\$ac_optarg ;;
1155
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: '$ac_useropt'"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=no ;;
1171
1172 --x)
1173 # Obsolete; use --with-x.
1174 with_x=yes ;;
1175
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1182
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1189
1190 -*) as_fn_error $? "unrecognized option: '$ac_option'
1191 Try '$0 --help' for more information"
1192 ;;
1193
1194 *=*)
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1200 esac
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1203
1204 *)
1205 # FIXME: should be removed in autoconf 3.0.
1206 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210 ;;
1211
1212 esac
1213 done
1214
1215 if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error $? "missing argument to $ac_option"
1218 fi
1219
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1222 no) ;;
1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 esac
1226 fi
1227
1228 # Check all directory arguments for consistency.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir runstatedir
1233 do
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1236 case $ac_val in
1237 */ )
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1240 esac
1241 # Be sure to have absolute directory names.
1242 case $ac_val in
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 esac
1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 done
1248
1249 # There might be people who depend on the old broken behavior: '$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1252 build=$build_alias
1253 host=$host_alias
1254 target=$target_alias
1255
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 elif test "x$build_alias" != "x$host_alias"; then
1261 cross_compiling=yes
1262 fi
1263 fi
1264
1265 ac_tool_prefix=
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268 test "$silent" = yes && exec 6>/dev/null
1269
1270
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 printf "%s\n" X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)[^/].*/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\).*/{
1302 s//\1/
1303 q
1304 }
1305 s/.*/./; q'`
1306 srcdir=$ac_confdir
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 srcdir=..
1309 fi
1310 else
1311 ac_srcdir_defaulted=no
1312 fi
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316 fi
1317 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1318 ac_abs_confdir=`(
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 srcdir=.
1324 fi
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1337
1338 #
1339 # Report the --help message.
1340 #
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1344 cat <<_ACEOF
1345 'configure' configures xprop 1.2.7 to adapt to many kinds of systems.
1346
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1351
1352 Defaults for the options are specified in brackets.
1353
1354 Configuration:
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print 'checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for '--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or '..']
1364
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 [PREFIX]
1370
1371 By default, 'make install' will install all the files in
1372 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than '$ac_default_prefix' using '--prefix',
1374 for instance '--prefix=\$HOME'.
1375
1376 For better control, use the options below.
1377
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1386 --libdir=DIR object code libraries [EPREFIX/lib]
1387 --includedir=DIR C header files [PREFIX/include]
1388 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1389 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1390 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1391 --infodir=DIR info documentation [DATAROOTDIR/info]
1392 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1393 --mandir=DIR man documentation [DATAROOTDIR/man]
1394 --docdir=DIR documentation root [DATAROOTDIR/doc/xprop]
1395 --htmldir=DIR html documentation [DOCDIR]
1396 --dvidir=DIR dvi documentation [DOCDIR]
1397 --pdfdir=DIR pdf documentation [DOCDIR]
1398 --psdir=DIR ps documentation [DOCDIR]
1399 _ACEOF
1400
1401 cat <<\_ACEOF
1402
1403 Program names:
1404 --program-prefix=PREFIX prepend PREFIX to installed program names
1405 --program-suffix=SUFFIX append SUFFIX to installed program names
1406 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407
1408 System types:
1409 --build=BUILD configure for building on BUILD [guessed]
1410 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1411 _ACEOF
1412 fi
1413
1414 if test -n "$ac_init_help"; then
1415 case $ac_init_help in
1416 short | recursive ) echo "Configuration of xprop 1.2.7:";;
1417 esac
1418 cat <<\_ACEOF
1419
1420 Optional Features:
1421 --disable-option-checking ignore unrecognized --enable/--with options
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-silent-rules less verbose build output (undo: "make V=1")
1425 --disable-silent-rules verbose build output (undo: "make V=0")
1426 --enable-dependency-tracking
1427 do not reject slow dependency extractors
1428 --disable-dependency-tracking
1429 speeds up one-time build
1430 --disable-selective-werror
1431 Turn off selective compiler errors. (default:
1432 enabled)
1433 --enable-strict-compilation
1434 Enable all warnings from compiler and make them
1435 errors (default: disabled)
1436
1437 Optional Packages:
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 --with-lint Use a lint-style source code checker (default:
1441 disabled)
1442
1443 Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 LIBS libraries to pass to the linker, e.g. -l<library>
1449 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1451 PKG_CONFIG path to pkg-config utility
1452 PKG_CONFIG_PATH
1453 directories to add to pkg-config's search path
1454 PKG_CONFIG_LIBDIR
1455 path overriding pkg-config's built-in search path
1456 XPROP_CFLAGS
1457 C compiler flags for XPROP, overriding pkg-config
1458 XPROP_LIBS linker flags for XPROP, overriding pkg-config
1459 LINT Path to a lint-style command
1460 LINT_FLAGS Flags for the lint-style command
1461
1462 Use these variables to override the choices made by 'configure' or to help
1463 it to find libraries and programs with nonstandard names/locations.
1464
1465 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/-/issues>.
1466 _ACEOF
1467 ac_status=$?
1468 fi
1469
1470 if test "$ac_init_help" = "recursive"; then
1471 # If there are subdirs, report their specific --help.
1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473 test -d "$ac_dir" ||
1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475 continue
1476 ac_builddir=.
1477
1478 case "$ac_dir" in
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *)
1481 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1482 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484 case $ac_top_builddir_sub in
1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487 esac ;;
1488 esac
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1493
1494 case $srcdir in
1495 .) # We are building in place.
1496 ac_srcdir=.
1497 ac_top_srcdir=$ac_top_builddir_sub
1498 ac_abs_top_srcdir=$ac_pwd ;;
1499 [\\/]* | ?:[\\/]* ) # Absolute name.
1500 ac_srcdir=$srcdir$ac_dir_suffix;
1501 ac_top_srcdir=$srcdir
1502 ac_abs_top_srcdir=$srcdir ;;
1503 *) # Relative name.
1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505 ac_top_srcdir=$ac_top_build_prefix$srcdir
1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 esac
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509
1510 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for configure.gnu first; this name is used for a wrapper for
1512 # Metaconfig's "Configure" on case-insensitive file systems.
1513 if test -f "$ac_srcdir/configure.gnu"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516 elif test -f "$ac_srcdir/configure"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure" --help=recursive
1519 else
1520 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 fi || ac_status=$?
1522 cd "$ac_pwd" || { ac_status=$?; break; }
1523 done
1524 fi
1525
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1528 cat <<\_ACEOF
1529 xprop configure 1.2.7
1530 generated by GNU Autoconf 2.72
1531
1532 Copyright (C) 2023 Free Software Foundation, Inc.
1533 This configure script is free software; the Free Software Foundation
1534 gives unlimited permission to copy, distribute and modify it.
1535 _ACEOF
1536 exit
1537 fi
1538
1539 ## ------------------------ ##
1540 ## Autoconf initialization. ##
1541 ## ------------------------ ##
1542
1543 # ac_fn_c_try_compile LINENO
1544 # --------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_compile ()
1547 {
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext conftest.beam
1550 if { { ac_try="$ac_compile"
1551 case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 printf "%s\n" "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1563 fi
1564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext
1569 then :
1570 ac_retval=0
1571 else case e in #(
1572 e) printf "%s\n" "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1574
1575 ac_retval=1 ;;
1576 esac
1577 fi
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status $ac_retval
1580
1581 } # ac_fn_c_try_compile
1582
1583 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1584 # ------------------------------------------------------------------
1585 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1586 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1587 ac_fn_check_decl ()
1588 {
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 as_decl_name=`echo $2|sed 's/ *(.*//'`
1591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1592 printf %s "checking whether $as_decl_name is declared... " >&6; }
1593 if eval test \${$3+y}
1594 then :
1595 printf %s "(cached) " >&6
1596 else case e in #(
1597 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1598 eval ac_save_FLAGS=\$$6
1599 as_fn_append $6 " $5"
1600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1601 /* end confdefs.h. */
1602 $4
1603 int
1604 main (void)
1605 {
1606 #ifndef $as_decl_name
1607 #ifdef __cplusplus
1608 (void) $as_decl_use;
1609 #else
1610 (void) $as_decl_name;
1611 #endif
1612 #endif
1613
1614 ;
1615 return 0;
1616 }
1617 _ACEOF
1618 if ac_fn_c_try_compile "$LINENO"
1619 then :
1620 eval "$3=yes"
1621 else case e in #(
1622 e) eval "$3=no" ;;
1623 esac
1624 fi
1625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1626 eval $6=\$ac_save_FLAGS
1627 ;;
1628 esac
1629 fi
1630 eval ac_res=\$$3
1631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1632 printf "%s\n" "$ac_res" >&6; }
1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1634
1635 } # ac_fn_check_decl
1636
1637 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1638 # -------------------------------------------------------
1639 # Tests whether HEADER exists and can be compiled using the include files in
1640 # INCLUDES, setting the cache variable VAR accordingly.
1641 ac_fn_c_check_header_compile ()
1642 {
1643 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 printf %s "checking for $2... " >&6; }
1646 if eval test \${$3+y}
1647 then :
1648 printf %s "(cached) " >&6
1649 else case e in #(
1650 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1651 /* end confdefs.h. */
1652 $4
1653 #include <$2>
1654 _ACEOF
1655 if ac_fn_c_try_compile "$LINENO"
1656 then :
1657 eval "$3=yes"
1658 else case e in #(
1659 e) eval "$3=no" ;;
1660 esac
1661 fi
1662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1663 esac
1664 fi
1665 eval ac_res=\$$3
1666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667 printf "%s\n" "$ac_res" >&6; }
1668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669
1670 } # ac_fn_c_check_header_compile
1671
1672 # ac_fn_c_try_link LINENO
1673 # -----------------------
1674 # Try to link conftest.$ac_ext, and return whether this succeeded.
1675 ac_fn_c_try_link ()
1676 {
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1679 if { { ac_try="$ac_link"
1680 case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683 esac
1684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685 printf "%s\n" "$ac_try_echo"; } >&5
1686 (eval "$ac_link") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest$ac_exeext && {
1698 test "$cross_compiling" = yes ||
1699 test -x conftest$ac_exeext
1700 }
1701 then :
1702 ac_retval=0
1703 else case e in #(
1704 e) printf "%s\n" "$as_me: failed program was:" >&5
1705 sed 's/^/| /' conftest.$ac_ext >&5
1706
1707 ac_retval=1 ;;
1708 esac
1709 fi
1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712 # interfere with the next link command; also delete a directory that is
1713 # left behind by Apple's compiler. We do this before executing the actions.
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_link
1719 ac_configure_args_raw=
1720 for ac_arg
1721 do
1722 case $ac_arg in
1723 *\'*)
1724 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725 esac
1726 as_fn_append ac_configure_args_raw " '$ac_arg'"
1727 done
1728
1729 case $ac_configure_args_raw in
1730 *$as_nl*)
1731 ac_safe_unquote= ;;
1732 *)
1733 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1734 ac_unsafe_a="$ac_unsafe_z#~"
1735 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1736 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1737 esac
1738
1739 cat >config.log <<_ACEOF
1740 This file contains any messages produced by compilers while
1741 running configure, to aid debugging if configure makes a mistake.
1742
1743 It was created by xprop $as_me 1.2.7, which was
1744 generated by GNU Autoconf 2.72. Invocation command line was
1745
1746 $ $0$ac_configure_args_raw
1747
1748 _ACEOF
1749 exec 5>>config.log
1750 {
1751 cat <<_ASUNAME
1752 ## --------- ##
1753 ## Platform. ##
1754 ## --------- ##
1755
1756 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1757 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1758 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1759 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1760 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1761
1762 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1763 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1764
1765 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1766 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1767 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1768 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1769 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1770 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1771 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1772
1773 _ASUNAME
1774
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1777 do
1778 IFS=$as_save_IFS
1779 case $as_dir in #(((
1780 '') as_dir=./ ;;
1781 */) ;;
1782 *) as_dir=$as_dir/ ;;
1783 esac
1784 printf "%s\n" "PATH: $as_dir"
1785 done
1786 IFS=$as_save_IFS
1787
1788 } >&5
1789
1790 cat >&5 <<_ACEOF
1791
1792
1793 ## ----------- ##
1794 ## Core tests. ##
1795 ## ----------- ##
1796
1797 _ACEOF
1798
1799
1800 # Keep a trace of the command line.
1801 # Strip out --no-create and --no-recursion so they do not pile up.
1802 # Strip out --silent because we don't want to record it for future runs.
1803 # Also quote any args containing shell meta-characters.
1804 # Make two passes to allow for proper duplicate-argument suppression.
1805 ac_configure_args=
1806 ac_configure_args0=
1807 ac_configure_args1=
1808 ac_must_keep_next=false
1809 for ac_pass in 1 2
1810 do
1811 for ac_arg
1812 do
1813 case $ac_arg in
1814 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1815 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1816 | -silent | --silent | --silen | --sile | --sil)
1817 continue ;;
1818 *\'*)
1819 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820 esac
1821 case $ac_pass in
1822 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1823 2)
1824 as_fn_append ac_configure_args1 " '$ac_arg'"
1825 if test $ac_must_keep_next = true; then
1826 ac_must_keep_next=false # Got value, back to normal.
1827 else
1828 case $ac_arg in
1829 *=* | --config-cache | -C | -disable-* | --disable-* \
1830 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1831 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1832 | -with-* | --with-* | -without-* | --without-* | --x)
1833 case "$ac_configure_args0 " in
1834 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1835 esac
1836 ;;
1837 -* ) ac_must_keep_next=true ;;
1838 esac
1839 fi
1840 as_fn_append ac_configure_args " '$ac_arg'"
1841 ;;
1842 esac
1843 done
1844 done
1845 { ac_configure_args0=; unset ac_configure_args0;}
1846 { ac_configure_args1=; unset ac_configure_args1;}
1847
1848 # When interrupted or exit'd, cleanup temporary files, and complete
1849 # config.log. We remove comments because anyway the quotes in there
1850 # would cause problems or look ugly.
1851 # WARNING: Use '\'' to represent an apostrophe within the trap.
1852 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1853 trap 'exit_status=$?
1854 # Sanitize IFS.
1855 IFS=" "" $as_nl"
1856 # Save into config.log some information that might help in debugging.
1857 {
1858 echo
1859
1860 printf "%s\n" "## ---------------- ##
1861 ## Cache variables. ##
1862 ## ---------------- ##"
1863 echo
1864 # The following way of writing the cache mishandles newlines in values,
1865 (
1866 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867 eval ac_val=\$$ac_var
1868 case $ac_val in #(
1869 *${as_nl}*)
1870 case $ac_var in #(
1871 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1872 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873 esac
1874 case $ac_var in #(
1875 _ | IFS | as_nl) ;; #(
1876 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877 *) { eval $ac_var=; unset $ac_var;} ;;
1878 esac ;;
1879 esac
1880 done
1881 (set) 2>&1 |
1882 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883 *${as_nl}ac_space=\ *)
1884 sed -n \
1885 "s/'\''/'\''\\\\'\'''\''/g;
1886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887 ;; #(
1888 *)
1889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1890 ;;
1891 esac |
1892 sort
1893 )
1894 echo
1895
1896 printf "%s\n" "## ----------------- ##
1897 ## Output variables. ##
1898 ## ----------------- ##"
1899 echo
1900 for ac_var in $ac_subst_vars
1901 do
1902 eval ac_val=\$$ac_var
1903 case $ac_val in
1904 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 esac
1906 printf "%s\n" "$ac_var='\''$ac_val'\''"
1907 done | sort
1908 echo
1909
1910 if test -n "$ac_subst_files"; then
1911 printf "%s\n" "## ------------------- ##
1912 ## File substitutions. ##
1913 ## ------------------- ##"
1914 echo
1915 for ac_var in $ac_subst_files
1916 do
1917 eval ac_val=\$$ac_var
1918 case $ac_val in
1919 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920 esac
1921 printf "%s\n" "$ac_var='\''$ac_val'\''"
1922 done | sort
1923 echo
1924 fi
1925
1926 if test -s confdefs.h; then
1927 printf "%s\n" "## ----------- ##
1928 ## confdefs.h. ##
1929 ## ----------- ##"
1930 echo
1931 cat confdefs.h
1932 echo
1933 fi
1934 test "$ac_signal" != 0 &&
1935 printf "%s\n" "$as_me: caught signal $ac_signal"
1936 printf "%s\n" "$as_me: exit $exit_status"
1937 } >&5
1938 rm -f core *.core core.conftest.* &&
1939 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1940 exit $exit_status
1941 ' 0
1942 for ac_signal in 1 2 13 15; do
1943 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1944 done
1945 ac_signal=0
1946
1947 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1948 rm -f -r conftest* confdefs.h
1949
1950 printf "%s\n" "/* confdefs.h */" > confdefs.h
1951
1952 # Predefined preprocessor variables.
1953
1954 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1955
1956 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1957
1958 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1959
1960 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1961
1962 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1963
1964 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1965
1966
1967 # Let the site file select an alternate cache file if it wants to.
1968 # Prefer an explicitly selected file to automatically selected ones.
1969 if test -n "$CONFIG_SITE"; then
1970 ac_site_files="$CONFIG_SITE"
1971 elif test "x$prefix" != xNONE; then
1972 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1973 else
1974 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1975 fi
1976
1977 for ac_site_file in $ac_site_files
1978 do
1979 case $ac_site_file in #(
1980 */*) :
1981 ;; #(
1982 *) :
1983 ac_site_file=./$ac_site_file ;;
1984 esac
1985 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1987 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1988 sed 's/^/| /' "$ac_site_file" >&5
1989 . "$ac_site_file" \
1990 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
1991 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
1992 as_fn_error $? "failed to load site script $ac_site_file
1993 See 'config.log' for more details" "$LINENO" 5; }
1994 fi
1995 done
1996
1997 if test -r "$cache_file"; then
1998 # Some versions of bash will fail to source /dev/null (special files
1999 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2000 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2002 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2003 case $cache_file in
2004 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005 *) . "./$cache_file";;
2006 esac
2007 fi
2008 else
2009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2010 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2011 >$cache_file
2012 fi
2013
2014 # Test code for whether the C compiler supports C89 (global declarations)
2015 ac_c_conftest_c89_globals='
2016 /* Does the compiler advertise C89 conformance?
2017 Do not test the value of __STDC__, because some compilers set it to 0
2018 while being otherwise adequately conformant. */
2019 #if !defined __STDC__
2020 # error "Compiler does not advertise C89 conformance"
2021 #endif
2022
2023 #include <stddef.h>
2024 #include <stdarg.h>
2025 struct stat;
2026 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2027 struct buf { int x; };
2028 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2029 static char *e (char **p, int i)
2030 {
2031 return p[i];
2032 }
2033 static char *f (char * (*g) (char **, int), char **p, ...)
2034 {
2035 char *s;
2036 va_list v;
2037 va_start (v,p);
2038 s = g (p, va_arg (v,int));
2039 va_end (v);
2040 return s;
2041 }
2042
2043 /* C89 style stringification. */
2044 #define noexpand_stringify(a) #a
2045 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2046
2047 /* C89 style token pasting. Exercises some of the corner cases that
2048 e.g. old MSVC gets wrong, but not very hard. */
2049 #define noexpand_concat(a,b) a##b
2050 #define expand_concat(a,b) noexpand_concat(a,b)
2051 extern int vA;
2052 extern int vbee;
2053 #define aye A
2054 #define bee B
2055 int *pvA = &expand_concat(v,aye);
2056 int *pvbee = &noexpand_concat(v,bee);
2057
2058 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2059 function prototypes and stuff, but not \xHH hex character constants.
2060 These do not provoke an error unfortunately, instead are silently treated
2061 as an "x". The following induces an error, until -std is added to get
2062 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2063 array size at least. It is necessary to write \x00 == 0 to get something
2064 that is true only with -std. */
2065 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2066
2067 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2068 inside strings and character constants. */
2069 #define FOO(x) '\''x'\''
2070 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2071
2072 int test (int i, double x);
2073 struct s1 {int (*f) (int a);};
2074 struct s2 {int (*f) (double a);};
2075 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2076 int, int);'
2077
2078 # Test code for whether the C compiler supports C89 (body of main).
2079 ac_c_conftest_c89_main='
2080 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2081 '
2082
2083 # Test code for whether the C compiler supports C99 (global declarations)
2084 ac_c_conftest_c99_globals='
2085 /* Does the compiler advertise C99 conformance? */
2086 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2087 # error "Compiler does not advertise C99 conformance"
2088 #endif
2089
2090 // See if C++-style comments work.
2091
2092 #include <stdbool.h>
2093 extern int puts (const char *);
2094 extern int printf (const char *, ...);
2095 extern int dprintf (int, const char *, ...);
2096 extern void *malloc (size_t);
2097 extern void free (void *);
2098
2099 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2100 // dprintf is used instead of fprintf to avoid needing to declare
2101 // FILE and stderr.
2102 #define debug(...) dprintf (2, __VA_ARGS__)
2103 #define showlist(...) puts (#__VA_ARGS__)
2104 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2105 static void
2106 test_varargs_macros (void)
2107 {
2108 int x = 1234;
2109 int y = 5678;
2110 debug ("Flag");
2111 debug ("X = %d\n", x);
2112 showlist (The first, second, and third items.);
2113 report (x>y, "x is %d but y is %d", x, y);
2114 }
2115
2116 // Check long long types.
2117 #define BIG64 18446744073709551615ull
2118 #define BIG32 4294967295ul
2119 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2120 #if !BIG_OK
2121 #error "your preprocessor is broken"
2122 #endif
2123 #if BIG_OK
2124 #else
2125 #error "your preprocessor is broken"
2126 #endif
2127 static long long int bignum = -9223372036854775807LL;
2128 static unsigned long long int ubignum = BIG64;
2129
2130 struct incomplete_array
2131 {
2132 int datasize;
2133 double data[];
2134 };
2135
2136 struct named_init {
2137 int number;
2138 const wchar_t *name;
2139 double average;
2140 };
2141
2142 typedef const char *ccp;
2143
2144 static inline int
2145 test_restrict (ccp restrict text)
2146 {
2147 // Iterate through items via the restricted pointer.
2148 // Also check for declarations in for loops.
2149 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2150 continue;
2151 return 0;
2152 }
2153
2154 // Check varargs and va_copy.
2155 static bool
2156 test_varargs (const char *format, ...)
2157 {
2158 va_list args;
2159 va_start (args, format);
2160 va_list args_copy;
2161 va_copy (args_copy, args);
2162
2163 const char *str = "";
2164 int number = 0;
2165 float fnumber = 0;
2166
2167 while (*format)
2168 {
2169 switch (*format++)
2170 {
2171 case '\''s'\'': // string
2172 str = va_arg (args_copy, const char *);
2173 break;
2174 case '\''d'\'': // int
2175 number = va_arg (args_copy, int);
2176 break;
2177 case '\''f'\'': // float
2178 fnumber = va_arg (args_copy, double);
2179 break;
2180 default:
2181 break;
2182 }
2183 }
2184 va_end (args_copy);
2185 va_end (args);
2186
2187 return *str && number && fnumber;
2188 }
2189 '
2190
2191 # Test code for whether the C compiler supports C99 (body of main).
2192 ac_c_conftest_c99_main='
2193 // Check bool.
2194 _Bool success = false;
2195 success |= (argc != 0);
2196
2197 // Check restrict.
2198 if (test_restrict ("String literal") == 0)
2199 success = true;
2200 char *restrict newvar = "Another string";
2201
2202 // Check varargs.
2203 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2204 test_varargs_macros ();
2205
2206 // Check flexible array members.
2207 struct incomplete_array *ia =
2208 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2209 ia->datasize = 10;
2210 for (int i = 0; i < ia->datasize; ++i)
2211 ia->data[i] = i * 1.234;
2212 // Work around memory leak warnings.
2213 free (ia);
2214
2215 // Check named initializers.
2216 struct named_init ni = {
2217 .number = 34,
2218 .name = L"Test wide string",
2219 .average = 543.34343,
2220 };
2221
2222 ni.number = 58;
2223
2224 int dynamic_array[ni.number];
2225 dynamic_array[0] = argv[0][0];
2226 dynamic_array[ni.number - 1] = 543;
2227
2228 // work around unused variable warnings
2229 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2230 || dynamic_array[ni.number - 1] != 543);
2231 '
2232
2233 # Test code for whether the C compiler supports C11 (global declarations)
2234 ac_c_conftest_c11_globals='
2235 /* Does the compiler advertise C11 conformance? */
2236 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2237 # error "Compiler does not advertise C11 conformance"
2238 #endif
2239
2240 // Check _Alignas.
2241 char _Alignas (double) aligned_as_double;
2242 char _Alignas (0) no_special_alignment;
2243 extern char aligned_as_int;
2244 char _Alignas (0) _Alignas (int) aligned_as_int;
2245
2246 // Check _Alignof.
2247 enum
2248 {
2249 int_alignment = _Alignof (int),
2250 int_array_alignment = _Alignof (int[100]),
2251 char_alignment = _Alignof (char)
2252 };
2253 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2254
2255 // Check _Noreturn.
2256 int _Noreturn does_not_return (void) { for (;;) continue; }
2257
2258 // Check _Static_assert.
2259 struct test_static_assert
2260 {
2261 int x;
2262 _Static_assert (sizeof (int) <= sizeof (long int),
2263 "_Static_assert does not work in struct");
2264 long int y;
2265 };
2266
2267 // Check UTF-8 literals.
2268 #define u8 syntax error!
2269 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2270
2271 // Check duplicate typedefs.
2272 typedef long *long_ptr;
2273 typedef long int *long_ptr;
2274 typedef long_ptr long_ptr;
2275
2276 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2277 struct anonymous
2278 {
2279 union {
2280 struct { int i; int j; };
2281 struct { int k; long int l; } w;
2282 };
2283 int m;
2284 } v1;
2285 '
2286
2287 # Test code for whether the C compiler supports C11 (body of main).
2288 ac_c_conftest_c11_main='
2289 _Static_assert ((offsetof (struct anonymous, i)
2290 == offsetof (struct anonymous, w.k)),
2291 "Anonymous union alignment botch");
2292 v1.i = 2;
2293 v1.w.k = 5;
2294 ok |= v1.i != 5;
2295 '
2296
2297 # Test code for whether the C compiler supports C11 (complete).
2298 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2299 ${ac_c_conftest_c99_globals}
2300 ${ac_c_conftest_c11_globals}
2301
2302 int
2303 main (int argc, char **argv)
2304 {
2305 int ok = 0;
2306 ${ac_c_conftest_c89_main}
2307 ${ac_c_conftest_c99_main}
2308 ${ac_c_conftest_c11_main}
2309 return ok;
2310 }
2311 "
2312
2313 # Test code for whether the C compiler supports C99 (complete).
2314 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2315 ${ac_c_conftest_c99_globals}
2316
2317 int
2318 main (int argc, char **argv)
2319 {
2320 int ok = 0;
2321 ${ac_c_conftest_c89_main}
2322 ${ac_c_conftest_c99_main}
2323 return ok;
2324 }
2325 "
2326
2327 # Test code for whether the C compiler supports C89 (complete).
2328 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2329
2330 int
2331 main (int argc, char **argv)
2332 {
2333 int ok = 0;
2334 ${ac_c_conftest_c89_main}
2335 return ok;
2336 }
2337 "
2338
2339 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2340 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2341 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2342 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2343 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2344 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2345 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2346 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2347 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2348
2349 # Auxiliary files required by this configure script.
2350 ac_aux_files="config.guess config.sub compile missing install-sh"
2351
2352 # Locations in which to look for auxiliary files.
2353 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2354
2355 # Search for a directory containing all of the required auxiliary files,
2356 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2357 # If we don't find one directory that contains all the files we need,
2358 # we report the set of missing files from the *first* directory in
2359 # $ac_aux_dir_candidates and give up.
2360 ac_missing_aux_files=""
2361 ac_first_candidate=:
2362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2364 as_found=false
2365 for as_dir in $ac_aux_dir_candidates
2366 do
2367 IFS=$as_save_IFS
2368 case $as_dir in #(((
2369 '') as_dir=./ ;;
2370 */) ;;
2371 *) as_dir=$as_dir/ ;;
2372 esac
2373 as_found=:
2374
2375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2376 ac_aux_dir_found=yes
2377 ac_install_sh=
2378 for ac_aux in $ac_aux_files
2379 do
2380 # As a special case, if "install-sh" is required, that requirement
2381 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2382 # and $ac_install_sh is set appropriately for whichever one is found.
2383 if test x"$ac_aux" = x"install-sh"
2384 then
2385 if test -f "${as_dir}install-sh"; then
2386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2387 ac_install_sh="${as_dir}install-sh -c"
2388 elif test -f "${as_dir}install.sh"; then
2389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2390 ac_install_sh="${as_dir}install.sh -c"
2391 elif test -f "${as_dir}shtool"; then
2392 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2393 ac_install_sh="${as_dir}shtool install -c"
2394 else
2395 ac_aux_dir_found=no
2396 if $ac_first_candidate; then
2397 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2398 else
2399 break
2400 fi
2401 fi
2402 else
2403 if test -f "${as_dir}${ac_aux}"; then
2404 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2405 else
2406 ac_aux_dir_found=no
2407 if $ac_first_candidate; then
2408 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2409 else
2410 break
2411 fi
2412 fi
2413 fi
2414 done
2415 if test "$ac_aux_dir_found" = yes; then
2416 ac_aux_dir="$as_dir"
2417 break
2418 fi
2419 ac_first_candidate=false
2420
2421 as_found=false
2422 done
2423 IFS=$as_save_IFS
2424 if $as_found
2425 then :
2426
2427 else case e in #(
2428 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2429 esac
2430 fi
2431
2432
2433 # These three variables are undocumented and unsupported,
2434 # and are intended to be withdrawn in a future Autoconf release.
2435 # They can cause serious problems if a builder's source tree is in a directory
2436 # whose full name contains unusual characters.
2437 if test -f "${ac_aux_dir}config.guess"; then
2438 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2439 fi
2440 if test -f "${ac_aux_dir}config.sub"; then
2441 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2442 fi
2443 if test -f "$ac_aux_dir/configure"; then
2444 ac_configure="$SHELL ${ac_aux_dir}configure"
2445 fi
2446
2447 # Check that the precious variables saved in the cache have kept the same
2448 # value.
2449 ac_cache_corrupted=false
2450 for ac_var in $ac_precious_vars; do
2451 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2452 eval ac_new_set=\$ac_env_${ac_var}_set
2453 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2454 eval ac_new_val=\$ac_env_${ac_var}_value
2455 case $ac_old_set,$ac_new_set in
2456 set,)
2457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2458 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2459 ac_cache_corrupted=: ;;
2460 ,set)
2461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2462 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2463 ac_cache_corrupted=: ;;
2464 ,);;
2465 *)
2466 if test "x$ac_old_val" != "x$ac_new_val"; then
2467 # differences in whitespace do not lead to failure.
2468 ac_old_val_w=`echo x $ac_old_val`
2469 ac_new_val_w=`echo x $ac_new_val`
2470 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2472 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2473 ac_cache_corrupted=:
2474 else
2475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2476 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2477 eval $ac_var=\$ac_old_val
2478 fi
2479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2480 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2482 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2483 fi;;
2484 esac
2485 # Pass precious variables to config.status.
2486 if test "$ac_new_set" = set; then
2487 case $ac_new_val in
2488 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2489 *) ac_arg=$ac_var=$ac_new_val ;;
2490 esac
2491 case " $ac_configure_args " in
2492 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2493 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2494 esac
2495 fi
2496 done
2497 if $ac_cache_corrupted; then
2498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2499 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2501 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2502 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2503 and start over" "$LINENO" 5
2504 fi
2505 ## -------------------- ##
2506 ## Main body of script. ##
2507 ## -------------------- ##
2508
2509 ac_ext=c
2510 ac_cpp='$CPP $CPPFLAGS'
2511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514
2515
2516
2517 ac_config_headers="$ac_config_headers config.h"
2518
2519
2520 # Initialize Automake
2521 am__api_version='1.16'
2522
2523
2524
2525 # Find a good install program. We prefer a C program (faster),
2526 # so one script is as good as another. But avoid the broken or
2527 # incompatible versions:
2528 # SysV /etc/install, /usr/sbin/install
2529 # SunOS /usr/etc/install
2530 # IRIX /sbin/install
2531 # AIX /bin/install
2532 # AmigaOS /C/install, which installs bootblocks on floppy discs
2533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2536 # OS/2's system install, which has a completely different semantic
2537 # ./install, which can be erroneously created by make from ./install.sh.
2538 # Reject install programs that cannot install multiple files.
2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2540 printf %s "checking for a BSD-compatible install... " >&6; }
2541 if test -z "$INSTALL"; then
2542 if test ${ac_cv_path_install+y}
2543 then :
2544 printf %s "(cached) " >&6
2545 else case e in #(
2546 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2547 for as_dir in $PATH
2548 do
2549 IFS=$as_save_IFS
2550 case $as_dir in #(((
2551 '') as_dir=./ ;;
2552 */) ;;
2553 *) as_dir=$as_dir/ ;;
2554 esac
2555 # Account for fact that we put trailing slashes in our PATH walk.
2556 case $as_dir in #((
2557 ./ | /[cC]/* | \
2558 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2559 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2560 /usr/ucb/* ) ;;
2561 *)
2562 # OSF1 and SCO ODT 3.0 have their own names for install.
2563 # Don't use installbsd from OSF since it installs stuff as root
2564 # by default.
2565 for ac_prog in ginstall scoinst install; do
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2568 if test $ac_prog = install &&
2569 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2570 # AIX install. It has an incompatible calling convention.
2571 :
2572 elif test $ac_prog = install &&
2573 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2574 # program-specific install script used by HP pwplus--don't use.
2575 :
2576 else
2577 rm -rf conftest.one conftest.two conftest.dir
2578 echo one > conftest.one
2579 echo two > conftest.two
2580 mkdir conftest.dir
2581 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2582 test -s conftest.one && test -s conftest.two &&
2583 test -s conftest.dir/conftest.one &&
2584 test -s conftest.dir/conftest.two
2585 then
2586 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2587 break 3
2588 fi
2589 fi
2590 fi
2591 done
2592 done
2593 ;;
2594 esac
2595
2596 done
2597 IFS=$as_save_IFS
2598
2599 rm -rf conftest.one conftest.two conftest.dir
2600 ;;
2601 esac
2602 fi
2603 if test ${ac_cv_path_install+y}; then
2604 INSTALL=$ac_cv_path_install
2605 else
2606 # As a last resort, use the slow shell script. Don't cache a
2607 # value for INSTALL within a source directory, because that will
2608 # break other packages using the cache if that directory is
2609 # removed, or if the value is a relative name.
2610 INSTALL=$ac_install_sh
2611 fi
2612 fi
2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2614 printf "%s\n" "$INSTALL" >&6; }
2615
2616 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2617 # It thinks the first close brace ends the variable substitution.
2618 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2619
2620 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2621
2622 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2623
2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2625 printf %s "checking whether build environment is sane... " >&6; }
2626 # Reject unsafe characters in $srcdir or the absolute working directory
2627 # name. Accept space and tab only in the latter.
2628 am_lf='
2629 '
2630 case `pwd` in
2631 *[\\\"\#\$\&\'\`$am_lf]*)
2632 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2633 esac
2634 case $srcdir in
2635 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2636 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2637 esac
2638
2639 # Do 'set' in a subshell so we don't clobber the current shell's
2640 # arguments. Must try -L first in case configure is actually a
2641 # symlink; some systems play weird games with the mod time of symlinks
2642 # (eg FreeBSD returns the mod time of the symlink's containing
2643 # directory).
2644 if (
2645 am_has_slept=no
2646 for am_try in 1 2; do
2647 echo "timestamp, slept: $am_has_slept" > conftest.file
2648 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2649 if test "$*" = "X"; then
2650 # -L didn't work.
2651 set X `ls -t "$srcdir/configure" conftest.file`
2652 fi
2653 if test "$*" != "X $srcdir/configure conftest.file" \
2654 && test "$*" != "X conftest.file $srcdir/configure"; then
2655
2656 # If neither matched, then we have a broken ls. This can happen
2657 # if, for instance, CONFIG_SHELL is bash and it inherits a
2658 # broken ls alias from the environment. This has actually
2659 # happened. Such a system could not be considered "sane".
2660 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2661 alias in your environment" "$LINENO" 5
2662 fi
2663 if test "$2" = conftest.file || test $am_try -eq 2; then
2664 break
2665 fi
2666 # Just in case.
2667 sleep 1
2668 am_has_slept=yes
2669 done
2670 test "$2" = conftest.file
2671 )
2672 then
2673 # Ok.
2674 :
2675 else
2676 as_fn_error $? "newly created file is older than distributed files!
2677 Check your system clock" "$LINENO" 5
2678 fi
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2680 printf "%s\n" "yes" >&6; }
2681 # If we didn't sleep, we still need to ensure time stamps of config.status and
2682 # generated files are strictly newer.
2683 am_sleep_pid=
2684 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2685 ( sleep 1 ) &
2686 am_sleep_pid=$!
2687 fi
2688
2689 rm -f conftest.file
2690
2691 test "$program_prefix" != NONE &&
2692 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2693 # Use a double $ so make ignores it.
2694 test "$program_suffix" != NONE &&
2695 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2696 # Double any \ or $.
2697 # By default was 's,x,x', remove it if useless.
2698 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2699 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2700
2701
2702 # Expand $ac_aux_dir to an absolute path.
2703 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2704
2705
2706 if test x"${MISSING+set}" != xset; then
2707 MISSING="\${SHELL} '$am_aux_dir/missing'"
2708 fi
2709 # Use eval to expand $SHELL
2710 if eval "$MISSING --is-lightweight"; then
2711 am_missing_run="$MISSING "
2712 else
2713 am_missing_run=
2714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2715 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2716 fi
2717
2718 if test x"${install_sh+set}" != xset; then
2719 case $am_aux_dir in
2720 *\ * | *\ *)
2721 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2722 *)
2723 install_sh="\${SHELL} $am_aux_dir/install-sh"
2724 esac
2725 fi
2726
2727 # Installed binaries are usually stripped using 'strip' when the user
2728 # run "make install-strip". However 'strip' might not be the right
2729 # tool to use in cross-compilation environments, therefore Automake
2730 # will honor the 'STRIP' environment variable to overrule this program.
2731 if test "$cross_compiling" != no; then
2732 if test -n "$ac_tool_prefix"; then
2733 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2734 set dummy ${ac_tool_prefix}strip; ac_word=$2
2735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2736 printf %s "checking for $ac_word... " >&6; }
2737 if test ${ac_cv_prog_STRIP+y}
2738 then :
2739 printf %s "(cached) " >&6
2740 else case e in #(
2741 e) if test -n "$STRIP"; then
2742 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2743 else
2744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 for as_dir in $PATH
2746 do
2747 IFS=$as_save_IFS
2748 case $as_dir in #(((
2749 '') as_dir=./ ;;
2750 */) ;;
2751 *) as_dir=$as_dir/ ;;
2752 esac
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2762
2763 fi ;;
2764 esac
2765 fi
2766 STRIP=$ac_cv_prog_STRIP
2767 if test -n "$STRIP"; then
2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2769 printf "%s\n" "$STRIP" >&6; }
2770 else
2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 printf "%s\n" "no" >&6; }
2773 fi
2774
2775
2776 fi
2777 if test -z "$ac_cv_prog_STRIP"; then
2778 ac_ct_STRIP=$STRIP
2779 # Extract the first word of "strip", so it can be a program name with args.
2780 set dummy strip; ac_word=$2
2781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 printf %s "checking for $ac_word... " >&6; }
2783 if test ${ac_cv_prog_ac_ct_STRIP+y}
2784 then :
2785 printf %s "(cached) " >&6
2786 else case e in #(
2787 e) if test -n "$ac_ct_STRIP"; then
2788 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793 IFS=$as_save_IFS
2794 case $as_dir in #(((
2795 '') as_dir=./ ;;
2796 */) ;;
2797 *) as_dir=$as_dir/ ;;
2798 esac
2799 for ac_exec_ext in '' $ac_executable_extensions; do
2800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2801 ac_cv_prog_ac_ct_STRIP="strip"
2802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805 done
2806 done
2807 IFS=$as_save_IFS
2808
2809 fi ;;
2810 esac
2811 fi
2812 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2813 if test -n "$ac_ct_STRIP"; then
2814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2815 printf "%s\n" "$ac_ct_STRIP" >&6; }
2816 else
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 printf "%s\n" "no" >&6; }
2819 fi
2820
2821 if test "x$ac_ct_STRIP" = x; then
2822 STRIP=":"
2823 else
2824 case $cross_compiling:$ac_tool_warned in
2825 yes:)
2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2827 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2828 ac_tool_warned=yes ;;
2829 esac
2830 STRIP=$ac_ct_STRIP
2831 fi
2832 else
2833 STRIP="$ac_cv_prog_STRIP"
2834 fi
2835
2836 fi
2837 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2838
2839
2840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2841 printf %s "checking for a race-free mkdir -p... " >&6; }
2842 if test -z "$MKDIR_P"; then
2843 if test ${ac_cv_path_mkdir+y}
2844 then :
2845 printf %s "(cached) " >&6
2846 else case e in #(
2847 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2849 do
2850 IFS=$as_save_IFS
2851 case $as_dir in #(((
2852 '') as_dir=./ ;;
2853 */) ;;
2854 *) as_dir=$as_dir/ ;;
2855 esac
2856 for ac_prog in mkdir gmkdir; do
2857 for ac_exec_ext in '' $ac_executable_extensions; do
2858 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2859 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2860 'mkdir ('*'coreutils) '* | \
2861 *'BusyBox '* | \
2862 'mkdir (fileutils) '4.1*)
2863 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2864 break 3;;
2865 esac
2866 done
2867 done
2868 done
2869 IFS=$as_save_IFS
2870 ;;
2871 esac
2872 fi
2873
2874 test -d ./--version && rmdir ./--version
2875 if test ${ac_cv_path_mkdir+y}; then
2876 MKDIR_P="$ac_cv_path_mkdir -p"
2877 else
2878 # As a last resort, use plain mkdir -p,
2879 # in the hope it doesn't have the bugs of ancient mkdir.
2880 MKDIR_P='mkdir -p'
2881 fi
2882 fi
2883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2884 printf "%s\n" "$MKDIR_P" >&6; }
2885
2886 for ac_prog in gawk mawk nawk awk
2887 do
2888 # Extract the first word of "$ac_prog", so it can be a program name with args.
2889 set dummy $ac_prog; ac_word=$2
2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891 printf %s "checking for $ac_word... " >&6; }
2892 if test ${ac_cv_prog_AWK+y}
2893 then :
2894 printf %s "(cached) " >&6
2895 else case e in #(
2896 e) if test -n "$AWK"; then
2897 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2898 else
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH
2901 do
2902 IFS=$as_save_IFS
2903 case $as_dir in #(((
2904 '') as_dir=./ ;;
2905 */) ;;
2906 *) as_dir=$as_dir/ ;;
2907 esac
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2910 ac_cv_prog_AWK="$ac_prog"
2911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2912 break 2
2913 fi
2914 done
2915 done
2916 IFS=$as_save_IFS
2917
2918 fi ;;
2919 esac
2920 fi
2921 AWK=$ac_cv_prog_AWK
2922 if test -n "$AWK"; then
2923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2924 printf "%s\n" "$AWK" >&6; }
2925 else
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 printf "%s\n" "no" >&6; }
2928 fi
2929
2930
2931 test -n "$AWK" && break
2932 done
2933
2934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2935 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2936 set x ${MAKE-make}
2937 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2938 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2939 then :
2940 printf %s "(cached) " >&6
2941 else case e in #(
2942 e) cat >conftest.make <<\_ACEOF
2943 SHELL = /bin/sh
2944 all:
2945 @echo '@@@%%%=$(MAKE)=@@@%%%'
2946 _ACEOF
2947 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2948 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2949 *@@@%%%=?*=@@@%%%*)
2950 eval ac_cv_prog_make_${ac_make}_set=yes;;
2951 *)
2952 eval ac_cv_prog_make_${ac_make}_set=no;;
2953 esac
2954 rm -f conftest.make ;;
2955 esac
2956 fi
2957 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2959 printf "%s\n" "yes" >&6; }
2960 SET_MAKE=
2961 else
2962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 printf "%s\n" "no" >&6; }
2964 SET_MAKE="MAKE=${MAKE-make}"
2965 fi
2966
2967 rm -rf .tst 2>/dev/null
2968 mkdir .tst 2>/dev/null
2969 if test -d .tst; then
2970 am__leading_dot=.
2971 else
2972 am__leading_dot=_
2973 fi
2974 rmdir .tst 2>/dev/null
2975
2976 # Check whether --enable-silent-rules was given.
2977 if test ${enable_silent_rules+y}
2978 then :
2979 enableval=$enable_silent_rules;
2980 fi
2981
2982 case $enable_silent_rules in # (((
2983 yes) AM_DEFAULT_VERBOSITY=0;;
2984 no) AM_DEFAULT_VERBOSITY=1;;
2985 *) AM_DEFAULT_VERBOSITY=1;;
2986 esac
2987 am_make=${MAKE-make}
2988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2989 printf %s "checking whether $am_make supports nested variables... " >&6; }
2990 if test ${am_cv_make_support_nested_variables+y}
2991 then :
2992 printf %s "(cached) " >&6
2993 else case e in #(
2994 e) if printf "%s\n" 'TRUE=$(BAR$(V))
2995 BAR0=false
2996 BAR1=true
2997 V=1
2998 am__doit:
2999 @$(TRUE)
3000 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3001 am_cv_make_support_nested_variables=yes
3002 else
3003 am_cv_make_support_nested_variables=no
3004 fi ;;
3005 esac
3006 fi
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3008 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3009 if test $am_cv_make_support_nested_variables = yes; then
3010 AM_V='$(V)'
3011 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3012 else
3013 AM_V=$AM_DEFAULT_VERBOSITY
3014 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3015 fi
3016 AM_BACKSLASH='\'
3017
3018 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3019 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3020 # is not polluted with repeated "-I."
3021 am__isrc=' -I$(srcdir)'
3022 # test to see if srcdir already configured
3023 if test -f $srcdir/config.status; then
3024 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3025 fi
3026 fi
3027
3028 # test whether we have cygpath
3029 if test -z "$CYGPATH_W"; then
3030 if (cygpath --version) >/dev/null 2>/dev/null; then
3031 CYGPATH_W='cygpath -w'
3032 else
3033 CYGPATH_W=echo
3034 fi
3035 fi
3036
3037
3038 # Define the identity of the package.
3039 PACKAGE='xprop'
3040 VERSION='1.2.7'
3041
3042
3043 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3044
3045
3046 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3047
3048 # Some tools Automake needs.
3049
3050 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3051
3052
3053 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3054
3055
3056 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3057
3058
3059 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3060
3061
3062 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3063
3064 # For better backward compatibility. To be removed once Automake 1.9.x
3065 # dies out for good. For more background, see:
3066 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3067 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3068 mkdir_p='$(MKDIR_P)'
3069
3070 # We need awk for the "check" target (and possibly the TAP driver). The
3071 # system "awk" is bad on some platforms.
3072 # Always define AMTAR for backward compatibility. Yes, it's still used
3073 # in the wild :-( We should find a proper way to deprecate it ...
3074 AMTAR='$${TAR-tar}'
3075
3076
3077 # We'll loop over all known methods to create a tar archive until one works.
3078 _am_tools='gnutar pax cpio none'
3079
3080 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3081
3082
3083
3084
3085
3086 # Variables for tags utilities; see am/tags.am
3087 if test -z "$CTAGS"; then
3088 CTAGS=ctags
3089 fi
3090
3091 if test -z "$ETAGS"; then
3092 ETAGS=etags
3093 fi
3094
3095 if test -z "$CSCOPE"; then
3096 CSCOPE=cscope
3097 fi
3098
3099
3100
3101 # POSIX will say in a future version that running "rm -f" with no argument
3102 # is OK; and we want to be able to make that assumption in our Makefile
3103 # recipes. So use an aggressive probe to check that the usage we want is
3104 # actually supported "in the wild" to an acceptable degree.
3105 # See automake bug#10828.
3106 # To make any issue more visible, cause the running configure to be aborted
3107 # by default if the 'rm' program in use doesn't match our expectations; the
3108 # user can still override this though.
3109 if rm -f && rm -fr && rm -rf; then : OK; else
3110 cat >&2 <<'END'
3111 Oops!
3112
3113 Your 'rm' program seems unable to run without file operands specified
3114 on the command line, even when the '-f' option is present. This is contrary
3115 to the behaviour of most rm programs out there, and not conforming with
3116 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3117
3118 Please tell [email protected] about your system, including the value
3119 of your $PATH and any error possibly output before this message. This
3120 can help us improve future automake versions.
3121
3122 END
3123 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3124 echo 'Configuration will proceed anyway, since you have set the' >&2
3125 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3126 echo >&2
3127 else
3128 cat >&2 <<'END'
3129 Aborting the configuration process, to ensure you take notice of the issue.
3130
3131 You can download and install GNU coreutils to get an 'rm' implementation
3132 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3133
3134 If you want to complete the configuration process using your problematic
3135 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3136 to "yes", and re-run configure.
3137
3138 END
3139 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3140 fi
3141 fi
3142
3143
3144 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165 DEPDIR="${am__leading_dot}deps"
3166
3167 ac_config_commands="$ac_config_commands depfiles"
3168
3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3170 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3171 cat > confinc.mk << 'END'
3172 am__doit:
3173 @echo this is the am__doit target >confinc.out
3174 .PHONY: am__doit
3175 END
3176 am__include="#"
3177 am__quote=
3178 # BSD make does it like this.
3179 echo '.include "confinc.mk" # ignored' > confmf.BSD
3180 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3181 echo 'include confinc.mk # ignored' > confmf.GNU
3182 _am_result=no
3183 for s in GNU BSD; do
3184 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3185 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3186 ac_status=$?
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); }
3189 case $?:`cat confinc.out 2>/dev/null` in #(
3190 '0:this is the am__doit target') :
3191 case $s in #(
3192 BSD) :
3193 am__include='.include' am__quote='"' ;; #(
3194 *) :
3195 am__include='include' am__quote='' ;;
3196 esac ;; #(
3197 *) :
3198 ;;
3199 esac
3200 if test "$am__include" != "#"; then
3201 _am_result="yes ($s style)"
3202 break
3203 fi
3204 done
3205 rm -f confinc.* confmf.*
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3207 printf "%s\n" "${_am_result}" >&6; }
3208
3209 # Check whether --enable-dependency-tracking was given.
3210 if test ${enable_dependency_tracking+y}
3211 then :
3212 enableval=$enable_dependency_tracking;
3213 fi
3214
3215 if test "x$enable_dependency_tracking" != xno; then
3216 am_depcomp="$ac_aux_dir/depcomp"
3217 AMDEPBACKSLASH='\'
3218 am__nodep='_no'
3219 fi
3220 if test "x$enable_dependency_tracking" != xno; then
3221 AMDEP_TRUE=
3222 AMDEP_FALSE='#'
3223 else
3224 AMDEP_TRUE='#'
3225 AMDEP_FALSE=
3226 fi
3227
3228
3229 ac_ext=c
3230 ac_cpp='$CPP $CPPFLAGS'
3231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234 if test -n "$ac_tool_prefix"; then
3235 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3236 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 printf %s "checking for $ac_word... " >&6; }
3239 if test ${ac_cv_prog_CC+y}
3240 then :
3241 printf %s "(cached) " >&6
3242 else case e in #(
3243 e) if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 case $as_dir in #(((
3251 '') as_dir=./ ;;
3252 */) ;;
3253 *) as_dir=$as_dir/ ;;
3254 esac
3255 for ac_exec_ext in '' $ac_executable_extensions; do
3256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3257 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3259 break 2
3260 fi
3261 done
3262 done
3263 IFS=$as_save_IFS
3264
3265 fi ;;
3266 esac
3267 fi
3268 CC=$ac_cv_prog_CC
3269 if test -n "$CC"; then
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3271 printf "%s\n" "$CC" >&6; }
3272 else
3273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274 printf "%s\n" "no" >&6; }
3275 fi
3276
3277
3278 fi
3279 if test -z "$ac_cv_prog_CC"; then
3280 ac_ct_CC=$CC
3281 # Extract the first word of "gcc", so it can be a program name with args.
3282 set dummy gcc; ac_word=$2
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 printf %s "checking for $ac_word... " >&6; }
3285 if test ${ac_cv_prog_ac_ct_CC+y}
3286 then :
3287 printf %s "(cached) " >&6
3288 else case e in #(
3289 e) if test -n "$ac_ct_CC"; then
3290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3291 else
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3293 for as_dir in $PATH
3294 do
3295 IFS=$as_save_IFS
3296 case $as_dir in #(((
3297 '') as_dir=./ ;;
3298 */) ;;
3299 *) as_dir=$as_dir/ ;;
3300 esac
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3303 ac_cv_prog_ac_ct_CC="gcc"
3304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3305 break 2
3306 fi
3307 done
3308 done
3309 IFS=$as_save_IFS
3310
3311 fi ;;
3312 esac
3313 fi
3314 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3315 if test -n "$ac_ct_CC"; then
3316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3317 printf "%s\n" "$ac_ct_CC" >&6; }
3318 else
3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 printf "%s\n" "no" >&6; }
3321 fi
3322
3323 if test "x$ac_ct_CC" = x; then
3324 CC=""
3325 else
3326 case $cross_compiling:$ac_tool_warned in
3327 yes:)
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3329 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3330 ac_tool_warned=yes ;;
3331 esac
3332 CC=$ac_ct_CC
3333 fi
3334 else
3335 CC="$ac_cv_prog_CC"
3336 fi
3337
3338 if test -z "$CC"; then
3339 if test -n "$ac_tool_prefix"; then
3340 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3341 set dummy ${ac_tool_prefix}cc; ac_word=$2
3342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343 printf %s "checking for $ac_word... " >&6; }
3344 if test ${ac_cv_prog_CC+y}
3345 then :
3346 printf %s "(cached) " >&6
3347 else case e in #(
3348 e) if test -n "$CC"; then
3349 ac_cv_prog_CC="$CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354 IFS=$as_save_IFS
3355 case $as_dir in #(((
3356 '') as_dir=./ ;;
3357 */) ;;
3358 *) as_dir=$as_dir/ ;;
3359 esac
3360 for ac_exec_ext in '' $ac_executable_extensions; do
3361 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3362 ac_cv_prog_CC="${ac_tool_prefix}cc"
3363 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3364 break 2
3365 fi
3366 done
3367 done
3368 IFS=$as_save_IFS
3369
3370 fi ;;
3371 esac
3372 fi
3373 CC=$ac_cv_prog_CC
3374 if test -n "$CC"; then
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3376 printf "%s\n" "$CC" >&6; }
3377 else
3378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 printf "%s\n" "no" >&6; }
3380 fi
3381
3382
3383 fi
3384 fi
3385 if test -z "$CC"; then
3386 # Extract the first word of "cc", so it can be a program name with args.
3387 set dummy cc; ac_word=$2
3388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3389 printf %s "checking for $ac_word... " >&6; }
3390 if test ${ac_cv_prog_CC+y}
3391 then :
3392 printf %s "(cached) " >&6
3393 else case e in #(
3394 e) if test -n "$CC"; then
3395 ac_cv_prog_CC="$CC" # Let the user override the test.
3396 else
3397 ac_prog_rejected=no
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401 IFS=$as_save_IFS
3402 case $as_dir in #(((
3403 '') as_dir=./ ;;
3404 */) ;;
3405 *) as_dir=$as_dir/ ;;
3406 esac
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3409 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3410 ac_prog_rejected=yes
3411 continue
3412 fi
3413 ac_cv_prog_CC="cc"
3414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3415 break 2
3416 fi
3417 done
3418 done
3419 IFS=$as_save_IFS
3420
3421 if test $ac_prog_rejected = yes; then
3422 # We found a bogon in the path, so make sure we never use it.
3423 set dummy $ac_cv_prog_CC
3424 shift
3425 if test $# != 0; then
3426 # We chose a different compiler from the bogus one.
3427 # However, it has the same basename, so the bogon will be chosen
3428 # first if we set CC to just the basename; use the full file name.
3429 shift
3430 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3431 fi
3432 fi
3433 fi ;;
3434 esac
3435 fi
3436 CC=$ac_cv_prog_CC
3437 if test -n "$CC"; then
3438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3439 printf "%s\n" "$CC" >&6; }
3440 else
3441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 printf "%s\n" "no" >&6; }
3443 fi
3444
3445
3446 fi
3447 if test -z "$CC"; then
3448 if test -n "$ac_tool_prefix"; then
3449 for ac_prog in cl.exe
3450 do
3451 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 printf %s "checking for $ac_word... " >&6; }
3455 if test ${ac_cv_prog_CC+y}
3456 then :
3457 printf %s "(cached) " >&6
3458 else case e in #(
3459 e) if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465 IFS=$as_save_IFS
3466 case $as_dir in #(((
3467 '') as_dir=./ ;;
3468 */) ;;
3469 *) as_dir=$as_dir/ ;;
3470 esac
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3475 break 2
3476 fi
3477 done
3478 done
3479 IFS=$as_save_IFS
3480
3481 fi ;;
3482 esac
3483 fi
3484 CC=$ac_cv_prog_CC
3485 if test -n "$CC"; then
3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3487 printf "%s\n" "$CC" >&6; }
3488 else
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 printf "%s\n" "no" >&6; }
3491 fi
3492
3493
3494 test -n "$CC" && break
3495 done
3496 fi
3497 if test -z "$CC"; then
3498 ac_ct_CC=$CC
3499 for ac_prog in cl.exe
3500 do
3501 # Extract the first word of "$ac_prog", so it can be a program name with args.
3502 set dummy $ac_prog; ac_word=$2
3503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 printf %s "checking for $ac_word... " >&6; }
3505 if test ${ac_cv_prog_ac_ct_CC+y}
3506 then :
3507 printf %s "(cached) " >&6
3508 else case e in #(
3509 e) if test -n "$ac_ct_CC"; then
3510 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3511 else
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515 IFS=$as_save_IFS
3516 case $as_dir in #(((
3517 '') as_dir=./ ;;
3518 */) ;;
3519 *) as_dir=$as_dir/ ;;
3520 esac
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3523 ac_cv_prog_ac_ct_CC="$ac_prog"
3524 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3525 break 2
3526 fi
3527 done
3528 done
3529 IFS=$as_save_IFS
3530
3531 fi ;;
3532 esac
3533 fi
3534 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3535 if test -n "$ac_ct_CC"; then
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3537 printf "%s\n" "$ac_ct_CC" >&6; }
3538 else
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 printf "%s\n" "no" >&6; }
3541 fi
3542
3543
3544 test -n "$ac_ct_CC" && break
3545 done
3546
3547 if test "x$ac_ct_CC" = x; then
3548 CC=""
3549 else
3550 case $cross_compiling:$ac_tool_warned in
3551 yes:)
3552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3553 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3554 ac_tool_warned=yes ;;
3555 esac
3556 CC=$ac_ct_CC
3557 fi
3558 fi
3559
3560 fi
3561 if test -z "$CC"; then
3562 if test -n "$ac_tool_prefix"; then
3563 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3564 set dummy ${ac_tool_prefix}clang; ac_word=$2
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 printf %s "checking for $ac_word... " >&6; }
3567 if test ${ac_cv_prog_CC+y}
3568 then :
3569 printf %s "(cached) " >&6
3570 else case e in #(
3571 e) if test -n "$CC"; then
3572 ac_cv_prog_CC="$CC" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3576 do
3577 IFS=$as_save_IFS
3578 case $as_dir in #(((
3579 '') as_dir=./ ;;
3580 */) ;;
3581 *) as_dir=$as_dir/ ;;
3582 esac
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_CC="${ac_tool_prefix}clang"
3586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3587 break 2
3588 fi
3589 done
3590 done
3591 IFS=$as_save_IFS
3592
3593 fi ;;
3594 esac
3595 fi
3596 CC=$ac_cv_prog_CC
3597 if test -n "$CC"; then
3598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3599 printf "%s\n" "$CC" >&6; }
3600 else
3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 printf "%s\n" "no" >&6; }
3603 fi
3604
3605
3606 fi
3607 if test -z "$ac_cv_prog_CC"; then
3608 ac_ct_CC=$CC
3609 # Extract the first word of "clang", so it can be a program name with args.
3610 set dummy clang; ac_word=$2
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3612 printf %s "checking for $ac_word... " >&6; }
3613 if test ${ac_cv_prog_ac_ct_CC+y}
3614 then :
3615 printf %s "(cached) " >&6
3616 else case e in #(
3617 e) if test -n "$ac_ct_CC"; then
3618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3622 do
3623 IFS=$as_save_IFS
3624 case $as_dir in #(((
3625 '') as_dir=./ ;;
3626 */) ;;
3627 *) as_dir=$as_dir/ ;;
3628 esac
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_ac_ct_CC="clang"
3632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3633 break 2
3634 fi
3635 done
3636 done
3637 IFS=$as_save_IFS
3638
3639 fi ;;
3640 esac
3641 fi
3642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3643 if test -n "$ac_ct_CC"; then
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3645 printf "%s\n" "$ac_ct_CC" >&6; }
3646 else
3647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 printf "%s\n" "no" >&6; }
3649 fi
3650
3651 if test "x$ac_ct_CC" = x; then
3652 CC=""
3653 else
3654 case $cross_compiling:$ac_tool_warned in
3655 yes:)
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned=yes ;;
3659 esac
3660 CC=$ac_ct_CC
3661 fi
3662 else
3663 CC="$ac_cv_prog_CC"
3664 fi
3665
3666 fi
3667
3668
3669 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3670 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3671 as_fn_error $? "no acceptable C compiler found in \$PATH
3672 See 'config.log' for more details" "$LINENO" 5; }
3673
3674 # Provide some information about the compiler.
3675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3676 set X $ac_compile
3677 ac_compiler=$2
3678 for ac_option in --version -v -V -qversion -version; do
3679 { { ac_try="$ac_compiler $ac_option >&5"
3680 case "(($ac_try" in
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3683 esac
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 printf "%s\n" "$ac_try_echo"; } >&5
3686 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3687 ac_status=$?
3688 if test -s conftest.err; then
3689 sed '10a\
3690 ... rest of stderr output deleted ...
3691 10q' conftest.err >conftest.er1
3692 cat conftest.er1 >&5
3693 fi
3694 rm -f conftest.er1 conftest.err
3695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696 test $ac_status = 0; }
3697 done
3698
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701
3702 int
3703 main (void)
3704 {
3705
3706 ;
3707 return 0;
3708 }
3709 _ACEOF
3710 ac_clean_files_save=$ac_clean_files
3711 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3712 # Try to create an executable without -o first, disregard a.out.
3713 # It will help us diagnose broken compilers, and finding out an intuition
3714 # of exeext.
3715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3716 printf %s "checking whether the C compiler works... " >&6; }
3717 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3718
3719 # The possible output files:
3720 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3721
3722 ac_rmfiles=
3723 for ac_file in $ac_files
3724 do
3725 case $ac_file in
3726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3727 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3728 esac
3729 done
3730 rm -f $ac_rmfiles
3731
3732 if { { ac_try="$ac_link_default"
3733 case "(($ac_try" in
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3736 esac
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 printf "%s\n" "$ac_try_echo"; } >&5
3739 (eval "$ac_link_default") 2>&5
3740 ac_status=$?
3741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742 test $ac_status = 0; }
3743 then :
3744 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3745 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3746 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3747 # so that the user can short-circuit this test for compilers unknown to
3748 # Autoconf.
3749 for ac_file in $ac_files ''
3750 do
3751 test -f "$ac_file" || continue
3752 case $ac_file in
3753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3754 ;;
3755 [ab].out )
3756 # We found the default executable, but exeext='' is most
3757 # certainly right.
3758 break;;
3759 *.* )
3760 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3761 then :; else
3762 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3763 fi
3764 # We set ac_cv_exeext here because the later test for it is not
3765 # safe: cross compilers may not add the suffix if given an '-o'
3766 # argument, so we may need to know it at that point already.
3767 # Even if this section looks crufty: it has the advantage of
3768 # actually working.
3769 break;;
3770 * )
3771 break;;
3772 esac
3773 done
3774 test "$ac_cv_exeext" = no && ac_cv_exeext=
3775
3776 else case e in #(
3777 e) ac_file='' ;;
3778 esac
3779 fi
3780 if test -z "$ac_file"
3781 then :
3782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3783 printf "%s\n" "no" >&6; }
3784 printf "%s\n" "$as_me: failed program was:" >&5
3785 sed 's/^/| /' conftest.$ac_ext >&5
3786
3787 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3788 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3789 as_fn_error 77 "C compiler cannot create executables
3790 See 'config.log' for more details" "$LINENO" 5; }
3791 else case e in #(
3792 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3793 printf "%s\n" "yes" >&6; } ;;
3794 esac
3795 fi
3796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3797 printf %s "checking for C compiler default output file name... " >&6; }
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3799 printf "%s\n" "$ac_file" >&6; }
3800 ac_exeext=$ac_cv_exeext
3801
3802 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3803 ac_clean_files=$ac_clean_files_save
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3805 printf %s "checking for suffix of executables... " >&6; }
3806 if { { ac_try="$ac_link"
3807 case "(($ac_try" in
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3810 esac
3811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3812 printf "%s\n" "$ac_try_echo"; } >&5
3813 (eval "$ac_link") 2>&5
3814 ac_status=$?
3815 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3816 test $ac_status = 0; }
3817 then :
3818 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3819 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3820 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3821 # 'rm'.
3822 for ac_file in conftest.exe conftest conftest.*; do
3823 test -f "$ac_file" || continue
3824 case $ac_file in
3825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3826 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3827 break;;
3828 * ) break;;
3829 esac
3830 done
3831 else case e in #(
3832 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3833 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3834 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3835 See 'config.log' for more details" "$LINENO" 5; } ;;
3836 esac
3837 fi
3838 rm -f conftest conftest$ac_cv_exeext
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3840 printf "%s\n" "$ac_cv_exeext" >&6; }
3841
3842 rm -f conftest.$ac_ext
3843 EXEEXT=$ac_cv_exeext
3844 ac_exeext=$EXEEXT
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3847 #include <stdio.h>
3848 int
3849 main (void)
3850 {
3851 FILE *f = fopen ("conftest.out", "w");
3852 if (!f)
3853 return 1;
3854 return ferror (f) || fclose (f) != 0;
3855
3856 ;
3857 return 0;
3858 }
3859 _ACEOF
3860 ac_clean_files="$ac_clean_files conftest.out"
3861 # Check that the compiler produces executables we can run. If not, either
3862 # the compiler is broken, or we cross compile.
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3864 printf %s "checking whether we are cross compiling... " >&6; }
3865 if test "$cross_compiling" != yes; then
3866 { { ac_try="$ac_link"
3867 case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870 esac
3871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3872 printf "%s\n" "$ac_try_echo"; } >&5
3873 (eval "$ac_link") 2>&5
3874 ac_status=$?
3875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }
3877 if { ac_try='./conftest$ac_cv_exeext'
3878 { { case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 printf "%s\n" "$ac_try_echo"; } >&5
3884 (eval "$ac_try") 2>&5
3885 ac_status=$?
3886 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }; }; then
3888 cross_compiling=no
3889 else
3890 if test "$cross_compiling" = maybe; then
3891 cross_compiling=yes
3892 else
3893 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3894 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3895 as_fn_error 77 "cannot run C compiled programs.
3896 If you meant to cross compile, use '--host'.
3897 See 'config.log' for more details" "$LINENO" 5; }
3898 fi
3899 fi
3900 fi
3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3902 printf "%s\n" "$cross_compiling" >&6; }
3903
3904 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3905 conftest.o conftest.obj conftest.out
3906 ac_clean_files=$ac_clean_files_save
3907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3908 printf %s "checking for suffix of object files... " >&6; }
3909 if test ${ac_cv_objext+y}
3910 then :
3911 printf %s "(cached) " >&6
3912 else case e in #(
3913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915
3916 int
3917 main (void)
3918 {
3919
3920 ;
3921 return 0;
3922 }
3923 _ACEOF
3924 rm -f conftest.o conftest.obj
3925 if { { ac_try="$ac_compile"
3926 case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929 esac
3930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 printf "%s\n" "$ac_try_echo"; } >&5
3932 (eval "$ac_compile") 2>&5
3933 ac_status=$?
3934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }
3936 then :
3937 for ac_file in conftest.o conftest.obj conftest.*; do
3938 test -f "$ac_file" || continue;
3939 case $ac_file in
3940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3941 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3942 break;;
3943 esac
3944 done
3945 else case e in #(
3946 e) printf "%s\n" "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3948
3949 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3950 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3951 as_fn_error $? "cannot compute suffix of object files: cannot compile
3952 See 'config.log' for more details" "$LINENO" 5; } ;;
3953 esac
3954 fi
3955 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3956 esac
3957 fi
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3959 printf "%s\n" "$ac_cv_objext" >&6; }
3960 OBJEXT=$ac_cv_objext
3961 ac_objext=$OBJEXT
3962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3963 printf %s "checking whether the compiler supports GNU C... " >&6; }
3964 if test ${ac_cv_c_compiler_gnu+y}
3965 then :
3966 printf %s "(cached) " >&6
3967 else case e in #(
3968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969 /* end confdefs.h. */
3970
3971 int
3972 main (void)
3973 {
3974 #ifndef __GNUC__
3975 choke me
3976 #endif
3977
3978 ;
3979 return 0;
3980 }
3981 _ACEOF
3982 if ac_fn_c_try_compile "$LINENO"
3983 then :
3984 ac_compiler_gnu=yes
3985 else case e in #(
3986 e) ac_compiler_gnu=no ;;
3987 esac
3988 fi
3989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3990 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3991 ;;
3992 esac
3993 fi
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3995 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997
3998 if test $ac_compiler_gnu = yes; then
3999 GCC=yes
4000 else
4001 GCC=
4002 fi
4003 ac_test_CFLAGS=${CFLAGS+y}
4004 ac_save_CFLAGS=$CFLAGS
4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4006 printf %s "checking whether $CC accepts -g... " >&6; }
4007 if test ${ac_cv_prog_cc_g+y}
4008 then :
4009 printf %s "(cached) " >&6
4010 else case e in #(
4011 e) ac_save_c_werror_flag=$ac_c_werror_flag
4012 ac_c_werror_flag=yes
4013 ac_cv_prog_cc_g=no
4014 CFLAGS="-g"
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4017
4018 int
4019 main (void)
4020 {
4021
4022 ;
4023 return 0;
4024 }
4025 _ACEOF
4026 if ac_fn_c_try_compile "$LINENO"
4027 then :
4028 ac_cv_prog_cc_g=yes
4029 else case e in #(
4030 e) CFLAGS=""
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4033
4034 int
4035 main (void)
4036 {
4037
4038 ;
4039 return 0;
4040 }
4041 _ACEOF
4042 if ac_fn_c_try_compile "$LINENO"
4043 then :
4044
4045 else case e in #(
4046 e) ac_c_werror_flag=$ac_save_c_werror_flag
4047 CFLAGS="-g"
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4050
4051 int
4052 main (void)
4053 {
4054
4055 ;
4056 return 0;
4057 }
4058 _ACEOF
4059 if ac_fn_c_try_compile "$LINENO"
4060 then :
4061 ac_cv_prog_cc_g=yes
4062 fi
4063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4064 esac
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4067 esac
4068 fi
4069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4070 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4071 esac
4072 fi
4073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4074 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4075 if test $ac_test_CFLAGS; then
4076 CFLAGS=$ac_save_CFLAGS
4077 elif test $ac_cv_prog_cc_g = yes; then
4078 if test "$GCC" = yes; then
4079 CFLAGS="-g -O2"
4080 else
4081 CFLAGS="-g"
4082 fi
4083 else
4084 if test "$GCC" = yes; then
4085 CFLAGS="-O2"
4086 else
4087 CFLAGS=
4088 fi
4089 fi
4090 ac_prog_cc_stdc=no
4091 if test x$ac_prog_cc_stdc = xno
4092 then :
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4094 printf %s "checking for $CC option to enable C11 features... " >&6; }
4095 if test ${ac_cv_prog_cc_c11+y}
4096 then :
4097 printf %s "(cached) " >&6
4098 else case e in #(
4099 e) ac_cv_prog_cc_c11=no
4100 ac_save_CC=$CC
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103 $ac_c_conftest_c11_program
4104 _ACEOF
4105 for ac_arg in '' -std=gnu11
4106 do
4107 CC="$ac_save_CC $ac_arg"
4108 if ac_fn_c_try_compile "$LINENO"
4109 then :
4110 ac_cv_prog_cc_c11=$ac_arg
4111 fi
4112 rm -f core conftest.err conftest.$ac_objext conftest.beam
4113 test "x$ac_cv_prog_cc_c11" != "xno" && break
4114 done
4115 rm -f conftest.$ac_ext
4116 CC=$ac_save_CC ;;
4117 esac
4118 fi
4119
4120 if test "x$ac_cv_prog_cc_c11" = xno
4121 then :
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4123 printf "%s\n" "unsupported" >&6; }
4124 else case e in #(
4125 e) if test "x$ac_cv_prog_cc_c11" = x
4126 then :
4127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4128 printf "%s\n" "none needed" >&6; }
4129 else case e in #(
4130 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4131 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4132 CC="$CC $ac_cv_prog_cc_c11" ;;
4133 esac
4134 fi
4135 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4136 ac_prog_cc_stdc=c11 ;;
4137 esac
4138 fi
4139 fi
4140 if test x$ac_prog_cc_stdc = xno
4141 then :
4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4143 printf %s "checking for $CC option to enable C99 features... " >&6; }
4144 if test ${ac_cv_prog_cc_c99+y}
4145 then :
4146 printf %s "(cached) " >&6
4147 else case e in #(
4148 e) ac_cv_prog_cc_c99=no
4149 ac_save_CC=$CC
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4152 $ac_c_conftest_c99_program
4153 _ACEOF
4154 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4155 do
4156 CC="$ac_save_CC $ac_arg"
4157 if ac_fn_c_try_compile "$LINENO"
4158 then :
4159 ac_cv_prog_cc_c99=$ac_arg
4160 fi
4161 rm -f core conftest.err conftest.$ac_objext conftest.beam
4162 test "x$ac_cv_prog_cc_c99" != "xno" && break
4163 done
4164 rm -f conftest.$ac_ext
4165 CC=$ac_save_CC ;;
4166 esac
4167 fi
4168
4169 if test "x$ac_cv_prog_cc_c99" = xno
4170 then :
4171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4172 printf "%s\n" "unsupported" >&6; }
4173 else case e in #(
4174 e) if test "x$ac_cv_prog_cc_c99" = x
4175 then :
4176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4177 printf "%s\n" "none needed" >&6; }
4178 else case e in #(
4179 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4180 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4181 CC="$CC $ac_cv_prog_cc_c99" ;;
4182 esac
4183 fi
4184 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4185 ac_prog_cc_stdc=c99 ;;
4186 esac
4187 fi
4188 fi
4189 if test x$ac_prog_cc_stdc = xno
4190 then :
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4192 printf %s "checking for $CC option to enable C89 features... " >&6; }
4193 if test ${ac_cv_prog_cc_c89+y}
4194 then :
4195 printf %s "(cached) " >&6
4196 else case e in #(
4197 e) ac_cv_prog_cc_c89=no
4198 ac_save_CC=$CC
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 $ac_c_conftest_c89_program
4202 _ACEOF
4203 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4204 do
4205 CC="$ac_save_CC $ac_arg"
4206 if ac_fn_c_try_compile "$LINENO"
4207 then :
4208 ac_cv_prog_cc_c89=$ac_arg
4209 fi
4210 rm -f core conftest.err conftest.$ac_objext conftest.beam
4211 test "x$ac_cv_prog_cc_c89" != "xno" && break
4212 done
4213 rm -f conftest.$ac_ext
4214 CC=$ac_save_CC ;;
4215 esac
4216 fi
4217
4218 if test "x$ac_cv_prog_cc_c89" = xno
4219 then :
4220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4221 printf "%s\n" "unsupported" >&6; }
4222 else case e in #(
4223 e) if test "x$ac_cv_prog_cc_c89" = x
4224 then :
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4226 printf "%s\n" "none needed" >&6; }
4227 else case e in #(
4228 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4229 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4230 CC="$CC $ac_cv_prog_cc_c89" ;;
4231 esac
4232 fi
4233 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4234 ac_prog_cc_stdc=c89 ;;
4235 esac
4236 fi
4237 fi
4238
4239 ac_ext=c
4240 ac_cpp='$CPP $CPPFLAGS'
4241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4244
4245
4246 ac_ext=c
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4252 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4253 if test ${am_cv_prog_cc_c_o+y}
4254 then :
4255 printf %s "(cached) " >&6
4256 else case e in #(
4257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4259
4260 int
4261 main (void)
4262 {
4263
4264 ;
4265 return 0;
4266 }
4267 _ACEOF
4268 # Make sure it works both with $CC and with simple cc.
4269 # Following AC_PROG_CC_C_O, we do the test twice because some
4270 # compilers refuse to overwrite an existing .o file with -o,
4271 # though they will create one.
4272 am_cv_prog_cc_c_o=yes
4273 for am_i in 1 2; do
4274 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4275 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4276 ac_status=$?
4277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4278 (exit $ac_status); } \
4279 && test -f conftest2.$ac_objext; then
4280 : OK
4281 else
4282 am_cv_prog_cc_c_o=no
4283 break
4284 fi
4285 done
4286 rm -f core conftest*
4287 unset am_i ;;
4288 esac
4289 fi
4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4291 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4292 if test "$am_cv_prog_cc_c_o" != yes; then
4293 # Losing compiler, so override with the script.
4294 # FIXME: It is wrong to rewrite CC.
4295 # But if we don't then we get into trouble of one sort or another.
4296 # A longer-term fix would be to have automake use am__CC in this case,
4297 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4298 CC="$am_aux_dir/compile $CC"
4299 fi
4300 ac_ext=c
4301 ac_cpp='$CPP $CPPFLAGS'
4302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305
4306
4307 depcc="$CC" am_compiler_list=
4308
4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4310 printf %s "checking dependency style of $depcc... " >&6; }
4311 if test ${am_cv_CC_dependencies_compiler_type+y}
4312 then :
4313 printf %s "(cached) " >&6
4314 else case e in #(
4315 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4316 # We make a subdir and do the tests there. Otherwise we can end up
4317 # making bogus files that we don't know about and never remove. For
4318 # instance it was reported that on HP-UX the gcc test will end up
4319 # making a dummy file named 'D' -- because '-MD' means "put the output
4320 # in D".
4321 rm -rf conftest.dir
4322 mkdir conftest.dir
4323 # Copy depcomp to subdir because otherwise we won't find it if we're
4324 # using a relative directory.
4325 cp "$am_depcomp" conftest.dir
4326 cd conftest.dir
4327 # We will build objects and dependencies in a subdirectory because
4328 # it helps to detect inapplicable dependency modes. For instance
4329 # both Tru64's cc and ICC support -MD to output dependencies as a
4330 # side effect of compilation, but ICC will put the dependencies in
4331 # the current directory while Tru64 will put them in the object
4332 # directory.
4333 mkdir sub
4334
4335 am_cv_CC_dependencies_compiler_type=none
4336 if test "$am_compiler_list" = ""; then
4337 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4338 fi
4339 am__universal=false
4340 case " $depcc " in #(
4341 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4342 esac
4343
4344 for depmode in $am_compiler_list; do
4345 # Setup a source with many dependencies, because some compilers
4346 # like to wrap large dependency lists on column 80 (with \), and
4347 # we should not choose a depcomp mode which is confused by this.
4348 #
4349 # We need to recreate these files for each test, as the compiler may
4350 # overwrite some of them when testing with obscure command lines.
4351 # This happens at least with the AIX C compiler.
4352 : > sub/conftest.c
4353 for i in 1 2 3 4 5 6; do
4354 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4355 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4356 # Solaris 10 /bin/sh.
4357 echo '/* dummy */' > sub/conftst$i.h
4358 done
4359 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4360
4361 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4362 # mode. It turns out that the SunPro C++ compiler does not properly
4363 # handle '-M -o', and we need to detect this. Also, some Intel
4364 # versions had trouble with output in subdirs.
4365 am__obj=sub/conftest.${OBJEXT-o}
4366 am__minus_obj="-o $am__obj"
4367 case $depmode in
4368 gcc)
4369 # This depmode causes a compiler race in universal mode.
4370 test "$am__universal" = false || continue
4371 ;;
4372 nosideeffect)
4373 # After this tag, mechanisms are not by side-effect, so they'll
4374 # only be used when explicitly requested.
4375 if test "x$enable_dependency_tracking" = xyes; then
4376 continue
4377 else
4378 break
4379 fi
4380 ;;
4381 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4382 # This compiler won't grok '-c -o', but also, the minuso test has
4383 # not run yet. These depmodes are late enough in the game, and
4384 # so weak that their functioning should not be impacted.
4385 am__obj=conftest.${OBJEXT-o}
4386 am__minus_obj=
4387 ;;
4388 none) break ;;
4389 esac
4390 if depmode=$depmode \
4391 source=sub/conftest.c object=$am__obj \
4392 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4393 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4394 >/dev/null 2>conftest.err &&
4395 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4396 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4397 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4398 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4399 # icc doesn't choke on unknown options, it will just issue warnings
4400 # or remarks (even with -Werror). So we grep stderr for any message
4401 # that says an option was ignored or not supported.
4402 # When given -MP, icc 7.0 and 7.1 complain thusly:
4403 # icc: Command line warning: ignoring option '-M'; no argument required
4404 # The diagnosis changed in icc 8.0:
4405 # icc: Command line remark: option '-MP' not supported
4406 if (grep 'ignoring option' conftest.err ||
4407 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4408 am_cv_CC_dependencies_compiler_type=$depmode
4409 break
4410 fi
4411 fi
4412 done
4413
4414 cd ..
4415 rm -rf conftest.dir
4416 else
4417 am_cv_CC_dependencies_compiler_type=none
4418 fi
4419 ;;
4420 esac
4421 fi
4422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4423 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4424 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4425
4426 if
4427 test "x$enable_dependency_tracking" != xno \
4428 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4429 am__fastdepCC_TRUE=
4430 am__fastdepCC_FALSE='#'
4431 else
4432 am__fastdepCC_TRUE='#'
4433 am__fastdepCC_FALSE=
4434 fi
4435
4436
4437
4438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4439 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4440 if test ${ac_cv_c_undeclared_builtin_options+y}
4441 then :
4442 printf %s "(cached) " >&6
4443 else case e in #(
4444 e) ac_save_CFLAGS=$CFLAGS
4445 ac_cv_c_undeclared_builtin_options='cannot detect'
4446 for ac_arg in '' -fno-builtin; do
4447 CFLAGS="$ac_save_CFLAGS $ac_arg"
4448 # This test program should *not* compile successfully.
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4451
4452 int
4453 main (void)
4454 {
4455 (void) strchr;
4456 ;
4457 return 0;
4458 }
4459 _ACEOF
4460 if ac_fn_c_try_compile "$LINENO"
4461 then :
4462
4463 else case e in #(
4464 e) # This test program should compile successfully.
4465 # No library function is consistently available on
4466 # freestanding implementations, so test against a dummy
4467 # declaration. Include always-available headers on the
4468 # off chance that they somehow elicit warnings.
4469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4470 /* end confdefs.h. */
4471 #include <float.h>
4472 #include <limits.h>
4473 #include <stdarg.h>
4474 #include <stddef.h>
4475 extern void ac_decl (int, char *);
4476
4477 int
4478 main (void)
4479 {
4480 (void) ac_decl (0, (char *) 0);
4481 (void) ac_decl;
4482
4483 ;
4484 return 0;
4485 }
4486 _ACEOF
4487 if ac_fn_c_try_compile "$LINENO"
4488 then :
4489 if test x"$ac_arg" = x
4490 then :
4491 ac_cv_c_undeclared_builtin_options='none needed'
4492 else case e in #(
4493 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4494 esac
4495 fi
4496 break
4497 fi
4498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4499 esac
4500 fi
4501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4502 done
4503 CFLAGS=$ac_save_CFLAGS
4504 ;;
4505 esac
4506 fi
4507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4508 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4509 case $ac_cv_c_undeclared_builtin_options in #(
4510 'cannot detect') :
4511 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4512 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4513 as_fn_error $? "cannot make $CC report undeclared builtins
4514 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4515 'none needed') :
4516 ac_c_undeclared_builtin_options='' ;; #(
4517 *) :
4518 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4519 esac
4520
4521 ac_header= ac_cache=
4522 for ac_item in $ac_header_c_list
4523 do
4524 if test $ac_cache; then
4525 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4526 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4527 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4528 fi
4529 ac_header= ac_cache=
4530 elif test $ac_header; then
4531 ac_cache=$ac_item
4532 else
4533 ac_header=$ac_item
4534 fi
4535 done
4536
4537
4538
4539
4540
4541
4542
4543
4544 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4545 then :
4546
4547 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4548
4549 fi
4550
4551
4552
4553
4554 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4555 if test "x$ac_cv_have_decl___clang__" = xyes
4556 then :
4557 CLANGCC="yes"
4558 else case e in #(
4559 e) CLANGCC="no" ;;
4560 esac
4561 fi
4562 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4563 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4564 then :
4565 INTELCC="yes"
4566 else case e in #(
4567 e) INTELCC="no" ;;
4568 esac
4569 fi
4570 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4571 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4572 then :
4573 SUNCC="yes"
4574 else case e in #(
4575 e) SUNCC="no" ;;
4576 esac
4577 fi
4578
4579
4580
4581
4582
4583
4584
4585
4586 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4587 if test -n "$ac_tool_prefix"; then
4588 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4589 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4591 printf %s "checking for $ac_word... " >&6; }
4592 if test ${ac_cv_path_PKG_CONFIG+y}
4593 then :
4594 printf %s "(cached) " >&6
4595 else case e in #(
4596 e) case $PKG_CONFIG in
4597 [\\/]* | ?:[\\/]*)
4598 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4599 ;;
4600 *)
4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 for as_dir in $PATH
4603 do
4604 IFS=$as_save_IFS
4605 case $as_dir in #(((
4606 '') as_dir=./ ;;
4607 */) ;;
4608 *) as_dir=$as_dir/ ;;
4609 esac
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4612 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4614 break 2
4615 fi
4616 done
4617 done
4618 IFS=$as_save_IFS
4619
4620 ;;
4621 esac ;;
4622 esac
4623 fi
4624 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4625 if test -n "$PKG_CONFIG"; then
4626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4627 printf "%s\n" "$PKG_CONFIG" >&6; }
4628 else
4629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4630 printf "%s\n" "no" >&6; }
4631 fi
4632
4633
4634 fi
4635 if test -z "$ac_cv_path_PKG_CONFIG"; then
4636 ac_pt_PKG_CONFIG=$PKG_CONFIG
4637 # Extract the first word of "pkg-config", so it can be a program name with args.
4638 set dummy pkg-config; ac_word=$2
4639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4640 printf %s "checking for $ac_word... " >&6; }
4641 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4642 then :
4643 printf %s "(cached) " >&6
4644 else case e in #(
4645 e) case $ac_pt_PKG_CONFIG in
4646 [\\/]* | ?:[\\/]*)
4647 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4648 ;;
4649 *)
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653 IFS=$as_save_IFS
4654 case $as_dir in #(((
4655 '') as_dir=./ ;;
4656 */) ;;
4657 *) as_dir=$as_dir/ ;;
4658 esac
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4661 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 ;;
4670 esac ;;
4671 esac
4672 fi
4673 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4674 if test -n "$ac_pt_PKG_CONFIG"; then
4675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4676 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4677 else
4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 printf "%s\n" "no" >&6; }
4680 fi
4681
4682 if test "x$ac_pt_PKG_CONFIG" = x; then
4683 PKG_CONFIG=""
4684 else
4685 case $cross_compiling:$ac_tool_warned in
4686 yes:)
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4688 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4689 ac_tool_warned=yes ;;
4690 esac
4691 PKG_CONFIG=$ac_pt_PKG_CONFIG
4692 fi
4693 else
4694 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4695 fi
4696
4697 fi
4698 if test -n "$PKG_CONFIG"; then
4699 _pkg_min_version=0.9.0
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4701 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4702 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4704 printf "%s\n" "yes" >&6; }
4705 else
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4707 printf "%s\n" "no" >&6; }
4708 PKG_CONFIG=""
4709 fi
4710 fi
4711
4712
4713 # Make sure we can run config.sub.
4714 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4715 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4716
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4718 printf %s "checking build system type... " >&6; }
4719 if test ${ac_cv_build+y}
4720 then :
4721 printf %s "(cached) " >&6
4722 else case e in #(
4723 e) ac_build_alias=$build_alias
4724 test "x$ac_build_alias" = x &&
4725 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4726 test "x$ac_build_alias" = x &&
4727 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4728 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4729 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4730 ;;
4731 esac
4732 fi
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4734 printf "%s\n" "$ac_cv_build" >&6; }
4735 case $ac_cv_build in
4736 *-*-*) ;;
4737 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4738 esac
4739 build=$ac_cv_build
4740 ac_save_IFS=$IFS; IFS='-'
4741 set x $ac_cv_build
4742 shift
4743 build_cpu=$1
4744 build_vendor=$2
4745 shift; shift
4746 # Remember, the first character of IFS is used to create $*,
4747 # except with old shells:
4748 build_os=$*
4749 IFS=$ac_save_IFS
4750 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4751
4752
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4754 printf %s "checking host system type... " >&6; }
4755 if test ${ac_cv_host+y}
4756 then :
4757 printf %s "(cached) " >&6
4758 else case e in #(
4759 e) if test "x$host_alias" = x; then
4760 ac_cv_host=$ac_cv_build
4761 else
4762 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4763 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4764 fi
4765 ;;
4766 esac
4767 fi
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4769 printf "%s\n" "$ac_cv_host" >&6; }
4770 case $ac_cv_host in
4771 *-*-*) ;;
4772 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4773 esac
4774 host=$ac_cv_host
4775 ac_save_IFS=$IFS; IFS='-'
4776 set x $ac_cv_host
4777 shift
4778 host_cpu=$1
4779 host_vendor=$2
4780 shift; shift
4781 # Remember, the first character of IFS is used to create $*,
4782 # except with old shells:
4783 host_os=$*
4784 IFS=$ac_save_IFS
4785 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4786
4787
4788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4789 printf %s "checking for a sed that does not truncate output... " >&6; }
4790 if test ${ac_cv_path_SED+y}
4791 then :
4792 printf %s "(cached) " >&6
4793 else case e in #(
4794 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4795 for ac_i in 1 2 3 4 5 6 7; do
4796 ac_script="$ac_script$as_nl$ac_script"
4797 done
4798 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4799 { ac_script=; unset ac_script;}
4800 if test -z "$SED"; then
4801 ac_path_SED_found=false
4802 # Loop through the user's path and test for each of PROGNAME-LIST
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806 IFS=$as_save_IFS
4807 case $as_dir in #(((
4808 '') as_dir=./ ;;
4809 */) ;;
4810 *) as_dir=$as_dir/ ;;
4811 esac
4812 for ac_prog in sed gsed
4813 do
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4816 as_fn_executable_p "$ac_path_SED" || continue
4817 # Check for GNU ac_path_SED and select it if it is found.
4818 # Check for GNU $ac_path_SED
4819 case `"$ac_path_SED" --version 2>&1` in #(
4820 *GNU*)
4821 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4822 #(
4823 *)
4824 ac_count=0
4825 printf %s 0123456789 >"conftest.in"
4826 while :
4827 do
4828 cat "conftest.in" "conftest.in" >"conftest.tmp"
4829 mv "conftest.tmp" "conftest.in"
4830 cp "conftest.in" "conftest.nl"
4831 printf "%s\n" '' >> "conftest.nl"
4832 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4833 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4834 as_fn_arith $ac_count + 1 && ac_count=$as_val
4835 if test $ac_count -gt ${ac_path_SED_max-0}; then
4836 # Best one so far, save it but keep looking for a better one
4837 ac_cv_path_SED="$ac_path_SED"
4838 ac_path_SED_max=$ac_count
4839 fi
4840 # 10*(2^10) chars as input seems more than enough
4841 test $ac_count -gt 10 && break
4842 done
4843 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4844 esac
4845
4846 $ac_path_SED_found && break 3
4847 done
4848 done
4849 done
4850 IFS=$as_save_IFS
4851 if test -z "$ac_cv_path_SED"; then
4852 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4853 fi
4854 else
4855 ac_cv_path_SED=$SED
4856 fi
4857 ;;
4858 esac
4859 fi
4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4861 printf "%s\n" "$ac_cv_path_SED" >&6; }
4862 SED="$ac_cv_path_SED"
4863 rm -f conftest.sed
4864
4865
4866
4867
4868
4869
4870 # Check whether --enable-selective-werror was given.
4871 if test ${enable_selective_werror+y}
4872 then :
4873 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4874 else case e in #(
4875 e) SELECTIVE_WERROR=yes ;;
4876 esac
4877 fi
4878
4879
4880
4881
4882
4883 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4884 if test "x$SUNCC" = "xyes"; then
4885 BASE_CFLAGS="-v"
4886 else
4887 BASE_CFLAGS=""
4888 fi
4889
4890 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904 xorg_testset_save_CFLAGS="$CFLAGS"
4905
4906 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4909 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4910 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4911 then :
4912 printf %s "(cached) " >&6
4913 else case e in #(
4914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 int i;
4917 _ACEOF
4918 if ac_fn_c_try_compile "$LINENO"
4919 then :
4920 xorg_cv_cc_flag_unknown_warning_option=yes
4921 else case e in #(
4922 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4923 esac
4924 fi
4925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4926 esac
4927 fi
4928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4929 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4931 CFLAGS="$xorg_testset_save_CFLAGS"
4932 fi
4933
4934 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4937 fi
4938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4940 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4941 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4942 then :
4943 printf %s "(cached) " >&6
4944 else case e in #(
4945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4947 int i;
4948 _ACEOF
4949 if ac_fn_c_try_compile "$LINENO"
4950 then :
4951 xorg_cv_cc_flag_unused_command_line_argument=yes
4952 else case e in #(
4953 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
4954 esac
4955 fi
4956 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4957 esac
4958 fi
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4960 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4962 CFLAGS="$xorg_testset_save_CFLAGS"
4963 fi
4964
4965 found="no"
4966
4967 if test $found = "no" ; then
4968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4970 fi
4971
4972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4974 fi
4975
4976 CFLAGS="$CFLAGS -Wall"
4977
4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4979 printf %s "checking if $CC supports -Wall... " >&6; }
4980 cacheid=xorg_cv_cc_flag__Wall
4981 if eval test \${$cacheid+y}
4982 then :
4983 printf %s "(cached) " >&6
4984 else case e in #(
4985 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987 int i;
4988 int
4989 main (void)
4990 {
4991
4992 ;
4993 return 0;
4994 }
4995 _ACEOF
4996 if ac_fn_c_try_link "$LINENO"
4997 then :
4998 eval $cacheid=yes
4999 else case e in #(
5000 e) eval $cacheid=no ;;
5001 esac
5002 fi
5003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5004 conftest$ac_exeext conftest.$ac_ext ;;
5005 esac
5006 fi
5007
5008
5009 CFLAGS="$xorg_testset_save_CFLAGS"
5010
5011 eval supported=\$$cacheid
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5013 printf "%s\n" "$supported" >&6; }
5014 if test "$supported" = "yes" ; then
5015 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5016 found="yes"
5017 fi
5018 fi
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034 xorg_testset_save_CFLAGS="$CFLAGS"
5035
5036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5039 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5040 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5041 then :
5042 printf %s "(cached) " >&6
5043 else case e in #(
5044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5046 int i;
5047 _ACEOF
5048 if ac_fn_c_try_compile "$LINENO"
5049 then :
5050 xorg_cv_cc_flag_unknown_warning_option=yes
5051 else case e in #(
5052 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5053 esac
5054 fi
5055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5056 esac
5057 fi
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5059 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5061 CFLAGS="$xorg_testset_save_CFLAGS"
5062 fi
5063
5064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5067 fi
5068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5070 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5071 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5072 then :
5073 printf %s "(cached) " >&6
5074 else case e in #(
5075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 int i;
5078 _ACEOF
5079 if ac_fn_c_try_compile "$LINENO"
5080 then :
5081 xorg_cv_cc_flag_unused_command_line_argument=yes
5082 else case e in #(
5083 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5084 esac
5085 fi
5086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5087 esac
5088 fi
5089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5090 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5092 CFLAGS="$xorg_testset_save_CFLAGS"
5093 fi
5094
5095 found="no"
5096
5097 if test $found = "no" ; then
5098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5100 fi
5101
5102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5104 fi
5105
5106 CFLAGS="$CFLAGS -Wpointer-arith"
5107
5108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5109 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5110 cacheid=xorg_cv_cc_flag__Wpointer_arith
5111 if eval test \${$cacheid+y}
5112 then :
5113 printf %s "(cached) " >&6
5114 else case e in #(
5115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5116 /* end confdefs.h. */
5117 int i;
5118 int
5119 main (void)
5120 {
5121
5122 ;
5123 return 0;
5124 }
5125 _ACEOF
5126 if ac_fn_c_try_link "$LINENO"
5127 then :
5128 eval $cacheid=yes
5129 else case e in #(
5130 e) eval $cacheid=no ;;
5131 esac
5132 fi
5133 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5134 conftest$ac_exeext conftest.$ac_ext ;;
5135 esac
5136 fi
5137
5138
5139 CFLAGS="$xorg_testset_save_CFLAGS"
5140
5141 eval supported=\$$cacheid
5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5143 printf "%s\n" "$supported" >&6; }
5144 if test "$supported" = "yes" ; then
5145 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5146 found="yes"
5147 fi
5148 fi
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164 xorg_testset_save_CFLAGS="$CFLAGS"
5165
5166 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5169 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5170 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5171 then :
5172 printf %s "(cached) " >&6
5173 else case e in #(
5174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5176 int i;
5177 _ACEOF
5178 if ac_fn_c_try_compile "$LINENO"
5179 then :
5180 xorg_cv_cc_flag_unknown_warning_option=yes
5181 else case e in #(
5182 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5183 esac
5184 fi
5185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5186 esac
5187 fi
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5189 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5190 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5191 CFLAGS="$xorg_testset_save_CFLAGS"
5192 fi
5193
5194 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5197 fi
5198 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5200 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5201 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5202 then :
5203 printf %s "(cached) " >&6
5204 else case e in #(
5205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5206 /* end confdefs.h. */
5207 int i;
5208 _ACEOF
5209 if ac_fn_c_try_compile "$LINENO"
5210 then :
5211 xorg_cv_cc_flag_unused_command_line_argument=yes
5212 else case e in #(
5213 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5214 esac
5215 fi
5216 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5217 esac
5218 fi
5219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5220 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5222 CFLAGS="$xorg_testset_save_CFLAGS"
5223 fi
5224
5225 found="no"
5226
5227 if test $found = "no" ; then
5228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5230 fi
5231
5232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5234 fi
5235
5236 CFLAGS="$CFLAGS -Wmissing-declarations"
5237
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5239 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5240 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5241 if eval test \${$cacheid+y}
5242 then :
5243 printf %s "(cached) " >&6
5244 else case e in #(
5245 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247 int i;
5248 int
5249 main (void)
5250 {
5251
5252 ;
5253 return 0;
5254 }
5255 _ACEOF
5256 if ac_fn_c_try_link "$LINENO"
5257 then :
5258 eval $cacheid=yes
5259 else case e in #(
5260 e) eval $cacheid=no ;;
5261 esac
5262 fi
5263 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5264 conftest$ac_exeext conftest.$ac_ext ;;
5265 esac
5266 fi
5267
5268
5269 CFLAGS="$xorg_testset_save_CFLAGS"
5270
5271 eval supported=\$$cacheid
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5273 printf "%s\n" "$supported" >&6; }
5274 if test "$supported" = "yes" ; then
5275 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5276 found="yes"
5277 fi
5278 fi
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294 xorg_testset_save_CFLAGS="$CFLAGS"
5295
5296 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5299 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5300 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5301 then :
5302 printf %s "(cached) " >&6
5303 else case e in #(
5304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 int i;
5307 _ACEOF
5308 if ac_fn_c_try_compile "$LINENO"
5309 then :
5310 xorg_cv_cc_flag_unknown_warning_option=yes
5311 else case e in #(
5312 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5313 esac
5314 fi
5315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5316 esac
5317 fi
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5319 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5321 CFLAGS="$xorg_testset_save_CFLAGS"
5322 fi
5323
5324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5327 fi
5328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5330 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5331 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5332 then :
5333 printf %s "(cached) " >&6
5334 else case e in #(
5335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336 /* end confdefs.h. */
5337 int i;
5338 _ACEOF
5339 if ac_fn_c_try_compile "$LINENO"
5340 then :
5341 xorg_cv_cc_flag_unused_command_line_argument=yes
5342 else case e in #(
5343 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5344 esac
5345 fi
5346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5347 esac
5348 fi
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5350 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5351 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5352 CFLAGS="$xorg_testset_save_CFLAGS"
5353 fi
5354
5355 found="no"
5356
5357 if test $found = "no" ; then
5358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5360 fi
5361
5362 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5363 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5364 fi
5365
5366 CFLAGS="$CFLAGS -Wformat=2"
5367
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5369 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5370 cacheid=xorg_cv_cc_flag__Wformat_2
5371 if eval test \${$cacheid+y}
5372 then :
5373 printf %s "(cached) " >&6
5374 else case e in #(
5375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5377 int i;
5378 int
5379 main (void)
5380 {
5381
5382 ;
5383 return 0;
5384 }
5385 _ACEOF
5386 if ac_fn_c_try_link "$LINENO"
5387 then :
5388 eval $cacheid=yes
5389 else case e in #(
5390 e) eval $cacheid=no ;;
5391 esac
5392 fi
5393 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5394 conftest$ac_exeext conftest.$ac_ext ;;
5395 esac
5396 fi
5397
5398
5399 CFLAGS="$xorg_testset_save_CFLAGS"
5400
5401 eval supported=\$$cacheid
5402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5403 printf "%s\n" "$supported" >&6; }
5404 if test "$supported" = "yes" ; then
5405 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5406 found="yes"
5407 fi
5408 fi
5409
5410 if test $found = "no" ; then
5411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5413 fi
5414
5415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5417 fi
5418
5419 CFLAGS="$CFLAGS -Wformat"
5420
5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5422 printf %s "checking if $CC supports -Wformat... " >&6; }
5423 cacheid=xorg_cv_cc_flag__Wformat
5424 if eval test \${$cacheid+y}
5425 then :
5426 printf %s "(cached) " >&6
5427 else case e in #(
5428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5429 /* end confdefs.h. */
5430 int i;
5431 int
5432 main (void)
5433 {
5434
5435 ;
5436 return 0;
5437 }
5438 _ACEOF
5439 if ac_fn_c_try_link "$LINENO"
5440 then :
5441 eval $cacheid=yes
5442 else case e in #(
5443 e) eval $cacheid=no ;;
5444 esac
5445 fi
5446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5447 conftest$ac_exeext conftest.$ac_ext ;;
5448 esac
5449 fi
5450
5451
5452 CFLAGS="$xorg_testset_save_CFLAGS"
5453
5454 eval supported=\$$cacheid
5455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5456 printf "%s\n" "$supported" >&6; }
5457 if test "$supported" = "yes" ; then
5458 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5459 found="yes"
5460 fi
5461 fi
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479 xorg_testset_save_CFLAGS="$CFLAGS"
5480
5481 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5484 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5485 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5486 then :
5487 printf %s "(cached) " >&6
5488 else case e in #(
5489 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5490 /* end confdefs.h. */
5491 int i;
5492 _ACEOF
5493 if ac_fn_c_try_compile "$LINENO"
5494 then :
5495 xorg_cv_cc_flag_unknown_warning_option=yes
5496 else case e in #(
5497 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5498 esac
5499 fi
5500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5501 esac
5502 fi
5503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5504 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5505 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5506 CFLAGS="$xorg_testset_save_CFLAGS"
5507 fi
5508
5509 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5512 fi
5513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5515 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5516 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5517 then :
5518 printf %s "(cached) " >&6
5519 else case e in #(
5520 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 int i;
5523 _ACEOF
5524 if ac_fn_c_try_compile "$LINENO"
5525 then :
5526 xorg_cv_cc_flag_unused_command_line_argument=yes
5527 else case e in #(
5528 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5529 esac
5530 fi
5531 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5532 esac
5533 fi
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5535 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5536 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5537 CFLAGS="$xorg_testset_save_CFLAGS"
5538 fi
5539
5540 found="no"
5541
5542 if test $found = "no" ; then
5543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5545 fi
5546
5547 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5549 fi
5550
5551 CFLAGS="$CFLAGS -Wstrict-prototypes"
5552
5553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5554 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5555 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5556 if eval test \${$cacheid+y}
5557 then :
5558 printf %s "(cached) " >&6
5559 else case e in #(
5560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 int i;
5563 int
5564 main (void)
5565 {
5566
5567 ;
5568 return 0;
5569 }
5570 _ACEOF
5571 if ac_fn_c_try_link "$LINENO"
5572 then :
5573 eval $cacheid=yes
5574 else case e in #(
5575 e) eval $cacheid=no ;;
5576 esac
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5579 conftest$ac_exeext conftest.$ac_ext ;;
5580 esac
5581 fi
5582
5583
5584 CFLAGS="$xorg_testset_save_CFLAGS"
5585
5586 eval supported=\$$cacheid
5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5588 printf "%s\n" "$supported" >&6; }
5589 if test "$supported" = "yes" ; then
5590 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5591 found="yes"
5592 fi
5593 fi
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609 xorg_testset_save_CFLAGS="$CFLAGS"
5610
5611 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5612 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5614 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5615 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5616 then :
5617 printf %s "(cached) " >&6
5618 else case e in #(
5619 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 int i;
5622 _ACEOF
5623 if ac_fn_c_try_compile "$LINENO"
5624 then :
5625 xorg_cv_cc_flag_unknown_warning_option=yes
5626 else case e in #(
5627 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5628 esac
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5631 esac
5632 fi
5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5634 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5635 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5636 CFLAGS="$xorg_testset_save_CFLAGS"
5637 fi
5638
5639 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5642 fi
5643 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5645 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5646 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
5654 if ac_fn_c_try_compile "$LINENO"
5655 then :
5656 xorg_cv_cc_flag_unused_command_line_argument=yes
5657 else case e in #(
5658 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5659 esac
5660 fi
5661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5662 esac
5663 fi
5664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5665 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5667 CFLAGS="$xorg_testset_save_CFLAGS"
5668 fi
5669
5670 found="no"
5671
5672 if test $found = "no" ; then
5673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5675 fi
5676
5677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5679 fi
5680
5681 CFLAGS="$CFLAGS -Wmissing-prototypes"
5682
5683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5684 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5685 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5686 if eval test \${$cacheid+y}
5687 then :
5688 printf %s "(cached) " >&6
5689 else case e in #(
5690 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5691 /* end confdefs.h. */
5692 int i;
5693 int
5694 main (void)
5695 {
5696
5697 ;
5698 return 0;
5699 }
5700 _ACEOF
5701 if ac_fn_c_try_link "$LINENO"
5702 then :
5703 eval $cacheid=yes
5704 else case e in #(
5705 e) eval $cacheid=no ;;
5706 esac
5707 fi
5708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5709 conftest$ac_exeext conftest.$ac_ext ;;
5710 esac
5711 fi
5712
5713
5714 CFLAGS="$xorg_testset_save_CFLAGS"
5715
5716 eval supported=\$$cacheid
5717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5718 printf "%s\n" "$supported" >&6; }
5719 if test "$supported" = "yes" ; then
5720 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5721 found="yes"
5722 fi
5723 fi
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739 xorg_testset_save_CFLAGS="$CFLAGS"
5740
5741 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5744 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5745 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5746 then :
5747 printf %s "(cached) " >&6
5748 else case e in #(
5749 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5751 int i;
5752 _ACEOF
5753 if ac_fn_c_try_compile "$LINENO"
5754 then :
5755 xorg_cv_cc_flag_unknown_warning_option=yes
5756 else case e in #(
5757 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5758 esac
5759 fi
5760 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5761 esac
5762 fi
5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5764 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5765 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5766 CFLAGS="$xorg_testset_save_CFLAGS"
5767 fi
5768
5769 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5772 fi
5773 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5775 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5776 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5777 then :
5778 printf %s "(cached) " >&6
5779 else case e in #(
5780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5782 int i;
5783 _ACEOF
5784 if ac_fn_c_try_compile "$LINENO"
5785 then :
5786 xorg_cv_cc_flag_unused_command_line_argument=yes
5787 else case e in #(
5788 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5789 esac
5790 fi
5791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5792 esac
5793 fi
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5795 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5796 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5797 CFLAGS="$xorg_testset_save_CFLAGS"
5798 fi
5799
5800 found="no"
5801
5802 if test $found = "no" ; then
5803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5805 fi
5806
5807 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5809 fi
5810
5811 CFLAGS="$CFLAGS -Wnested-externs"
5812
5813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5814 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5815 cacheid=xorg_cv_cc_flag__Wnested_externs
5816 if eval test \${$cacheid+y}
5817 then :
5818 printf %s "(cached) " >&6
5819 else case e in #(
5820 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5821 /* end confdefs.h. */
5822 int i;
5823 int
5824 main (void)
5825 {
5826
5827 ;
5828 return 0;
5829 }
5830 _ACEOF
5831 if ac_fn_c_try_link "$LINENO"
5832 then :
5833 eval $cacheid=yes
5834 else case e in #(
5835 e) eval $cacheid=no ;;
5836 esac
5837 fi
5838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5839 conftest$ac_exeext conftest.$ac_ext ;;
5840 esac
5841 fi
5842
5843
5844 CFLAGS="$xorg_testset_save_CFLAGS"
5845
5846 eval supported=\$$cacheid
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5848 printf "%s\n" "$supported" >&6; }
5849 if test "$supported" = "yes" ; then
5850 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5851 found="yes"
5852 fi
5853 fi
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869 xorg_testset_save_CFLAGS="$CFLAGS"
5870
5871 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5874 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5875 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5876 then :
5877 printf %s "(cached) " >&6
5878 else case e in #(
5879 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5880 /* end confdefs.h. */
5881 int i;
5882 _ACEOF
5883 if ac_fn_c_try_compile "$LINENO"
5884 then :
5885 xorg_cv_cc_flag_unknown_warning_option=yes
5886 else case e in #(
5887 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5888 esac
5889 fi
5890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5891 esac
5892 fi
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5894 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5895 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5896 CFLAGS="$xorg_testset_save_CFLAGS"
5897 fi
5898
5899 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5902 fi
5903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5905 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5906 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5907 then :
5908 printf %s "(cached) " >&6
5909 else case e in #(
5910 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5911 /* end confdefs.h. */
5912 int i;
5913 _ACEOF
5914 if ac_fn_c_try_compile "$LINENO"
5915 then :
5916 xorg_cv_cc_flag_unused_command_line_argument=yes
5917 else case e in #(
5918 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5919 esac
5920 fi
5921 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5922 esac
5923 fi
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5925 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5927 CFLAGS="$xorg_testset_save_CFLAGS"
5928 fi
5929
5930 found="no"
5931
5932 if test $found = "no" ; then
5933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5934 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5935 fi
5936
5937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5939 fi
5940
5941 CFLAGS="$CFLAGS -Wbad-function-cast"
5942
5943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5944 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5945 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5946 if eval test \${$cacheid+y}
5947 then :
5948 printf %s "(cached) " >&6
5949 else case e in #(
5950 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 int i;
5953 int
5954 main (void)
5955 {
5956
5957 ;
5958 return 0;
5959 }
5960 _ACEOF
5961 if ac_fn_c_try_link "$LINENO"
5962 then :
5963 eval $cacheid=yes
5964 else case e in #(
5965 e) eval $cacheid=no ;;
5966 esac
5967 fi
5968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5969 conftest$ac_exeext conftest.$ac_ext ;;
5970 esac
5971 fi
5972
5973
5974 CFLAGS="$xorg_testset_save_CFLAGS"
5975
5976 eval supported=\$$cacheid
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5978 printf "%s\n" "$supported" >&6; }
5979 if test "$supported" = "yes" ; then
5980 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5981 found="yes"
5982 fi
5983 fi
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999 xorg_testset_save_CFLAGS="$CFLAGS"
6000
6001 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6002 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6004 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6005 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6006 then :
6007 printf %s "(cached) " >&6
6008 else case e in #(
6009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6011 int i;
6012 _ACEOF
6013 if ac_fn_c_try_compile "$LINENO"
6014 then :
6015 xorg_cv_cc_flag_unknown_warning_option=yes
6016 else case e in #(
6017 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6018 esac
6019 fi
6020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6021 esac
6022 fi
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6024 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6026 CFLAGS="$xorg_testset_save_CFLAGS"
6027 fi
6028
6029 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6032 fi
6033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6035 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6036 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6037 then :
6038 printf %s "(cached) " >&6
6039 else case e in #(
6040 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6042 int i;
6043 _ACEOF
6044 if ac_fn_c_try_compile "$LINENO"
6045 then :
6046 xorg_cv_cc_flag_unused_command_line_argument=yes
6047 else case e in #(
6048 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6049 esac
6050 fi
6051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6052 esac
6053 fi
6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6055 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6057 CFLAGS="$xorg_testset_save_CFLAGS"
6058 fi
6059
6060 found="no"
6061
6062 if test $found = "no" ; then
6063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6065 fi
6066
6067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6069 fi
6070
6071 CFLAGS="$CFLAGS -Wold-style-definition"
6072
6073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6074 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6075 cacheid=xorg_cv_cc_flag__Wold_style_definition
6076 if eval test \${$cacheid+y}
6077 then :
6078 printf %s "(cached) " >&6
6079 else case e in #(
6080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081 /* end confdefs.h. */
6082 int i;
6083 int
6084 main (void)
6085 {
6086
6087 ;
6088 return 0;
6089 }
6090 _ACEOF
6091 if ac_fn_c_try_link "$LINENO"
6092 then :
6093 eval $cacheid=yes
6094 else case e in #(
6095 e) eval $cacheid=no ;;
6096 esac
6097 fi
6098 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6099 conftest$ac_exeext conftest.$ac_ext ;;
6100 esac
6101 fi
6102
6103
6104 CFLAGS="$xorg_testset_save_CFLAGS"
6105
6106 eval supported=\$$cacheid
6107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6108 printf "%s\n" "$supported" >&6; }
6109 if test "$supported" = "yes" ; then
6110 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6111 found="yes"
6112 fi
6113 fi
6114
6115 if test $found = "no" ; then
6116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6118 fi
6119
6120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6122 fi
6123
6124 CFLAGS="$CFLAGS -fd"
6125
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6127 printf %s "checking if $CC supports -fd... " >&6; }
6128 cacheid=xorg_cv_cc_flag__fd
6129 if eval test \${$cacheid+y}
6130 then :
6131 printf %s "(cached) " >&6
6132 else case e in #(
6133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6134 /* end confdefs.h. */
6135 int i;
6136 int
6137 main (void)
6138 {
6139
6140 ;
6141 return 0;
6142 }
6143 _ACEOF
6144 if ac_fn_c_try_link "$LINENO"
6145 then :
6146 eval $cacheid=yes
6147 else case e in #(
6148 e) eval $cacheid=no ;;
6149 esac
6150 fi
6151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6152 conftest$ac_exeext conftest.$ac_ext ;;
6153 esac
6154 fi
6155
6156
6157 CFLAGS="$xorg_testset_save_CFLAGS"
6158
6159 eval supported=\$$cacheid
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6161 printf "%s\n" "$supported" >&6; }
6162 if test "$supported" = "yes" ; then
6163 BASE_CFLAGS="$BASE_CFLAGS -fd"
6164 found="yes"
6165 fi
6166 fi
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182 xorg_testset_save_CFLAGS="$CFLAGS"
6183
6184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6187 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6188 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6189 then :
6190 printf %s "(cached) " >&6
6191 else case e in #(
6192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 int i;
6195 _ACEOF
6196 if ac_fn_c_try_compile "$LINENO"
6197 then :
6198 xorg_cv_cc_flag_unknown_warning_option=yes
6199 else case e in #(
6200 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6201 esac
6202 fi
6203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6204 esac
6205 fi
6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6207 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6209 CFLAGS="$xorg_testset_save_CFLAGS"
6210 fi
6211
6212 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6215 fi
6216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6218 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6219 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6220 then :
6221 printf %s "(cached) " >&6
6222 else case e in #(
6223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6224 /* end confdefs.h. */
6225 int i;
6226 _ACEOF
6227 if ac_fn_c_try_compile "$LINENO"
6228 then :
6229 xorg_cv_cc_flag_unused_command_line_argument=yes
6230 else case e in #(
6231 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6232 esac
6233 fi
6234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6235 esac
6236 fi
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6238 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6240 CFLAGS="$xorg_testset_save_CFLAGS"
6241 fi
6242
6243 found="no"
6244
6245 if test $found = "no" ; then
6246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6248 fi
6249
6250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6252 fi
6253
6254 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6255
6256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6257 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6258 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6259 if eval test \${$cacheid+y}
6260 then :
6261 printf %s "(cached) " >&6
6262 else case e in #(
6263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6264 /* end confdefs.h. */
6265 int i;
6266 int
6267 main (void)
6268 {
6269
6270 ;
6271 return 0;
6272 }
6273 _ACEOF
6274 if ac_fn_c_try_link "$LINENO"
6275 then :
6276 eval $cacheid=yes
6277 else case e in #(
6278 e) eval $cacheid=no ;;
6279 esac
6280 fi
6281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6282 conftest$ac_exeext conftest.$ac_ext ;;
6283 esac
6284 fi
6285
6286
6287 CFLAGS="$xorg_testset_save_CFLAGS"
6288
6289 eval supported=\$$cacheid
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6291 printf "%s\n" "$supported" >&6; }
6292 if test "$supported" = "yes" ; then
6293 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6294 found="yes"
6295 fi
6296 fi
6297
6298
6299
6300
6301
6302 # This chunk adds additional warnings that could catch undesired effects.
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316 xorg_testset_save_CFLAGS="$CFLAGS"
6317
6318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6321 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6322 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6323 then :
6324 printf %s "(cached) " >&6
6325 else case e in #(
6326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327 /* end confdefs.h. */
6328 int i;
6329 _ACEOF
6330 if ac_fn_c_try_compile "$LINENO"
6331 then :
6332 xorg_cv_cc_flag_unknown_warning_option=yes
6333 else case e in #(
6334 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6335 esac
6336 fi
6337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6338 esac
6339 fi
6340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6341 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6343 CFLAGS="$xorg_testset_save_CFLAGS"
6344 fi
6345
6346 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6349 fi
6350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6352 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6353 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6354 then :
6355 printf %s "(cached) " >&6
6356 else case e in #(
6357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6358 /* end confdefs.h. */
6359 int i;
6360 _ACEOF
6361 if ac_fn_c_try_compile "$LINENO"
6362 then :
6363 xorg_cv_cc_flag_unused_command_line_argument=yes
6364 else case e in #(
6365 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6366 esac
6367 fi
6368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6369 esac
6370 fi
6371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6372 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6374 CFLAGS="$xorg_testset_save_CFLAGS"
6375 fi
6376
6377 found="no"
6378
6379 if test $found = "no" ; then
6380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6382 fi
6383
6384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6386 fi
6387
6388 CFLAGS="$CFLAGS -Wunused"
6389
6390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6391 printf %s "checking if $CC supports -Wunused... " >&6; }
6392 cacheid=xorg_cv_cc_flag__Wunused
6393 if eval test \${$cacheid+y}
6394 then :
6395 printf %s "(cached) " >&6
6396 else case e in #(
6397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h. */
6399 int i;
6400 int
6401 main (void)
6402 {
6403
6404 ;
6405 return 0;
6406 }
6407 _ACEOF
6408 if ac_fn_c_try_link "$LINENO"
6409 then :
6410 eval $cacheid=yes
6411 else case e in #(
6412 e) eval $cacheid=no ;;
6413 esac
6414 fi
6415 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6416 conftest$ac_exeext conftest.$ac_ext ;;
6417 esac
6418 fi
6419
6420
6421 CFLAGS="$xorg_testset_save_CFLAGS"
6422
6423 eval supported=\$$cacheid
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6425 printf "%s\n" "$supported" >&6; }
6426 if test "$supported" = "yes" ; then
6427 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6428 found="yes"
6429 fi
6430 fi
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446 xorg_testset_save_CFLAGS="$CFLAGS"
6447
6448 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6451 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6452 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6453 then :
6454 printf %s "(cached) " >&6
6455 else case e in #(
6456 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6457 /* end confdefs.h. */
6458 int i;
6459 _ACEOF
6460 if ac_fn_c_try_compile "$LINENO"
6461 then :
6462 xorg_cv_cc_flag_unknown_warning_option=yes
6463 else case e in #(
6464 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6465 esac
6466 fi
6467 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6468 esac
6469 fi
6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6471 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6473 CFLAGS="$xorg_testset_save_CFLAGS"
6474 fi
6475
6476 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6479 fi
6480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6482 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6483 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6484 then :
6485 printf %s "(cached) " >&6
6486 else case e in #(
6487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6488 /* end confdefs.h. */
6489 int i;
6490 _ACEOF
6491 if ac_fn_c_try_compile "$LINENO"
6492 then :
6493 xorg_cv_cc_flag_unused_command_line_argument=yes
6494 else case e in #(
6495 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6496 esac
6497 fi
6498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6499 esac
6500 fi
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6502 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6503 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6504 CFLAGS="$xorg_testset_save_CFLAGS"
6505 fi
6506
6507 found="no"
6508
6509 if test $found = "no" ; then
6510 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6512 fi
6513
6514 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6515 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6516 fi
6517
6518 CFLAGS="$CFLAGS -Wuninitialized"
6519
6520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6521 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6522 cacheid=xorg_cv_cc_flag__Wuninitialized
6523 if eval test \${$cacheid+y}
6524 then :
6525 printf %s "(cached) " >&6
6526 else case e in #(
6527 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529 int i;
6530 int
6531 main (void)
6532 {
6533
6534 ;
6535 return 0;
6536 }
6537 _ACEOF
6538 if ac_fn_c_try_link "$LINENO"
6539 then :
6540 eval $cacheid=yes
6541 else case e in #(
6542 e) eval $cacheid=no ;;
6543 esac
6544 fi
6545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6546 conftest$ac_exeext conftest.$ac_ext ;;
6547 esac
6548 fi
6549
6550
6551 CFLAGS="$xorg_testset_save_CFLAGS"
6552
6553 eval supported=\$$cacheid
6554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6555 printf "%s\n" "$supported" >&6; }
6556 if test "$supported" = "yes" ; then
6557 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6558 found="yes"
6559 fi
6560 fi
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576 xorg_testset_save_CFLAGS="$CFLAGS"
6577
6578 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6581 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6582 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6583 then :
6584 printf %s "(cached) " >&6
6585 else case e in #(
6586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587 /* end confdefs.h. */
6588 int i;
6589 _ACEOF
6590 if ac_fn_c_try_compile "$LINENO"
6591 then :
6592 xorg_cv_cc_flag_unknown_warning_option=yes
6593 else case e in #(
6594 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6595 esac
6596 fi
6597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6598 esac
6599 fi
6600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6601 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6603 CFLAGS="$xorg_testset_save_CFLAGS"
6604 fi
6605
6606 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6609 fi
6610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6612 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6613 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6614 then :
6615 printf %s "(cached) " >&6
6616 else case e in #(
6617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h. */
6619 int i;
6620 _ACEOF
6621 if ac_fn_c_try_compile "$LINENO"
6622 then :
6623 xorg_cv_cc_flag_unused_command_line_argument=yes
6624 else case e in #(
6625 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6626 esac
6627 fi
6628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6629 esac
6630 fi
6631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6632 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6634 CFLAGS="$xorg_testset_save_CFLAGS"
6635 fi
6636
6637 found="no"
6638
6639 if test $found = "no" ; then
6640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6642 fi
6643
6644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6646 fi
6647
6648 CFLAGS="$CFLAGS -Wshadow"
6649
6650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6651 printf %s "checking if $CC supports -Wshadow... " >&6; }
6652 cacheid=xorg_cv_cc_flag__Wshadow
6653 if eval test \${$cacheid+y}
6654 then :
6655 printf %s "(cached) " >&6
6656 else case e in #(
6657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658 /* end confdefs.h. */
6659 int i;
6660 int
6661 main (void)
6662 {
6663
6664 ;
6665 return 0;
6666 }
6667 _ACEOF
6668 if ac_fn_c_try_link "$LINENO"
6669 then :
6670 eval $cacheid=yes
6671 else case e in #(
6672 e) eval $cacheid=no ;;
6673 esac
6674 fi
6675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6676 conftest$ac_exeext conftest.$ac_ext ;;
6677 esac
6678 fi
6679
6680
6681 CFLAGS="$xorg_testset_save_CFLAGS"
6682
6683 eval supported=\$$cacheid
6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6685 printf "%s\n" "$supported" >&6; }
6686 if test "$supported" = "yes" ; then
6687 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6688 found="yes"
6689 fi
6690 fi
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706 xorg_testset_save_CFLAGS="$CFLAGS"
6707
6708 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6711 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6712 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6713 then :
6714 printf %s "(cached) " >&6
6715 else case e in #(
6716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 int i;
6719 _ACEOF
6720 if ac_fn_c_try_compile "$LINENO"
6721 then :
6722 xorg_cv_cc_flag_unknown_warning_option=yes
6723 else case e in #(
6724 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6725 esac
6726 fi
6727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6728 esac
6729 fi
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6731 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6733 CFLAGS="$xorg_testset_save_CFLAGS"
6734 fi
6735
6736 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6739 fi
6740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6742 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6743 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6744 then :
6745 printf %s "(cached) " >&6
6746 else case e in #(
6747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 int i;
6750 _ACEOF
6751 if ac_fn_c_try_compile "$LINENO"
6752 then :
6753 xorg_cv_cc_flag_unused_command_line_argument=yes
6754 else case e in #(
6755 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6756 esac
6757 fi
6758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6759 esac
6760 fi
6761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6762 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6764 CFLAGS="$xorg_testset_save_CFLAGS"
6765 fi
6766
6767 found="no"
6768
6769 if test $found = "no" ; then
6770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6772 fi
6773
6774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6776 fi
6777
6778 CFLAGS="$CFLAGS -Wmissing-noreturn"
6779
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6781 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6782 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6783 if eval test \${$cacheid+y}
6784 then :
6785 printf %s "(cached) " >&6
6786 else case e in #(
6787 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6788 /* end confdefs.h. */
6789 int i;
6790 int
6791 main (void)
6792 {
6793
6794 ;
6795 return 0;
6796 }
6797 _ACEOF
6798 if ac_fn_c_try_link "$LINENO"
6799 then :
6800 eval $cacheid=yes
6801 else case e in #(
6802 e) eval $cacheid=no ;;
6803 esac
6804 fi
6805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6806 conftest$ac_exeext conftest.$ac_ext ;;
6807 esac
6808 fi
6809
6810
6811 CFLAGS="$xorg_testset_save_CFLAGS"
6812
6813 eval supported=\$$cacheid
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6815 printf "%s\n" "$supported" >&6; }
6816 if test "$supported" = "yes" ; then
6817 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6818 found="yes"
6819 fi
6820 fi
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836 xorg_testset_save_CFLAGS="$CFLAGS"
6837
6838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6841 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6842 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6843 then :
6844 printf %s "(cached) " >&6
6845 else case e in #(
6846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6847 /* end confdefs.h. */
6848 int i;
6849 _ACEOF
6850 if ac_fn_c_try_compile "$LINENO"
6851 then :
6852 xorg_cv_cc_flag_unknown_warning_option=yes
6853 else case e in #(
6854 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6855 esac
6856 fi
6857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6858 esac
6859 fi
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6861 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6863 CFLAGS="$xorg_testset_save_CFLAGS"
6864 fi
6865
6866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6869 fi
6870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6872 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6873 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6874 then :
6875 printf %s "(cached) " >&6
6876 else case e in #(
6877 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6879 int i;
6880 _ACEOF
6881 if ac_fn_c_try_compile "$LINENO"
6882 then :
6883 xorg_cv_cc_flag_unused_command_line_argument=yes
6884 else case e in #(
6885 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6886 esac
6887 fi
6888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6889 esac
6890 fi
6891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6892 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6894 CFLAGS="$xorg_testset_save_CFLAGS"
6895 fi
6896
6897 found="no"
6898
6899 if test $found = "no" ; then
6900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6902 fi
6903
6904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6906 fi
6907
6908 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6909
6910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6911 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6912 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6913 if eval test \${$cacheid+y}
6914 then :
6915 printf %s "(cached) " >&6
6916 else case e in #(
6917 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6919 int i;
6920 int
6921 main (void)
6922 {
6923
6924 ;
6925 return 0;
6926 }
6927 _ACEOF
6928 if ac_fn_c_try_link "$LINENO"
6929 then :
6930 eval $cacheid=yes
6931 else case e in #(
6932 e) eval $cacheid=no ;;
6933 esac
6934 fi
6935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6936 conftest$ac_exeext conftest.$ac_ext ;;
6937 esac
6938 fi
6939
6940
6941 CFLAGS="$xorg_testset_save_CFLAGS"
6942
6943 eval supported=\$$cacheid
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6945 printf "%s\n" "$supported" >&6; }
6946 if test "$supported" = "yes" ; then
6947 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6948 found="yes"
6949 fi
6950 fi
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966 xorg_testset_save_CFLAGS="$CFLAGS"
6967
6968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6971 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6972 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6973 then :
6974 printf %s "(cached) " >&6
6975 else case e in #(
6976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6977 /* end confdefs.h. */
6978 int i;
6979 _ACEOF
6980 if ac_fn_c_try_compile "$LINENO"
6981 then :
6982 xorg_cv_cc_flag_unknown_warning_option=yes
6983 else case e in #(
6984 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6985 esac
6986 fi
6987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6988 esac
6989 fi
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6991 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6993 CFLAGS="$xorg_testset_save_CFLAGS"
6994 fi
6995
6996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6999 fi
7000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7002 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7003 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7004 then :
7005 printf %s "(cached) " >&6
7006 else case e in #(
7007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7009 int i;
7010 _ACEOF
7011 if ac_fn_c_try_compile "$LINENO"
7012 then :
7013 xorg_cv_cc_flag_unused_command_line_argument=yes
7014 else case e in #(
7015 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7016 esac
7017 fi
7018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7019 esac
7020 fi
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7022 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7024 CFLAGS="$xorg_testset_save_CFLAGS"
7025 fi
7026
7027 found="no"
7028
7029 if test $found = "no" ; then
7030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7032 fi
7033
7034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7036 fi
7037
7038 CFLAGS="$CFLAGS -Wredundant-decls"
7039
7040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7041 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7042 cacheid=xorg_cv_cc_flag__Wredundant_decls
7043 if eval test \${$cacheid+y}
7044 then :
7045 printf %s "(cached) " >&6
7046 else case e in #(
7047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7048 /* end confdefs.h. */
7049 int i;
7050 int
7051 main (void)
7052 {
7053
7054 ;
7055 return 0;
7056 }
7057 _ACEOF
7058 if ac_fn_c_try_link "$LINENO"
7059 then :
7060 eval $cacheid=yes
7061 else case e in #(
7062 e) eval $cacheid=no ;;
7063 esac
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7066 conftest$ac_exeext conftest.$ac_ext ;;
7067 esac
7068 fi
7069
7070
7071 CFLAGS="$xorg_testset_save_CFLAGS"
7072
7073 eval supported=\$$cacheid
7074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7075 printf "%s\n" "$supported" >&6; }
7076 if test "$supported" = "yes" ; then
7077 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7078 found="yes"
7079 fi
7080 fi
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096 xorg_testset_save_CFLAGS="$CFLAGS"
7097
7098 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7101 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7102 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7103 then :
7104 printf %s "(cached) " >&6
7105 else case e in #(
7106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7108 int i;
7109 _ACEOF
7110 if ac_fn_c_try_compile "$LINENO"
7111 then :
7112 xorg_cv_cc_flag_unknown_warning_option=yes
7113 else case e in #(
7114 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7115 esac
7116 fi
7117 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7118 esac
7119 fi
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7121 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7122 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7123 CFLAGS="$xorg_testset_save_CFLAGS"
7124 fi
7125
7126 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7129 fi
7130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7132 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7133 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7134 then :
7135 printf %s "(cached) " >&6
7136 else case e in #(
7137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138 /* end confdefs.h. */
7139 int i;
7140 _ACEOF
7141 if ac_fn_c_try_compile "$LINENO"
7142 then :
7143 xorg_cv_cc_flag_unused_command_line_argument=yes
7144 else case e in #(
7145 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7146 esac
7147 fi
7148 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7149 esac
7150 fi
7151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7152 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7153 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7154 CFLAGS="$xorg_testset_save_CFLAGS"
7155 fi
7156
7157 found="no"
7158
7159 if test $found = "no" ; then
7160 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7162 fi
7163
7164 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7166 fi
7167
7168 CFLAGS="$CFLAGS -Wlogical-op"
7169
7170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7171 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7172 cacheid=xorg_cv_cc_flag__Wlogical_op
7173 if eval test \${$cacheid+y}
7174 then :
7175 printf %s "(cached) " >&6
7176 else case e in #(
7177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 int i;
7180 int
7181 main (void)
7182 {
7183
7184 ;
7185 return 0;
7186 }
7187 _ACEOF
7188 if ac_fn_c_try_link "$LINENO"
7189 then :
7190 eval $cacheid=yes
7191 else case e in #(
7192 e) eval $cacheid=no ;;
7193 esac
7194 fi
7195 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7196 conftest$ac_exeext conftest.$ac_ext ;;
7197 esac
7198 fi
7199
7200
7201 CFLAGS="$xorg_testset_save_CFLAGS"
7202
7203 eval supported=\$$cacheid
7204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7205 printf "%s\n" "$supported" >&6; }
7206 if test "$supported" = "yes" ; then
7207 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7208 found="yes"
7209 fi
7210 fi
7211
7212
7213
7214 # These are currently disabled because they are noisy. They will be enabled
7215 # in the future once the codebase is sufficiently modernized to silence
7216 # them. For now, I don't want them to drown out the other warnings.
7217 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7218 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7219 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7220
7221 # Turn some warnings into errors, so we don't accidentally get successful builds
7222 # when there are problems that should be fixed.
7223
7224 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238 xorg_testset_save_CFLAGS="$CFLAGS"
7239
7240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7243 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7244 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7245 then :
7246 printf %s "(cached) " >&6
7247 else case e in #(
7248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7250 int i;
7251 _ACEOF
7252 if ac_fn_c_try_compile "$LINENO"
7253 then :
7254 xorg_cv_cc_flag_unknown_warning_option=yes
7255 else case e in #(
7256 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7257 esac
7258 fi
7259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7260 esac
7261 fi
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7263 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7265 CFLAGS="$xorg_testset_save_CFLAGS"
7266 fi
7267
7268 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7271 fi
7272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7274 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7275 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7276 then :
7277 printf %s "(cached) " >&6
7278 else case e in #(
7279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7281 int i;
7282 _ACEOF
7283 if ac_fn_c_try_compile "$LINENO"
7284 then :
7285 xorg_cv_cc_flag_unused_command_line_argument=yes
7286 else case e in #(
7287 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7288 esac
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7291 esac
7292 fi
7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7294 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7296 CFLAGS="$xorg_testset_save_CFLAGS"
7297 fi
7298
7299 found="no"
7300
7301 if test $found = "no" ; then
7302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7304 fi
7305
7306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7308 fi
7309
7310 CFLAGS="$CFLAGS -Werror=implicit"
7311
7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7313 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7314 cacheid=xorg_cv_cc_flag__Werror_implicit
7315 if eval test \${$cacheid+y}
7316 then :
7317 printf %s "(cached) " >&6
7318 else case e in #(
7319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7321 int i;
7322 int
7323 main (void)
7324 {
7325
7326 ;
7327 return 0;
7328 }
7329 _ACEOF
7330 if ac_fn_c_try_link "$LINENO"
7331 then :
7332 eval $cacheid=yes
7333 else case e in #(
7334 e) eval $cacheid=no ;;
7335 esac
7336 fi
7337 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7338 conftest$ac_exeext conftest.$ac_ext ;;
7339 esac
7340 fi
7341
7342
7343 CFLAGS="$xorg_testset_save_CFLAGS"
7344
7345 eval supported=\$$cacheid
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7347 printf "%s\n" "$supported" >&6; }
7348 if test "$supported" = "yes" ; then
7349 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7350 found="yes"
7351 fi
7352 fi
7353
7354 if test $found = "no" ; then
7355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7357 fi
7358
7359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7361 fi
7362
7363 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7364
7365 { 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
7366 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7367 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7368 if eval test \${$cacheid+y}
7369 then :
7370 printf %s "(cached) " >&6
7371 else case e in #(
7372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7374 int i;
7375 int
7376 main (void)
7377 {
7378
7379 ;
7380 return 0;
7381 }
7382 _ACEOF
7383 if ac_fn_c_try_link "$LINENO"
7384 then :
7385 eval $cacheid=yes
7386 else case e in #(
7387 e) eval $cacheid=no ;;
7388 esac
7389 fi
7390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7391 conftest$ac_exeext conftest.$ac_ext ;;
7392 esac
7393 fi
7394
7395
7396 CFLAGS="$xorg_testset_save_CFLAGS"
7397
7398 eval supported=\$$cacheid
7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7400 printf "%s\n" "$supported" >&6; }
7401 if test "$supported" = "yes" ; then
7402 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7403 found="yes"
7404 fi
7405 fi
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421 xorg_testset_save_CFLAGS="$CFLAGS"
7422
7423 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7426 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7427 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7428 then :
7429 printf %s "(cached) " >&6
7430 else case e in #(
7431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7432 /* end confdefs.h. */
7433 int i;
7434 _ACEOF
7435 if ac_fn_c_try_compile "$LINENO"
7436 then :
7437 xorg_cv_cc_flag_unknown_warning_option=yes
7438 else case e in #(
7439 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7440 esac
7441 fi
7442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7443 esac
7444 fi
7445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7446 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7447 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7448 CFLAGS="$xorg_testset_save_CFLAGS"
7449 fi
7450
7451 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7452 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7454 fi
7455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7457 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7458 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7459 then :
7460 printf %s "(cached) " >&6
7461 else case e in #(
7462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7463 /* end confdefs.h. */
7464 int i;
7465 _ACEOF
7466 if ac_fn_c_try_compile "$LINENO"
7467 then :
7468 xorg_cv_cc_flag_unused_command_line_argument=yes
7469 else case e in #(
7470 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7471 esac
7472 fi
7473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7474 esac
7475 fi
7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7477 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7478 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7479 CFLAGS="$xorg_testset_save_CFLAGS"
7480 fi
7481
7482 found="no"
7483
7484 if test $found = "no" ; then
7485 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7487 fi
7488
7489 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7490 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7491 fi
7492
7493 CFLAGS="$CFLAGS -Werror=nonnull"
7494
7495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7496 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7497 cacheid=xorg_cv_cc_flag__Werror_nonnull
7498 if eval test \${$cacheid+y}
7499 then :
7500 printf %s "(cached) " >&6
7501 else case e in #(
7502 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7503 /* end confdefs.h. */
7504 int i;
7505 int
7506 main (void)
7507 {
7508
7509 ;
7510 return 0;
7511 }
7512 _ACEOF
7513 if ac_fn_c_try_link "$LINENO"
7514 then :
7515 eval $cacheid=yes
7516 else case e in #(
7517 e) eval $cacheid=no ;;
7518 esac
7519 fi
7520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7521 conftest$ac_exeext conftest.$ac_ext ;;
7522 esac
7523 fi
7524
7525
7526 CFLAGS="$xorg_testset_save_CFLAGS"
7527
7528 eval supported=\$$cacheid
7529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7530 printf "%s\n" "$supported" >&6; }
7531 if test "$supported" = "yes" ; then
7532 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7533 found="yes"
7534 fi
7535 fi
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551 xorg_testset_save_CFLAGS="$CFLAGS"
7552
7553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7556 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7557 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7558 then :
7559 printf %s "(cached) " >&6
7560 else case e in #(
7561 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7562 /* end confdefs.h. */
7563 int i;
7564 _ACEOF
7565 if ac_fn_c_try_compile "$LINENO"
7566 then :
7567 xorg_cv_cc_flag_unknown_warning_option=yes
7568 else case e in #(
7569 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7570 esac
7571 fi
7572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7573 esac
7574 fi
7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7576 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7578 CFLAGS="$xorg_testset_save_CFLAGS"
7579 fi
7580
7581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7584 fi
7585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7587 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7588 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7589 then :
7590 printf %s "(cached) " >&6
7591 else case e in #(
7592 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7593 /* end confdefs.h. */
7594 int i;
7595 _ACEOF
7596 if ac_fn_c_try_compile "$LINENO"
7597 then :
7598 xorg_cv_cc_flag_unused_command_line_argument=yes
7599 else case e in #(
7600 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7601 esac
7602 fi
7603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7604 esac
7605 fi
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7607 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7608 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7609 CFLAGS="$xorg_testset_save_CFLAGS"
7610 fi
7611
7612 found="no"
7613
7614 if test $found = "no" ; then
7615 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7617 fi
7618
7619 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7621 fi
7622
7623 CFLAGS="$CFLAGS -Werror=init-self"
7624
7625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7626 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7627 cacheid=xorg_cv_cc_flag__Werror_init_self
7628 if eval test \${$cacheid+y}
7629 then :
7630 printf %s "(cached) " >&6
7631 else case e in #(
7632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7634 int i;
7635 int
7636 main (void)
7637 {
7638
7639 ;
7640 return 0;
7641 }
7642 _ACEOF
7643 if ac_fn_c_try_link "$LINENO"
7644 then :
7645 eval $cacheid=yes
7646 else case e in #(
7647 e) eval $cacheid=no ;;
7648 esac
7649 fi
7650 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7651 conftest$ac_exeext conftest.$ac_ext ;;
7652 esac
7653 fi
7654
7655
7656 CFLAGS="$xorg_testset_save_CFLAGS"
7657
7658 eval supported=\$$cacheid
7659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7660 printf "%s\n" "$supported" >&6; }
7661 if test "$supported" = "yes" ; then
7662 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7663 found="yes"
7664 fi
7665 fi
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681 xorg_testset_save_CFLAGS="$CFLAGS"
7682
7683 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7686 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7687 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7688 then :
7689 printf %s "(cached) " >&6
7690 else case e in #(
7691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7692 /* end confdefs.h. */
7693 int i;
7694 _ACEOF
7695 if ac_fn_c_try_compile "$LINENO"
7696 then :
7697 xorg_cv_cc_flag_unknown_warning_option=yes
7698 else case e in #(
7699 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7700 esac
7701 fi
7702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7703 esac
7704 fi
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7706 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7708 CFLAGS="$xorg_testset_save_CFLAGS"
7709 fi
7710
7711 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7713 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7714 fi
7715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7717 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7718 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7719 then :
7720 printf %s "(cached) " >&6
7721 else case e in #(
7722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 int i;
7725 _ACEOF
7726 if ac_fn_c_try_compile "$LINENO"
7727 then :
7728 xorg_cv_cc_flag_unused_command_line_argument=yes
7729 else case e in #(
7730 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7731 esac
7732 fi
7733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7734 esac
7735 fi
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7737 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7739 CFLAGS="$xorg_testset_save_CFLAGS"
7740 fi
7741
7742 found="no"
7743
7744 if test $found = "no" ; then
7745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7747 fi
7748
7749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7751 fi
7752
7753 CFLAGS="$CFLAGS -Werror=main"
7754
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7756 printf %s "checking if $CC supports -Werror=main... " >&6; }
7757 cacheid=xorg_cv_cc_flag__Werror_main
7758 if eval test \${$cacheid+y}
7759 then :
7760 printf %s "(cached) " >&6
7761 else case e in #(
7762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 int i;
7765 int
7766 main (void)
7767 {
7768
7769 ;
7770 return 0;
7771 }
7772 _ACEOF
7773 if ac_fn_c_try_link "$LINENO"
7774 then :
7775 eval $cacheid=yes
7776 else case e in #(
7777 e) eval $cacheid=no ;;
7778 esac
7779 fi
7780 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7781 conftest$ac_exeext conftest.$ac_ext ;;
7782 esac
7783 fi
7784
7785
7786 CFLAGS="$xorg_testset_save_CFLAGS"
7787
7788 eval supported=\$$cacheid
7789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7790 printf "%s\n" "$supported" >&6; }
7791 if test "$supported" = "yes" ; then
7792 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7793 found="yes"
7794 fi
7795 fi
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811 xorg_testset_save_CFLAGS="$CFLAGS"
7812
7813 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7816 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7817 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7818 then :
7819 printf %s "(cached) " >&6
7820 else case e in #(
7821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7823 int i;
7824 _ACEOF
7825 if ac_fn_c_try_compile "$LINENO"
7826 then :
7827 xorg_cv_cc_flag_unknown_warning_option=yes
7828 else case e in #(
7829 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7830 esac
7831 fi
7832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7833 esac
7834 fi
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7836 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7837 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7838 CFLAGS="$xorg_testset_save_CFLAGS"
7839 fi
7840
7841 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7842 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7844 fi
7845 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7847 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7848 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7849 then :
7850 printf %s "(cached) " >&6
7851 else case e in #(
7852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7854 int i;
7855 _ACEOF
7856 if ac_fn_c_try_compile "$LINENO"
7857 then :
7858 xorg_cv_cc_flag_unused_command_line_argument=yes
7859 else case e in #(
7860 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7861 esac
7862 fi
7863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7864 esac
7865 fi
7866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7867 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7869 CFLAGS="$xorg_testset_save_CFLAGS"
7870 fi
7871
7872 found="no"
7873
7874 if test $found = "no" ; then
7875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7877 fi
7878
7879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7881 fi
7882
7883 CFLAGS="$CFLAGS -Werror=missing-braces"
7884
7885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7886 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7887 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7888 if eval test \${$cacheid+y}
7889 then :
7890 printf %s "(cached) " >&6
7891 else case e in #(
7892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h. */
7894 int i;
7895 int
7896 main (void)
7897 {
7898
7899 ;
7900 return 0;
7901 }
7902 _ACEOF
7903 if ac_fn_c_try_link "$LINENO"
7904 then :
7905 eval $cacheid=yes
7906 else case e in #(
7907 e) eval $cacheid=no ;;
7908 esac
7909 fi
7910 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7911 conftest$ac_exeext conftest.$ac_ext ;;
7912 esac
7913 fi
7914
7915
7916 CFLAGS="$xorg_testset_save_CFLAGS"
7917
7918 eval supported=\$$cacheid
7919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7920 printf "%s\n" "$supported" >&6; }
7921 if test "$supported" = "yes" ; then
7922 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7923 found="yes"
7924 fi
7925 fi
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941 xorg_testset_save_CFLAGS="$CFLAGS"
7942
7943 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7946 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7947 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7948 then :
7949 printf %s "(cached) " >&6
7950 else case e in #(
7951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7953 int i;
7954 _ACEOF
7955 if ac_fn_c_try_compile "$LINENO"
7956 then :
7957 xorg_cv_cc_flag_unknown_warning_option=yes
7958 else case e in #(
7959 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7960 esac
7961 fi
7962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7963 esac
7964 fi
7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7966 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7967 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7968 CFLAGS="$xorg_testset_save_CFLAGS"
7969 fi
7970
7971 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7974 fi
7975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7977 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7978 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7979 then :
7980 printf %s "(cached) " >&6
7981 else case e in #(
7982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7984 int i;
7985 _ACEOF
7986 if ac_fn_c_try_compile "$LINENO"
7987 then :
7988 xorg_cv_cc_flag_unused_command_line_argument=yes
7989 else case e in #(
7990 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7991 esac
7992 fi
7993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7994 esac
7995 fi
7996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7997 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7999 CFLAGS="$xorg_testset_save_CFLAGS"
8000 fi
8001
8002 found="no"
8003
8004 if test $found = "no" ; then
8005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8007 fi
8008
8009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8011 fi
8012
8013 CFLAGS="$CFLAGS -Werror=sequence-point"
8014
8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8016 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8017 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8018 if eval test \${$cacheid+y}
8019 then :
8020 printf %s "(cached) " >&6
8021 else case e in #(
8022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8024 int i;
8025 int
8026 main (void)
8027 {
8028
8029 ;
8030 return 0;
8031 }
8032 _ACEOF
8033 if ac_fn_c_try_link "$LINENO"
8034 then :
8035 eval $cacheid=yes
8036 else case e in #(
8037 e) eval $cacheid=no ;;
8038 esac
8039 fi
8040 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8041 conftest$ac_exeext conftest.$ac_ext ;;
8042 esac
8043 fi
8044
8045
8046 CFLAGS="$xorg_testset_save_CFLAGS"
8047
8048 eval supported=\$$cacheid
8049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8050 printf "%s\n" "$supported" >&6; }
8051 if test "$supported" = "yes" ; then
8052 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8053 found="yes"
8054 fi
8055 fi
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071 xorg_testset_save_CFLAGS="$CFLAGS"
8072
8073 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8076 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8077 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8078 then :
8079 printf %s "(cached) " >&6
8080 else case e in #(
8081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083 int i;
8084 _ACEOF
8085 if ac_fn_c_try_compile "$LINENO"
8086 then :
8087 xorg_cv_cc_flag_unknown_warning_option=yes
8088 else case e in #(
8089 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8090 esac
8091 fi
8092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8093 esac
8094 fi
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8096 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8098 CFLAGS="$xorg_testset_save_CFLAGS"
8099 fi
8100
8101 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8104 fi
8105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8107 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8108 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8109 then :
8110 printf %s "(cached) " >&6
8111 else case e in #(
8112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114 int i;
8115 _ACEOF
8116 if ac_fn_c_try_compile "$LINENO"
8117 then :
8118 xorg_cv_cc_flag_unused_command_line_argument=yes
8119 else case e in #(
8120 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8121 esac
8122 fi
8123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8124 esac
8125 fi
8126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8127 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8128 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8129 CFLAGS="$xorg_testset_save_CFLAGS"
8130 fi
8131
8132 found="no"
8133
8134 if test $found = "no" ; then
8135 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8136 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8137 fi
8138
8139 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8141 fi
8142
8143 CFLAGS="$CFLAGS -Werror=return-type"
8144
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8146 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8147 cacheid=xorg_cv_cc_flag__Werror_return_type
8148 if eval test \${$cacheid+y}
8149 then :
8150 printf %s "(cached) " >&6
8151 else case e in #(
8152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8153 /* end confdefs.h. */
8154 int i;
8155 int
8156 main (void)
8157 {
8158
8159 ;
8160 return 0;
8161 }
8162 _ACEOF
8163 if ac_fn_c_try_link "$LINENO"
8164 then :
8165 eval $cacheid=yes
8166 else case e in #(
8167 e) eval $cacheid=no ;;
8168 esac
8169 fi
8170 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8171 conftest$ac_exeext conftest.$ac_ext ;;
8172 esac
8173 fi
8174
8175
8176 CFLAGS="$xorg_testset_save_CFLAGS"
8177
8178 eval supported=\$$cacheid
8179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8180 printf "%s\n" "$supported" >&6; }
8181 if test "$supported" = "yes" ; then
8182 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8183 found="yes"
8184 fi
8185 fi
8186
8187 if test $found = "no" ; then
8188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8190 fi
8191
8192 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8194 fi
8195
8196 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8197
8198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8199 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8200 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8201 if eval test \${$cacheid+y}
8202 then :
8203 printf %s "(cached) " >&6
8204 else case e in #(
8205 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8206 /* end confdefs.h. */
8207 int i;
8208 int
8209 main (void)
8210 {
8211
8212 ;
8213 return 0;
8214 }
8215 _ACEOF
8216 if ac_fn_c_try_link "$LINENO"
8217 then :
8218 eval $cacheid=yes
8219 else case e in #(
8220 e) eval $cacheid=no ;;
8221 esac
8222 fi
8223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8224 conftest$ac_exeext conftest.$ac_ext ;;
8225 esac
8226 fi
8227
8228
8229 CFLAGS="$xorg_testset_save_CFLAGS"
8230
8231 eval supported=\$$cacheid
8232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8233 printf "%s\n" "$supported" >&6; }
8234 if test "$supported" = "yes" ; then
8235 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8236 found="yes"
8237 fi
8238 fi
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254 xorg_testset_save_CFLAGS="$CFLAGS"
8255
8256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8259 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8260 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8261 then :
8262 printf %s "(cached) " >&6
8263 else case e in #(
8264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8266 int i;
8267 _ACEOF
8268 if ac_fn_c_try_compile "$LINENO"
8269 then :
8270 xorg_cv_cc_flag_unknown_warning_option=yes
8271 else case e in #(
8272 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8273 esac
8274 fi
8275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8276 esac
8277 fi
8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8279 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8281 CFLAGS="$xorg_testset_save_CFLAGS"
8282 fi
8283
8284 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8287 fi
8288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8290 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8291 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8292 then :
8293 printf %s "(cached) " >&6
8294 else case e in #(
8295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h. */
8297 int i;
8298 _ACEOF
8299 if ac_fn_c_try_compile "$LINENO"
8300 then :
8301 xorg_cv_cc_flag_unused_command_line_argument=yes
8302 else case e in #(
8303 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8304 esac
8305 fi
8306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8307 esac
8308 fi
8309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8310 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8312 CFLAGS="$xorg_testset_save_CFLAGS"
8313 fi
8314
8315 found="no"
8316
8317 if test $found = "no" ; then
8318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8320 fi
8321
8322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8324 fi
8325
8326 CFLAGS="$CFLAGS -Werror=trigraphs"
8327
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8329 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8330 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8331 if eval test \${$cacheid+y}
8332 then :
8333 printf %s "(cached) " >&6
8334 else case e in #(
8335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336 /* end confdefs.h. */
8337 int i;
8338 int
8339 main (void)
8340 {
8341
8342 ;
8343 return 0;
8344 }
8345 _ACEOF
8346 if ac_fn_c_try_link "$LINENO"
8347 then :
8348 eval $cacheid=yes
8349 else case e in #(
8350 e) eval $cacheid=no ;;
8351 esac
8352 fi
8353 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8354 conftest$ac_exeext conftest.$ac_ext ;;
8355 esac
8356 fi
8357
8358
8359 CFLAGS="$xorg_testset_save_CFLAGS"
8360
8361 eval supported=\$$cacheid
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8363 printf "%s\n" "$supported" >&6; }
8364 if test "$supported" = "yes" ; then
8365 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8366 found="yes"
8367 fi
8368 fi
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384 xorg_testset_save_CFLAGS="$CFLAGS"
8385
8386 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8389 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8390 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8391 then :
8392 printf %s "(cached) " >&6
8393 else case e in #(
8394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8396 int i;
8397 _ACEOF
8398 if ac_fn_c_try_compile "$LINENO"
8399 then :
8400 xorg_cv_cc_flag_unknown_warning_option=yes
8401 else case e in #(
8402 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8403 esac
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8406 esac
8407 fi
8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8409 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8411 CFLAGS="$xorg_testset_save_CFLAGS"
8412 fi
8413
8414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8417 fi
8418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8420 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8421 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8422 then :
8423 printf %s "(cached) " >&6
8424 else case e in #(
8425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8426 /* end confdefs.h. */
8427 int i;
8428 _ACEOF
8429 if ac_fn_c_try_compile "$LINENO"
8430 then :
8431 xorg_cv_cc_flag_unused_command_line_argument=yes
8432 else case e in #(
8433 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8434 esac
8435 fi
8436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8437 esac
8438 fi
8439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8440 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8441 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8442 CFLAGS="$xorg_testset_save_CFLAGS"
8443 fi
8444
8445 found="no"
8446
8447 if test $found = "no" ; then
8448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8450 fi
8451
8452 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8454 fi
8455
8456 CFLAGS="$CFLAGS -Werror=array-bounds"
8457
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8459 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8460 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8461 if eval test \${$cacheid+y}
8462 then :
8463 printf %s "(cached) " >&6
8464 else case e in #(
8465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8466 /* end confdefs.h. */
8467 int i;
8468 int
8469 main (void)
8470 {
8471
8472 ;
8473 return 0;
8474 }
8475 _ACEOF
8476 if ac_fn_c_try_link "$LINENO"
8477 then :
8478 eval $cacheid=yes
8479 else case e in #(
8480 e) eval $cacheid=no ;;
8481 esac
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8484 conftest$ac_exeext conftest.$ac_ext ;;
8485 esac
8486 fi
8487
8488
8489 CFLAGS="$xorg_testset_save_CFLAGS"
8490
8491 eval supported=\$$cacheid
8492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8493 printf "%s\n" "$supported" >&6; }
8494 if test "$supported" = "yes" ; then
8495 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8496 found="yes"
8497 fi
8498 fi
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514 xorg_testset_save_CFLAGS="$CFLAGS"
8515
8516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8519 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8520 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8521 then :
8522 printf %s "(cached) " >&6
8523 else case e in #(
8524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 int i;
8527 _ACEOF
8528 if ac_fn_c_try_compile "$LINENO"
8529 then :
8530 xorg_cv_cc_flag_unknown_warning_option=yes
8531 else case e in #(
8532 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8533 esac
8534 fi
8535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8536 esac
8537 fi
8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8539 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8541 CFLAGS="$xorg_testset_save_CFLAGS"
8542 fi
8543
8544 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8547 fi
8548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8550 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8551 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8552 then :
8553 printf %s "(cached) " >&6
8554 else case e in #(
8555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h. */
8557 int i;
8558 _ACEOF
8559 if ac_fn_c_try_compile "$LINENO"
8560 then :
8561 xorg_cv_cc_flag_unused_command_line_argument=yes
8562 else case e in #(
8563 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8564 esac
8565 fi
8566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8567 esac
8568 fi
8569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8570 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8571 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8572 CFLAGS="$xorg_testset_save_CFLAGS"
8573 fi
8574
8575 found="no"
8576
8577 if test $found = "no" ; then
8578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8580 fi
8581
8582 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8583 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8584 fi
8585
8586 CFLAGS="$CFLAGS -Werror=write-strings"
8587
8588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8589 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8590 cacheid=xorg_cv_cc_flag__Werror_write_strings
8591 if eval test \${$cacheid+y}
8592 then :
8593 printf %s "(cached) " >&6
8594 else case e in #(
8595 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8596 /* end confdefs.h. */
8597 int i;
8598 int
8599 main (void)
8600 {
8601
8602 ;
8603 return 0;
8604 }
8605 _ACEOF
8606 if ac_fn_c_try_link "$LINENO"
8607 then :
8608 eval $cacheid=yes
8609 else case e in #(
8610 e) eval $cacheid=no ;;
8611 esac
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8614 conftest$ac_exeext conftest.$ac_ext ;;
8615 esac
8616 fi
8617
8618
8619 CFLAGS="$xorg_testset_save_CFLAGS"
8620
8621 eval supported=\$$cacheid
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8623 printf "%s\n" "$supported" >&6; }
8624 if test "$supported" = "yes" ; then
8625 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8626 found="yes"
8627 fi
8628 fi
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644 xorg_testset_save_CFLAGS="$CFLAGS"
8645
8646 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8649 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8650 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8651 then :
8652 printf %s "(cached) " >&6
8653 else case e in #(
8654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8656 int i;
8657 _ACEOF
8658 if ac_fn_c_try_compile "$LINENO"
8659 then :
8660 xorg_cv_cc_flag_unknown_warning_option=yes
8661 else case e in #(
8662 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8663 esac
8664 fi
8665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8666 esac
8667 fi
8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8669 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8670 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8671 CFLAGS="$xorg_testset_save_CFLAGS"
8672 fi
8673
8674 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8675 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8677 fi
8678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8680 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8681 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8682 then :
8683 printf %s "(cached) " >&6
8684 else case e in #(
8685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 int i;
8688 _ACEOF
8689 if ac_fn_c_try_compile "$LINENO"
8690 then :
8691 xorg_cv_cc_flag_unused_command_line_argument=yes
8692 else case e in #(
8693 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8694 esac
8695 fi
8696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8697 esac
8698 fi
8699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8700 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8701 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8702 CFLAGS="$xorg_testset_save_CFLAGS"
8703 fi
8704
8705 found="no"
8706
8707 if test $found = "no" ; then
8708 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8710 fi
8711
8712 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8714 fi
8715
8716 CFLAGS="$CFLAGS -Werror=address"
8717
8718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8719 printf %s "checking if $CC supports -Werror=address... " >&6; }
8720 cacheid=xorg_cv_cc_flag__Werror_address
8721 if eval test \${$cacheid+y}
8722 then :
8723 printf %s "(cached) " >&6
8724 else case e in #(
8725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8727 int i;
8728 int
8729 main (void)
8730 {
8731
8732 ;
8733 return 0;
8734 }
8735 _ACEOF
8736 if ac_fn_c_try_link "$LINENO"
8737 then :
8738 eval $cacheid=yes
8739 else case e in #(
8740 e) eval $cacheid=no ;;
8741 esac
8742 fi
8743 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8744 conftest$ac_exeext conftest.$ac_ext ;;
8745 esac
8746 fi
8747
8748
8749 CFLAGS="$xorg_testset_save_CFLAGS"
8750
8751 eval supported=\$$cacheid
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8753 printf "%s\n" "$supported" >&6; }
8754 if test "$supported" = "yes" ; then
8755 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8756 found="yes"
8757 fi
8758 fi
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774 xorg_testset_save_CFLAGS="$CFLAGS"
8775
8776 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8779 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8780 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8781 then :
8782 printf %s "(cached) " >&6
8783 else case e in #(
8784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8786 int i;
8787 _ACEOF
8788 if ac_fn_c_try_compile "$LINENO"
8789 then :
8790 xorg_cv_cc_flag_unknown_warning_option=yes
8791 else case e in #(
8792 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8793 esac
8794 fi
8795 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8796 esac
8797 fi
8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8799 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8800 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8801 CFLAGS="$xorg_testset_save_CFLAGS"
8802 fi
8803
8804 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8805 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8806 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8807 fi
8808 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8810 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8811 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8812 then :
8813 printf %s "(cached) " >&6
8814 else case e in #(
8815 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8816 /* end confdefs.h. */
8817 int i;
8818 _ACEOF
8819 if ac_fn_c_try_compile "$LINENO"
8820 then :
8821 xorg_cv_cc_flag_unused_command_line_argument=yes
8822 else case e in #(
8823 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8824 esac
8825 fi
8826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8827 esac
8828 fi
8829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8830 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8832 CFLAGS="$xorg_testset_save_CFLAGS"
8833 fi
8834
8835 found="no"
8836
8837 if test $found = "no" ; then
8838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8840 fi
8841
8842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8844 fi
8845
8846 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8847
8848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8849 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8850 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8851 if eval test \${$cacheid+y}
8852 then :
8853 printf %s "(cached) " >&6
8854 else case e in #(
8855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8857 int i;
8858 int
8859 main (void)
8860 {
8861
8862 ;
8863 return 0;
8864 }
8865 _ACEOF
8866 if ac_fn_c_try_link "$LINENO"
8867 then :
8868 eval $cacheid=yes
8869 else case e in #(
8870 e) eval $cacheid=no ;;
8871 esac
8872 fi
8873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8874 conftest$ac_exeext conftest.$ac_ext ;;
8875 esac
8876 fi
8877
8878
8879 CFLAGS="$xorg_testset_save_CFLAGS"
8880
8881 eval supported=\$$cacheid
8882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8883 printf "%s\n" "$supported" >&6; }
8884 if test "$supported" = "yes" ; then
8885 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8886 found="yes"
8887 fi
8888 fi
8889
8890 if test $found = "no" ; then
8891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893 fi
8894
8895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8897 fi
8898
8899 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8900
8901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8902 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8903 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8904 if eval test \${$cacheid+y}
8905 then :
8906 printf %s "(cached) " >&6
8907 else case e in #(
8908 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8909 /* end confdefs.h. */
8910 int i;
8911 int
8912 main (void)
8913 {
8914
8915 ;
8916 return 0;
8917 }
8918 _ACEOF
8919 if ac_fn_c_try_link "$LINENO"
8920 then :
8921 eval $cacheid=yes
8922 else case e in #(
8923 e) eval $cacheid=no ;;
8924 esac
8925 fi
8926 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8927 conftest$ac_exeext conftest.$ac_ext ;;
8928 esac
8929 fi
8930
8931
8932 CFLAGS="$xorg_testset_save_CFLAGS"
8933
8934 eval supported=\$$cacheid
8935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8936 printf "%s\n" "$supported" >&6; }
8937 if test "$supported" = "yes" ; then
8938 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8939 found="yes"
8940 fi
8941 fi
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957 xorg_testset_save_CFLAGS="$CFLAGS"
8958
8959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8963 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8964 then :
8965 printf %s "(cached) " >&6
8966 else case e in #(
8967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8969 int i;
8970 _ACEOF
8971 if ac_fn_c_try_compile "$LINENO"
8972 then :
8973 xorg_cv_cc_flag_unknown_warning_option=yes
8974 else case e in #(
8975 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8976 esac
8977 fi
8978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8979 esac
8980 fi
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8982 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8983 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8984 CFLAGS="$xorg_testset_save_CFLAGS"
8985 fi
8986
8987 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8988 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8990 fi
8991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8993 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8994 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8995 then :
8996 printf %s "(cached) " >&6
8997 else case e in #(
8998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999 /* end confdefs.h. */
9000 int i;
9001 _ACEOF
9002 if ac_fn_c_try_compile "$LINENO"
9003 then :
9004 xorg_cv_cc_flag_unused_command_line_argument=yes
9005 else case e in #(
9006 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9007 esac
9008 fi
9009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9010 esac
9011 fi
9012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9013 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9015 CFLAGS="$xorg_testset_save_CFLAGS"
9016 fi
9017
9018 found="no"
9019
9020 if test $found = "no" ; then
9021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9023 fi
9024
9025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9027 fi
9028
9029 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9030
9031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9032 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9033 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9034 if eval test \${$cacheid+y}
9035 then :
9036 printf %s "(cached) " >&6
9037 else case e in #(
9038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9039 /* end confdefs.h. */
9040 int i;
9041 int
9042 main (void)
9043 {
9044
9045 ;
9046 return 0;
9047 }
9048 _ACEOF
9049 if ac_fn_c_try_link "$LINENO"
9050 then :
9051 eval $cacheid=yes
9052 else case e in #(
9053 e) eval $cacheid=no ;;
9054 esac
9055 fi
9056 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9057 conftest$ac_exeext conftest.$ac_ext ;;
9058 esac
9059 fi
9060
9061
9062 CFLAGS="$xorg_testset_save_CFLAGS"
9063
9064 eval supported=\$$cacheid
9065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9066 printf "%s\n" "$supported" >&6; }
9067 if test "$supported" = "yes" ; then
9068 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9069 found="yes"
9070 fi
9071 fi
9072
9073 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9074 else
9075 { 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
9076 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;}
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090 xorg_testset_save_CFLAGS="$CFLAGS"
9091
9092 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9095 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9096 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9097 then :
9098 printf %s "(cached) " >&6
9099 else case e in #(
9100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9102 int i;
9103 _ACEOF
9104 if ac_fn_c_try_compile "$LINENO"
9105 then :
9106 xorg_cv_cc_flag_unknown_warning_option=yes
9107 else case e in #(
9108 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9109 esac
9110 fi
9111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9112 esac
9113 fi
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9115 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9116 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9117 CFLAGS="$xorg_testset_save_CFLAGS"
9118 fi
9119
9120 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9123 fi
9124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9126 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9127 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9128 then :
9129 printf %s "(cached) " >&6
9130 else case e in #(
9131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9132 /* end confdefs.h. */
9133 int i;
9134 _ACEOF
9135 if ac_fn_c_try_compile "$LINENO"
9136 then :
9137 xorg_cv_cc_flag_unused_command_line_argument=yes
9138 else case e in #(
9139 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9140 esac
9141 fi
9142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9143 esac
9144 fi
9145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9146 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9147 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9148 CFLAGS="$xorg_testset_save_CFLAGS"
9149 fi
9150
9151 found="no"
9152
9153 if test $found = "no" ; then
9154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9156 fi
9157
9158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9160 fi
9161
9162 CFLAGS="$CFLAGS -Wimplicit"
9163
9164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9165 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9166 cacheid=xorg_cv_cc_flag__Wimplicit
9167 if eval test \${$cacheid+y}
9168 then :
9169 printf %s "(cached) " >&6
9170 else case e in #(
9171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9172 /* end confdefs.h. */
9173 int i;
9174 int
9175 main (void)
9176 {
9177
9178 ;
9179 return 0;
9180 }
9181 _ACEOF
9182 if ac_fn_c_try_link "$LINENO"
9183 then :
9184 eval $cacheid=yes
9185 else case e in #(
9186 e) eval $cacheid=no ;;
9187 esac
9188 fi
9189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9190 conftest$ac_exeext conftest.$ac_ext ;;
9191 esac
9192 fi
9193
9194
9195 CFLAGS="$xorg_testset_save_CFLAGS"
9196
9197 eval supported=\$$cacheid
9198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9199 printf "%s\n" "$supported" >&6; }
9200 if test "$supported" = "yes" ; then
9201 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9202 found="yes"
9203 fi
9204 fi
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220 xorg_testset_save_CFLAGS="$CFLAGS"
9221
9222 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9225 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9226 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9227 then :
9228 printf %s "(cached) " >&6
9229 else case e in #(
9230 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 int i;
9233 _ACEOF
9234 if ac_fn_c_try_compile "$LINENO"
9235 then :
9236 xorg_cv_cc_flag_unknown_warning_option=yes
9237 else case e in #(
9238 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9239 esac
9240 fi
9241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9242 esac
9243 fi
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9245 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9246 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9247 CFLAGS="$xorg_testset_save_CFLAGS"
9248 fi
9249
9250 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9251 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9253 fi
9254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9256 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9257 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9258 then :
9259 printf %s "(cached) " >&6
9260 else case e in #(
9261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9262 /* end confdefs.h. */
9263 int i;
9264 _ACEOF
9265 if ac_fn_c_try_compile "$LINENO"
9266 then :
9267 xorg_cv_cc_flag_unused_command_line_argument=yes
9268 else case e in #(
9269 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9270 esac
9271 fi
9272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9273 esac
9274 fi
9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9276 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9277 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9278 CFLAGS="$xorg_testset_save_CFLAGS"
9279 fi
9280
9281 found="no"
9282
9283 if test $found = "no" ; then
9284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9286 fi
9287
9288 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9289 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9290 fi
9291
9292 CFLAGS="$CFLAGS -Wnonnull"
9293
9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9295 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9296 cacheid=xorg_cv_cc_flag__Wnonnull
9297 if eval test \${$cacheid+y}
9298 then :
9299 printf %s "(cached) " >&6
9300 else case e in #(
9301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302 /* end confdefs.h. */
9303 int i;
9304 int
9305 main (void)
9306 {
9307
9308 ;
9309 return 0;
9310 }
9311 _ACEOF
9312 if ac_fn_c_try_link "$LINENO"
9313 then :
9314 eval $cacheid=yes
9315 else case e in #(
9316 e) eval $cacheid=no ;;
9317 esac
9318 fi
9319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9320 conftest$ac_exeext conftest.$ac_ext ;;
9321 esac
9322 fi
9323
9324
9325 CFLAGS="$xorg_testset_save_CFLAGS"
9326
9327 eval supported=\$$cacheid
9328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9329 printf "%s\n" "$supported" >&6; }
9330 if test "$supported" = "yes" ; then
9331 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9332 found="yes"
9333 fi
9334 fi
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350 xorg_testset_save_CFLAGS="$CFLAGS"
9351
9352 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9355 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9356 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9357 then :
9358 printf %s "(cached) " >&6
9359 else case e in #(
9360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362 int i;
9363 _ACEOF
9364 if ac_fn_c_try_compile "$LINENO"
9365 then :
9366 xorg_cv_cc_flag_unknown_warning_option=yes
9367 else case e in #(
9368 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9369 esac
9370 fi
9371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9372 esac
9373 fi
9374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9375 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9376 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9377 CFLAGS="$xorg_testset_save_CFLAGS"
9378 fi
9379
9380 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9383 fi
9384 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9386 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9387 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9388 then :
9389 printf %s "(cached) " >&6
9390 else case e in #(
9391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9392 /* end confdefs.h. */
9393 int i;
9394 _ACEOF
9395 if ac_fn_c_try_compile "$LINENO"
9396 then :
9397 xorg_cv_cc_flag_unused_command_line_argument=yes
9398 else case e in #(
9399 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9400 esac
9401 fi
9402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9403 esac
9404 fi
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9406 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9407 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9408 CFLAGS="$xorg_testset_save_CFLAGS"
9409 fi
9410
9411 found="no"
9412
9413 if test $found = "no" ; then
9414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9416 fi
9417
9418 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9419 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9420 fi
9421
9422 CFLAGS="$CFLAGS -Winit-self"
9423
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9425 printf %s "checking if $CC supports -Winit-self... " >&6; }
9426 cacheid=xorg_cv_cc_flag__Winit_self
9427 if eval test \${$cacheid+y}
9428 then :
9429 printf %s "(cached) " >&6
9430 else case e in #(
9431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432 /* end confdefs.h. */
9433 int i;
9434 int
9435 main (void)
9436 {
9437
9438 ;
9439 return 0;
9440 }
9441 _ACEOF
9442 if ac_fn_c_try_link "$LINENO"
9443 then :
9444 eval $cacheid=yes
9445 else case e in #(
9446 e) eval $cacheid=no ;;
9447 esac
9448 fi
9449 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9450 conftest$ac_exeext conftest.$ac_ext ;;
9451 esac
9452 fi
9453
9454
9455 CFLAGS="$xorg_testset_save_CFLAGS"
9456
9457 eval supported=\$$cacheid
9458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9459 printf "%s\n" "$supported" >&6; }
9460 if test "$supported" = "yes" ; then
9461 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9462 found="yes"
9463 fi
9464 fi
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480 xorg_testset_save_CFLAGS="$CFLAGS"
9481
9482 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9485 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9486 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9487 then :
9488 printf %s "(cached) " >&6
9489 else case e in #(
9490 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9492 int i;
9493 _ACEOF
9494 if ac_fn_c_try_compile "$LINENO"
9495 then :
9496 xorg_cv_cc_flag_unknown_warning_option=yes
9497 else case e in #(
9498 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9499 esac
9500 fi
9501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9502 esac
9503 fi
9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9505 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9507 CFLAGS="$xorg_testset_save_CFLAGS"
9508 fi
9509
9510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9513 fi
9514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9516 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9517 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9518 then :
9519 printf %s "(cached) " >&6
9520 else case e in #(
9521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523 int i;
9524 _ACEOF
9525 if ac_fn_c_try_compile "$LINENO"
9526 then :
9527 xorg_cv_cc_flag_unused_command_line_argument=yes
9528 else case e in #(
9529 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9530 esac
9531 fi
9532 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9533 esac
9534 fi
9535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9536 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9537 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9538 CFLAGS="$xorg_testset_save_CFLAGS"
9539 fi
9540
9541 found="no"
9542
9543 if test $found = "no" ; then
9544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9546 fi
9547
9548 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9549 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9550 fi
9551
9552 CFLAGS="$CFLAGS -Wmain"
9553
9554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9555 printf %s "checking if $CC supports -Wmain... " >&6; }
9556 cacheid=xorg_cv_cc_flag__Wmain
9557 if eval test \${$cacheid+y}
9558 then :
9559 printf %s "(cached) " >&6
9560 else case e in #(
9561 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9562 /* end confdefs.h. */
9563 int i;
9564 int
9565 main (void)
9566 {
9567
9568 ;
9569 return 0;
9570 }
9571 _ACEOF
9572 if ac_fn_c_try_link "$LINENO"
9573 then :
9574 eval $cacheid=yes
9575 else case e in #(
9576 e) eval $cacheid=no ;;
9577 esac
9578 fi
9579 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9580 conftest$ac_exeext conftest.$ac_ext ;;
9581 esac
9582 fi
9583
9584
9585 CFLAGS="$xorg_testset_save_CFLAGS"
9586
9587 eval supported=\$$cacheid
9588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9589 printf "%s\n" "$supported" >&6; }
9590 if test "$supported" = "yes" ; then
9591 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9592 found="yes"
9593 fi
9594 fi
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610 xorg_testset_save_CFLAGS="$CFLAGS"
9611
9612 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9615 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9616 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9617 then :
9618 printf %s "(cached) " >&6
9619 else case e in #(
9620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622 int i;
9623 _ACEOF
9624 if ac_fn_c_try_compile "$LINENO"
9625 then :
9626 xorg_cv_cc_flag_unknown_warning_option=yes
9627 else case e in #(
9628 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9629 esac
9630 fi
9631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9632 esac
9633 fi
9634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9635 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9637 CFLAGS="$xorg_testset_save_CFLAGS"
9638 fi
9639
9640 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9643 fi
9644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9646 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9647 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9648 then :
9649 printf %s "(cached) " >&6
9650 else case e in #(
9651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 int i;
9654 _ACEOF
9655 if ac_fn_c_try_compile "$LINENO"
9656 then :
9657 xorg_cv_cc_flag_unused_command_line_argument=yes
9658 else case e in #(
9659 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9660 esac
9661 fi
9662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9663 esac
9664 fi
9665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9666 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9668 CFLAGS="$xorg_testset_save_CFLAGS"
9669 fi
9670
9671 found="no"
9672
9673 if test $found = "no" ; then
9674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9676 fi
9677
9678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9680 fi
9681
9682 CFLAGS="$CFLAGS -Wmissing-braces"
9683
9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9685 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9686 cacheid=xorg_cv_cc_flag__Wmissing_braces
9687 if eval test \${$cacheid+y}
9688 then :
9689 printf %s "(cached) " >&6
9690 else case e in #(
9691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693 int i;
9694 int
9695 main (void)
9696 {
9697
9698 ;
9699 return 0;
9700 }
9701 _ACEOF
9702 if ac_fn_c_try_link "$LINENO"
9703 then :
9704 eval $cacheid=yes
9705 else case e in #(
9706 e) eval $cacheid=no ;;
9707 esac
9708 fi
9709 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9710 conftest$ac_exeext conftest.$ac_ext ;;
9711 esac
9712 fi
9713
9714
9715 CFLAGS="$xorg_testset_save_CFLAGS"
9716
9717 eval supported=\$$cacheid
9718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9719 printf "%s\n" "$supported" >&6; }
9720 if test "$supported" = "yes" ; then
9721 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9722 found="yes"
9723 fi
9724 fi
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740 xorg_testset_save_CFLAGS="$CFLAGS"
9741
9742 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9745 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9746 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9747 then :
9748 printf %s "(cached) " >&6
9749 else case e in #(
9750 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9751 /* end confdefs.h. */
9752 int i;
9753 _ACEOF
9754 if ac_fn_c_try_compile "$LINENO"
9755 then :
9756 xorg_cv_cc_flag_unknown_warning_option=yes
9757 else case e in #(
9758 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9759 esac
9760 fi
9761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9762 esac
9763 fi
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9765 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9767 CFLAGS="$xorg_testset_save_CFLAGS"
9768 fi
9769
9770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9773 fi
9774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9776 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9777 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9778 then :
9779 printf %s "(cached) " >&6
9780 else case e in #(
9781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9783 int i;
9784 _ACEOF
9785 if ac_fn_c_try_compile "$LINENO"
9786 then :
9787 xorg_cv_cc_flag_unused_command_line_argument=yes
9788 else case e in #(
9789 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9790 esac
9791 fi
9792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9793 esac
9794 fi
9795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9796 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9798 CFLAGS="$xorg_testset_save_CFLAGS"
9799 fi
9800
9801 found="no"
9802
9803 if test $found = "no" ; then
9804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9806 fi
9807
9808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9810 fi
9811
9812 CFLAGS="$CFLAGS -Wsequence-point"
9813
9814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9815 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9816 cacheid=xorg_cv_cc_flag__Wsequence_point
9817 if eval test \${$cacheid+y}
9818 then :
9819 printf %s "(cached) " >&6
9820 else case e in #(
9821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h. */
9823 int i;
9824 int
9825 main (void)
9826 {
9827
9828 ;
9829 return 0;
9830 }
9831 _ACEOF
9832 if ac_fn_c_try_link "$LINENO"
9833 then :
9834 eval $cacheid=yes
9835 else case e in #(
9836 e) eval $cacheid=no ;;
9837 esac
9838 fi
9839 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9840 conftest$ac_exeext conftest.$ac_ext ;;
9841 esac
9842 fi
9843
9844
9845 CFLAGS="$xorg_testset_save_CFLAGS"
9846
9847 eval supported=\$$cacheid
9848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9849 printf "%s\n" "$supported" >&6; }
9850 if test "$supported" = "yes" ; then
9851 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9852 found="yes"
9853 fi
9854 fi
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870 xorg_testset_save_CFLAGS="$CFLAGS"
9871
9872 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9875 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9876 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9877 then :
9878 printf %s "(cached) " >&6
9879 else case e in #(
9880 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9881 /* end confdefs.h. */
9882 int i;
9883 _ACEOF
9884 if ac_fn_c_try_compile "$LINENO"
9885 then :
9886 xorg_cv_cc_flag_unknown_warning_option=yes
9887 else case e in #(
9888 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9889 esac
9890 fi
9891 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9892 esac
9893 fi
9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9895 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9896 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9897 CFLAGS="$xorg_testset_save_CFLAGS"
9898 fi
9899
9900 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9903 fi
9904 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9906 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9907 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9908 then :
9909 printf %s "(cached) " >&6
9910 else case e in #(
9911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912 /* end confdefs.h. */
9913 int i;
9914 _ACEOF
9915 if ac_fn_c_try_compile "$LINENO"
9916 then :
9917 xorg_cv_cc_flag_unused_command_line_argument=yes
9918 else case e in #(
9919 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9920 esac
9921 fi
9922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9923 esac
9924 fi
9925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9926 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9927 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9928 CFLAGS="$xorg_testset_save_CFLAGS"
9929 fi
9930
9931 found="no"
9932
9933 if test $found = "no" ; then
9934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9936 fi
9937
9938 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9939 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9940 fi
9941
9942 CFLAGS="$CFLAGS -Wreturn-type"
9943
9944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9945 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9946 cacheid=xorg_cv_cc_flag__Wreturn_type
9947 if eval test \${$cacheid+y}
9948 then :
9949 printf %s "(cached) " >&6
9950 else case e in #(
9951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9953 int i;
9954 int
9955 main (void)
9956 {
9957
9958 ;
9959 return 0;
9960 }
9961 _ACEOF
9962 if ac_fn_c_try_link "$LINENO"
9963 then :
9964 eval $cacheid=yes
9965 else case e in #(
9966 e) eval $cacheid=no ;;
9967 esac
9968 fi
9969 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9970 conftest$ac_exeext conftest.$ac_ext ;;
9971 esac
9972 fi
9973
9974
9975 CFLAGS="$xorg_testset_save_CFLAGS"
9976
9977 eval supported=\$$cacheid
9978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9979 printf "%s\n" "$supported" >&6; }
9980 if test "$supported" = "yes" ; then
9981 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9982 found="yes"
9983 fi
9984 fi
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000 xorg_testset_save_CFLAGS="$CFLAGS"
10001
10002 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10005 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10006 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10007 then :
10008 printf %s "(cached) " >&6
10009 else case e in #(
10010 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10011 /* end confdefs.h. */
10012 int i;
10013 _ACEOF
10014 if ac_fn_c_try_compile "$LINENO"
10015 then :
10016 xorg_cv_cc_flag_unknown_warning_option=yes
10017 else case e in #(
10018 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10019 esac
10020 fi
10021 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10022 esac
10023 fi
10024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10025 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10027 CFLAGS="$xorg_testset_save_CFLAGS"
10028 fi
10029
10030 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10033 fi
10034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10036 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10037 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10038 then :
10039 printf %s "(cached) " >&6
10040 else case e in #(
10041 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* end confdefs.h. */
10043 int i;
10044 _ACEOF
10045 if ac_fn_c_try_compile "$LINENO"
10046 then :
10047 xorg_cv_cc_flag_unused_command_line_argument=yes
10048 else case e in #(
10049 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10050 esac
10051 fi
10052 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10053 esac
10054 fi
10055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10056 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10057 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10058 CFLAGS="$xorg_testset_save_CFLAGS"
10059 fi
10060
10061 found="no"
10062
10063 if test $found = "no" ; then
10064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10066 fi
10067
10068 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10069 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10070 fi
10071
10072 CFLAGS="$CFLAGS -Wtrigraphs"
10073
10074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10075 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10076 cacheid=xorg_cv_cc_flag__Wtrigraphs
10077 if eval test \${$cacheid+y}
10078 then :
10079 printf %s "(cached) " >&6
10080 else case e in #(
10081 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082 /* end confdefs.h. */
10083 int i;
10084 int
10085 main (void)
10086 {
10087
10088 ;
10089 return 0;
10090 }
10091 _ACEOF
10092 if ac_fn_c_try_link "$LINENO"
10093 then :
10094 eval $cacheid=yes
10095 else case e in #(
10096 e) eval $cacheid=no ;;
10097 esac
10098 fi
10099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10100 conftest$ac_exeext conftest.$ac_ext ;;
10101 esac
10102 fi
10103
10104
10105 CFLAGS="$xorg_testset_save_CFLAGS"
10106
10107 eval supported=\$$cacheid
10108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10109 printf "%s\n" "$supported" >&6; }
10110 if test "$supported" = "yes" ; then
10111 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10112 found="yes"
10113 fi
10114 fi
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130 xorg_testset_save_CFLAGS="$CFLAGS"
10131
10132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10135 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10136 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10137 then :
10138 printf %s "(cached) " >&6
10139 else case e in #(
10140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h. */
10142 int i;
10143 _ACEOF
10144 if ac_fn_c_try_compile "$LINENO"
10145 then :
10146 xorg_cv_cc_flag_unknown_warning_option=yes
10147 else case e in #(
10148 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10149 esac
10150 fi
10151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10152 esac
10153 fi
10154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10155 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10157 CFLAGS="$xorg_testset_save_CFLAGS"
10158 fi
10159
10160 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10163 fi
10164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10166 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10167 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10168 then :
10169 printf %s "(cached) " >&6
10170 else case e in #(
10171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10172 /* end confdefs.h. */
10173 int i;
10174 _ACEOF
10175 if ac_fn_c_try_compile "$LINENO"
10176 then :
10177 xorg_cv_cc_flag_unused_command_line_argument=yes
10178 else case e in #(
10179 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10180 esac
10181 fi
10182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10183 esac
10184 fi
10185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10186 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10187 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10188 CFLAGS="$xorg_testset_save_CFLAGS"
10189 fi
10190
10191 found="no"
10192
10193 if test $found = "no" ; then
10194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10196 fi
10197
10198 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10200 fi
10201
10202 CFLAGS="$CFLAGS -Warray-bounds"
10203
10204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10205 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10206 cacheid=xorg_cv_cc_flag__Warray_bounds
10207 if eval test \${$cacheid+y}
10208 then :
10209 printf %s "(cached) " >&6
10210 else case e in #(
10211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212 /* end confdefs.h. */
10213 int i;
10214 int
10215 main (void)
10216 {
10217
10218 ;
10219 return 0;
10220 }
10221 _ACEOF
10222 if ac_fn_c_try_link "$LINENO"
10223 then :
10224 eval $cacheid=yes
10225 else case e in #(
10226 e) eval $cacheid=no ;;
10227 esac
10228 fi
10229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10230 conftest$ac_exeext conftest.$ac_ext ;;
10231 esac
10232 fi
10233
10234
10235 CFLAGS="$xorg_testset_save_CFLAGS"
10236
10237 eval supported=\$$cacheid
10238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10239 printf "%s\n" "$supported" >&6; }
10240 if test "$supported" = "yes" ; then
10241 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10242 found="yes"
10243 fi
10244 fi
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260 xorg_testset_save_CFLAGS="$CFLAGS"
10261
10262 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10265 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10266 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10267 then :
10268 printf %s "(cached) " >&6
10269 else case e in #(
10270 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10271 /* end confdefs.h. */
10272 int i;
10273 _ACEOF
10274 if ac_fn_c_try_compile "$LINENO"
10275 then :
10276 xorg_cv_cc_flag_unknown_warning_option=yes
10277 else case e in #(
10278 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10279 esac
10280 fi
10281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10282 esac
10283 fi
10284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10285 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10287 CFLAGS="$xorg_testset_save_CFLAGS"
10288 fi
10289
10290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10293 fi
10294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10296 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10297 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10298 then :
10299 printf %s "(cached) " >&6
10300 else case e in #(
10301 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10303 int i;
10304 _ACEOF
10305 if ac_fn_c_try_compile "$LINENO"
10306 then :
10307 xorg_cv_cc_flag_unused_command_line_argument=yes
10308 else case e in #(
10309 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10310 esac
10311 fi
10312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10313 esac
10314 fi
10315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10316 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10317 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10318 CFLAGS="$xorg_testset_save_CFLAGS"
10319 fi
10320
10321 found="no"
10322
10323 if test $found = "no" ; then
10324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10325 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10326 fi
10327
10328 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10330 fi
10331
10332 CFLAGS="$CFLAGS -Wwrite-strings"
10333
10334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10335 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10336 cacheid=xorg_cv_cc_flag__Wwrite_strings
10337 if eval test \${$cacheid+y}
10338 then :
10339 printf %s "(cached) " >&6
10340 else case e in #(
10341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10343 int i;
10344 int
10345 main (void)
10346 {
10347
10348 ;
10349 return 0;
10350 }
10351 _ACEOF
10352 if ac_fn_c_try_link "$LINENO"
10353 then :
10354 eval $cacheid=yes
10355 else case e in #(
10356 e) eval $cacheid=no ;;
10357 esac
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10360 conftest$ac_exeext conftest.$ac_ext ;;
10361 esac
10362 fi
10363
10364
10365 CFLAGS="$xorg_testset_save_CFLAGS"
10366
10367 eval supported=\$$cacheid
10368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10369 printf "%s\n" "$supported" >&6; }
10370 if test "$supported" = "yes" ; then
10371 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10372 found="yes"
10373 fi
10374 fi
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390 xorg_testset_save_CFLAGS="$CFLAGS"
10391
10392 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10395 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10396 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10397 then :
10398 printf %s "(cached) " >&6
10399 else case e in #(
10400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10402 int i;
10403 _ACEOF
10404 if ac_fn_c_try_compile "$LINENO"
10405 then :
10406 xorg_cv_cc_flag_unknown_warning_option=yes
10407 else case e in #(
10408 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10409 esac
10410 fi
10411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10412 esac
10413 fi
10414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10415 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10417 CFLAGS="$xorg_testset_save_CFLAGS"
10418 fi
10419
10420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10423 fi
10424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10426 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10427 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10428 then :
10429 printf %s "(cached) " >&6
10430 else case e in #(
10431 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433 int i;
10434 _ACEOF
10435 if ac_fn_c_try_compile "$LINENO"
10436 then :
10437 xorg_cv_cc_flag_unused_command_line_argument=yes
10438 else case e in #(
10439 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10440 esac
10441 fi
10442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10443 esac
10444 fi
10445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10446 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10448 CFLAGS="$xorg_testset_save_CFLAGS"
10449 fi
10450
10451 found="no"
10452
10453 if test $found = "no" ; then
10454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10456 fi
10457
10458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10460 fi
10461
10462 CFLAGS="$CFLAGS -Waddress"
10463
10464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10465 printf %s "checking if $CC supports -Waddress... " >&6; }
10466 cacheid=xorg_cv_cc_flag__Waddress
10467 if eval test \${$cacheid+y}
10468 then :
10469 printf %s "(cached) " >&6
10470 else case e in #(
10471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10473 int i;
10474 int
10475 main (void)
10476 {
10477
10478 ;
10479 return 0;
10480 }
10481 _ACEOF
10482 if ac_fn_c_try_link "$LINENO"
10483 then :
10484 eval $cacheid=yes
10485 else case e in #(
10486 e) eval $cacheid=no ;;
10487 esac
10488 fi
10489 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10490 conftest$ac_exeext conftest.$ac_ext ;;
10491 esac
10492 fi
10493
10494
10495 CFLAGS="$xorg_testset_save_CFLAGS"
10496
10497 eval supported=\$$cacheid
10498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10499 printf "%s\n" "$supported" >&6; }
10500 if test "$supported" = "yes" ; then
10501 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10502 found="yes"
10503 fi
10504 fi
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520 xorg_testset_save_CFLAGS="$CFLAGS"
10521
10522 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10525 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10526 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10527 then :
10528 printf %s "(cached) " >&6
10529 else case e in #(
10530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 /* end confdefs.h. */
10532 int i;
10533 _ACEOF
10534 if ac_fn_c_try_compile "$LINENO"
10535 then :
10536 xorg_cv_cc_flag_unknown_warning_option=yes
10537 else case e in #(
10538 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10539 esac
10540 fi
10541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10542 esac
10543 fi
10544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10545 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10546 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10547 CFLAGS="$xorg_testset_save_CFLAGS"
10548 fi
10549
10550 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10553 fi
10554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10556 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10557 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10558 then :
10559 printf %s "(cached) " >&6
10560 else case e in #(
10561 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10563 int i;
10564 _ACEOF
10565 if ac_fn_c_try_compile "$LINENO"
10566 then :
10567 xorg_cv_cc_flag_unused_command_line_argument=yes
10568 else case e in #(
10569 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10570 esac
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10573 esac
10574 fi
10575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10576 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10578 CFLAGS="$xorg_testset_save_CFLAGS"
10579 fi
10580
10581 found="no"
10582
10583 if test $found = "no" ; then
10584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10586 fi
10587
10588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10590 fi
10591
10592 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10593
10594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10595 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10596 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10597 if eval test \${$cacheid+y}
10598 then :
10599 printf %s "(cached) " >&6
10600 else case e in #(
10601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10603 int i;
10604 int
10605 main (void)
10606 {
10607
10608 ;
10609 return 0;
10610 }
10611 _ACEOF
10612 if ac_fn_c_try_link "$LINENO"
10613 then :
10614 eval $cacheid=yes
10615 else case e in #(
10616 e) eval $cacheid=no ;;
10617 esac
10618 fi
10619 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10620 conftest$ac_exeext conftest.$ac_ext ;;
10621 esac
10622 fi
10623
10624
10625 CFLAGS="$xorg_testset_save_CFLAGS"
10626
10627 eval supported=\$$cacheid
10628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10629 printf "%s\n" "$supported" >&6; }
10630 if test "$supported" = "yes" ; then
10631 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10632 found="yes"
10633 fi
10634 fi
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650 xorg_testset_save_CFLAGS="$CFLAGS"
10651
10652 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10655 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10656 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10657 then :
10658 printf %s "(cached) " >&6
10659 else case e in #(
10660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661 /* end confdefs.h. */
10662 int i;
10663 _ACEOF
10664 if ac_fn_c_try_compile "$LINENO"
10665 then :
10666 xorg_cv_cc_flag_unknown_warning_option=yes
10667 else case e in #(
10668 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10669 esac
10670 fi
10671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10672 esac
10673 fi
10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10675 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10676 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10677 CFLAGS="$xorg_testset_save_CFLAGS"
10678 fi
10679
10680 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10681 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10682 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10683 fi
10684 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10686 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10687 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10688 then :
10689 printf %s "(cached) " >&6
10690 else case e in #(
10691 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10692 /* end confdefs.h. */
10693 int i;
10694 _ACEOF
10695 if ac_fn_c_try_compile "$LINENO"
10696 then :
10697 xorg_cv_cc_flag_unused_command_line_argument=yes
10698 else case e in #(
10699 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10700 esac
10701 fi
10702 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10703 esac
10704 fi
10705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10706 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10707 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10708 CFLAGS="$xorg_testset_save_CFLAGS"
10709 fi
10710
10711 found="no"
10712
10713 if test $found = "no" ; then
10714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10716 fi
10717
10718 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10720 fi
10721
10722 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10723
10724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10725 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10726 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10727 if eval test \${$cacheid+y}
10728 then :
10729 printf %s "(cached) " >&6
10730 else case e in #(
10731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733 int i;
10734 int
10735 main (void)
10736 {
10737
10738 ;
10739 return 0;
10740 }
10741 _ACEOF
10742 if ac_fn_c_try_link "$LINENO"
10743 then :
10744 eval $cacheid=yes
10745 else case e in #(
10746 e) eval $cacheid=no ;;
10747 esac
10748 fi
10749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10750 conftest$ac_exeext conftest.$ac_ext ;;
10751 esac
10752 fi
10753
10754
10755 CFLAGS="$xorg_testset_save_CFLAGS"
10756
10757 eval supported=\$$cacheid
10758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10759 printf "%s\n" "$supported" >&6; }
10760 if test "$supported" = "yes" ; then
10761 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10762 found="yes"
10763 fi
10764 fi
10765
10766
10767 fi
10768
10769
10770
10771
10772
10773
10774
10775 CWARNFLAGS="$BASE_CFLAGS"
10776 if test "x$GCC" = xyes ; then
10777 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10778 fi
10779
10780
10781
10782
10783
10784
10785
10786
10787 # Check whether --enable-strict-compilation was given.
10788 if test ${enable_strict_compilation+y}
10789 then :
10790 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10791 else case e in #(
10792 e) STRICT_COMPILE=no ;;
10793 esac
10794 fi
10795
10796
10797
10798
10799
10800
10801 STRICT_CFLAGS=""
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815 xorg_testset_save_CFLAGS="$CFLAGS"
10816
10817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10820 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10821 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10822 then :
10823 printf %s "(cached) " >&6
10824 else case e in #(
10825 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10826 /* end confdefs.h. */
10827 int i;
10828 _ACEOF
10829 if ac_fn_c_try_compile "$LINENO"
10830 then :
10831 xorg_cv_cc_flag_unknown_warning_option=yes
10832 else case e in #(
10833 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10834 esac
10835 fi
10836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10837 esac
10838 fi
10839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10840 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10841 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10842 CFLAGS="$xorg_testset_save_CFLAGS"
10843 fi
10844
10845 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10846 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10847 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10848 fi
10849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10851 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10852 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10853 then :
10854 printf %s "(cached) " >&6
10855 else case e in #(
10856 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10858 int i;
10859 _ACEOF
10860 if ac_fn_c_try_compile "$LINENO"
10861 then :
10862 xorg_cv_cc_flag_unused_command_line_argument=yes
10863 else case e in #(
10864 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10865 esac
10866 fi
10867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10868 esac
10869 fi
10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10871 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10872 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10873 CFLAGS="$xorg_testset_save_CFLAGS"
10874 fi
10875
10876 found="no"
10877
10878 if test $found = "no" ; then
10879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10881 fi
10882
10883 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10884 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10885 fi
10886
10887 CFLAGS="$CFLAGS -pedantic"
10888
10889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10890 printf %s "checking if $CC supports -pedantic... " >&6; }
10891 cacheid=xorg_cv_cc_flag__pedantic
10892 if eval test \${$cacheid+y}
10893 then :
10894 printf %s "(cached) " >&6
10895 else case e in #(
10896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897 /* end confdefs.h. */
10898 int i;
10899 int
10900 main (void)
10901 {
10902
10903 ;
10904 return 0;
10905 }
10906 _ACEOF
10907 if ac_fn_c_try_link "$LINENO"
10908 then :
10909 eval $cacheid=yes
10910 else case e in #(
10911 e) eval $cacheid=no ;;
10912 esac
10913 fi
10914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10915 conftest$ac_exeext conftest.$ac_ext ;;
10916 esac
10917 fi
10918
10919
10920 CFLAGS="$xorg_testset_save_CFLAGS"
10921
10922 eval supported=\$$cacheid
10923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10924 printf "%s\n" "$supported" >&6; }
10925 if test "$supported" = "yes" ; then
10926 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10927 found="yes"
10928 fi
10929 fi
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945 xorg_testset_save_CFLAGS="$CFLAGS"
10946
10947 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10950 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10951 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10952 then :
10953 printf %s "(cached) " >&6
10954 else case e in #(
10955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956 /* end confdefs.h. */
10957 int i;
10958 _ACEOF
10959 if ac_fn_c_try_compile "$LINENO"
10960 then :
10961 xorg_cv_cc_flag_unknown_warning_option=yes
10962 else case e in #(
10963 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10964 esac
10965 fi
10966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10967 esac
10968 fi
10969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10970 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10972 CFLAGS="$xorg_testset_save_CFLAGS"
10973 fi
10974
10975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10978 fi
10979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10981 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10982 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10983 then :
10984 printf %s "(cached) " >&6
10985 else case e in #(
10986 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10987 /* end confdefs.h. */
10988 int i;
10989 _ACEOF
10990 if ac_fn_c_try_compile "$LINENO"
10991 then :
10992 xorg_cv_cc_flag_unused_command_line_argument=yes
10993 else case e in #(
10994 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10995 esac
10996 fi
10997 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10998 esac
10999 fi
11000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11001 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11003 CFLAGS="$xorg_testset_save_CFLAGS"
11004 fi
11005
11006 found="no"
11007
11008 if test $found = "no" ; then
11009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11011 fi
11012
11013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11015 fi
11016
11017 CFLAGS="$CFLAGS -Werror"
11018
11019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11020 printf %s "checking if $CC supports -Werror... " >&6; }
11021 cacheid=xorg_cv_cc_flag__Werror
11022 if eval test \${$cacheid+y}
11023 then :
11024 printf %s "(cached) " >&6
11025 else case e in #(
11026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11027 /* end confdefs.h. */
11028 int i;
11029 int
11030 main (void)
11031 {
11032
11033 ;
11034 return 0;
11035 }
11036 _ACEOF
11037 if ac_fn_c_try_link "$LINENO"
11038 then :
11039 eval $cacheid=yes
11040 else case e in #(
11041 e) eval $cacheid=no ;;
11042 esac
11043 fi
11044 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11045 conftest$ac_exeext conftest.$ac_ext ;;
11046 esac
11047 fi
11048
11049
11050 CFLAGS="$xorg_testset_save_CFLAGS"
11051
11052 eval supported=\$$cacheid
11053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11054 printf "%s\n" "$supported" >&6; }
11055 if test "$supported" = "yes" ; then
11056 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11057 found="yes"
11058 fi
11059 fi
11060
11061 if test $found = "no" ; then
11062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11064 fi
11065
11066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11068 fi
11069
11070 CFLAGS="$CFLAGS -errwarn"
11071
11072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11073 printf %s "checking if $CC supports -errwarn... " >&6; }
11074 cacheid=xorg_cv_cc_flag__errwarn
11075 if eval test \${$cacheid+y}
11076 then :
11077 printf %s "(cached) " >&6
11078 else case e in #(
11079 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11080 /* end confdefs.h. */
11081 int i;
11082 int
11083 main (void)
11084 {
11085
11086 ;
11087 return 0;
11088 }
11089 _ACEOF
11090 if ac_fn_c_try_link "$LINENO"
11091 then :
11092 eval $cacheid=yes
11093 else case e in #(
11094 e) eval $cacheid=no ;;
11095 esac
11096 fi
11097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11098 conftest$ac_exeext conftest.$ac_ext ;;
11099 esac
11100 fi
11101
11102
11103 CFLAGS="$xorg_testset_save_CFLAGS"
11104
11105 eval supported=\$$cacheid
11106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11107 printf "%s\n" "$supported" >&6; }
11108 if test "$supported" = "yes" ; then
11109 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11110 found="yes"
11111 fi
11112 fi
11113
11114
11115
11116 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11117 # activate it with -Werror, so we add it here explicitly.
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131 xorg_testset_save_CFLAGS="$CFLAGS"
11132
11133 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11136 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11137 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11138 then :
11139 printf %s "(cached) " >&6
11140 else case e in #(
11141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h. */
11143 int i;
11144 _ACEOF
11145 if ac_fn_c_try_compile "$LINENO"
11146 then :
11147 xorg_cv_cc_flag_unknown_warning_option=yes
11148 else case e in #(
11149 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11150 esac
11151 fi
11152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11153 esac
11154 fi
11155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11156 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11158 CFLAGS="$xorg_testset_save_CFLAGS"
11159 fi
11160
11161 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11164 fi
11165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11167 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11168 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11169 then :
11170 printf %s "(cached) " >&6
11171 else case e in #(
11172 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11173 /* end confdefs.h. */
11174 int i;
11175 _ACEOF
11176 if ac_fn_c_try_compile "$LINENO"
11177 then :
11178 xorg_cv_cc_flag_unused_command_line_argument=yes
11179 else case e in #(
11180 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11181 esac
11182 fi
11183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11184 esac
11185 fi
11186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11187 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11189 CFLAGS="$xorg_testset_save_CFLAGS"
11190 fi
11191
11192 found="no"
11193
11194 if test $found = "no" ; then
11195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11197 fi
11198
11199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11201 fi
11202
11203 CFLAGS="$CFLAGS -Werror=attributes"
11204
11205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11206 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11207 cacheid=xorg_cv_cc_flag__Werror_attributes
11208 if eval test \${$cacheid+y}
11209 then :
11210 printf %s "(cached) " >&6
11211 else case e in #(
11212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11213 /* end confdefs.h. */
11214 int i;
11215 int
11216 main (void)
11217 {
11218
11219 ;
11220 return 0;
11221 }
11222 _ACEOF
11223 if ac_fn_c_try_link "$LINENO"
11224 then :
11225 eval $cacheid=yes
11226 else case e in #(
11227 e) eval $cacheid=no ;;
11228 esac
11229 fi
11230 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11231 conftest$ac_exeext conftest.$ac_ext ;;
11232 esac
11233 fi
11234
11235
11236 CFLAGS="$xorg_testset_save_CFLAGS"
11237
11238 eval supported=\$$cacheid
11239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11240 printf "%s\n" "$supported" >&6; }
11241 if test "$supported" = "yes" ; then
11242 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11243 found="yes"
11244 fi
11245 fi
11246
11247
11248
11249 if test "x$STRICT_COMPILE" = "xyes"; then
11250 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11251 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11252 fi
11253
11254
11255
11256
11257
11258
11259
11260
11261 cat >>confdefs.h <<_ACEOF
11262 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11263 _ACEOF
11264
11265 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11266 if test "x$PVM" = "x"; then
11267 PVM="0"
11268 fi
11269
11270 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11271
11272 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11273 if test "x$PVP" = "x"; then
11274 PVP="0"
11275 fi
11276
11277 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11278
11279
11280
11281 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11282 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11283 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11284 touch \$(top_srcdir)/ChangeLog; \
11285 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11286
11287
11288
11289
11290 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11291 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11292 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11293 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11294 touch \$(top_srcdir)/INSTALL; \
11295 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11296
11297
11298
11299
11300
11301
11302 case $host_os in
11303 solaris*)
11304 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11305 # check for a man page file found in later versions that use
11306 # traditional section numbers instead
11307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11308 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11309 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11310 then :
11311 printf %s "(cached) " >&6
11312 else case e in #(
11313 e) test "$cross_compiling" = yes &&
11314 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11315 if test -r "/usr/share/man/man7/attributes.7"; then
11316 ac_cv_file__usr_share_man_man7_attributes_7=yes
11317 else
11318 ac_cv_file__usr_share_man_man7_attributes_7=no
11319 fi ;;
11320 esac
11321 fi
11322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11323 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11324 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11325 then :
11326 SYSV_MAN_SECTIONS=false
11327 else case e in #(
11328 e) SYSV_MAN_SECTIONS=true ;;
11329 esac
11330 fi
11331
11332 ;;
11333 *) SYSV_MAN_SECTIONS=false ;;
11334 esac
11335
11336 if test x$APP_MAN_SUFFIX = x ; then
11337 APP_MAN_SUFFIX=1
11338 fi
11339 if test x$APP_MAN_DIR = x ; then
11340 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11341 fi
11342
11343 if test x$LIB_MAN_SUFFIX = x ; then
11344 LIB_MAN_SUFFIX=3
11345 fi
11346 if test x$LIB_MAN_DIR = x ; then
11347 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11348 fi
11349
11350 if test x$FILE_MAN_SUFFIX = x ; then
11351 case $SYSV_MAN_SECTIONS in
11352 true) FILE_MAN_SUFFIX=4 ;;
11353 *) FILE_MAN_SUFFIX=5 ;;
11354 esac
11355 fi
11356 if test x$FILE_MAN_DIR = x ; then
11357 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11358 fi
11359
11360 if test x$MISC_MAN_SUFFIX = x ; then
11361 case $SYSV_MAN_SECTIONS in
11362 true) MISC_MAN_SUFFIX=5 ;;
11363 *) MISC_MAN_SUFFIX=7 ;;
11364 esac
11365 fi
11366 if test x$MISC_MAN_DIR = x ; then
11367 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11368 fi
11369
11370 if test x$DRIVER_MAN_SUFFIX = x ; then
11371 case $SYSV_MAN_SECTIONS in
11372 true) DRIVER_MAN_SUFFIX=7 ;;
11373 *) DRIVER_MAN_SUFFIX=4 ;;
11374 esac
11375 fi
11376 if test x$DRIVER_MAN_DIR = x ; then
11377 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11378 fi
11379
11380 if test x$ADMIN_MAN_SUFFIX = x ; then
11381 case $SYSV_MAN_SECTIONS in
11382 true) ADMIN_MAN_SUFFIX=1m ;;
11383 *) ADMIN_MAN_SUFFIX=8 ;;
11384 esac
11385 fi
11386 if test x$ADMIN_MAN_DIR = x ; then
11387 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11388 fi
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404 XORG_MAN_PAGE="X Version 11"
11405
11406 MAN_SUBSTS="\
11407 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11408 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11409 -e 's|__xservername__|Xorg|g' \
11410 -e 's|__xconfigfile__|xorg.conf|g' \
11411 -e 's|__projectroot__|\$(prefix)|g' \
11412 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11413 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11414 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11415 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11416 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11417 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11418 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11419
11420
11421
11422 # Check whether --enable-silent-rules was given.
11423 if test ${enable_silent_rules+y}
11424 then :
11425 enableval=$enable_silent_rules;
11426 fi
11427
11428 case $enable_silent_rules in # (((
11429 yes) AM_DEFAULT_VERBOSITY=0;;
11430 no) AM_DEFAULT_VERBOSITY=1;;
11431 *) AM_DEFAULT_VERBOSITY=0;;
11432 esac
11433 am_make=${MAKE-make}
11434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11435 printf %s "checking whether $am_make supports nested variables... " >&6; }
11436 if test ${am_cv_make_support_nested_variables+y}
11437 then :
11438 printf %s "(cached) " >&6
11439 else case e in #(
11440 e) if printf "%s\n" 'TRUE=$(BAR$(V))
11441 BAR0=false
11442 BAR1=true
11443 V=1
11444 am__doit:
11445 @$(TRUE)
11446 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11447 am_cv_make_support_nested_variables=yes
11448 else
11449 am_cv_make_support_nested_variables=no
11450 fi ;;
11451 esac
11452 fi
11453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11454 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11455 if test $am_cv_make_support_nested_variables = yes; then
11456 AM_V='$(V)'
11457 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11458 else
11459 AM_V=$AM_DEFAULT_VERBOSITY
11460 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11461 fi
11462 AM_BACKSLASH='\'
11463
11464
11465
11466
11467 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
11468 if test "x$ac_cv_header_wchar_h" = xyes
11469 then :
11470 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
11471
11472 fi
11473 ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default"
11474 if test "x$ac_cv_header_wctype_h" = xyes
11475 then :
11476 printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h
11477
11478 fi
11479 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
11480 if test "x$ac_cv_header_langinfo_h" = xyes
11481 then :
11482 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
11483
11484 fi
11485
11486
11487 # Checks for pkg-config packages
11488
11489 pkg_failed=no
11490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XPROP" >&5
11491 printf %s "checking for XPROP... " >&6; }
11492
11493 if test -n "$XPROP_CFLAGS"; then
11494 pkg_cv_XPROP_CFLAGS="$XPROP_CFLAGS"
11495 elif test -n "$PKG_CONFIG"; then
11496 if test -n "$PKG_CONFIG" && \
11497 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
11498 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
11499 ac_status=$?
11500 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11501 test $ac_status = 0; }; then
11502 pkg_cv_XPROP_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.25" 2>/dev/null`
11503 test "x$?" != "x0" && pkg_failed=yes
11504 else
11505 pkg_failed=yes
11506 fi
11507 else
11508 pkg_failed=untried
11509 fi
11510 if test -n "$XPROP_LIBS"; then
11511 pkg_cv_XPROP_LIBS="$XPROP_LIBS"
11512 elif test -n "$PKG_CONFIG"; then
11513 if test -n "$PKG_CONFIG" && \
11514 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.25\""; } >&5
11515 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.25") 2>&5
11516 ac_status=$?
11517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11518 test $ac_status = 0; }; then
11519 pkg_cv_XPROP_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.25" 2>/dev/null`
11520 test "x$?" != "x0" && pkg_failed=yes
11521 else
11522 pkg_failed=yes
11523 fi
11524 else
11525 pkg_failed=untried
11526 fi
11527
11528
11529
11530 if test $pkg_failed = yes; then
11531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11532 printf "%s\n" "no" >&6; }
11533
11534 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11535 _pkg_short_errors_supported=yes
11536 else
11537 _pkg_short_errors_supported=no
11538 fi
11539 if test $_pkg_short_errors_supported = yes; then
11540 XPROP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
11541 else
11542 XPROP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.25" 2>&1`
11543 fi
11544 # Put the nasty error message in config.log where it belongs
11545 echo "$XPROP_PKG_ERRORS" >&5
11546
11547 as_fn_error $? "Package requirements (x11 xproto >= 7.0.25) were not met:
11548
11549 $XPROP_PKG_ERRORS
11550
11551 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11552 installed software in a non-standard prefix.
11553
11554 Alternatively, you may set the environment variables XPROP_CFLAGS
11555 and XPROP_LIBS to avoid the need to call pkg-config.
11556 See the pkg-config man page for more details." "$LINENO" 5
11557 elif test $pkg_failed = untried; then
11558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559 printf "%s\n" "no" >&6; }
11560 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11561 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11562 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11563 is in your PATH or set the PKG_CONFIG environment variable to the full
11564 path to pkg-config.
11565
11566 Alternatively, you may set the environment variables XPROP_CFLAGS
11567 and XPROP_LIBS to avoid the need to call pkg-config.
11568 See the pkg-config man page for more details.
11569
11570 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11571 See 'config.log' for more details" "$LINENO" 5; }
11572 else
11573 XPROP_CFLAGS=$pkg_cv_XPROP_CFLAGS
11574 XPROP_LIBS=$pkg_cv_XPROP_LIBS
11575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11576 printf "%s\n" "yes" >&6; }
11577
11578 fi
11579
11580
11581
11582
11583
11584
11585 # Check whether --with-lint was given.
11586 if test ${with_lint+y}
11587 then :
11588 withval=$with_lint; use_lint=$withval
11589 else case e in #(
11590 e) use_lint=no ;;
11591 esac
11592 fi
11593
11594
11595 # Obtain platform specific info like program name and options
11596 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
11597 case $host_os in
11598 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11599 lint_name=splint
11600 lint_options="-badflag"
11601 ;;
11602 *freebsd* | *netbsd*)
11603 lint_name=lint
11604 lint_options="-u -b"
11605 ;;
11606 *solaris*)
11607 lint_name=lint
11608 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11609 ;;
11610 esac
11611
11612 # Test for the presence of the program (either guessed by the code or spelled out by the user)
11613 if test "x$use_lint" = x"yes" ; then
11614 # Extract the first word of "$lint_name", so it can be a program name with args.
11615 set dummy $lint_name; ac_word=$2
11616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11617 printf %s "checking for $ac_word... " >&6; }
11618 if test ${ac_cv_path_LINT+y}
11619 then :
11620 printf %s "(cached) " >&6
11621 else case e in #(
11622 e) case $LINT in
11623 [\\/]* | ?:[\\/]*)
11624 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
11625 ;;
11626 *)
11627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH
11629 do
11630 IFS=$as_save_IFS
11631 case $as_dir in #(((
11632 '') as_dir=./ ;;
11633 */) ;;
11634 *) as_dir=$as_dir/ ;;
11635 esac
11636 for ac_exec_ext in '' $ac_executable_extensions; do
11637 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11638 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
11639 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11640 break 2
11641 fi
11642 done
11643 done
11644 IFS=$as_save_IFS
11645
11646 ;;
11647 esac ;;
11648 esac
11649 fi
11650 LINT=$ac_cv_path_LINT
11651 if test -n "$LINT"; then
11652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
11653 printf "%s\n" "$LINT" >&6; }
11654 else
11655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11656 printf "%s\n" "no" >&6; }
11657 fi
11658
11659
11660 if test "x$LINT" = "x"; then
11661 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
11662 fi
11663 elif test "x$use_lint" = x"no" ; then
11664 if test "x$LINT" != "x"; then
11665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
11666 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
11667 fi
11668 else
11669 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
11670 fi
11671
11672 # User supplied flags override default flags
11673 if test "x$LINT_FLAGS" != "x"; then
11674 lint_options=$LINT_FLAGS
11675 fi
11676
11677 LINT_FLAGS=$lint_options
11678
11679 if test "x$LINT" != x; then
11680 LINT_TRUE=
11681 LINT_FALSE='#'
11682 else
11683 LINT_TRUE='#'
11684 LINT_FALSE=
11685 fi
11686
11687
11688
11689
11690 ac_config_files="$ac_config_files Makefile man/Makefile"
11691
11692 cat >confcache <<\_ACEOF
11693 # This file is a shell script that caches the results of configure
11694 # tests run on this system so they can be shared between configure
11695 # scripts and configure runs, see configure's option --config-cache.
11696 # It is not useful on other systems. If it contains results you don't
11697 # want to keep, you may remove or edit it.
11698 #
11699 # config.status only pays attention to the cache file if you give it
11700 # the --recheck option to rerun configure.
11701 #
11702 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
11703 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
11704 # following values.
11705
11706 _ACEOF
11707
11708 # The following way of writing the cache mishandles newlines in values,
11709 # but we know of no workaround that is simple, portable, and efficient.
11710 # So, we kill variables containing newlines.
11711 # Ultrix sh set writes to stderr and can't be redirected directly,
11712 # and sets the high bit in the cache file unless we assign to the vars.
11713 (
11714 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11715 eval ac_val=\$$ac_var
11716 case $ac_val in #(
11717 *${as_nl}*)
11718 case $ac_var in #(
11719 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11720 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11721 esac
11722 case $ac_var in #(
11723 _ | IFS | as_nl) ;; #(
11724 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11725 *) { eval $ac_var=; unset $ac_var;} ;;
11726 esac ;;
11727 esac
11728 done
11729
11730 (set) 2>&1 |
11731 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11732 *${as_nl}ac_space=\ *)
11733 # 'set' does not quote correctly, so add quotes: double-quote
11734 # substitution turns \\\\ into \\, and sed turns \\ into \.
11735 sed -n \
11736 "s/'/'\\\\''/g;
11737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11738 ;; #(
11739 *)
11740 # 'set' quotes correctly as required by POSIX, so do not add quotes.
11741 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11742 ;;
11743 esac |
11744 sort
11745 ) |
11746 sed '
11747 /^ac_cv_env_/b end
11748 t clear
11749 :clear
11750 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11751 t end
11752 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11753 :end' >>confcache
11754 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11755 if test -w "$cache_file"; then
11756 if test "x$cache_file" != "x/dev/null"; then
11757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11758 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11759 if test ! -f "$cache_file" || test -h "$cache_file"; then
11760 cat confcache >"$cache_file"
11761 else
11762 case $cache_file in #(
11763 */* | ?:*)
11764 mv -f confcache "$cache_file"$$ &&
11765 mv -f "$cache_file"$$ "$cache_file" ;; #(
11766 *)
11767 mv -f confcache "$cache_file" ;;
11768 esac
11769 fi
11770 fi
11771 else
11772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11773 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11774 fi
11775 fi
11776 rm -f confcache
11777
11778 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11779 # Let make expand exec_prefix.
11780 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11781
11782 DEFS=-DHAVE_CONFIG_H
11783
11784 ac_libobjs=
11785 ac_ltlibobjs=
11786 U=
11787 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11788 # 1. Remove the extension, and $U if already installed.
11789 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11790 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11791 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11792 # will be set to the directory where LIBOBJS objects are built.
11793 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11794 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11795 done
11796 LIBOBJS=$ac_libobjs
11797
11798 LTLIBOBJS=$ac_ltlibobjs
11799
11800
11801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11802 printf %s "checking that generated files are newer than configure... " >&6; }
11803 if test -n "$am_sleep_pid"; then
11804 # Hide warnings about reused PIDs.
11805 wait $am_sleep_pid 2>/dev/null
11806 fi
11807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11808 printf "%s\n" "done" >&6; }
11809 if test -n "$EXEEXT"; then
11810 am__EXEEXT_TRUE=
11811 am__EXEEXT_FALSE='#'
11812 else
11813 am__EXEEXT_TRUE='#'
11814 am__EXEEXT_FALSE=
11815 fi
11816
11817 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11818 as_fn_error $? "conditional \"AMDEP\" was never defined.
11819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11820 fi
11821 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11822 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11824 fi
11825 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
11826 as_fn_error $? "conditional \"LINT\" was never defined.
11827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11828 fi
11829
11830 : "${CONFIG_STATUS=./config.status}"
11831 ac_write_fail=0
11832 ac_clean_files_save=$ac_clean_files
11833 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11835 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11836 as_write_fail=0
11837 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11838 #! $SHELL
11839 # Generated by $as_me.
11840 # Run this file to recreate the current configuration.
11841 # Compiler output produced by configure, useful for debugging
11842 # configure, is in config.log if it exists.
11843
11844 debug=false
11845 ac_cs_recheck=false
11846 ac_cs_silent=false
11847
11848 SHELL=\${CONFIG_SHELL-$SHELL}
11849 export SHELL
11850 _ASEOF
11851 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11852 ## -------------------- ##
11853 ## M4sh Initialization. ##
11854 ## -------------------- ##
11855
11856 # Be more Bourne compatible
11857 DUALCASE=1; export DUALCASE # for MKS sh
11858 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11859 then :
11860 emulate sh
11861 NULLCMD=:
11862 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11863 # is contrary to our usage. Disable this feature.
11864 alias -g '${1+"$@"}'='"$@"'
11865 setopt NO_GLOB_SUBST
11866 else case e in #(
11867 e) case `(set -o) 2>/dev/null` in #(
11868 *posix*) :
11869 set -o posix ;; #(
11870 *) :
11871 ;;
11872 esac ;;
11873 esac
11874 fi
11875
11876
11877
11878 # Reset variables that may have inherited troublesome values from
11879 # the environment.
11880
11881 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11882 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11883 # side effect of setting IFS to empty, thus disabling word splitting.)
11884 # Quoting is to prevent editors from complaining about space-tab.
11885 as_nl='
11886 '
11887 export as_nl
11888 IFS=" "" $as_nl"
11889
11890 PS1='$ '
11891 PS2='> '
11892 PS4='+ '
11893
11894 # Ensure predictable behavior from utilities with locale-dependent output.
11895 LC_ALL=C
11896 export LC_ALL
11897 LANGUAGE=C
11898 export LANGUAGE
11899
11900 # We cannot yet rely on "unset" to work, but we need these variables
11901 # to be unset--not just set to an empty or harmless value--now, to
11902 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11903 # also avoids known problems related to "unset" and subshell syntax
11904 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11905 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11906 do eval test \${$as_var+y} \
11907 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11908 done
11909
11910 # Ensure that fds 0, 1, and 2 are open.
11911 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11912 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11913 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11914
11915 # The user is always right.
11916 if ${PATH_SEPARATOR+false} :; then
11917 PATH_SEPARATOR=:
11918 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11919 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11920 PATH_SEPARATOR=';'
11921 }
11922 fi
11923
11924
11925 # Find who we are. Look in the path if we contain no directory separator.
11926 as_myself=
11927 case $0 in #((
11928 *[\\/]* ) as_myself=$0 ;;
11929 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930 for as_dir in $PATH
11931 do
11932 IFS=$as_save_IFS
11933 case $as_dir in #(((
11934 '') as_dir=./ ;;
11935 */) ;;
11936 *) as_dir=$as_dir/ ;;
11937 esac
11938 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11939 done
11940 IFS=$as_save_IFS
11941
11942 ;;
11943 esac
11944 # We did not find ourselves, most probably we were run as 'sh COMMAND'
11945 # in which case we are not to be found in the path.
11946 if test "x$as_myself" = x; then
11947 as_myself=$0
11948 fi
11949 if test ! -f "$as_myself"; then
11950 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11951 exit 1
11952 fi
11953
11954
11955
11956 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11957 # ----------------------------------------
11958 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11959 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11960 # script with STATUS, using 1 if that was 0.
11961 as_fn_error ()
11962 {
11963 as_status=$1; test $as_status -eq 0 && as_status=1
11964 if test "$4"; then
11965 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11967 fi
11968 printf "%s\n" "$as_me: error: $2" >&2
11969 as_fn_exit $as_status
11970 } # as_fn_error
11971
11972
11973 # as_fn_set_status STATUS
11974 # -----------------------
11975 # Set $? to STATUS, without forking.
11976 as_fn_set_status ()
11977 {
11978 return $1
11979 } # as_fn_set_status
11980
11981 # as_fn_exit STATUS
11982 # -----------------
11983 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11984 as_fn_exit ()
11985 {
11986 set +e
11987 as_fn_set_status $1
11988 exit $1
11989 } # as_fn_exit
11990
11991 # as_fn_unset VAR
11992 # ---------------
11993 # Portably unset VAR.
11994 as_fn_unset ()
11995 {
11996 { eval $1=; unset $1;}
11997 }
11998 as_unset=as_fn_unset
11999
12000 # as_fn_append VAR VALUE
12001 # ----------------------
12002 # Append the text in VALUE to the end of the definition contained in VAR. Take
12003 # advantage of any shell optimizations that allow amortized linear growth over
12004 # repeated appends, instead of the typical quadratic growth present in naive
12005 # implementations.
12006 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12007 then :
12008 eval 'as_fn_append ()
12009 {
12010 eval $1+=\$2
12011 }'
12012 else case e in #(
12013 e) as_fn_append ()
12014 {
12015 eval $1=\$$1\$2
12016 } ;;
12017 esac
12018 fi # as_fn_append
12019
12020 # as_fn_arith ARG...
12021 # ------------------
12022 # Perform arithmetic evaluation on the ARGs, and store the result in the
12023 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12024 # must be portable across $(()) and expr.
12025 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12026 then :
12027 eval 'as_fn_arith ()
12028 {
12029 as_val=$(( $* ))
12030 }'
12031 else case e in #(
12032 e) as_fn_arith ()
12033 {
12034 as_val=`expr "$@" || test $? -eq 1`
12035 } ;;
12036 esac
12037 fi # as_fn_arith
12038
12039
12040 if expr a : '\(a\)' >/dev/null 2>&1 &&
12041 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12042 as_expr=expr
12043 else
12044 as_expr=false
12045 fi
12046
12047 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12048 as_basename=basename
12049 else
12050 as_basename=false
12051 fi
12052
12053 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12054 as_dirname=dirname
12055 else
12056 as_dirname=false
12057 fi
12058
12059 as_me=`$as_basename -- "$0" ||
12060 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12061 X"$0" : 'X\(//\)$' \| \
12062 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12063 printf "%s\n" X/"$0" |
12064 sed '/^.*\/\([^/][^/]*\)\/*$/{
12065 s//\1/
12066 q
12067 }
12068 /^X\/\(\/\/\)$/{
12069 s//\1/
12070 q
12071 }
12072 /^X\/\(\/\).*/{
12073 s//\1/
12074 q
12075 }
12076 s/.*/./; q'`
12077
12078 # Avoid depending upon Character Ranges.
12079 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12080 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12081 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12082 as_cr_digits='0123456789'
12083 as_cr_alnum=$as_cr_Letters$as_cr_digits
12084
12085
12086 # Determine whether it's possible to make 'echo' print without a newline.
12087 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12088 # for compatibility with existing Makefiles.
12089 ECHO_C= ECHO_N= ECHO_T=
12090 case `echo -n x` in #(((((
12091 -n*)
12092 case `echo 'xy\c'` in
12093 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12094 xy) ECHO_C='\c';;
12095 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12096 ECHO_T=' ';;
12097 esac;;
12098 *)
12099 ECHO_N='-n';;
12100 esac
12101
12102 # For backward compatibility with old third-party macros, we provide
12103 # the shell variables $as_echo and $as_echo_n. New code should use
12104 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12105 as_echo='printf %s\n'
12106 as_echo_n='printf %s'
12107
12108 rm -f conf$$ conf$$.exe conf$$.file
12109 if test -d conf$$.dir; then
12110 rm -f conf$$.dir/conf$$.file
12111 else
12112 rm -f conf$$.dir
12113 mkdir conf$$.dir 2>/dev/null
12114 fi
12115 if (echo >conf$$.file) 2>/dev/null; then
12116 if ln -s conf$$.file conf$$ 2>/dev/null; then
12117 as_ln_s='ln -s'
12118 # ... but there are two gotchas:
12119 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12120 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12121 # In both cases, we have to default to 'cp -pR'.
12122 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12123 as_ln_s='cp -pR'
12124 elif ln conf$$.file conf$$ 2>/dev/null; then
12125 as_ln_s=ln
12126 else
12127 as_ln_s='cp -pR'
12128 fi
12129 else
12130 as_ln_s='cp -pR'
12131 fi
12132 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12133 rmdir conf$$.dir 2>/dev/null
12134
12135
12136 # as_fn_mkdir_p
12137 # -------------
12138 # Create "$as_dir" as a directory, including parents if necessary.
12139 as_fn_mkdir_p ()
12140 {
12141
12142 case $as_dir in #(
12143 -*) as_dir=./$as_dir;;
12144 esac
12145 test -d "$as_dir" || eval $as_mkdir_p || {
12146 as_dirs=
12147 while :; do
12148 case $as_dir in #(
12149 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12150 *) as_qdir=$as_dir;;
12151 esac
12152 as_dirs="'$as_qdir' $as_dirs"
12153 as_dir=`$as_dirname -- "$as_dir" ||
12154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12155 X"$as_dir" : 'X\(//\)[^/]' \| \
12156 X"$as_dir" : 'X\(//\)$' \| \
12157 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12158 printf "%s\n" X"$as_dir" |
12159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12160 s//\1/
12161 q
12162 }
12163 /^X\(\/\/\)[^/].*/{
12164 s//\1/
12165 q
12166 }
12167 /^X\(\/\/\)$/{
12168 s//\1/
12169 q
12170 }
12171 /^X\(\/\).*/{
12172 s//\1/
12173 q
12174 }
12175 s/.*/./; q'`
12176 test -d "$as_dir" && break
12177 done
12178 test -z "$as_dirs" || eval "mkdir $as_dirs"
12179 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12180
12181
12182 } # as_fn_mkdir_p
12183 if mkdir -p . 2>/dev/null; then
12184 as_mkdir_p='mkdir -p "$as_dir"'
12185 else
12186 test -d ./-p && rmdir ./-p
12187 as_mkdir_p=false
12188 fi
12189
12190
12191 # as_fn_executable_p FILE
12192 # -----------------------
12193 # Test if FILE is an executable regular file.
12194 as_fn_executable_p ()
12195 {
12196 test -f "$1" && test -x "$1"
12197 } # as_fn_executable_p
12198 as_test_x='test -x'
12199 as_executable_p=as_fn_executable_p
12200
12201 # Sed expression to map a string onto a valid CPP name.
12202 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12203 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12204
12205 # Sed expression to map a string onto a valid variable name.
12206 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12207 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12208
12209
12210 exec 6>&1
12211 ## ----------------------------------- ##
12212 ## Main body of $CONFIG_STATUS script. ##
12213 ## ----------------------------------- ##
12214 _ASEOF
12215 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12216
12217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12218 # Save the log message, to keep $0 and so on meaningful, and to
12219 # report actual input values of CONFIG_FILES etc. instead of their
12220 # values after options handling.
12221 ac_log="
12222 This file was extended by xprop $as_me 1.2.7, which was
12223 generated by GNU Autoconf 2.72. Invocation command line was
12224
12225 CONFIG_FILES = $CONFIG_FILES
12226 CONFIG_HEADERS = $CONFIG_HEADERS
12227 CONFIG_LINKS = $CONFIG_LINKS
12228 CONFIG_COMMANDS = $CONFIG_COMMANDS
12229 $ $0 $@
12230
12231 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12232 "
12233
12234 _ACEOF
12235
12236 case $ac_config_files in *"
12237 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12238 esac
12239
12240 case $ac_config_headers in *"
12241 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12242 esac
12243
12244
12245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12246 # Files that config.status was made for.
12247 config_files="$ac_config_files"
12248 config_headers="$ac_config_headers"
12249 config_commands="$ac_config_commands"
12250
12251 _ACEOF
12252
12253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12254 ac_cs_usage="\
12255 '$as_me' instantiates files and other configuration actions
12256 from templates according to the current configuration. Unless the files
12257 and actions are specified as TAGs, all are instantiated by default.
12258
12259 Usage: $0 [OPTION]... [TAG]...
12260
12261 -h, --help print this help, then exit
12262 -V, --version print version number and configuration settings, then exit
12263 --config print configuration, then exit
12264 -q, --quiet, --silent
12265 do not print progress messages
12266 -d, --debug don't remove temporary files
12267 --recheck update $as_me by reconfiguring in the same conditions
12268 --file=FILE[:TEMPLATE]
12269 instantiate the configuration file FILE
12270 --header=FILE[:TEMPLATE]
12271 instantiate the configuration header FILE
12272
12273 Configuration files:
12274 $config_files
12275
12276 Configuration headers:
12277 $config_headers
12278
12279 Configuration commands:
12280 $config_commands
12281
12282 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xprop/-/issues>."
12283
12284 _ACEOF
12285 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12286 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12288 ac_cs_config='$ac_cs_config_escaped'
12289 ac_cs_version="\\
12290 xprop config.status 1.2.7
12291 configured by $0, generated by GNU Autoconf 2.72,
12292 with options \\"\$ac_cs_config\\"
12293
12294 Copyright (C) 2023 Free Software Foundation, Inc.
12295 This config.status script is free software; the Free Software Foundation
12296 gives unlimited permission to copy, distribute and modify it."
12297
12298 ac_pwd='$ac_pwd'
12299 srcdir='$srcdir'
12300 INSTALL='$INSTALL'
12301 MKDIR_P='$MKDIR_P'
12302 AWK='$AWK'
12303 test -n "\$AWK" || AWK=awk
12304 _ACEOF
12305
12306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12307 # The default lists apply if the user does not specify any file.
12308 ac_need_defaults=:
12309 while test $# != 0
12310 do
12311 case $1 in
12312 --*=?*)
12313 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12314 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12315 ac_shift=:
12316 ;;
12317 --*=)
12318 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12319 ac_optarg=
12320 ac_shift=:
12321 ;;
12322 *)
12323 ac_option=$1
12324 ac_optarg=$2
12325 ac_shift=shift
12326 ;;
12327 esac
12328
12329 case $ac_option in
12330 # Handling of the options.
12331 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12332 ac_cs_recheck=: ;;
12333 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12334 printf "%s\n" "$ac_cs_version"; exit ;;
12335 --config | --confi | --conf | --con | --co | --c )
12336 printf "%s\n" "$ac_cs_config"; exit ;;
12337 --debug | --debu | --deb | --de | --d | -d )
12338 debug=: ;;
12339 --file | --fil | --fi | --f )
12340 $ac_shift
12341 case $ac_optarg in
12342 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12343 '') as_fn_error $? "missing file argument" ;;
12344 esac
12345 as_fn_append CONFIG_FILES " '$ac_optarg'"
12346 ac_need_defaults=false;;
12347 --header | --heade | --head | --hea )
12348 $ac_shift
12349 case $ac_optarg in
12350 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12351 esac
12352 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12353 ac_need_defaults=false;;
12354 --he | --h)
12355 # Conflict between --help and --header
12356 as_fn_error $? "ambiguous option: '$1'
12357 Try '$0 --help' for more information.";;
12358 --help | --hel | -h )
12359 printf "%s\n" "$ac_cs_usage"; exit ;;
12360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12361 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12362 ac_cs_silent=: ;;
12363
12364 # This is an error.
12365 -*) as_fn_error $? "unrecognized option: '$1'
12366 Try '$0 --help' for more information." ;;
12367
12368 *) as_fn_append ac_config_targets " $1"
12369 ac_need_defaults=false ;;
12370
12371 esac
12372 shift
12373 done
12374
12375 ac_configure_extra_args=
12376
12377 if $ac_cs_silent; then
12378 exec 6>/dev/null
12379 ac_configure_extra_args="$ac_configure_extra_args --silent"
12380 fi
12381
12382 _ACEOF
12383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12384 if \$ac_cs_recheck; then
12385 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12386 shift
12387 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12388 CONFIG_SHELL='$SHELL'
12389 export CONFIG_SHELL
12390 exec "\$@"
12391 fi
12392
12393 _ACEOF
12394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12395 exec 5>>config.log
12396 {
12397 echo
12398 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12399 ## Running $as_me. ##
12400 _ASBOX
12401 printf "%s\n" "$ac_log"
12402 } >&5
12403
12404 _ACEOF
12405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12406 #
12407 # INIT-COMMANDS
12408 #
12409 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12410
12411 _ACEOF
12412
12413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12414
12415 # Handling of arguments.
12416 for ac_config_target in $ac_config_targets
12417 do
12418 case $ac_config_target in
12419 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12420 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12421 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12422 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12423
12424 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12425 esac
12426 done
12427
12428
12429 # If the user did not use the arguments to specify the items to instantiate,
12430 # then the envvar interface is used. Set only those that are not.
12431 # We use the long form for the default assignment because of an extremely
12432 # bizarre bug on SunOS 4.1.3.
12433 if $ac_need_defaults; then
12434 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12435 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12436 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12437 fi
12438
12439 # Have a temporary directory for convenience. Make it in the build tree
12440 # simply because there is no reason against having it here, and in addition,
12441 # creating and moving files from /tmp can sometimes cause problems.
12442 # Hook for its removal unless debugging.
12443 # Note that there is a small window in which the directory will not be cleaned:
12444 # after its creation but before its name has been assigned to '$tmp'.
12445 $debug ||
12446 {
12447 tmp= ac_tmp=
12448 trap 'exit_status=$?
12449 : "${ac_tmp:=$tmp}"
12450 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12451 ' 0
12452 trap 'as_fn_exit 1' 1 2 13 15
12453 }
12454 # Create a (secure) tmp directory for tmp files.
12455
12456 {
12457 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12458 test -d "$tmp"
12459 } ||
12460 {
12461 tmp=./conf$$-$RANDOM
12462 (umask 077 && mkdir "$tmp")
12463 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12464 ac_tmp=$tmp
12465
12466 # Set up the scripts for CONFIG_FILES section.
12467 # No need to generate them if there are no CONFIG_FILES.
12468 # This happens for instance with './config.status config.h'.
12469 if test -n "$CONFIG_FILES"; then
12470
12471
12472 ac_cr=`echo X | tr X '\015'`
12473 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12474 # But we know of no other shell where ac_cr would be empty at this
12475 # point, so we can use a bashism as a fallback.
12476 if test "x$ac_cr" = x; then
12477 eval ac_cr=\$\'\\r\'
12478 fi
12479 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12480 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12481 ac_cs_awk_cr='\\r'
12482 else
12483 ac_cs_awk_cr=$ac_cr
12484 fi
12485
12486 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12487 _ACEOF
12488
12489
12490 {
12491 echo "cat >conf$$subs.awk <<_ACEOF" &&
12492 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12493 echo "_ACEOF"
12494 } >conf$$subs.sh ||
12495 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12496 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12497 ac_delim='%!_!# '
12498 for ac_last_try in false false false false false :; do
12499 . ./conf$$subs.sh ||
12500 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12501
12502 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12503 if test $ac_delim_n = $ac_delim_num; then
12504 break
12505 elif $ac_last_try; then
12506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12507 else
12508 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12509 fi
12510 done
12511 rm -f conf$$subs.sh
12512
12513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12514 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12515 _ACEOF
12516 sed -n '
12517 h
12518 s/^/S["/; s/!.*/"]=/
12519 p
12520 g
12521 s/^[^!]*!//
12522 :repl
12523 t repl
12524 s/'"$ac_delim"'$//
12525 t delim
12526 :nl
12527 h
12528 s/\(.\{148\}\)..*/\1/
12529 t more1
12530 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12531 p
12532 n
12533 b repl
12534 :more1
12535 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12536 p
12537 g
12538 s/.\{148\}//
12539 t nl
12540 :delim
12541 h
12542 s/\(.\{148\}\)..*/\1/
12543 t more2
12544 s/["\\]/\\&/g; s/^/"/; s/$/"/
12545 p
12546 b
12547 :more2
12548 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12549 p
12550 g
12551 s/.\{148\}//
12552 t delim
12553 ' <conf$$subs.awk | sed '
12554 /^[^""]/{
12555 N
12556 s/\n//
12557 }
12558 ' >>$CONFIG_STATUS || ac_write_fail=1
12559 rm -f conf$$subs.awk
12560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12561 _ACAWK
12562 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12563 for (key in S) S_is_set[key] = 1
12564 FS = ""
12565
12566 }
12567 {
12568 line = $ 0
12569 nfields = split(line, field, "@")
12570 substed = 0
12571 len = length(field[1])
12572 for (i = 2; i < nfields; i++) {
12573 key = field[i]
12574 keylen = length(key)
12575 if (S_is_set[key]) {
12576 value = S[key]
12577 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12578 len += length(value) + length(field[++i])
12579 substed = 1
12580 } else
12581 len += 1 + keylen
12582 }
12583
12584 print line
12585 }
12586
12587 _ACAWK
12588 _ACEOF
12589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12590 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12591 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12592 else
12593 cat
12594 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12595 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12596 _ACEOF
12597
12598 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12599 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12600 # trailing colons and then remove the whole line if VPATH becomes empty
12601 # (actually we leave an empty line to preserve line numbers).
12602 if test "x$srcdir" = x.; then
12603 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12604 h
12605 s///
12606 s/^/:/
12607 s/[ ]*$/:/
12608 s/:\$(srcdir):/:/g
12609 s/:\${srcdir}:/:/g
12610 s/:@srcdir@:/:/g
12611 s/^:*//
12612 s/:*$//
12613 x
12614 s/\(=[ ]*\).*/\1/
12615 G
12616 s/\n//
12617 s/^[^=]*=[ ]*$//
12618 }'
12619 fi
12620
12621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12622 fi # test -n "$CONFIG_FILES"
12623
12624 # Set up the scripts for CONFIG_HEADERS section.
12625 # No need to generate them if there are no CONFIG_HEADERS.
12626 # This happens for instance with './config.status Makefile'.
12627 if test -n "$CONFIG_HEADERS"; then
12628 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12629 BEGIN {
12630 _ACEOF
12631
12632 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12633 # here-document in config.status, that substitutes the proper values into
12634 # config.h.in to produce config.h.
12635
12636 # Create a delimiter string that does not exist in confdefs.h, to ease
12637 # handling of long lines.
12638 ac_delim='%!_!# '
12639 for ac_last_try in false false :; do
12640 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12641 if test -z "$ac_tt"; then
12642 break
12643 elif $ac_last_try; then
12644 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12645 else
12646 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12647 fi
12648 done
12649
12650 # For the awk script, D is an array of macro values keyed by name,
12651 # likewise P contains macro parameters if any. Preserve backslash
12652 # newline sequences.
12653
12654 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12655 sed -n '
12656 s/.\{148\}/&'"$ac_delim"'/g
12657 t rset
12658 :rset
12659 s/^[ ]*#[ ]*define[ ][ ]*/ /
12660 t def
12661 d
12662 :def
12663 s/\\$//
12664 t bsnl
12665 s/["\\]/\\&/g
12666 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12667 D["\1"]=" \3"/p
12668 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12669 d
12670 :bsnl
12671 s/["\\]/\\&/g
12672 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12673 D["\1"]=" \3\\\\\\n"\\/p
12674 t cont
12675 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12676 t cont
12677 d
12678 :cont
12679 n
12680 s/.\{148\}/&'"$ac_delim"'/g
12681 t clear
12682 :clear
12683 s/\\$//
12684 t bsnlc
12685 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12686 d
12687 :bsnlc
12688 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12689 b cont
12690 ' <confdefs.h | sed '
12691 s/'"$ac_delim"'/"\\\
12692 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12693
12694 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12695 for (key in D) D_is_set[key] = 1
12696 FS = ""
12697 }
12698 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12699 line = \$ 0
12700 split(line, arg, " ")
12701 if (arg[1] == "#") {
12702 defundef = arg[2]
12703 mac1 = arg[3]
12704 } else {
12705 defundef = substr(arg[1], 2)
12706 mac1 = arg[2]
12707 }
12708 split(mac1, mac2, "(") #)
12709 macro = mac2[1]
12710 prefix = substr(line, 1, index(line, defundef) - 1)
12711 if (D_is_set[macro]) {
12712 # Preserve the white space surrounding the "#".
12713 print prefix "define", macro P[macro] D[macro]
12714 next
12715 } else {
12716 # Replace #undef with comments. This is necessary, for example,
12717 # in the case of _POSIX_SOURCE, which is predefined and required
12718 # on some systems where configure will not decide to define it.
12719 if (defundef == "undef") {
12720 print "/*", prefix defundef, macro, "*/"
12721 next
12722 }
12723 }
12724 }
12725 { print }
12726 _ACAWK
12727 _ACEOF
12728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12729 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12730 fi # test -n "$CONFIG_HEADERS"
12731
12732
12733 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12734 shift
12735 for ac_tag
12736 do
12737 case $ac_tag in
12738 :[FHLC]) ac_mode=$ac_tag; continue;;
12739 esac
12740 case $ac_mode$ac_tag in
12741 :[FHL]*:*);;
12742 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12743 :[FH]-) ac_tag=-:-;;
12744 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12745 esac
12746 ac_save_IFS=$IFS
12747 IFS=:
12748 set x $ac_tag
12749 IFS=$ac_save_IFS
12750 shift
12751 ac_file=$1
12752 shift
12753
12754 case $ac_mode in
12755 :L) ac_source=$1;;
12756 :[FH])
12757 ac_file_inputs=
12758 for ac_f
12759 do
12760 case $ac_f in
12761 -) ac_f="$ac_tmp/stdin";;
12762 *) # Look for the file first in the build tree, then in the source tree
12763 # (if the path is not absolute). The absolute path cannot be DOS-style,
12764 # because $ac_f cannot contain ':'.
12765 test -f "$ac_f" ||
12766 case $ac_f in
12767 [\\/$]*) false;;
12768 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12769 esac ||
12770 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12771 esac
12772 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12773 as_fn_append ac_file_inputs " '$ac_f'"
12774 done
12775
12776 # Let's still pretend it is 'configure' which instantiates (i.e., don't
12777 # use $as_me), people would be surprised to read:
12778 # /* config.h. Generated by config.status. */
12779 configure_input='Generated from '`
12780 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12781 `' by configure.'
12782 if test x"$ac_file" != x-; then
12783 configure_input="$ac_file. $configure_input"
12784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12785 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12786 fi
12787 # Neutralize special characters interpreted by sed in replacement strings.
12788 case $configure_input in #(
12789 *\&* | *\|* | *\\* )
12790 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12791 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12792 *) ac_sed_conf_input=$configure_input;;
12793 esac
12794
12795 case $ac_tag in
12796 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12797 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12798 esac
12799 ;;
12800 esac
12801
12802 ac_dir=`$as_dirname -- "$ac_file" ||
12803 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12804 X"$ac_file" : 'X\(//\)[^/]' \| \
12805 X"$ac_file" : 'X\(//\)$' \| \
12806 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12807 printf "%s\n" X"$ac_file" |
12808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12809 s//\1/
12810 q
12811 }
12812 /^X\(\/\/\)[^/].*/{
12813 s//\1/
12814 q
12815 }
12816 /^X\(\/\/\)$/{
12817 s//\1/
12818 q
12819 }
12820 /^X\(\/\).*/{
12821 s//\1/
12822 q
12823 }
12824 s/.*/./; q'`
12825 as_dir="$ac_dir"; as_fn_mkdir_p
12826 ac_builddir=.
12827
12828 case "$ac_dir" in
12829 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12830 *)
12831 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12832 # A ".." for each directory in $ac_dir_suffix.
12833 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12834 case $ac_top_builddir_sub in
12835 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12836 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12837 esac ;;
12838 esac
12839 ac_abs_top_builddir=$ac_pwd
12840 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12841 # for backward compatibility:
12842 ac_top_builddir=$ac_top_build_prefix
12843
12844 case $srcdir in
12845 .) # We are building in place.
12846 ac_srcdir=.
12847 ac_top_srcdir=$ac_top_builddir_sub
12848 ac_abs_top_srcdir=$ac_pwd ;;
12849 [\\/]* | ?:[\\/]* ) # Absolute name.
12850 ac_srcdir=$srcdir$ac_dir_suffix;
12851 ac_top_srcdir=$srcdir
12852 ac_abs_top_srcdir=$srcdir ;;
12853 *) # Relative name.
12854 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12855 ac_top_srcdir=$ac_top_build_prefix$srcdir
12856 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12857 esac
12858 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12859
12860
12861 case $ac_mode in
12862 :F)
12863 #
12864 # CONFIG_FILE
12865 #
12866
12867 case $INSTALL in
12868 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12869 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12870 esac
12871 ac_MKDIR_P=$MKDIR_P
12872 case $MKDIR_P in
12873 [\\/$]* | ?:[\\/]* ) ;;
12874 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12875 esac
12876 _ACEOF
12877
12878 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12879 # If the template does not know about datarootdir, expand it.
12880 # FIXME: This hack should be removed a few years after 2.60.
12881 ac_datarootdir_hack=; ac_datarootdir_seen=
12882 ac_sed_dataroot='
12883 /datarootdir/ {
12884 p
12885 q
12886 }
12887 /@datadir@/p
12888 /@docdir@/p
12889 /@infodir@/p
12890 /@localedir@/p
12891 /@mandir@/p'
12892 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12893 *datarootdir*) ac_datarootdir_seen=yes;;
12894 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12896 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12897 _ACEOF
12898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12899 ac_datarootdir_hack='
12900 s&@datadir@&$datadir&g
12901 s&@docdir@&$docdir&g
12902 s&@infodir@&$infodir&g
12903 s&@localedir@&$localedir&g
12904 s&@mandir@&$mandir&g
12905 s&\\\${datarootdir}&$datarootdir&g' ;;
12906 esac
12907 _ACEOF
12908
12909 # Neutralize VPATH when '$srcdir' = '.'.
12910 # Shell code in configure.ac might set extrasub.
12911 # FIXME: do we really want to maintain this feature?
12912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12913 ac_sed_extra="$ac_vpsub
12914 $extrasub
12915 _ACEOF
12916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12917 :t
12918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12919 s|@configure_input@|$ac_sed_conf_input|;t t
12920 s&@top_builddir@&$ac_top_builddir_sub&;t t
12921 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12922 s&@srcdir@&$ac_srcdir&;t t
12923 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12924 s&@top_srcdir@&$ac_top_srcdir&;t t
12925 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12926 s&@builddir@&$ac_builddir&;t t
12927 s&@abs_builddir@&$ac_abs_builddir&;t t
12928 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12929 s&@INSTALL@&$ac_INSTALL&;t t
12930 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12931 $ac_datarootdir_hack
12932 "
12933 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12934 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12935
12936 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12937 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12938 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12939 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12941 which seems to be undefined. Please make sure it is defined" >&5
12942 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
12943 which seems to be undefined. Please make sure it is defined" >&2;}
12944
12945 rm -f "$ac_tmp/stdin"
12946 case $ac_file in
12947 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12948 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12949 esac \
12950 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12951 ;;
12952 :H)
12953 #
12954 # CONFIG_HEADER
12955 #
12956 if test x"$ac_file" != x-; then
12957 {
12958 printf "%s\n" "/* $configure_input */" >&1 \
12959 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12960 } >"$ac_tmp/config.h" \
12961 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12962 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12964 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12965 else
12966 rm -f "$ac_file"
12967 mv "$ac_tmp/config.h" "$ac_file" \
12968 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12969 fi
12970 else
12971 printf "%s\n" "/* $configure_input */" >&1 \
12972 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12973 || as_fn_error $? "could not create -" "$LINENO" 5
12974 fi
12975 # Compute "$ac_file"'s index in $config_headers.
12976 _am_arg="$ac_file"
12977 _am_stamp_count=1
12978 for _am_header in $config_headers :; do
12979 case $_am_header in
12980 $_am_arg | $_am_arg:* )
12981 break ;;
12982 * )
12983 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12984 esac
12985 done
12986 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12987 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12988 X"$_am_arg" : 'X\(//\)[^/]' \| \
12989 X"$_am_arg" : 'X\(//\)$' \| \
12990 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12991 printf "%s\n" X"$_am_arg" |
12992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12993 s//\1/
12994 q
12995 }
12996 /^X\(\/\/\)[^/].*/{
12997 s//\1/
12998 q
12999 }
13000 /^X\(\/\/\)$/{
13001 s//\1/
13002 q
13003 }
13004 /^X\(\/\).*/{
13005 s//\1/
13006 q
13007 }
13008 s/.*/./; q'`/stamp-h$_am_stamp_count
13009 ;;
13010
13011 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13012 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13013 ;;
13014 esac
13015
13016
13017 case $ac_file$ac_mode in
13018 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13019 # Older Autoconf quotes --file arguments for eval, but not when files
13020 # are listed without --file. Let's play safe and only enable the eval
13021 # if we detect the quoting.
13022 # TODO: see whether this extra hack can be removed once we start
13023 # requiring Autoconf 2.70 or later.
13024 case $CONFIG_FILES in #(
13025 *\'*) :
13026 eval set x "$CONFIG_FILES" ;; #(
13027 *) :
13028 set x $CONFIG_FILES ;; #(
13029 *) :
13030 ;;
13031 esac
13032 shift
13033 # Used to flag and report bootstrapping failures.
13034 am_rc=0
13035 for am_mf
13036 do
13037 # Strip MF so we end up with the name of the file.
13038 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13039 # Check whether this is an Automake generated Makefile which includes
13040 # dependency-tracking related rules and includes.
13041 # Grep'ing the whole file directly is not great: AIX grep has a line
13042 # limit of 2048, but all sed's we know have understand at least 4000.
13043 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13044 || continue
13045 am_dirpart=`$as_dirname -- "$am_mf" ||
13046 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13047 X"$am_mf" : 'X\(//\)[^/]' \| \
13048 X"$am_mf" : 'X\(//\)$' \| \
13049 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13050 printf "%s\n" X"$am_mf" |
13051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13052 s//\1/
13053 q
13054 }
13055 /^X\(\/\/\)[^/].*/{
13056 s//\1/
13057 q
13058 }
13059 /^X\(\/\/\)$/{
13060 s//\1/
13061 q
13062 }
13063 /^X\(\/\).*/{
13064 s//\1/
13065 q
13066 }
13067 s/.*/./; q'`
13068 am_filepart=`$as_basename -- "$am_mf" ||
13069 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13070 X"$am_mf" : 'X\(//\)$' \| \
13071 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13072 printf "%s\n" X/"$am_mf" |
13073 sed '/^.*\/\([^/][^/]*\)\/*$/{
13074 s//\1/
13075 q
13076 }
13077 /^X\/\(\/\/\)$/{
13078 s//\1/
13079 q
13080 }
13081 /^X\/\(\/\).*/{
13082 s//\1/
13083 q
13084 }
13085 s/.*/./; q'`
13086 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13087 && sed -e '/# am--include-marker/d' "$am_filepart" \
13088 | $MAKE -f - am--depfiles" >&5
13089 (cd "$am_dirpart" \
13090 && sed -e '/# am--include-marker/d' "$am_filepart" \
13091 | $MAKE -f - am--depfiles) >&5 2>&5
13092 ac_status=$?
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); } || am_rc=$?
13095 done
13096 if test $am_rc -ne 0; then
13097 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13098 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13099 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13100 for automatic dependency tracking. If GNU make was not used, consider
13101 re-running the configure script with MAKE=\"gmake\" (or whatever is
13102 necessary). You can also try re-running configure with the
13103 '--disable-dependency-tracking' option to at least be able to build
13104 the package (albeit without support for automatic dependency tracking).
13105 See 'config.log' for more details" "$LINENO" 5; }
13106 fi
13107 { am_dirpart=; unset am_dirpart;}
13108 { am_filepart=; unset am_filepart;}
13109 { am_mf=; unset am_mf;}
13110 { am_rc=; unset am_rc;}
13111 rm -f conftest-deps.mk
13112 }
13113 ;;
13114
13115 esac
13116 done # for ac_tag
13117
13118
13119 as_fn_exit 0
13120 _ACEOF
13121 ac_clean_files=$ac_clean_files_save
13122
13123 test $ac_write_fail = 0 ||
13124 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13125
13126
13127 # configure is writing to config.log, and then calls config.status.
13128 # config.status does its own redirection, appending to config.log.
13129 # Unfortunately, on DOS this fails, as config.log is still kept open
13130 # by configure, so config.status won't be able to write to it; its
13131 # output is simply discarded. So we exec the FD to /dev/null,
13132 # effectively closing config.log, so it can be properly (re)opened and
13133 # appended to by config.status. When coming back to configure, we
13134 # need to make the FD available again.
13135 if test "$no_create" != yes; then
13136 ac_cs_success=:
13137 ac_config_status_args=
13138 test "$silent" = yes &&
13139 ac_config_status_args="$ac_config_status_args --quiet"
13140 exec 5>/dev/null
13141 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13142 exec 5>>config.log
13143 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13144 # would make configure fail if this is the last instruction.
13145 $ac_cs_success || as_fn_exit 1
13146 fi
13147 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13149 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13150 fi
13151
13152