configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for twm 1.0.13.1.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/twm/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
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 \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
271 $0: https://gitlab.freedesktop.org/xorg/app/twm/issues
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
275 $0: have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317 # as_fn_nop
318 # ---------
319 # Do nothing but, unlike ":", preserve the value of $?.
320 as_fn_nop ()
321 {
322 return $?
323 }
324 as_nop=as_fn_nop
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else $as_nop
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406 then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else $as_nop
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418 # as_fn_nop
419 # ---------
420 # Do nothing but, unlike ":", preserve the value of $?.
421 as_fn_nop ()
422 {
423 return $?
424 }
425 as_nop=as_fn_nop
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547
548 rm -f conf$$ conf$$.exe conf$$.file
549 if test -d conf$$.dir; then
550 rm -f conf$$.dir/conf$$.file
551 else
552 rm -f conf$$.dir
553 mkdir conf$$.dir 2>/dev/null
554 fi
555 if (echo >conf$$.file) 2>/dev/null; then
556 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s='ln -s'
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 as_ln_s='cp -pR'
564 elif ln conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s=ln
566 else
567 as_ln_s='cp -pR'
568 fi
569 else
570 as_ln_s='cp -pR'
571 fi
572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573 rmdir conf$$.dir 2>/dev/null
574
575 if mkdir -p . 2>/dev/null; then
576 as_mkdir_p='mkdir -p "$as_dir"'
577 else
578 test -d ./-p && rmdir ./-p
579 as_mkdir_p=false
580 fi
581
582 as_test_x='test -x'
583 as_executable_p=as_fn_executable_p
584
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='twm'
614 PACKAGE_TARNAME='twm'
615 PACKAGE_VERSION='1.0.13.1'
616 PACKAGE_STRING='twm 1.0.13.1'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/twm/issues'
618 PACKAGE_URL=''
619
620 ac_unique_file="Makefile.am"
621 # Factoring default headers for most tests.
622 ac_includes_default="\
623 #include <stddef.h>
624 #ifdef HAVE_STDIO_H
625 # include <stdio.h>
626 #endif
627 #ifdef HAVE_STDLIB_H
628 # include <stdlib.h>
629 #endif
630 #ifdef HAVE_STRING_H
631 # include <string.h>
632 #endif
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
635 #endif
636 #ifdef HAVE_STDINT_H
637 # include <stdint.h>
638 #endif
639 #ifdef HAVE_STRINGS_H
640 # include <strings.h>
641 #endif
642 #ifdef HAVE_SYS_TYPES_H
643 # include <sys/types.h>
644 #endif
645 #ifdef HAVE_SYS_STAT_H
646 # include <sys/stat.h>
647 #endif
648 #ifdef HAVE_UNISTD_H
649 # include <unistd.h>
650 #endif"
651
652 ac_header_c_list=
653 ac_subst_vars='am__EXEEXT_FALSE
654 am__EXEEXT_TRUE
655 LTLIBOBJS
656 LIBOBJS
657 XRANDR_LIBS
658 XRANDR_CFLAGS
659 TWM_LIBS
660 TWM_CFLAGS
661 LEXLIB
662 LEX_OUTPUT_ROOT
663 LEX
664 YACC_INST
665 YFLAGS
666 YACC
667 MAN_SUBSTS
668 XORG_MAN_PAGE
669 ADMIN_MAN_DIR
670 DRIVER_MAN_DIR
671 MISC_MAN_DIR
672 FILE_MAN_DIR
673 LIB_MAN_DIR
674 APP_MAN_DIR
675 ADMIN_MAN_SUFFIX
676 DRIVER_MAN_SUFFIX
677 MISC_MAN_SUFFIX
678 FILE_MAN_SUFFIX
679 LIB_MAN_SUFFIX
680 APP_MAN_SUFFIX
681 SED
682 host_os
683 host_vendor
684 host_cpu
685 host
686 build_os
687 build_vendor
688 build_cpu
689 build
690 INSTALL_CMD
691 PKG_CONFIG_LIBDIR
692 PKG_CONFIG_PATH
693 PKG_CONFIG
694 CHANGELOG_CMD
695 STRICT_CFLAGS
696 CWARNFLAGS
697 BASE_CFLAGS
698 AM_BACKSLASH
699 AM_DEFAULT_VERBOSITY
700 AM_DEFAULT_V
701 AM_V
702 CSCOPE
703 ETAGS
704 CTAGS
705 am__fastdepCC_FALSE
706 am__fastdepCC_TRUE
707 CCDEPMODE
708 am__nodep
709 AMDEPBACKSLASH
710 AMDEP_FALSE
711 AMDEP_TRUE
712 am__include
713 DEPDIR
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
719 AWK
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 OBJEXT
738 EXEEXT
739 ac_ct_CC
740 CPPFLAGS
741 LDFLAGS
742 CFLAGS
743 CC
744 target_alias
745 host_alias
746 build_alias
747 LIBS
748 ECHO_T
749 ECHO_N
750 ECHO_C
751 DEFS
752 mandir
753 localedir
754 libdir
755 psdir
756 pdfdir
757 dvidir
758 htmldir
759 infodir
760 docdir
761 oldincludedir
762 includedir
763 runstatedir
764 localstatedir
765 sharedstatedir
766 sysconfdir
767 datadir
768 datarootdir
769 libexecdir
770 sbindir
771 bindir
772 program_transform_name
773 prefix
774 exec_prefix
775 PACKAGE_URL
776 PACKAGE_BUGREPORT
777 PACKAGE_STRING
778 PACKAGE_VERSION
779 PACKAGE_TARNAME
780 PACKAGE_NAME
781 PATH_SEPARATOR
782 SHELL
783 am__quote'
784 ac_subst_files=''
785 ac_user_opts='
786 enable_option_checking
787 enable_dependency_tracking
788 enable_silent_rules
789 enable_selective_werror
790 enable_strict_compilation
791 '
792 ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
800 PKG_CONFIG
801 PKG_CONFIG_PATH
802 PKG_CONFIG_LIBDIR
803 YACC
804 YFLAGS
805 TWM_CFLAGS
806 TWM_LIBS
807 XRANDR_CFLAGS
808 XRANDR_LIBS'
809
810
811 # Initialize some variables set by options.
812 ac_init_help=
813 ac_init_version=false
814 ac_unrecognized_opts=
815 ac_unrecognized_sep=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
818 cache_file=/dev/null
819 exec_prefix=NONE
820 no_create=
821 no_recursion=
822 prefix=NONE
823 program_prefix=NONE
824 program_suffix=NONE
825 program_transform_name=s,x,x,
826 silent=
827 site=
828 srcdir=
829 verbose=
830 x_includes=NONE
831 x_libraries=NONE
832
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 runstatedir='${localstatedir}/run'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
851 infodir='${datarootdir}/info'
852 htmldir='${docdir}'
853 dvidir='${docdir}'
854 pdfdir='${docdir}'
855 psdir='${docdir}'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
859
860 ac_prev=
861 ac_dashdash=
862 for ac_option
863 do
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
867 ac_prev=
868 continue
869 fi
870
871 case $ac_option in
872 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 *=) ac_optarg= ;;
874 *) ac_optarg=yes ;;
875 esac
876
877 case $ac_dashdash$ac_option in
878 --)
879 ac_dashdash=yes ;;
880
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 ac_prev=bindir ;;
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 bindir=$ac_optarg ;;
885
886 -build | --build | --buil | --bui | --bu)
887 ac_prev=build_alias ;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias=$ac_optarg ;;
890
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev=cache_file ;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file=$ac_optarg ;;
897
898 --config-cache | -C)
899 cache_file=config.cache ;;
900
901 -datadir | --datadir | --datadi | --datad)
902 ac_prev=datadir ;;
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir=$ac_optarg ;;
905
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev=datarootdir ;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir=$ac_optarg ;;
912
913 -disable-* | --disable-*)
914 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917 as_fn_error $? "invalid feature name: \`$ac_useropt'"
918 ac_useropt_orig=$ac_useropt
919 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
921 *"
922 "enable_$ac_useropt"
923 "*) ;;
924 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep=', ';;
926 esac
927 eval enable_$ac_useropt=no ;;
928
929 -docdir | --docdir | --docdi | --doc | --do)
930 ac_prev=docdir ;;
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932 docdir=$ac_optarg ;;
933
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 ac_prev=dvidir ;;
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937 dvidir=$ac_optarg ;;
938
939 -enable-* | --enable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: \`$ac_useropt'"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=\$ac_optarg ;;
954
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev=exec_prefix ;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix=$ac_optarg ;;
963
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
966 with_gas=yes ;;
967
968 -help | --help | --hel | --he | -h)
969 ac_init_help=long ;;
970 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971 ac_init_help=recursive ;;
972 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973 ac_init_help=short ;;
974
975 -host | --host | --hos | --ho)
976 ac_prev=host_alias ;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias=$ac_optarg ;;
979
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 ac_prev=htmldir ;;
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 | --ht=*)
984 htmldir=$ac_optarg ;;
985
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev=includedir ;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir=$ac_optarg ;;
992
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 ac_prev=infodir ;;
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir=$ac_optarg ;;
997
998 -libdir | --libdir | --libdi | --libd)
999 ac_prev=libdir ;;
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir=$ac_optarg ;;
1002
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev=libexecdir ;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir=$ac_optarg ;;
1009
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev=localedir ;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir=$ac_optarg ;;
1014
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev=localstatedir ;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir=$ac_optarg ;;
1021
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 ac_prev=mandir ;;
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir=$ac_optarg ;;
1026
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1029 with_fp=no ;;
1030
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1033 no_create=yes ;;
1034
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037 no_recursion=yes ;;
1038
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev=oldincludedir ;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir=$ac_optarg ;;
1047
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 ac_prev=prefix ;;
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix=$ac_optarg ;;
1052
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev=program_prefix ;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix=$ac_optarg ;;
1059
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev=program_suffix ;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix=$ac_optarg ;;
1066
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev=program_transform_name ;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name=$ac_optarg ;;
1083
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 ac_prev=pdfdir ;;
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir=$ac_optarg ;;
1088
1089 -psdir | --psdir | --psdi | --psd | --ps)
1090 ac_prev=psdir ;;
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092 psdir=$ac_optarg ;;
1093
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1096 silent=yes ;;
1097
1098 -runstatedir | --runstatedir | --runstatedi | --runstated \
1099 | --runstate | --runstat | --runsta | --runst | --runs \
1100 | --run | --ru | --r)
1101 ac_prev=runstatedir ;;
1102 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1103 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1104 | --run=* | --ru=* | --r=*)
1105 runstatedir=$ac_optarg ;;
1106
1107 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1108 ac_prev=sbindir ;;
1109 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1110 | --sbi=* | --sb=*)
1111 sbindir=$ac_optarg ;;
1112
1113 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1114 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1115 | --sharedst | --shareds | --shared | --share | --shar \
1116 | --sha | --sh)
1117 ac_prev=sharedstatedir ;;
1118 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1119 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1120 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1121 | --sha=* | --sh=*)
1122 sharedstatedir=$ac_optarg ;;
1123
1124 -site | --site | --sit)
1125 ac_prev=site ;;
1126 -site=* | --site=* | --sit=*)
1127 site=$ac_optarg ;;
1128
1129 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1130 ac_prev=srcdir ;;
1131 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1132 srcdir=$ac_optarg ;;
1133
1134 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1135 | --syscon | --sysco | --sysc | --sys | --sy)
1136 ac_prev=sysconfdir ;;
1137 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1138 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1139 sysconfdir=$ac_optarg ;;
1140
1141 -target | --target | --targe | --targ | --tar | --ta | --t)
1142 ac_prev=target_alias ;;
1143 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1144 target_alias=$ac_optarg ;;
1145
1146 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1147 verbose=yes ;;
1148
1149 -version | --version | --versio | --versi | --vers | -V)
1150 ac_init_version=: ;;
1151
1152 -with-* | --with-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: \`$ac_useropt'"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1160 *"
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=\$ac_optarg ;;
1167
1168 -without-* | --without-*)
1169 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172 as_fn_error $? "invalid package name: \`$ac_useropt'"
1173 ac_useropt_orig=$ac_useropt
1174 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1175 case $ac_user_opts in
1176 *"
1177 "with_$ac_useropt"
1178 "*) ;;
1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1180 ac_unrecognized_sep=', ';;
1181 esac
1182 eval with_$ac_useropt=no ;;
1183
1184 --x)
1185 # Obsolete; use --with-x.
1186 with_x=yes ;;
1187
1188 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1189 | --x-incl | --x-inc | --x-in | --x-i)
1190 ac_prev=x_includes ;;
1191 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1192 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1193 x_includes=$ac_optarg ;;
1194
1195 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1196 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1197 ac_prev=x_libraries ;;
1198 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1199 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1200 x_libraries=$ac_optarg ;;
1201
1202 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1203 Try \`$0 --help' for more information"
1204 ;;
1205
1206 *=*)
1207 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1208 # Reject names that are not valid shell variable names.
1209 case $ac_envvar in #(
1210 '' | [0-9]* | *[!_$as_cr_alnum]* )
1211 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1212 esac
1213 eval $ac_envvar=\$ac_optarg
1214 export $ac_envvar ;;
1215
1216 *)
1217 # FIXME: should be removed in autoconf 3.0.
1218 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1219 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1220 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1221 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1222 ;;
1223
1224 esac
1225 done
1226
1227 if test -n "$ac_prev"; then
1228 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1229 as_fn_error $? "missing argument to $ac_option"
1230 fi
1231
1232 if test -n "$ac_unrecognized_opts"; then
1233 case $enable_option_checking in
1234 no) ;;
1235 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1236 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1237 esac
1238 fi
1239
1240 # Check all directory arguments for consistency.
1241 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1242 datadir sysconfdir sharedstatedir localstatedir includedir \
1243 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1244 libdir localedir mandir runstatedir
1245 do
1246 eval ac_val=\$$ac_var
1247 # Remove trailing slashes.
1248 case $ac_val in
1249 */ )
1250 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1251 eval $ac_var=\$ac_val;;
1252 esac
1253 # Be sure to have absolute directory names.
1254 case $ac_val in
1255 [\\/$]* | ?:[\\/]* ) continue;;
1256 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1257 esac
1258 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1259 done
1260
1261 # There might be people who depend on the old broken behavior: `$host'
1262 # used to hold the argument of --host etc.
1263 # FIXME: To remove some day.
1264 build=$build_alias
1265 host=$host_alias
1266 target=$target_alias
1267
1268 # FIXME: To remove some day.
1269 if test "x$host_alias" != x; then
1270 if test "x$build_alias" = x; then
1271 cross_compiling=maybe
1272 elif test "x$build_alias" != "x$host_alias"; then
1273 cross_compiling=yes
1274 fi
1275 fi
1276
1277 ac_tool_prefix=
1278 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1279
1280 test "$silent" = yes && exec 6>/dev/null
1281
1282
1283 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1284 ac_ls_di=`ls -di .` &&
1285 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1286 as_fn_error $? "working directory cannot be determined"
1287 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1288 as_fn_error $? "pwd does not report name of working directory"
1289
1290
1291 # Find the source files, if location was not specified.
1292 if test -z "$srcdir"; then
1293 ac_srcdir_defaulted=yes
1294 # Try the directory containing this script, then the parent directory.
1295 ac_confdir=`$as_dirname -- "$as_myself" ||
1296 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1297 X"$as_myself" : 'X\(//\)[^/]' \| \
1298 X"$as_myself" : 'X\(//\)$' \| \
1299 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1300 printf "%s\n" X"$as_myself" |
1301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)[^/].*/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)$/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\).*/{
1314 s//\1/
1315 q
1316 }
1317 s/.*/./; q'`
1318 srcdir=$ac_confdir
1319 if test ! -r "$srcdir/$ac_unique_file"; then
1320 srcdir=..
1321 fi
1322 else
1323 ac_srcdir_defaulted=no
1324 fi
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1327 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1328 fi
1329 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1330 ac_abs_confdir=`(
1331 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1332 pwd)`
1333 # When building in place, set srcdir=.
1334 if test "$ac_abs_confdir" = "$ac_pwd"; then
1335 srcdir=.
1336 fi
1337 # Remove unnecessary trailing slashes from srcdir.
1338 # Double slashes in file names in object file debugging info
1339 # mess up M-x gdb in Emacs.
1340 case $srcdir in
1341 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1342 esac
1343 for ac_var in $ac_precious_vars; do
1344 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1345 eval ac_env_${ac_var}_value=\$${ac_var}
1346 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1347 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 done
1349
1350 #
1351 # Report the --help message.
1352 #
1353 if test "$ac_init_help" = "long"; then
1354 # Omit some internal or obsolete options to make the list less imposing.
1355 # This message is too long to be a string in the A/UX 3.1 sh.
1356 cat <<_ACEOF
1357 \`configure' configures twm 1.0.13.1 to adapt to many kinds of systems.
1358
1359 Usage: $0 [OPTION]... [VAR=VALUE]...
1360
1361 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1362 VAR=VALUE. See below for descriptions of some of the useful variables.
1363
1364 Defaults for the options are specified in brackets.
1365
1366 Configuration:
1367 -h, --help display this help and exit
1368 --help=short display options specific to this package
1369 --help=recursive display the short help of all the included packages
1370 -V, --version display version information and exit
1371 -q, --quiet, --silent do not print \`checking ...' messages
1372 --cache-file=FILE cache test results in FILE [disabled]
1373 -C, --config-cache alias for \`--cache-file=config.cache'
1374 -n, --no-create do not create output files
1375 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1376
1377 Installation directories:
1378 --prefix=PREFIX install architecture-independent files in PREFIX
1379 [$ac_default_prefix]
1380 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1381 [PREFIX]
1382
1383 By default, \`make install' will install all the files in
1384 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1385 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1386 for instance \`--prefix=\$HOME'.
1387
1388 For better control, use the options below.
1389
1390 Fine tuning of the installation directories:
1391 --bindir=DIR user executables [EPREFIX/bin]
1392 --sbindir=DIR system admin executables [EPREFIX/sbin]
1393 --libexecdir=DIR program executables [EPREFIX/libexec]
1394 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1395 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1396 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1397 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1398 --libdir=DIR object code libraries [EPREFIX/lib]
1399 --includedir=DIR C header files [PREFIX/include]
1400 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1401 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1402 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1403 --infodir=DIR info documentation [DATAROOTDIR/info]
1404 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1405 --mandir=DIR man documentation [DATAROOTDIR/man]
1406 --docdir=DIR documentation root [DATAROOTDIR/doc/twm]
1407 --htmldir=DIR html documentation [DOCDIR]
1408 --dvidir=DIR dvi documentation [DOCDIR]
1409 --pdfdir=DIR pdf documentation [DOCDIR]
1410 --psdir=DIR ps documentation [DOCDIR]
1411 _ACEOF
1412
1413 cat <<\_ACEOF
1414
1415 Program names:
1416 --program-prefix=PREFIX prepend PREFIX to installed program names
1417 --program-suffix=SUFFIX append SUFFIX to installed program names
1418 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1419
1420 System types:
1421 --build=BUILD configure for building on BUILD [guessed]
1422 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1423 _ACEOF
1424 fi
1425
1426 if test -n "$ac_init_help"; then
1427 case $ac_init_help in
1428 short | recursive ) echo "Configuration of twm 1.0.13.1:";;
1429 esac
1430 cat <<\_ACEOF
1431
1432 Optional Features:
1433 --disable-option-checking ignore unrecognized --enable/--with options
1434 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1435 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1436 --enable-dependency-tracking
1437 do not reject slow dependency extractors
1438 --disable-dependency-tracking
1439 speeds up one-time build
1440 --enable-silent-rules less verbose build output (undo: "make V=1")
1441 --disable-silent-rules verbose build output (undo: "make V=0")
1442 --disable-selective-werror
1443 Turn off selective compiler errors. (default:
1444 enabled)
1445 --enable-strict-compilation
1446 Enable all warnings from compiler and make them
1447 errors (default: disabled)
1448
1449 Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1457 PKG_CONFIG path to pkg-config utility
1458 PKG_CONFIG_PATH
1459 directories to add to pkg-config's search path
1460 PKG_CONFIG_LIBDIR
1461 path overriding pkg-config's built-in search path
1462 YACC The `Yet Another Compiler Compiler' implementation to use.
1463 Defaults to the first program found out of: `bison -y', `byacc',
1464 `yacc'.
1465 YFLAGS The list of arguments that will be passed by default to $YACC.
1466 This script will default YFLAGS to the empty string to avoid a
1467 default value of `-d' given by some make applications.
1468 TWM_CFLAGS C compiler flags for TWM, overriding pkg-config
1469 TWM_LIBS linker flags for TWM, overriding pkg-config
1470 XRANDR_CFLAGS
1471 C compiler flags for XRANDR, overriding pkg-config
1472 XRANDR_LIBS linker flags for XRANDR, overriding pkg-config
1473
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1476
1477 Report bugs to <https://gitlab.freedesktop.org/xorg/app/twm/issues>.
1478 _ACEOF
1479 ac_status=$?
1480 fi
1481
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1489
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *)
1493 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1505
1506 case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for configure.gnu first; this name is used for a wrapper for
1524 # Metaconfig's "Configure" on case-insensitive file systems.
1525 if test -f "$ac_srcdir/configure.gnu"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1528 elif test -f "$ac_srcdir/configure"; then
1529 echo &&
1530 $SHELL "$ac_srcdir/configure" --help=recursive
1531 else
1532 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 fi || ac_status=$?
1534 cd "$ac_pwd" || { ac_status=$?; break; }
1535 done
1536 fi
1537
1538 test -n "$ac_init_help" && exit $ac_status
1539 if $ac_init_version; then
1540 cat <<\_ACEOF
1541 twm configure 1.0.13.1
1542 generated by GNU Autoconf 2.71
1543
1544 Copyright (C) 2021 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547 _ACEOF
1548 exit
1549 fi
1550
1551 ## ------------------------ ##
1552 ## Autoconf initialization. ##
1553 ## ------------------------ ##
1554
1555 # ac_fn_c_try_compile LINENO
1556 # --------------------------
1557 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1558 ac_fn_c_try_compile ()
1559 {
1560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1561 rm -f conftest.$ac_objext conftest.beam
1562 if { { ac_try="$ac_compile"
1563 case "(($ac_try" in
1564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1565 *) ac_try_echo=$ac_try;;
1566 esac
1567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1568 printf "%s\n" "$ac_try_echo"; } >&5
1569 (eval "$ac_compile") 2>conftest.err
1570 ac_status=$?
1571 if test -s conftest.err; then
1572 grep -v '^ *+' conftest.err >conftest.er1
1573 cat conftest.er1 >&5
1574 mv -f conftest.er1 conftest.err
1575 fi
1576 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1577 test $ac_status = 0; } && {
1578 test -z "$ac_c_werror_flag" ||
1579 test ! -s conftest.err
1580 } && test -s conftest.$ac_objext
1581 then :
1582 ac_retval=0
1583 else $as_nop
1584 printf "%s\n" "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1586
1587 ac_retval=1
1588 fi
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1591
1592 } # ac_fn_c_try_compile
1593
1594 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1595 # -------------------------------------------------------
1596 # Tests whether HEADER exists and can be compiled using the include files in
1597 # INCLUDES, setting the cache variable VAR accordingly.
1598 ac_fn_c_check_header_compile ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602 printf %s "checking for $2... " >&6; }
1603 if eval test \${$3+y}
1604 then :
1605 printf %s "(cached) " >&6
1606 else $as_nop
1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h. */
1609 $4
1610 #include <$2>
1611 _ACEOF
1612 if ac_fn_c_try_compile "$LINENO"
1613 then :
1614 eval "$3=yes"
1615 else $as_nop
1616 eval "$3=no"
1617 fi
1618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1619 fi
1620 eval ac_res=\$$3
1621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1622 printf "%s\n" "$ac_res" >&6; }
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624
1625 } # ac_fn_c_check_header_compile
1626
1627 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1628 # ------------------------------------------------------------------
1629 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1630 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1631 ac_fn_check_decl ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 as_decl_name=`echo $2|sed 's/ *(.*//'`
1635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1636 printf %s "checking whether $as_decl_name is declared... " >&6; }
1637 if eval test \${$3+y}
1638 then :
1639 printf %s "(cached) " >&6
1640 else $as_nop
1641 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1642 eval ac_save_FLAGS=\$$6
1643 as_fn_append $6 " $5"
1644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1645 /* end confdefs.h. */
1646 $4
1647 int
1648 main (void)
1649 {
1650 #ifndef $as_decl_name
1651 #ifdef __cplusplus
1652 (void) $as_decl_use;
1653 #else
1654 (void) $as_decl_name;
1655 #endif
1656 #endif
1657
1658 ;
1659 return 0;
1660 }
1661 _ACEOF
1662 if ac_fn_c_try_compile "$LINENO"
1663 then :
1664 eval "$3=yes"
1665 else $as_nop
1666 eval "$3=no"
1667 fi
1668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1669 eval $6=\$ac_save_FLAGS
1670
1671 fi
1672 eval ac_res=\$$3
1673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1674 printf "%s\n" "$ac_res" >&6; }
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676
1677 } # ac_fn_check_decl
1678
1679 # ac_fn_c_try_link LINENO
1680 # -----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded.
1682 ac_fn_c_try_link ()
1683 {
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1686 if { { ac_try="$ac_link"
1687 case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690 esac
1691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 printf "%s\n" "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest$ac_exeext && {
1705 test "$cross_compiling" = yes ||
1706 test -x conftest$ac_exeext
1707 }
1708 then :
1709 ac_retval=0
1710 else $as_nop
1711 printf "%s\n" "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=1
1715 fi
1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718 # interfere with the next link command; also delete a directory that is
1719 # left behind by Apple's compiler. We do this before executing the actions.
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_link
1725
1726 # ac_fn_c_check_func LINENO FUNC VAR
1727 # ----------------------------------
1728 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1729 ac_fn_c_check_func ()
1730 {
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1733 printf %s "checking for $2... " >&6; }
1734 if eval test \${$3+y}
1735 then :
1736 printf %s "(cached) " >&6
1737 else $as_nop
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1742 #define $2 innocuous_$2
1743
1744 /* System header to define __stub macros and hopefully few prototypes,
1745 which can conflict with char $2 (); below. */
1746
1747 #include <limits.h>
1748 #undef $2
1749
1750 /* Override any GCC internal prototype to avoid an error.
1751 Use char because int might match the return type of a GCC
1752 builtin and then its argument prototype would still apply. */
1753 #ifdef __cplusplus
1754 extern "C"
1755 #endif
1756 char $2 ();
1757 /* The GNU C library defines this for functions which it implements
1758 to always fail with ENOSYS. Some functions are actually named
1759 something starting with __ and the normal name is an alias. */
1760 #if defined __stub_$2 || defined __stub___$2
1761 choke me
1762 #endif
1763
1764 int
1765 main (void)
1766 {
1767 return $2 ();
1768 ;
1769 return 0;
1770 }
1771 _ACEOF
1772 if ac_fn_c_try_link "$LINENO"
1773 then :
1774 eval "$3=yes"
1775 else $as_nop
1776 eval "$3=no"
1777 fi
1778 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1779 conftest$ac_exeext conftest.$ac_ext
1780 fi
1781 eval ac_res=\$$3
1782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 printf "%s\n" "$ac_res" >&6; }
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786 } # ac_fn_c_check_func
1787 ac_configure_args_raw=
1788 for ac_arg
1789 do
1790 case $ac_arg in
1791 *\'*)
1792 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1793 esac
1794 as_fn_append ac_configure_args_raw " '$ac_arg'"
1795 done
1796
1797 case $ac_configure_args_raw in
1798 *$as_nl*)
1799 ac_safe_unquote= ;;
1800 *)
1801 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1802 ac_unsafe_a="$ac_unsafe_z#~"
1803 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1804 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1805 esac
1806
1807 cat >config.log <<_ACEOF
1808 This file contains any messages produced by compilers while
1809 running configure, to aid debugging if configure makes a mistake.
1810
1811 It was created by twm $as_me 1.0.13.1, which was
1812 generated by GNU Autoconf 2.71. Invocation command line was
1813
1814 $ $0$ac_configure_args_raw
1815
1816 _ACEOF
1817 exec 5>>config.log
1818 {
1819 cat <<_ASUNAME
1820 ## --------- ##
1821 ## Platform. ##
1822 ## --------- ##
1823
1824 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1825 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1826 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1827 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1828 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1829
1830 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1831 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1832
1833 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1834 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1835 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1836 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1837 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1838 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1839 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1840
1841 _ASUNAME
1842
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 for as_dir in $PATH
1845 do
1846 IFS=$as_save_IFS
1847 case $as_dir in #(((
1848 '') as_dir=./ ;;
1849 */) ;;
1850 *) as_dir=$as_dir/ ;;
1851 esac
1852 printf "%s\n" "PATH: $as_dir"
1853 done
1854 IFS=$as_save_IFS
1855
1856 } >&5
1857
1858 cat >&5 <<_ACEOF
1859
1860
1861 ## ----------- ##
1862 ## Core tests. ##
1863 ## ----------- ##
1864
1865 _ACEOF
1866
1867
1868 # Keep a trace of the command line.
1869 # Strip out --no-create and --no-recursion so they do not pile up.
1870 # Strip out --silent because we don't want to record it for future runs.
1871 # Also quote any args containing shell meta-characters.
1872 # Make two passes to allow for proper duplicate-argument suppression.
1873 ac_configure_args=
1874 ac_configure_args0=
1875 ac_configure_args1=
1876 ac_must_keep_next=false
1877 for ac_pass in 1 2
1878 do
1879 for ac_arg
1880 do
1881 case $ac_arg in
1882 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1883 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1884 | -silent | --silent | --silen | --sile | --sil)
1885 continue ;;
1886 *\'*)
1887 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1888 esac
1889 case $ac_pass in
1890 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1891 2)
1892 as_fn_append ac_configure_args1 " '$ac_arg'"
1893 if test $ac_must_keep_next = true; then
1894 ac_must_keep_next=false # Got value, back to normal.
1895 else
1896 case $ac_arg in
1897 *=* | --config-cache | -C | -disable-* | --disable-* \
1898 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1899 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1900 | -with-* | --with-* | -without-* | --without-* | --x)
1901 case "$ac_configure_args0 " in
1902 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1903 esac
1904 ;;
1905 -* ) ac_must_keep_next=true ;;
1906 esac
1907 fi
1908 as_fn_append ac_configure_args " '$ac_arg'"
1909 ;;
1910 esac
1911 done
1912 done
1913 { ac_configure_args0=; unset ac_configure_args0;}
1914 { ac_configure_args1=; unset ac_configure_args1;}
1915
1916 # When interrupted or exit'd, cleanup temporary files, and complete
1917 # config.log. We remove comments because anyway the quotes in there
1918 # would cause problems or look ugly.
1919 # WARNING: Use '\'' to represent an apostrophe within the trap.
1920 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1921 trap 'exit_status=$?
1922 # Sanitize IFS.
1923 IFS=" "" $as_nl"
1924 # Save into config.log some information that might help in debugging.
1925 {
1926 echo
1927
1928 printf "%s\n" "## ---------------- ##
1929 ## Cache variables. ##
1930 ## ---------------- ##"
1931 echo
1932 # The following way of writing the cache mishandles newlines in values,
1933 (
1934 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1935 eval ac_val=\$$ac_var
1936 case $ac_val in #(
1937 *${as_nl}*)
1938 case $ac_var in #(
1939 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1940 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1941 esac
1942 case $ac_var in #(
1943 _ | IFS | as_nl) ;; #(
1944 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1945 *) { eval $ac_var=; unset $ac_var;} ;;
1946 esac ;;
1947 esac
1948 done
1949 (set) 2>&1 |
1950 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1951 *${as_nl}ac_space=\ *)
1952 sed -n \
1953 "s/'\''/'\''\\\\'\'''\''/g;
1954 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1955 ;; #(
1956 *)
1957 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1958 ;;
1959 esac |
1960 sort
1961 )
1962 echo
1963
1964 printf "%s\n" "## ----------------- ##
1965 ## Output variables. ##
1966 ## ----------------- ##"
1967 echo
1968 for ac_var in $ac_subst_vars
1969 do
1970 eval ac_val=\$$ac_var
1971 case $ac_val in
1972 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1973 esac
1974 printf "%s\n" "$ac_var='\''$ac_val'\''"
1975 done | sort
1976 echo
1977
1978 if test -n "$ac_subst_files"; then
1979 printf "%s\n" "## ------------------- ##
1980 ## File substitutions. ##
1981 ## ------------------- ##"
1982 echo
1983 for ac_var in $ac_subst_files
1984 do
1985 eval ac_val=\$$ac_var
1986 case $ac_val in
1987 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1988 esac
1989 printf "%s\n" "$ac_var='\''$ac_val'\''"
1990 done | sort
1991 echo
1992 fi
1993
1994 if test -s confdefs.h; then
1995 printf "%s\n" "## ----------- ##
1996 ## confdefs.h. ##
1997 ## ----------- ##"
1998 echo
1999 cat confdefs.h
2000 echo
2001 fi
2002 test "$ac_signal" != 0 &&
2003 printf "%s\n" "$as_me: caught signal $ac_signal"
2004 printf "%s\n" "$as_me: exit $exit_status"
2005 } >&5
2006 rm -f core *.core core.conftest.* &&
2007 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2008 exit $exit_status
2009 ' 0
2010 for ac_signal in 1 2 13 15; do
2011 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2012 done
2013 ac_signal=0
2014
2015 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2016 rm -f -r conftest* confdefs.h
2017
2018 printf "%s\n" "/* confdefs.h */" > confdefs.h
2019
2020 # Predefined preprocessor variables.
2021
2022 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2023
2024 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2025
2026 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2027
2028 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2029
2030 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2031
2032 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2033
2034
2035 # Let the site file select an alternate cache file if it wants to.
2036 # Prefer an explicitly selected file to automatically selected ones.
2037 if test -n "$CONFIG_SITE"; then
2038 ac_site_files="$CONFIG_SITE"
2039 elif test "x$prefix" != xNONE; then
2040 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2041 else
2042 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2043 fi
2044
2045 for ac_site_file in $ac_site_files
2046 do
2047 case $ac_site_file in #(
2048 */*) :
2049 ;; #(
2050 *) :
2051 ac_site_file=./$ac_site_file ;;
2052 esac
2053 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2055 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2056 sed 's/^/| /' "$ac_site_file" >&5
2057 . "$ac_site_file" \
2058 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2059 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2060 as_fn_error $? "failed to load site script $ac_site_file
2061 See \`config.log' for more details" "$LINENO" 5; }
2062 fi
2063 done
2064
2065 if test -r "$cache_file"; then
2066 # Some versions of bash will fail to source /dev/null (special files
2067 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2068 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2070 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2071 case $cache_file in
2072 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2073 *) . "./$cache_file";;
2074 esac
2075 fi
2076 else
2077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2078 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2079 >$cache_file
2080 fi
2081
2082 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2083 # Test code for whether the C compiler supports C89 (global declarations)
2084 ac_c_conftest_c89_globals='
2085 /* Does the compiler advertise C89 conformance?
2086 Do not test the value of __STDC__, because some compilers set it to 0
2087 while being otherwise adequately conformant. */
2088 #if !defined __STDC__
2089 # error "Compiler does not advertise C89 conformance"
2090 #endif
2091
2092 #include <stddef.h>
2093 #include <stdarg.h>
2094 struct stat;
2095 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2096 struct buf { int x; };
2097 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2098 static char *e (p, i)
2099 char **p;
2100 int i;
2101 {
2102 return p[i];
2103 }
2104 static char *f (char * (*g) (char **, int), char **p, ...)
2105 {
2106 char *s;
2107 va_list v;
2108 va_start (v,p);
2109 s = g (p, va_arg (v,int));
2110 va_end (v);
2111 return s;
2112 }
2113
2114 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2115 function prototypes and stuff, but not \xHH hex character constants.
2116 These do not provoke an error unfortunately, instead are silently treated
2117 as an "x". The following induces an error, until -std is added to get
2118 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2119 array size at least. It is necessary to write \x00 == 0 to get something
2120 that is true only with -std. */
2121 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2122
2123 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2124 inside strings and character constants. */
2125 #define FOO(x) '\''x'\''
2126 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2127
2128 int test (int i, double x);
2129 struct s1 {int (*f) (int a);};
2130 struct s2 {int (*f) (double a);};
2131 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2132 int, int);'
2133
2134 # Test code for whether the C compiler supports C89 (body of main).
2135 ac_c_conftest_c89_main='
2136 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2137 '
2138
2139 # Test code for whether the C compiler supports C99 (global declarations)
2140 ac_c_conftest_c99_globals='
2141 // Does the compiler advertise C99 conformance?
2142 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2143 # error "Compiler does not advertise C99 conformance"
2144 #endif
2145
2146 #include <stdbool.h>
2147 extern int puts (const char *);
2148 extern int printf (const char *, ...);
2149 extern int dprintf (int, const char *, ...);
2150 extern void *malloc (size_t);
2151
2152 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2153 // dprintf is used instead of fprintf to avoid needing to declare
2154 // FILE and stderr.
2155 #define debug(...) dprintf (2, __VA_ARGS__)
2156 #define showlist(...) puts (#__VA_ARGS__)
2157 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2158 static void
2159 test_varargs_macros (void)
2160 {
2161 int x = 1234;
2162 int y = 5678;
2163 debug ("Flag");
2164 debug ("X = %d\n", x);
2165 showlist (The first, second, and third items.);
2166 report (x>y, "x is %d but y is %d", x, y);
2167 }
2168
2169 // Check long long types.
2170 #define BIG64 18446744073709551615ull
2171 #define BIG32 4294967295ul
2172 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2173 #if !BIG_OK
2174 #error "your preprocessor is broken"
2175 #endif
2176 #if BIG_OK
2177 #else
2178 #error "your preprocessor is broken"
2179 #endif
2180 static long long int bignum = -9223372036854775807LL;
2181 static unsigned long long int ubignum = BIG64;
2182
2183 struct incomplete_array
2184 {
2185 int datasize;
2186 double data[];
2187 };
2188
2189 struct named_init {
2190 int number;
2191 const wchar_t *name;
2192 double average;
2193 };
2194
2195 typedef const char *ccp;
2196
2197 static inline int
2198 test_restrict (ccp restrict text)
2199 {
2200 // See if C++-style comments work.
2201 // Iterate through items via the restricted pointer.
2202 // Also check for declarations in for loops.
2203 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2204 continue;
2205 return 0;
2206 }
2207
2208 // Check varargs and va_copy.
2209 static bool
2210 test_varargs (const char *format, ...)
2211 {
2212 va_list args;
2213 va_start (args, format);
2214 va_list args_copy;
2215 va_copy (args_copy, args);
2216
2217 const char *str = "";
2218 int number = 0;
2219 float fnumber = 0;
2220
2221 while (*format)
2222 {
2223 switch (*format++)
2224 {
2225 case '\''s'\'': // string
2226 str = va_arg (args_copy, const char *);
2227 break;
2228 case '\''d'\'': // int
2229 number = va_arg (args_copy, int);
2230 break;
2231 case '\''f'\'': // float
2232 fnumber = va_arg (args_copy, double);
2233 break;
2234 default:
2235 break;
2236 }
2237 }
2238 va_end (args_copy);
2239 va_end (args);
2240
2241 return *str && number && fnumber;
2242 }
2243 '
2244
2245 # Test code for whether the C compiler supports C99 (body of main).
2246 ac_c_conftest_c99_main='
2247 // Check bool.
2248 _Bool success = false;
2249 success |= (argc != 0);
2250
2251 // Check restrict.
2252 if (test_restrict ("String literal") == 0)
2253 success = true;
2254 char *restrict newvar = "Another string";
2255
2256 // Check varargs.
2257 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2258 test_varargs_macros ();
2259
2260 // Check flexible array members.
2261 struct incomplete_array *ia =
2262 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2263 ia->datasize = 10;
2264 for (int i = 0; i < ia->datasize; ++i)
2265 ia->data[i] = i * 1.234;
2266
2267 // Check named initializers.
2268 struct named_init ni = {
2269 .number = 34,
2270 .name = L"Test wide string",
2271 .average = 543.34343,
2272 };
2273
2274 ni.number = 58;
2275
2276 int dynamic_array[ni.number];
2277 dynamic_array[0] = argv[0][0];
2278 dynamic_array[ni.number - 1] = 543;
2279
2280 // work around unused variable warnings
2281 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2282 || dynamic_array[ni.number - 1] != 543);
2283 '
2284
2285 # Test code for whether the C compiler supports C11 (global declarations)
2286 ac_c_conftest_c11_globals='
2287 // Does the compiler advertise C11 conformance?
2288 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2289 # error "Compiler does not advertise C11 conformance"
2290 #endif
2291
2292 // Check _Alignas.
2293 char _Alignas (double) aligned_as_double;
2294 char _Alignas (0) no_special_alignment;
2295 extern char aligned_as_int;
2296 char _Alignas (0) _Alignas (int) aligned_as_int;
2297
2298 // Check _Alignof.
2299 enum
2300 {
2301 int_alignment = _Alignof (int),
2302 int_array_alignment = _Alignof (int[100]),
2303 char_alignment = _Alignof (char)
2304 };
2305 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2306
2307 // Check _Noreturn.
2308 int _Noreturn does_not_return (void) { for (;;) continue; }
2309
2310 // Check _Static_assert.
2311 struct test_static_assert
2312 {
2313 int x;
2314 _Static_assert (sizeof (int) <= sizeof (long int),
2315 "_Static_assert does not work in struct");
2316 long int y;
2317 };
2318
2319 // Check UTF-8 literals.
2320 #define u8 syntax error!
2321 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2322
2323 // Check duplicate typedefs.
2324 typedef long *long_ptr;
2325 typedef long int *long_ptr;
2326 typedef long_ptr long_ptr;
2327
2328 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2329 struct anonymous
2330 {
2331 union {
2332 struct { int i; int j; };
2333 struct { int k; long int l; } w;
2334 };
2335 int m;
2336 } v1;
2337 '
2338
2339 # Test code for whether the C compiler supports C11 (body of main).
2340 ac_c_conftest_c11_main='
2341 _Static_assert ((offsetof (struct anonymous, i)
2342 == offsetof (struct anonymous, w.k)),
2343 "Anonymous union alignment botch");
2344 v1.i = 2;
2345 v1.w.k = 5;
2346 ok |= v1.i != 5;
2347 '
2348
2349 # Test code for whether the C compiler supports C11 (complete).
2350 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2351 ${ac_c_conftest_c99_globals}
2352 ${ac_c_conftest_c11_globals}
2353
2354 int
2355 main (int argc, char **argv)
2356 {
2357 int ok = 0;
2358 ${ac_c_conftest_c89_main}
2359 ${ac_c_conftest_c99_main}
2360 ${ac_c_conftest_c11_main}
2361 return ok;
2362 }
2363 "
2364
2365 # Test code for whether the C compiler supports C99 (complete).
2366 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2367 ${ac_c_conftest_c99_globals}
2368
2369 int
2370 main (int argc, char **argv)
2371 {
2372 int ok = 0;
2373 ${ac_c_conftest_c89_main}
2374 ${ac_c_conftest_c99_main}
2375 return ok;
2376 }
2377 "
2378
2379 # Test code for whether the C compiler supports C89 (complete).
2380 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2381
2382 int
2383 main (int argc, char **argv)
2384 {
2385 int ok = 0;
2386 ${ac_c_conftest_c89_main}
2387 return ok;
2388 }
2389 "
2390
2391 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2392 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2393 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2394 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2395 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2396 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2397 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2398 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2399 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2400 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2401
2402 # Auxiliary files required by this configure script.
2403 ac_aux_files="config.guess config.sub missing install-sh compile"
2404
2405 # Locations in which to look for auxiliary files.
2406 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2407
2408 # Search for a directory containing all of the required auxiliary files,
2409 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2410 # If we don't find one directory that contains all the files we need,
2411 # we report the set of missing files from the *first* directory in
2412 # $ac_aux_dir_candidates and give up.
2413 ac_missing_aux_files=""
2414 ac_first_candidate=:
2415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2417 as_found=false
2418 for as_dir in $ac_aux_dir_candidates
2419 do
2420 IFS=$as_save_IFS
2421 case $as_dir in #(((
2422 '') as_dir=./ ;;
2423 */) ;;
2424 *) as_dir=$as_dir/ ;;
2425 esac
2426 as_found=:
2427
2428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2429 ac_aux_dir_found=yes
2430 ac_install_sh=
2431 for ac_aux in $ac_aux_files
2432 do
2433 # As a special case, if "install-sh" is required, that requirement
2434 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2435 # and $ac_install_sh is set appropriately for whichever one is found.
2436 if test x"$ac_aux" = x"install-sh"
2437 then
2438 if test -f "${as_dir}install-sh"; then
2439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2440 ac_install_sh="${as_dir}install-sh -c"
2441 elif test -f "${as_dir}install.sh"; then
2442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2443 ac_install_sh="${as_dir}install.sh -c"
2444 elif test -f "${as_dir}shtool"; then
2445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2446 ac_install_sh="${as_dir}shtool install -c"
2447 else
2448 ac_aux_dir_found=no
2449 if $ac_first_candidate; then
2450 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2451 else
2452 break
2453 fi
2454 fi
2455 else
2456 if test -f "${as_dir}${ac_aux}"; then
2457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2458 else
2459 ac_aux_dir_found=no
2460 if $ac_first_candidate; then
2461 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2462 else
2463 break
2464 fi
2465 fi
2466 fi
2467 done
2468 if test "$ac_aux_dir_found" = yes; then
2469 ac_aux_dir="$as_dir"
2470 break
2471 fi
2472 ac_first_candidate=false
2473
2474 as_found=false
2475 done
2476 IFS=$as_save_IFS
2477 if $as_found
2478 then :
2479
2480 else $as_nop
2481 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2482 fi
2483
2484
2485 # These three variables are undocumented and unsupported,
2486 # and are intended to be withdrawn in a future Autoconf release.
2487 # They can cause serious problems if a builder's source tree is in a directory
2488 # whose full name contains unusual characters.
2489 if test -f "${ac_aux_dir}config.guess"; then
2490 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2491 fi
2492 if test -f "${ac_aux_dir}config.sub"; then
2493 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2494 fi
2495 if test -f "$ac_aux_dir/configure"; then
2496 ac_configure="$SHELL ${ac_aux_dir}configure"
2497 fi
2498
2499 # Check that the precious variables saved in the cache have kept the same
2500 # value.
2501 ac_cache_corrupted=false
2502 for ac_var in $ac_precious_vars; do
2503 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2504 eval ac_new_set=\$ac_env_${ac_var}_set
2505 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2506 eval ac_new_val=\$ac_env_${ac_var}_value
2507 case $ac_old_set,$ac_new_set in
2508 set,)
2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2510 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2511 ac_cache_corrupted=: ;;
2512 ,set)
2513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2514 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2515 ac_cache_corrupted=: ;;
2516 ,);;
2517 *)
2518 if test "x$ac_old_val" != "x$ac_new_val"; then
2519 # differences in whitespace do not lead to failure.
2520 ac_old_val_w=`echo x $ac_old_val`
2521 ac_new_val_w=`echo x $ac_new_val`
2522 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2524 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2525 ac_cache_corrupted=:
2526 else
2527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2528 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2529 eval $ac_var=\$ac_old_val
2530 fi
2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2532 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2534 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2535 fi;;
2536 esac
2537 # Pass precious variables to config.status.
2538 if test "$ac_new_set" = set; then
2539 case $ac_new_val in
2540 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2541 *) ac_arg=$ac_var=$ac_new_val ;;
2542 esac
2543 case " $ac_configure_args " in
2544 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2545 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2546 esac
2547 fi
2548 done
2549 if $ac_cache_corrupted; then
2550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2553 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2554 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2555 and start over" "$LINENO" 5
2556 fi
2557 ## -------------------- ##
2558 ## Main body of script. ##
2559 ## -------------------- ##
2560
2561 ac_ext=c
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567
2568
2569 ac_config_headers="$ac_config_headers config.h"
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582 # Expand $ac_aux_dir to an absolute path.
2583 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2584
2585 ac_ext=c
2586 ac_cpp='$CPP $CPPFLAGS'
2587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590 if test -n "$ac_tool_prefix"; then
2591 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2592 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 printf %s "checking for $ac_word... " >&6; }
2595 if test ${ac_cv_prog_CC+y}
2596 then :
2597 printf %s "(cached) " >&6
2598 else $as_nop
2599 if test -n "$CC"; then
2600 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 else
2602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH
2604 do
2605 IFS=$as_save_IFS
2606 case $as_dir in #(((
2607 '') as_dir=./ ;;
2608 */) ;;
2609 *) as_dir=$as_dir/ ;;
2610 esac
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2613 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2615 break 2
2616 fi
2617 done
2618 done
2619 IFS=$as_save_IFS
2620
2621 fi
2622 fi
2623 CC=$ac_cv_prog_CC
2624 if test -n "$CC"; then
2625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2626 printf "%s\n" "$CC" >&6; }
2627 else
2628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2629 printf "%s\n" "no" >&6; }
2630 fi
2631
2632
2633 fi
2634 if test -z "$ac_cv_prog_CC"; then
2635 ac_ct_CC=$CC
2636 # Extract the first word of "gcc", so it can be a program name with args.
2637 set dummy gcc; ac_word=$2
2638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2639 printf %s "checking for $ac_word... " >&6; }
2640 if test ${ac_cv_prog_ac_ct_CC+y}
2641 then :
2642 printf %s "(cached) " >&6
2643 else $as_nop
2644 if test -n "$ac_ct_CC"; then
2645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2646 else
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2648 for as_dir in $PATH
2649 do
2650 IFS=$as_save_IFS
2651 case $as_dir in #(((
2652 '') as_dir=./ ;;
2653 */) ;;
2654 *) as_dir=$as_dir/ ;;
2655 esac
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2658 ac_cv_prog_ac_ct_CC="gcc"
2659 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662 done
2663 done
2664 IFS=$as_save_IFS
2665
2666 fi
2667 fi
2668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2669 if test -n "$ac_ct_CC"; then
2670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2671 printf "%s\n" "$ac_ct_CC" >&6; }
2672 else
2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 printf "%s\n" "no" >&6; }
2675 fi
2676
2677 if test "x$ac_ct_CC" = x; then
2678 CC=""
2679 else
2680 case $cross_compiling:$ac_tool_warned in
2681 yes:)
2682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2683 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2684 ac_tool_warned=yes ;;
2685 esac
2686 CC=$ac_ct_CC
2687 fi
2688 else
2689 CC="$ac_cv_prog_CC"
2690 fi
2691
2692 if test -z "$CC"; then
2693 if test -n "$ac_tool_prefix"; then
2694 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2695 set dummy ${ac_tool_prefix}cc; ac_word=$2
2696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2697 printf %s "checking for $ac_word... " >&6; }
2698 if test ${ac_cv_prog_CC+y}
2699 then :
2700 printf %s "(cached) " >&6
2701 else $as_nop
2702 if test -n "$CC"; then
2703 ac_cv_prog_CC="$CC" # Let the user override the test.
2704 else
2705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706 for as_dir in $PATH
2707 do
2708 IFS=$as_save_IFS
2709 case $as_dir in #(((
2710 '') as_dir=./ ;;
2711 */) ;;
2712 *) as_dir=$as_dir/ ;;
2713 esac
2714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2716 ac_cv_prog_CC="${ac_tool_prefix}cc"
2717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2718 break 2
2719 fi
2720 done
2721 done
2722 IFS=$as_save_IFS
2723
2724 fi
2725 fi
2726 CC=$ac_cv_prog_CC
2727 if test -n "$CC"; then
2728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2729 printf "%s\n" "$CC" >&6; }
2730 else
2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2732 printf "%s\n" "no" >&6; }
2733 fi
2734
2735
2736 fi
2737 fi
2738 if test -z "$CC"; then
2739 # Extract the first word of "cc", so it can be a program name with args.
2740 set dummy cc; ac_word=$2
2741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 printf %s "checking for $ac_word... " >&6; }
2743 if test ${ac_cv_prog_CC+y}
2744 then :
2745 printf %s "(cached) " >&6
2746 else $as_nop
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2749 else
2750 ac_prog_rejected=no
2751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 for as_dir in $PATH
2753 do
2754 IFS=$as_save_IFS
2755 case $as_dir in #(((
2756 '') as_dir=./ ;;
2757 */) ;;
2758 *) as_dir=$as_dir/ ;;
2759 esac
2760 for ac_exec_ext in '' $ac_executable_extensions; do
2761 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2762 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2763 ac_prog_rejected=yes
2764 continue
2765 fi
2766 ac_cv_prog_CC="cc"
2767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770 done
2771 done
2772 IFS=$as_save_IFS
2773
2774 if test $ac_prog_rejected = yes; then
2775 # We found a bogon in the path, so make sure we never use it.
2776 set dummy $ac_cv_prog_CC
2777 shift
2778 if test $# != 0; then
2779 # We chose a different compiler from the bogus one.
2780 # However, it has the same basename, so the bogon will be chosen
2781 # first if we set CC to just the basename; use the full file name.
2782 shift
2783 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2784 fi
2785 fi
2786 fi
2787 fi
2788 CC=$ac_cv_prog_CC
2789 if test -n "$CC"; then
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2791 printf "%s\n" "$CC" >&6; }
2792 else
2793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 printf "%s\n" "no" >&6; }
2795 fi
2796
2797
2798 fi
2799 if test -z "$CC"; then
2800 if test -n "$ac_tool_prefix"; then
2801 for ac_prog in cl.exe
2802 do
2803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2804 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806 printf %s "checking for $ac_word... " >&6; }
2807 if test ${ac_cv_prog_CC+y}
2808 then :
2809 printf %s "(cached) " >&6
2810 else $as_nop
2811 if test -n "$CC"; then
2812 ac_cv_prog_CC="$CC" # Let the user override the test.
2813 else
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817 IFS=$as_save_IFS
2818 case $as_dir in #(((
2819 '') as_dir=./ ;;
2820 */) ;;
2821 *) as_dir=$as_dir/ ;;
2822 esac
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2827 break 2
2828 fi
2829 done
2830 done
2831 IFS=$as_save_IFS
2832
2833 fi
2834 fi
2835 CC=$ac_cv_prog_CC
2836 if test -n "$CC"; then
2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2838 printf "%s\n" "$CC" >&6; }
2839 else
2840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 printf "%s\n" "no" >&6; }
2842 fi
2843
2844
2845 test -n "$CC" && break
2846 done
2847 fi
2848 if test -z "$CC"; then
2849 ac_ct_CC=$CC
2850 for ac_prog in cl.exe
2851 do
2852 # Extract the first word of "$ac_prog", so it can be a program name with args.
2853 set dummy $ac_prog; ac_word=$2
2854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 printf %s "checking for $ac_word... " >&6; }
2856 if test ${ac_cv_prog_ac_ct_CC+y}
2857 then :
2858 printf %s "(cached) " >&6
2859 else $as_nop
2860 if test -n "$ac_ct_CC"; then
2861 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2862 else
2863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2864 for as_dir in $PATH
2865 do
2866 IFS=$as_save_IFS
2867 case $as_dir in #(((
2868 '') as_dir=./ ;;
2869 */) ;;
2870 *) as_dir=$as_dir/ ;;
2871 esac
2872 for ac_exec_ext in '' $ac_executable_extensions; do
2873 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2874 ac_cv_prog_ac_ct_CC="$ac_prog"
2875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2876 break 2
2877 fi
2878 done
2879 done
2880 IFS=$as_save_IFS
2881
2882 fi
2883 fi
2884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2885 if test -n "$ac_ct_CC"; then
2886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2887 printf "%s\n" "$ac_ct_CC" >&6; }
2888 else
2889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2890 printf "%s\n" "no" >&6; }
2891 fi
2892
2893
2894 test -n "$ac_ct_CC" && break
2895 done
2896
2897 if test "x$ac_ct_CC" = x; then
2898 CC=""
2899 else
2900 case $cross_compiling:$ac_tool_warned in
2901 yes:)
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2903 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2904 ac_tool_warned=yes ;;
2905 esac
2906 CC=$ac_ct_CC
2907 fi
2908 fi
2909
2910 fi
2911 if test -z "$CC"; then
2912 if test -n "$ac_tool_prefix"; then
2913 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2914 set dummy ${ac_tool_prefix}clang; ac_word=$2
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 printf %s "checking for $ac_word... " >&6; }
2917 if test ${ac_cv_prog_CC+y}
2918 then :
2919 printf %s "(cached) " >&6
2920 else $as_nop
2921 if test -n "$CC"; then
2922 ac_cv_prog_CC="$CC" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927 IFS=$as_save_IFS
2928 case $as_dir in #(((
2929 '') as_dir=./ ;;
2930 */) ;;
2931 *) as_dir=$as_dir/ ;;
2932 esac
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2935 ac_cv_prog_CC="${ac_tool_prefix}clang"
2936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2937 break 2
2938 fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2942
2943 fi
2944 fi
2945 CC=$ac_cv_prog_CC
2946 if test -n "$CC"; then
2947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2948 printf "%s\n" "$CC" >&6; }
2949 else
2950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 printf "%s\n" "no" >&6; }
2952 fi
2953
2954
2955 fi
2956 if test -z "$ac_cv_prog_CC"; then
2957 ac_ct_CC=$CC
2958 # Extract the first word of "clang", so it can be a program name with args.
2959 set dummy clang; ac_word=$2
2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 printf %s "checking for $ac_word... " >&6; }
2962 if test ${ac_cv_prog_ac_ct_CC+y}
2963 then :
2964 printf %s "(cached) " >&6
2965 else $as_nop
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972 IFS=$as_save_IFS
2973 case $as_dir in #(((
2974 '') as_dir=./ ;;
2975 */) ;;
2976 *) as_dir=$as_dir/ ;;
2977 esac
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2980 ac_cv_prog_ac_ct_CC="clang"
2981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2982 break 2
2983 fi
2984 done
2985 done
2986 IFS=$as_save_IFS
2987
2988 fi
2989 fi
2990 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2991 if test -n "$ac_ct_CC"; then
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2993 printf "%s\n" "$ac_ct_CC" >&6; }
2994 else
2995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2996 printf "%s\n" "no" >&6; }
2997 fi
2998
2999 if test "x$ac_ct_CC" = x; then
3000 CC=""
3001 else
3002 case $cross_compiling:$ac_tool_warned in
3003 yes:)
3004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3005 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3006 ac_tool_warned=yes ;;
3007 esac
3008 CC=$ac_ct_CC
3009 fi
3010 else
3011 CC="$ac_cv_prog_CC"
3012 fi
3013
3014 fi
3015
3016
3017 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3019 as_fn_error $? "no acceptable C compiler found in \$PATH
3020 See \`config.log' for more details" "$LINENO" 5; }
3021
3022 # Provide some information about the compiler.
3023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3024 set X $ac_compile
3025 ac_compiler=$2
3026 for ac_option in --version -v -V -qversion -version; do
3027 { { ac_try="$ac_compiler $ac_option >&5"
3028 case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031 esac
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 printf "%s\n" "$ac_try_echo"; } >&5
3034 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3035 ac_status=$?
3036 if test -s conftest.err; then
3037 sed '10a\
3038 ... rest of stderr output deleted ...
3039 10q' conftest.err >conftest.er1
3040 cat conftest.er1 >&5
3041 fi
3042 rm -f conftest.er1 conftest.err
3043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3044 test $ac_status = 0; }
3045 done
3046
3047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048 /* end confdefs.h. */
3049
3050 int
3051 main (void)
3052 {
3053
3054 ;
3055 return 0;
3056 }
3057 _ACEOF
3058 ac_clean_files_save=$ac_clean_files
3059 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3060 # Try to create an executable without -o first, disregard a.out.
3061 # It will help us diagnose broken compilers, and finding out an intuition
3062 # of exeext.
3063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3064 printf %s "checking whether the C compiler works... " >&6; }
3065 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3066
3067 # The possible output files:
3068 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3069
3070 ac_rmfiles=
3071 for ac_file in $ac_files
3072 do
3073 case $ac_file in
3074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3075 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3076 esac
3077 done
3078 rm -f $ac_rmfiles
3079
3080 if { { ac_try="$ac_link_default"
3081 case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084 esac
3085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086 printf "%s\n" "$ac_try_echo"; } >&5
3087 (eval "$ac_link_default") 2>&5
3088 ac_status=$?
3089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3090 test $ac_status = 0; }
3091 then :
3092 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3093 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3094 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3095 # so that the user can short-circuit this test for compilers unknown to
3096 # Autoconf.
3097 for ac_file in $ac_files ''
3098 do
3099 test -f "$ac_file" || continue
3100 case $ac_file in
3101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3102 ;;
3103 [ab].out )
3104 # We found the default executable, but exeext='' is most
3105 # certainly right.
3106 break;;
3107 *.* )
3108 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3109 then :; else
3110 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3111 fi
3112 # We set ac_cv_exeext here because the later test for it is not
3113 # safe: cross compilers may not add the suffix if given an `-o'
3114 # argument, so we may need to know it at that point already.
3115 # Even if this section looks crufty: it has the advantage of
3116 # actually working.
3117 break;;
3118 * )
3119 break;;
3120 esac
3121 done
3122 test "$ac_cv_exeext" = no && ac_cv_exeext=
3123
3124 else $as_nop
3125 ac_file=''
3126 fi
3127 if test -z "$ac_file"
3128 then :
3129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 printf "%s\n" "no" >&6; }
3131 printf "%s\n" "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3136 as_fn_error 77 "C compiler cannot create executables
3137 See \`config.log' for more details" "$LINENO" 5; }
3138 else $as_nop
3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3140 printf "%s\n" "yes" >&6; }
3141 fi
3142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3143 printf %s "checking for C compiler default output file name... " >&6; }
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3145 printf "%s\n" "$ac_file" >&6; }
3146 ac_exeext=$ac_cv_exeext
3147
3148 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3149 ac_clean_files=$ac_clean_files_save
3150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3151 printf %s "checking for suffix of executables... " >&6; }
3152 if { { ac_try="$ac_link"
3153 case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3156 esac
3157 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3158 printf "%s\n" "$ac_try_echo"; } >&5
3159 (eval "$ac_link") 2>&5
3160 ac_status=$?
3161 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162 test $ac_status = 0; }
3163 then :
3164 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3165 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3166 # work properly (i.e., refer to `conftest.exe'), while it won't with
3167 # `rm'.
3168 for ac_file in conftest.exe conftest conftest.*; do
3169 test -f "$ac_file" || continue
3170 case $ac_file in
3171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3172 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3173 break;;
3174 * ) break;;
3175 esac
3176 done
3177 else $as_nop
3178 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3180 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3181 See \`config.log' for more details" "$LINENO" 5; }
3182 fi
3183 rm -f conftest conftest$ac_cv_exeext
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3185 printf "%s\n" "$ac_cv_exeext" >&6; }
3186
3187 rm -f conftest.$ac_ext
3188 EXEEXT=$ac_cv_exeext
3189 ac_exeext=$EXEEXT
3190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3191 /* end confdefs.h. */
3192 #include <stdio.h>
3193 int
3194 main (void)
3195 {
3196 FILE *f = fopen ("conftest.out", "w");
3197 return ferror (f) || fclose (f) != 0;
3198
3199 ;
3200 return 0;
3201 }
3202 _ACEOF
3203 ac_clean_files="$ac_clean_files conftest.out"
3204 # Check that the compiler produces executables we can run. If not, either
3205 # the compiler is broken, or we cross compile.
3206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3207 printf %s "checking whether we are cross compiling... " >&6; }
3208 if test "$cross_compiling" != yes; then
3209 { { ac_try="$ac_link"
3210 case "(($ac_try" in
3211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 printf "%s\n" "$ac_try_echo"; } >&5
3216 (eval "$ac_link") 2>&5
3217 ac_status=$?
3218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3219 test $ac_status = 0; }
3220 if { ac_try='./conftest$ac_cv_exeext'
3221 { { case "(($ac_try" in
3222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3223 *) ac_try_echo=$ac_try;;
3224 esac
3225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3226 printf "%s\n" "$ac_try_echo"; } >&5
3227 (eval "$ac_try") 2>&5
3228 ac_status=$?
3229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }; }; then
3231 cross_compiling=no
3232 else
3233 if test "$cross_compiling" = maybe; then
3234 cross_compiling=yes
3235 else
3236 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3238 as_fn_error 77 "cannot run C compiled programs.
3239 If you meant to cross compile, use \`--host'.
3240 See \`config.log' for more details" "$LINENO" 5; }
3241 fi
3242 fi
3243 fi
3244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3245 printf "%s\n" "$cross_compiling" >&6; }
3246
3247 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3248 ac_clean_files=$ac_clean_files_save
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3250 printf %s "checking for suffix of object files... " >&6; }
3251 if test ${ac_cv_objext+y}
3252 then :
3253 printf %s "(cached) " >&6
3254 else $as_nop
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3257
3258 int
3259 main (void)
3260 {
3261
3262 ;
3263 return 0;
3264 }
3265 _ACEOF
3266 rm -f conftest.o conftest.obj
3267 if { { ac_try="$ac_compile"
3268 case "(($ac_try" in
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3271 esac
3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3273 printf "%s\n" "$ac_try_echo"; } >&5
3274 (eval "$ac_compile") 2>&5
3275 ac_status=$?
3276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3277 test $ac_status = 0; }
3278 then :
3279 for ac_file in conftest.o conftest.obj conftest.*; do
3280 test -f "$ac_file" || continue;
3281 case $ac_file in
3282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3283 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3284 break;;
3285 esac
3286 done
3287 else $as_nop
3288 printf "%s\n" "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3293 as_fn_error $? "cannot compute suffix of object files: cannot compile
3294 See \`config.log' for more details" "$LINENO" 5; }
3295 fi
3296 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3297 fi
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3299 printf "%s\n" "$ac_cv_objext" >&6; }
3300 OBJEXT=$ac_cv_objext
3301 ac_objext=$OBJEXT
3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3303 printf %s "checking whether the compiler supports GNU C... " >&6; }
3304 if test ${ac_cv_c_compiler_gnu+y}
3305 then :
3306 printf %s "(cached) " >&6
3307 else $as_nop
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3310
3311 int
3312 main (void)
3313 {
3314 #ifndef __GNUC__
3315 choke me
3316 #endif
3317
3318 ;
3319 return 0;
3320 }
3321 _ACEOF
3322 if ac_fn_c_try_compile "$LINENO"
3323 then :
3324 ac_compiler_gnu=yes
3325 else $as_nop
3326 ac_compiler_gnu=no
3327 fi
3328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3329 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3330
3331 fi
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3333 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335
3336 if test $ac_compiler_gnu = yes; then
3337 GCC=yes
3338 else
3339 GCC=
3340 fi
3341 ac_test_CFLAGS=${CFLAGS+y}
3342 ac_save_CFLAGS=$CFLAGS
3343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3344 printf %s "checking whether $CC accepts -g... " >&6; }
3345 if test ${ac_cv_prog_cc_g+y}
3346 then :
3347 printf %s "(cached) " >&6
3348 else $as_nop
3349 ac_save_c_werror_flag=$ac_c_werror_flag
3350 ac_c_werror_flag=yes
3351 ac_cv_prog_cc_g=no
3352 CFLAGS="-g"
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3355
3356 int
3357 main (void)
3358 {
3359
3360 ;
3361 return 0;
3362 }
3363 _ACEOF
3364 if ac_fn_c_try_compile "$LINENO"
3365 then :
3366 ac_cv_prog_cc_g=yes
3367 else $as_nop
3368 CFLAGS=""
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3371
3372 int
3373 main (void)
3374 {
3375
3376 ;
3377 return 0;
3378 }
3379 _ACEOF
3380 if ac_fn_c_try_compile "$LINENO"
3381 then :
3382
3383 else $as_nop
3384 ac_c_werror_flag=$ac_save_c_werror_flag
3385 CFLAGS="-g"
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3388
3389 int
3390 main (void)
3391 {
3392
3393 ;
3394 return 0;
3395 }
3396 _ACEOF
3397 if ac_fn_c_try_compile "$LINENO"
3398 then :
3399 ac_cv_prog_cc_g=yes
3400 fi
3401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3402 fi
3403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3404 fi
3405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3406 ac_c_werror_flag=$ac_save_c_werror_flag
3407 fi
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3409 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3410 if test $ac_test_CFLAGS; then
3411 CFLAGS=$ac_save_CFLAGS
3412 elif test $ac_cv_prog_cc_g = yes; then
3413 if test "$GCC" = yes; then
3414 CFLAGS="-g -O2"
3415 else
3416 CFLAGS="-g"
3417 fi
3418 else
3419 if test "$GCC" = yes; then
3420 CFLAGS="-O2"
3421 else
3422 CFLAGS=
3423 fi
3424 fi
3425 ac_prog_cc_stdc=no
3426 if test x$ac_prog_cc_stdc = xno
3427 then :
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3429 printf %s "checking for $CC option to enable C11 features... " >&6; }
3430 if test ${ac_cv_prog_cc_c11+y}
3431 then :
3432 printf %s "(cached) " >&6
3433 else $as_nop
3434 ac_cv_prog_cc_c11=no
3435 ac_save_CC=$CC
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3438 $ac_c_conftest_c11_program
3439 _ACEOF
3440 for ac_arg in '' -std=gnu11
3441 do
3442 CC="$ac_save_CC $ac_arg"
3443 if ac_fn_c_try_compile "$LINENO"
3444 then :
3445 ac_cv_prog_cc_c11=$ac_arg
3446 fi
3447 rm -f core conftest.err conftest.$ac_objext conftest.beam
3448 test "x$ac_cv_prog_cc_c11" != "xno" && break
3449 done
3450 rm -f conftest.$ac_ext
3451 CC=$ac_save_CC
3452 fi
3453
3454 if test "x$ac_cv_prog_cc_c11" = xno
3455 then :
3456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3457 printf "%s\n" "unsupported" >&6; }
3458 else $as_nop
3459 if test "x$ac_cv_prog_cc_c11" = x
3460 then :
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3462 printf "%s\n" "none needed" >&6; }
3463 else $as_nop
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3465 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3466 CC="$CC $ac_cv_prog_cc_c11"
3467 fi
3468 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3469 ac_prog_cc_stdc=c11
3470 fi
3471 fi
3472 if test x$ac_prog_cc_stdc = xno
3473 then :
3474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3475 printf %s "checking for $CC option to enable C99 features... " >&6; }
3476 if test ${ac_cv_prog_cc_c99+y}
3477 then :
3478 printf %s "(cached) " >&6
3479 else $as_nop
3480 ac_cv_prog_cc_c99=no
3481 ac_save_CC=$CC
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484 $ac_c_conftest_c99_program
3485 _ACEOF
3486 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3487 do
3488 CC="$ac_save_CC $ac_arg"
3489 if ac_fn_c_try_compile "$LINENO"
3490 then :
3491 ac_cv_prog_cc_c99=$ac_arg
3492 fi
3493 rm -f core conftest.err conftest.$ac_objext conftest.beam
3494 test "x$ac_cv_prog_cc_c99" != "xno" && break
3495 done
3496 rm -f conftest.$ac_ext
3497 CC=$ac_save_CC
3498 fi
3499
3500 if test "x$ac_cv_prog_cc_c99" = xno
3501 then :
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3503 printf "%s\n" "unsupported" >&6; }
3504 else $as_nop
3505 if test "x$ac_cv_prog_cc_c99" = x
3506 then :
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3508 printf "%s\n" "none needed" >&6; }
3509 else $as_nop
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3511 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3512 CC="$CC $ac_cv_prog_cc_c99"
3513 fi
3514 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3515 ac_prog_cc_stdc=c99
3516 fi
3517 fi
3518 if test x$ac_prog_cc_stdc = xno
3519 then :
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3521 printf %s "checking for $CC option to enable C89 features... " >&6; }
3522 if test ${ac_cv_prog_cc_c89+y}
3523 then :
3524 printf %s "(cached) " >&6
3525 else $as_nop
3526 ac_cv_prog_cc_c89=no
3527 ac_save_CC=$CC
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3529 /* end confdefs.h. */
3530 $ac_c_conftest_c89_program
3531 _ACEOF
3532 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3533 do
3534 CC="$ac_save_CC $ac_arg"
3535 if ac_fn_c_try_compile "$LINENO"
3536 then :
3537 ac_cv_prog_cc_c89=$ac_arg
3538 fi
3539 rm -f core conftest.err conftest.$ac_objext conftest.beam
3540 test "x$ac_cv_prog_cc_c89" != "xno" && break
3541 done
3542 rm -f conftest.$ac_ext
3543 CC=$ac_save_CC
3544 fi
3545
3546 if test "x$ac_cv_prog_cc_c89" = xno
3547 then :
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3549 printf "%s\n" "unsupported" >&6; }
3550 else $as_nop
3551 if test "x$ac_cv_prog_cc_c89" = x
3552 then :
3553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3554 printf "%s\n" "none needed" >&6; }
3555 else $as_nop
3556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3557 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3558 CC="$CC $ac_cv_prog_cc_c89"
3559 fi
3560 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3561 ac_prog_cc_stdc=c89
3562 fi
3563 fi
3564
3565 ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3570
3571
3572 ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3578 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3579 if test ${am_cv_prog_cc_c_o+y}
3580 then :
3581 printf %s "(cached) " >&6
3582 else $as_nop
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3585
3586 int
3587 main (void)
3588 {
3589
3590 ;
3591 return 0;
3592 }
3593 _ACEOF
3594 # Make sure it works both with $CC and with simple cc.
3595 # Following AC_PROG_CC_C_O, we do the test twice because some
3596 # compilers refuse to overwrite an existing .o file with -o,
3597 # though they will create one.
3598 am_cv_prog_cc_c_o=yes
3599 for am_i in 1 2; do
3600 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3601 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3602 ac_status=$?
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } \
3605 && test -f conftest2.$ac_objext; then
3606 : OK
3607 else
3608 am_cv_prog_cc_c_o=no
3609 break
3610 fi
3611 done
3612 rm -f core conftest*
3613 unset am_i
3614 fi
3615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3616 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3617 if test "$am_cv_prog_cc_c_o" != yes; then
3618 # Losing compiler, so override with the script.
3619 # FIXME: It is wrong to rewrite CC.
3620 # But if we don't then we get into trouble of one sort or another.
3621 # A longer-term fix would be to have automake use am__CC in this case,
3622 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3623 CC="$am_aux_dir/compile $CC"
3624 fi
3625 ac_ext=c
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630
3631
3632
3633 ac_header= ac_cache=
3634 for ac_item in $ac_header_c_list
3635 do
3636 if test $ac_cache; then
3637 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3638 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3639 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3640 fi
3641 ac_header= ac_cache=
3642 elif test $ac_header; then
3643 ac_cache=$ac_item
3644 else
3645 ac_header=$ac_item
3646 fi
3647 done
3648
3649
3650
3651
3652
3653
3654
3655
3656 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3657 then :
3658
3659 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3660
3661 fi
3662
3663
3664
3665
3666
3667
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3669 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3670 if test ${ac_cv_safe_to_define___extensions__+y}
3671 then :
3672 printf %s "(cached) " >&6
3673 else $as_nop
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675 /* end confdefs.h. */
3676
3677 # define __EXTENSIONS__ 1
3678 $ac_includes_default
3679 int
3680 main (void)
3681 {
3682
3683 ;
3684 return 0;
3685 }
3686 _ACEOF
3687 if ac_fn_c_try_compile "$LINENO"
3688 then :
3689 ac_cv_safe_to_define___extensions__=yes
3690 else $as_nop
3691 ac_cv_safe_to_define___extensions__=no
3692 fi
3693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3694 fi
3695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3696 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3697
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3699 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3700 if test ${ac_cv_should_define__xopen_source+y}
3701 then :
3702 printf %s "(cached) " >&6
3703 else $as_nop
3704 ac_cv_should_define__xopen_source=no
3705 if test $ac_cv_header_wchar_h = yes
3706 then :
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709
3710 #include <wchar.h>
3711 mbstate_t x;
3712 int
3713 main (void)
3714 {
3715
3716 ;
3717 return 0;
3718 }
3719 _ACEOF
3720 if ac_fn_c_try_compile "$LINENO"
3721 then :
3722
3723 else $as_nop
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726
3727 #define _XOPEN_SOURCE 500
3728 #include <wchar.h>
3729 mbstate_t x;
3730 int
3731 main (void)
3732 {
3733
3734 ;
3735 return 0;
3736 }
3737 _ACEOF
3738 if ac_fn_c_try_compile "$LINENO"
3739 then :
3740 ac_cv_should_define__xopen_source=yes
3741 fi
3742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3745 fi
3746 fi
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3748 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3749
3750 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3751
3752 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3753
3754 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3755
3756 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3757
3758 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3759
3760 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3761
3762 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3763
3764 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3765
3766 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3767
3768 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3769
3770 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3771
3772 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3773
3774 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3775
3776 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3777
3778 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3779
3780 if test $ac_cv_header_minix_config_h = yes
3781 then :
3782 MINIX=yes
3783 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3784
3785 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3786
3787 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3788
3789 else $as_nop
3790 MINIX=
3791 fi
3792 if test $ac_cv_safe_to_define___extensions__ = yes
3793 then :
3794 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3795
3796 fi
3797 if test $ac_cv_should_define__xopen_source = yes
3798 then :
3799 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3800
3801 fi
3802
3803
3804 # Initialize Automake
3805 am__api_version='1.16'
3806
3807
3808 # Find a good install program. We prefer a C program (faster),
3809 # so one script is as good as another. But avoid the broken or
3810 # incompatible versions:
3811 # SysV /etc/install, /usr/sbin/install
3812 # SunOS /usr/etc/install
3813 # IRIX /sbin/install
3814 # AIX /bin/install
3815 # AmigaOS /C/install, which installs bootblocks on floppy discs
3816 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3817 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3818 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3819 # OS/2's system install, which has a completely different semantic
3820 # ./install, which can be erroneously created by make from ./install.sh.
3821 # Reject install programs that cannot install multiple files.
3822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3823 printf %s "checking for a BSD-compatible install... " >&6; }
3824 if test -z "$INSTALL"; then
3825 if test ${ac_cv_path_install+y}
3826 then :
3827 printf %s "(cached) " >&6
3828 else $as_nop
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH
3831 do
3832 IFS=$as_save_IFS
3833 case $as_dir in #(((
3834 '') as_dir=./ ;;
3835 */) ;;
3836 *) as_dir=$as_dir/ ;;
3837 esac
3838 # Account for fact that we put trailing slashes in our PATH walk.
3839 case $as_dir in #((
3840 ./ | /[cC]/* | \
3841 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3842 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3843 /usr/ucb/* ) ;;
3844 *)
3845 # OSF1 and SCO ODT 3.0 have their own names for install.
3846 # Don't use installbsd from OSF since it installs stuff as root
3847 # by default.
3848 for ac_prog in ginstall scoinst install; do
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3851 if test $ac_prog = install &&
3852 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3853 # AIX install. It has an incompatible calling convention.
3854 :
3855 elif test $ac_prog = install &&
3856 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3857 # program-specific install script used by HP pwplus--don't use.
3858 :
3859 else
3860 rm -rf conftest.one conftest.two conftest.dir
3861 echo one > conftest.one
3862 echo two > conftest.two
3863 mkdir conftest.dir
3864 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3865 test -s conftest.one && test -s conftest.two &&
3866 test -s conftest.dir/conftest.one &&
3867 test -s conftest.dir/conftest.two
3868 then
3869 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3870 break 3
3871 fi
3872 fi
3873 fi
3874 done
3875 done
3876 ;;
3877 esac
3878
3879 done
3880 IFS=$as_save_IFS
3881
3882 rm -rf conftest.one conftest.two conftest.dir
3883
3884 fi
3885 if test ${ac_cv_path_install+y}; then
3886 INSTALL=$ac_cv_path_install
3887 else
3888 # As a last resort, use the slow shell script. Don't cache a
3889 # value for INSTALL within a source directory, because that will
3890 # break other packages using the cache if that directory is
3891 # removed, or if the value is a relative name.
3892 INSTALL=$ac_install_sh
3893 fi
3894 fi
3895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3896 printf "%s\n" "$INSTALL" >&6; }
3897
3898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3899 # It thinks the first close brace ends the variable substitution.
3900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3901
3902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3903
3904 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3905
3906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3907 printf %s "checking whether build environment is sane... " >&6; }
3908 # Reject unsafe characters in $srcdir or the absolute working directory
3909 # name. Accept space and tab only in the latter.
3910 am_lf='
3911 '
3912 case `pwd` in
3913 *[\\\"\#\$\&\'\`$am_lf]*)
3914 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3915 esac
3916 case $srcdir in
3917 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3918 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3919 esac
3920
3921 # Do 'set' in a subshell so we don't clobber the current shell's
3922 # arguments. Must try -L first in case configure is actually a
3923 # symlink; some systems play weird games with the mod time of symlinks
3924 # (eg FreeBSD returns the mod time of the symlink's containing
3925 # directory).
3926 if (
3927 am_has_slept=no
3928 for am_try in 1 2; do
3929 echo "timestamp, slept: $am_has_slept" > conftest.file
3930 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3931 if test "$*" = "X"; then
3932 # -L didn't work.
3933 set X `ls -t "$srcdir/configure" conftest.file`
3934 fi
3935 if test "$*" != "X $srcdir/configure conftest.file" \
3936 && test "$*" != "X conftest.file $srcdir/configure"; then
3937
3938 # If neither matched, then we have a broken ls. This can happen
3939 # if, for instance, CONFIG_SHELL is bash and it inherits a
3940 # broken ls alias from the environment. This has actually
3941 # happened. Such a system could not be considered "sane".
3942 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3943 alias in your environment" "$LINENO" 5
3944 fi
3945 if test "$2" = conftest.file || test $am_try -eq 2; then
3946 break
3947 fi
3948 # Just in case.
3949 sleep 1
3950 am_has_slept=yes
3951 done
3952 test "$2" = conftest.file
3953 )
3954 then
3955 # Ok.
3956 :
3957 else
3958 as_fn_error $? "newly created file is older than distributed files!
3959 Check your system clock" "$LINENO" 5
3960 fi
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3962 printf "%s\n" "yes" >&6; }
3963 # If we didn't sleep, we still need to ensure time stamps of config.status and
3964 # generated files are strictly newer.
3965 am_sleep_pid=
3966 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3967 ( sleep 1 ) &
3968 am_sleep_pid=$!
3969 fi
3970
3971 rm -f conftest.file
3972
3973 test "$program_prefix" != NONE &&
3974 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3975 # Use a double $ so make ignores it.
3976 test "$program_suffix" != NONE &&
3977 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3978 # Double any \ or $.
3979 # By default was `s,x,x', remove it if useless.
3980 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3981 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3982
3983
3984 if test x"${MISSING+set}" != xset; then
3985 MISSING="\${SHELL} '$am_aux_dir/missing'"
3986 fi
3987 # Use eval to expand $SHELL
3988 if eval "$MISSING --is-lightweight"; then
3989 am_missing_run="$MISSING "
3990 else
3991 am_missing_run=
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3993 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3994 fi
3995
3996 if test x"${install_sh+set}" != xset; then
3997 case $am_aux_dir in
3998 *\ * | *\ *)
3999 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4000 *)
4001 install_sh="\${SHELL} $am_aux_dir/install-sh"
4002 esac
4003 fi
4004
4005 # Installed binaries are usually stripped using 'strip' when the user
4006 # run "make install-strip". However 'strip' might not be the right
4007 # tool to use in cross-compilation environments, therefore Automake
4008 # will honor the 'STRIP' environment variable to overrule this program.
4009 if test "$cross_compiling" != no; then
4010 if test -n "$ac_tool_prefix"; then
4011 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4012 set dummy ${ac_tool_prefix}strip; ac_word=$2
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014 printf %s "checking for $ac_word... " >&6; }
4015 if test ${ac_cv_prog_STRIP+y}
4016 then :
4017 printf %s "(cached) " >&6
4018 else $as_nop
4019 if test -n "$STRIP"; then
4020 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4021 else
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH
4024 do
4025 IFS=$as_save_IFS
4026 case $as_dir in #(((
4027 '') as_dir=./ ;;
4028 */) ;;
4029 *) as_dir=$as_dir/ ;;
4030 esac
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4033 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4035 break 2
4036 fi
4037 done
4038 done
4039 IFS=$as_save_IFS
4040
4041 fi
4042 fi
4043 STRIP=$ac_cv_prog_STRIP
4044 if test -n "$STRIP"; then
4045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4046 printf "%s\n" "$STRIP" >&6; }
4047 else
4048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 printf "%s\n" "no" >&6; }
4050 fi
4051
4052
4053 fi
4054 if test -z "$ac_cv_prog_STRIP"; then
4055 ac_ct_STRIP=$STRIP
4056 # Extract the first word of "strip", so it can be a program name with args.
4057 set dummy strip; ac_word=$2
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4059 printf %s "checking for $ac_word... " >&6; }
4060 if test ${ac_cv_prog_ac_ct_STRIP+y}
4061 then :
4062 printf %s "(cached) " >&6
4063 else $as_nop
4064 if test -n "$ac_ct_STRIP"; then
4065 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4066 else
4067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068 for as_dir in $PATH
4069 do
4070 IFS=$as_save_IFS
4071 case $as_dir in #(((
4072 '') as_dir=./ ;;
4073 */) ;;
4074 *) as_dir=$as_dir/ ;;
4075 esac
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4078 ac_cv_prog_ac_ct_STRIP="strip"
4079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4080 break 2
4081 fi
4082 done
4083 done
4084 IFS=$as_save_IFS
4085
4086 fi
4087 fi
4088 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4089 if test -n "$ac_ct_STRIP"; then
4090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4091 printf "%s\n" "$ac_ct_STRIP" >&6; }
4092 else
4093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4094 printf "%s\n" "no" >&6; }
4095 fi
4096
4097 if test "x$ac_ct_STRIP" = x; then
4098 STRIP=":"
4099 else
4100 case $cross_compiling:$ac_tool_warned in
4101 yes:)
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4103 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4104 ac_tool_warned=yes ;;
4105 esac
4106 STRIP=$ac_ct_STRIP
4107 fi
4108 else
4109 STRIP="$ac_cv_prog_STRIP"
4110 fi
4111
4112 fi
4113 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4114
4115
4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4117 printf %s "checking for a race-free mkdir -p... " >&6; }
4118 if test -z "$MKDIR_P"; then
4119 if test ${ac_cv_path_mkdir+y}
4120 then :
4121 printf %s "(cached) " >&6
4122 else $as_nop
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4125 do
4126 IFS=$as_save_IFS
4127 case $as_dir in #(((
4128 '') as_dir=./ ;;
4129 */) ;;
4130 *) as_dir=$as_dir/ ;;
4131 esac
4132 for ac_prog in mkdir gmkdir; do
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4135 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4136 'mkdir ('*'coreutils) '* | \
4137 'BusyBox '* | \
4138 'mkdir (fileutils) '4.1*)
4139 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4140 break 3;;
4141 esac
4142 done
4143 done
4144 done
4145 IFS=$as_save_IFS
4146
4147 fi
4148
4149 test -d ./--version && rmdir ./--version
4150 if test ${ac_cv_path_mkdir+y}; then
4151 MKDIR_P="$ac_cv_path_mkdir -p"
4152 else
4153 # As a last resort, use the slow shell script. Don't cache a
4154 # value for MKDIR_P within a source directory, because that will
4155 # break other packages using the cache if that directory is
4156 # removed, or if the value is a relative name.
4157 MKDIR_P="$ac_install_sh -d"
4158 fi
4159 fi
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4161 printf "%s\n" "$MKDIR_P" >&6; }
4162
4163 for ac_prog in gawk mawk nawk awk
4164 do
4165 # Extract the first word of "$ac_prog", so it can be a program name with args.
4166 set dummy $ac_prog; ac_word=$2
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 printf %s "checking for $ac_word... " >&6; }
4169 if test ${ac_cv_prog_AWK+y}
4170 then :
4171 printf %s "(cached) " >&6
4172 else $as_nop
4173 if test -n "$AWK"; then
4174 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4178 do
4179 IFS=$as_save_IFS
4180 case $as_dir in #(((
4181 '') as_dir=./ ;;
4182 */) ;;
4183 *) as_dir=$as_dir/ ;;
4184 esac
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_AWK="$ac_prog"
4188 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4189 break 2
4190 fi
4191 done
4192 done
4193 IFS=$as_save_IFS
4194
4195 fi
4196 fi
4197 AWK=$ac_cv_prog_AWK
4198 if test -n "$AWK"; then
4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4200 printf "%s\n" "$AWK" >&6; }
4201 else
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4203 printf "%s\n" "no" >&6; }
4204 fi
4205
4206
4207 test -n "$AWK" && break
4208 done
4209
4210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4211 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4212 set x ${MAKE-make}
4213 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4214 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4215 then :
4216 printf %s "(cached) " >&6
4217 else $as_nop
4218 cat >conftest.make <<\_ACEOF
4219 SHELL = /bin/sh
4220 all:
4221 @echo '@@@%%%=$(MAKE)=@@@%%%'
4222 _ACEOF
4223 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4224 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4225 *@@@%%%=?*=@@@%%%*)
4226 eval ac_cv_prog_make_${ac_make}_set=yes;;
4227 *)
4228 eval ac_cv_prog_make_${ac_make}_set=no;;
4229 esac
4230 rm -f conftest.make
4231 fi
4232 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4234 printf "%s\n" "yes" >&6; }
4235 SET_MAKE=
4236 else
4237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4238 printf "%s\n" "no" >&6; }
4239 SET_MAKE="MAKE=${MAKE-make}"
4240 fi
4241
4242 rm -rf .tst 2>/dev/null
4243 mkdir .tst 2>/dev/null
4244 if test -d .tst; then
4245 am__leading_dot=.
4246 else
4247 am__leading_dot=_
4248 fi
4249 rmdir .tst 2>/dev/null
4250
4251 DEPDIR="${am__leading_dot}deps"
4252
4253 ac_config_commands="$ac_config_commands depfiles"
4254
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4256 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4257 cat > confinc.mk << 'END'
4258 am__doit:
4259 @echo this is the am__doit target >confinc.out
4260 .PHONY: am__doit
4261 END
4262 am__include="#"
4263 am__quote=
4264 # BSD make does it like this.
4265 echo '.include "confinc.mk" # ignored' > confmf.BSD
4266 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4267 echo 'include confinc.mk # ignored' > confmf.GNU
4268 _am_result=no
4269 for s in GNU BSD; do
4270 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4271 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4272 ac_status=$?
4273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4274 (exit $ac_status); }
4275 case $?:`cat confinc.out 2>/dev/null` in #(
4276 '0:this is the am__doit target') :
4277 case $s in #(
4278 BSD) :
4279 am__include='.include' am__quote='"' ;; #(
4280 *) :
4281 am__include='include' am__quote='' ;;
4282 esac ;; #(
4283 *) :
4284 ;;
4285 esac
4286 if test "$am__include" != "#"; then
4287 _am_result="yes ($s style)"
4288 break
4289 fi
4290 done
4291 rm -f confinc.* confmf.*
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4293 printf "%s\n" "${_am_result}" >&6; }
4294
4295 # Check whether --enable-dependency-tracking was given.
4296 if test ${enable_dependency_tracking+y}
4297 then :
4298 enableval=$enable_dependency_tracking;
4299 fi
4300
4301 if test "x$enable_dependency_tracking" != xno; then
4302 am_depcomp="$ac_aux_dir/depcomp"
4303 AMDEPBACKSLASH='\'
4304 am__nodep='_no'
4305 fi
4306 if test "x$enable_dependency_tracking" != xno; then
4307 AMDEP_TRUE=
4308 AMDEP_FALSE='#'
4309 else
4310 AMDEP_TRUE='#'
4311 AMDEP_FALSE=
4312 fi
4313
4314
4315 # Check whether --enable-silent-rules was given.
4316 if test ${enable_silent_rules+y}
4317 then :
4318 enableval=$enable_silent_rules;
4319 fi
4320
4321 case $enable_silent_rules in # (((
4322 yes) AM_DEFAULT_VERBOSITY=0;;
4323 no) AM_DEFAULT_VERBOSITY=1;;
4324 *) AM_DEFAULT_VERBOSITY=1;;
4325 esac
4326 am_make=${MAKE-make}
4327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4328 printf %s "checking whether $am_make supports nested variables... " >&6; }
4329 if test ${am_cv_make_support_nested_variables+y}
4330 then :
4331 printf %s "(cached) " >&6
4332 else $as_nop
4333 if printf "%s\n" 'TRUE=$(BAR$(V))
4334 BAR0=false
4335 BAR1=true
4336 V=1
4337 am__doit:
4338 @$(TRUE)
4339 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4340 am_cv_make_support_nested_variables=yes
4341 else
4342 am_cv_make_support_nested_variables=no
4343 fi
4344 fi
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4346 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4347 if test $am_cv_make_support_nested_variables = yes; then
4348 AM_V='$(V)'
4349 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4350 else
4351 AM_V=$AM_DEFAULT_VERBOSITY
4352 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4353 fi
4354 AM_BACKSLASH='\'
4355
4356 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4357 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4358 # is not polluted with repeated "-I."
4359 am__isrc=' -I$(srcdir)'
4360 # test to see if srcdir already configured
4361 if test -f $srcdir/config.status; then
4362 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4363 fi
4364 fi
4365
4366 # test whether we have cygpath
4367 if test -z "$CYGPATH_W"; then
4368 if (cygpath --version) >/dev/null 2>/dev/null; then
4369 CYGPATH_W='cygpath -w'
4370 else
4371 CYGPATH_W=echo
4372 fi
4373 fi
4374
4375
4376 # Define the identity of the package.
4377 PACKAGE='twm'
4378 VERSION='1.0.13.1'
4379
4380
4381 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4382
4383
4384 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4385
4386 # Some tools Automake needs.
4387
4388 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4389
4390
4391 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4392
4393
4394 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4395
4396
4397 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4398
4399
4400 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4401
4402 # For better backward compatibility. To be removed once Automake 1.9.x
4403 # dies out for good. For more background, see:
4404 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4405 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4406 mkdir_p='$(MKDIR_P)'
4407
4408 # We need awk for the "check" target (and possibly the TAP driver). The
4409 # system "awk" is bad on some platforms.
4410 # Always define AMTAR for backward compatibility. Yes, it's still used
4411 # in the wild :-( We should find a proper way to deprecate it ...
4412 AMTAR='$${TAR-tar}'
4413
4414
4415 # We'll loop over all known methods to create a tar archive until one works.
4416 _am_tools='gnutar pax cpio none'
4417
4418 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4419
4420
4421
4422
4423
4424 depcc="$CC" am_compiler_list=
4425
4426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4427 printf %s "checking dependency style of $depcc... " >&6; }
4428 if test ${am_cv_CC_dependencies_compiler_type+y}
4429 then :
4430 printf %s "(cached) " >&6
4431 else $as_nop
4432 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4433 # We make a subdir and do the tests there. Otherwise we can end up
4434 # making bogus files that we don't know about and never remove. For
4435 # instance it was reported that on HP-UX the gcc test will end up
4436 # making a dummy file named 'D' -- because '-MD' means "put the output
4437 # in D".
4438 rm -rf conftest.dir
4439 mkdir conftest.dir
4440 # Copy depcomp to subdir because otherwise we won't find it if we're
4441 # using a relative directory.
4442 cp "$am_depcomp" conftest.dir
4443 cd conftest.dir
4444 # We will build objects and dependencies in a subdirectory because
4445 # it helps to detect inapplicable dependency modes. For instance
4446 # both Tru64's cc and ICC support -MD to output dependencies as a
4447 # side effect of compilation, but ICC will put the dependencies in
4448 # the current directory while Tru64 will put them in the object
4449 # directory.
4450 mkdir sub
4451
4452 am_cv_CC_dependencies_compiler_type=none
4453 if test "$am_compiler_list" = ""; then
4454 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4455 fi
4456 am__universal=false
4457 case " $depcc " in #(
4458 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4459 esac
4460
4461 for depmode in $am_compiler_list; do
4462 # Setup a source with many dependencies, because some compilers
4463 # like to wrap large dependency lists on column 80 (with \), and
4464 # we should not choose a depcomp mode which is confused by this.
4465 #
4466 # We need to recreate these files for each test, as the compiler may
4467 # overwrite some of them when testing with obscure command lines.
4468 # This happens at least with the AIX C compiler.
4469 : > sub/conftest.c
4470 for i in 1 2 3 4 5 6; do
4471 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4472 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4473 # Solaris 10 /bin/sh.
4474 echo '/* dummy */' > sub/conftst$i.h
4475 done
4476 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4477
4478 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4479 # mode. It turns out that the SunPro C++ compiler does not properly
4480 # handle '-M -o', and we need to detect this. Also, some Intel
4481 # versions had trouble with output in subdirs.
4482 am__obj=sub/conftest.${OBJEXT-o}
4483 am__minus_obj="-o $am__obj"
4484 case $depmode in
4485 gcc)
4486 # This depmode causes a compiler race in universal mode.
4487 test "$am__universal" = false || continue
4488 ;;
4489 nosideeffect)
4490 # After this tag, mechanisms are not by side-effect, so they'll
4491 # only be used when explicitly requested.
4492 if test "x$enable_dependency_tracking" = xyes; then
4493 continue
4494 else
4495 break
4496 fi
4497 ;;
4498 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4499 # This compiler won't grok '-c -o', but also, the minuso test has
4500 # not run yet. These depmodes are late enough in the game, and
4501 # so weak that their functioning should not be impacted.
4502 am__obj=conftest.${OBJEXT-o}
4503 am__minus_obj=
4504 ;;
4505 none) break ;;
4506 esac
4507 if depmode=$depmode \
4508 source=sub/conftest.c object=$am__obj \
4509 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4510 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4511 >/dev/null 2>conftest.err &&
4512 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4513 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4514 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4515 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4516 # icc doesn't choke on unknown options, it will just issue warnings
4517 # or remarks (even with -Werror). So we grep stderr for any message
4518 # that says an option was ignored or not supported.
4519 # When given -MP, icc 7.0 and 7.1 complain thusly:
4520 # icc: Command line warning: ignoring option '-M'; no argument required
4521 # The diagnosis changed in icc 8.0:
4522 # icc: Command line remark: option '-MP' not supported
4523 if (grep 'ignoring option' conftest.err ||
4524 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4525 am_cv_CC_dependencies_compiler_type=$depmode
4526 break
4527 fi
4528 fi
4529 done
4530
4531 cd ..
4532 rm -rf conftest.dir
4533 else
4534 am_cv_CC_dependencies_compiler_type=none
4535 fi
4536
4537 fi
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4539 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4540 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4541
4542 if
4543 test "x$enable_dependency_tracking" != xno \
4544 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4545 am__fastdepCC_TRUE=
4546 am__fastdepCC_FALSE='#'
4547 else
4548 am__fastdepCC_TRUE='#'
4549 am__fastdepCC_FALSE=
4550 fi
4551
4552
4553 # Variables for tags utilities; see am/tags.am
4554 if test -z "$CTAGS"; then
4555 CTAGS=ctags
4556 fi
4557
4558 if test -z "$ETAGS"; then
4559 ETAGS=etags
4560 fi
4561
4562 if test -z "$CSCOPE"; then
4563 CSCOPE=cscope
4564 fi
4565
4566
4567
4568 # POSIX will say in a future version that running "rm -f" with no argument
4569 # is OK; and we want to be able to make that assumption in our Makefile
4570 # recipes. So use an aggressive probe to check that the usage we want is
4571 # actually supported "in the wild" to an acceptable degree.
4572 # See automake bug#10828.
4573 # To make any issue more visible, cause the running configure to be aborted
4574 # by default if the 'rm' program in use doesn't match our expectations; the
4575 # user can still override this though.
4576 if rm -f && rm -fr && rm -rf; then : OK; else
4577 cat >&2 <<'END'
4578 Oops!
4579
4580 Your 'rm' program seems unable to run without file operands specified
4581 on the command line, even when the '-f' option is present. This is contrary
4582 to the behaviour of most rm programs out there, and not conforming with
4583 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4584
4585 Please tell bug-automake@gnu.org about your system, including the value
4586 of your $PATH and any error possibly output before this message. This
4587 can help us improve future automake versions.
4588
4589 END
4590 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4591 echo 'Configuration will proceed anyway, since you have set the' >&2
4592 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4593 echo >&2
4594 else
4595 cat >&2 <<'END'
4596 Aborting the configuration process, to ensure you take notice of the issue.
4597
4598 You can download and install GNU coreutils to get an 'rm' implementation
4599 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4600
4601 If you want to complete the configuration process using your problematic
4602 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4603 to "yes", and re-run configure.
4604
4605 END
4606 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4607 fi
4608 fi
4609
4610
4611 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4625 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4626 if test ${ac_cv_c_undeclared_builtin_options+y}
4627 then :
4628 printf %s "(cached) " >&6
4629 else $as_nop
4630 ac_save_CFLAGS=$CFLAGS
4631 ac_cv_c_undeclared_builtin_options='cannot detect'
4632 for ac_arg in '' -fno-builtin; do
4633 CFLAGS="$ac_save_CFLAGS $ac_arg"
4634 # This test program should *not* compile successfully.
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4637
4638 int
4639 main (void)
4640 {
4641 (void) strchr;
4642 ;
4643 return 0;
4644 }
4645 _ACEOF
4646 if ac_fn_c_try_compile "$LINENO"
4647 then :
4648
4649 else $as_nop
4650 # This test program should compile successfully.
4651 # No library function is consistently available on
4652 # freestanding implementations, so test against a dummy
4653 # declaration. Include always-available headers on the
4654 # off chance that they somehow elicit warnings.
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657 #include <float.h>
4658 #include <limits.h>
4659 #include <stdarg.h>
4660 #include <stddef.h>
4661 extern void ac_decl (int, char *);
4662
4663 int
4664 main (void)
4665 {
4666 (void) ac_decl (0, (char *) 0);
4667 (void) ac_decl;
4668
4669 ;
4670 return 0;
4671 }
4672 _ACEOF
4673 if ac_fn_c_try_compile "$LINENO"
4674 then :
4675 if test x"$ac_arg" = x
4676 then :
4677 ac_cv_c_undeclared_builtin_options='none needed'
4678 else $as_nop
4679 ac_cv_c_undeclared_builtin_options=$ac_arg
4680 fi
4681 break
4682 fi
4683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4684 fi
4685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4686 done
4687 CFLAGS=$ac_save_CFLAGS
4688
4689 fi
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4691 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4692 case $ac_cv_c_undeclared_builtin_options in #(
4693 'cannot detect') :
4694 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4695 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4696 as_fn_error $? "cannot make $CC report undeclared builtins
4697 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4698 'none needed') :
4699 ac_c_undeclared_builtin_options='' ;; #(
4700 *) :
4701 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4702 esac
4703
4704
4705
4706
4707
4708 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4709 if test "x$ac_cv_have_decl___clang__" = xyes
4710 then :
4711 CLANGCC="yes"
4712 else $as_nop
4713 CLANGCC="no"
4714 fi
4715 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4716 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4717 then :
4718 INTELCC="yes"
4719 else $as_nop
4720 INTELCC="no"
4721 fi
4722 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4723 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4724 then :
4725 SUNCC="yes"
4726 else $as_nop
4727 SUNCC="no"
4728 fi
4729
4730
4731
4732
4733
4734
4735
4736
4737 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4738 if test -n "$ac_tool_prefix"; then
4739 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4740 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4742 printf %s "checking for $ac_word... " >&6; }
4743 if test ${ac_cv_path_PKG_CONFIG+y}
4744 then :
4745 printf %s "(cached) " >&6
4746 else $as_nop
4747 case $PKG_CONFIG in
4748 [\\/]* | ?:[\\/]*)
4749 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4750 ;;
4751 *)
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755 IFS=$as_save_IFS
4756 case $as_dir in #(((
4757 '') as_dir=./ ;;
4758 */) ;;
4759 *) as_dir=$as_dir/ ;;
4760 esac
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4763 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4765 break 2
4766 fi
4767 done
4768 done
4769 IFS=$as_save_IFS
4770
4771 ;;
4772 esac
4773 fi
4774 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4775 if test -n "$PKG_CONFIG"; then
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4777 printf "%s\n" "$PKG_CONFIG" >&6; }
4778 else
4779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4780 printf "%s\n" "no" >&6; }
4781 fi
4782
4783
4784 fi
4785 if test -z "$ac_cv_path_PKG_CONFIG"; then
4786 ac_pt_PKG_CONFIG=$PKG_CONFIG
4787 # Extract the first word of "pkg-config", so it can be a program name with args.
4788 set dummy pkg-config; ac_word=$2
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 printf %s "checking for $ac_word... " >&6; }
4791 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4792 then :
4793 printf %s "(cached) " >&6
4794 else $as_nop
4795 case $ac_pt_PKG_CONFIG in
4796 [\\/]* | ?:[\\/]*)
4797 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4798 ;;
4799 *)
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH
4802 do
4803 IFS=$as_save_IFS
4804 case $as_dir in #(((
4805 '') as_dir=./ ;;
4806 */) ;;
4807 *) as_dir=$as_dir/ ;;
4808 esac
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4811 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815 done
4816 done
4817 IFS=$as_save_IFS
4818
4819 ;;
4820 esac
4821 fi
4822 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4823 if test -n "$ac_pt_PKG_CONFIG"; then
4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4825 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4826 else
4827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 printf "%s\n" "no" >&6; }
4829 fi
4830
4831 if test "x$ac_pt_PKG_CONFIG" = x; then
4832 PKG_CONFIG=""
4833 else
4834 case $cross_compiling:$ac_tool_warned in
4835 yes:)
4836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4837 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4838 ac_tool_warned=yes ;;
4839 esac
4840 PKG_CONFIG=$ac_pt_PKG_CONFIG
4841 fi
4842 else
4843 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4844 fi
4845
4846 fi
4847 if test -n "$PKG_CONFIG"; then
4848 _pkg_min_version=0.9.0
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4850 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4851 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4853 printf "%s\n" "yes" >&6; }
4854 else
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 printf "%s\n" "no" >&6; }
4857 PKG_CONFIG=""
4858 fi
4859 fi
4860
4861
4862 # Make sure we can run config.sub.
4863 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4864 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4865
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4867 printf %s "checking build system type... " >&6; }
4868 if test ${ac_cv_build+y}
4869 then :
4870 printf %s "(cached) " >&6
4871 else $as_nop
4872 ac_build_alias=$build_alias
4873 test "x$ac_build_alias" = x &&
4874 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4875 test "x$ac_build_alias" = x &&
4876 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4877 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4878 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4879
4880 fi
4881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4882 printf "%s\n" "$ac_cv_build" >&6; }
4883 case $ac_cv_build in
4884 *-*-*) ;;
4885 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4886 esac
4887 build=$ac_cv_build
4888 ac_save_IFS=$IFS; IFS='-'
4889 set x $ac_cv_build
4890 shift
4891 build_cpu=$1
4892 build_vendor=$2
4893 shift; shift
4894 # Remember, the first character of IFS is used to create $*,
4895 # except with old shells:
4896 build_os=$*
4897 IFS=$ac_save_IFS
4898 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4899
4900
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4902 printf %s "checking host system type... " >&6; }
4903 if test ${ac_cv_host+y}
4904 then :
4905 printf %s "(cached) " >&6
4906 else $as_nop
4907 if test "x$host_alias" = x; then
4908 ac_cv_host=$ac_cv_build
4909 else
4910 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4911 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4912 fi
4913
4914 fi
4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4916 printf "%s\n" "$ac_cv_host" >&6; }
4917 case $ac_cv_host in
4918 *-*-*) ;;
4919 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4920 esac
4921 host=$ac_cv_host
4922 ac_save_IFS=$IFS; IFS='-'
4923 set x $ac_cv_host
4924 shift
4925 host_cpu=$1
4926 host_vendor=$2
4927 shift; shift
4928 # Remember, the first character of IFS is used to create $*,
4929 # except with old shells:
4930 host_os=$*
4931 IFS=$ac_save_IFS
4932 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4933
4934
4935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4936 printf %s "checking for a sed that does not truncate output... " >&6; }
4937 if test ${ac_cv_path_SED+y}
4938 then :
4939 printf %s "(cached) " >&6
4940 else $as_nop
4941 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4942 for ac_i in 1 2 3 4 5 6 7; do
4943 ac_script="$ac_script$as_nl$ac_script"
4944 done
4945 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4946 { ac_script=; unset ac_script;}
4947 if test -z "$SED"; then
4948 ac_path_SED_found=false
4949 # Loop through the user's path and test for each of PROGNAME-LIST
4950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951 for as_dir in $PATH
4952 do
4953 IFS=$as_save_IFS
4954 case $as_dir in #(((
4955 '') as_dir=./ ;;
4956 */) ;;
4957 *) as_dir=$as_dir/ ;;
4958 esac
4959 for ac_prog in sed gsed
4960 do
4961 for ac_exec_ext in '' $ac_executable_extensions; do
4962 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4963 as_fn_executable_p "$ac_path_SED" || continue
4964 # Check for GNU ac_path_SED and select it if it is found.
4965 # Check for GNU $ac_path_SED
4966 case `"$ac_path_SED" --version 2>&1` in
4967 *GNU*)
4968 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4969 *)
4970 ac_count=0
4971 printf %s 0123456789 >"conftest.in"
4972 while :
4973 do
4974 cat "conftest.in" "conftest.in" >"conftest.tmp"
4975 mv "conftest.tmp" "conftest.in"
4976 cp "conftest.in" "conftest.nl"
4977 printf "%s\n" '' >> "conftest.nl"
4978 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4980 as_fn_arith $ac_count + 1 && ac_count=$as_val
4981 if test $ac_count -gt ${ac_path_SED_max-0}; then
4982 # Best one so far, save it but keep looking for a better one
4983 ac_cv_path_SED="$ac_path_SED"
4984 ac_path_SED_max=$ac_count
4985 fi
4986 # 10*(2^10) chars as input seems more than enough
4987 test $ac_count -gt 10 && break
4988 done
4989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4990 esac
4991
4992 $ac_path_SED_found && break 3
4993 done
4994 done
4995 done
4996 IFS=$as_save_IFS
4997 if test -z "$ac_cv_path_SED"; then
4998 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4999 fi
5000 else
5001 ac_cv_path_SED=$SED
5002 fi
5003
5004 fi
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5006 printf "%s\n" "$ac_cv_path_SED" >&6; }
5007 SED="$ac_cv_path_SED"
5008 rm -f conftest.sed
5009
5010
5011
5012
5013
5014
5015 # Check whether --enable-selective-werror was given.
5016 if test ${enable_selective_werror+y}
5017 then :
5018 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5019 else $as_nop
5020 SELECTIVE_WERROR=yes
5021 fi
5022
5023
5024
5025
5026
5027 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5028 if test "x$SUNCC" = "xyes"; then
5029 BASE_CFLAGS="-v"
5030 else
5031 BASE_CFLAGS=""
5032 fi
5033
5034 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048 xorg_testset_save_CFLAGS="$CFLAGS"
5049
5050 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5051 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5053 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5054 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5055 then :
5056 printf %s "(cached) " >&6
5057 else $as_nop
5058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h. */
5060 int i;
5061 _ACEOF
5062 if ac_fn_c_try_compile "$LINENO"
5063 then :
5064 xorg_cv_cc_flag_unknown_warning_option=yes
5065 else $as_nop
5066 xorg_cv_cc_flag_unknown_warning_option=no
5067 fi
5068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5069 fi
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5071 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5073 CFLAGS="$xorg_testset_save_CFLAGS"
5074 fi
5075
5076 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5079 fi
5080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5082 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5083 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5084 then :
5085 printf %s "(cached) " >&6
5086 else $as_nop
5087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5088 /* end confdefs.h. */
5089 int i;
5090 _ACEOF
5091 if ac_fn_c_try_compile "$LINENO"
5092 then :
5093 xorg_cv_cc_flag_unused_command_line_argument=yes
5094 else $as_nop
5095 xorg_cv_cc_flag_unused_command_line_argument=no
5096 fi
5097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5098 fi
5099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5100 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5101 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5102 CFLAGS="$xorg_testset_save_CFLAGS"
5103 fi
5104
5105 found="no"
5106
5107 if test $found = "no" ; then
5108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5110 fi
5111
5112 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5114 fi
5115
5116 CFLAGS="$CFLAGS -Wall"
5117
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5119 printf %s "checking if $CC supports -Wall... " >&6; }
5120 cacheid=xorg_cv_cc_flag__Wall
5121 if eval test \${$cacheid+y}
5122 then :
5123 printf %s "(cached) " >&6
5124 else $as_nop
5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5127 int i;
5128 int
5129 main (void)
5130 {
5131
5132 ;
5133 return 0;
5134 }
5135 _ACEOF
5136 if ac_fn_c_try_link "$LINENO"
5137 then :
5138 eval $cacheid=yes
5139 else $as_nop
5140 eval $cacheid=no
5141 fi
5142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5143 conftest$ac_exeext conftest.$ac_ext
5144 fi
5145
5146
5147 CFLAGS="$xorg_testset_save_CFLAGS"
5148
5149 eval supported=\$$cacheid
5150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5151 printf "%s\n" "$supported" >&6; }
5152 if test "$supported" = "yes" ; then
5153 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5154 found="yes"
5155 fi
5156 fi
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172 xorg_testset_save_CFLAGS="$CFLAGS"
5173
5174 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5175 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5177 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5178 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5179 then :
5180 printf %s "(cached) " >&6
5181 else $as_nop
5182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5183 /* end confdefs.h. */
5184 int i;
5185 _ACEOF
5186 if ac_fn_c_try_compile "$LINENO"
5187 then :
5188 xorg_cv_cc_flag_unknown_warning_option=yes
5189 else $as_nop
5190 xorg_cv_cc_flag_unknown_warning_option=no
5191 fi
5192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5193 fi
5194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5195 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5197 CFLAGS="$xorg_testset_save_CFLAGS"
5198 fi
5199
5200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5203 fi
5204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5206 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5207 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5208 then :
5209 printf %s "(cached) " >&6
5210 else $as_nop
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 int i;
5214 _ACEOF
5215 if ac_fn_c_try_compile "$LINENO"
5216 then :
5217 xorg_cv_cc_flag_unused_command_line_argument=yes
5218 else $as_nop
5219 xorg_cv_cc_flag_unused_command_line_argument=no
5220 fi
5221 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5222 fi
5223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5224 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5225 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5226 CFLAGS="$xorg_testset_save_CFLAGS"
5227 fi
5228
5229 found="no"
5230
5231 if test $found = "no" ; then
5232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5234 fi
5235
5236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5238 fi
5239
5240 CFLAGS="$CFLAGS -Wpointer-arith"
5241
5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5243 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5244 cacheid=xorg_cv_cc_flag__Wpointer_arith
5245 if eval test \${$cacheid+y}
5246 then :
5247 printf %s "(cached) " >&6
5248 else $as_nop
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 int i;
5252 int
5253 main (void)
5254 {
5255
5256 ;
5257 return 0;
5258 }
5259 _ACEOF
5260 if ac_fn_c_try_link "$LINENO"
5261 then :
5262 eval $cacheid=yes
5263 else $as_nop
5264 eval $cacheid=no
5265 fi
5266 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5267 conftest$ac_exeext conftest.$ac_ext
5268 fi
5269
5270
5271 CFLAGS="$xorg_testset_save_CFLAGS"
5272
5273 eval supported=\$$cacheid
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5275 printf "%s\n" "$supported" >&6; }
5276 if test "$supported" = "yes" ; then
5277 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5278 found="yes"
5279 fi
5280 fi
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296 xorg_testset_save_CFLAGS="$CFLAGS"
5297
5298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5301 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5302 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5303 then :
5304 printf %s "(cached) " >&6
5305 else $as_nop
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5308 int i;
5309 _ACEOF
5310 if ac_fn_c_try_compile "$LINENO"
5311 then :
5312 xorg_cv_cc_flag_unknown_warning_option=yes
5313 else $as_nop
5314 xorg_cv_cc_flag_unknown_warning_option=no
5315 fi
5316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
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 $as_nop
5335 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 $as_nop
5343 xorg_cv_cc_flag_unused_command_line_argument=no
5344 fi
5345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5346 fi
5347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5348 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5350 CFLAGS="$xorg_testset_save_CFLAGS"
5351 fi
5352
5353 found="no"
5354
5355 if test $found = "no" ; then
5356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5358 fi
5359
5360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5362 fi
5363
5364 CFLAGS="$CFLAGS -Wmissing-declarations"
5365
5366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5367 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5368 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5369 if eval test \${$cacheid+y}
5370 then :
5371 printf %s "(cached) " >&6
5372 else $as_nop
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h. */
5375 int i;
5376 int
5377 main (void)
5378 {
5379
5380 ;
5381 return 0;
5382 }
5383 _ACEOF
5384 if ac_fn_c_try_link "$LINENO"
5385 then :
5386 eval $cacheid=yes
5387 else $as_nop
5388 eval $cacheid=no
5389 fi
5390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5391 conftest$ac_exeext conftest.$ac_ext
5392 fi
5393
5394
5395 CFLAGS="$xorg_testset_save_CFLAGS"
5396
5397 eval supported=\$$cacheid
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5399 printf "%s\n" "$supported" >&6; }
5400 if test "$supported" = "yes" ; then
5401 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5402 found="yes"
5403 fi
5404 fi
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420 xorg_testset_save_CFLAGS="$CFLAGS"
5421
5422 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5425 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5426 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5427 then :
5428 printf %s "(cached) " >&6
5429 else $as_nop
5430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5431 /* end confdefs.h. */
5432 int i;
5433 _ACEOF
5434 if ac_fn_c_try_compile "$LINENO"
5435 then :
5436 xorg_cv_cc_flag_unknown_warning_option=yes
5437 else $as_nop
5438 xorg_cv_cc_flag_unknown_warning_option=no
5439 fi
5440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5441 fi
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5443 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5445 CFLAGS="$xorg_testset_save_CFLAGS"
5446 fi
5447
5448 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5451 fi
5452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5454 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5455 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5456 then :
5457 printf %s "(cached) " >&6
5458 else $as_nop
5459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5461 int i;
5462 _ACEOF
5463 if ac_fn_c_try_compile "$LINENO"
5464 then :
5465 xorg_cv_cc_flag_unused_command_line_argument=yes
5466 else $as_nop
5467 xorg_cv_cc_flag_unused_command_line_argument=no
5468 fi
5469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5470 fi
5471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5472 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5474 CFLAGS="$xorg_testset_save_CFLAGS"
5475 fi
5476
5477 found="no"
5478
5479 if test $found = "no" ; then
5480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5482 fi
5483
5484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5486 fi
5487
5488 CFLAGS="$CFLAGS -Wformat=2"
5489
5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5491 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5492 cacheid=xorg_cv_cc_flag__Wformat_2
5493 if eval test \${$cacheid+y}
5494 then :
5495 printf %s "(cached) " >&6
5496 else $as_nop
5497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498 /* end confdefs.h. */
5499 int i;
5500 int
5501 main (void)
5502 {
5503
5504 ;
5505 return 0;
5506 }
5507 _ACEOF
5508 if ac_fn_c_try_link "$LINENO"
5509 then :
5510 eval $cacheid=yes
5511 else $as_nop
5512 eval $cacheid=no
5513 fi
5514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5515 conftest$ac_exeext conftest.$ac_ext
5516 fi
5517
5518
5519 CFLAGS="$xorg_testset_save_CFLAGS"
5520
5521 eval supported=\$$cacheid
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5523 printf "%s\n" "$supported" >&6; }
5524 if test "$supported" = "yes" ; then
5525 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5526 found="yes"
5527 fi
5528 fi
5529
5530 if test $found = "no" ; then
5531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5533 fi
5534
5535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5537 fi
5538
5539 CFLAGS="$CFLAGS -Wformat"
5540
5541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5542 printf %s "checking if $CC supports -Wformat... " >&6; }
5543 cacheid=xorg_cv_cc_flag__Wformat
5544 if eval test \${$cacheid+y}
5545 then :
5546 printf %s "(cached) " >&6
5547 else $as_nop
5548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5549 /* end confdefs.h. */
5550 int i;
5551 int
5552 main (void)
5553 {
5554
5555 ;
5556 return 0;
5557 }
5558 _ACEOF
5559 if ac_fn_c_try_link "$LINENO"
5560 then :
5561 eval $cacheid=yes
5562 else $as_nop
5563 eval $cacheid=no
5564 fi
5565 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5566 conftest$ac_exeext conftest.$ac_ext
5567 fi
5568
5569
5570 CFLAGS="$xorg_testset_save_CFLAGS"
5571
5572 eval supported=\$$cacheid
5573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5574 printf "%s\n" "$supported" >&6; }
5575 if test "$supported" = "yes" ; then
5576 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5577 found="yes"
5578 fi
5579 fi
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597 xorg_testset_save_CFLAGS="$CFLAGS"
5598
5599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5602 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5603 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5604 then :
5605 printf %s "(cached) " >&6
5606 else $as_nop
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 int i;
5610 _ACEOF
5611 if ac_fn_c_try_compile "$LINENO"
5612 then :
5613 xorg_cv_cc_flag_unknown_warning_option=yes
5614 else $as_nop
5615 xorg_cv_cc_flag_unknown_warning_option=no
5616 fi
5617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5618 fi
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5620 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5622 CFLAGS="$xorg_testset_save_CFLAGS"
5623 fi
5624
5625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5628 fi
5629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5631 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5632 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5633 then :
5634 printf %s "(cached) " >&6
5635 else $as_nop
5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5637 /* end confdefs.h. */
5638 int i;
5639 _ACEOF
5640 if ac_fn_c_try_compile "$LINENO"
5641 then :
5642 xorg_cv_cc_flag_unused_command_line_argument=yes
5643 else $as_nop
5644 xorg_cv_cc_flag_unused_command_line_argument=no
5645 fi
5646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5647 fi
5648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5649 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5651 CFLAGS="$xorg_testset_save_CFLAGS"
5652 fi
5653
5654 found="no"
5655
5656 if test $found = "no" ; then
5657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5659 fi
5660
5661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5663 fi
5664
5665 CFLAGS="$CFLAGS -Wstrict-prototypes"
5666
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5668 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5669 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5670 if eval test \${$cacheid+y}
5671 then :
5672 printf %s "(cached) " >&6
5673 else $as_nop
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 int i;
5677 int
5678 main (void)
5679 {
5680
5681 ;
5682 return 0;
5683 }
5684 _ACEOF
5685 if ac_fn_c_try_link "$LINENO"
5686 then :
5687 eval $cacheid=yes
5688 else $as_nop
5689 eval $cacheid=no
5690 fi
5691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5692 conftest$ac_exeext conftest.$ac_ext
5693 fi
5694
5695
5696 CFLAGS="$xorg_testset_save_CFLAGS"
5697
5698 eval supported=\$$cacheid
5699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5700 printf "%s\n" "$supported" >&6; }
5701 if test "$supported" = "yes" ; then
5702 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5703 found="yes"
5704 fi
5705 fi
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721 xorg_testset_save_CFLAGS="$CFLAGS"
5722
5723 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5726 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5727 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5728 then :
5729 printf %s "(cached) " >&6
5730 else $as_nop
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5733 int i;
5734 _ACEOF
5735 if ac_fn_c_try_compile "$LINENO"
5736 then :
5737 xorg_cv_cc_flag_unknown_warning_option=yes
5738 else $as_nop
5739 xorg_cv_cc_flag_unknown_warning_option=no
5740 fi
5741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5742 fi
5743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5744 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5746 CFLAGS="$xorg_testset_save_CFLAGS"
5747 fi
5748
5749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5752 fi
5753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5755 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5756 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5757 then :
5758 printf %s "(cached) " >&6
5759 else $as_nop
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 int i;
5763 _ACEOF
5764 if ac_fn_c_try_compile "$LINENO"
5765 then :
5766 xorg_cv_cc_flag_unused_command_line_argument=yes
5767 else $as_nop
5768 xorg_cv_cc_flag_unused_command_line_argument=no
5769 fi
5770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5771 fi
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5773 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5775 CFLAGS="$xorg_testset_save_CFLAGS"
5776 fi
5777
5778 found="no"
5779
5780 if test $found = "no" ; then
5781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5783 fi
5784
5785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5787 fi
5788
5789 CFLAGS="$CFLAGS -Wmissing-prototypes"
5790
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5792 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5793 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5794 if eval test \${$cacheid+y}
5795 then :
5796 printf %s "(cached) " >&6
5797 else $as_nop
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 int i;
5801 int
5802 main (void)
5803 {
5804
5805 ;
5806 return 0;
5807 }
5808 _ACEOF
5809 if ac_fn_c_try_link "$LINENO"
5810 then :
5811 eval $cacheid=yes
5812 else $as_nop
5813 eval $cacheid=no
5814 fi
5815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5816 conftest$ac_exeext conftest.$ac_ext
5817 fi
5818
5819
5820 CFLAGS="$xorg_testset_save_CFLAGS"
5821
5822 eval supported=\$$cacheid
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5824 printf "%s\n" "$supported" >&6; }
5825 if test "$supported" = "yes" ; then
5826 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5827 found="yes"
5828 fi
5829 fi
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845 xorg_testset_save_CFLAGS="$CFLAGS"
5846
5847 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5850 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5851 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5852 then :
5853 printf %s "(cached) " >&6
5854 else $as_nop
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5857 int i;
5858 _ACEOF
5859 if ac_fn_c_try_compile "$LINENO"
5860 then :
5861 xorg_cv_cc_flag_unknown_warning_option=yes
5862 else $as_nop
5863 xorg_cv_cc_flag_unknown_warning_option=no
5864 fi
5865 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5866 fi
5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5868 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5869 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5870 CFLAGS="$xorg_testset_save_CFLAGS"
5871 fi
5872
5873 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5876 fi
5877 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5879 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5880 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5881 then :
5882 printf %s "(cached) " >&6
5883 else $as_nop
5884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885 /* end confdefs.h. */
5886 int i;
5887 _ACEOF
5888 if ac_fn_c_try_compile "$LINENO"
5889 then :
5890 xorg_cv_cc_flag_unused_command_line_argument=yes
5891 else $as_nop
5892 xorg_cv_cc_flag_unused_command_line_argument=no
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5895 fi
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5897 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5898 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5899 CFLAGS="$xorg_testset_save_CFLAGS"
5900 fi
5901
5902 found="no"
5903
5904 if test $found = "no" ; then
5905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5907 fi
5908
5909 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5911 fi
5912
5913 CFLAGS="$CFLAGS -Wnested-externs"
5914
5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5916 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5917 cacheid=xorg_cv_cc_flag__Wnested_externs
5918 if eval test \${$cacheid+y}
5919 then :
5920 printf %s "(cached) " >&6
5921 else $as_nop
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5924 int i;
5925 int
5926 main (void)
5927 {
5928
5929 ;
5930 return 0;
5931 }
5932 _ACEOF
5933 if ac_fn_c_try_link "$LINENO"
5934 then :
5935 eval $cacheid=yes
5936 else $as_nop
5937 eval $cacheid=no
5938 fi
5939 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5940 conftest$ac_exeext conftest.$ac_ext
5941 fi
5942
5943
5944 CFLAGS="$xorg_testset_save_CFLAGS"
5945
5946 eval supported=\$$cacheid
5947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5948 printf "%s\n" "$supported" >&6; }
5949 if test "$supported" = "yes" ; then
5950 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5951 found="yes"
5952 fi
5953 fi
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969 xorg_testset_save_CFLAGS="$CFLAGS"
5970
5971 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5974 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5975 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5976 then :
5977 printf %s "(cached) " >&6
5978 else $as_nop
5979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5980 /* end confdefs.h. */
5981 int i;
5982 _ACEOF
5983 if ac_fn_c_try_compile "$LINENO"
5984 then :
5985 xorg_cv_cc_flag_unknown_warning_option=yes
5986 else $as_nop
5987 xorg_cv_cc_flag_unknown_warning_option=no
5988 fi
5989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5990 fi
5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5992 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5993 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5994 CFLAGS="$xorg_testset_save_CFLAGS"
5995 fi
5996
5997 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6000 fi
6001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6003 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6004 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6005 then :
6006 printf %s "(cached) " >&6
6007 else $as_nop
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6010 int i;
6011 _ACEOF
6012 if ac_fn_c_try_compile "$LINENO"
6013 then :
6014 xorg_cv_cc_flag_unused_command_line_argument=yes
6015 else $as_nop
6016 xorg_cv_cc_flag_unused_command_line_argument=no
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6019 fi
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6021 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6022 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6023 CFLAGS="$xorg_testset_save_CFLAGS"
6024 fi
6025
6026 found="no"
6027
6028 if test $found = "no" ; then
6029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6031 fi
6032
6033 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6035 fi
6036
6037 CFLAGS="$CFLAGS -Wbad-function-cast"
6038
6039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6040 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6041 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6042 if eval test \${$cacheid+y}
6043 then :
6044 printf %s "(cached) " >&6
6045 else $as_nop
6046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6048 int i;
6049 int
6050 main (void)
6051 {
6052
6053 ;
6054 return 0;
6055 }
6056 _ACEOF
6057 if ac_fn_c_try_link "$LINENO"
6058 then :
6059 eval $cacheid=yes
6060 else $as_nop
6061 eval $cacheid=no
6062 fi
6063 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6064 conftest$ac_exeext conftest.$ac_ext
6065 fi
6066
6067
6068 CFLAGS="$xorg_testset_save_CFLAGS"
6069
6070 eval supported=\$$cacheid
6071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6072 printf "%s\n" "$supported" >&6; }
6073 if test "$supported" = "yes" ; then
6074 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6075 found="yes"
6076 fi
6077 fi
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 xorg_testset_save_CFLAGS="$CFLAGS"
6094
6095 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6098 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6099 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6100 then :
6101 printf %s "(cached) " >&6
6102 else $as_nop
6103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6104 /* end confdefs.h. */
6105 int i;
6106 _ACEOF
6107 if ac_fn_c_try_compile "$LINENO"
6108 then :
6109 xorg_cv_cc_flag_unknown_warning_option=yes
6110 else $as_nop
6111 xorg_cv_cc_flag_unknown_warning_option=no
6112 fi
6113 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6114 fi
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6116 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6118 CFLAGS="$xorg_testset_save_CFLAGS"
6119 fi
6120
6121 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6123 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6124 fi
6125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6127 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6128 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6129 then :
6130 printf %s "(cached) " >&6
6131 else $as_nop
6132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6133 /* end confdefs.h. */
6134 int i;
6135 _ACEOF
6136 if ac_fn_c_try_compile "$LINENO"
6137 then :
6138 xorg_cv_cc_flag_unused_command_line_argument=yes
6139 else $as_nop
6140 xorg_cv_cc_flag_unused_command_line_argument=no
6141 fi
6142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6143 fi
6144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6145 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6146 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6147 CFLAGS="$xorg_testset_save_CFLAGS"
6148 fi
6149
6150 found="no"
6151
6152 if test $found = "no" ; then
6153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6155 fi
6156
6157 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6158 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6159 fi
6160
6161 CFLAGS="$CFLAGS -Wold-style-definition"
6162
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6164 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6165 cacheid=xorg_cv_cc_flag__Wold_style_definition
6166 if eval test \${$cacheid+y}
6167 then :
6168 printf %s "(cached) " >&6
6169 else $as_nop
6170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6171 /* end confdefs.h. */
6172 int i;
6173 int
6174 main (void)
6175 {
6176
6177 ;
6178 return 0;
6179 }
6180 _ACEOF
6181 if ac_fn_c_try_link "$LINENO"
6182 then :
6183 eval $cacheid=yes
6184 else $as_nop
6185 eval $cacheid=no
6186 fi
6187 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6188 conftest$ac_exeext conftest.$ac_ext
6189 fi
6190
6191
6192 CFLAGS="$xorg_testset_save_CFLAGS"
6193
6194 eval supported=\$$cacheid
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6196 printf "%s\n" "$supported" >&6; }
6197 if test "$supported" = "yes" ; then
6198 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6199 found="yes"
6200 fi
6201 fi
6202
6203 if test $found = "no" ; then
6204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6206 fi
6207
6208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6210 fi
6211
6212 CFLAGS="$CFLAGS -fd"
6213
6214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6215 printf %s "checking if $CC supports -fd... " >&6; }
6216 cacheid=xorg_cv_cc_flag__fd
6217 if eval test \${$cacheid+y}
6218 then :
6219 printf %s "(cached) " >&6
6220 else $as_nop
6221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222 /* end confdefs.h. */
6223 int i;
6224 int
6225 main (void)
6226 {
6227
6228 ;
6229 return 0;
6230 }
6231 _ACEOF
6232 if ac_fn_c_try_link "$LINENO"
6233 then :
6234 eval $cacheid=yes
6235 else $as_nop
6236 eval $cacheid=no
6237 fi
6238 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6239 conftest$ac_exeext conftest.$ac_ext
6240 fi
6241
6242
6243 CFLAGS="$xorg_testset_save_CFLAGS"
6244
6245 eval supported=\$$cacheid
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6247 printf "%s\n" "$supported" >&6; }
6248 if test "$supported" = "yes" ; then
6249 BASE_CFLAGS="$BASE_CFLAGS -fd"
6250 found="yes"
6251 fi
6252 fi
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268 xorg_testset_save_CFLAGS="$CFLAGS"
6269
6270 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6273 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6274 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6275 then :
6276 printf %s "(cached) " >&6
6277 else $as_nop
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 int i;
6281 _ACEOF
6282 if ac_fn_c_try_compile "$LINENO"
6283 then :
6284 xorg_cv_cc_flag_unknown_warning_option=yes
6285 else $as_nop
6286 xorg_cv_cc_flag_unknown_warning_option=no
6287 fi
6288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6289 fi
6290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6291 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6293 CFLAGS="$xorg_testset_save_CFLAGS"
6294 fi
6295
6296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6299 fi
6300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6302 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6303 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6304 then :
6305 printf %s "(cached) " >&6
6306 else $as_nop
6307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6308 /* end confdefs.h. */
6309 int i;
6310 _ACEOF
6311 if ac_fn_c_try_compile "$LINENO"
6312 then :
6313 xorg_cv_cc_flag_unused_command_line_argument=yes
6314 else $as_nop
6315 xorg_cv_cc_flag_unused_command_line_argument=no
6316 fi
6317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6318 fi
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6320 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6321 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6322 CFLAGS="$xorg_testset_save_CFLAGS"
6323 fi
6324
6325 found="no"
6326
6327 if test $found = "no" ; then
6328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6330 fi
6331
6332 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6334 fi
6335
6336 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6337
6338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6339 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6340 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6341 if eval test \${$cacheid+y}
6342 then :
6343 printf %s "(cached) " >&6
6344 else $as_nop
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6347 int i;
6348 int
6349 main (void)
6350 {
6351
6352 ;
6353 return 0;
6354 }
6355 _ACEOF
6356 if ac_fn_c_try_link "$LINENO"
6357 then :
6358 eval $cacheid=yes
6359 else $as_nop
6360 eval $cacheid=no
6361 fi
6362 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6363 conftest$ac_exeext conftest.$ac_ext
6364 fi
6365
6366
6367 CFLAGS="$xorg_testset_save_CFLAGS"
6368
6369 eval supported=\$$cacheid
6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6371 printf "%s\n" "$supported" >&6; }
6372 if test "$supported" = "yes" ; then
6373 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6374 found="yes"
6375 fi
6376 fi
6377
6378
6379
6380
6381
6382 # This chunk adds additional warnings that could catch undesired effects.
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396 xorg_testset_save_CFLAGS="$CFLAGS"
6397
6398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6401 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6402 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6403 then :
6404 printf %s "(cached) " >&6
6405 else $as_nop
6406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408 int i;
6409 _ACEOF
6410 if ac_fn_c_try_compile "$LINENO"
6411 then :
6412 xorg_cv_cc_flag_unknown_warning_option=yes
6413 else $as_nop
6414 xorg_cv_cc_flag_unknown_warning_option=no
6415 fi
6416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6417 fi
6418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6419 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6420 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6421 CFLAGS="$xorg_testset_save_CFLAGS"
6422 fi
6423
6424 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6427 fi
6428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6430 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6431 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6432 then :
6433 printf %s "(cached) " >&6
6434 else $as_nop
6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 /* end confdefs.h. */
6437 int i;
6438 _ACEOF
6439 if ac_fn_c_try_compile "$LINENO"
6440 then :
6441 xorg_cv_cc_flag_unused_command_line_argument=yes
6442 else $as_nop
6443 xorg_cv_cc_flag_unused_command_line_argument=no
6444 fi
6445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6446 fi
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6448 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6450 CFLAGS="$xorg_testset_save_CFLAGS"
6451 fi
6452
6453 found="no"
6454
6455 if test $found = "no" ; then
6456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6458 fi
6459
6460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6462 fi
6463
6464 CFLAGS="$CFLAGS -Wunused"
6465
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6467 printf %s "checking if $CC supports -Wunused... " >&6; }
6468 cacheid=xorg_cv_cc_flag__Wunused
6469 if eval test \${$cacheid+y}
6470 then :
6471 printf %s "(cached) " >&6
6472 else $as_nop
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h. */
6475 int i;
6476 int
6477 main (void)
6478 {
6479
6480 ;
6481 return 0;
6482 }
6483 _ACEOF
6484 if ac_fn_c_try_link "$LINENO"
6485 then :
6486 eval $cacheid=yes
6487 else $as_nop
6488 eval $cacheid=no
6489 fi
6490 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6491 conftest$ac_exeext conftest.$ac_ext
6492 fi
6493
6494
6495 CFLAGS="$xorg_testset_save_CFLAGS"
6496
6497 eval supported=\$$cacheid
6498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6499 printf "%s\n" "$supported" >&6; }
6500 if test "$supported" = "yes" ; then
6501 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6502 found="yes"
6503 fi
6504 fi
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520 xorg_testset_save_CFLAGS="$CFLAGS"
6521
6522 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6525 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6526 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6527 then :
6528 printf %s "(cached) " >&6
6529 else $as_nop
6530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6531 /* end confdefs.h. */
6532 int i;
6533 _ACEOF
6534 if ac_fn_c_try_compile "$LINENO"
6535 then :
6536 xorg_cv_cc_flag_unknown_warning_option=yes
6537 else $as_nop
6538 xorg_cv_cc_flag_unknown_warning_option=no
6539 fi
6540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6541 fi
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6543 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6544 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6545 CFLAGS="$xorg_testset_save_CFLAGS"
6546 fi
6547
6548 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6551 fi
6552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6554 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6555 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6556 then :
6557 printf %s "(cached) " >&6
6558 else $as_nop
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6561 int i;
6562 _ACEOF
6563 if ac_fn_c_try_compile "$LINENO"
6564 then :
6565 xorg_cv_cc_flag_unused_command_line_argument=yes
6566 else $as_nop
6567 xorg_cv_cc_flag_unused_command_line_argument=no
6568 fi
6569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6570 fi
6571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6572 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6573 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6574 CFLAGS="$xorg_testset_save_CFLAGS"
6575 fi
6576
6577 found="no"
6578
6579 if test $found = "no" ; then
6580 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6581 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6582 fi
6583
6584 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6586 fi
6587
6588 CFLAGS="$CFLAGS -Wuninitialized"
6589
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6591 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6592 cacheid=xorg_cv_cc_flag__Wuninitialized
6593 if eval test \${$cacheid+y}
6594 then :
6595 printf %s "(cached) " >&6
6596 else $as_nop
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6599 int i;
6600 int
6601 main (void)
6602 {
6603
6604 ;
6605 return 0;
6606 }
6607 _ACEOF
6608 if ac_fn_c_try_link "$LINENO"
6609 then :
6610 eval $cacheid=yes
6611 else $as_nop
6612 eval $cacheid=no
6613 fi
6614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6615 conftest$ac_exeext conftest.$ac_ext
6616 fi
6617
6618
6619 CFLAGS="$xorg_testset_save_CFLAGS"
6620
6621 eval supported=\$$cacheid
6622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6623 printf "%s\n" "$supported" >&6; }
6624 if test "$supported" = "yes" ; then
6625 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6626 found="yes"
6627 fi
6628 fi
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644 xorg_testset_save_CFLAGS="$CFLAGS"
6645
6646 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6649 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6650 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6651 then :
6652 printf %s "(cached) " >&6
6653 else $as_nop
6654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655 /* end confdefs.h. */
6656 int i;
6657 _ACEOF
6658 if ac_fn_c_try_compile "$LINENO"
6659 then :
6660 xorg_cv_cc_flag_unknown_warning_option=yes
6661 else $as_nop
6662 xorg_cv_cc_flag_unknown_warning_option=no
6663 fi
6664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6665 fi
6666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6667 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6669 CFLAGS="$xorg_testset_save_CFLAGS"
6670 fi
6671
6672 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6675 fi
6676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6678 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6679 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6680 then :
6681 printf %s "(cached) " >&6
6682 else $as_nop
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6685 int i;
6686 _ACEOF
6687 if ac_fn_c_try_compile "$LINENO"
6688 then :
6689 xorg_cv_cc_flag_unused_command_line_argument=yes
6690 else $as_nop
6691 xorg_cv_cc_flag_unused_command_line_argument=no
6692 fi
6693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6694 fi
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6696 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6697 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6698 CFLAGS="$xorg_testset_save_CFLAGS"
6699 fi
6700
6701 found="no"
6702
6703 if test $found = "no" ; then
6704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6706 fi
6707
6708 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6710 fi
6711
6712 CFLAGS="$CFLAGS -Wshadow"
6713
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6715 printf %s "checking if $CC supports -Wshadow... " >&6; }
6716 cacheid=xorg_cv_cc_flag__Wshadow
6717 if eval test \${$cacheid+y}
6718 then :
6719 printf %s "(cached) " >&6
6720 else $as_nop
6721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6723 int i;
6724 int
6725 main (void)
6726 {
6727
6728 ;
6729 return 0;
6730 }
6731 _ACEOF
6732 if ac_fn_c_try_link "$LINENO"
6733 then :
6734 eval $cacheid=yes
6735 else $as_nop
6736 eval $cacheid=no
6737 fi
6738 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6739 conftest$ac_exeext conftest.$ac_ext
6740 fi
6741
6742
6743 CFLAGS="$xorg_testset_save_CFLAGS"
6744
6745 eval supported=\$$cacheid
6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6747 printf "%s\n" "$supported" >&6; }
6748 if test "$supported" = "yes" ; then
6749 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6750 found="yes"
6751 fi
6752 fi
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768 xorg_testset_save_CFLAGS="$CFLAGS"
6769
6770 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6773 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6774 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6775 then :
6776 printf %s "(cached) " >&6
6777 else $as_nop
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6780 int i;
6781 _ACEOF
6782 if ac_fn_c_try_compile "$LINENO"
6783 then :
6784 xorg_cv_cc_flag_unknown_warning_option=yes
6785 else $as_nop
6786 xorg_cv_cc_flag_unknown_warning_option=no
6787 fi
6788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6789 fi
6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6791 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6792 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6793 CFLAGS="$xorg_testset_save_CFLAGS"
6794 fi
6795
6796 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6799 fi
6800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6802 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6803 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6804 then :
6805 printf %s "(cached) " >&6
6806 else $as_nop
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6809 int i;
6810 _ACEOF
6811 if ac_fn_c_try_compile "$LINENO"
6812 then :
6813 xorg_cv_cc_flag_unused_command_line_argument=yes
6814 else $as_nop
6815 xorg_cv_cc_flag_unused_command_line_argument=no
6816 fi
6817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6818 fi
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6820 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6821 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6822 CFLAGS="$xorg_testset_save_CFLAGS"
6823 fi
6824
6825 found="no"
6826
6827 if test $found = "no" ; then
6828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6830 fi
6831
6832 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6834 fi
6835
6836 CFLAGS="$CFLAGS -Wmissing-noreturn"
6837
6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6839 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6840 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6841 if eval test \${$cacheid+y}
6842 then :
6843 printf %s "(cached) " >&6
6844 else $as_nop
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 int i;
6848 int
6849 main (void)
6850 {
6851
6852 ;
6853 return 0;
6854 }
6855 _ACEOF
6856 if ac_fn_c_try_link "$LINENO"
6857 then :
6858 eval $cacheid=yes
6859 else $as_nop
6860 eval $cacheid=no
6861 fi
6862 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6863 conftest$ac_exeext conftest.$ac_ext
6864 fi
6865
6866
6867 CFLAGS="$xorg_testset_save_CFLAGS"
6868
6869 eval supported=\$$cacheid
6870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6871 printf "%s\n" "$supported" >&6; }
6872 if test "$supported" = "yes" ; then
6873 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6874 found="yes"
6875 fi
6876 fi
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892 xorg_testset_save_CFLAGS="$CFLAGS"
6893
6894 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6897 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6898 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6899 then :
6900 printf %s "(cached) " >&6
6901 else $as_nop
6902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6903 /* end confdefs.h. */
6904 int i;
6905 _ACEOF
6906 if ac_fn_c_try_compile "$LINENO"
6907 then :
6908 xorg_cv_cc_flag_unknown_warning_option=yes
6909 else $as_nop
6910 xorg_cv_cc_flag_unknown_warning_option=no
6911 fi
6912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6913 fi
6914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6915 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6916 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6917 CFLAGS="$xorg_testset_save_CFLAGS"
6918 fi
6919
6920 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923 fi
6924 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6926 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6927 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6928 then :
6929 printf %s "(cached) " >&6
6930 else $as_nop
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6933 int i;
6934 _ACEOF
6935 if ac_fn_c_try_compile "$LINENO"
6936 then :
6937 xorg_cv_cc_flag_unused_command_line_argument=yes
6938 else $as_nop
6939 xorg_cv_cc_flag_unused_command_line_argument=no
6940 fi
6941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6942 fi
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6944 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6945 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6946 CFLAGS="$xorg_testset_save_CFLAGS"
6947 fi
6948
6949 found="no"
6950
6951 if test $found = "no" ; then
6952 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6954 fi
6955
6956 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6958 fi
6959
6960 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6961
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6963 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6964 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6965 if eval test \${$cacheid+y}
6966 then :
6967 printf %s "(cached) " >&6
6968 else $as_nop
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971 int i;
6972 int
6973 main (void)
6974 {
6975
6976 ;
6977 return 0;
6978 }
6979 _ACEOF
6980 if ac_fn_c_try_link "$LINENO"
6981 then :
6982 eval $cacheid=yes
6983 else $as_nop
6984 eval $cacheid=no
6985 fi
6986 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6987 conftest$ac_exeext conftest.$ac_ext
6988 fi
6989
6990
6991 CFLAGS="$xorg_testset_save_CFLAGS"
6992
6993 eval supported=\$$cacheid
6994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6995 printf "%s\n" "$supported" >&6; }
6996 if test "$supported" = "yes" ; then
6997 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6998 found="yes"
6999 fi
7000 fi
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016 xorg_testset_save_CFLAGS="$CFLAGS"
7017
7018 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7021 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7022 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7023 then :
7024 printf %s "(cached) " >&6
7025 else $as_nop
7026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h. */
7028 int i;
7029 _ACEOF
7030 if ac_fn_c_try_compile "$LINENO"
7031 then :
7032 xorg_cv_cc_flag_unknown_warning_option=yes
7033 else $as_nop
7034 xorg_cv_cc_flag_unknown_warning_option=no
7035 fi
7036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7037 fi
7038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7039 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7041 CFLAGS="$xorg_testset_save_CFLAGS"
7042 fi
7043
7044 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7047 fi
7048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7050 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7051 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7052 then :
7053 printf %s "(cached) " >&6
7054 else $as_nop
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056 /* end confdefs.h. */
7057 int i;
7058 _ACEOF
7059 if ac_fn_c_try_compile "$LINENO"
7060 then :
7061 xorg_cv_cc_flag_unused_command_line_argument=yes
7062 else $as_nop
7063 xorg_cv_cc_flag_unused_command_line_argument=no
7064 fi
7065 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7066 fi
7067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7068 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7070 CFLAGS="$xorg_testset_save_CFLAGS"
7071 fi
7072
7073 found="no"
7074
7075 if test $found = "no" ; then
7076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7078 fi
7079
7080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7082 fi
7083
7084 CFLAGS="$CFLAGS -Wredundant-decls"
7085
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7087 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7088 cacheid=xorg_cv_cc_flag__Wredundant_decls
7089 if eval test \${$cacheid+y}
7090 then :
7091 printf %s "(cached) " >&6
7092 else $as_nop
7093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7094 /* end confdefs.h. */
7095 int i;
7096 int
7097 main (void)
7098 {
7099
7100 ;
7101 return 0;
7102 }
7103 _ACEOF
7104 if ac_fn_c_try_link "$LINENO"
7105 then :
7106 eval $cacheid=yes
7107 else $as_nop
7108 eval $cacheid=no
7109 fi
7110 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7111 conftest$ac_exeext conftest.$ac_ext
7112 fi
7113
7114
7115 CFLAGS="$xorg_testset_save_CFLAGS"
7116
7117 eval supported=\$$cacheid
7118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7119 printf "%s\n" "$supported" >&6; }
7120 if test "$supported" = "yes" ; then
7121 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7122 found="yes"
7123 fi
7124 fi
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140 xorg_testset_save_CFLAGS="$CFLAGS"
7141
7142 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7145 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7146 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7147 then :
7148 printf %s "(cached) " >&6
7149 else $as_nop
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7152 int i;
7153 _ACEOF
7154 if ac_fn_c_try_compile "$LINENO"
7155 then :
7156 xorg_cv_cc_flag_unknown_warning_option=yes
7157 else $as_nop
7158 xorg_cv_cc_flag_unknown_warning_option=no
7159 fi
7160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7161 fi
7162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7163 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7164 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7165 CFLAGS="$xorg_testset_save_CFLAGS"
7166 fi
7167
7168 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7171 fi
7172 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7174 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7175 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7176 then :
7177 printf %s "(cached) " >&6
7178 else $as_nop
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7181 int i;
7182 _ACEOF
7183 if ac_fn_c_try_compile "$LINENO"
7184 then :
7185 xorg_cv_cc_flag_unused_command_line_argument=yes
7186 else $as_nop
7187 xorg_cv_cc_flag_unused_command_line_argument=no
7188 fi
7189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7190 fi
7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7192 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7194 CFLAGS="$xorg_testset_save_CFLAGS"
7195 fi
7196
7197 found="no"
7198
7199 if test $found = "no" ; then
7200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7202 fi
7203
7204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7206 fi
7207
7208 CFLAGS="$CFLAGS -Wlogical-op"
7209
7210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7211 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7212 cacheid=xorg_cv_cc_flag__Wlogical_op
7213 if eval test \${$cacheid+y}
7214 then :
7215 printf %s "(cached) " >&6
7216 else $as_nop
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7219 int i;
7220 int
7221 main (void)
7222 {
7223
7224 ;
7225 return 0;
7226 }
7227 _ACEOF
7228 if ac_fn_c_try_link "$LINENO"
7229 then :
7230 eval $cacheid=yes
7231 else $as_nop
7232 eval $cacheid=no
7233 fi
7234 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7235 conftest$ac_exeext conftest.$ac_ext
7236 fi
7237
7238
7239 CFLAGS="$xorg_testset_save_CFLAGS"
7240
7241 eval supported=\$$cacheid
7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7243 printf "%s\n" "$supported" >&6; }
7244 if test "$supported" = "yes" ; then
7245 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7246 found="yes"
7247 fi
7248 fi
7249
7250
7251
7252 # These are currently disabled because they are noisy. They will be enabled
7253 # in the future once the codebase is sufficiently modernized to silence
7254 # them. For now, I don't want them to drown out the other warnings.
7255 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7256 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7257 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7258
7259 # Turn some warnings into errors, so we don't accidently get successful builds
7260 # when there are problems that should be fixed.
7261
7262 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276 xorg_testset_save_CFLAGS="$CFLAGS"
7277
7278 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7281 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7282 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7283 then :
7284 printf %s "(cached) " >&6
7285 else $as_nop
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7288 int i;
7289 _ACEOF
7290 if ac_fn_c_try_compile "$LINENO"
7291 then :
7292 xorg_cv_cc_flag_unknown_warning_option=yes
7293 else $as_nop
7294 xorg_cv_cc_flag_unknown_warning_option=no
7295 fi
7296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7297 fi
7298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7299 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7300 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7301 CFLAGS="$xorg_testset_save_CFLAGS"
7302 fi
7303
7304 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7307 fi
7308 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7310 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7311 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7312 then :
7313 printf %s "(cached) " >&6
7314 else $as_nop
7315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7316 /* end confdefs.h. */
7317 int i;
7318 _ACEOF
7319 if ac_fn_c_try_compile "$LINENO"
7320 then :
7321 xorg_cv_cc_flag_unused_command_line_argument=yes
7322 else $as_nop
7323 xorg_cv_cc_flag_unused_command_line_argument=no
7324 fi
7325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7326 fi
7327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7328 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7330 CFLAGS="$xorg_testset_save_CFLAGS"
7331 fi
7332
7333 found="no"
7334
7335 if test $found = "no" ; then
7336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7338 fi
7339
7340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7342 fi
7343
7344 CFLAGS="$CFLAGS -Werror=implicit"
7345
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7347 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7348 cacheid=xorg_cv_cc_flag__Werror_implicit
7349 if eval test \${$cacheid+y}
7350 then :
7351 printf %s "(cached) " >&6
7352 else $as_nop
7353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7354 /* end confdefs.h. */
7355 int i;
7356 int
7357 main (void)
7358 {
7359
7360 ;
7361 return 0;
7362 }
7363 _ACEOF
7364 if ac_fn_c_try_link "$LINENO"
7365 then :
7366 eval $cacheid=yes
7367 else $as_nop
7368 eval $cacheid=no
7369 fi
7370 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7371 conftest$ac_exeext conftest.$ac_ext
7372 fi
7373
7374
7375 CFLAGS="$xorg_testset_save_CFLAGS"
7376
7377 eval supported=\$$cacheid
7378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7379 printf "%s\n" "$supported" >&6; }
7380 if test "$supported" = "yes" ; then
7381 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7382 found="yes"
7383 fi
7384 fi
7385
7386 if test $found = "no" ; then
7387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7389 fi
7390
7391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7393 fi
7394
7395 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7396
7397 { 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
7398 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7399 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7400 if eval test \${$cacheid+y}
7401 then :
7402 printf %s "(cached) " >&6
7403 else $as_nop
7404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7405 /* end confdefs.h. */
7406 int i;
7407 int
7408 main (void)
7409 {
7410
7411 ;
7412 return 0;
7413 }
7414 _ACEOF
7415 if ac_fn_c_try_link "$LINENO"
7416 then :
7417 eval $cacheid=yes
7418 else $as_nop
7419 eval $cacheid=no
7420 fi
7421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7422 conftest$ac_exeext conftest.$ac_ext
7423 fi
7424
7425
7426 CFLAGS="$xorg_testset_save_CFLAGS"
7427
7428 eval supported=\$$cacheid
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7430 printf "%s\n" "$supported" >&6; }
7431 if test "$supported" = "yes" ; then
7432 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7433 found="yes"
7434 fi
7435 fi
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451 xorg_testset_save_CFLAGS="$CFLAGS"
7452
7453 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7454 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7456 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7457 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7458 then :
7459 printf %s "(cached) " >&6
7460 else $as_nop
7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7462 /* end confdefs.h. */
7463 int i;
7464 _ACEOF
7465 if ac_fn_c_try_compile "$LINENO"
7466 then :
7467 xorg_cv_cc_flag_unknown_warning_option=yes
7468 else $as_nop
7469 xorg_cv_cc_flag_unknown_warning_option=no
7470 fi
7471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7472 fi
7473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7474 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7475 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7476 CFLAGS="$xorg_testset_save_CFLAGS"
7477 fi
7478
7479 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7482 fi
7483 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7485 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7486 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7487 then :
7488 printf %s "(cached) " >&6
7489 else $as_nop
7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7492 int i;
7493 _ACEOF
7494 if ac_fn_c_try_compile "$LINENO"
7495 then :
7496 xorg_cv_cc_flag_unused_command_line_argument=yes
7497 else $as_nop
7498 xorg_cv_cc_flag_unused_command_line_argument=no
7499 fi
7500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7501 fi
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7503 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7504 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7505 CFLAGS="$xorg_testset_save_CFLAGS"
7506 fi
7507
7508 found="no"
7509
7510 if test $found = "no" ; then
7511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7513 fi
7514
7515 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7517 fi
7518
7519 CFLAGS="$CFLAGS -Werror=nonnull"
7520
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7522 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7523 cacheid=xorg_cv_cc_flag__Werror_nonnull
7524 if eval test \${$cacheid+y}
7525 then :
7526 printf %s "(cached) " >&6
7527 else $as_nop
7528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7529 /* end confdefs.h. */
7530 int i;
7531 int
7532 main (void)
7533 {
7534
7535 ;
7536 return 0;
7537 }
7538 _ACEOF
7539 if ac_fn_c_try_link "$LINENO"
7540 then :
7541 eval $cacheid=yes
7542 else $as_nop
7543 eval $cacheid=no
7544 fi
7545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7546 conftest$ac_exeext conftest.$ac_ext
7547 fi
7548
7549
7550 CFLAGS="$xorg_testset_save_CFLAGS"
7551
7552 eval supported=\$$cacheid
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7554 printf "%s\n" "$supported" >&6; }
7555 if test "$supported" = "yes" ; then
7556 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7557 found="yes"
7558 fi
7559 fi
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575 xorg_testset_save_CFLAGS="$CFLAGS"
7576
7577 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7580 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7581 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7582 then :
7583 printf %s "(cached) " >&6
7584 else $as_nop
7585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7586 /* end confdefs.h. */
7587 int i;
7588 _ACEOF
7589 if ac_fn_c_try_compile "$LINENO"
7590 then :
7591 xorg_cv_cc_flag_unknown_warning_option=yes
7592 else $as_nop
7593 xorg_cv_cc_flag_unknown_warning_option=no
7594 fi
7595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7596 fi
7597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7598 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7599 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7600 CFLAGS="$xorg_testset_save_CFLAGS"
7601 fi
7602
7603 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7606 fi
7607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7609 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7610 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7611 then :
7612 printf %s "(cached) " >&6
7613 else $as_nop
7614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7615 /* end confdefs.h. */
7616 int i;
7617 _ACEOF
7618 if ac_fn_c_try_compile "$LINENO"
7619 then :
7620 xorg_cv_cc_flag_unused_command_line_argument=yes
7621 else $as_nop
7622 xorg_cv_cc_flag_unused_command_line_argument=no
7623 fi
7624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7625 fi
7626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7627 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7628 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7629 CFLAGS="$xorg_testset_save_CFLAGS"
7630 fi
7631
7632 found="no"
7633
7634 if test $found = "no" ; then
7635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7637 fi
7638
7639 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7640 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7641 fi
7642
7643 CFLAGS="$CFLAGS -Werror=init-self"
7644
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7646 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7647 cacheid=xorg_cv_cc_flag__Werror_init_self
7648 if eval test \${$cacheid+y}
7649 then :
7650 printf %s "(cached) " >&6
7651 else $as_nop
7652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7653 /* end confdefs.h. */
7654 int i;
7655 int
7656 main (void)
7657 {
7658
7659 ;
7660 return 0;
7661 }
7662 _ACEOF
7663 if ac_fn_c_try_link "$LINENO"
7664 then :
7665 eval $cacheid=yes
7666 else $as_nop
7667 eval $cacheid=no
7668 fi
7669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7670 conftest$ac_exeext conftest.$ac_ext
7671 fi
7672
7673
7674 CFLAGS="$xorg_testset_save_CFLAGS"
7675
7676 eval supported=\$$cacheid
7677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7678 printf "%s\n" "$supported" >&6; }
7679 if test "$supported" = "yes" ; then
7680 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7681 found="yes"
7682 fi
7683 fi
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699 xorg_testset_save_CFLAGS="$CFLAGS"
7700
7701 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7702 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7704 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7705 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7706 then :
7707 printf %s "(cached) " >&6
7708 else $as_nop
7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 int i;
7712 _ACEOF
7713 if ac_fn_c_try_compile "$LINENO"
7714 then :
7715 xorg_cv_cc_flag_unknown_warning_option=yes
7716 else $as_nop
7717 xorg_cv_cc_flag_unknown_warning_option=no
7718 fi
7719 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7720 fi
7721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7722 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7723 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7724 CFLAGS="$xorg_testset_save_CFLAGS"
7725 fi
7726
7727 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730 fi
7731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7733 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7734 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7735 then :
7736 printf %s "(cached) " >&6
7737 else $as_nop
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7740 int i;
7741 _ACEOF
7742 if ac_fn_c_try_compile "$LINENO"
7743 then :
7744 xorg_cv_cc_flag_unused_command_line_argument=yes
7745 else $as_nop
7746 xorg_cv_cc_flag_unused_command_line_argument=no
7747 fi
7748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7749 fi
7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7751 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7752 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7753 CFLAGS="$xorg_testset_save_CFLAGS"
7754 fi
7755
7756 found="no"
7757
7758 if test $found = "no" ; then
7759 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7761 fi
7762
7763 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7765 fi
7766
7767 CFLAGS="$CFLAGS -Werror=main"
7768
7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7770 printf %s "checking if $CC supports -Werror=main... " >&6; }
7771 cacheid=xorg_cv_cc_flag__Werror_main
7772 if eval test \${$cacheid+y}
7773 then :
7774 printf %s "(cached) " >&6
7775 else $as_nop
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778 int i;
7779 int
7780 main (void)
7781 {
7782
7783 ;
7784 return 0;
7785 }
7786 _ACEOF
7787 if ac_fn_c_try_link "$LINENO"
7788 then :
7789 eval $cacheid=yes
7790 else $as_nop
7791 eval $cacheid=no
7792 fi
7793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7794 conftest$ac_exeext conftest.$ac_ext
7795 fi
7796
7797
7798 CFLAGS="$xorg_testset_save_CFLAGS"
7799
7800 eval supported=\$$cacheid
7801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7802 printf "%s\n" "$supported" >&6; }
7803 if test "$supported" = "yes" ; then
7804 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7805 found="yes"
7806 fi
7807 fi
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823 xorg_testset_save_CFLAGS="$CFLAGS"
7824
7825 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7828 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7829 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7830 then :
7831 printf %s "(cached) " >&6
7832 else $as_nop
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7835 int i;
7836 _ACEOF
7837 if ac_fn_c_try_compile "$LINENO"
7838 then :
7839 xorg_cv_cc_flag_unknown_warning_option=yes
7840 else $as_nop
7841 xorg_cv_cc_flag_unknown_warning_option=no
7842 fi
7843 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7844 fi
7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7846 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7847 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7848 CFLAGS="$xorg_testset_save_CFLAGS"
7849 fi
7850
7851 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7854 fi
7855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7857 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7858 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7859 then :
7860 printf %s "(cached) " >&6
7861 else $as_nop
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 int i;
7865 _ACEOF
7866 if ac_fn_c_try_compile "$LINENO"
7867 then :
7868 xorg_cv_cc_flag_unused_command_line_argument=yes
7869 else $as_nop
7870 xorg_cv_cc_flag_unused_command_line_argument=no
7871 fi
7872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7873 fi
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7875 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7877 CFLAGS="$xorg_testset_save_CFLAGS"
7878 fi
7879
7880 found="no"
7881
7882 if test $found = "no" ; then
7883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7885 fi
7886
7887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7889 fi
7890
7891 CFLAGS="$CFLAGS -Werror=missing-braces"
7892
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7894 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7895 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7896 if eval test \${$cacheid+y}
7897 then :
7898 printf %s "(cached) " >&6
7899 else $as_nop
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7902 int i;
7903 int
7904 main (void)
7905 {
7906
7907 ;
7908 return 0;
7909 }
7910 _ACEOF
7911 if ac_fn_c_try_link "$LINENO"
7912 then :
7913 eval $cacheid=yes
7914 else $as_nop
7915 eval $cacheid=no
7916 fi
7917 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7918 conftest$ac_exeext conftest.$ac_ext
7919 fi
7920
7921
7922 CFLAGS="$xorg_testset_save_CFLAGS"
7923
7924 eval supported=\$$cacheid
7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7926 printf "%s\n" "$supported" >&6; }
7927 if test "$supported" = "yes" ; then
7928 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7929 found="yes"
7930 fi
7931 fi
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947 xorg_testset_save_CFLAGS="$CFLAGS"
7948
7949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7952 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7953 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7954 then :
7955 printf %s "(cached) " >&6
7956 else $as_nop
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7959 int i;
7960 _ACEOF
7961 if ac_fn_c_try_compile "$LINENO"
7962 then :
7963 xorg_cv_cc_flag_unknown_warning_option=yes
7964 else $as_nop
7965 xorg_cv_cc_flag_unknown_warning_option=no
7966 fi
7967 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7968 fi
7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7970 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7971 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7972 CFLAGS="$xorg_testset_save_CFLAGS"
7973 fi
7974
7975 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7978 fi
7979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7981 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7982 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7983 then :
7984 printf %s "(cached) " >&6
7985 else $as_nop
7986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7987 /* end confdefs.h. */
7988 int i;
7989 _ACEOF
7990 if ac_fn_c_try_compile "$LINENO"
7991 then :
7992 xorg_cv_cc_flag_unused_command_line_argument=yes
7993 else $as_nop
7994 xorg_cv_cc_flag_unused_command_line_argument=no
7995 fi
7996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7997 fi
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7999 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8000 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8001 CFLAGS="$xorg_testset_save_CFLAGS"
8002 fi
8003
8004 found="no"
8005
8006 if test $found = "no" ; then
8007 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8009 fi
8010
8011 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8013 fi
8014
8015 CFLAGS="$CFLAGS -Werror=sequence-point"
8016
8017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8018 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8019 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8020 if eval test \${$cacheid+y}
8021 then :
8022 printf %s "(cached) " >&6
8023 else $as_nop
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8026 int i;
8027 int
8028 main (void)
8029 {
8030
8031 ;
8032 return 0;
8033 }
8034 _ACEOF
8035 if ac_fn_c_try_link "$LINENO"
8036 then :
8037 eval $cacheid=yes
8038 else $as_nop
8039 eval $cacheid=no
8040 fi
8041 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8042 conftest$ac_exeext conftest.$ac_ext
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 $as_nop
8081 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 $as_nop
8089 xorg_cv_cc_flag_unknown_warning_option=no
8090 fi
8091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8092 fi
8093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8094 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8095 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8096 CFLAGS="$xorg_testset_save_CFLAGS"
8097 fi
8098
8099 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8102 fi
8103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8105 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8106 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8107 then :
8108 printf %s "(cached) " >&6
8109 else $as_nop
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 int i;
8113 _ACEOF
8114 if ac_fn_c_try_compile "$LINENO"
8115 then :
8116 xorg_cv_cc_flag_unused_command_line_argument=yes
8117 else $as_nop
8118 xorg_cv_cc_flag_unused_command_line_argument=no
8119 fi
8120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8121 fi
8122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8123 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8124 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8125 CFLAGS="$xorg_testset_save_CFLAGS"
8126 fi
8127
8128 found="no"
8129
8130 if test $found = "no" ; then
8131 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8133 fi
8134
8135 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8137 fi
8138
8139 CFLAGS="$CFLAGS -Werror=return-type"
8140
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8142 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8143 cacheid=xorg_cv_cc_flag__Werror_return_type
8144 if eval test \${$cacheid+y}
8145 then :
8146 printf %s "(cached) " >&6
8147 else $as_nop
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8150 int i;
8151 int
8152 main (void)
8153 {
8154
8155 ;
8156 return 0;
8157 }
8158 _ACEOF
8159 if ac_fn_c_try_link "$LINENO"
8160 then :
8161 eval $cacheid=yes
8162 else $as_nop
8163 eval $cacheid=no
8164 fi
8165 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8166 conftest$ac_exeext conftest.$ac_ext
8167 fi
8168
8169
8170 CFLAGS="$xorg_testset_save_CFLAGS"
8171
8172 eval supported=\$$cacheid
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8174 printf "%s\n" "$supported" >&6; }
8175 if test "$supported" = "yes" ; then
8176 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8177 found="yes"
8178 fi
8179 fi
8180
8181 if test $found = "no" ; then
8182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184 fi
8185
8186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8188 fi
8189
8190 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8191
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8193 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8194 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8195 if eval test \${$cacheid+y}
8196 then :
8197 printf %s "(cached) " >&6
8198 else $as_nop
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8201 int i;
8202 int
8203 main (void)
8204 {
8205
8206 ;
8207 return 0;
8208 }
8209 _ACEOF
8210 if ac_fn_c_try_link "$LINENO"
8211 then :
8212 eval $cacheid=yes
8213 else $as_nop
8214 eval $cacheid=no
8215 fi
8216 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8217 conftest$ac_exeext conftest.$ac_ext
8218 fi
8219
8220
8221 CFLAGS="$xorg_testset_save_CFLAGS"
8222
8223 eval supported=\$$cacheid
8224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8225 printf "%s\n" "$supported" >&6; }
8226 if test "$supported" = "yes" ; then
8227 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8228 found="yes"
8229 fi
8230 fi
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246 xorg_testset_save_CFLAGS="$CFLAGS"
8247
8248 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8251 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8252 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8253 then :
8254 printf %s "(cached) " >&6
8255 else $as_nop
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8258 int i;
8259 _ACEOF
8260 if ac_fn_c_try_compile "$LINENO"
8261 then :
8262 xorg_cv_cc_flag_unknown_warning_option=yes
8263 else $as_nop
8264 xorg_cv_cc_flag_unknown_warning_option=no
8265 fi
8266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8267 fi
8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8269 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8271 CFLAGS="$xorg_testset_save_CFLAGS"
8272 fi
8273
8274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8277 fi
8278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8280 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8281 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8282 then :
8283 printf %s "(cached) " >&6
8284 else $as_nop
8285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287 int i;
8288 _ACEOF
8289 if ac_fn_c_try_compile "$LINENO"
8290 then :
8291 xorg_cv_cc_flag_unused_command_line_argument=yes
8292 else $as_nop
8293 xorg_cv_cc_flag_unused_command_line_argument=no
8294 fi
8295 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8296 fi
8297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8298 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8300 CFLAGS="$xorg_testset_save_CFLAGS"
8301 fi
8302
8303 found="no"
8304
8305 if test $found = "no" ; then
8306 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8308 fi
8309
8310 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8312 fi
8313
8314 CFLAGS="$CFLAGS -Werror=trigraphs"
8315
8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8317 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8318 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8319 if eval test \${$cacheid+y}
8320 then :
8321 printf %s "(cached) " >&6
8322 else $as_nop
8323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8325 int i;
8326 int
8327 main (void)
8328 {
8329
8330 ;
8331 return 0;
8332 }
8333 _ACEOF
8334 if ac_fn_c_try_link "$LINENO"
8335 then :
8336 eval $cacheid=yes
8337 else $as_nop
8338 eval $cacheid=no
8339 fi
8340 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8341 conftest$ac_exeext conftest.$ac_ext
8342 fi
8343
8344
8345 CFLAGS="$xorg_testset_save_CFLAGS"
8346
8347 eval supported=\$$cacheid
8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8349 printf "%s\n" "$supported" >&6; }
8350 if test "$supported" = "yes" ; then
8351 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8352 found="yes"
8353 fi
8354 fi
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370 xorg_testset_save_CFLAGS="$CFLAGS"
8371
8372 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8375 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8376 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8377 then :
8378 printf %s "(cached) " >&6
8379 else $as_nop
8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381 /* end confdefs.h. */
8382 int i;
8383 _ACEOF
8384 if ac_fn_c_try_compile "$LINENO"
8385 then :
8386 xorg_cv_cc_flag_unknown_warning_option=yes
8387 else $as_nop
8388 xorg_cv_cc_flag_unknown_warning_option=no
8389 fi
8390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8391 fi
8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8393 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8395 CFLAGS="$xorg_testset_save_CFLAGS"
8396 fi
8397
8398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8401 fi
8402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8404 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8405 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8406 then :
8407 printf %s "(cached) " >&6
8408 else $as_nop
8409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8410 /* end confdefs.h. */
8411 int i;
8412 _ACEOF
8413 if ac_fn_c_try_compile "$LINENO"
8414 then :
8415 xorg_cv_cc_flag_unused_command_line_argument=yes
8416 else $as_nop
8417 xorg_cv_cc_flag_unused_command_line_argument=no
8418 fi
8419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8420 fi
8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8422 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8424 CFLAGS="$xorg_testset_save_CFLAGS"
8425 fi
8426
8427 found="no"
8428
8429 if test $found = "no" ; then
8430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8432 fi
8433
8434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8436 fi
8437
8438 CFLAGS="$CFLAGS -Werror=array-bounds"
8439
8440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8441 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8442 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8443 if eval test \${$cacheid+y}
8444 then :
8445 printf %s "(cached) " >&6
8446 else $as_nop
8447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8448 /* end confdefs.h. */
8449 int i;
8450 int
8451 main (void)
8452 {
8453
8454 ;
8455 return 0;
8456 }
8457 _ACEOF
8458 if ac_fn_c_try_link "$LINENO"
8459 then :
8460 eval $cacheid=yes
8461 else $as_nop
8462 eval $cacheid=no
8463 fi
8464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8465 conftest$ac_exeext conftest.$ac_ext
8466 fi
8467
8468
8469 CFLAGS="$xorg_testset_save_CFLAGS"
8470
8471 eval supported=\$$cacheid
8472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8473 printf "%s\n" "$supported" >&6; }
8474 if test "$supported" = "yes" ; then
8475 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8476 found="yes"
8477 fi
8478 fi
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494 xorg_testset_save_CFLAGS="$CFLAGS"
8495
8496 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8497 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8499 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8500 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8501 then :
8502 printf %s "(cached) " >&6
8503 else $as_nop
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505 /* end confdefs.h. */
8506 int i;
8507 _ACEOF
8508 if ac_fn_c_try_compile "$LINENO"
8509 then :
8510 xorg_cv_cc_flag_unknown_warning_option=yes
8511 else $as_nop
8512 xorg_cv_cc_flag_unknown_warning_option=no
8513 fi
8514 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8515 fi
8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8517 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8519 CFLAGS="$xorg_testset_save_CFLAGS"
8520 fi
8521
8522 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8525 fi
8526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8528 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8529 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8530 then :
8531 printf %s "(cached) " >&6
8532 else $as_nop
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8535 int i;
8536 _ACEOF
8537 if ac_fn_c_try_compile "$LINENO"
8538 then :
8539 xorg_cv_cc_flag_unused_command_line_argument=yes
8540 else $as_nop
8541 xorg_cv_cc_flag_unused_command_line_argument=no
8542 fi
8543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8544 fi
8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8546 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8547 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8548 CFLAGS="$xorg_testset_save_CFLAGS"
8549 fi
8550
8551 found="no"
8552
8553 if test $found = "no" ; then
8554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8556 fi
8557
8558 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8559 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8560 fi
8561
8562 CFLAGS="$CFLAGS -Werror=write-strings"
8563
8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8565 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8566 cacheid=xorg_cv_cc_flag__Werror_write_strings
8567 if eval test \${$cacheid+y}
8568 then :
8569 printf %s "(cached) " >&6
8570 else $as_nop
8571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8572 /* end confdefs.h. */
8573 int i;
8574 int
8575 main (void)
8576 {
8577
8578 ;
8579 return 0;
8580 }
8581 _ACEOF
8582 if ac_fn_c_try_link "$LINENO"
8583 then :
8584 eval $cacheid=yes
8585 else $as_nop
8586 eval $cacheid=no
8587 fi
8588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8589 conftest$ac_exeext conftest.$ac_ext
8590 fi
8591
8592
8593 CFLAGS="$xorg_testset_save_CFLAGS"
8594
8595 eval supported=\$$cacheid
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8597 printf "%s\n" "$supported" >&6; }
8598 if test "$supported" = "yes" ; then
8599 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8600 found="yes"
8601 fi
8602 fi
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618 xorg_testset_save_CFLAGS="$CFLAGS"
8619
8620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8623 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8624 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8625 then :
8626 printf %s "(cached) " >&6
8627 else $as_nop
8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h. */
8630 int i;
8631 _ACEOF
8632 if ac_fn_c_try_compile "$LINENO"
8633 then :
8634 xorg_cv_cc_flag_unknown_warning_option=yes
8635 else $as_nop
8636 xorg_cv_cc_flag_unknown_warning_option=no
8637 fi
8638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8639 fi
8640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8641 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8642 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8643 CFLAGS="$xorg_testset_save_CFLAGS"
8644 fi
8645
8646 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8649 fi
8650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8652 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8653 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8654 then :
8655 printf %s "(cached) " >&6
8656 else $as_nop
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658 /* end confdefs.h. */
8659 int i;
8660 _ACEOF
8661 if ac_fn_c_try_compile "$LINENO"
8662 then :
8663 xorg_cv_cc_flag_unused_command_line_argument=yes
8664 else $as_nop
8665 xorg_cv_cc_flag_unused_command_line_argument=no
8666 fi
8667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8668 fi
8669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8670 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8671 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8672 CFLAGS="$xorg_testset_save_CFLAGS"
8673 fi
8674
8675 found="no"
8676
8677 if test $found = "no" ; then
8678 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8680 fi
8681
8682 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8684 fi
8685
8686 CFLAGS="$CFLAGS -Werror=address"
8687
8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8689 printf %s "checking if $CC supports -Werror=address... " >&6; }
8690 cacheid=xorg_cv_cc_flag__Werror_address
8691 if eval test \${$cacheid+y}
8692 then :
8693 printf %s "(cached) " >&6
8694 else $as_nop
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697 int i;
8698 int
8699 main (void)
8700 {
8701
8702 ;
8703 return 0;
8704 }
8705 _ACEOF
8706 if ac_fn_c_try_link "$LINENO"
8707 then :
8708 eval $cacheid=yes
8709 else $as_nop
8710 eval $cacheid=no
8711 fi
8712 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8713 conftest$ac_exeext conftest.$ac_ext
8714 fi
8715
8716
8717 CFLAGS="$xorg_testset_save_CFLAGS"
8718
8719 eval supported=\$$cacheid
8720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8721 printf "%s\n" "$supported" >&6; }
8722 if test "$supported" = "yes" ; then
8723 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8724 found="yes"
8725 fi
8726 fi
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742 xorg_testset_save_CFLAGS="$CFLAGS"
8743
8744 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8747 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8748 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8749 then :
8750 printf %s "(cached) " >&6
8751 else $as_nop
8752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8753 /* end confdefs.h. */
8754 int i;
8755 _ACEOF
8756 if ac_fn_c_try_compile "$LINENO"
8757 then :
8758 xorg_cv_cc_flag_unknown_warning_option=yes
8759 else $as_nop
8760 xorg_cv_cc_flag_unknown_warning_option=no
8761 fi
8762 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8763 fi
8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8765 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8766 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8767 CFLAGS="$xorg_testset_save_CFLAGS"
8768 fi
8769
8770 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8773 fi
8774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8776 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8777 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8778 then :
8779 printf %s "(cached) " >&6
8780 else $as_nop
8781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8782 /* end confdefs.h. */
8783 int i;
8784 _ACEOF
8785 if ac_fn_c_try_compile "$LINENO"
8786 then :
8787 xorg_cv_cc_flag_unused_command_line_argument=yes
8788 else $as_nop
8789 xorg_cv_cc_flag_unused_command_line_argument=no
8790 fi
8791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8792 fi
8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8794 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8795 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8796 CFLAGS="$xorg_testset_save_CFLAGS"
8797 fi
8798
8799 found="no"
8800
8801 if test $found = "no" ; then
8802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8804 fi
8805
8806 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8808 fi
8809
8810 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8811
8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8813 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8814 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8815 if eval test \${$cacheid+y}
8816 then :
8817 printf %s "(cached) " >&6
8818 else $as_nop
8819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8820 /* end confdefs.h. */
8821 int i;
8822 int
8823 main (void)
8824 {
8825
8826 ;
8827 return 0;
8828 }
8829 _ACEOF
8830 if ac_fn_c_try_link "$LINENO"
8831 then :
8832 eval $cacheid=yes
8833 else $as_nop
8834 eval $cacheid=no
8835 fi
8836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8837 conftest$ac_exeext conftest.$ac_ext
8838 fi
8839
8840
8841 CFLAGS="$xorg_testset_save_CFLAGS"
8842
8843 eval supported=\$$cacheid
8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8845 printf "%s\n" "$supported" >&6; }
8846 if test "$supported" = "yes" ; then
8847 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8848 found="yes"
8849 fi
8850 fi
8851
8852 if test $found = "no" ; then
8853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8855 fi
8856
8857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8859 fi
8860
8861 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8862
8863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8864 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8865 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8866 if eval test \${$cacheid+y}
8867 then :
8868 printf %s "(cached) " >&6
8869 else $as_nop
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 int i;
8873 int
8874 main (void)
8875 {
8876
8877 ;
8878 return 0;
8879 }
8880 _ACEOF
8881 if ac_fn_c_try_link "$LINENO"
8882 then :
8883 eval $cacheid=yes
8884 else $as_nop
8885 eval $cacheid=no
8886 fi
8887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8888 conftest$ac_exeext conftest.$ac_ext
8889 fi
8890
8891
8892 CFLAGS="$xorg_testset_save_CFLAGS"
8893
8894 eval supported=\$$cacheid
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8896 printf "%s\n" "$supported" >&6; }
8897 if test "$supported" = "yes" ; then
8898 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8899 found="yes"
8900 fi
8901 fi
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917 xorg_testset_save_CFLAGS="$CFLAGS"
8918
8919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8922 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8923 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8924 then :
8925 printf %s "(cached) " >&6
8926 else $as_nop
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929 int i;
8930 _ACEOF
8931 if ac_fn_c_try_compile "$LINENO"
8932 then :
8933 xorg_cv_cc_flag_unknown_warning_option=yes
8934 else $as_nop
8935 xorg_cv_cc_flag_unknown_warning_option=no
8936 fi
8937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8938 fi
8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8940 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8942 CFLAGS="$xorg_testset_save_CFLAGS"
8943 fi
8944
8945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8948 fi
8949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8951 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8952 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8953 then :
8954 printf %s "(cached) " >&6
8955 else $as_nop
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8957 /* end confdefs.h. */
8958 int i;
8959 _ACEOF
8960 if ac_fn_c_try_compile "$LINENO"
8961 then :
8962 xorg_cv_cc_flag_unused_command_line_argument=yes
8963 else $as_nop
8964 xorg_cv_cc_flag_unused_command_line_argument=no
8965 fi
8966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8967 fi
8968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8969 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8971 CFLAGS="$xorg_testset_save_CFLAGS"
8972 fi
8973
8974 found="no"
8975
8976 if test $found = "no" ; then
8977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8979 fi
8980
8981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8983 fi
8984
8985 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8986
8987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8988 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8989 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8990 if eval test \${$cacheid+y}
8991 then :
8992 printf %s "(cached) " >&6
8993 else $as_nop
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996 int i;
8997 int
8998 main (void)
8999 {
9000
9001 ;
9002 return 0;
9003 }
9004 _ACEOF
9005 if ac_fn_c_try_link "$LINENO"
9006 then :
9007 eval $cacheid=yes
9008 else $as_nop
9009 eval $cacheid=no
9010 fi
9011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9012 conftest$ac_exeext conftest.$ac_ext
9013 fi
9014
9015
9016 CFLAGS="$xorg_testset_save_CFLAGS"
9017
9018 eval supported=\$$cacheid
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9020 printf "%s\n" "$supported" >&6; }
9021 if test "$supported" = "yes" ; then
9022 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9023 found="yes"
9024 fi
9025 fi
9026
9027 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9028 else
9029 { 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
9030 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;}
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044 xorg_testset_save_CFLAGS="$CFLAGS"
9045
9046 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9049 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9050 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9051 then :
9052 printf %s "(cached) " >&6
9053 else $as_nop
9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9055 /* end confdefs.h. */
9056 int i;
9057 _ACEOF
9058 if ac_fn_c_try_compile "$LINENO"
9059 then :
9060 xorg_cv_cc_flag_unknown_warning_option=yes
9061 else $as_nop
9062 xorg_cv_cc_flag_unknown_warning_option=no
9063 fi
9064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9065 fi
9066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9067 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9069 CFLAGS="$xorg_testset_save_CFLAGS"
9070 fi
9071
9072 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075 fi
9076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9078 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9079 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9080 then :
9081 printf %s "(cached) " >&6
9082 else $as_nop
9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9085 int i;
9086 _ACEOF
9087 if ac_fn_c_try_compile "$LINENO"
9088 then :
9089 xorg_cv_cc_flag_unused_command_line_argument=yes
9090 else $as_nop
9091 xorg_cv_cc_flag_unused_command_line_argument=no
9092 fi
9093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9094 fi
9095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9096 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9097 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9098 CFLAGS="$xorg_testset_save_CFLAGS"
9099 fi
9100
9101 found="no"
9102
9103 if test $found = "no" ; then
9104 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9106 fi
9107
9108 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9109 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9110 fi
9111
9112 CFLAGS="$CFLAGS -Wimplicit"
9113
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9115 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9116 cacheid=xorg_cv_cc_flag__Wimplicit
9117 if eval test \${$cacheid+y}
9118 then :
9119 printf %s "(cached) " >&6
9120 else $as_nop
9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122 /* end confdefs.h. */
9123 int i;
9124 int
9125 main (void)
9126 {
9127
9128 ;
9129 return 0;
9130 }
9131 _ACEOF
9132 if ac_fn_c_try_link "$LINENO"
9133 then :
9134 eval $cacheid=yes
9135 else $as_nop
9136 eval $cacheid=no
9137 fi
9138 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9139 conftest$ac_exeext conftest.$ac_ext
9140 fi
9141
9142
9143 CFLAGS="$xorg_testset_save_CFLAGS"
9144
9145 eval supported=\$$cacheid
9146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9147 printf "%s\n" "$supported" >&6; }
9148 if test "$supported" = "yes" ; then
9149 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9150 found="yes"
9151 fi
9152 fi
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168 xorg_testset_save_CFLAGS="$CFLAGS"
9169
9170 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9173 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9174 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9175 then :
9176 printf %s "(cached) " >&6
9177 else $as_nop
9178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9179 /* end confdefs.h. */
9180 int i;
9181 _ACEOF
9182 if ac_fn_c_try_compile "$LINENO"
9183 then :
9184 xorg_cv_cc_flag_unknown_warning_option=yes
9185 else $as_nop
9186 xorg_cv_cc_flag_unknown_warning_option=no
9187 fi
9188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9189 fi
9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9191 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9192 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9193 CFLAGS="$xorg_testset_save_CFLAGS"
9194 fi
9195
9196 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9199 fi
9200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9202 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9203 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9204 then :
9205 printf %s "(cached) " >&6
9206 else $as_nop
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9209 int i;
9210 _ACEOF
9211 if ac_fn_c_try_compile "$LINENO"
9212 then :
9213 xorg_cv_cc_flag_unused_command_line_argument=yes
9214 else $as_nop
9215 xorg_cv_cc_flag_unused_command_line_argument=no
9216 fi
9217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9218 fi
9219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9220 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9221 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9222 CFLAGS="$xorg_testset_save_CFLAGS"
9223 fi
9224
9225 found="no"
9226
9227 if test $found = "no" ; then
9228 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9229 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9230 fi
9231
9232 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9234 fi
9235
9236 CFLAGS="$CFLAGS -Wnonnull"
9237
9238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9239 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9240 cacheid=xorg_cv_cc_flag__Wnonnull
9241 if eval test \${$cacheid+y}
9242 then :
9243 printf %s "(cached) " >&6
9244 else $as_nop
9245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h. */
9247 int i;
9248 int
9249 main (void)
9250 {
9251
9252 ;
9253 return 0;
9254 }
9255 _ACEOF
9256 if ac_fn_c_try_link "$LINENO"
9257 then :
9258 eval $cacheid=yes
9259 else $as_nop
9260 eval $cacheid=no
9261 fi
9262 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9263 conftest$ac_exeext conftest.$ac_ext
9264 fi
9265
9266
9267 CFLAGS="$xorg_testset_save_CFLAGS"
9268
9269 eval supported=\$$cacheid
9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9271 printf "%s\n" "$supported" >&6; }
9272 if test "$supported" = "yes" ; then
9273 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9274 found="yes"
9275 fi
9276 fi
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292 xorg_testset_save_CFLAGS="$CFLAGS"
9293
9294 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9297 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9298 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9299 then :
9300 printf %s "(cached) " >&6
9301 else $as_nop
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303 /* end confdefs.h. */
9304 int i;
9305 _ACEOF
9306 if ac_fn_c_try_compile "$LINENO"
9307 then :
9308 xorg_cv_cc_flag_unknown_warning_option=yes
9309 else $as_nop
9310 xorg_cv_cc_flag_unknown_warning_option=no
9311 fi
9312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9313 fi
9314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9315 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9316 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9317 CFLAGS="$xorg_testset_save_CFLAGS"
9318 fi
9319
9320 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323 fi
9324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9326 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9327 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9328 then :
9329 printf %s "(cached) " >&6
9330 else $as_nop
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9333 int i;
9334 _ACEOF
9335 if ac_fn_c_try_compile "$LINENO"
9336 then :
9337 xorg_cv_cc_flag_unused_command_line_argument=yes
9338 else $as_nop
9339 xorg_cv_cc_flag_unused_command_line_argument=no
9340 fi
9341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9342 fi
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9344 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9345 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9346 CFLAGS="$xorg_testset_save_CFLAGS"
9347 fi
9348
9349 found="no"
9350
9351 if test $found = "no" ; then
9352 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9353 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9354 fi
9355
9356 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9357 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9358 fi
9359
9360 CFLAGS="$CFLAGS -Winit-self"
9361
9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9363 printf %s "checking if $CC supports -Winit-self... " >&6; }
9364 cacheid=xorg_cv_cc_flag__Winit_self
9365 if eval test \${$cacheid+y}
9366 then :
9367 printf %s "(cached) " >&6
9368 else $as_nop
9369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9371 int i;
9372 int
9373 main (void)
9374 {
9375
9376 ;
9377 return 0;
9378 }
9379 _ACEOF
9380 if ac_fn_c_try_link "$LINENO"
9381 then :
9382 eval $cacheid=yes
9383 else $as_nop
9384 eval $cacheid=no
9385 fi
9386 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9387 conftest$ac_exeext conftest.$ac_ext
9388 fi
9389
9390
9391 CFLAGS="$xorg_testset_save_CFLAGS"
9392
9393 eval supported=\$$cacheid
9394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9395 printf "%s\n" "$supported" >&6; }
9396 if test "$supported" = "yes" ; then
9397 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9398 found="yes"
9399 fi
9400 fi
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416 xorg_testset_save_CFLAGS="$CFLAGS"
9417
9418 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9419 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9421 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9422 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9423 then :
9424 printf %s "(cached) " >&6
9425 else $as_nop
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427 /* end confdefs.h. */
9428 int i;
9429 _ACEOF
9430 if ac_fn_c_try_compile "$LINENO"
9431 then :
9432 xorg_cv_cc_flag_unknown_warning_option=yes
9433 else $as_nop
9434 xorg_cv_cc_flag_unknown_warning_option=no
9435 fi
9436 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9437 fi
9438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9439 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9440 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9441 CFLAGS="$xorg_testset_save_CFLAGS"
9442 fi
9443
9444 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9447 fi
9448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9450 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9451 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9452 then :
9453 printf %s "(cached) " >&6
9454 else $as_nop
9455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9456 /* end confdefs.h. */
9457 int i;
9458 _ACEOF
9459 if ac_fn_c_try_compile "$LINENO"
9460 then :
9461 xorg_cv_cc_flag_unused_command_line_argument=yes
9462 else $as_nop
9463 xorg_cv_cc_flag_unused_command_line_argument=no
9464 fi
9465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9466 fi
9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9468 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9470 CFLAGS="$xorg_testset_save_CFLAGS"
9471 fi
9472
9473 found="no"
9474
9475 if test $found = "no" ; then
9476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9478 fi
9479
9480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9482 fi
9483
9484 CFLAGS="$CFLAGS -Wmain"
9485
9486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9487 printf %s "checking if $CC supports -Wmain... " >&6; }
9488 cacheid=xorg_cv_cc_flag__Wmain
9489 if eval test \${$cacheid+y}
9490 then :
9491 printf %s "(cached) " >&6
9492 else $as_nop
9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494 /* end confdefs.h. */
9495 int i;
9496 int
9497 main (void)
9498 {
9499
9500 ;
9501 return 0;
9502 }
9503 _ACEOF
9504 if ac_fn_c_try_link "$LINENO"
9505 then :
9506 eval $cacheid=yes
9507 else $as_nop
9508 eval $cacheid=no
9509 fi
9510 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9511 conftest$ac_exeext conftest.$ac_ext
9512 fi
9513
9514
9515 CFLAGS="$xorg_testset_save_CFLAGS"
9516
9517 eval supported=\$$cacheid
9518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9519 printf "%s\n" "$supported" >&6; }
9520 if test "$supported" = "yes" ; then
9521 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9522 found="yes"
9523 fi
9524 fi
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540 xorg_testset_save_CFLAGS="$CFLAGS"
9541
9542 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9545 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9546 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9547 then :
9548 printf %s "(cached) " >&6
9549 else $as_nop
9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551 /* end confdefs.h. */
9552 int i;
9553 _ACEOF
9554 if ac_fn_c_try_compile "$LINENO"
9555 then :
9556 xorg_cv_cc_flag_unknown_warning_option=yes
9557 else $as_nop
9558 xorg_cv_cc_flag_unknown_warning_option=no
9559 fi
9560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9561 fi
9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9563 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9564 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9565 CFLAGS="$xorg_testset_save_CFLAGS"
9566 fi
9567
9568 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9571 fi
9572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9574 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9575 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9576 then :
9577 printf %s "(cached) " >&6
9578 else $as_nop
9579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9580 /* end confdefs.h. */
9581 int i;
9582 _ACEOF
9583 if ac_fn_c_try_compile "$LINENO"
9584 then :
9585 xorg_cv_cc_flag_unused_command_line_argument=yes
9586 else $as_nop
9587 xorg_cv_cc_flag_unused_command_line_argument=no
9588 fi
9589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9590 fi
9591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9592 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9593 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9594 CFLAGS="$xorg_testset_save_CFLAGS"
9595 fi
9596
9597 found="no"
9598
9599 if test $found = "no" ; then
9600 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9601 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9602 fi
9603
9604 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9605 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9606 fi
9607
9608 CFLAGS="$CFLAGS -Wmissing-braces"
9609
9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9611 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9612 cacheid=xorg_cv_cc_flag__Wmissing_braces
9613 if eval test \${$cacheid+y}
9614 then :
9615 printf %s "(cached) " >&6
9616 else $as_nop
9617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9619 int i;
9620 int
9621 main (void)
9622 {
9623
9624 ;
9625 return 0;
9626 }
9627 _ACEOF
9628 if ac_fn_c_try_link "$LINENO"
9629 then :
9630 eval $cacheid=yes
9631 else $as_nop
9632 eval $cacheid=no
9633 fi
9634 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9635 conftest$ac_exeext conftest.$ac_ext
9636 fi
9637
9638
9639 CFLAGS="$xorg_testset_save_CFLAGS"
9640
9641 eval supported=\$$cacheid
9642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9643 printf "%s\n" "$supported" >&6; }
9644 if test "$supported" = "yes" ; then
9645 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9646 found="yes"
9647 fi
9648 fi
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664 xorg_testset_save_CFLAGS="$CFLAGS"
9665
9666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9669 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9670 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9671 then :
9672 printf %s "(cached) " >&6
9673 else $as_nop
9674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9675 /* end confdefs.h. */
9676 int i;
9677 _ACEOF
9678 if ac_fn_c_try_compile "$LINENO"
9679 then :
9680 xorg_cv_cc_flag_unknown_warning_option=yes
9681 else $as_nop
9682 xorg_cv_cc_flag_unknown_warning_option=no
9683 fi
9684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9685 fi
9686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9687 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9689 CFLAGS="$xorg_testset_save_CFLAGS"
9690 fi
9691
9692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695 fi
9696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9698 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9699 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9700 then :
9701 printf %s "(cached) " >&6
9702 else $as_nop
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705 int i;
9706 _ACEOF
9707 if ac_fn_c_try_compile "$LINENO"
9708 then :
9709 xorg_cv_cc_flag_unused_command_line_argument=yes
9710 else $as_nop
9711 xorg_cv_cc_flag_unused_command_line_argument=no
9712 fi
9713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9714 fi
9715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9716 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9718 CFLAGS="$xorg_testset_save_CFLAGS"
9719 fi
9720
9721 found="no"
9722
9723 if test $found = "no" ; then
9724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9726 fi
9727
9728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9730 fi
9731
9732 CFLAGS="$CFLAGS -Wsequence-point"
9733
9734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9735 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9736 cacheid=xorg_cv_cc_flag__Wsequence_point
9737 if eval test \${$cacheid+y}
9738 then :
9739 printf %s "(cached) " >&6
9740 else $as_nop
9741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9742 /* end confdefs.h. */
9743 int i;
9744 int
9745 main (void)
9746 {
9747
9748 ;
9749 return 0;
9750 }
9751 _ACEOF
9752 if ac_fn_c_try_link "$LINENO"
9753 then :
9754 eval $cacheid=yes
9755 else $as_nop
9756 eval $cacheid=no
9757 fi
9758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9759 conftest$ac_exeext conftest.$ac_ext
9760 fi
9761
9762
9763 CFLAGS="$xorg_testset_save_CFLAGS"
9764
9765 eval supported=\$$cacheid
9766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9767 printf "%s\n" "$supported" >&6; }
9768 if test "$supported" = "yes" ; then
9769 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9770 found="yes"
9771 fi
9772 fi
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788 xorg_testset_save_CFLAGS="$CFLAGS"
9789
9790 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9791 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9793 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9794 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9795 then :
9796 printf %s "(cached) " >&6
9797 else $as_nop
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9800 int i;
9801 _ACEOF
9802 if ac_fn_c_try_compile "$LINENO"
9803 then :
9804 xorg_cv_cc_flag_unknown_warning_option=yes
9805 else $as_nop
9806 xorg_cv_cc_flag_unknown_warning_option=no
9807 fi
9808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9809 fi
9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9811 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9813 CFLAGS="$xorg_testset_save_CFLAGS"
9814 fi
9815
9816 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9819 fi
9820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9822 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9823 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9824 then :
9825 printf %s "(cached) " >&6
9826 else $as_nop
9827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9828 /* end confdefs.h. */
9829 int i;
9830 _ACEOF
9831 if ac_fn_c_try_compile "$LINENO"
9832 then :
9833 xorg_cv_cc_flag_unused_command_line_argument=yes
9834 else $as_nop
9835 xorg_cv_cc_flag_unused_command_line_argument=no
9836 fi
9837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9838 fi
9839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9840 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9842 CFLAGS="$xorg_testset_save_CFLAGS"
9843 fi
9844
9845 found="no"
9846
9847 if test $found = "no" ; then
9848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9849 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9850 fi
9851
9852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9854 fi
9855
9856 CFLAGS="$CFLAGS -Wreturn-type"
9857
9858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9859 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9860 cacheid=xorg_cv_cc_flag__Wreturn_type
9861 if eval test \${$cacheid+y}
9862 then :
9863 printf %s "(cached) " >&6
9864 else $as_nop
9865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9866 /* end confdefs.h. */
9867 int i;
9868 int
9869 main (void)
9870 {
9871
9872 ;
9873 return 0;
9874 }
9875 _ACEOF
9876 if ac_fn_c_try_link "$LINENO"
9877 then :
9878 eval $cacheid=yes
9879 else $as_nop
9880 eval $cacheid=no
9881 fi
9882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9883 conftest$ac_exeext conftest.$ac_ext
9884 fi
9885
9886
9887 CFLAGS="$xorg_testset_save_CFLAGS"
9888
9889 eval supported=\$$cacheid
9890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9891 printf "%s\n" "$supported" >&6; }
9892 if test "$supported" = "yes" ; then
9893 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9894 found="yes"
9895 fi
9896 fi
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912 xorg_testset_save_CFLAGS="$CFLAGS"
9913
9914 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9917 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9918 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9919 then :
9920 printf %s "(cached) " >&6
9921 else $as_nop
9922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9923 /* end confdefs.h. */
9924 int i;
9925 _ACEOF
9926 if ac_fn_c_try_compile "$LINENO"
9927 then :
9928 xorg_cv_cc_flag_unknown_warning_option=yes
9929 else $as_nop
9930 xorg_cv_cc_flag_unknown_warning_option=no
9931 fi
9932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9933 fi
9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9935 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9936 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9937 CFLAGS="$xorg_testset_save_CFLAGS"
9938 fi
9939
9940 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9943 fi
9944 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9946 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9947 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9948 then :
9949 printf %s "(cached) " >&6
9950 else $as_nop
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9953 int i;
9954 _ACEOF
9955 if ac_fn_c_try_compile "$LINENO"
9956 then :
9957 xorg_cv_cc_flag_unused_command_line_argument=yes
9958 else $as_nop
9959 xorg_cv_cc_flag_unused_command_line_argument=no
9960 fi
9961 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9962 fi
9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9964 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9965 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9966 CFLAGS="$xorg_testset_save_CFLAGS"
9967 fi
9968
9969 found="no"
9970
9971 if test $found = "no" ; then
9972 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9973 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9974 fi
9975
9976 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9978 fi
9979
9980 CFLAGS="$CFLAGS -Wtrigraphs"
9981
9982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9983 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9984 cacheid=xorg_cv_cc_flag__Wtrigraphs
9985 if eval test \${$cacheid+y}
9986 then :
9987 printf %s "(cached) " >&6
9988 else $as_nop
9989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* end confdefs.h. */
9991 int i;
9992 int
9993 main (void)
9994 {
9995
9996 ;
9997 return 0;
9998 }
9999 _ACEOF
10000 if ac_fn_c_try_link "$LINENO"
10001 then :
10002 eval $cacheid=yes
10003 else $as_nop
10004 eval $cacheid=no
10005 fi
10006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10007 conftest$ac_exeext conftest.$ac_ext
10008 fi
10009
10010
10011 CFLAGS="$xorg_testset_save_CFLAGS"
10012
10013 eval supported=\$$cacheid
10014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10015 printf "%s\n" "$supported" >&6; }
10016 if test "$supported" = "yes" ; then
10017 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10018 found="yes"
10019 fi
10020 fi
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036 xorg_testset_save_CFLAGS="$CFLAGS"
10037
10038 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10039 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10041 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10042 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10043 then :
10044 printf %s "(cached) " >&6
10045 else $as_nop
10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h. */
10048 int i;
10049 _ACEOF
10050 if ac_fn_c_try_compile "$LINENO"
10051 then :
10052 xorg_cv_cc_flag_unknown_warning_option=yes
10053 else $as_nop
10054 xorg_cv_cc_flag_unknown_warning_option=no
10055 fi
10056 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10057 fi
10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10059 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10060 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10061 CFLAGS="$xorg_testset_save_CFLAGS"
10062 fi
10063
10064 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10067 fi
10068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10070 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10071 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10072 then :
10073 printf %s "(cached) " >&6
10074 else $as_nop
10075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10076 /* end confdefs.h. */
10077 int i;
10078 _ACEOF
10079 if ac_fn_c_try_compile "$LINENO"
10080 then :
10081 xorg_cv_cc_flag_unused_command_line_argument=yes
10082 else $as_nop
10083 xorg_cv_cc_flag_unused_command_line_argument=no
10084 fi
10085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10086 fi
10087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10088 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10090 CFLAGS="$xorg_testset_save_CFLAGS"
10091 fi
10092
10093 found="no"
10094
10095 if test $found = "no" ; then
10096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10098 fi
10099
10100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10102 fi
10103
10104 CFLAGS="$CFLAGS -Warray-bounds"
10105
10106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10107 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10108 cacheid=xorg_cv_cc_flag__Warray_bounds
10109 if eval test \${$cacheid+y}
10110 then :
10111 printf %s "(cached) " >&6
10112 else $as_nop
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114 /* end confdefs.h. */
10115 int i;
10116 int
10117 main (void)
10118 {
10119
10120 ;
10121 return 0;
10122 }
10123 _ACEOF
10124 if ac_fn_c_try_link "$LINENO"
10125 then :
10126 eval $cacheid=yes
10127 else $as_nop
10128 eval $cacheid=no
10129 fi
10130 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10131 conftest$ac_exeext conftest.$ac_ext
10132 fi
10133
10134
10135 CFLAGS="$xorg_testset_save_CFLAGS"
10136
10137 eval supported=\$$cacheid
10138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10139 printf "%s\n" "$supported" >&6; }
10140 if test "$supported" = "yes" ; then
10141 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10142 found="yes"
10143 fi
10144 fi
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160 xorg_testset_save_CFLAGS="$CFLAGS"
10161
10162 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10165 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10166 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10167 then :
10168 printf %s "(cached) " >&6
10169 else $as_nop
10170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171 /* end confdefs.h. */
10172 int i;
10173 _ACEOF
10174 if ac_fn_c_try_compile "$LINENO"
10175 then :
10176 xorg_cv_cc_flag_unknown_warning_option=yes
10177 else $as_nop
10178 xorg_cv_cc_flag_unknown_warning_option=no
10179 fi
10180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10181 fi
10182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10183 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10185 CFLAGS="$xorg_testset_save_CFLAGS"
10186 fi
10187
10188 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10191 fi
10192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10194 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10195 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10196 then :
10197 printf %s "(cached) " >&6
10198 else $as_nop
10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10200 /* end confdefs.h. */
10201 int i;
10202 _ACEOF
10203 if ac_fn_c_try_compile "$LINENO"
10204 then :
10205 xorg_cv_cc_flag_unused_command_line_argument=yes
10206 else $as_nop
10207 xorg_cv_cc_flag_unused_command_line_argument=no
10208 fi
10209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10210 fi
10211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10212 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10214 CFLAGS="$xorg_testset_save_CFLAGS"
10215 fi
10216
10217 found="no"
10218
10219 if test $found = "no" ; then
10220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10222 fi
10223
10224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10226 fi
10227
10228 CFLAGS="$CFLAGS -Wwrite-strings"
10229
10230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10231 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10232 cacheid=xorg_cv_cc_flag__Wwrite_strings
10233 if eval test \${$cacheid+y}
10234 then :
10235 printf %s "(cached) " >&6
10236 else $as_nop
10237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10238 /* end confdefs.h. */
10239 int i;
10240 int
10241 main (void)
10242 {
10243
10244 ;
10245 return 0;
10246 }
10247 _ACEOF
10248 if ac_fn_c_try_link "$LINENO"
10249 then :
10250 eval $cacheid=yes
10251 else $as_nop
10252 eval $cacheid=no
10253 fi
10254 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10255 conftest$ac_exeext conftest.$ac_ext
10256 fi
10257
10258
10259 CFLAGS="$xorg_testset_save_CFLAGS"
10260
10261 eval supported=\$$cacheid
10262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10263 printf "%s\n" "$supported" >&6; }
10264 if test "$supported" = "yes" ; then
10265 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10266 found="yes"
10267 fi
10268 fi
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284 xorg_testset_save_CFLAGS="$CFLAGS"
10285
10286 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10287 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10289 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10290 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10291 then :
10292 printf %s "(cached) " >&6
10293 else $as_nop
10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10296 int i;
10297 _ACEOF
10298 if ac_fn_c_try_compile "$LINENO"
10299 then :
10300 xorg_cv_cc_flag_unknown_warning_option=yes
10301 else $as_nop
10302 xorg_cv_cc_flag_unknown_warning_option=no
10303 fi
10304 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10305 fi
10306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10307 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10309 CFLAGS="$xorg_testset_save_CFLAGS"
10310 fi
10311
10312 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10315 fi
10316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10318 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10319 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10320 then :
10321 printf %s "(cached) " >&6
10322 else $as_nop
10323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h. */
10325 int i;
10326 _ACEOF
10327 if ac_fn_c_try_compile "$LINENO"
10328 then :
10329 xorg_cv_cc_flag_unused_command_line_argument=yes
10330 else $as_nop
10331 xorg_cv_cc_flag_unused_command_line_argument=no
10332 fi
10333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10334 fi
10335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10336 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10337 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10338 CFLAGS="$xorg_testset_save_CFLAGS"
10339 fi
10340
10341 found="no"
10342
10343 if test $found = "no" ; then
10344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10345 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10346 fi
10347
10348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10350 fi
10351
10352 CFLAGS="$CFLAGS -Waddress"
10353
10354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10355 printf %s "checking if $CC supports -Waddress... " >&6; }
10356 cacheid=xorg_cv_cc_flag__Waddress
10357 if eval test \${$cacheid+y}
10358 then :
10359 printf %s "(cached) " >&6
10360 else $as_nop
10361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10362 /* end confdefs.h. */
10363 int i;
10364 int
10365 main (void)
10366 {
10367
10368 ;
10369 return 0;
10370 }
10371 _ACEOF
10372 if ac_fn_c_try_link "$LINENO"
10373 then :
10374 eval $cacheid=yes
10375 else $as_nop
10376 eval $cacheid=no
10377 fi
10378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10379 conftest$ac_exeext conftest.$ac_ext
10380 fi
10381
10382
10383 CFLAGS="$xorg_testset_save_CFLAGS"
10384
10385 eval supported=\$$cacheid
10386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10387 printf "%s\n" "$supported" >&6; }
10388 if test "$supported" = "yes" ; then
10389 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10390 found="yes"
10391 fi
10392 fi
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408 xorg_testset_save_CFLAGS="$CFLAGS"
10409
10410 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10411 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10413 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10414 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10415 then :
10416 printf %s "(cached) " >&6
10417 else $as_nop
10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10419 /* end confdefs.h. */
10420 int i;
10421 _ACEOF
10422 if ac_fn_c_try_compile "$LINENO"
10423 then :
10424 xorg_cv_cc_flag_unknown_warning_option=yes
10425 else $as_nop
10426 xorg_cv_cc_flag_unknown_warning_option=no
10427 fi
10428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10429 fi
10430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10431 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10433 CFLAGS="$xorg_testset_save_CFLAGS"
10434 fi
10435
10436 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10439 fi
10440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10442 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10443 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10444 then :
10445 printf %s "(cached) " >&6
10446 else $as_nop
10447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10448 /* end confdefs.h. */
10449 int i;
10450 _ACEOF
10451 if ac_fn_c_try_compile "$LINENO"
10452 then :
10453 xorg_cv_cc_flag_unused_command_line_argument=yes
10454 else $as_nop
10455 xorg_cv_cc_flag_unused_command_line_argument=no
10456 fi
10457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10458 fi
10459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10460 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10461 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10462 CFLAGS="$xorg_testset_save_CFLAGS"
10463 fi
10464
10465 found="no"
10466
10467 if test $found = "no" ; then
10468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10470 fi
10471
10472 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10474 fi
10475
10476 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10477
10478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10479 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10480 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10481 if eval test \${$cacheid+y}
10482 then :
10483 printf %s "(cached) " >&6
10484 else $as_nop
10485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10486 /* end confdefs.h. */
10487 int i;
10488 int
10489 main (void)
10490 {
10491
10492 ;
10493 return 0;
10494 }
10495 _ACEOF
10496 if ac_fn_c_try_link "$LINENO"
10497 then :
10498 eval $cacheid=yes
10499 else $as_nop
10500 eval $cacheid=no
10501 fi
10502 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10503 conftest$ac_exeext conftest.$ac_ext
10504 fi
10505
10506
10507 CFLAGS="$xorg_testset_save_CFLAGS"
10508
10509 eval supported=\$$cacheid
10510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10511 printf "%s\n" "$supported" >&6; }
10512 if test "$supported" = "yes" ; then
10513 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10514 found="yes"
10515 fi
10516 fi
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532 xorg_testset_save_CFLAGS="$CFLAGS"
10533
10534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10537 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10538 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10539 then :
10540 printf %s "(cached) " >&6
10541 else $as_nop
10542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h. */
10544 int i;
10545 _ACEOF
10546 if ac_fn_c_try_compile "$LINENO"
10547 then :
10548 xorg_cv_cc_flag_unknown_warning_option=yes
10549 else $as_nop
10550 xorg_cv_cc_flag_unknown_warning_option=no
10551 fi
10552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10553 fi
10554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10555 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10557 CFLAGS="$xorg_testset_save_CFLAGS"
10558 fi
10559
10560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10563 fi
10564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10566 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10567 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10568 then :
10569 printf %s "(cached) " >&6
10570 else $as_nop
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10572 /* end confdefs.h. */
10573 int i;
10574 _ACEOF
10575 if ac_fn_c_try_compile "$LINENO"
10576 then :
10577 xorg_cv_cc_flag_unused_command_line_argument=yes
10578 else $as_nop
10579 xorg_cv_cc_flag_unused_command_line_argument=no
10580 fi
10581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10582 fi
10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10584 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10585 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10586 CFLAGS="$xorg_testset_save_CFLAGS"
10587 fi
10588
10589 found="no"
10590
10591 if test $found = "no" ; then
10592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10593 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10594 fi
10595
10596 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10598 fi
10599
10600 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10601
10602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10603 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10604 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10605 if eval test \${$cacheid+y}
10606 then :
10607 printf %s "(cached) " >&6
10608 else $as_nop
10609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611 int i;
10612 int
10613 main (void)
10614 {
10615
10616 ;
10617 return 0;
10618 }
10619 _ACEOF
10620 if ac_fn_c_try_link "$LINENO"
10621 then :
10622 eval $cacheid=yes
10623 else $as_nop
10624 eval $cacheid=no
10625 fi
10626 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10627 conftest$ac_exeext conftest.$ac_ext
10628 fi
10629
10630
10631 CFLAGS="$xorg_testset_save_CFLAGS"
10632
10633 eval supported=\$$cacheid
10634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10635 printf "%s\n" "$supported" >&6; }
10636 if test "$supported" = "yes" ; then
10637 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10638 found="yes"
10639 fi
10640 fi
10641
10642
10643 fi
10644
10645
10646
10647
10648
10649
10650
10651 CWARNFLAGS="$BASE_CFLAGS"
10652 if test "x$GCC" = xyes ; then
10653 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10654 fi
10655
10656
10657
10658
10659
10660
10661
10662
10663 # Check whether --enable-strict-compilation was given.
10664 if test ${enable_strict_compilation+y}
10665 then :
10666 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10667 else $as_nop
10668 STRICT_COMPILE=no
10669 fi
10670
10671
10672
10673
10674
10675
10676 STRICT_CFLAGS=""
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690 xorg_testset_save_CFLAGS="$CFLAGS"
10691
10692 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10695 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10696 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10697 then :
10698 printf %s "(cached) " >&6
10699 else $as_nop
10700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10702 int i;
10703 _ACEOF
10704 if ac_fn_c_try_compile "$LINENO"
10705 then :
10706 xorg_cv_cc_flag_unknown_warning_option=yes
10707 else $as_nop
10708 xorg_cv_cc_flag_unknown_warning_option=no
10709 fi
10710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10711 fi
10712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10713 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10715 CFLAGS="$xorg_testset_save_CFLAGS"
10716 fi
10717
10718 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10721 fi
10722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10724 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10725 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10726 then :
10727 printf %s "(cached) " >&6
10728 else $as_nop
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10731 int i;
10732 _ACEOF
10733 if ac_fn_c_try_compile "$LINENO"
10734 then :
10735 xorg_cv_cc_flag_unused_command_line_argument=yes
10736 else $as_nop
10737 xorg_cv_cc_flag_unused_command_line_argument=no
10738 fi
10739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10740 fi
10741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10742 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10744 CFLAGS="$xorg_testset_save_CFLAGS"
10745 fi
10746
10747 found="no"
10748
10749 if test $found = "no" ; then
10750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10752 fi
10753
10754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10756 fi
10757
10758 CFLAGS="$CFLAGS -pedantic"
10759
10760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10761 printf %s "checking if $CC supports -pedantic... " >&6; }
10762 cacheid=xorg_cv_cc_flag__pedantic
10763 if eval test \${$cacheid+y}
10764 then :
10765 printf %s "(cached) " >&6
10766 else $as_nop
10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768 /* end confdefs.h. */
10769 int i;
10770 int
10771 main (void)
10772 {
10773
10774 ;
10775 return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"
10779 then :
10780 eval $cacheid=yes
10781 else $as_nop
10782 eval $cacheid=no
10783 fi
10784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10785 conftest$ac_exeext conftest.$ac_ext
10786 fi
10787
10788
10789 CFLAGS="$xorg_testset_save_CFLAGS"
10790
10791 eval supported=\$$cacheid
10792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10793 printf "%s\n" "$supported" >&6; }
10794 if test "$supported" = "yes" ; then
10795 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10796 found="yes"
10797 fi
10798 fi
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814 xorg_testset_save_CFLAGS="$CFLAGS"
10815
10816 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10819 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10820 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10821 then :
10822 printf %s "(cached) " >&6
10823 else $as_nop
10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h. */
10826 int i;
10827 _ACEOF
10828 if ac_fn_c_try_compile "$LINENO"
10829 then :
10830 xorg_cv_cc_flag_unknown_warning_option=yes
10831 else $as_nop
10832 xorg_cv_cc_flag_unknown_warning_option=no
10833 fi
10834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10835 fi
10836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10837 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10839 CFLAGS="$xorg_testset_save_CFLAGS"
10840 fi
10841
10842 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10845 fi
10846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10848 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10849 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10850 then :
10851 printf %s "(cached) " >&6
10852 else $as_nop
10853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10854 /* end confdefs.h. */
10855 int i;
10856 _ACEOF
10857 if ac_fn_c_try_compile "$LINENO"
10858 then :
10859 xorg_cv_cc_flag_unused_command_line_argument=yes
10860 else $as_nop
10861 xorg_cv_cc_flag_unused_command_line_argument=no
10862 fi
10863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10864 fi
10865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10866 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10868 CFLAGS="$xorg_testset_save_CFLAGS"
10869 fi
10870
10871 found="no"
10872
10873 if test $found = "no" ; then
10874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10876 fi
10877
10878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10880 fi
10881
10882 CFLAGS="$CFLAGS -Werror"
10883
10884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10885 printf %s "checking if $CC supports -Werror... " >&6; }
10886 cacheid=xorg_cv_cc_flag__Werror
10887 if eval test \${$cacheid+y}
10888 then :
10889 printf %s "(cached) " >&6
10890 else $as_nop
10891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10892 /* end confdefs.h. */
10893 int i;
10894 int
10895 main (void)
10896 {
10897
10898 ;
10899 return 0;
10900 }
10901 _ACEOF
10902 if ac_fn_c_try_link "$LINENO"
10903 then :
10904 eval $cacheid=yes
10905 else $as_nop
10906 eval $cacheid=no
10907 fi
10908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10909 conftest$ac_exeext conftest.$ac_ext
10910 fi
10911
10912
10913 CFLAGS="$xorg_testset_save_CFLAGS"
10914
10915 eval supported=\$$cacheid
10916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10917 printf "%s\n" "$supported" >&6; }
10918 if test "$supported" = "yes" ; then
10919 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10920 found="yes"
10921 fi
10922 fi
10923
10924 if test $found = "no" ; then
10925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10927 fi
10928
10929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10931 fi
10932
10933 CFLAGS="$CFLAGS -errwarn"
10934
10935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10936 printf %s "checking if $CC supports -errwarn... " >&6; }
10937 cacheid=xorg_cv_cc_flag__errwarn
10938 if eval test \${$cacheid+y}
10939 then :
10940 printf %s "(cached) " >&6
10941 else $as_nop
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10944 int i;
10945 int
10946 main (void)
10947 {
10948
10949 ;
10950 return 0;
10951 }
10952 _ACEOF
10953 if ac_fn_c_try_link "$LINENO"
10954 then :
10955 eval $cacheid=yes
10956 else $as_nop
10957 eval $cacheid=no
10958 fi
10959 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10960 conftest$ac_exeext conftest.$ac_ext
10961 fi
10962
10963
10964 CFLAGS="$xorg_testset_save_CFLAGS"
10965
10966 eval supported=\$$cacheid
10967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10968 printf "%s\n" "$supported" >&6; }
10969 if test "$supported" = "yes" ; then
10970 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10971 found="yes"
10972 fi
10973 fi
10974
10975
10976
10977 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10978 # activate it with -Werror, so we add it here explicitly.
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992 xorg_testset_save_CFLAGS="$CFLAGS"
10993
10994 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10997 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10998 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10999 then :
11000 printf %s "(cached) " >&6
11001 else $as_nop
11002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003 /* end confdefs.h. */
11004 int i;
11005 _ACEOF
11006 if ac_fn_c_try_compile "$LINENO"
11007 then :
11008 xorg_cv_cc_flag_unknown_warning_option=yes
11009 else $as_nop
11010 xorg_cv_cc_flag_unknown_warning_option=no
11011 fi
11012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11013 fi
11014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11015 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11016 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11017 CFLAGS="$xorg_testset_save_CFLAGS"
11018 fi
11019
11020 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11023 fi
11024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11026 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11027 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11028 then :
11029 printf %s "(cached) " >&6
11030 else $as_nop
11031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11032 /* end confdefs.h. */
11033 int i;
11034 _ACEOF
11035 if ac_fn_c_try_compile "$LINENO"
11036 then :
11037 xorg_cv_cc_flag_unused_command_line_argument=yes
11038 else $as_nop
11039 xorg_cv_cc_flag_unused_command_line_argument=no
11040 fi
11041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11042 fi
11043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11044 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11046 CFLAGS="$xorg_testset_save_CFLAGS"
11047 fi
11048
11049 found="no"
11050
11051 if test $found = "no" ; then
11052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11054 fi
11055
11056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11058 fi
11059
11060 CFLAGS="$CFLAGS -Werror=attributes"
11061
11062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11063 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11064 cacheid=xorg_cv_cc_flag__Werror_attributes
11065 if eval test \${$cacheid+y}
11066 then :
11067 printf %s "(cached) " >&6
11068 else $as_nop
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11071 int i;
11072 int
11073 main (void)
11074 {
11075
11076 ;
11077 return 0;
11078 }
11079 _ACEOF
11080 if ac_fn_c_try_link "$LINENO"
11081 then :
11082 eval $cacheid=yes
11083 else $as_nop
11084 eval $cacheid=no
11085 fi
11086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11087 conftest$ac_exeext conftest.$ac_ext
11088 fi
11089
11090
11091 CFLAGS="$xorg_testset_save_CFLAGS"
11092
11093 eval supported=\$$cacheid
11094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11095 printf "%s\n" "$supported" >&6; }
11096 if test "$supported" = "yes" ; then
11097 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11098 found="yes"
11099 fi
11100 fi
11101
11102
11103
11104 if test "x$STRICT_COMPILE" = "xyes"; then
11105 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11106 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11107 fi
11108
11109
11110
11111
11112
11113
11114 cat >>confdefs.h <<_ACEOF
11115 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11116 _ACEOF
11117
11118 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11119 if test "x$PVM" = "x"; then
11120 PVM="0"
11121 fi
11122
11123 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11124
11125 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11126 if test "x$PVP" = "x"; then
11127 PVP="0"
11128 fi
11129
11130 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11131
11132
11133
11134 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11135 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11136 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11137 touch \$(top_srcdir)/ChangeLog; \
11138 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11139
11140
11141
11142
11143 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11144 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11145 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11146 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11147 touch \$(top_srcdir)/INSTALL; \
11148 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11149
11150
11151
11152
11153
11154
11155 case $host_os in
11156 solaris*)
11157 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11158 # check for a man page file found in later versions that use
11159 # traditional section numbers instead
11160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11161 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11162 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11163 then :
11164 printf %s "(cached) " >&6
11165 else $as_nop
11166 test "$cross_compiling" = yes &&
11167 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11168 if test -r "/usr/share/man/man7/attributes.7"; then
11169 ac_cv_file__usr_share_man_man7_attributes_7=yes
11170 else
11171 ac_cv_file__usr_share_man_man7_attributes_7=no
11172 fi
11173 fi
11174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11175 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11176 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11177 then :
11178 SYSV_MAN_SECTIONS=false
11179 else $as_nop
11180 SYSV_MAN_SECTIONS=true
11181 fi
11182
11183 ;;
11184 *) SYSV_MAN_SECTIONS=false ;;
11185 esac
11186
11187 if test x$APP_MAN_SUFFIX = x ; then
11188 APP_MAN_SUFFIX=1
11189 fi
11190 if test x$APP_MAN_DIR = x ; then
11191 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11192 fi
11193
11194 if test x$LIB_MAN_SUFFIX = x ; then
11195 LIB_MAN_SUFFIX=3
11196 fi
11197 if test x$LIB_MAN_DIR = x ; then
11198 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11199 fi
11200
11201 if test x$FILE_MAN_SUFFIX = x ; then
11202 case $SYSV_MAN_SECTIONS in
11203 true) FILE_MAN_SUFFIX=4 ;;
11204 *) FILE_MAN_SUFFIX=5 ;;
11205 esac
11206 fi
11207 if test x$FILE_MAN_DIR = x ; then
11208 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11209 fi
11210
11211 if test x$MISC_MAN_SUFFIX = x ; then
11212 case $SYSV_MAN_SECTIONS in
11213 true) MISC_MAN_SUFFIX=5 ;;
11214 *) MISC_MAN_SUFFIX=7 ;;
11215 esac
11216 fi
11217 if test x$MISC_MAN_DIR = x ; then
11218 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11219 fi
11220
11221 if test x$DRIVER_MAN_SUFFIX = x ; then
11222 case $SYSV_MAN_SECTIONS in
11223 true) DRIVER_MAN_SUFFIX=7 ;;
11224 *) DRIVER_MAN_SUFFIX=4 ;;
11225 esac
11226 fi
11227 if test x$DRIVER_MAN_DIR = x ; then
11228 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11229 fi
11230
11231 if test x$ADMIN_MAN_SUFFIX = x ; then
11232 case $SYSV_MAN_SECTIONS in
11233 true) ADMIN_MAN_SUFFIX=1m ;;
11234 *) ADMIN_MAN_SUFFIX=8 ;;
11235 esac
11236 fi
11237 if test x$ADMIN_MAN_DIR = x ; then
11238 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11239 fi
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255 XORG_MAN_PAGE="X Version 11"
11256
11257 MAN_SUBSTS="\
11258 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11259 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11260 -e 's|__xservername__|Xorg|g' \
11261 -e 's|__xconfigfile__|xorg.conf|g' \
11262 -e 's|__projectroot__|\$(prefix)|g' \
11263 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11264 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11265 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11266 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11267 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11268 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11269 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11270
11271
11272
11273 # Check whether --enable-silent-rules was given.
11274 if test ${enable_silent_rules+y}
11275 then :
11276 enableval=$enable_silent_rules;
11277 fi
11278
11279 case $enable_silent_rules in # (((
11280 yes) AM_DEFAULT_VERBOSITY=0;;
11281 no) AM_DEFAULT_VERBOSITY=1;;
11282 *) AM_DEFAULT_VERBOSITY=0;;
11283 esac
11284 am_make=${MAKE-make}
11285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11286 printf %s "checking whether $am_make supports nested variables... " >&6; }
11287 if test ${am_cv_make_support_nested_variables+y}
11288 then :
11289 printf %s "(cached) " >&6
11290 else $as_nop
11291 if printf "%s\n" 'TRUE=$(BAR$(V))
11292 BAR0=false
11293 BAR1=true
11294 V=1
11295 am__doit:
11296 @$(TRUE)
11297 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11298 am_cv_make_support_nested_variables=yes
11299 else
11300 am_cv_make_support_nested_variables=no
11301 fi
11302 fi
11303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11304 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11305 if test $am_cv_make_support_nested_variables = yes; then
11306 AM_V='$(V)'
11307 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11308 else
11309 AM_V=$AM_DEFAULT_VERBOSITY
11310 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11311 fi
11312 AM_BACKSLASH='\'
11313
11314
11315
11316 for ac_prog in 'bison -y' byacc
11317 do
11318 # Extract the first word of "$ac_prog", so it can be a program name with args.
11319 set dummy $ac_prog; ac_word=$2
11320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321 printf %s "checking for $ac_word... " >&6; }
11322 if test ${ac_cv_prog_YACC+y}
11323 then :
11324 printf %s "(cached) " >&6
11325 else $as_nop
11326 if test -n "$YACC"; then
11327 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11328 else
11329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11330 for as_dir in $PATH
11331 do
11332 IFS=$as_save_IFS
11333 case $as_dir in #(((
11334 '') as_dir=./ ;;
11335 */) ;;
11336 *) as_dir=$as_dir/ ;;
11337 esac
11338 for ac_exec_ext in '' $ac_executable_extensions; do
11339 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11340 ac_cv_prog_YACC="$ac_prog"
11341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11342 break 2
11343 fi
11344 done
11345 done
11346 IFS=$as_save_IFS
11347
11348 fi
11349 fi
11350 YACC=$ac_cv_prog_YACC
11351 if test -n "$YACC"; then
11352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
11353 printf "%s\n" "$YACC" >&6; }
11354 else
11355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 printf "%s\n" "no" >&6; }
11357 fi
11358
11359
11360 test -n "$YACC" && break
11361 done
11362 test -n "$YACC" || YACC="yacc"
11363
11364 # Extract the first word of "$YACC", so it can be a program name with args.
11365 set dummy $YACC; ac_word=$2
11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11367 printf %s "checking for $ac_word... " >&6; }
11368 if test ${ac_cv_path_YACC_INST+y}
11369 then :
11370 printf %s "(cached) " >&6
11371 else $as_nop
11372 case $YACC_INST in
11373 [\\/]* | ?:[\\/]*)
11374 ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path.
11375 ;;
11376 *)
11377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378 for as_dir in $PATH
11379 do
11380 IFS=$as_save_IFS
11381 case $as_dir in #(((
11382 '') as_dir=./ ;;
11383 */) ;;
11384 *) as_dir=$as_dir/ ;;
11385 esac
11386 for ac_exec_ext in '' $ac_executable_extensions; do
11387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11388 ac_cv_path_YACC_INST="$as_dir$ac_word$ac_exec_ext"
11389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11390 break 2
11391 fi
11392 done
11393 done
11394 IFS=$as_save_IFS
11395
11396 ;;
11397 esac
11398 fi
11399 YACC_INST=$ac_cv_path_YACC_INST
11400 if test -n "$YACC_INST"; then
11401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5
11402 printf "%s\n" "$YACC_INST" >&6; }
11403 else
11404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 printf "%s\n" "no" >&6; }
11406 fi
11407
11408
11409 if test ! -f "$srcdir/gram.c"; then
11410 if test -z "$YACC_INST"; then
11411 as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5
11412 fi
11413 fi
11414 for ac_prog in flex lex
11415 do
11416 # Extract the first word of "$ac_prog", so it can be a program name with args.
11417 set dummy $ac_prog; ac_word=$2
11418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11419 printf %s "checking for $ac_word... " >&6; }
11420 if test ${ac_cv_prog_LEX+y}
11421 then :
11422 printf %s "(cached) " >&6
11423 else $as_nop
11424 if test -n "$LEX"; then
11425 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11426 else
11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428 for as_dir in $PATH
11429 do
11430 IFS=$as_save_IFS
11431 case $as_dir in #(((
11432 '') as_dir=./ ;;
11433 */) ;;
11434 *) as_dir=$as_dir/ ;;
11435 esac
11436 for ac_exec_ext in '' $ac_executable_extensions; do
11437 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11438 ac_cv_prog_LEX="$ac_prog"
11439 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11440 break 2
11441 fi
11442 done
11443 done
11444 IFS=$as_save_IFS
11445
11446 fi
11447 fi
11448 LEX=$ac_cv_prog_LEX
11449 if test -n "$LEX"; then
11450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
11451 printf "%s\n" "$LEX" >&6; }
11452 else
11453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11454 printf "%s\n" "no" >&6; }
11455 fi
11456
11457
11458 test -n "$LEX" && break
11459 done
11460 test -n "$LEX" || LEX=":"
11461
11462 if test "x$LEX" != "x:"; then
11463 cat >conftest.l <<_ACEOF
11464 %{
11465 #ifdef __cplusplus
11466 extern "C"
11467 #endif
11468 int yywrap(void);
11469 %}
11470 %%
11471 a { ECHO; }
11472 b { REJECT; }
11473 c { yymore (); }
11474 d { yyless (1); }
11475 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
11476 #ifdef __cplusplus
11477 yyless ((yyinput () != 0));
11478 #else
11479 yyless ((input () != 0));
11480 #endif
11481 }
11482 f { unput (yytext[0]); }
11483 . { BEGIN INITIAL; }
11484 %%
11485 #ifdef YYTEXT_POINTER
11486 extern char *yytext;
11487 #endif
11488 int
11489 yywrap (void)
11490 {
11491 return 1;
11492 }
11493 int
11494 main (void)
11495 {
11496 return ! yylex ();
11497 }
11498 _ACEOF
11499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
11500 printf %s "checking for lex output file root... " >&6; }
11501 if test ${ac_cv_prog_lex_root+y}
11502 then :
11503 printf %s "(cached) " >&6
11504 else $as_nop
11505
11506 ac_cv_prog_lex_root=unknown
11507 { { ac_try="$LEX conftest.l"
11508 case "(($ac_try" in
11509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11510 *) ac_try_echo=$ac_try;;
11511 esac
11512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11513 printf "%s\n" "$ac_try_echo"; } >&5
11514 (eval "$LEX conftest.l") 2>&5
11515 ac_status=$?
11516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11517 test $ac_status = 0; } &&
11518 if test -f lex.yy.c; then
11519 ac_cv_prog_lex_root=lex.yy
11520 elif test -f lexyy.c; then
11521 ac_cv_prog_lex_root=lexyy
11522 fi
11523 fi
11524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
11525 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
11526 if test "$ac_cv_prog_lex_root" = unknown
11527 then :
11528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
11529 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
11530 LEX=: LEXLIB=
11531 fi
11532 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
11533
11534 if test ${LEXLIB+y}
11535 then :
11536
11537 else $as_nop
11538
11539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
11540 printf %s "checking for lex library... " >&6; }
11541 if test ${ac_cv_lib_lex+y}
11542 then :
11543 printf %s "(cached) " >&6
11544 else $as_nop
11545
11546 ac_save_LIBS="$LIBS"
11547 ac_found=false
11548 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
11549 case $ac_cv_lib_lex in #(
11550 'none needed') :
11551 ;; #(
11552 'not found') :
11553 break ;; #(
11554 *) :
11555 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
11556 *) :
11557 ;;
11558 esac
11559
11560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561 /* end confdefs.h. */
11562 `cat $LEX_OUTPUT_ROOT.c`
11563 _ACEOF
11564 if ac_fn_c_try_link "$LINENO"
11565 then :
11566 ac_found=:
11567 fi
11568 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11569 conftest$ac_exeext conftest.$ac_ext
11570 if $ac_found; then
11571 break
11572 fi
11573 done
11574 LIBS="$ac_save_LIBS"
11575
11576 fi
11577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
11578 printf "%s\n" "$ac_cv_lib_lex" >&6; }
11579 if test "$ac_cv_lib_lex" = 'not found'
11580 then :
11581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
11582 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
11583 LEX=: LEXLIB=
11584 elif test "$ac_cv_lib_lex" = 'none needed'
11585 then :
11586 LEXLIB=''
11587 else $as_nop
11588 LEXLIB=$ac_cv_lib_lex
11589 fi
11590
11591 fi
11592
11593
11594 if test "$LEX" != :
11595 then :
11596
11597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
11598 printf %s "checking whether yytext is a pointer... " >&6; }
11599 if test ${ac_cv_prog_lex_yytext_pointer+y}
11600 then :
11601 printf %s "(cached) " >&6
11602 else $as_nop
11603 # POSIX says lex can declare yytext either as a pointer or an array; the
11604 # default is implementation-dependent. Figure out which it is, since
11605 # not all implementations provide the %pointer and %array declarations.
11606 ac_cv_prog_lex_yytext_pointer=no
11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11609
11610 #define YYTEXT_POINTER 1
11611 `cat $LEX_OUTPUT_ROOT.c`
11612 _ACEOF
11613 if ac_fn_c_try_compile "$LINENO"
11614 then :
11615 ac_cv_prog_lex_yytext_pointer=yes
11616 fi
11617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11618
11619 fi
11620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
11621 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
11622 if test $ac_cv_prog_lex_yytext_pointer = yes; then
11623
11624 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
11625
11626 fi
11627
11628 fi
11629 rm -f conftest.l $LEX_OUTPUT_ROOT.c
11630
11631 fi
11632
11633 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11634 if test "x$ac_cv_func_mkstemp" = xyes
11635 then :
11636 printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h
11637
11638 fi
11639
11640
11641 # Checks for pkg-config packages
11642
11643 pkg_failed=no
11644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11 xext xt xmu ice sm xproto >= 7.0.17" >&5
11645 printf %s "checking for x11 xext xt xmu ice sm xproto >= 7.0.17... " >&6; }
11646
11647 if test -n "$TWM_CFLAGS"; then
11648 pkg_cv_TWM_CFLAGS="$TWM_CFLAGS"
11649 elif test -n "$PKG_CONFIG"; then
11650 if test -n "$PKG_CONFIG" && \
11651 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5
11652 ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5
11653 ac_status=$?
11654 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11655 test $ac_status = 0; }; then
11656 pkg_cv_TWM_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null`
11657 test "x$?" != "x0" && pkg_failed=yes
11658 else
11659 pkg_failed=yes
11660 fi
11661 else
11662 pkg_failed=untried
11663 fi
11664 if test -n "$TWM_LIBS"; then
11665 pkg_cv_TWM_LIBS="$TWM_LIBS"
11666 elif test -n "$PKG_CONFIG"; then
11667 if test -n "$PKG_CONFIG" && \
11668 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5
11669 ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5
11670 ac_status=$?
11671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11672 test $ac_status = 0; }; then
11673 pkg_cv_TWM_LIBS=`$PKG_CONFIG --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null`
11674 test "x$?" != "x0" && pkg_failed=yes
11675 else
11676 pkg_failed=yes
11677 fi
11678 else
11679 pkg_failed=untried
11680 fi
11681
11682
11683
11684 if test $pkg_failed = yes; then
11685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686 printf "%s\n" "no" >&6; }
11687
11688 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11689 _pkg_short_errors_supported=yes
11690 else
11691 _pkg_short_errors_supported=no
11692 fi
11693 if test $_pkg_short_errors_supported = yes; then
11694 TWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1`
11695 else
11696 TWM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1`
11697 fi
11698 # Put the nasty error message in config.log where it belongs
11699 echo "$TWM_PKG_ERRORS" >&5
11700
11701 as_fn_error $? "Package requirements (x11 xext xt xmu ice sm xproto >= 7.0.17) were not met:
11702
11703 $TWM_PKG_ERRORS
11704
11705 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11706 installed software in a non-standard prefix.
11707
11708 Alternatively, you may set the environment variables TWM_CFLAGS
11709 and TWM_LIBS to avoid the need to call pkg-config.
11710 See the pkg-config man page for more details." "$LINENO" 5
11711 elif test $pkg_failed = untried; then
11712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11713 printf "%s\n" "no" >&6; }
11714 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11715 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11716 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11717 is in your PATH or set the PKG_CONFIG environment variable to the full
11718 path to pkg-config.
11719
11720 Alternatively, you may set the environment variables TWM_CFLAGS
11721 and TWM_LIBS to avoid the need to call pkg-config.
11722 See the pkg-config man page for more details.
11723
11724 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11725 See \`config.log' for more details" "$LINENO" 5; }
11726 else
11727 TWM_CFLAGS=$pkg_cv_TWM_CFLAGS
11728 TWM_LIBS=$pkg_cv_TWM_LIBS
11729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11730 printf "%s\n" "yes" >&6; }
11731
11732 fi
11733
11734 pkg_failed=no
11735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for xrandr" >&5
11736 printf %s "checking for xrandr... " >&6; }
11737
11738 if test -n "$XRANDR_CFLAGS"; then
11739 pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS"
11740 elif test -n "$PKG_CONFIG"; then
11741 if test -n "$PKG_CONFIG" && \
11742 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
11743 ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
11744 ac_status=$?
11745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11746 test $ac_status = 0; }; then
11747 pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr" 2>/dev/null`
11748 test "x$?" != "x0" && pkg_failed=yes
11749 else
11750 pkg_failed=yes
11751 fi
11752 else
11753 pkg_failed=untried
11754 fi
11755 if test -n "$XRANDR_LIBS"; then
11756 pkg_cv_XRANDR_LIBS="$XRANDR_LIBS"
11757 elif test -n "$PKG_CONFIG"; then
11758 if test -n "$PKG_CONFIG" && \
11759 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
11760 ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
11761 ac_status=$?
11762 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11763 test $ac_status = 0; }; then
11764 pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr" 2>/dev/null`
11765 test "x$?" != "x0" && pkg_failed=yes
11766 else
11767 pkg_failed=yes
11768 fi
11769 else
11770 pkg_failed=untried
11771 fi
11772
11773
11774
11775 if test $pkg_failed = yes; then
11776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777 printf "%s\n" "no" >&6; }
11778
11779 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11780 _pkg_short_errors_supported=yes
11781 else
11782 _pkg_short_errors_supported=no
11783 fi
11784 if test $_pkg_short_errors_supported = yes; then
11785 XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr" 2>&1`
11786 else
11787 XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr" 2>&1`
11788 fi
11789 # Put the nasty error message in config.log where it belongs
11790 echo "$XRANDR_PKG_ERRORS" >&5
11791
11792 have_xrandr=no
11793 elif test $pkg_failed = untried; then
11794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11795 printf "%s\n" "no" >&6; }
11796 have_xrandr=no
11797 else
11798 XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS
11799 XRANDR_LIBS=$pkg_cv_XRANDR_LIBS
11800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11801 printf "%s\n" "yes" >&6; }
11802 have_xrandr=yes
11803 fi
11804 if test "$have_xrandr" = yes; then
11805
11806 printf "%s\n" "#define HAVE_XRANDR 1" >>confdefs.h
11807
11808 fi
11809
11810 ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
11811
11812 cat >confcache <<\_ACEOF
11813 # This file is a shell script that caches the results of configure
11814 # tests run on this system so they can be shared between configure
11815 # scripts and configure runs, see configure's option --config-cache.
11816 # It is not useful on other systems. If it contains results you don't
11817 # want to keep, you may remove or edit it.
11818 #
11819 # config.status only pays attention to the cache file if you give it
11820 # the --recheck option to rerun configure.
11821 #
11822 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11823 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11824 # following values.
11825
11826 _ACEOF
11827
11828 # The following way of writing the cache mishandles newlines in values,
11829 # but we know of no workaround that is simple, portable, and efficient.
11830 # So, we kill variables containing newlines.
11831 # Ultrix sh set writes to stderr and can't be redirected directly,
11832 # and sets the high bit in the cache file unless we assign to the vars.
11833 (
11834 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11835 eval ac_val=\$$ac_var
11836 case $ac_val in #(
11837 *${as_nl}*)
11838 case $ac_var in #(
11839 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11840 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11841 esac
11842 case $ac_var in #(
11843 _ | IFS | as_nl) ;; #(
11844 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11845 *) { eval $ac_var=; unset $ac_var;} ;;
11846 esac ;;
11847 esac
11848 done
11849
11850 (set) 2>&1 |
11851 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11852 *${as_nl}ac_space=\ *)
11853 # `set' does not quote correctly, so add quotes: double-quote
11854 # substitution turns \\\\ into \\, and sed turns \\ into \.
11855 sed -n \
11856 "s/'/'\\\\''/g;
11857 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11858 ;; #(
11859 *)
11860 # `set' quotes correctly as required by POSIX, so do not add quotes.
11861 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11862 ;;
11863 esac |
11864 sort
11865 ) |
11866 sed '
11867 /^ac_cv_env_/b end
11868 t clear
11869 :clear
11870 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11871 t end
11872 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11873 :end' >>confcache
11874 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11875 if test -w "$cache_file"; then
11876 if test "x$cache_file" != "x/dev/null"; then
11877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11878 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11879 if test ! -f "$cache_file" || test -h "$cache_file"; then
11880 cat confcache >"$cache_file"
11881 else
11882 case $cache_file in #(
11883 */* | ?:*)
11884 mv -f confcache "$cache_file"$$ &&
11885 mv -f "$cache_file"$$ "$cache_file" ;; #(
11886 *)
11887 mv -f confcache "$cache_file" ;;
11888 esac
11889 fi
11890 fi
11891 else
11892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11893 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11894 fi
11895 fi
11896 rm -f confcache
11897
11898 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11899 # Let make expand exec_prefix.
11900 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11901
11902 DEFS=-DHAVE_CONFIG_H
11903
11904 ac_libobjs=
11905 ac_ltlibobjs=
11906 U=
11907 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11908 # 1. Remove the extension, and $U if already installed.
11909 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11910 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11911 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11912 # will be set to the directory where LIBOBJS objects are built.
11913 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11914 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11915 done
11916 LIBOBJS=$ac_libobjs
11917
11918 LTLIBOBJS=$ac_ltlibobjs
11919
11920
11921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11922 printf %s "checking that generated files are newer than configure... " >&6; }
11923 if test -n "$am_sleep_pid"; then
11924 # Hide warnings about reused PIDs.
11925 wait $am_sleep_pid 2>/dev/null
11926 fi
11927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11928 printf "%s\n" "done" >&6; }
11929 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11930 as_fn_error $? "conditional \"AMDEP\" was never defined.
11931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11932 fi
11933 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11934 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11936 fi
11937 if test -n "$EXEEXT"; then
11938 am__EXEEXT_TRUE=
11939 am__EXEEXT_FALSE='#'
11940 else
11941 am__EXEEXT_TRUE='#'
11942 am__EXEEXT_FALSE=
11943 fi
11944
11945
11946 : "${CONFIG_STATUS=./config.status}"
11947 ac_write_fail=0
11948 ac_clean_files_save=$ac_clean_files
11949 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11951 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11952 as_write_fail=0
11953 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11954 #! $SHELL
11955 # Generated by $as_me.
11956 # Run this file to recreate the current configuration.
11957 # Compiler output produced by configure, useful for debugging
11958 # configure, is in config.log if it exists.
11959
11960 debug=false
11961 ac_cs_recheck=false
11962 ac_cs_silent=false
11963
11964 SHELL=\${CONFIG_SHELL-$SHELL}
11965 export SHELL
11966 _ASEOF
11967 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11968 ## -------------------- ##
11969 ## M4sh Initialization. ##
11970 ## -------------------- ##
11971
11972 # Be more Bourne compatible
11973 DUALCASE=1; export DUALCASE # for MKS sh
11974 as_nop=:
11975 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11976 then :
11977 emulate sh
11978 NULLCMD=:
11979 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11980 # is contrary to our usage. Disable this feature.
11981 alias -g '${1+"$@"}'='"$@"'
11982 setopt NO_GLOB_SUBST
11983 else $as_nop
11984 case `(set -o) 2>/dev/null` in #(
11985 *posix*) :
11986 set -o posix ;; #(
11987 *) :
11988 ;;
11989 esac
11990 fi
11991
11992
11993
11994 # Reset variables that may have inherited troublesome values from
11995 # the environment.
11996
11997 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11998 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11999 # side effect of setting IFS to empty, thus disabling word splitting.)
12000 # Quoting is to prevent editors from complaining about space-tab.
12001 as_nl='
12002 '
12003 export as_nl
12004 IFS=" "" $as_nl"
12005
12006 PS1='$ '
12007 PS2='> '
12008 PS4='+ '
12009
12010 # Ensure predictable behavior from utilities with locale-dependent output.
12011 LC_ALL=C
12012 export LC_ALL
12013 LANGUAGE=C
12014 export LANGUAGE
12015
12016 # We cannot yet rely on "unset" to work, but we need these variables
12017 # to be unset--not just set to an empty or harmless value--now, to
12018 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12019 # also avoids known problems related to "unset" and subshell syntax
12020 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12021 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12022 do eval test \${$as_var+y} \
12023 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12024 done
12025
12026 # Ensure that fds 0, 1, and 2 are open.
12027 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12028 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12029 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12030
12031 # The user is always right.
12032 if ${PATH_SEPARATOR+false} :; then
12033 PATH_SEPARATOR=:
12034 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12035 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12036 PATH_SEPARATOR=';'
12037 }
12038 fi
12039
12040
12041 # Find who we are. Look in the path if we contain no directory separator.
12042 as_myself=
12043 case $0 in #((
12044 *[\\/]* ) as_myself=$0 ;;
12045 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046 for as_dir in $PATH
12047 do
12048 IFS=$as_save_IFS
12049 case $as_dir in #(((
12050 '') as_dir=./ ;;
12051 */) ;;
12052 *) as_dir=$as_dir/ ;;
12053 esac
12054 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12055 done
12056 IFS=$as_save_IFS
12057
12058 ;;
12059 esac
12060 # We did not find ourselves, most probably we were run as `sh COMMAND'
12061 # in which case we are not to be found in the path.
12062 if test "x$as_myself" = x; then
12063 as_myself=$0
12064 fi
12065 if test ! -f "$as_myself"; then
12066 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12067 exit 1
12068 fi
12069
12070
12071
12072 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12073 # ----------------------------------------
12074 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12075 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12076 # script with STATUS, using 1 if that was 0.
12077 as_fn_error ()
12078 {
12079 as_status=$1; test $as_status -eq 0 && as_status=1
12080 if test "$4"; then
12081 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12083 fi
12084 printf "%s\n" "$as_me: error: $2" >&2
12085 as_fn_exit $as_status
12086 } # as_fn_error
12087
12088
12089
12090 # as_fn_set_status STATUS
12091 # -----------------------
12092 # Set $? to STATUS, without forking.
12093 as_fn_set_status ()
12094 {
12095 return $1
12096 } # as_fn_set_status
12097
12098 # as_fn_exit STATUS
12099 # -----------------
12100 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12101 as_fn_exit ()
12102 {
12103 set +e
12104 as_fn_set_status $1
12105 exit $1
12106 } # as_fn_exit
12107
12108 # as_fn_unset VAR
12109 # ---------------
12110 # Portably unset VAR.
12111 as_fn_unset ()
12112 {
12113 { eval $1=; unset $1;}
12114 }
12115 as_unset=as_fn_unset
12116
12117 # as_fn_append VAR VALUE
12118 # ----------------------
12119 # Append the text in VALUE to the end of the definition contained in VAR. Take
12120 # advantage of any shell optimizations that allow amortized linear growth over
12121 # repeated appends, instead of the typical quadratic growth present in naive
12122 # implementations.
12123 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12124 then :
12125 eval 'as_fn_append ()
12126 {
12127 eval $1+=\$2
12128 }'
12129 else $as_nop
12130 as_fn_append ()
12131 {
12132 eval $1=\$$1\$2
12133 }
12134 fi # as_fn_append
12135
12136 # as_fn_arith ARG...
12137 # ------------------
12138 # Perform arithmetic evaluation on the ARGs, and store the result in the
12139 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12140 # must be portable across $(()) and expr.
12141 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12142 then :
12143 eval 'as_fn_arith ()
12144 {
12145 as_val=$(( $* ))
12146 }'
12147 else $as_nop
12148 as_fn_arith ()
12149 {
12150 as_val=`expr "$@" || test $? -eq 1`
12151 }
12152 fi # as_fn_arith
12153
12154
12155 if expr a : '\(a\)' >/dev/null 2>&1 &&
12156 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12157 as_expr=expr
12158 else
12159 as_expr=false
12160 fi
12161
12162 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12163 as_basename=basename
12164 else
12165 as_basename=false
12166 fi
12167
12168 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12169 as_dirname=dirname
12170 else
12171 as_dirname=false
12172 fi
12173
12174 as_me=`$as_basename -- "$0" ||
12175 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12176 X"$0" : 'X\(//\)$' \| \
12177 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12178 printf "%s\n" X/"$0" |
12179 sed '/^.*\/\([^/][^/]*\)\/*$/{
12180 s//\1/
12181 q
12182 }
12183 /^X\/\(\/\/\)$/{
12184 s//\1/
12185 q
12186 }
12187 /^X\/\(\/\).*/{
12188 s//\1/
12189 q
12190 }
12191 s/.*/./; q'`
12192
12193 # Avoid depending upon Character Ranges.
12194 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12195 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12196 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12197 as_cr_digits='0123456789'
12198 as_cr_alnum=$as_cr_Letters$as_cr_digits
12199
12200
12201 # Determine whether it's possible to make 'echo' print without a newline.
12202 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12203 # for compatibility with existing Makefiles.
12204 ECHO_C= ECHO_N= ECHO_T=
12205 case `echo -n x` in #(((((
12206 -n*)
12207 case `echo 'xy\c'` in
12208 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12209 xy) ECHO_C='\c';;
12210 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12211 ECHO_T=' ';;
12212 esac;;
12213 *)
12214 ECHO_N='-n';;
12215 esac
12216
12217 # For backward compatibility with old third-party macros, we provide
12218 # the shell variables $as_echo and $as_echo_n. New code should use
12219 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12220 as_echo='printf %s\n'
12221 as_echo_n='printf %s'
12222
12223 rm -f conf$$ conf$$.exe conf$$.file
12224 if test -d conf$$.dir; then
12225 rm -f conf$$.dir/conf$$.file
12226 else
12227 rm -f conf$$.dir
12228 mkdir conf$$.dir 2>/dev/null
12229 fi
12230 if (echo >conf$$.file) 2>/dev/null; then
12231 if ln -s conf$$.file conf$$ 2>/dev/null; then
12232 as_ln_s='ln -s'
12233 # ... but there are two gotchas:
12234 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12235 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12236 # In both cases, we have to default to `cp -pR'.
12237 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12238 as_ln_s='cp -pR'
12239 elif ln conf$$.file conf$$ 2>/dev/null; then
12240 as_ln_s=ln
12241 else
12242 as_ln_s='cp -pR'
12243 fi
12244 else
12245 as_ln_s='cp -pR'
12246 fi
12247 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12248 rmdir conf$$.dir 2>/dev/null
12249
12250
12251 # as_fn_mkdir_p
12252 # -------------
12253 # Create "$as_dir" as a directory, including parents if necessary.
12254 as_fn_mkdir_p ()
12255 {
12256
12257 case $as_dir in #(
12258 -*) as_dir=./$as_dir;;
12259 esac
12260 test -d "$as_dir" || eval $as_mkdir_p || {
12261 as_dirs=
12262 while :; do
12263 case $as_dir in #(
12264 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12265 *) as_qdir=$as_dir;;
12266 esac
12267 as_dirs="'$as_qdir' $as_dirs"
12268 as_dir=`$as_dirname -- "$as_dir" ||
12269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12270 X"$as_dir" : 'X\(//\)[^/]' \| \
12271 X"$as_dir" : 'X\(//\)$' \| \
12272 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12273 printf "%s\n" X"$as_dir" |
12274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12275 s//\1/
12276 q
12277 }
12278 /^X\(\/\/\)[^/].*/{
12279 s//\1/
12280 q
12281 }
12282 /^X\(\/\/\)$/{
12283 s//\1/
12284 q
12285 }
12286 /^X\(\/\).*/{
12287 s//\1/
12288 q
12289 }
12290 s/.*/./; q'`
12291 test -d "$as_dir" && break
12292 done
12293 test -z "$as_dirs" || eval "mkdir $as_dirs"
12294 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12295
12296
12297 } # as_fn_mkdir_p
12298 if mkdir -p . 2>/dev/null; then
12299 as_mkdir_p='mkdir -p "$as_dir"'
12300 else
12301 test -d ./-p && rmdir ./-p
12302 as_mkdir_p=false
12303 fi
12304
12305
12306 # as_fn_executable_p FILE
12307 # -----------------------
12308 # Test if FILE is an executable regular file.
12309 as_fn_executable_p ()
12310 {
12311 test -f "$1" && test -x "$1"
12312 } # as_fn_executable_p
12313 as_test_x='test -x'
12314 as_executable_p=as_fn_executable_p
12315
12316 # Sed expression to map a string onto a valid CPP name.
12317 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12318
12319 # Sed expression to map a string onto a valid variable name.
12320 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12321
12322
12323 exec 6>&1
12324 ## ----------------------------------- ##
12325 ## Main body of $CONFIG_STATUS script. ##
12326 ## ----------------------------------- ##
12327 _ASEOF
12328 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12329
12330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12331 # Save the log message, to keep $0 and so on meaningful, and to
12332 # report actual input values of CONFIG_FILES etc. instead of their
12333 # values after options handling.
12334 ac_log="
12335 This file was extended by twm $as_me 1.0.13.1, which was
12336 generated by GNU Autoconf 2.71. Invocation command line was
12337
12338 CONFIG_FILES = $CONFIG_FILES
12339 CONFIG_HEADERS = $CONFIG_HEADERS
12340 CONFIG_LINKS = $CONFIG_LINKS
12341 CONFIG_COMMANDS = $CONFIG_COMMANDS
12342 $ $0 $@
12343
12344 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12345 "
12346
12347 _ACEOF
12348
12349 case $ac_config_files in *"
12350 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12351 esac
12352
12353 case $ac_config_headers in *"
12354 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12355 esac
12356
12357
12358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12359 # Files that config.status was made for.
12360 config_files="$ac_config_files"
12361 config_headers="$ac_config_headers"
12362 config_commands="$ac_config_commands"
12363
12364 _ACEOF
12365
12366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12367 ac_cs_usage="\
12368 \`$as_me' instantiates files and other configuration actions
12369 from templates according to the current configuration. Unless the files
12370 and actions are specified as TAGs, all are instantiated by default.
12371
12372 Usage: $0 [OPTION]... [TAG]...
12373
12374 -h, --help print this help, then exit
12375 -V, --version print version number and configuration settings, then exit
12376 --config print configuration, then exit
12377 -q, --quiet, --silent
12378 do not print progress messages
12379 -d, --debug don't remove temporary files
12380 --recheck update $as_me by reconfiguring in the same conditions
12381 --file=FILE[:TEMPLATE]
12382 instantiate the configuration file FILE
12383 --header=FILE[:TEMPLATE]
12384 instantiate the configuration header FILE
12385
12386 Configuration files:
12387 $config_files
12388
12389 Configuration headers:
12390 $config_headers
12391
12392 Configuration commands:
12393 $config_commands
12394
12395 Report bugs to <https://gitlab.freedesktop.org/xorg/app/twm/issues>."
12396
12397 _ACEOF
12398 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12399 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12401 ac_cs_config='$ac_cs_config_escaped'
12402 ac_cs_version="\\
12403 twm config.status 1.0.13.1
12404 configured by $0, generated by GNU Autoconf 2.71,
12405 with options \\"\$ac_cs_config\\"
12406
12407 Copyright (C) 2021 Free Software Foundation, Inc.
12408 This config.status script is free software; the Free Software Foundation
12409 gives unlimited permission to copy, distribute and modify it."
12410
12411 ac_pwd='$ac_pwd'
12412 srcdir='$srcdir'
12413 INSTALL='$INSTALL'
12414 MKDIR_P='$MKDIR_P'
12415 AWK='$AWK'
12416 test -n "\$AWK" || AWK=awk
12417 _ACEOF
12418
12419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12420 # The default lists apply if the user does not specify any file.
12421 ac_need_defaults=:
12422 while test $# != 0
12423 do
12424 case $1 in
12425 --*=?*)
12426 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12427 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12428 ac_shift=:
12429 ;;
12430 --*=)
12431 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12432 ac_optarg=
12433 ac_shift=:
12434 ;;
12435 *)
12436 ac_option=$1
12437 ac_optarg=$2
12438 ac_shift=shift
12439 ;;
12440 esac
12441
12442 case $ac_option in
12443 # Handling of the options.
12444 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12445 ac_cs_recheck=: ;;
12446 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12447 printf "%s\n" "$ac_cs_version"; exit ;;
12448 --config | --confi | --conf | --con | --co | --c )
12449 printf "%s\n" "$ac_cs_config"; exit ;;
12450 --debug | --debu | --deb | --de | --d | -d )
12451 debug=: ;;
12452 --file | --fil | --fi | --f )
12453 $ac_shift
12454 case $ac_optarg in
12455 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12456 '') as_fn_error $? "missing file argument" ;;
12457 esac
12458 as_fn_append CONFIG_FILES " '$ac_optarg'"
12459 ac_need_defaults=false;;
12460 --header | --heade | --head | --hea )
12461 $ac_shift
12462 case $ac_optarg in
12463 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12464 esac
12465 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12466 ac_need_defaults=false;;
12467 --he | --h)
12468 # Conflict between --help and --header
12469 as_fn_error $? "ambiguous option: \`$1'
12470 Try \`$0 --help' for more information.";;
12471 --help | --hel | -h )
12472 printf "%s\n" "$ac_cs_usage"; exit ;;
12473 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12474 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12475 ac_cs_silent=: ;;
12476
12477 # This is an error.
12478 -*) as_fn_error $? "unrecognized option: \`$1'
12479 Try \`$0 --help' for more information." ;;
12480
12481 *) as_fn_append ac_config_targets " $1"
12482 ac_need_defaults=false ;;
12483
12484 esac
12485 shift
12486 done
12487
12488 ac_configure_extra_args=
12489
12490 if $ac_cs_silent; then
12491 exec 6>/dev/null
12492 ac_configure_extra_args="$ac_configure_extra_args --silent"
12493 fi
12494
12495 _ACEOF
12496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12497 if \$ac_cs_recheck; then
12498 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12499 shift
12500 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12501 CONFIG_SHELL='$SHELL'
12502 export CONFIG_SHELL
12503 exec "\$@"
12504 fi
12505
12506 _ACEOF
12507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12508 exec 5>>config.log
12509 {
12510 echo
12511 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12512 ## Running $as_me. ##
12513 _ASBOX
12514 printf "%s\n" "$ac_log"
12515 } >&5
12516
12517 _ACEOF
12518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12519 #
12520 # INIT-COMMANDS
12521 #
12522 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12523
12524 _ACEOF
12525
12526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12527
12528 # Handling of arguments.
12529 for ac_config_target in $ac_config_targets
12530 do
12531 case $ac_config_target in
12532 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12533 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12534 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12535 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12536 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12537
12538 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12539 esac
12540 done
12541
12542
12543 # If the user did not use the arguments to specify the items to instantiate,
12544 # then the envvar interface is used. Set only those that are not.
12545 # We use the long form for the default assignment because of an extremely
12546 # bizarre bug on SunOS 4.1.3.
12547 if $ac_need_defaults; then
12548 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12549 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12550 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12551 fi
12552
12553 # Have a temporary directory for convenience. Make it in the build tree
12554 # simply because there is no reason against having it here, and in addition,
12555 # creating and moving files from /tmp can sometimes cause problems.
12556 # Hook for its removal unless debugging.
12557 # Note that there is a small window in which the directory will not be cleaned:
12558 # after its creation but before its name has been assigned to `$tmp'.
12559 $debug ||
12560 {
12561 tmp= ac_tmp=
12562 trap 'exit_status=$?
12563 : "${ac_tmp:=$tmp}"
12564 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12565 ' 0
12566 trap 'as_fn_exit 1' 1 2 13 15
12567 }
12568 # Create a (secure) tmp directory for tmp files.
12569
12570 {
12571 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12572 test -d "$tmp"
12573 } ||
12574 {
12575 tmp=./conf$$-$RANDOM
12576 (umask 077 && mkdir "$tmp")
12577 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12578 ac_tmp=$tmp
12579
12580 # Set up the scripts for CONFIG_FILES section.
12581 # No need to generate them if there are no CONFIG_FILES.
12582 # This happens for instance with `./config.status config.h'.
12583 if test -n "$CONFIG_FILES"; then
12584
12585
12586 ac_cr=`echo X | tr X '\015'`
12587 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12588 # But we know of no other shell where ac_cr would be empty at this
12589 # point, so we can use a bashism as a fallback.
12590 if test "x$ac_cr" = x; then
12591 eval ac_cr=\$\'\\r\'
12592 fi
12593 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12594 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12595 ac_cs_awk_cr='\\r'
12596 else
12597 ac_cs_awk_cr=$ac_cr
12598 fi
12599
12600 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12601 _ACEOF
12602
12603
12604 {
12605 echo "cat >conf$$subs.awk <<_ACEOF" &&
12606 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12607 echo "_ACEOF"
12608 } >conf$$subs.sh ||
12609 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12610 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12611 ac_delim='%!_!# '
12612 for ac_last_try in false false false false false :; do
12613 . ./conf$$subs.sh ||
12614 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12615
12616 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12617 if test $ac_delim_n = $ac_delim_num; then
12618 break
12619 elif $ac_last_try; then
12620 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12621 else
12622 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12623 fi
12624 done
12625 rm -f conf$$subs.sh
12626
12627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12628 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12629 _ACEOF
12630 sed -n '
12631 h
12632 s/^/S["/; s/!.*/"]=/
12633 p
12634 g
12635 s/^[^!]*!//
12636 :repl
12637 t repl
12638 s/'"$ac_delim"'$//
12639 t delim
12640 :nl
12641 h
12642 s/\(.\{148\}\)..*/\1/
12643 t more1
12644 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12645 p
12646 n
12647 b repl
12648 :more1
12649 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12650 p
12651 g
12652 s/.\{148\}//
12653 t nl
12654 :delim
12655 h
12656 s/\(.\{148\}\)..*/\1/
12657 t more2
12658 s/["\\]/\\&/g; s/^/"/; s/$/"/
12659 p
12660 b
12661 :more2
12662 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12663 p
12664 g
12665 s/.\{148\}//
12666 t delim
12667 ' <conf$$subs.awk | sed '
12668 /^[^""]/{
12669 N
12670 s/\n//
12671 }
12672 ' >>$CONFIG_STATUS || ac_write_fail=1
12673 rm -f conf$$subs.awk
12674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12675 _ACAWK
12676 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12677 for (key in S) S_is_set[key] = 1
12678 FS = ""
12679
12680 }
12681 {
12682 line = $ 0
12683 nfields = split(line, field, "@")
12684 substed = 0
12685 len = length(field[1])
12686 for (i = 2; i < nfields; i++) {
12687 key = field[i]
12688 keylen = length(key)
12689 if (S_is_set[key]) {
12690 value = S[key]
12691 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12692 len += length(value) + length(field[++i])
12693 substed = 1
12694 } else
12695 len += 1 + keylen
12696 }
12697
12698 print line
12699 }
12700
12701 _ACAWK
12702 _ACEOF
12703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12704 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12705 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12706 else
12707 cat
12708 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12709 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12710 _ACEOF
12711
12712 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12713 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12714 # trailing colons and then remove the whole line if VPATH becomes empty
12715 # (actually we leave an empty line to preserve line numbers).
12716 if test "x$srcdir" = x.; then
12717 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12718 h
12719 s///
12720 s/^/:/
12721 s/[ ]*$/:/
12722 s/:\$(srcdir):/:/g
12723 s/:\${srcdir}:/:/g
12724 s/:@srcdir@:/:/g
12725 s/^:*//
12726 s/:*$//
12727 x
12728 s/\(=[ ]*\).*/\1/
12729 G
12730 s/\n//
12731 s/^[^=]*=[ ]*$//
12732 }'
12733 fi
12734
12735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12736 fi # test -n "$CONFIG_FILES"
12737
12738 # Set up the scripts for CONFIG_HEADERS section.
12739 # No need to generate them if there are no CONFIG_HEADERS.
12740 # This happens for instance with `./config.status Makefile'.
12741 if test -n "$CONFIG_HEADERS"; then
12742 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12743 BEGIN {
12744 _ACEOF
12745
12746 # Transform confdefs.h into an awk script `defines.awk', embedded as
12747 # here-document in config.status, that substitutes the proper values into
12748 # config.h.in to produce config.h.
12749
12750 # Create a delimiter string that does not exist in confdefs.h, to ease
12751 # handling of long lines.
12752 ac_delim='%!_!# '
12753 for ac_last_try in false false :; do
12754 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12755 if test -z "$ac_tt"; then
12756 break
12757 elif $ac_last_try; then
12758 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12759 else
12760 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12761 fi
12762 done
12763
12764 # For the awk script, D is an array of macro values keyed by name,
12765 # likewise P contains macro parameters if any. Preserve backslash
12766 # newline sequences.
12767
12768 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12769 sed -n '
12770 s/.\{148\}/&'"$ac_delim"'/g
12771 t rset
12772 :rset
12773 s/^[ ]*#[ ]*define[ ][ ]*/ /
12774 t def
12775 d
12776 :def
12777 s/\\$//
12778 t bsnl
12779 s/["\\]/\\&/g
12780 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12781 D["\1"]=" \3"/p
12782 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12783 d
12784 :bsnl
12785 s/["\\]/\\&/g
12786 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12787 D["\1"]=" \3\\\\\\n"\\/p
12788 t cont
12789 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12790 t cont
12791 d
12792 :cont
12793 n
12794 s/.\{148\}/&'"$ac_delim"'/g
12795 t clear
12796 :clear
12797 s/\\$//
12798 t bsnlc
12799 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12800 d
12801 :bsnlc
12802 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12803 b cont
12804 ' <confdefs.h | sed '
12805 s/'"$ac_delim"'/"\\\
12806 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12807
12808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12809 for (key in D) D_is_set[key] = 1
12810 FS = ""
12811 }
12812 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12813 line = \$ 0
12814 split(line, arg, " ")
12815 if (arg[1] == "#") {
12816 defundef = arg[2]
12817 mac1 = arg[3]
12818 } else {
12819 defundef = substr(arg[1], 2)
12820 mac1 = arg[2]
12821 }
12822 split(mac1, mac2, "(") #)
12823 macro = mac2[1]
12824 prefix = substr(line, 1, index(line, defundef) - 1)
12825 if (D_is_set[macro]) {
12826 # Preserve the white space surrounding the "#".
12827 print prefix "define", macro P[macro] D[macro]
12828 next
12829 } else {
12830 # Replace #undef with comments. This is necessary, for example,
12831 # in the case of _POSIX_SOURCE, which is predefined and required
12832 # on some systems where configure will not decide to define it.
12833 if (defundef == "undef") {
12834 print "/*", prefix defundef, macro, "*/"
12835 next
12836 }
12837 }
12838 }
12839 { print }
12840 _ACAWK
12841 _ACEOF
12842 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12843 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12844 fi # test -n "$CONFIG_HEADERS"
12845
12846
12847 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12848 shift
12849 for ac_tag
12850 do
12851 case $ac_tag in
12852 :[FHLC]) ac_mode=$ac_tag; continue;;
12853 esac
12854 case $ac_mode$ac_tag in
12855 :[FHL]*:*);;
12856 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12857 :[FH]-) ac_tag=-:-;;
12858 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12859 esac
12860 ac_save_IFS=$IFS
12861 IFS=:
12862 set x $ac_tag
12863 IFS=$ac_save_IFS
12864 shift
12865 ac_file=$1
12866 shift
12867
12868 case $ac_mode in
12869 :L) ac_source=$1;;
12870 :[FH])
12871 ac_file_inputs=
12872 for ac_f
12873 do
12874 case $ac_f in
12875 -) ac_f="$ac_tmp/stdin";;
12876 *) # Look for the file first in the build tree, then in the source tree
12877 # (if the path is not absolute). The absolute path cannot be DOS-style,
12878 # because $ac_f cannot contain `:'.
12879 test -f "$ac_f" ||
12880 case $ac_f in
12881 [\\/$]*) false;;
12882 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12883 esac ||
12884 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12885 esac
12886 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12887 as_fn_append ac_file_inputs " '$ac_f'"
12888 done
12889
12890 # Let's still pretend it is `configure' which instantiates (i.e., don't
12891 # use $as_me), people would be surprised to read:
12892 # /* config.h. Generated by config.status. */
12893 configure_input='Generated from '`
12894 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12895 `' by configure.'
12896 if test x"$ac_file" != x-; then
12897 configure_input="$ac_file. $configure_input"
12898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12899 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12900 fi
12901 # Neutralize special characters interpreted by sed in replacement strings.
12902 case $configure_input in #(
12903 *\&* | *\|* | *\\* )
12904 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12905 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12906 *) ac_sed_conf_input=$configure_input;;
12907 esac
12908
12909 case $ac_tag in
12910 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12911 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12912 esac
12913 ;;
12914 esac
12915
12916 ac_dir=`$as_dirname -- "$ac_file" ||
12917 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12918 X"$ac_file" : 'X\(//\)[^/]' \| \
12919 X"$ac_file" : 'X\(//\)$' \| \
12920 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12921 printf "%s\n" X"$ac_file" |
12922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12923 s//\1/
12924 q
12925 }
12926 /^X\(\/\/\)[^/].*/{
12927 s//\1/
12928 q
12929 }
12930 /^X\(\/\/\)$/{
12931 s//\1/
12932 q
12933 }
12934 /^X\(\/\).*/{
12935 s//\1/
12936 q
12937 }
12938 s/.*/./; q'`
12939 as_dir="$ac_dir"; as_fn_mkdir_p
12940 ac_builddir=.
12941
12942 case "$ac_dir" in
12943 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12944 *)
12945 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12946 # A ".." for each directory in $ac_dir_suffix.
12947 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12948 case $ac_top_builddir_sub in
12949 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12950 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12951 esac ;;
12952 esac
12953 ac_abs_top_builddir=$ac_pwd
12954 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12955 # for backward compatibility:
12956 ac_top_builddir=$ac_top_build_prefix
12957
12958 case $srcdir in
12959 .) # We are building in place.
12960 ac_srcdir=.
12961 ac_top_srcdir=$ac_top_builddir_sub
12962 ac_abs_top_srcdir=$ac_pwd ;;
12963 [\\/]* | ?:[\\/]* ) # Absolute name.
12964 ac_srcdir=$srcdir$ac_dir_suffix;
12965 ac_top_srcdir=$srcdir
12966 ac_abs_top_srcdir=$srcdir ;;
12967 *) # Relative name.
12968 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12969 ac_top_srcdir=$ac_top_build_prefix$srcdir
12970 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12971 esac
12972 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12973
12974
12975 case $ac_mode in
12976 :F)
12977 #
12978 # CONFIG_FILE
12979 #
12980
12981 case $INSTALL in
12982 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12983 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12984 esac
12985 ac_MKDIR_P=$MKDIR_P
12986 case $MKDIR_P in
12987 [\\/$]* | ?:[\\/]* ) ;;
12988 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12989 esac
12990 _ACEOF
12991
12992 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12993 # If the template does not know about datarootdir, expand it.
12994 # FIXME: This hack should be removed a few years after 2.60.
12995 ac_datarootdir_hack=; ac_datarootdir_seen=
12996 ac_sed_dataroot='
12997 /datarootdir/ {
12998 p
12999 q
13000 }
13001 /@datadir@/p
13002 /@docdir@/p
13003 /@infodir@/p
13004 /@localedir@/p
13005 /@mandir@/p'
13006 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13007 *datarootdir*) ac_datarootdir_seen=yes;;
13008 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13010 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13011 _ACEOF
13012 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13013 ac_datarootdir_hack='
13014 s&@datadir@&$datadir&g
13015 s&@docdir@&$docdir&g
13016 s&@infodir@&$infodir&g
13017 s&@localedir@&$localedir&g
13018 s&@mandir@&$mandir&g
13019 s&\\\${datarootdir}&$datarootdir&g' ;;
13020 esac
13021 _ACEOF
13022
13023 # Neutralize VPATH when `$srcdir' = `.'.
13024 # Shell code in configure.ac might set extrasub.
13025 # FIXME: do we really want to maintain this feature?
13026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13027 ac_sed_extra="$ac_vpsub
13028 $extrasub
13029 _ACEOF
13030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13031 :t
13032 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13033 s|@configure_input@|$ac_sed_conf_input|;t t
13034 s&@top_builddir@&$ac_top_builddir_sub&;t t
13035 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13036 s&@srcdir@&$ac_srcdir&;t t
13037 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13038 s&@top_srcdir@&$ac_top_srcdir&;t t
13039 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13040 s&@builddir@&$ac_builddir&;t t
13041 s&@abs_builddir@&$ac_abs_builddir&;t t
13042 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13043 s&@INSTALL@&$ac_INSTALL&;t t
13044 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13045 $ac_datarootdir_hack
13046 "
13047 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13048 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13049
13050 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13051 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13052 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13053 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13055 which seems to be undefined. Please make sure it is defined" >&5
13056 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13057 which seems to be undefined. Please make sure it is defined" >&2;}
13058
13059 rm -f "$ac_tmp/stdin"
13060 case $ac_file in
13061 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13062 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13063 esac \
13064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13065 ;;
13066 :H)
13067 #
13068 # CONFIG_HEADER
13069 #
13070 if test x"$ac_file" != x-; then
13071 {
13072 printf "%s\n" "/* $configure_input */" >&1 \
13073 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13074 } >"$ac_tmp/config.h" \
13075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13076 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13078 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13079 else
13080 rm -f "$ac_file"
13081 mv "$ac_tmp/config.h" "$ac_file" \
13082 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13083 fi
13084 else
13085 printf "%s\n" "/* $configure_input */" >&1 \
13086 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13087 || as_fn_error $? "could not create -" "$LINENO" 5
13088 fi
13089 # Compute "$ac_file"'s index in $config_headers.
13090 _am_arg="$ac_file"
13091 _am_stamp_count=1
13092 for _am_header in $config_headers :; do
13093 case $_am_header in
13094 $_am_arg | $_am_arg:* )
13095 break ;;
13096 * )
13097 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13098 esac
13099 done
13100 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13101 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13102 X"$_am_arg" : 'X\(//\)[^/]' \| \
13103 X"$_am_arg" : 'X\(//\)$' \| \
13104 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13105 printf "%s\n" X"$_am_arg" |
13106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13107 s//\1/
13108 q
13109 }
13110 /^X\(\/\/\)[^/].*/{
13111 s//\1/
13112 q
13113 }
13114 /^X\(\/\/\)$/{
13115 s//\1/
13116 q
13117 }
13118 /^X\(\/\).*/{
13119 s//\1/
13120 q
13121 }
13122 s/.*/./; q'`/stamp-h$_am_stamp_count
13123 ;;
13124
13125 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13126 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13127 ;;
13128 esac
13129
13130
13131 case $ac_file$ac_mode in
13132 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13133 # Older Autoconf quotes --file arguments for eval, but not when files
13134 # are listed without --file. Let's play safe and only enable the eval
13135 # if we detect the quoting.
13136 # TODO: see whether this extra hack can be removed once we start
13137 # requiring Autoconf 2.70 or later.
13138 case $CONFIG_FILES in #(
13139 *\'*) :
13140 eval set x "$CONFIG_FILES" ;; #(
13141 *) :
13142 set x $CONFIG_FILES ;; #(
13143 *) :
13144 ;;
13145 esac
13146 shift
13147 # Used to flag and report bootstrapping failures.
13148 am_rc=0
13149 for am_mf
13150 do
13151 # Strip MF so we end up with the name of the file.
13152 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13153 # Check whether this is an Automake generated Makefile which includes
13154 # dependency-tracking related rules and includes.
13155 # Grep'ing the whole file directly is not great: AIX grep has a line
13156 # limit of 2048, but all sed's we know have understand at least 4000.
13157 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13158 || continue
13159 am_dirpart=`$as_dirname -- "$am_mf" ||
13160 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13161 X"$am_mf" : 'X\(//\)[^/]' \| \
13162 X"$am_mf" : 'X\(//\)$' \| \
13163 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13164 printf "%s\n" X"$am_mf" |
13165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13166 s//\1/
13167 q
13168 }
13169 /^X\(\/\/\)[^/].*/{
13170 s//\1/
13171 q
13172 }
13173 /^X\(\/\/\)$/{
13174 s//\1/
13175 q
13176 }
13177 /^X\(\/\).*/{
13178 s//\1/
13179 q
13180 }
13181 s/.*/./; q'`
13182 am_filepart=`$as_basename -- "$am_mf" ||
13183 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13184 X"$am_mf" : 'X\(//\)$' \| \
13185 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13186 printf "%s\n" X/"$am_mf" |
13187 sed '/^.*\/\([^/][^/]*\)\/*$/{
13188 s//\1/
13189 q
13190 }
13191 /^X\/\(\/\/\)$/{
13192 s//\1/
13193 q
13194 }
13195 /^X\/\(\/\).*/{
13196 s//\1/
13197 q
13198 }
13199 s/.*/./; q'`
13200 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13201 && sed -e '/# am--include-marker/d' "$am_filepart" \
13202 | $MAKE -f - am--depfiles" >&5
13203 (cd "$am_dirpart" \
13204 && sed -e '/# am--include-marker/d' "$am_filepart" \
13205 | $MAKE -f - am--depfiles) >&5 2>&5
13206 ac_status=$?
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } || am_rc=$?
13209 done
13210 if test $am_rc -ne 0; then
13211 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13212 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13213 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13214 for automatic dependency tracking. If GNU make was not used, consider
13215 re-running the configure script with MAKE=\"gmake\" (or whatever is
13216 necessary). You can also try re-running configure with the
13217 '--disable-dependency-tracking' option to at least be able to build
13218 the package (albeit without support for automatic dependency tracking).
13219 See \`config.log' for more details" "$LINENO" 5; }
13220 fi
13221 { am_dirpart=; unset am_dirpart;}
13222 { am_filepart=; unset am_filepart;}
13223 { am_mf=; unset am_mf;}
13224 { am_rc=; unset am_rc;}
13225 rm -f conftest-deps.mk
13226 }
13227 ;;
13228
13229 esac
13230 done # for ac_tag
13231
13232
13233 as_fn_exit 0
13234 _ACEOF
13235 ac_clean_files=$ac_clean_files_save
13236
13237 test $ac_write_fail = 0 ||
13238 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13239
13240
13241 # configure is writing to config.log, and then calls config.status.
13242 # config.status does its own redirection, appending to config.log.
13243 # Unfortunately, on DOS this fails, as config.log is still kept open
13244 # by configure, so config.status won't be able to write to it; its
13245 # output is simply discarded. So we exec the FD to /dev/null,
13246 # effectively closing config.log, so it can be properly (re)opened and
13247 # appended to by config.status. When coming back to configure, we
13248 # need to make the FD available again.
13249 if test "$no_create" != yes; then
13250 ac_cs_success=:
13251 ac_config_status_args=
13252 test "$silent" = yes &&
13253 ac_config_status_args="$ac_config_status_args --quiet"
13254 exec 5>/dev/null
13255 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13256 exec 5>>config.log
13257 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13258 # would make configure fail if this is the last instruction.
13259 $ac_cs_success || as_fn_exit 1
13260 fi
13261 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13263 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13264 fi
13265
13266
13267