configure revision 1.1.1.11 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xinit 1.4.2.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinit/-/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/xinit/-/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='xinit'
614 PACKAGE_TARNAME='xinit'
615 PACKAGE_VERSION='1.4.2'
616 PACKAGE_STRING='xinit 1.4.2'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xinit/-/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 XINITDIR
658 XINIT
659 XAUTH
660 XSERVER
661 XTERM
662 XCLOCK
663 TWM
664 XMODMAP
665 XRDB
666 XCONFIGFILEMAN
667 XCONFIGFILE
668 XSERVERNAME
669 SHELL_CMD
670 STARTX_COOKIE_FLAGS
671 OPENSSL
672 MCOOKIE
673 XINIT_LIBS
674 XINIT_CFLAGS
675 LAUNCHAGENT_XSERVER_FALSE
676 LAUNCHAGENT_XSERVER_TRUE
677 LAUNCHD_FALSE
678 LAUNCHD_TRUE
679 launchagentxserver
680 bundleidprefix
681 launchdaemonsdir
682 launchagentsdir
683 LAUNCHD
684 TRADITIONALCPPFLAGS
685 RAWCPPFLAGS
686 RAWCPP
687 CPP
688 MAN_SUBSTS
689 XORG_MAN_PAGE
690 ADMIN_MAN_DIR
691 DRIVER_MAN_DIR
692 MISC_MAN_DIR
693 FILE_MAN_DIR
694 LIB_MAN_DIR
695 APP_MAN_DIR
696 ADMIN_MAN_SUFFIX
697 DRIVER_MAN_SUFFIX
698 MISC_MAN_SUFFIX
699 FILE_MAN_SUFFIX
700 LIB_MAN_SUFFIX
701 APP_MAN_SUFFIX
702 SED
703 host_os
704 host_vendor
705 host_cpu
706 host
707 build_os
708 build_vendor
709 build_cpu
710 build
711 INSTALL_CMD
712 PKG_CONFIG_LIBDIR
713 PKG_CONFIG_PATH
714 PKG_CONFIG
715 CHANGELOG_CMD
716 STRICT_CFLAGS
717 CWARNFLAGS
718 BASE_CFLAGS
719 am__fastdepCC_FALSE
720 am__fastdepCC_TRUE
721 CCDEPMODE
722 am__nodep
723 AMDEPBACKSLASH
724 AMDEP_FALSE
725 AMDEP_TRUE
726 am__include
727 DEPDIR
728 OBJEXT
729 EXEEXT
730 ac_ct_CC
731 CPPFLAGS
732 LDFLAGS
733 CFLAGS
734 CC
735 AM_BACKSLASH
736 AM_DEFAULT_VERBOSITY
737 AM_DEFAULT_V
738 AM_V
739 CSCOPE
740 ETAGS
741 CTAGS
742 am__untar
743 am__tar
744 AMTAR
745 am__leading_dot
746 SET_MAKE
747 AWK
748 mkdir_p
749 MKDIR_P
750 INSTALL_STRIP_PROGRAM
751 STRIP
752 install_sh
753 MAKEINFO
754 AUTOHEADER
755 AUTOMAKE
756 AUTOCONF
757 ACLOCAL
758 VERSION
759 PACKAGE
760 CYGPATH_W
761 am__isrc
762 INSTALL_DATA
763 INSTALL_SCRIPT
764 INSTALL_PROGRAM
765 target_alias
766 host_alias
767 build_alias
768 LIBS
769 ECHO_T
770 ECHO_N
771 ECHO_C
772 DEFS
773 mandir
774 localedir
775 libdir
776 psdir
777 pdfdir
778 dvidir
779 htmldir
780 infodir
781 docdir
782 oldincludedir
783 includedir
784 runstatedir
785 localstatedir
786 sharedstatedir
787 sysconfdir
788 datadir
789 datarootdir
790 libexecdir
791 sbindir
792 bindir
793 program_transform_name
794 prefix
795 exec_prefix
796 PACKAGE_URL
797 PACKAGE_BUGREPORT
798 PACKAGE_STRING
799 PACKAGE_VERSION
800 PACKAGE_TARNAME
801 PACKAGE_NAME
802 PATH_SEPARATOR
803 SHELL
804 am__quote'
805 ac_subst_files=''
806 ac_user_opts='
807 enable_option_checking
808 enable_silent_rules
809 enable_dependency_tracking
810 enable_selective_werror
811 enable_strict_compilation
812 with_xrdb
813 with_xmodmap
814 with_twm
815 with_xclock
816 with_xterm
817 with_xserver
818 with_xauth
819 with_xinit
820 with_xinitdir
821 with_launchd
822 with_launchagents_dir
823 with_launchagent_xserver
824 with_launchdaemons_dir
825 with_launchd_id_prefix
826 with_bundle_id_prefix
827 '
828 ac_precious_vars='build_alias
829 host_alias
830 target_alias
831 CC
832 CFLAGS
833 LDFLAGS
834 LIBS
835 CPPFLAGS
836 PKG_CONFIG
837 PKG_CONFIG_PATH
838 PKG_CONFIG_LIBDIR
839 CPP
840 XINIT_CFLAGS
841 XINIT_LIBS'
842
843
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
865
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 runstatedir='${localstatedir}/run'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
892
893 ac_prev=
894 ac_dashdash=
895 for ac_option
896 do
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
900 ac_prev=
901 continue
902 fi
903
904 case $ac_option in
905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *=) ac_optarg= ;;
907 *) ac_optarg=yes ;;
908 esac
909
910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
918
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
933
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
938
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: \`$ac_useropt'"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
971
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: \`$ac_useropt'"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
987
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
996
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1000
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1007
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1012
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1018
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1025
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1030
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1035
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1042
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1047
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1054
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1059
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1063
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1067
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1071
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1080
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1085
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1092
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1099
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1116
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1121
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1126
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1130
1131 -runstatedir | --runstatedir | --runstatedi | --runstated \
1132 | --runstate | --runstat | --runsta | --runst | --runs \
1133 | --run | --ru | --r)
1134 ac_prev=runstatedir ;;
1135 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1136 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1137 | --run=* | --ru=* | --r=*)
1138 runstatedir=$ac_optarg ;;
1139
1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141 ac_prev=sbindir ;;
1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143 | --sbi=* | --sb=*)
1144 sbindir=$ac_optarg ;;
1145
1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148 | --sharedst | --shareds | --shared | --share | --shar \
1149 | --sha | --sh)
1150 ac_prev=sharedstatedir ;;
1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154 | --sha=* | --sh=*)
1155 sharedstatedir=$ac_optarg ;;
1156
1157 -site | --site | --sit)
1158 ac_prev=site ;;
1159 -site=* | --site=* | --sit=*)
1160 site=$ac_optarg ;;
1161
1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163 ac_prev=srcdir ;;
1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165 srcdir=$ac_optarg ;;
1166
1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168 | --syscon | --sysco | --sysc | --sys | --sy)
1169 ac_prev=sysconfdir ;;
1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172 sysconfdir=$ac_optarg ;;
1173
1174 -target | --target | --targe | --targ | --tar | --ta | --t)
1175 ac_prev=target_alias ;;
1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177 target_alias=$ac_optarg ;;
1178
1179 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180 verbose=yes ;;
1181
1182 -version | --version | --versio | --versi | --vers | -V)
1183 ac_init_version=: ;;
1184
1185 -with-* | --with-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: \`$ac_useropt'"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=\$ac_optarg ;;
1200
1201 -without-* | --without-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error $? "invalid package name: \`$ac_useropt'"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=no ;;
1216
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1220
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1227
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1234
1235 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1236 Try \`$0 --help' for more information"
1237 ;;
1238
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 case $ac_envvar in #(
1243 '' | [0-9]* | *[!_$as_cr_alnum]* )
1244 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1245 esac
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1248
1249 *)
1250 # FIXME: should be removed in autoconf 3.0.
1251 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255 ;;
1256
1257 esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 as_fn_error $? "missing argument to $ac_option"
1263 fi
1264
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1267 no) ;;
1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 esac
1271 fi
1272
1273 # Check all directory arguments for consistency.
1274 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir runstatedir
1278 do
1279 eval ac_val=\$$ac_var
1280 # Remove trailing slashes.
1281 case $ac_val in
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1285 esac
1286 # Be sure to have absolute directory names.
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292 done
1293
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1307 fi
1308 fi
1309
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313 test "$silent" = yes && exec 6>/dev/null
1314
1315
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 as_fn_error $? "working directory cannot be determined"
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 printf "%s\n" X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\).*/{
1347 s//\1/
1348 q
1349 }
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1354 fi
1355 else
1356 ac_srcdir_defaulted=no
1357 fi
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361 fi
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365 pwd)`
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369 fi
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1373 case $srcdir in
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 esac
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1382
1383 #
1384 # Report the --help message.
1385 #
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390 \`configure' configures xinit 1.4.2 to adapt to many kinds of systems.
1391
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397 Defaults for the options are specified in brackets.
1398
1399 Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking ...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1415
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1420
1421 For better control, use the options below.
1422
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/xinit]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444 _ACEOF
1445
1446 cat <<\_ACEOF
1447
1448 Program names:
1449 --program-prefix=PREFIX prepend PREFIX to installed program names
1450 --program-suffix=SUFFIX append SUFFIX to installed program names
1451 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1452
1453 System types:
1454 --build=BUILD configure for building on BUILD [guessed]
1455 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1456 _ACEOF
1457 fi
1458
1459 if test -n "$ac_init_help"; then
1460 case $ac_init_help in
1461 short | recursive ) echo "Configuration of xinit 1.4.2:";;
1462 esac
1463 cat <<\_ACEOF
1464
1465 Optional Features:
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-silent-rules less verbose build output (undo: "make V=1")
1470 --disable-silent-rules verbose build output (undo: "make V=0")
1471 --enable-dependency-tracking
1472 do not reject slow dependency extractors
1473 --disable-dependency-tracking
1474 speeds up one-time build
1475 --disable-selective-werror
1476 Turn off selective compiler errors. (default:
1477 enabled)
1478 --enable-strict-compilation
1479 Enable all warnings from compiler and make them
1480 errors (default: disabled)
1481
1482 Optional Packages:
1483 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1484 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1485 --with-xrdb=XRDB Path to xrdb
1486 --with-xmodmap=XMODMAP Path to xmodmap
1487 --with-twm=TWM Path to twm
1488 --with-xclock=XCLOCK Path to xclock
1489 --with-xterm=XTERM Path to xterm
1490 --with-xserver=XSERVER Path to default X server
1491 --with-xauth=XAUTH Path to xauth
1492 --with-xinit=XINIT Path to xinit
1493 --with-xinitdir=XINITDIR
1494 Path to xinitdir
1495 --with-launchd Build with support for Apple's launchd (default:
1496 auto)
1497 --with-launchagents-dir=PATH
1498 Path to launchd's LaunchAgents directory (default:
1499 /Library/LaunchAgents)
1500 --with-launchagent-xserver=PATH
1501 Path to the X server which the LaunchAgent should
1502 start (if not provided, let startx decide)"
1503 --with-launchdaemons-dir=PATH
1504 Path to launchd's LaunchDaemonss directory (default:
1505 /Library/LaunchDaemons)
1506 --with-launchd-id-prefix=PATH
1507 Deprecated: Use --with-bundle-id-prefix.
1508 --with-bundle-id-prefix=PATH
1509 Prefix to use for bundle identifiers (default:
1510 org.x)
1511
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 PKG_CONFIG path to pkg-config utility
1521 PKG_CONFIG_PATH
1522 directories to add to pkg-config's search path
1523 PKG_CONFIG_LIBDIR
1524 path overriding pkg-config's built-in search path
1525 CPP C preprocessor
1526 XINIT_CFLAGS
1527 C compiler flags for XINIT, overriding pkg-config
1528 XINIT_LIBS linker flags for XINIT, overriding pkg-config
1529
1530 Use these variables to override the choices made by `configure' or to help
1531 it to find libraries and programs with nonstandard names/locations.
1532
1533 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinit/-/issues>.
1534 _ACEOF
1535 ac_status=$?
1536 fi
1537
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" ||
1542 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1543 continue
1544 ac_builddir=.
1545
1546 case "$ac_dir" in
1547 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *)
1549 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1550 # A ".." for each directory in $ac_dir_suffix.
1551 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1552 case $ac_top_builddir_sub in
1553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555 esac ;;
1556 esac
1557 ac_abs_top_builddir=$ac_pwd
1558 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1559 # for backward compatibility:
1560 ac_top_builddir=$ac_top_build_prefix
1561
1562 case $srcdir in
1563 .) # We are building in place.
1564 ac_srcdir=.
1565 ac_top_srcdir=$ac_top_builddir_sub
1566 ac_abs_top_srcdir=$ac_pwd ;;
1567 [\\/]* | ?:[\\/]* ) # Absolute name.
1568 ac_srcdir=$srcdir$ac_dir_suffix;
1569 ac_top_srcdir=$srcdir
1570 ac_abs_top_srcdir=$srcdir ;;
1571 *) # Relative name.
1572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1573 ac_top_srcdir=$ac_top_build_prefix$srcdir
1574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1575 esac
1576 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1577
1578 cd "$ac_dir" || { ac_status=$?; continue; }
1579 # Check for configure.gnu first; this name is used for a wrapper for
1580 # Metaconfig's "Configure" on case-insensitive file systems.
1581 if test -f "$ac_srcdir/configure.gnu"; then
1582 echo &&
1583 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584 elif test -f "$ac_srcdir/configure"; then
1585 echo &&
1586 $SHELL "$ac_srcdir/configure" --help=recursive
1587 else
1588 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589 fi || ac_status=$?
1590 cd "$ac_pwd" || { ac_status=$?; break; }
1591 done
1592 fi
1593
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596 cat <<\_ACEOF
1597 xinit configure 1.4.2
1598 generated by GNU Autoconf 2.71
1599
1600 Copyright (C) 2021 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1603 _ACEOF
1604 exit
1605 fi
1606
1607 ## ------------------------ ##
1608 ## Autoconf initialization. ##
1609 ## ------------------------ ##
1610
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext conftest.beam
1618 if { { ac_try="$ac_compile"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 printf "%s\n" "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext
1637 then :
1638 ac_retval=0
1639 else $as_nop
1640 printf "%s\n" "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1
1644 fi
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1647
1648 } # ac_fn_c_try_compile
1649
1650 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1651 # ------------------------------------------------------------------
1652 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1653 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1654 ac_fn_check_decl ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 as_decl_name=`echo $2|sed 's/ *(.*//'`
1658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1659 printf %s "checking whether $as_decl_name is declared... " >&6; }
1660 if eval test \${$3+y}
1661 then :
1662 printf %s "(cached) " >&6
1663 else $as_nop
1664 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1665 eval ac_save_FLAGS=\$$6
1666 as_fn_append $6 " $5"
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 $4
1670 int
1671 main (void)
1672 {
1673 #ifndef $as_decl_name
1674 #ifdef __cplusplus
1675 (void) $as_decl_use;
1676 #else
1677 (void) $as_decl_name;
1678 #endif
1679 #endif
1680
1681 ;
1682 return 0;
1683 }
1684 _ACEOF
1685 if ac_fn_c_try_compile "$LINENO"
1686 then :
1687 eval "$3=yes"
1688 else $as_nop
1689 eval "$3=no"
1690 fi
1691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1692 eval $6=\$ac_save_FLAGS
1693
1694 fi
1695 eval ac_res=\$$3
1696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 printf "%s\n" "$ac_res" >&6; }
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699
1700 } # ac_fn_check_decl
1701
1702 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists and can be compiled using the include files in
1705 # INCLUDES, setting the cache variable VAR accordingly.
1706 ac_fn_c_check_header_compile ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 printf %s "checking for $2... " >&6; }
1711 if eval test \${$3+y}
1712 then :
1713 printf %s "(cached) " >&6
1714 else $as_nop
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 $4
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"
1721 then :
1722 eval "$3=yes"
1723 else $as_nop
1724 eval "$3=no"
1725 fi
1726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1727 fi
1728 eval ac_res=\$$3
1729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 printf "%s\n" "$ac_res" >&6; }
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733 } # ac_fn_c_check_header_compile
1734
1735 # ac_fn_c_try_link LINENO
1736 # -----------------------
1737 # Try to link conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_link ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1742 if { { ac_try="$ac_link"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 printf "%s\n" "$ac_try_echo"; } >&5
1749 (eval "$ac_link") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1755 fi
1756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest$ac_exeext && {
1761 test "$cross_compiling" = yes ||
1762 test -x conftest$ac_exeext
1763 }
1764 then :
1765 ac_retval=0
1766 else $as_nop
1767 printf "%s\n" "$as_me: failed program was:" >&5
1768 sed 's/^/| /' conftest.$ac_ext >&5
1769
1770 ac_retval=1
1771 fi
1772 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1773 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1774 # interfere with the next link command; also delete a directory that is
1775 # left behind by Apple's compiler. We do this before executing the actions.
1776 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1777 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778 as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_link
1781
1782 # ac_fn_c_try_cpp LINENO
1783 # ----------------------
1784 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_cpp ()
1786 {
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if { { ac_try="$ac_cpp conftest.$ac_ext"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 printf "%s\n" "$ac_try_echo"; } >&5
1795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1801 fi
1802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } > conftest.i && {
1804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 }
1807 then :
1808 ac_retval=0
1809 else $as_nop
1810 printf "%s\n" "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1812
1813 ac_retval=1
1814 fi
1815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1816 as_fn_set_status $ac_retval
1817
1818 } # ac_fn_c_try_cpp
1819 ac_configure_args_raw=
1820 for ac_arg
1821 do
1822 case $ac_arg in
1823 *\'*)
1824 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1825 esac
1826 as_fn_append ac_configure_args_raw " '$ac_arg'"
1827 done
1828
1829 case $ac_configure_args_raw in
1830 *$as_nl*)
1831 ac_safe_unquote= ;;
1832 *)
1833 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1834 ac_unsafe_a="$ac_unsafe_z#~"
1835 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1836 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1837 esac
1838
1839 cat >config.log <<_ACEOF
1840 This file contains any messages produced by compilers while
1841 running configure, to aid debugging if configure makes a mistake.
1842
1843 It was created by xinit $as_me 1.4.2, which was
1844 generated by GNU Autoconf 2.71. Invocation command line was
1845
1846 $ $0$ac_configure_args_raw
1847
1848 _ACEOF
1849 exec 5>>config.log
1850 {
1851 cat <<_ASUNAME
1852 ## --------- ##
1853 ## Platform. ##
1854 ## --------- ##
1855
1856 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1857 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1858 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1859 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1860 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1861
1862 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1863 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1864
1865 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1866 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1867 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1868 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1869 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1870 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1871 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1872
1873 _ASUNAME
1874
1875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876 for as_dir in $PATH
1877 do
1878 IFS=$as_save_IFS
1879 case $as_dir in #(((
1880 '') as_dir=./ ;;
1881 */) ;;
1882 *) as_dir=$as_dir/ ;;
1883 esac
1884 printf "%s\n" "PATH: $as_dir"
1885 done
1886 IFS=$as_save_IFS
1887
1888 } >&5
1889
1890 cat >&5 <<_ACEOF
1891
1892
1893 ## ----------- ##
1894 ## Core tests. ##
1895 ## ----------- ##
1896
1897 _ACEOF
1898
1899
1900 # Keep a trace of the command line.
1901 # Strip out --no-create and --no-recursion so they do not pile up.
1902 # Strip out --silent because we don't want to record it for future runs.
1903 # Also quote any args containing shell meta-characters.
1904 # Make two passes to allow for proper duplicate-argument suppression.
1905 ac_configure_args=
1906 ac_configure_args0=
1907 ac_configure_args1=
1908 ac_must_keep_next=false
1909 for ac_pass in 1 2
1910 do
1911 for ac_arg
1912 do
1913 case $ac_arg in
1914 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1916 | -silent | --silent | --silen | --sile | --sil)
1917 continue ;;
1918 *\'*)
1919 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1920 esac
1921 case $ac_pass in
1922 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1923 2)
1924 as_fn_append ac_configure_args1 " '$ac_arg'"
1925 if test $ac_must_keep_next = true; then
1926 ac_must_keep_next=false # Got value, back to normal.
1927 else
1928 case $ac_arg in
1929 *=* | --config-cache | -C | -disable-* | --disable-* \
1930 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1931 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1932 | -with-* | --with-* | -without-* | --without-* | --x)
1933 case "$ac_configure_args0 " in
1934 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1935 esac
1936 ;;
1937 -* ) ac_must_keep_next=true ;;
1938 esac
1939 fi
1940 as_fn_append ac_configure_args " '$ac_arg'"
1941 ;;
1942 esac
1943 done
1944 done
1945 { ac_configure_args0=; unset ac_configure_args0;}
1946 { ac_configure_args1=; unset ac_configure_args1;}
1947
1948 # When interrupted or exit'd, cleanup temporary files, and complete
1949 # config.log. We remove comments because anyway the quotes in there
1950 # would cause problems or look ugly.
1951 # WARNING: Use '\'' to represent an apostrophe within the trap.
1952 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1953 trap 'exit_status=$?
1954 # Sanitize IFS.
1955 IFS=" "" $as_nl"
1956 # Save into config.log some information that might help in debugging.
1957 {
1958 echo
1959
1960 printf "%s\n" "## ---------------- ##
1961 ## Cache variables. ##
1962 ## ---------------- ##"
1963 echo
1964 # The following way of writing the cache mishandles newlines in values,
1965 (
1966 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1967 eval ac_val=\$$ac_var
1968 case $ac_val in #(
1969 *${as_nl}*)
1970 case $ac_var in #(
1971 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1972 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1973 esac
1974 case $ac_var in #(
1975 _ | IFS | as_nl) ;; #(
1976 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1977 *) { eval $ac_var=; unset $ac_var;} ;;
1978 esac ;;
1979 esac
1980 done
1981 (set) 2>&1 |
1982 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1983 *${as_nl}ac_space=\ *)
1984 sed -n \
1985 "s/'\''/'\''\\\\'\'''\''/g;
1986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1987 ;; #(
1988 *)
1989 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1990 ;;
1991 esac |
1992 sort
1993 )
1994 echo
1995
1996 printf "%s\n" "## ----------------- ##
1997 ## Output variables. ##
1998 ## ----------------- ##"
1999 echo
2000 for ac_var in $ac_subst_vars
2001 do
2002 eval ac_val=\$$ac_var
2003 case $ac_val in
2004 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2005 esac
2006 printf "%s\n" "$ac_var='\''$ac_val'\''"
2007 done | sort
2008 echo
2009
2010 if test -n "$ac_subst_files"; then
2011 printf "%s\n" "## ------------------- ##
2012 ## File substitutions. ##
2013 ## ------------------- ##"
2014 echo
2015 for ac_var in $ac_subst_files
2016 do
2017 eval ac_val=\$$ac_var
2018 case $ac_val in
2019 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2020 esac
2021 printf "%s\n" "$ac_var='\''$ac_val'\''"
2022 done | sort
2023 echo
2024 fi
2025
2026 if test -s confdefs.h; then
2027 printf "%s\n" "## ----------- ##
2028 ## confdefs.h. ##
2029 ## ----------- ##"
2030 echo
2031 cat confdefs.h
2032 echo
2033 fi
2034 test "$ac_signal" != 0 &&
2035 printf "%s\n" "$as_me: caught signal $ac_signal"
2036 printf "%s\n" "$as_me: exit $exit_status"
2037 } >&5
2038 rm -f core *.core core.conftest.* &&
2039 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2040 exit $exit_status
2041 ' 0
2042 for ac_signal in 1 2 13 15; do
2043 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2044 done
2045 ac_signal=0
2046
2047 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2048 rm -f -r conftest* confdefs.h
2049
2050 printf "%s\n" "/* confdefs.h */" > confdefs.h
2051
2052 # Predefined preprocessor variables.
2053
2054 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2055
2056 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2057
2058 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2059
2060 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2061
2062 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2063
2064 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2065
2066
2067 # Let the site file select an alternate cache file if it wants to.
2068 # Prefer an explicitly selected file to automatically selected ones.
2069 if test -n "$CONFIG_SITE"; then
2070 ac_site_files="$CONFIG_SITE"
2071 elif test "x$prefix" != xNONE; then
2072 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2073 else
2074 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2075 fi
2076
2077 for ac_site_file in $ac_site_files
2078 do
2079 case $ac_site_file in #(
2080 */*) :
2081 ;; #(
2082 *) :
2083 ac_site_file=./$ac_site_file ;;
2084 esac
2085 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2087 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2088 sed 's/^/| /' "$ac_site_file" >&5
2089 . "$ac_site_file" \
2090 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2091 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2092 as_fn_error $? "failed to load site script $ac_site_file
2093 See \`config.log' for more details" "$LINENO" 5; }
2094 fi
2095 done
2096
2097 if test -r "$cache_file"; then
2098 # Some versions of bash will fail to source /dev/null (special files
2099 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2100 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2102 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2103 case $cache_file in
2104 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2105 *) . "./$cache_file";;
2106 esac
2107 fi
2108 else
2109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2110 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2111 >$cache_file
2112 fi
2113
2114 # Test code for whether the C compiler supports C89 (global declarations)
2115 ac_c_conftest_c89_globals='
2116 /* Does the compiler advertise C89 conformance?
2117 Do not test the value of __STDC__, because some compilers set it to 0
2118 while being otherwise adequately conformant. */
2119 #if !defined __STDC__
2120 # error "Compiler does not advertise C89 conformance"
2121 #endif
2122
2123 #include <stddef.h>
2124 #include <stdarg.h>
2125 struct stat;
2126 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2127 struct buf { int x; };
2128 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2129 static char *e (p, i)
2130 char **p;
2131 int i;
2132 {
2133 return p[i];
2134 }
2135 static char *f (char * (*g) (char **, int), char **p, ...)
2136 {
2137 char *s;
2138 va_list v;
2139 va_start (v,p);
2140 s = g (p, va_arg (v,int));
2141 va_end (v);
2142 return s;
2143 }
2144
2145 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2146 function prototypes and stuff, but not \xHH hex character constants.
2147 These do not provoke an error unfortunately, instead are silently treated
2148 as an "x". The following induces an error, until -std is added to get
2149 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2150 array size at least. It is necessary to write \x00 == 0 to get something
2151 that is true only with -std. */
2152 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2153
2154 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2155 inside strings and character constants. */
2156 #define FOO(x) '\''x'\''
2157 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2158
2159 int test (int i, double x);
2160 struct s1 {int (*f) (int a);};
2161 struct s2 {int (*f) (double a);};
2162 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2163 int, int);'
2164
2165 # Test code for whether the C compiler supports C89 (body of main).
2166 ac_c_conftest_c89_main='
2167 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2168 '
2169
2170 # Test code for whether the C compiler supports C99 (global declarations)
2171 ac_c_conftest_c99_globals='
2172 // Does the compiler advertise C99 conformance?
2173 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2174 # error "Compiler does not advertise C99 conformance"
2175 #endif
2176
2177 #include <stdbool.h>
2178 extern int puts (const char *);
2179 extern int printf (const char *, ...);
2180 extern int dprintf (int, const char *, ...);
2181 extern void *malloc (size_t);
2182
2183 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2184 // dprintf is used instead of fprintf to avoid needing to declare
2185 // FILE and stderr.
2186 #define debug(...) dprintf (2, __VA_ARGS__)
2187 #define showlist(...) puts (#__VA_ARGS__)
2188 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2189 static void
2190 test_varargs_macros (void)
2191 {
2192 int x = 1234;
2193 int y = 5678;
2194 debug ("Flag");
2195 debug ("X = %d\n", x);
2196 showlist (The first, second, and third items.);
2197 report (x>y, "x is %d but y is %d", x, y);
2198 }
2199
2200 // Check long long types.
2201 #define BIG64 18446744073709551615ull
2202 #define BIG32 4294967295ul
2203 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2204 #if !BIG_OK
2205 #error "your preprocessor is broken"
2206 #endif
2207 #if BIG_OK
2208 #else
2209 #error "your preprocessor is broken"
2210 #endif
2211 static long long int bignum = -9223372036854775807LL;
2212 static unsigned long long int ubignum = BIG64;
2213
2214 struct incomplete_array
2215 {
2216 int datasize;
2217 double data[];
2218 };
2219
2220 struct named_init {
2221 int number;
2222 const wchar_t *name;
2223 double average;
2224 };
2225
2226 typedef const char *ccp;
2227
2228 static inline int
2229 test_restrict (ccp restrict text)
2230 {
2231 // See if C++-style comments work.
2232 // Iterate through items via the restricted pointer.
2233 // Also check for declarations in for loops.
2234 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2235 continue;
2236 return 0;
2237 }
2238
2239 // Check varargs and va_copy.
2240 static bool
2241 test_varargs (const char *format, ...)
2242 {
2243 va_list args;
2244 va_start (args, format);
2245 va_list args_copy;
2246 va_copy (args_copy, args);
2247
2248 const char *str = "";
2249 int number = 0;
2250 float fnumber = 0;
2251
2252 while (*format)
2253 {
2254 switch (*format++)
2255 {
2256 case '\''s'\'': // string
2257 str = va_arg (args_copy, const char *);
2258 break;
2259 case '\''d'\'': // int
2260 number = va_arg (args_copy, int);
2261 break;
2262 case '\''f'\'': // float
2263 fnumber = va_arg (args_copy, double);
2264 break;
2265 default:
2266 break;
2267 }
2268 }
2269 va_end (args_copy);
2270 va_end (args);
2271
2272 return *str && number && fnumber;
2273 }
2274 '
2275
2276 # Test code for whether the C compiler supports C99 (body of main).
2277 ac_c_conftest_c99_main='
2278 // Check bool.
2279 _Bool success = false;
2280 success |= (argc != 0);
2281
2282 // Check restrict.
2283 if (test_restrict ("String literal") == 0)
2284 success = true;
2285 char *restrict newvar = "Another string";
2286
2287 // Check varargs.
2288 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2289 test_varargs_macros ();
2290
2291 // Check flexible array members.
2292 struct incomplete_array *ia =
2293 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2294 ia->datasize = 10;
2295 for (int i = 0; i < ia->datasize; ++i)
2296 ia->data[i] = i * 1.234;
2297
2298 // Check named initializers.
2299 struct named_init ni = {
2300 .number = 34,
2301 .name = L"Test wide string",
2302 .average = 543.34343,
2303 };
2304
2305 ni.number = 58;
2306
2307 int dynamic_array[ni.number];
2308 dynamic_array[0] = argv[0][0];
2309 dynamic_array[ni.number - 1] = 543;
2310
2311 // work around unused variable warnings
2312 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2313 || dynamic_array[ni.number - 1] != 543);
2314 '
2315
2316 # Test code for whether the C compiler supports C11 (global declarations)
2317 ac_c_conftest_c11_globals='
2318 // Does the compiler advertise C11 conformance?
2319 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2320 # error "Compiler does not advertise C11 conformance"
2321 #endif
2322
2323 // Check _Alignas.
2324 char _Alignas (double) aligned_as_double;
2325 char _Alignas (0) no_special_alignment;
2326 extern char aligned_as_int;
2327 char _Alignas (0) _Alignas (int) aligned_as_int;
2328
2329 // Check _Alignof.
2330 enum
2331 {
2332 int_alignment = _Alignof (int),
2333 int_array_alignment = _Alignof (int[100]),
2334 char_alignment = _Alignof (char)
2335 };
2336 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2337
2338 // Check _Noreturn.
2339 int _Noreturn does_not_return (void) { for (;;) continue; }
2340
2341 // Check _Static_assert.
2342 struct test_static_assert
2343 {
2344 int x;
2345 _Static_assert (sizeof (int) <= sizeof (long int),
2346 "_Static_assert does not work in struct");
2347 long int y;
2348 };
2349
2350 // Check UTF-8 literals.
2351 #define u8 syntax error!
2352 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2353
2354 // Check duplicate typedefs.
2355 typedef long *long_ptr;
2356 typedef long int *long_ptr;
2357 typedef long_ptr long_ptr;
2358
2359 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2360 struct anonymous
2361 {
2362 union {
2363 struct { int i; int j; };
2364 struct { int k; long int l; } w;
2365 };
2366 int m;
2367 } v1;
2368 '
2369
2370 # Test code for whether the C compiler supports C11 (body of main).
2371 ac_c_conftest_c11_main='
2372 _Static_assert ((offsetof (struct anonymous, i)
2373 == offsetof (struct anonymous, w.k)),
2374 "Anonymous union alignment botch");
2375 v1.i = 2;
2376 v1.w.k = 5;
2377 ok |= v1.i != 5;
2378 '
2379
2380 # Test code for whether the C compiler supports C11 (complete).
2381 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2382 ${ac_c_conftest_c99_globals}
2383 ${ac_c_conftest_c11_globals}
2384
2385 int
2386 main (int argc, char **argv)
2387 {
2388 int ok = 0;
2389 ${ac_c_conftest_c89_main}
2390 ${ac_c_conftest_c99_main}
2391 ${ac_c_conftest_c11_main}
2392 return ok;
2393 }
2394 "
2395
2396 # Test code for whether the C compiler supports C99 (complete).
2397 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2398 ${ac_c_conftest_c99_globals}
2399
2400 int
2401 main (int argc, char **argv)
2402 {
2403 int ok = 0;
2404 ${ac_c_conftest_c89_main}
2405 ${ac_c_conftest_c99_main}
2406 return ok;
2407 }
2408 "
2409
2410 # Test code for whether the C compiler supports C89 (complete).
2411 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2412
2413 int
2414 main (int argc, char **argv)
2415 {
2416 int ok = 0;
2417 ${ac_c_conftest_c89_main}
2418 return ok;
2419 }
2420 "
2421
2422 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2423 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2424 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2425 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2426 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2427 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2428 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2429 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2430 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2431
2432 # Auxiliary files required by this configure script.
2433 ac_aux_files="config.guess config.sub compile missing install-sh"
2434
2435 # Locations in which to look for auxiliary files.
2436 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2437
2438 # Search for a directory containing all of the required auxiliary files,
2439 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2440 # If we don't find one directory that contains all the files we need,
2441 # we report the set of missing files from the *first* directory in
2442 # $ac_aux_dir_candidates and give up.
2443 ac_missing_aux_files=""
2444 ac_first_candidate=:
2445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2447 as_found=false
2448 for as_dir in $ac_aux_dir_candidates
2449 do
2450 IFS=$as_save_IFS
2451 case $as_dir in #(((
2452 '') as_dir=./ ;;
2453 */) ;;
2454 *) as_dir=$as_dir/ ;;
2455 esac
2456 as_found=:
2457
2458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2459 ac_aux_dir_found=yes
2460 ac_install_sh=
2461 for ac_aux in $ac_aux_files
2462 do
2463 # As a special case, if "install-sh" is required, that requirement
2464 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2465 # and $ac_install_sh is set appropriately for whichever one is found.
2466 if test x"$ac_aux" = x"install-sh"
2467 then
2468 if test -f "${as_dir}install-sh"; then
2469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2470 ac_install_sh="${as_dir}install-sh -c"
2471 elif test -f "${as_dir}install.sh"; then
2472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2473 ac_install_sh="${as_dir}install.sh -c"
2474 elif test -f "${as_dir}shtool"; then
2475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2476 ac_install_sh="${as_dir}shtool install -c"
2477 else
2478 ac_aux_dir_found=no
2479 if $ac_first_candidate; then
2480 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2481 else
2482 break
2483 fi
2484 fi
2485 else
2486 if test -f "${as_dir}${ac_aux}"; then
2487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2488 else
2489 ac_aux_dir_found=no
2490 if $ac_first_candidate; then
2491 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2492 else
2493 break
2494 fi
2495 fi
2496 fi
2497 done
2498 if test "$ac_aux_dir_found" = yes; then
2499 ac_aux_dir="$as_dir"
2500 break
2501 fi
2502 ac_first_candidate=false
2503
2504 as_found=false
2505 done
2506 IFS=$as_save_IFS
2507 if $as_found
2508 then :
2509
2510 else $as_nop
2511 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2512 fi
2513
2514
2515 # These three variables are undocumented and unsupported,
2516 # and are intended to be withdrawn in a future Autoconf release.
2517 # They can cause serious problems if a builder's source tree is in a directory
2518 # whose full name contains unusual characters.
2519 if test -f "${ac_aux_dir}config.guess"; then
2520 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2521 fi
2522 if test -f "${ac_aux_dir}config.sub"; then
2523 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2524 fi
2525 if test -f "$ac_aux_dir/configure"; then
2526 ac_configure="$SHELL ${ac_aux_dir}configure"
2527 fi
2528
2529 # Check that the precious variables saved in the cache have kept the same
2530 # value.
2531 ac_cache_corrupted=false
2532 for ac_var in $ac_precious_vars; do
2533 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2534 eval ac_new_set=\$ac_env_${ac_var}_set
2535 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2536 eval ac_new_val=\$ac_env_${ac_var}_value
2537 case $ac_old_set,$ac_new_set in
2538 set,)
2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2540 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2541 ac_cache_corrupted=: ;;
2542 ,set)
2543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2544 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2546 ,);;
2547 *)
2548 if test "x$ac_old_val" != "x$ac_new_val"; then
2549 # differences in whitespace do not lead to failure.
2550 ac_old_val_w=`echo x $ac_old_val`
2551 ac_new_val_w=`echo x $ac_new_val`
2552 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2554 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2555 ac_cache_corrupted=:
2556 else
2557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2558 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2559 eval $ac_var=\$ac_old_val
2560 fi
2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2562 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2564 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2565 fi;;
2566 esac
2567 # Pass precious variables to config.status.
2568 if test "$ac_new_set" = set; then
2569 case $ac_new_val in
2570 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2571 *) ac_arg=$ac_var=$ac_new_val ;;
2572 esac
2573 case " $ac_configure_args " in
2574 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2575 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2576 esac
2577 fi
2578 done
2579 if $ac_cache_corrupted; then
2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2583 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2584 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2585 and start over" "$LINENO" 5
2586 fi
2587 ## -------------------- ##
2588 ## Main body of script. ##
2589 ## -------------------- ##
2590
2591 ac_ext=c
2592 ac_cpp='$CPP $CPPFLAGS'
2593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2596
2597
2598
2599 ac_config_headers="$ac_config_headers config.h"
2600
2601
2602 # Initialize Automake
2603 am__api_version='1.16'
2604
2605
2606
2607 # Find a good install program. We prefer a C program (faster),
2608 # so one script is as good as another. But avoid the broken or
2609 # incompatible versions:
2610 # SysV /etc/install, /usr/sbin/install
2611 # SunOS /usr/etc/install
2612 # IRIX /sbin/install
2613 # AIX /bin/install
2614 # AmigaOS /C/install, which installs bootblocks on floppy discs
2615 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2618 # OS/2's system install, which has a completely different semantic
2619 # ./install, which can be erroneously created by make from ./install.sh.
2620 # Reject install programs that cannot install multiple files.
2621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2622 printf %s "checking for a BSD-compatible install... " >&6; }
2623 if test -z "$INSTALL"; then
2624 if test ${ac_cv_path_install+y}
2625 then :
2626 printf %s "(cached) " >&6
2627 else $as_nop
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631 IFS=$as_save_IFS
2632 case $as_dir in #(((
2633 '') as_dir=./ ;;
2634 */) ;;
2635 *) as_dir=$as_dir/ ;;
2636 esac
2637 # Account for fact that we put trailing slashes in our PATH walk.
2638 case $as_dir in #((
2639 ./ | /[cC]/* | \
2640 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2641 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2642 /usr/ucb/* ) ;;
2643 *)
2644 # OSF1 and SCO ODT 3.0 have their own names for install.
2645 # Don't use installbsd from OSF since it installs stuff as root
2646 # by default.
2647 for ac_prog in ginstall scoinst install; do
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2650 if test $ac_prog = install &&
2651 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2652 # AIX install. It has an incompatible calling convention.
2653 :
2654 elif test $ac_prog = install &&
2655 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2656 # program-specific install script used by HP pwplus--don't use.
2657 :
2658 else
2659 rm -rf conftest.one conftest.two conftest.dir
2660 echo one > conftest.one
2661 echo two > conftest.two
2662 mkdir conftest.dir
2663 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2664 test -s conftest.one && test -s conftest.two &&
2665 test -s conftest.dir/conftest.one &&
2666 test -s conftest.dir/conftest.two
2667 then
2668 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2669 break 3
2670 fi
2671 fi
2672 fi
2673 done
2674 done
2675 ;;
2676 esac
2677
2678 done
2679 IFS=$as_save_IFS
2680
2681 rm -rf conftest.one conftest.two conftest.dir
2682
2683 fi
2684 if test ${ac_cv_path_install+y}; then
2685 INSTALL=$ac_cv_path_install
2686 else
2687 # As a last resort, use the slow shell script. Don't cache a
2688 # value for INSTALL within a source directory, because that will
2689 # break other packages using the cache if that directory is
2690 # removed, or if the value is a relative name.
2691 INSTALL=$ac_install_sh
2692 fi
2693 fi
2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2695 printf "%s\n" "$INSTALL" >&6; }
2696
2697 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2698 # It thinks the first close brace ends the variable substitution.
2699 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2700
2701 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2702
2703 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2704
2705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2706 printf %s "checking whether build environment is sane... " >&6; }
2707 # Reject unsafe characters in $srcdir or the absolute working directory
2708 # name. Accept space and tab only in the latter.
2709 am_lf='
2710 '
2711 case `pwd` in
2712 *[\\\"\#\$\&\'\`$am_lf]*)
2713 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2714 esac
2715 case $srcdir in
2716 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2717 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2718 esac
2719
2720 # Do 'set' in a subshell so we don't clobber the current shell's
2721 # arguments. Must try -L first in case configure is actually a
2722 # symlink; some systems play weird games with the mod time of symlinks
2723 # (eg FreeBSD returns the mod time of the symlink's containing
2724 # directory).
2725 if (
2726 am_has_slept=no
2727 for am_try in 1 2; do
2728 echo "timestamp, slept: $am_has_slept" > conftest.file
2729 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2730 if test "$*" = "X"; then
2731 # -L didn't work.
2732 set X `ls -t "$srcdir/configure" conftest.file`
2733 fi
2734 if test "$*" != "X $srcdir/configure conftest.file" \
2735 && test "$*" != "X conftest.file $srcdir/configure"; then
2736
2737 # If neither matched, then we have a broken ls. This can happen
2738 # if, for instance, CONFIG_SHELL is bash and it inherits a
2739 # broken ls alias from the environment. This has actually
2740 # happened. Such a system could not be considered "sane".
2741 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2742 alias in your environment" "$LINENO" 5
2743 fi
2744 if test "$2" = conftest.file || test $am_try -eq 2; then
2745 break
2746 fi
2747 # Just in case.
2748 sleep 1
2749 am_has_slept=yes
2750 done
2751 test "$2" = conftest.file
2752 )
2753 then
2754 # Ok.
2755 :
2756 else
2757 as_fn_error $? "newly created file is older than distributed files!
2758 Check your system clock" "$LINENO" 5
2759 fi
2760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2761 printf "%s\n" "yes" >&6; }
2762 # If we didn't sleep, we still need to ensure time stamps of config.status and
2763 # generated files are strictly newer.
2764 am_sleep_pid=
2765 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2766 ( sleep 1 ) &
2767 am_sleep_pid=$!
2768 fi
2769
2770 rm -f conftest.file
2771
2772 test "$program_prefix" != NONE &&
2773 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2774 # Use a double $ so make ignores it.
2775 test "$program_suffix" != NONE &&
2776 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2777 # Double any \ or $.
2778 # By default was `s,x,x', remove it if useless.
2779 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2780 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2781
2782
2783 # Expand $ac_aux_dir to an absolute path.
2784 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2785
2786
2787 if test x"${MISSING+set}" != xset; then
2788 MISSING="\${SHELL} '$am_aux_dir/missing'"
2789 fi
2790 # Use eval to expand $SHELL
2791 if eval "$MISSING --is-lightweight"; then
2792 am_missing_run="$MISSING "
2793 else
2794 am_missing_run=
2795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2796 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2797 fi
2798
2799 if test x"${install_sh+set}" != xset; then
2800 case $am_aux_dir in
2801 *\ * | *\ *)
2802 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2803 *)
2804 install_sh="\${SHELL} $am_aux_dir/install-sh"
2805 esac
2806 fi
2807
2808 # Installed binaries are usually stripped using 'strip' when the user
2809 # run "make install-strip". However 'strip' might not be the right
2810 # tool to use in cross-compilation environments, therefore Automake
2811 # will honor the 'STRIP' environment variable to overrule this program.
2812 if test "$cross_compiling" != no; then
2813 if test -n "$ac_tool_prefix"; then
2814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2815 set dummy ${ac_tool_prefix}strip; ac_word=$2
2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2817 printf %s "checking for $ac_word... " >&6; }
2818 if test ${ac_cv_prog_STRIP+y}
2819 then :
2820 printf %s "(cached) " >&6
2821 else $as_nop
2822 if test -n "$STRIP"; then
2823 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828 IFS=$as_save_IFS
2829 case $as_dir in #(((
2830 '') as_dir=./ ;;
2831 */) ;;
2832 *) as_dir=$as_dir/ ;;
2833 esac
2834 for ac_exec_ext in '' $ac_executable_extensions; do
2835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2836 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2838 break 2
2839 fi
2840 done
2841 done
2842 IFS=$as_save_IFS
2843
2844 fi
2845 fi
2846 STRIP=$ac_cv_prog_STRIP
2847 if test -n "$STRIP"; then
2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2849 printf "%s\n" "$STRIP" >&6; }
2850 else
2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 printf "%s\n" "no" >&6; }
2853 fi
2854
2855
2856 fi
2857 if test -z "$ac_cv_prog_STRIP"; then
2858 ac_ct_STRIP=$STRIP
2859 # Extract the first word of "strip", so it can be a program name with args.
2860 set dummy strip; ac_word=$2
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 printf %s "checking for $ac_word... " >&6; }
2863 if test ${ac_cv_prog_ac_ct_STRIP+y}
2864 then :
2865 printf %s "(cached) " >&6
2866 else $as_nop
2867 if test -n "$ac_ct_STRIP"; then
2868 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873 IFS=$as_save_IFS
2874 case $as_dir in #(((
2875 '') as_dir=./ ;;
2876 */) ;;
2877 *) as_dir=$as_dir/ ;;
2878 esac
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2881 ac_cv_prog_ac_ct_STRIP="strip"
2882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885 done
2886 done
2887 IFS=$as_save_IFS
2888
2889 fi
2890 fi
2891 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2892 if test -n "$ac_ct_STRIP"; then
2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2894 printf "%s\n" "$ac_ct_STRIP" >&6; }
2895 else
2896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 printf "%s\n" "no" >&6; }
2898 fi
2899
2900 if test "x$ac_ct_STRIP" = x; then
2901 STRIP=":"
2902 else
2903 case $cross_compiling:$ac_tool_warned in
2904 yes:)
2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2906 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2907 ac_tool_warned=yes ;;
2908 esac
2909 STRIP=$ac_ct_STRIP
2910 fi
2911 else
2912 STRIP="$ac_cv_prog_STRIP"
2913 fi
2914
2915 fi
2916 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2917
2918
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2920 printf %s "checking for a race-free mkdir -p... " >&6; }
2921 if test -z "$MKDIR_P"; then
2922 if test ${ac_cv_path_mkdir+y}
2923 then :
2924 printf %s "(cached) " >&6
2925 else $as_nop
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2928 do
2929 IFS=$as_save_IFS
2930 case $as_dir in #(((
2931 '') as_dir=./ ;;
2932 */) ;;
2933 *) as_dir=$as_dir/ ;;
2934 esac
2935 for ac_prog in mkdir gmkdir; do
2936 for ac_exec_ext in '' $ac_executable_extensions; do
2937 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2938 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2939 'mkdir ('*'coreutils) '* | \
2940 'BusyBox '* | \
2941 'mkdir (fileutils) '4.1*)
2942 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2943 break 3;;
2944 esac
2945 done
2946 done
2947 done
2948 IFS=$as_save_IFS
2949
2950 fi
2951
2952 test -d ./--version && rmdir ./--version
2953 if test ${ac_cv_path_mkdir+y}; then
2954 MKDIR_P="$ac_cv_path_mkdir -p"
2955 else
2956 # As a last resort, use the slow shell script. Don't cache a
2957 # value for MKDIR_P within a source directory, because that will
2958 # break other packages using the cache if that directory is
2959 # removed, or if the value is a relative name.
2960 MKDIR_P="$ac_install_sh -d"
2961 fi
2962 fi
2963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2964 printf "%s\n" "$MKDIR_P" >&6; }
2965
2966 for ac_prog in gawk mawk nawk awk
2967 do
2968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy $ac_prog; ac_word=$2
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 printf %s "checking for $ac_word... " >&6; }
2972 if test ${ac_cv_prog_AWK+y}
2973 then :
2974 printf %s "(cached) " >&6
2975 else $as_nop
2976 if test -n "$AWK"; then
2977 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982 IFS=$as_save_IFS
2983 case $as_dir in #(((
2984 '') as_dir=./ ;;
2985 */) ;;
2986 *) as_dir=$as_dir/ ;;
2987 esac
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_AWK="$ac_prog"
2991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi
2999 fi
3000 AWK=$ac_cv_prog_AWK
3001 if test -n "$AWK"; then
3002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3003 printf "%s\n" "$AWK" >&6; }
3004 else
3005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 printf "%s\n" "no" >&6; }
3007 fi
3008
3009
3010 test -n "$AWK" && break
3011 done
3012
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3014 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3015 set x ${MAKE-make}
3016 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3017 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3018 then :
3019 printf %s "(cached) " >&6
3020 else $as_nop
3021 cat >conftest.make <<\_ACEOF
3022 SHELL = /bin/sh
3023 all:
3024 @echo '@@@%%%=$(MAKE)=@@@%%%'
3025 _ACEOF
3026 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3027 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3028 *@@@%%%=?*=@@@%%%*)
3029 eval ac_cv_prog_make_${ac_make}_set=yes;;
3030 *)
3031 eval ac_cv_prog_make_${ac_make}_set=no;;
3032 esac
3033 rm -f conftest.make
3034 fi
3035 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3037 printf "%s\n" "yes" >&6; }
3038 SET_MAKE=
3039 else
3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 printf "%s\n" "no" >&6; }
3042 SET_MAKE="MAKE=${MAKE-make}"
3043 fi
3044
3045 rm -rf .tst 2>/dev/null
3046 mkdir .tst 2>/dev/null
3047 if test -d .tst; then
3048 am__leading_dot=.
3049 else
3050 am__leading_dot=_
3051 fi
3052 rmdir .tst 2>/dev/null
3053
3054 # Check whether --enable-silent-rules was given.
3055 if test ${enable_silent_rules+y}
3056 then :
3057 enableval=$enable_silent_rules;
3058 fi
3059
3060 case $enable_silent_rules in # (((
3061 yes) AM_DEFAULT_VERBOSITY=0;;
3062 no) AM_DEFAULT_VERBOSITY=1;;
3063 *) AM_DEFAULT_VERBOSITY=1;;
3064 esac
3065 am_make=${MAKE-make}
3066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3067 printf %s "checking whether $am_make supports nested variables... " >&6; }
3068 if test ${am_cv_make_support_nested_variables+y}
3069 then :
3070 printf %s "(cached) " >&6
3071 else $as_nop
3072 if printf "%s\n" 'TRUE=$(BAR$(V))
3073 BAR0=false
3074 BAR1=true
3075 V=1
3076 am__doit:
3077 @$(TRUE)
3078 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3079 am_cv_make_support_nested_variables=yes
3080 else
3081 am_cv_make_support_nested_variables=no
3082 fi
3083 fi
3084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3085 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3086 if test $am_cv_make_support_nested_variables = yes; then
3087 AM_V='$(V)'
3088 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3089 else
3090 AM_V=$AM_DEFAULT_VERBOSITY
3091 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3092 fi
3093 AM_BACKSLASH='\'
3094
3095 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3096 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3097 # is not polluted with repeated "-I."
3098 am__isrc=' -I$(srcdir)'
3099 # test to see if srcdir already configured
3100 if test -f $srcdir/config.status; then
3101 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3102 fi
3103 fi
3104
3105 # test whether we have cygpath
3106 if test -z "$CYGPATH_W"; then
3107 if (cygpath --version) >/dev/null 2>/dev/null; then
3108 CYGPATH_W='cygpath -w'
3109 else
3110 CYGPATH_W=echo
3111 fi
3112 fi
3113
3114
3115 # Define the identity of the package.
3116 PACKAGE='xinit'
3117 VERSION='1.4.2'
3118
3119
3120 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3121
3122
3123 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3124
3125 # Some tools Automake needs.
3126
3127 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3128
3129
3130 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3131
3132
3133 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3134
3135
3136 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3137
3138
3139 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3140
3141 # For better backward compatibility. To be removed once Automake 1.9.x
3142 # dies out for good. For more background, see:
3143 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3144 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3145 mkdir_p='$(MKDIR_P)'
3146
3147 # We need awk for the "check" target (and possibly the TAP driver). The
3148 # system "awk" is bad on some platforms.
3149 # Always define AMTAR for backward compatibility. Yes, it's still used
3150 # in the wild :-( We should find a proper way to deprecate it ...
3151 AMTAR='$${TAR-tar}'
3152
3153
3154 # We'll loop over all known methods to create a tar archive until one works.
3155 _am_tools='gnutar pax cpio none'
3156
3157 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3158
3159
3160
3161
3162
3163 # Variables for tags utilities; see am/tags.am
3164 if test -z "$CTAGS"; then
3165 CTAGS=ctags
3166 fi
3167
3168 if test -z "$ETAGS"; then
3169 ETAGS=etags
3170 fi
3171
3172 if test -z "$CSCOPE"; then
3173 CSCOPE=cscope
3174 fi
3175
3176
3177
3178 # POSIX will say in a future version that running "rm -f" with no argument
3179 # is OK; and we want to be able to make that assumption in our Makefile
3180 # recipes. So use an aggressive probe to check that the usage we want is
3181 # actually supported "in the wild" to an acceptable degree.
3182 # See automake bug#10828.
3183 # To make any issue more visible, cause the running configure to be aborted
3184 # by default if the 'rm' program in use doesn't match our expectations; the
3185 # user can still override this though.
3186 if rm -f && rm -fr && rm -rf; then : OK; else
3187 cat >&2 <<'END'
3188 Oops!
3189
3190 Your 'rm' program seems unable to run without file operands specified
3191 on the command line, even when the '-f' option is present. This is contrary
3192 to the behaviour of most rm programs out there, and not conforming with
3193 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3194
3195 Please tell bug-automake@gnu.org about your system, including the value
3196 of your $PATH and any error possibly output before this message. This
3197 can help us improve future automake versions.
3198
3199 END
3200 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3201 echo 'Configuration will proceed anyway, since you have set the' >&2
3202 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3203 echo >&2
3204 else
3205 cat >&2 <<'END'
3206 Aborting the configuration process, to ensure you take notice of the issue.
3207
3208 You can download and install GNU coreutils to get an 'rm' implementation
3209 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3210
3211 If you want to complete the configuration process using your problematic
3212 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3213 to "yes", and re-run configure.
3214
3215 END
3216 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3217 fi
3218 fi
3219
3220
3221 # Require X.Org macros 1.19 or later for TRADITIONALCPPFLAGS
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242 DEPDIR="${am__leading_dot}deps"
3243
3244 ac_config_commands="$ac_config_commands depfiles"
3245
3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3247 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3248 cat > confinc.mk << 'END'
3249 am__doit:
3250 @echo this is the am__doit target >confinc.out
3251 .PHONY: am__doit
3252 END
3253 am__include="#"
3254 am__quote=
3255 # BSD make does it like this.
3256 echo '.include "confinc.mk" # ignored' > confmf.BSD
3257 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3258 echo 'include confinc.mk # ignored' > confmf.GNU
3259 _am_result=no
3260 for s in GNU BSD; do
3261 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3262 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3263 ac_status=$?
3264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3265 (exit $ac_status); }
3266 case $?:`cat confinc.out 2>/dev/null` in #(
3267 '0:this is the am__doit target') :
3268 case $s in #(
3269 BSD) :
3270 am__include='.include' am__quote='"' ;; #(
3271 *) :
3272 am__include='include' am__quote='' ;;
3273 esac ;; #(
3274 *) :
3275 ;;
3276 esac
3277 if test "$am__include" != "#"; then
3278 _am_result="yes ($s style)"
3279 break
3280 fi
3281 done
3282 rm -f confinc.* confmf.*
3283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3284 printf "%s\n" "${_am_result}" >&6; }
3285
3286 # Check whether --enable-dependency-tracking was given.
3287 if test ${enable_dependency_tracking+y}
3288 then :
3289 enableval=$enable_dependency_tracking;
3290 fi
3291
3292 if test "x$enable_dependency_tracking" != xno; then
3293 am_depcomp="$ac_aux_dir/depcomp"
3294 AMDEPBACKSLASH='\'
3295 am__nodep='_no'
3296 fi
3297 if test "x$enable_dependency_tracking" != xno; then
3298 AMDEP_TRUE=
3299 AMDEP_FALSE='#'
3300 else
3301 AMDEP_TRUE='#'
3302 AMDEP_FALSE=
3303 fi
3304
3305
3306 ac_ext=c
3307 ac_cpp='$CPP $CPPFLAGS'
3308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311 if test -n "$ac_tool_prefix"; then
3312 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3313 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 printf %s "checking for $ac_word... " >&6; }
3316 if test ${ac_cv_prog_CC+y}
3317 then :
3318 printf %s "(cached) " >&6
3319 else $as_nop
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC="$CC" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326 IFS=$as_save_IFS
3327 case $as_dir in #(((
3328 '') as_dir=./ ;;
3329 */) ;;
3330 *) as_dir=$as_dir/ ;;
3331 esac
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3336 break 2
3337 fi
3338 done
3339 done
3340 IFS=$as_save_IFS
3341
3342 fi
3343 fi
3344 CC=$ac_cv_prog_CC
3345 if test -n "$CC"; then
3346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347 printf "%s\n" "$CC" >&6; }
3348 else
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 printf "%s\n" "no" >&6; }
3351 fi
3352
3353
3354 fi
3355 if test -z "$ac_cv_prog_CC"; then
3356 ac_ct_CC=$CC
3357 # Extract the first word of "gcc", so it can be a program name with args.
3358 set dummy gcc; ac_word=$2
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3360 printf %s "checking for $ac_word... " >&6; }
3361 if test ${ac_cv_prog_ac_ct_CC+y}
3362 then :
3363 printf %s "(cached) " >&6
3364 else $as_nop
3365 if test -n "$ac_ct_CC"; then
3366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3367 else
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3369 for as_dir in $PATH
3370 do
3371 IFS=$as_save_IFS
3372 case $as_dir in #(((
3373 '') as_dir=./ ;;
3374 */) ;;
3375 *) as_dir=$as_dir/ ;;
3376 esac
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3379 ac_cv_prog_ac_ct_CC="gcc"
3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3381 break 2
3382 fi
3383 done
3384 done
3385 IFS=$as_save_IFS
3386
3387 fi
3388 fi
3389 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3390 if test -n "$ac_ct_CC"; then
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3392 printf "%s\n" "$ac_ct_CC" >&6; }
3393 else
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 printf "%s\n" "no" >&6; }
3396 fi
3397
3398 if test "x$ac_ct_CC" = x; then
3399 CC=""
3400 else
3401 case $cross_compiling:$ac_tool_warned in
3402 yes:)
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3405 ac_tool_warned=yes ;;
3406 esac
3407 CC=$ac_ct_CC
3408 fi
3409 else
3410 CC="$ac_cv_prog_CC"
3411 fi
3412
3413 if test -z "$CC"; then
3414 if test -n "$ac_tool_prefix"; then
3415 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3416 set dummy ${ac_tool_prefix}cc; ac_word=$2
3417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 printf %s "checking for $ac_word... " >&6; }
3419 if test ${ac_cv_prog_CC+y}
3420 then :
3421 printf %s "(cached) " >&6
3422 else $as_nop
3423 if test -n "$CC"; then
3424 ac_cv_prog_CC="$CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429 IFS=$as_save_IFS
3430 case $as_dir in #(((
3431 '') as_dir=./ ;;
3432 */) ;;
3433 *) as_dir=$as_dir/ ;;
3434 esac
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3437 ac_cv_prog_CC="${ac_tool_prefix}cc"
3438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3439 break 2
3440 fi
3441 done
3442 done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 printf "%s\n" "$CC" >&6; }
3451 else
3452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 printf "%s\n" "no" >&6; }
3454 fi
3455
3456
3457 fi
3458 fi
3459 if test -z "$CC"; then
3460 # Extract the first word of "cc", so it can be a program name with args.
3461 set dummy cc; ac_word=$2
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 printf %s "checking for $ac_word... " >&6; }
3464 if test ${ac_cv_prog_CC+y}
3465 then :
3466 printf %s "(cached) " >&6
3467 else $as_nop
3468 if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 ac_prog_rejected=no
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475 IFS=$as_save_IFS
3476 case $as_dir in #(((
3477 '') as_dir=./ ;;
3478 */) ;;
3479 *) as_dir=$as_dir/ ;;
3480 esac
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3483 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3484 ac_prog_rejected=yes
3485 continue
3486 fi
3487 ac_cv_prog_CC="cc"
3488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3489 break 2
3490 fi
3491 done
3492 done
3493 IFS=$as_save_IFS
3494
3495 if test $ac_prog_rejected = yes; then
3496 # We found a bogon in the path, so make sure we never use it.
3497 set dummy $ac_cv_prog_CC
3498 shift
3499 if test $# != 0; then
3500 # We chose a different compiler from the bogus one.
3501 # However, it has the same basename, so the bogon will be chosen
3502 # first if we set CC to just the basename; use the full file name.
3503 shift
3504 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3505 fi
3506 fi
3507 fi
3508 fi
3509 CC=$ac_cv_prog_CC
3510 if test -n "$CC"; then
3511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512 printf "%s\n" "$CC" >&6; }
3513 else
3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 printf "%s\n" "no" >&6; }
3516 fi
3517
3518
3519 fi
3520 if test -z "$CC"; then
3521 if test -n "$ac_tool_prefix"; then
3522 for ac_prog in cl.exe
3523 do
3524 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3525 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3527 printf %s "checking for $ac_word... " >&6; }
3528 if test ${ac_cv_prog_CC+y}
3529 then :
3530 printf %s "(cached) " >&6
3531 else $as_nop
3532 if test -n "$CC"; then
3533 ac_cv_prog_CC="$CC" # Let the user override the test.
3534 else
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 for as_dir in $PATH
3537 do
3538 IFS=$as_save_IFS
3539 case $as_dir in #(((
3540 '') as_dir=./ ;;
3541 */) ;;
3542 *) as_dir=$as_dir/ ;;
3543 esac
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550 done
3551 done
3552 IFS=$as_save_IFS
3553
3554 fi
3555 fi
3556 CC=$ac_cv_prog_CC
3557 if test -n "$CC"; then
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3559 printf "%s\n" "$CC" >&6; }
3560 else
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 printf "%s\n" "no" >&6; }
3563 fi
3564
3565
3566 test -n "$CC" && break
3567 done
3568 fi
3569 if test -z "$CC"; then
3570 ac_ct_CC=$CC
3571 for ac_prog in cl.exe
3572 do
3573 # Extract the first word of "$ac_prog", so it can be a program name with args.
3574 set dummy $ac_prog; ac_word=$2
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 printf %s "checking for $ac_word... " >&6; }
3577 if test ${ac_cv_prog_ac_ct_CC+y}
3578 then :
3579 printf %s "(cached) " >&6
3580 else $as_nop
3581 if test -n "$ac_ct_CC"; then
3582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3583 else
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3586 do
3587 IFS=$as_save_IFS
3588 case $as_dir in #(((
3589 '') as_dir=./ ;;
3590 */) ;;
3591 *) as_dir=$as_dir/ ;;
3592 esac
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3595 ac_cv_prog_ac_ct_CC="$ac_prog"
3596 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3597 break 2
3598 fi
3599 done
3600 done
3601 IFS=$as_save_IFS
3602
3603 fi
3604 fi
3605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3606 if test -n "$ac_ct_CC"; then
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3608 printf "%s\n" "$ac_ct_CC" >&6; }
3609 else
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 printf "%s\n" "no" >&6; }
3612 fi
3613
3614
3615 test -n "$ac_ct_CC" && break
3616 done
3617
3618 if test "x$ac_ct_CC" = x; then
3619 CC=""
3620 else
3621 case $cross_compiling:$ac_tool_warned in
3622 yes:)
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625 ac_tool_warned=yes ;;
3626 esac
3627 CC=$ac_ct_CC
3628 fi
3629 fi
3630
3631 fi
3632 if test -z "$CC"; then
3633 if test -n "$ac_tool_prefix"; then
3634 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3635 set dummy ${ac_tool_prefix}clang; ac_word=$2
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637 printf %s "checking for $ac_word... " >&6; }
3638 if test ${ac_cv_prog_CC+y}
3639 then :
3640 printf %s "(cached) " >&6
3641 else $as_nop
3642 if test -n "$CC"; then
3643 ac_cv_prog_CC="$CC" # Let the user override the test.
3644 else
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
3648 IFS=$as_save_IFS
3649 case $as_dir in #(((
3650 '') as_dir=./ ;;
3651 */) ;;
3652 *) as_dir=$as_dir/ ;;
3653 esac
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3656 ac_cv_prog_CC="${ac_tool_prefix}clang"
3657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3658 break 2
3659 fi
3660 done
3661 done
3662 IFS=$as_save_IFS
3663
3664 fi
3665 fi
3666 CC=$ac_cv_prog_CC
3667 if test -n "$CC"; then
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3669 printf "%s\n" "$CC" >&6; }
3670 else
3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 printf "%s\n" "no" >&6; }
3673 fi
3674
3675
3676 fi
3677 if test -z "$ac_cv_prog_CC"; then
3678 ac_ct_CC=$CC
3679 # Extract the first word of "clang", so it can be a program name with args.
3680 set dummy clang; ac_word=$2
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682 printf %s "checking for $ac_word... " >&6; }
3683 if test ${ac_cv_prog_ac_ct_CC+y}
3684 then :
3685 printf %s "(cached) " >&6
3686 else $as_nop
3687 if test -n "$ac_ct_CC"; then
3688 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3689 else
3690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3691 for as_dir in $PATH
3692 do
3693 IFS=$as_save_IFS
3694 case $as_dir in #(((
3695 '') as_dir=./ ;;
3696 */) ;;
3697 *) as_dir=$as_dir/ ;;
3698 esac
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_ac_ct_CC="clang"
3702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3703 break 2
3704 fi
3705 done
3706 done
3707 IFS=$as_save_IFS
3708
3709 fi
3710 fi
3711 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3712 if test -n "$ac_ct_CC"; then
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3714 printf "%s\n" "$ac_ct_CC" >&6; }
3715 else
3716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 printf "%s\n" "no" >&6; }
3718 fi
3719
3720 if test "x$ac_ct_CC" = x; then
3721 CC=""
3722 else
3723 case $cross_compiling:$ac_tool_warned in
3724 yes:)
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3726 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3727 ac_tool_warned=yes ;;
3728 esac
3729 CC=$ac_ct_CC
3730 fi
3731 else
3732 CC="$ac_cv_prog_CC"
3733 fi
3734
3735 fi
3736
3737
3738 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3739 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3740 as_fn_error $? "no acceptable C compiler found in \$PATH
3741 See \`config.log' for more details" "$LINENO" 5; }
3742
3743 # Provide some information about the compiler.
3744 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3745 set X $ac_compile
3746 ac_compiler=$2
3747 for ac_option in --version -v -V -qversion -version; do
3748 { { ac_try="$ac_compiler $ac_option >&5"
3749 case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 printf "%s\n" "$ac_try_echo"; } >&5
3755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3756 ac_status=$?
3757 if test -s conftest.err; then
3758 sed '10a\
3759 ... rest of stderr output deleted ...
3760 10q' conftest.err >conftest.er1
3761 cat conftest.er1 >&5
3762 fi
3763 rm -f conftest.er1 conftest.err
3764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765 test $ac_status = 0; }
3766 done
3767
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3770
3771 int
3772 main (void)
3773 {
3774
3775 ;
3776 return 0;
3777 }
3778 _ACEOF
3779 ac_clean_files_save=$ac_clean_files
3780 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3781 # Try to create an executable without -o first, disregard a.out.
3782 # It will help us diagnose broken compilers, and finding out an intuition
3783 # of exeext.
3784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3785 printf %s "checking whether the C compiler works... " >&6; }
3786 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3787
3788 # The possible output files:
3789 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3790
3791 ac_rmfiles=
3792 for ac_file in $ac_files
3793 do
3794 case $ac_file in
3795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3796 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3797 esac
3798 done
3799 rm -f $ac_rmfiles
3800
3801 if { { ac_try="$ac_link_default"
3802 case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 printf "%s\n" "$ac_try_echo"; } >&5
3808 (eval "$ac_link_default") 2>&5
3809 ac_status=$?
3810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }
3812 then :
3813 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3814 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3815 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3816 # so that the user can short-circuit this test for compilers unknown to
3817 # Autoconf.
3818 for ac_file in $ac_files ''
3819 do
3820 test -f "$ac_file" || continue
3821 case $ac_file in
3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3823 ;;
3824 [ab].out )
3825 # We found the default executable, but exeext='' is most
3826 # certainly right.
3827 break;;
3828 *.* )
3829 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3830 then :; else
3831 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3832 fi
3833 # We set ac_cv_exeext here because the later test for it is not
3834 # safe: cross compilers may not add the suffix if given an `-o'
3835 # argument, so we may need to know it at that point already.
3836 # Even if this section looks crufty: it has the advantage of
3837 # actually working.
3838 break;;
3839 * )
3840 break;;
3841 esac
3842 done
3843 test "$ac_cv_exeext" = no && ac_cv_exeext=
3844
3845 else $as_nop
3846 ac_file=''
3847 fi
3848 if test -z "$ac_file"
3849 then :
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851 printf "%s\n" "no" >&6; }
3852 printf "%s\n" "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3854
3855 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3856 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3857 as_fn_error 77 "C compiler cannot create executables
3858 See \`config.log' for more details" "$LINENO" 5; }
3859 else $as_nop
3860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3861 printf "%s\n" "yes" >&6; }
3862 fi
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3864 printf %s "checking for C compiler default output file name... " >&6; }
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3866 printf "%s\n" "$ac_file" >&6; }
3867 ac_exeext=$ac_cv_exeext
3868
3869 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3870 ac_clean_files=$ac_clean_files_save
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3872 printf %s "checking for suffix of executables... " >&6; }
3873 if { { ac_try="$ac_link"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879 printf "%s\n" "$ac_try_echo"; } >&5
3880 (eval "$ac_link") 2>&5
3881 ac_status=$?
3882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883 test $ac_status = 0; }
3884 then :
3885 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3886 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3887 # work properly (i.e., refer to `conftest.exe'), while it won't with
3888 # `rm'.
3889 for ac_file in conftest.exe conftest conftest.*; do
3890 test -f "$ac_file" || continue
3891 case $ac_file in
3892 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3893 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3894 break;;
3895 * ) break;;
3896 esac
3897 done
3898 else $as_nop
3899 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3900 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3901 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3902 See \`config.log' for more details" "$LINENO" 5; }
3903 fi
3904 rm -f conftest conftest$ac_cv_exeext
3905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3906 printf "%s\n" "$ac_cv_exeext" >&6; }
3907
3908 rm -f conftest.$ac_ext
3909 EXEEXT=$ac_cv_exeext
3910 ac_exeext=$EXEEXT
3911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3912 /* end confdefs.h. */
3913 #include <stdio.h>
3914 int
3915 main (void)
3916 {
3917 FILE *f = fopen ("conftest.out", "w");
3918 return ferror (f) || fclose (f) != 0;
3919
3920 ;
3921 return 0;
3922 }
3923 _ACEOF
3924 ac_clean_files="$ac_clean_files conftest.out"
3925 # Check that the compiler produces executables we can run. If not, either
3926 # the compiler is broken, or we cross compile.
3927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3928 printf %s "checking whether we are cross compiling... " >&6; }
3929 if test "$cross_compiling" != yes; then
3930 { { ac_try="$ac_link"
3931 case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 printf "%s\n" "$ac_try_echo"; } >&5
3937 (eval "$ac_link") 2>&5
3938 ac_status=$?
3939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }
3941 if { ac_try='./conftest$ac_cv_exeext'
3942 { { case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945 esac
3946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947 printf "%s\n" "$ac_try_echo"; } >&5
3948 (eval "$ac_try") 2>&5
3949 ac_status=$?
3950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3951 test $ac_status = 0; }; }; then
3952 cross_compiling=no
3953 else
3954 if test "$cross_compiling" = maybe; then
3955 cross_compiling=yes
3956 else
3957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error 77 "cannot run C compiled programs.
3960 If you meant to cross compile, use \`--host'.
3961 See \`config.log' for more details" "$LINENO" 5; }
3962 fi
3963 fi
3964 fi
3965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3966 printf "%s\n" "$cross_compiling" >&6; }
3967
3968 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3969 ac_clean_files=$ac_clean_files_save
3970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3971 printf %s "checking for suffix of object files... " >&6; }
3972 if test ${ac_cv_objext+y}
3973 then :
3974 printf %s "(cached) " >&6
3975 else $as_nop
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3978
3979 int
3980 main (void)
3981 {
3982
3983 ;
3984 return 0;
3985 }
3986 _ACEOF
3987 rm -f conftest.o conftest.obj
3988 if { { ac_try="$ac_compile"
3989 case "(($ac_try" in
3990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3991 *) ac_try_echo=$ac_try;;
3992 esac
3993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3994 printf "%s\n" "$ac_try_echo"; } >&5
3995 (eval "$ac_compile") 2>&5
3996 ac_status=$?
3997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3998 test $ac_status = 0; }
3999 then :
4000 for ac_file in conftest.o conftest.obj conftest.*; do
4001 test -f "$ac_file" || continue;
4002 case $ac_file in
4003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4004 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4005 break;;
4006 esac
4007 done
4008 else $as_nop
4009 printf "%s\n" "$as_me: failed program was:" >&5
4010 sed 's/^/| /' conftest.$ac_ext >&5
4011
4012 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4013 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4014 as_fn_error $? "cannot compute suffix of object files: cannot compile
4015 See \`config.log' for more details" "$LINENO" 5; }
4016 fi
4017 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4018 fi
4019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4020 printf "%s\n" "$ac_cv_objext" >&6; }
4021 OBJEXT=$ac_cv_objext
4022 ac_objext=$OBJEXT
4023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4024 printf %s "checking whether the compiler supports GNU C... " >&6; }
4025 if test ${ac_cv_c_compiler_gnu+y}
4026 then :
4027 printf %s "(cached) " >&6
4028 else $as_nop
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4031
4032 int
4033 main (void)
4034 {
4035 #ifndef __GNUC__
4036 choke me
4037 #endif
4038
4039 ;
4040 return 0;
4041 }
4042 _ACEOF
4043 if ac_fn_c_try_compile "$LINENO"
4044 then :
4045 ac_compiler_gnu=yes
4046 else $as_nop
4047 ac_compiler_gnu=no
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4050 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4051
4052 fi
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4054 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4055 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4056
4057 if test $ac_compiler_gnu = yes; then
4058 GCC=yes
4059 else
4060 GCC=
4061 fi
4062 ac_test_CFLAGS=${CFLAGS+y}
4063 ac_save_CFLAGS=$CFLAGS
4064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4065 printf %s "checking whether $CC accepts -g... " >&6; }
4066 if test ${ac_cv_prog_cc_g+y}
4067 then :
4068 printf %s "(cached) " >&6
4069 else $as_nop
4070 ac_save_c_werror_flag=$ac_c_werror_flag
4071 ac_c_werror_flag=yes
4072 ac_cv_prog_cc_g=no
4073 CFLAGS="-g"
4074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4075 /* end confdefs.h. */
4076
4077 int
4078 main (void)
4079 {
4080
4081 ;
4082 return 0;
4083 }
4084 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"
4086 then :
4087 ac_cv_prog_cc_g=yes
4088 else $as_nop
4089 CFLAGS=""
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092
4093 int
4094 main (void)
4095 {
4096
4097 ;
4098 return 0;
4099 }
4100 _ACEOF
4101 if ac_fn_c_try_compile "$LINENO"
4102 then :
4103
4104 else $as_nop
4105 ac_c_werror_flag=$ac_save_c_werror_flag
4106 CFLAGS="-g"
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4109
4110 int
4111 main (void)
4112 {
4113
4114 ;
4115 return 0;
4116 }
4117 _ACEOF
4118 if ac_fn_c_try_compile "$LINENO"
4119 then :
4120 ac_cv_prog_cc_g=yes
4121 fi
4122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4123 fi
4124 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4127 ac_c_werror_flag=$ac_save_c_werror_flag
4128 fi
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4130 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4131 if test $ac_test_CFLAGS; then
4132 CFLAGS=$ac_save_CFLAGS
4133 elif test $ac_cv_prog_cc_g = yes; then
4134 if test "$GCC" = yes; then
4135 CFLAGS="-g -O2"
4136 else
4137 CFLAGS="-g"
4138 fi
4139 else
4140 if test "$GCC" = yes; then
4141 CFLAGS="-O2"
4142 else
4143 CFLAGS=
4144 fi
4145 fi
4146 ac_prog_cc_stdc=no
4147 if test x$ac_prog_cc_stdc = xno
4148 then :
4149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4150 printf %s "checking for $CC option to enable C11 features... " >&6; }
4151 if test ${ac_cv_prog_cc_c11+y}
4152 then :
4153 printf %s "(cached) " >&6
4154 else $as_nop
4155 ac_cv_prog_cc_c11=no
4156 ac_save_CC=$CC
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h. */
4159 $ac_c_conftest_c11_program
4160 _ACEOF
4161 for ac_arg in '' -std=gnu11
4162 do
4163 CC="$ac_save_CC $ac_arg"
4164 if ac_fn_c_try_compile "$LINENO"
4165 then :
4166 ac_cv_prog_cc_c11=$ac_arg
4167 fi
4168 rm -f core conftest.err conftest.$ac_objext conftest.beam
4169 test "x$ac_cv_prog_cc_c11" != "xno" && break
4170 done
4171 rm -f conftest.$ac_ext
4172 CC=$ac_save_CC
4173 fi
4174
4175 if test "x$ac_cv_prog_cc_c11" = xno
4176 then :
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4178 printf "%s\n" "unsupported" >&6; }
4179 else $as_nop
4180 if test "x$ac_cv_prog_cc_c11" = x
4181 then :
4182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4183 printf "%s\n" "none needed" >&6; }
4184 else $as_nop
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4186 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4187 CC="$CC $ac_cv_prog_cc_c11"
4188 fi
4189 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4190 ac_prog_cc_stdc=c11
4191 fi
4192 fi
4193 if test x$ac_prog_cc_stdc = xno
4194 then :
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4196 printf %s "checking for $CC option to enable C99 features... " >&6; }
4197 if test ${ac_cv_prog_cc_c99+y}
4198 then :
4199 printf %s "(cached) " >&6
4200 else $as_nop
4201 ac_cv_prog_cc_c99=no
4202 ac_save_CC=$CC
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204 /* end confdefs.h. */
4205 $ac_c_conftest_c99_program
4206 _ACEOF
4207 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4208 do
4209 CC="$ac_save_CC $ac_arg"
4210 if ac_fn_c_try_compile "$LINENO"
4211 then :
4212 ac_cv_prog_cc_c99=$ac_arg
4213 fi
4214 rm -f core conftest.err conftest.$ac_objext conftest.beam
4215 test "x$ac_cv_prog_cc_c99" != "xno" && break
4216 done
4217 rm -f conftest.$ac_ext
4218 CC=$ac_save_CC
4219 fi
4220
4221 if test "x$ac_cv_prog_cc_c99" = xno
4222 then :
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4224 printf "%s\n" "unsupported" >&6; }
4225 else $as_nop
4226 if test "x$ac_cv_prog_cc_c99" = x
4227 then :
4228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4229 printf "%s\n" "none needed" >&6; }
4230 else $as_nop
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4232 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4233 CC="$CC $ac_cv_prog_cc_c99"
4234 fi
4235 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4236 ac_prog_cc_stdc=c99
4237 fi
4238 fi
4239 if test x$ac_prog_cc_stdc = xno
4240 then :
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4242 printf %s "checking for $CC option to enable C89 features... " >&6; }
4243 if test ${ac_cv_prog_cc_c89+y}
4244 then :
4245 printf %s "(cached) " >&6
4246 else $as_nop
4247 ac_cv_prog_cc_c89=no
4248 ac_save_CC=$CC
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 $ac_c_conftest_c89_program
4252 _ACEOF
4253 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4254 do
4255 CC="$ac_save_CC $ac_arg"
4256 if ac_fn_c_try_compile "$LINENO"
4257 then :
4258 ac_cv_prog_cc_c89=$ac_arg
4259 fi
4260 rm -f core conftest.err conftest.$ac_objext conftest.beam
4261 test "x$ac_cv_prog_cc_c89" != "xno" && break
4262 done
4263 rm -f conftest.$ac_ext
4264 CC=$ac_save_CC
4265 fi
4266
4267 if test "x$ac_cv_prog_cc_c89" = xno
4268 then :
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4270 printf "%s\n" "unsupported" >&6; }
4271 else $as_nop
4272 if test "x$ac_cv_prog_cc_c89" = x
4273 then :
4274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4275 printf "%s\n" "none needed" >&6; }
4276 else $as_nop
4277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4278 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4279 CC="$CC $ac_cv_prog_cc_c89"
4280 fi
4281 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4282 ac_prog_cc_stdc=c89
4283 fi
4284 fi
4285
4286 ac_ext=c
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291
4292
4293 ac_ext=c
4294 ac_cpp='$CPP $CPPFLAGS'
4295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4299 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4300 if test ${am_cv_prog_cc_c_o+y}
4301 then :
4302 printf %s "(cached) " >&6
4303 else $as_nop
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306
4307 int
4308 main (void)
4309 {
4310
4311 ;
4312 return 0;
4313 }
4314 _ACEOF
4315 # Make sure it works both with $CC and with simple cc.
4316 # Following AC_PROG_CC_C_O, we do the test twice because some
4317 # compilers refuse to overwrite an existing .o file with -o,
4318 # though they will create one.
4319 am_cv_prog_cc_c_o=yes
4320 for am_i in 1 2; do
4321 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4322 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4323 ac_status=$?
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } \
4326 && test -f conftest2.$ac_objext; then
4327 : OK
4328 else
4329 am_cv_prog_cc_c_o=no
4330 break
4331 fi
4332 done
4333 rm -f core conftest*
4334 unset am_i
4335 fi
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4337 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4338 if test "$am_cv_prog_cc_c_o" != yes; then
4339 # Losing compiler, so override with the script.
4340 # FIXME: It is wrong to rewrite CC.
4341 # But if we don't then we get into trouble of one sort or another.
4342 # A longer-term fix would be to have automake use am__CC in this case,
4343 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4344 CC="$am_aux_dir/compile $CC"
4345 fi
4346 ac_ext=c
4347 ac_cpp='$CPP $CPPFLAGS'
4348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4351
4352
4353 depcc="$CC" am_compiler_list=
4354
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4356 printf %s "checking dependency style of $depcc... " >&6; }
4357 if test ${am_cv_CC_dependencies_compiler_type+y}
4358 then :
4359 printf %s "(cached) " >&6
4360 else $as_nop
4361 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4362 # We make a subdir and do the tests there. Otherwise we can end up
4363 # making bogus files that we don't know about and never remove. For
4364 # instance it was reported that on HP-UX the gcc test will end up
4365 # making a dummy file named 'D' -- because '-MD' means "put the output
4366 # in D".
4367 rm -rf conftest.dir
4368 mkdir conftest.dir
4369 # Copy depcomp to subdir because otherwise we won't find it if we're
4370 # using a relative directory.
4371 cp "$am_depcomp" conftest.dir
4372 cd conftest.dir
4373 # We will build objects and dependencies in a subdirectory because
4374 # it helps to detect inapplicable dependency modes. For instance
4375 # both Tru64's cc and ICC support -MD to output dependencies as a
4376 # side effect of compilation, but ICC will put the dependencies in
4377 # the current directory while Tru64 will put them in the object
4378 # directory.
4379 mkdir sub
4380
4381 am_cv_CC_dependencies_compiler_type=none
4382 if test "$am_compiler_list" = ""; then
4383 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4384 fi
4385 am__universal=false
4386 case " $depcc " in #(
4387 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4388 esac
4389
4390 for depmode in $am_compiler_list; do
4391 # Setup a source with many dependencies, because some compilers
4392 # like to wrap large dependency lists on column 80 (with \), and
4393 # we should not choose a depcomp mode which is confused by this.
4394 #
4395 # We need to recreate these files for each test, as the compiler may
4396 # overwrite some of them when testing with obscure command lines.
4397 # This happens at least with the AIX C compiler.
4398 : > sub/conftest.c
4399 for i in 1 2 3 4 5 6; do
4400 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4401 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4402 # Solaris 10 /bin/sh.
4403 echo '/* dummy */' > sub/conftst$i.h
4404 done
4405 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4406
4407 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4408 # mode. It turns out that the SunPro C++ compiler does not properly
4409 # handle '-M -o', and we need to detect this. Also, some Intel
4410 # versions had trouble with output in subdirs.
4411 am__obj=sub/conftest.${OBJEXT-o}
4412 am__minus_obj="-o $am__obj"
4413 case $depmode in
4414 gcc)
4415 # This depmode causes a compiler race in universal mode.
4416 test "$am__universal" = false || continue
4417 ;;
4418 nosideeffect)
4419 # After this tag, mechanisms are not by side-effect, so they'll
4420 # only be used when explicitly requested.
4421 if test "x$enable_dependency_tracking" = xyes; then
4422 continue
4423 else
4424 break
4425 fi
4426 ;;
4427 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4428 # This compiler won't grok '-c -o', but also, the minuso test has
4429 # not run yet. These depmodes are late enough in the game, and
4430 # so weak that their functioning should not be impacted.
4431 am__obj=conftest.${OBJEXT-o}
4432 am__minus_obj=
4433 ;;
4434 none) break ;;
4435 esac
4436 if depmode=$depmode \
4437 source=sub/conftest.c object=$am__obj \
4438 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4439 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4440 >/dev/null 2>conftest.err &&
4441 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4442 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4443 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4444 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4445 # icc doesn't choke on unknown options, it will just issue warnings
4446 # or remarks (even with -Werror). So we grep stderr for any message
4447 # that says an option was ignored or not supported.
4448 # When given -MP, icc 7.0 and 7.1 complain thusly:
4449 # icc: Command line warning: ignoring option '-M'; no argument required
4450 # The diagnosis changed in icc 8.0:
4451 # icc: Command line remark: option '-MP' not supported
4452 if (grep 'ignoring option' conftest.err ||
4453 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4454 am_cv_CC_dependencies_compiler_type=$depmode
4455 break
4456 fi
4457 fi
4458 done
4459
4460 cd ..
4461 rm -rf conftest.dir
4462 else
4463 am_cv_CC_dependencies_compiler_type=none
4464 fi
4465
4466 fi
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4468 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4469 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4470
4471 if
4472 test "x$enable_dependency_tracking" != xno \
4473 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4474 am__fastdepCC_TRUE=
4475 am__fastdepCC_FALSE='#'
4476 else
4477 am__fastdepCC_TRUE='#'
4478 am__fastdepCC_FALSE=
4479 fi
4480
4481
4482
4483
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4485 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4486 if test ${ac_cv_c_undeclared_builtin_options+y}
4487 then :
4488 printf %s "(cached) " >&6
4489 else $as_nop
4490 ac_save_CFLAGS=$CFLAGS
4491 ac_cv_c_undeclared_builtin_options='cannot detect'
4492 for ac_arg in '' -fno-builtin; do
4493 CFLAGS="$ac_save_CFLAGS $ac_arg"
4494 # This test program should *not* compile successfully.
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497
4498 int
4499 main (void)
4500 {
4501 (void) strchr;
4502 ;
4503 return 0;
4504 }
4505 _ACEOF
4506 if ac_fn_c_try_compile "$LINENO"
4507 then :
4508
4509 else $as_nop
4510 # This test program should compile successfully.
4511 # No library function is consistently available on
4512 # freestanding implementations, so test against a dummy
4513 # declaration. Include always-available headers on the
4514 # off chance that they somehow elicit warnings.
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4517 #include <float.h>
4518 #include <limits.h>
4519 #include <stdarg.h>
4520 #include <stddef.h>
4521 extern void ac_decl (int, char *);
4522
4523 int
4524 main (void)
4525 {
4526 (void) ac_decl (0, (char *) 0);
4527 (void) ac_decl;
4528
4529 ;
4530 return 0;
4531 }
4532 _ACEOF
4533 if ac_fn_c_try_compile "$LINENO"
4534 then :
4535 if test x"$ac_arg" = x
4536 then :
4537 ac_cv_c_undeclared_builtin_options='none needed'
4538 else $as_nop
4539 ac_cv_c_undeclared_builtin_options=$ac_arg
4540 fi
4541 break
4542 fi
4543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4544 fi
4545 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4546 done
4547 CFLAGS=$ac_save_CFLAGS
4548
4549 fi
4550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4551 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4552 case $ac_cv_c_undeclared_builtin_options in #(
4553 'cannot detect') :
4554 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4555 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4556 as_fn_error $? "cannot make $CC report undeclared builtins
4557 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4558 'none needed') :
4559 ac_c_undeclared_builtin_options='' ;; #(
4560 *) :
4561 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4562 esac
4563
4564 ac_header= ac_cache=
4565 for ac_item in $ac_header_c_list
4566 do
4567 if test $ac_cache; then
4568 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4569 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4570 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4571 fi
4572 ac_header= ac_cache=
4573 elif test $ac_header; then
4574 ac_cache=$ac_item
4575 else
4576 ac_header=$ac_item
4577 fi
4578 done
4579
4580
4581
4582
4583
4584
4585
4586
4587 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4588 then :
4589
4590 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4591
4592 fi
4593
4594
4595
4596
4597 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4598 if test "x$ac_cv_have_decl___clang__" = xyes
4599 then :
4600 CLANGCC="yes"
4601 else $as_nop
4602 CLANGCC="no"
4603 fi
4604 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4605 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4606 then :
4607 INTELCC="yes"
4608 else $as_nop
4609 INTELCC="no"
4610 fi
4611 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4612 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4613 then :
4614 SUNCC="yes"
4615 else $as_nop
4616 SUNCC="no"
4617 fi
4618
4619
4620
4621
4622
4623
4624
4625
4626 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4627 if test -n "$ac_tool_prefix"; then
4628 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4629 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4631 printf %s "checking for $ac_word... " >&6; }
4632 if test ${ac_cv_path_PKG_CONFIG+y}
4633 then :
4634 printf %s "(cached) " >&6
4635 else $as_nop
4636 case $PKG_CONFIG in
4637 [\\/]* | ?:[\\/]*)
4638 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4639 ;;
4640 *)
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644 IFS=$as_save_IFS
4645 case $as_dir in #(((
4646 '') as_dir=./ ;;
4647 */) ;;
4648 *) as_dir=$as_dir/ ;;
4649 esac
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4652 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4654 break 2
4655 fi
4656 done
4657 done
4658 IFS=$as_save_IFS
4659
4660 ;;
4661 esac
4662 fi
4663 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4664 if test -n "$PKG_CONFIG"; then
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4666 printf "%s\n" "$PKG_CONFIG" >&6; }
4667 else
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4669 printf "%s\n" "no" >&6; }
4670 fi
4671
4672
4673 fi
4674 if test -z "$ac_cv_path_PKG_CONFIG"; then
4675 ac_pt_PKG_CONFIG=$PKG_CONFIG
4676 # Extract the first word of "pkg-config", so it can be a program name with args.
4677 set dummy pkg-config; ac_word=$2
4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4679 printf %s "checking for $ac_word... " >&6; }
4680 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4681 then :
4682 printf %s "(cached) " >&6
4683 else $as_nop
4684 case $ac_pt_PKG_CONFIG in
4685 [\\/]* | ?:[\\/]*)
4686 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4687 ;;
4688 *)
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4691 do
4692 IFS=$as_save_IFS
4693 case $as_dir in #(((
4694 '') as_dir=./ ;;
4695 */) ;;
4696 *) as_dir=$as_dir/ ;;
4697 esac
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4700 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4702 break 2
4703 fi
4704 done
4705 done
4706 IFS=$as_save_IFS
4707
4708 ;;
4709 esac
4710 fi
4711 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4712 if test -n "$ac_pt_PKG_CONFIG"; then
4713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4714 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4715 else
4716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 printf "%s\n" "no" >&6; }
4718 fi
4719
4720 if test "x$ac_pt_PKG_CONFIG" = x; then
4721 PKG_CONFIG=""
4722 else
4723 case $cross_compiling:$ac_tool_warned in
4724 yes:)
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4726 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4727 ac_tool_warned=yes ;;
4728 esac
4729 PKG_CONFIG=$ac_pt_PKG_CONFIG
4730 fi
4731 else
4732 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4733 fi
4734
4735 fi
4736 if test -n "$PKG_CONFIG"; then
4737 _pkg_min_version=0.9.0
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4739 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4740 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4742 printf "%s\n" "yes" >&6; }
4743 else
4744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4745 printf "%s\n" "no" >&6; }
4746 PKG_CONFIG=""
4747 fi
4748 fi
4749
4750
4751 # Make sure we can run config.sub.
4752 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4753 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4754
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4756 printf %s "checking build system type... " >&6; }
4757 if test ${ac_cv_build+y}
4758 then :
4759 printf %s "(cached) " >&6
4760 else $as_nop
4761 ac_build_alias=$build_alias
4762 test "x$ac_build_alias" = x &&
4763 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4764 test "x$ac_build_alias" = x &&
4765 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4766 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4767 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4768
4769 fi
4770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4771 printf "%s\n" "$ac_cv_build" >&6; }
4772 case $ac_cv_build in
4773 *-*-*) ;;
4774 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4775 esac
4776 build=$ac_cv_build
4777 ac_save_IFS=$IFS; IFS='-'
4778 set x $ac_cv_build
4779 shift
4780 build_cpu=$1
4781 build_vendor=$2
4782 shift; shift
4783 # Remember, the first character of IFS is used to create $*,
4784 # except with old shells:
4785 build_os=$*
4786 IFS=$ac_save_IFS
4787 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4788
4789
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4791 printf %s "checking host system type... " >&6; }
4792 if test ${ac_cv_host+y}
4793 then :
4794 printf %s "(cached) " >&6
4795 else $as_nop
4796 if test "x$host_alias" = x; then
4797 ac_cv_host=$ac_cv_build
4798 else
4799 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4800 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4801 fi
4802
4803 fi
4804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4805 printf "%s\n" "$ac_cv_host" >&6; }
4806 case $ac_cv_host in
4807 *-*-*) ;;
4808 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4809 esac
4810 host=$ac_cv_host
4811 ac_save_IFS=$IFS; IFS='-'
4812 set x $ac_cv_host
4813 shift
4814 host_cpu=$1
4815 host_vendor=$2
4816 shift; shift
4817 # Remember, the first character of IFS is used to create $*,
4818 # except with old shells:
4819 host_os=$*
4820 IFS=$ac_save_IFS
4821 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4822
4823
4824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4825 printf %s "checking for a sed that does not truncate output... " >&6; }
4826 if test ${ac_cv_path_SED+y}
4827 then :
4828 printf %s "(cached) " >&6
4829 else $as_nop
4830 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4831 for ac_i in 1 2 3 4 5 6 7; do
4832 ac_script="$ac_script$as_nl$ac_script"
4833 done
4834 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4835 { ac_script=; unset ac_script;}
4836 if test -z "$SED"; then
4837 ac_path_SED_found=false
4838 # Loop through the user's path and test for each of PROGNAME-LIST
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4841 do
4842 IFS=$as_save_IFS
4843 case $as_dir in #(((
4844 '') as_dir=./ ;;
4845 */) ;;
4846 *) as_dir=$as_dir/ ;;
4847 esac
4848 for ac_prog in sed gsed
4849 do
4850 for ac_exec_ext in '' $ac_executable_extensions; do
4851 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4852 as_fn_executable_p "$ac_path_SED" || continue
4853 # Check for GNU ac_path_SED and select it if it is found.
4854 # Check for GNU $ac_path_SED
4855 case `"$ac_path_SED" --version 2>&1` in
4856 *GNU*)
4857 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4858 *)
4859 ac_count=0
4860 printf %s 0123456789 >"conftest.in"
4861 while :
4862 do
4863 cat "conftest.in" "conftest.in" >"conftest.tmp"
4864 mv "conftest.tmp" "conftest.in"
4865 cp "conftest.in" "conftest.nl"
4866 printf "%s\n" '' >> "conftest.nl"
4867 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4869 as_fn_arith $ac_count + 1 && ac_count=$as_val
4870 if test $ac_count -gt ${ac_path_SED_max-0}; then
4871 # Best one so far, save it but keep looking for a better one
4872 ac_cv_path_SED="$ac_path_SED"
4873 ac_path_SED_max=$ac_count
4874 fi
4875 # 10*(2^10) chars as input seems more than enough
4876 test $ac_count -gt 10 && break
4877 done
4878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4879 esac
4880
4881 $ac_path_SED_found && break 3
4882 done
4883 done
4884 done
4885 IFS=$as_save_IFS
4886 if test -z "$ac_cv_path_SED"; then
4887 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4888 fi
4889 else
4890 ac_cv_path_SED=$SED
4891 fi
4892
4893 fi
4894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4895 printf "%s\n" "$ac_cv_path_SED" >&6; }
4896 SED="$ac_cv_path_SED"
4897 rm -f conftest.sed
4898
4899
4900
4901
4902
4903
4904 # Check whether --enable-selective-werror was given.
4905 if test ${enable_selective_werror+y}
4906 then :
4907 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4908 else $as_nop
4909 SELECTIVE_WERROR=yes
4910 fi
4911
4912
4913
4914
4915
4916 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4917 if test "x$SUNCC" = "xyes"; then
4918 BASE_CFLAGS="-v"
4919 else
4920 BASE_CFLAGS=""
4921 fi
4922
4923 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937 xorg_testset_save_CFLAGS="$CFLAGS"
4938
4939 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4942 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4943 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4944 then :
4945 printf %s "(cached) " >&6
4946 else $as_nop
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4949 int i;
4950 _ACEOF
4951 if ac_fn_c_try_compile "$LINENO"
4952 then :
4953 xorg_cv_cc_flag_unknown_warning_option=yes
4954 else $as_nop
4955 xorg_cv_cc_flag_unknown_warning_option=no
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4958 fi
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4960 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4961 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4962 CFLAGS="$xorg_testset_save_CFLAGS"
4963 fi
4964
4965 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4968 fi
4969 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4971 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4972 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4973 then :
4974 printf %s "(cached) " >&6
4975 else $as_nop
4976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4977 /* end confdefs.h. */
4978 int i;
4979 _ACEOF
4980 if ac_fn_c_try_compile "$LINENO"
4981 then :
4982 xorg_cv_cc_flag_unused_command_line_argument=yes
4983 else $as_nop
4984 xorg_cv_cc_flag_unused_command_line_argument=no
4985 fi
4986 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4987 fi
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4989 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4990 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4991 CFLAGS="$xorg_testset_save_CFLAGS"
4992 fi
4993
4994 found="no"
4995
4996 if test $found = "no" ; then
4997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4999 fi
5000
5001 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5002 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5003 fi
5004
5005 CFLAGS="$CFLAGS -Wall"
5006
5007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5008 printf %s "checking if $CC supports -Wall... " >&6; }
5009 cacheid=xorg_cv_cc_flag__Wall
5010 if eval test \${$cacheid+y}
5011 then :
5012 printf %s "(cached) " >&6
5013 else $as_nop
5014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5015 /* end confdefs.h. */
5016 int i;
5017 int
5018 main (void)
5019 {
5020
5021 ;
5022 return 0;
5023 }
5024 _ACEOF
5025 if ac_fn_c_try_link "$LINENO"
5026 then :
5027 eval $cacheid=yes
5028 else $as_nop
5029 eval $cacheid=no
5030 fi
5031 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5032 conftest$ac_exeext conftest.$ac_ext
5033 fi
5034
5035
5036 CFLAGS="$xorg_testset_save_CFLAGS"
5037
5038 eval supported=\$$cacheid
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5040 printf "%s\n" "$supported" >&6; }
5041 if test "$supported" = "yes" ; then
5042 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5043 found="yes"
5044 fi
5045 fi
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061 xorg_testset_save_CFLAGS="$CFLAGS"
5062
5063 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5066 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5067 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5068 then :
5069 printf %s "(cached) " >&6
5070 else $as_nop
5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072 /* end confdefs.h. */
5073 int i;
5074 _ACEOF
5075 if ac_fn_c_try_compile "$LINENO"
5076 then :
5077 xorg_cv_cc_flag_unknown_warning_option=yes
5078 else $as_nop
5079 xorg_cv_cc_flag_unknown_warning_option=no
5080 fi
5081 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5082 fi
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5084 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5086 CFLAGS="$xorg_testset_save_CFLAGS"
5087 fi
5088
5089 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5092 fi
5093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5095 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5096 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5097 then :
5098 printf %s "(cached) " >&6
5099 else $as_nop
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102 int i;
5103 _ACEOF
5104 if ac_fn_c_try_compile "$LINENO"
5105 then :
5106 xorg_cv_cc_flag_unused_command_line_argument=yes
5107 else $as_nop
5108 xorg_cv_cc_flag_unused_command_line_argument=no
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5111 fi
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5113 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5115 CFLAGS="$xorg_testset_save_CFLAGS"
5116 fi
5117
5118 found="no"
5119
5120 if test $found = "no" ; then
5121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5123 fi
5124
5125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5127 fi
5128
5129 CFLAGS="$CFLAGS -Wpointer-arith"
5130
5131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5132 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5133 cacheid=xorg_cv_cc_flag__Wpointer_arith
5134 if eval test \${$cacheid+y}
5135 then :
5136 printf %s "(cached) " >&6
5137 else $as_nop
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h. */
5140 int i;
5141 int
5142 main (void)
5143 {
5144
5145 ;
5146 return 0;
5147 }
5148 _ACEOF
5149 if ac_fn_c_try_link "$LINENO"
5150 then :
5151 eval $cacheid=yes
5152 else $as_nop
5153 eval $cacheid=no
5154 fi
5155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5156 conftest$ac_exeext conftest.$ac_ext
5157 fi
5158
5159
5160 CFLAGS="$xorg_testset_save_CFLAGS"
5161
5162 eval supported=\$$cacheid
5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5164 printf "%s\n" "$supported" >&6; }
5165 if test "$supported" = "yes" ; then
5166 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5167 found="yes"
5168 fi
5169 fi
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185 xorg_testset_save_CFLAGS="$CFLAGS"
5186
5187 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5190 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5191 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5192 then :
5193 printf %s "(cached) " >&6
5194 else $as_nop
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5197 int i;
5198 _ACEOF
5199 if ac_fn_c_try_compile "$LINENO"
5200 then :
5201 xorg_cv_cc_flag_unknown_warning_option=yes
5202 else $as_nop
5203 xorg_cv_cc_flag_unknown_warning_option=no
5204 fi
5205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5206 fi
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5208 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5210 CFLAGS="$xorg_testset_save_CFLAGS"
5211 fi
5212
5213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5216 fi
5217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5219 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5220 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5221 then :
5222 printf %s "(cached) " >&6
5223 else $as_nop
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5226 int i;
5227 _ACEOF
5228 if ac_fn_c_try_compile "$LINENO"
5229 then :
5230 xorg_cv_cc_flag_unused_command_line_argument=yes
5231 else $as_nop
5232 xorg_cv_cc_flag_unused_command_line_argument=no
5233 fi
5234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5235 fi
5236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5237 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5239 CFLAGS="$xorg_testset_save_CFLAGS"
5240 fi
5241
5242 found="no"
5243
5244 if test $found = "no" ; then
5245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5247 fi
5248
5249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5251 fi
5252
5253 CFLAGS="$CFLAGS -Wmissing-declarations"
5254
5255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5256 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5257 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5258 if eval test \${$cacheid+y}
5259 then :
5260 printf %s "(cached) " >&6
5261 else $as_nop
5262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263 /* end confdefs.h. */
5264 int i;
5265 int
5266 main (void)
5267 {
5268
5269 ;
5270 return 0;
5271 }
5272 _ACEOF
5273 if ac_fn_c_try_link "$LINENO"
5274 then :
5275 eval $cacheid=yes
5276 else $as_nop
5277 eval $cacheid=no
5278 fi
5279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5280 conftest$ac_exeext conftest.$ac_ext
5281 fi
5282
5283
5284 CFLAGS="$xorg_testset_save_CFLAGS"
5285
5286 eval supported=\$$cacheid
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5288 printf "%s\n" "$supported" >&6; }
5289 if test "$supported" = "yes" ; then
5290 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5291 found="yes"
5292 fi
5293 fi
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309 xorg_testset_save_CFLAGS="$CFLAGS"
5310
5311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5314 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5315 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5316 then :
5317 printf %s "(cached) " >&6
5318 else $as_nop
5319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320 /* end confdefs.h. */
5321 int i;
5322 _ACEOF
5323 if ac_fn_c_try_compile "$LINENO"
5324 then :
5325 xorg_cv_cc_flag_unknown_warning_option=yes
5326 else $as_nop
5327 xorg_cv_cc_flag_unknown_warning_option=no
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5330 fi
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5332 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5334 CFLAGS="$xorg_testset_save_CFLAGS"
5335 fi
5336
5337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5340 fi
5341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5343 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5344 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5345 then :
5346 printf %s "(cached) " >&6
5347 else $as_nop
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5350 int i;
5351 _ACEOF
5352 if ac_fn_c_try_compile "$LINENO"
5353 then :
5354 xorg_cv_cc_flag_unused_command_line_argument=yes
5355 else $as_nop
5356 xorg_cv_cc_flag_unused_command_line_argument=no
5357 fi
5358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5359 fi
5360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5361 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5363 CFLAGS="$xorg_testset_save_CFLAGS"
5364 fi
5365
5366 found="no"
5367
5368 if test $found = "no" ; then
5369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5371 fi
5372
5373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5375 fi
5376
5377 CFLAGS="$CFLAGS -Wformat=2"
5378
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5380 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5381 cacheid=xorg_cv_cc_flag__Wformat_2
5382 if eval test \${$cacheid+y}
5383 then :
5384 printf %s "(cached) " >&6
5385 else $as_nop
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5388 int i;
5389 int
5390 main (void)
5391 {
5392
5393 ;
5394 return 0;
5395 }
5396 _ACEOF
5397 if ac_fn_c_try_link "$LINENO"
5398 then :
5399 eval $cacheid=yes
5400 else $as_nop
5401 eval $cacheid=no
5402 fi
5403 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5404 conftest$ac_exeext conftest.$ac_ext
5405 fi
5406
5407
5408 CFLAGS="$xorg_testset_save_CFLAGS"
5409
5410 eval supported=\$$cacheid
5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5412 printf "%s\n" "$supported" >&6; }
5413 if test "$supported" = "yes" ; then
5414 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5415 found="yes"
5416 fi
5417 fi
5418
5419 if test $found = "no" ; then
5420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5422 fi
5423
5424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5426 fi
5427
5428 CFLAGS="$CFLAGS -Wformat"
5429
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5431 printf %s "checking if $CC supports -Wformat... " >&6; }
5432 cacheid=xorg_cv_cc_flag__Wformat
5433 if eval test \${$cacheid+y}
5434 then :
5435 printf %s "(cached) " >&6
5436 else $as_nop
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5439 int i;
5440 int
5441 main (void)
5442 {
5443
5444 ;
5445 return 0;
5446 }
5447 _ACEOF
5448 if ac_fn_c_try_link "$LINENO"
5449 then :
5450 eval $cacheid=yes
5451 else $as_nop
5452 eval $cacheid=no
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5455 conftest$ac_exeext conftest.$ac_ext
5456 fi
5457
5458
5459 CFLAGS="$xorg_testset_save_CFLAGS"
5460
5461 eval supported=\$$cacheid
5462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5463 printf "%s\n" "$supported" >&6; }
5464 if test "$supported" = "yes" ; then
5465 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5466 found="yes"
5467 fi
5468 fi
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486 xorg_testset_save_CFLAGS="$CFLAGS"
5487
5488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5491 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5492 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5493 then :
5494 printf %s "(cached) " >&6
5495 else $as_nop
5496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497 /* end confdefs.h. */
5498 int i;
5499 _ACEOF
5500 if ac_fn_c_try_compile "$LINENO"
5501 then :
5502 xorg_cv_cc_flag_unknown_warning_option=yes
5503 else $as_nop
5504 xorg_cv_cc_flag_unknown_warning_option=no
5505 fi
5506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5507 fi
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5509 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5510 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5511 CFLAGS="$xorg_testset_save_CFLAGS"
5512 fi
5513
5514 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5515 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5516 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5517 fi
5518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5520 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5521 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5522 then :
5523 printf %s "(cached) " >&6
5524 else $as_nop
5525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526 /* end confdefs.h. */
5527 int i;
5528 _ACEOF
5529 if ac_fn_c_try_compile "$LINENO"
5530 then :
5531 xorg_cv_cc_flag_unused_command_line_argument=yes
5532 else $as_nop
5533 xorg_cv_cc_flag_unused_command_line_argument=no
5534 fi
5535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5536 fi
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5538 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5539 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5540 CFLAGS="$xorg_testset_save_CFLAGS"
5541 fi
5542
5543 found="no"
5544
5545 if test $found = "no" ; then
5546 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5548 fi
5549
5550 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5552 fi
5553
5554 CFLAGS="$CFLAGS -Wstrict-prototypes"
5555
5556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5557 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5558 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5559 if eval test \${$cacheid+y}
5560 then :
5561 printf %s "(cached) " >&6
5562 else $as_nop
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5565 int i;
5566 int
5567 main (void)
5568 {
5569
5570 ;
5571 return 0;
5572 }
5573 _ACEOF
5574 if ac_fn_c_try_link "$LINENO"
5575 then :
5576 eval $cacheid=yes
5577 else $as_nop
5578 eval $cacheid=no
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5581 conftest$ac_exeext conftest.$ac_ext
5582 fi
5583
5584
5585 CFLAGS="$xorg_testset_save_CFLAGS"
5586
5587 eval supported=\$$cacheid
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5589 printf "%s\n" "$supported" >&6; }
5590 if test "$supported" = "yes" ; then
5591 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5592 found="yes"
5593 fi
5594 fi
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610 xorg_testset_save_CFLAGS="$CFLAGS"
5611
5612 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5615 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5616 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5617 then :
5618 printf %s "(cached) " >&6
5619 else $as_nop
5620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5622 int i;
5623 _ACEOF
5624 if ac_fn_c_try_compile "$LINENO"
5625 then :
5626 xorg_cv_cc_flag_unknown_warning_option=yes
5627 else $as_nop
5628 xorg_cv_cc_flag_unknown_warning_option=no
5629 fi
5630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5631 fi
5632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5633 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5635 CFLAGS="$xorg_testset_save_CFLAGS"
5636 fi
5637
5638 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5641 fi
5642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5644 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5645 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5646 then :
5647 printf %s "(cached) " >&6
5648 else $as_nop
5649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5650 /* end confdefs.h. */
5651 int i;
5652 _ACEOF
5653 if ac_fn_c_try_compile "$LINENO"
5654 then :
5655 xorg_cv_cc_flag_unused_command_line_argument=yes
5656 else $as_nop
5657 xorg_cv_cc_flag_unused_command_line_argument=no
5658 fi
5659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5660 fi
5661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5662 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5663 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5664 CFLAGS="$xorg_testset_save_CFLAGS"
5665 fi
5666
5667 found="no"
5668
5669 if test $found = "no" ; then
5670 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5672 fi
5673
5674 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5675 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5676 fi
5677
5678 CFLAGS="$CFLAGS -Wmissing-prototypes"
5679
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5681 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5682 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5683 if eval test \${$cacheid+y}
5684 then :
5685 printf %s "(cached) " >&6
5686 else $as_nop
5687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5688 /* end confdefs.h. */
5689 int i;
5690 int
5691 main (void)
5692 {
5693
5694 ;
5695 return 0;
5696 }
5697 _ACEOF
5698 if ac_fn_c_try_link "$LINENO"
5699 then :
5700 eval $cacheid=yes
5701 else $as_nop
5702 eval $cacheid=no
5703 fi
5704 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5705 conftest$ac_exeext conftest.$ac_ext
5706 fi
5707
5708
5709 CFLAGS="$xorg_testset_save_CFLAGS"
5710
5711 eval supported=\$$cacheid
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5713 printf "%s\n" "$supported" >&6; }
5714 if test "$supported" = "yes" ; then
5715 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5716 found="yes"
5717 fi
5718 fi
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734 xorg_testset_save_CFLAGS="$CFLAGS"
5735
5736 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5739 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5740 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5741 then :
5742 printf %s "(cached) " >&6
5743 else $as_nop
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 int i;
5747 _ACEOF
5748 if ac_fn_c_try_compile "$LINENO"
5749 then :
5750 xorg_cv_cc_flag_unknown_warning_option=yes
5751 else $as_nop
5752 xorg_cv_cc_flag_unknown_warning_option=no
5753 fi
5754 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5755 fi
5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5757 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5758 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5759 CFLAGS="$xorg_testset_save_CFLAGS"
5760 fi
5761
5762 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5765 fi
5766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5768 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5769 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5770 then :
5771 printf %s "(cached) " >&6
5772 else $as_nop
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774 /* end confdefs.h. */
5775 int i;
5776 _ACEOF
5777 if ac_fn_c_try_compile "$LINENO"
5778 then :
5779 xorg_cv_cc_flag_unused_command_line_argument=yes
5780 else $as_nop
5781 xorg_cv_cc_flag_unused_command_line_argument=no
5782 fi
5783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5784 fi
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5786 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5788 CFLAGS="$xorg_testset_save_CFLAGS"
5789 fi
5790
5791 found="no"
5792
5793 if test $found = "no" ; then
5794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5796 fi
5797
5798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5800 fi
5801
5802 CFLAGS="$CFLAGS -Wnested-externs"
5803
5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5805 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5806 cacheid=xorg_cv_cc_flag__Wnested_externs
5807 if eval test \${$cacheid+y}
5808 then :
5809 printf %s "(cached) " >&6
5810 else $as_nop
5811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5812 /* end confdefs.h. */
5813 int i;
5814 int
5815 main (void)
5816 {
5817
5818 ;
5819 return 0;
5820 }
5821 _ACEOF
5822 if ac_fn_c_try_link "$LINENO"
5823 then :
5824 eval $cacheid=yes
5825 else $as_nop
5826 eval $cacheid=no
5827 fi
5828 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5829 conftest$ac_exeext conftest.$ac_ext
5830 fi
5831
5832
5833 CFLAGS="$xorg_testset_save_CFLAGS"
5834
5835 eval supported=\$$cacheid
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5837 printf "%s\n" "$supported" >&6; }
5838 if test "$supported" = "yes" ; then
5839 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5840 found="yes"
5841 fi
5842 fi
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858 xorg_testset_save_CFLAGS="$CFLAGS"
5859
5860 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5863 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5864 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5865 then :
5866 printf %s "(cached) " >&6
5867 else $as_nop
5868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5869 /* end confdefs.h. */
5870 int i;
5871 _ACEOF
5872 if ac_fn_c_try_compile "$LINENO"
5873 then :
5874 xorg_cv_cc_flag_unknown_warning_option=yes
5875 else $as_nop
5876 xorg_cv_cc_flag_unknown_warning_option=no
5877 fi
5878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5879 fi
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5881 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5882 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5883 CFLAGS="$xorg_testset_save_CFLAGS"
5884 fi
5885
5886 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5889 fi
5890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5892 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5893 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5894 then :
5895 printf %s "(cached) " >&6
5896 else $as_nop
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5899 int i;
5900 _ACEOF
5901 if ac_fn_c_try_compile "$LINENO"
5902 then :
5903 xorg_cv_cc_flag_unused_command_line_argument=yes
5904 else $as_nop
5905 xorg_cv_cc_flag_unused_command_line_argument=no
5906 fi
5907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5908 fi
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5910 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5912 CFLAGS="$xorg_testset_save_CFLAGS"
5913 fi
5914
5915 found="no"
5916
5917 if test $found = "no" ; then
5918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5920 fi
5921
5922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5924 fi
5925
5926 CFLAGS="$CFLAGS -Wbad-function-cast"
5927
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5929 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5930 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5931 if eval test \${$cacheid+y}
5932 then :
5933 printf %s "(cached) " >&6
5934 else $as_nop
5935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5936 /* end confdefs.h. */
5937 int i;
5938 int
5939 main (void)
5940 {
5941
5942 ;
5943 return 0;
5944 }
5945 _ACEOF
5946 if ac_fn_c_try_link "$LINENO"
5947 then :
5948 eval $cacheid=yes
5949 else $as_nop
5950 eval $cacheid=no
5951 fi
5952 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5953 conftest$ac_exeext conftest.$ac_ext
5954 fi
5955
5956
5957 CFLAGS="$xorg_testset_save_CFLAGS"
5958
5959 eval supported=\$$cacheid
5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5961 printf "%s\n" "$supported" >&6; }
5962 if test "$supported" = "yes" ; then
5963 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5964 found="yes"
5965 fi
5966 fi
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982 xorg_testset_save_CFLAGS="$CFLAGS"
5983
5984 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5987 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5988 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5989 then :
5990 printf %s "(cached) " >&6
5991 else $as_nop
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
5994 int i;
5995 _ACEOF
5996 if ac_fn_c_try_compile "$LINENO"
5997 then :
5998 xorg_cv_cc_flag_unknown_warning_option=yes
5999 else $as_nop
6000 xorg_cv_cc_flag_unknown_warning_option=no
6001 fi
6002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6003 fi
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6005 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6006 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6007 CFLAGS="$xorg_testset_save_CFLAGS"
6008 fi
6009
6010 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6011 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6013 fi
6014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6016 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6017 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6018 then :
6019 printf %s "(cached) " >&6
6020 else $as_nop
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6023 int i;
6024 _ACEOF
6025 if ac_fn_c_try_compile "$LINENO"
6026 then :
6027 xorg_cv_cc_flag_unused_command_line_argument=yes
6028 else $as_nop
6029 xorg_cv_cc_flag_unused_command_line_argument=no
6030 fi
6031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6032 fi
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6034 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6036 CFLAGS="$xorg_testset_save_CFLAGS"
6037 fi
6038
6039 found="no"
6040
6041 if test $found = "no" ; then
6042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6044 fi
6045
6046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6048 fi
6049
6050 CFLAGS="$CFLAGS -Wold-style-definition"
6051
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6053 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6054 cacheid=xorg_cv_cc_flag__Wold_style_definition
6055 if eval test \${$cacheid+y}
6056 then :
6057 printf %s "(cached) " >&6
6058 else $as_nop
6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h. */
6061 int i;
6062 int
6063 main (void)
6064 {
6065
6066 ;
6067 return 0;
6068 }
6069 _ACEOF
6070 if ac_fn_c_try_link "$LINENO"
6071 then :
6072 eval $cacheid=yes
6073 else $as_nop
6074 eval $cacheid=no
6075 fi
6076 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6077 conftest$ac_exeext conftest.$ac_ext
6078 fi
6079
6080
6081 CFLAGS="$xorg_testset_save_CFLAGS"
6082
6083 eval supported=\$$cacheid
6084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6085 printf "%s\n" "$supported" >&6; }
6086 if test "$supported" = "yes" ; then
6087 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6088 found="yes"
6089 fi
6090 fi
6091
6092 if test $found = "no" ; then
6093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6095 fi
6096
6097 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6098 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6099 fi
6100
6101 CFLAGS="$CFLAGS -fd"
6102
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6104 printf %s "checking if $CC supports -fd... " >&6; }
6105 cacheid=xorg_cv_cc_flag__fd
6106 if eval test \${$cacheid+y}
6107 then :
6108 printf %s "(cached) " >&6
6109 else $as_nop
6110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6111 /* end confdefs.h. */
6112 int i;
6113 int
6114 main (void)
6115 {
6116
6117 ;
6118 return 0;
6119 }
6120 _ACEOF
6121 if ac_fn_c_try_link "$LINENO"
6122 then :
6123 eval $cacheid=yes
6124 else $as_nop
6125 eval $cacheid=no
6126 fi
6127 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6128 conftest$ac_exeext conftest.$ac_ext
6129 fi
6130
6131
6132 CFLAGS="$xorg_testset_save_CFLAGS"
6133
6134 eval supported=\$$cacheid
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6136 printf "%s\n" "$supported" >&6; }
6137 if test "$supported" = "yes" ; then
6138 BASE_CFLAGS="$BASE_CFLAGS -fd"
6139 found="yes"
6140 fi
6141 fi
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157 xorg_testset_save_CFLAGS="$CFLAGS"
6158
6159 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6162 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6163 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6164 then :
6165 printf %s "(cached) " >&6
6166 else $as_nop
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6169 int i;
6170 _ACEOF
6171 if ac_fn_c_try_compile "$LINENO"
6172 then :
6173 xorg_cv_cc_flag_unknown_warning_option=yes
6174 else $as_nop
6175 xorg_cv_cc_flag_unknown_warning_option=no
6176 fi
6177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6178 fi
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6180 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6181 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6182 CFLAGS="$xorg_testset_save_CFLAGS"
6183 fi
6184
6185 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6186 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6188 fi
6189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6191 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6192 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6193 then :
6194 printf %s "(cached) " >&6
6195 else $as_nop
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6198 int i;
6199 _ACEOF
6200 if ac_fn_c_try_compile "$LINENO"
6201 then :
6202 xorg_cv_cc_flag_unused_command_line_argument=yes
6203 else $as_nop
6204 xorg_cv_cc_flag_unused_command_line_argument=no
6205 fi
6206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6207 fi
6208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6209 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6210 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6211 CFLAGS="$xorg_testset_save_CFLAGS"
6212 fi
6213
6214 found="no"
6215
6216 if test $found = "no" ; then
6217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6219 fi
6220
6221 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6223 fi
6224
6225 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6226
6227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6228 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6229 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6230 if eval test \${$cacheid+y}
6231 then :
6232 printf %s "(cached) " >&6
6233 else $as_nop
6234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6236 int i;
6237 int
6238 main (void)
6239 {
6240
6241 ;
6242 return 0;
6243 }
6244 _ACEOF
6245 if ac_fn_c_try_link "$LINENO"
6246 then :
6247 eval $cacheid=yes
6248 else $as_nop
6249 eval $cacheid=no
6250 fi
6251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6252 conftest$ac_exeext conftest.$ac_ext
6253 fi
6254
6255
6256 CFLAGS="$xorg_testset_save_CFLAGS"
6257
6258 eval supported=\$$cacheid
6259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6260 printf "%s\n" "$supported" >&6; }
6261 if test "$supported" = "yes" ; then
6262 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6263 found="yes"
6264 fi
6265 fi
6266
6267
6268
6269
6270
6271 # This chunk adds additional warnings that could catch undesired effects.
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285 xorg_testset_save_CFLAGS="$CFLAGS"
6286
6287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6290 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6291 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6292 then :
6293 printf %s "(cached) " >&6
6294 else $as_nop
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296 /* end confdefs.h. */
6297 int i;
6298 _ACEOF
6299 if ac_fn_c_try_compile "$LINENO"
6300 then :
6301 xorg_cv_cc_flag_unknown_warning_option=yes
6302 else $as_nop
6303 xorg_cv_cc_flag_unknown_warning_option=no
6304 fi
6305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6306 fi
6307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6308 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6310 CFLAGS="$xorg_testset_save_CFLAGS"
6311 fi
6312
6313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6316 fi
6317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6319 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6320 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6321 then :
6322 printf %s "(cached) " >&6
6323 else $as_nop
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326 int i;
6327 _ACEOF
6328 if ac_fn_c_try_compile "$LINENO"
6329 then :
6330 xorg_cv_cc_flag_unused_command_line_argument=yes
6331 else $as_nop
6332 xorg_cv_cc_flag_unused_command_line_argument=no
6333 fi
6334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6335 fi
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6337 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6339 CFLAGS="$xorg_testset_save_CFLAGS"
6340 fi
6341
6342 found="no"
6343
6344 if test $found = "no" ; then
6345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6347 fi
6348
6349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6351 fi
6352
6353 CFLAGS="$CFLAGS -Wunused"
6354
6355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6356 printf %s "checking if $CC supports -Wunused... " >&6; }
6357 cacheid=xorg_cv_cc_flag__Wunused
6358 if eval test \${$cacheid+y}
6359 then :
6360 printf %s "(cached) " >&6
6361 else $as_nop
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6364 int i;
6365 int
6366 main (void)
6367 {
6368
6369 ;
6370 return 0;
6371 }
6372 _ACEOF
6373 if ac_fn_c_try_link "$LINENO"
6374 then :
6375 eval $cacheid=yes
6376 else $as_nop
6377 eval $cacheid=no
6378 fi
6379 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6380 conftest$ac_exeext conftest.$ac_ext
6381 fi
6382
6383
6384 CFLAGS="$xorg_testset_save_CFLAGS"
6385
6386 eval supported=\$$cacheid
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6388 printf "%s\n" "$supported" >&6; }
6389 if test "$supported" = "yes" ; then
6390 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6391 found="yes"
6392 fi
6393 fi
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409 xorg_testset_save_CFLAGS="$CFLAGS"
6410
6411 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6414 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6415 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6416 then :
6417 printf %s "(cached) " >&6
6418 else $as_nop
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6420 /* end confdefs.h. */
6421 int i;
6422 _ACEOF
6423 if ac_fn_c_try_compile "$LINENO"
6424 then :
6425 xorg_cv_cc_flag_unknown_warning_option=yes
6426 else $as_nop
6427 xorg_cv_cc_flag_unknown_warning_option=no
6428 fi
6429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6430 fi
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6432 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6433 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6434 CFLAGS="$xorg_testset_save_CFLAGS"
6435 fi
6436
6437 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6440 fi
6441 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6443 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6444 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6445 then :
6446 printf %s "(cached) " >&6
6447 else $as_nop
6448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6449 /* end confdefs.h. */
6450 int i;
6451 _ACEOF
6452 if ac_fn_c_try_compile "$LINENO"
6453 then :
6454 xorg_cv_cc_flag_unused_command_line_argument=yes
6455 else $as_nop
6456 xorg_cv_cc_flag_unused_command_line_argument=no
6457 fi
6458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6459 fi
6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6461 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6462 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6463 CFLAGS="$xorg_testset_save_CFLAGS"
6464 fi
6465
6466 found="no"
6467
6468 if test $found = "no" ; then
6469 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6470 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6471 fi
6472
6473 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6475 fi
6476
6477 CFLAGS="$CFLAGS -Wuninitialized"
6478
6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6480 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6481 cacheid=xorg_cv_cc_flag__Wuninitialized
6482 if eval test \${$cacheid+y}
6483 then :
6484 printf %s "(cached) " >&6
6485 else $as_nop
6486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6487 /* end confdefs.h. */
6488 int i;
6489 int
6490 main (void)
6491 {
6492
6493 ;
6494 return 0;
6495 }
6496 _ACEOF
6497 if ac_fn_c_try_link "$LINENO"
6498 then :
6499 eval $cacheid=yes
6500 else $as_nop
6501 eval $cacheid=no
6502 fi
6503 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6504 conftest$ac_exeext conftest.$ac_ext
6505 fi
6506
6507
6508 CFLAGS="$xorg_testset_save_CFLAGS"
6509
6510 eval supported=\$$cacheid
6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6512 printf "%s\n" "$supported" >&6; }
6513 if test "$supported" = "yes" ; then
6514 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6515 found="yes"
6516 fi
6517 fi
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533 xorg_testset_save_CFLAGS="$CFLAGS"
6534
6535 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6538 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6539 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6540 then :
6541 printf %s "(cached) " >&6
6542 else $as_nop
6543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6545 int i;
6546 _ACEOF
6547 if ac_fn_c_try_compile "$LINENO"
6548 then :
6549 xorg_cv_cc_flag_unknown_warning_option=yes
6550 else $as_nop
6551 xorg_cv_cc_flag_unknown_warning_option=no
6552 fi
6553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6554 fi
6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6556 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6558 CFLAGS="$xorg_testset_save_CFLAGS"
6559 fi
6560
6561 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6564 fi
6565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6567 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6568 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6569 then :
6570 printf %s "(cached) " >&6
6571 else $as_nop
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 int i;
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"
6577 then :
6578 xorg_cv_cc_flag_unused_command_line_argument=yes
6579 else $as_nop
6580 xorg_cv_cc_flag_unused_command_line_argument=no
6581 fi
6582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6583 fi
6584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6585 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6587 CFLAGS="$xorg_testset_save_CFLAGS"
6588 fi
6589
6590 found="no"
6591
6592 if test $found = "no" ; then
6593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6595 fi
6596
6597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6599 fi
6600
6601 CFLAGS="$CFLAGS -Wshadow"
6602
6603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6604 printf %s "checking if $CC supports -Wshadow... " >&6; }
6605 cacheid=xorg_cv_cc_flag__Wshadow
6606 if eval test \${$cacheid+y}
6607 then :
6608 printf %s "(cached) " >&6
6609 else $as_nop
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612 int i;
6613 int
6614 main (void)
6615 {
6616
6617 ;
6618 return 0;
6619 }
6620 _ACEOF
6621 if ac_fn_c_try_link "$LINENO"
6622 then :
6623 eval $cacheid=yes
6624 else $as_nop
6625 eval $cacheid=no
6626 fi
6627 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6628 conftest$ac_exeext conftest.$ac_ext
6629 fi
6630
6631
6632 CFLAGS="$xorg_testset_save_CFLAGS"
6633
6634 eval supported=\$$cacheid
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6636 printf "%s\n" "$supported" >&6; }
6637 if test "$supported" = "yes" ; then
6638 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6639 found="yes"
6640 fi
6641 fi
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657 xorg_testset_save_CFLAGS="$CFLAGS"
6658
6659 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6662 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6663 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6664 then :
6665 printf %s "(cached) " >&6
6666 else $as_nop
6667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6668 /* end confdefs.h. */
6669 int i;
6670 _ACEOF
6671 if ac_fn_c_try_compile "$LINENO"
6672 then :
6673 xorg_cv_cc_flag_unknown_warning_option=yes
6674 else $as_nop
6675 xorg_cv_cc_flag_unknown_warning_option=no
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6678 fi
6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6680 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6682 CFLAGS="$xorg_testset_save_CFLAGS"
6683 fi
6684
6685 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6688 fi
6689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6691 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6692 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6693 then :
6694 printf %s "(cached) " >&6
6695 else $as_nop
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6698 int i;
6699 _ACEOF
6700 if ac_fn_c_try_compile "$LINENO"
6701 then :
6702 xorg_cv_cc_flag_unused_command_line_argument=yes
6703 else $as_nop
6704 xorg_cv_cc_flag_unused_command_line_argument=no
6705 fi
6706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6707 fi
6708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6709 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6711 CFLAGS="$xorg_testset_save_CFLAGS"
6712 fi
6713
6714 found="no"
6715
6716 if test $found = "no" ; then
6717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6719 fi
6720
6721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6723 fi
6724
6725 CFLAGS="$CFLAGS -Wmissing-noreturn"
6726
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6728 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6729 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6730 if eval test \${$cacheid+y}
6731 then :
6732 printf %s "(cached) " >&6
6733 else $as_nop
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736 int i;
6737 int
6738 main (void)
6739 {
6740
6741 ;
6742 return 0;
6743 }
6744 _ACEOF
6745 if ac_fn_c_try_link "$LINENO"
6746 then :
6747 eval $cacheid=yes
6748 else $as_nop
6749 eval $cacheid=no
6750 fi
6751 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6752 conftest$ac_exeext conftest.$ac_ext
6753 fi
6754
6755
6756 CFLAGS="$xorg_testset_save_CFLAGS"
6757
6758 eval supported=\$$cacheid
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6760 printf "%s\n" "$supported" >&6; }
6761 if test "$supported" = "yes" ; then
6762 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6763 found="yes"
6764 fi
6765 fi
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781 xorg_testset_save_CFLAGS="$CFLAGS"
6782
6783 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6786 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6787 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6788 then :
6789 printf %s "(cached) " >&6
6790 else $as_nop
6791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6793 int i;
6794 _ACEOF
6795 if ac_fn_c_try_compile "$LINENO"
6796 then :
6797 xorg_cv_cc_flag_unknown_warning_option=yes
6798 else $as_nop
6799 xorg_cv_cc_flag_unknown_warning_option=no
6800 fi
6801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6802 fi
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6804 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6806 CFLAGS="$xorg_testset_save_CFLAGS"
6807 fi
6808
6809 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6812 fi
6813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6815 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6816 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6817 then :
6818 printf %s "(cached) " >&6
6819 else $as_nop
6820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6821 /* end confdefs.h. */
6822 int i;
6823 _ACEOF
6824 if ac_fn_c_try_compile "$LINENO"
6825 then :
6826 xorg_cv_cc_flag_unused_command_line_argument=yes
6827 else $as_nop
6828 xorg_cv_cc_flag_unused_command_line_argument=no
6829 fi
6830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6831 fi
6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6833 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6835 CFLAGS="$xorg_testset_save_CFLAGS"
6836 fi
6837
6838 found="no"
6839
6840 if test $found = "no" ; then
6841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6843 fi
6844
6845 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6847 fi
6848
6849 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6850
6851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6852 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6853 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6854 if eval test \${$cacheid+y}
6855 then :
6856 printf %s "(cached) " >&6
6857 else $as_nop
6858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860 int i;
6861 int
6862 main (void)
6863 {
6864
6865 ;
6866 return 0;
6867 }
6868 _ACEOF
6869 if ac_fn_c_try_link "$LINENO"
6870 then :
6871 eval $cacheid=yes
6872 else $as_nop
6873 eval $cacheid=no
6874 fi
6875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6876 conftest$ac_exeext conftest.$ac_ext
6877 fi
6878
6879
6880 CFLAGS="$xorg_testset_save_CFLAGS"
6881
6882 eval supported=\$$cacheid
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6884 printf "%s\n" "$supported" >&6; }
6885 if test "$supported" = "yes" ; then
6886 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6887 found="yes"
6888 fi
6889 fi
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905 xorg_testset_save_CFLAGS="$CFLAGS"
6906
6907 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6910 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6911 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6912 then :
6913 printf %s "(cached) " >&6
6914 else $as_nop
6915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6916 /* end confdefs.h. */
6917 int i;
6918 _ACEOF
6919 if ac_fn_c_try_compile "$LINENO"
6920 then :
6921 xorg_cv_cc_flag_unknown_warning_option=yes
6922 else $as_nop
6923 xorg_cv_cc_flag_unknown_warning_option=no
6924 fi
6925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6926 fi
6927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6928 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6929 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6930 CFLAGS="$xorg_testset_save_CFLAGS"
6931 fi
6932
6933 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6934 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6936 fi
6937 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6939 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6940 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6941 then :
6942 printf %s "(cached) " >&6
6943 else $as_nop
6944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6945 /* end confdefs.h. */
6946 int i;
6947 _ACEOF
6948 if ac_fn_c_try_compile "$LINENO"
6949 then :
6950 xorg_cv_cc_flag_unused_command_line_argument=yes
6951 else $as_nop
6952 xorg_cv_cc_flag_unused_command_line_argument=no
6953 fi
6954 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6955 fi
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6957 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6958 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6959 CFLAGS="$xorg_testset_save_CFLAGS"
6960 fi
6961
6962 found="no"
6963
6964 if test $found = "no" ; then
6965 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6967 fi
6968
6969 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6971 fi
6972
6973 CFLAGS="$CFLAGS -Wredundant-decls"
6974
6975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6976 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6977 cacheid=xorg_cv_cc_flag__Wredundant_decls
6978 if eval test \${$cacheid+y}
6979 then :
6980 printf %s "(cached) " >&6
6981 else $as_nop
6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983 /* end confdefs.h. */
6984 int i;
6985 int
6986 main (void)
6987 {
6988
6989 ;
6990 return 0;
6991 }
6992 _ACEOF
6993 if ac_fn_c_try_link "$LINENO"
6994 then :
6995 eval $cacheid=yes
6996 else $as_nop
6997 eval $cacheid=no
6998 fi
6999 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7000 conftest$ac_exeext conftest.$ac_ext
7001 fi
7002
7003
7004 CFLAGS="$xorg_testset_save_CFLAGS"
7005
7006 eval supported=\$$cacheid
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7008 printf "%s\n" "$supported" >&6; }
7009 if test "$supported" = "yes" ; then
7010 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7011 found="yes"
7012 fi
7013 fi
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029 xorg_testset_save_CFLAGS="$CFLAGS"
7030
7031 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7034 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7035 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7036 then :
7037 printf %s "(cached) " >&6
7038 else $as_nop
7039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7040 /* end confdefs.h. */
7041 int i;
7042 _ACEOF
7043 if ac_fn_c_try_compile "$LINENO"
7044 then :
7045 xorg_cv_cc_flag_unknown_warning_option=yes
7046 else $as_nop
7047 xorg_cv_cc_flag_unknown_warning_option=no
7048 fi
7049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7050 fi
7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7052 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7053 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7054 CFLAGS="$xorg_testset_save_CFLAGS"
7055 fi
7056
7057 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7058 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7060 fi
7061 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7063 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7064 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7065 then :
7066 printf %s "(cached) " >&6
7067 else $as_nop
7068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* end confdefs.h. */
7070 int i;
7071 _ACEOF
7072 if ac_fn_c_try_compile "$LINENO"
7073 then :
7074 xorg_cv_cc_flag_unused_command_line_argument=yes
7075 else $as_nop
7076 xorg_cv_cc_flag_unused_command_line_argument=no
7077 fi
7078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7079 fi
7080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7081 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7083 CFLAGS="$xorg_testset_save_CFLAGS"
7084 fi
7085
7086 found="no"
7087
7088 if test $found = "no" ; then
7089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7091 fi
7092
7093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7095 fi
7096
7097 CFLAGS="$CFLAGS -Wlogical-op"
7098
7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7100 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7101 cacheid=xorg_cv_cc_flag__Wlogical_op
7102 if eval test \${$cacheid+y}
7103 then :
7104 printf %s "(cached) " >&6
7105 else $as_nop
7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7108 int i;
7109 int
7110 main (void)
7111 {
7112
7113 ;
7114 return 0;
7115 }
7116 _ACEOF
7117 if ac_fn_c_try_link "$LINENO"
7118 then :
7119 eval $cacheid=yes
7120 else $as_nop
7121 eval $cacheid=no
7122 fi
7123 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7124 conftest$ac_exeext conftest.$ac_ext
7125 fi
7126
7127
7128 CFLAGS="$xorg_testset_save_CFLAGS"
7129
7130 eval supported=\$$cacheid
7131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7132 printf "%s\n" "$supported" >&6; }
7133 if test "$supported" = "yes" ; then
7134 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7135 found="yes"
7136 fi
7137 fi
7138
7139
7140
7141 # These are currently disabled because they are noisy. They will be enabled
7142 # in the future once the codebase is sufficiently modernized to silence
7143 # them. For now, I don't want them to drown out the other warnings.
7144 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7145 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7146 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7147
7148 # Turn some warnings into errors, so we don't accidently get successful builds
7149 # when there are problems that should be fixed.
7150
7151 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165 xorg_testset_save_CFLAGS="$CFLAGS"
7166
7167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7170 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7171 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7172 then :
7173 printf %s "(cached) " >&6
7174 else $as_nop
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 int i;
7178 _ACEOF
7179 if ac_fn_c_try_compile "$LINENO"
7180 then :
7181 xorg_cv_cc_flag_unknown_warning_option=yes
7182 else $as_nop
7183 xorg_cv_cc_flag_unknown_warning_option=no
7184 fi
7185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7186 fi
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7188 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7190 CFLAGS="$xorg_testset_save_CFLAGS"
7191 fi
7192
7193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7196 fi
7197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7199 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7200 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7201 then :
7202 printf %s "(cached) " >&6
7203 else $as_nop
7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7205 /* end confdefs.h. */
7206 int i;
7207 _ACEOF
7208 if ac_fn_c_try_compile "$LINENO"
7209 then :
7210 xorg_cv_cc_flag_unused_command_line_argument=yes
7211 else $as_nop
7212 xorg_cv_cc_flag_unused_command_line_argument=no
7213 fi
7214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7215 fi
7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7217 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7219 CFLAGS="$xorg_testset_save_CFLAGS"
7220 fi
7221
7222 found="no"
7223
7224 if test $found = "no" ; then
7225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7227 fi
7228
7229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7231 fi
7232
7233 CFLAGS="$CFLAGS -Werror=implicit"
7234
7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7236 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7237 cacheid=xorg_cv_cc_flag__Werror_implicit
7238 if eval test \${$cacheid+y}
7239 then :
7240 printf %s "(cached) " >&6
7241 else $as_nop
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7244 int i;
7245 int
7246 main (void)
7247 {
7248
7249 ;
7250 return 0;
7251 }
7252 _ACEOF
7253 if ac_fn_c_try_link "$LINENO"
7254 then :
7255 eval $cacheid=yes
7256 else $as_nop
7257 eval $cacheid=no
7258 fi
7259 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7260 conftest$ac_exeext conftest.$ac_ext
7261 fi
7262
7263
7264 CFLAGS="$xorg_testset_save_CFLAGS"
7265
7266 eval supported=\$$cacheid
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7268 printf "%s\n" "$supported" >&6; }
7269 if test "$supported" = "yes" ; then
7270 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7271 found="yes"
7272 fi
7273 fi
7274
7275 if test $found = "no" ; then
7276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7278 fi
7279
7280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7282 fi
7283
7284 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7285
7286 { 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
7287 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7288 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7289 if eval test \${$cacheid+y}
7290 then :
7291 printf %s "(cached) " >&6
7292 else $as_nop
7293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7295 int i;
7296 int
7297 main (void)
7298 {
7299
7300 ;
7301 return 0;
7302 }
7303 _ACEOF
7304 if ac_fn_c_try_link "$LINENO"
7305 then :
7306 eval $cacheid=yes
7307 else $as_nop
7308 eval $cacheid=no
7309 fi
7310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7311 conftest$ac_exeext conftest.$ac_ext
7312 fi
7313
7314
7315 CFLAGS="$xorg_testset_save_CFLAGS"
7316
7317 eval supported=\$$cacheid
7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7319 printf "%s\n" "$supported" >&6; }
7320 if test "$supported" = "yes" ; then
7321 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7322 found="yes"
7323 fi
7324 fi
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340 xorg_testset_save_CFLAGS="$CFLAGS"
7341
7342 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7345 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7346 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7347 then :
7348 printf %s "(cached) " >&6
7349 else $as_nop
7350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7351 /* end confdefs.h. */
7352 int i;
7353 _ACEOF
7354 if ac_fn_c_try_compile "$LINENO"
7355 then :
7356 xorg_cv_cc_flag_unknown_warning_option=yes
7357 else $as_nop
7358 xorg_cv_cc_flag_unknown_warning_option=no
7359 fi
7360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7361 fi
7362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7363 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7365 CFLAGS="$xorg_testset_save_CFLAGS"
7366 fi
7367
7368 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7371 fi
7372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7374 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7375 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7376 then :
7377 printf %s "(cached) " >&6
7378 else $as_nop
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7381 int i;
7382 _ACEOF
7383 if ac_fn_c_try_compile "$LINENO"
7384 then :
7385 xorg_cv_cc_flag_unused_command_line_argument=yes
7386 else $as_nop
7387 xorg_cv_cc_flag_unused_command_line_argument=no
7388 fi
7389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7390 fi
7391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7392 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7393 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7394 CFLAGS="$xorg_testset_save_CFLAGS"
7395 fi
7396
7397 found="no"
7398
7399 if test $found = "no" ; then
7400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7402 fi
7403
7404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7406 fi
7407
7408 CFLAGS="$CFLAGS -Werror=nonnull"
7409
7410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7411 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7412 cacheid=xorg_cv_cc_flag__Werror_nonnull
7413 if eval test \${$cacheid+y}
7414 then :
7415 printf %s "(cached) " >&6
7416 else $as_nop
7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7418 /* end confdefs.h. */
7419 int i;
7420 int
7421 main (void)
7422 {
7423
7424 ;
7425 return 0;
7426 }
7427 _ACEOF
7428 if ac_fn_c_try_link "$LINENO"
7429 then :
7430 eval $cacheid=yes
7431 else $as_nop
7432 eval $cacheid=no
7433 fi
7434 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7435 conftest$ac_exeext conftest.$ac_ext
7436 fi
7437
7438
7439 CFLAGS="$xorg_testset_save_CFLAGS"
7440
7441 eval supported=\$$cacheid
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7443 printf "%s\n" "$supported" >&6; }
7444 if test "$supported" = "yes" ; then
7445 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7446 found="yes"
7447 fi
7448 fi
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464 xorg_testset_save_CFLAGS="$CFLAGS"
7465
7466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7469 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7470 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7471 then :
7472 printf %s "(cached) " >&6
7473 else $as_nop
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7476 int i;
7477 _ACEOF
7478 if ac_fn_c_try_compile "$LINENO"
7479 then :
7480 xorg_cv_cc_flag_unknown_warning_option=yes
7481 else $as_nop
7482 xorg_cv_cc_flag_unknown_warning_option=no
7483 fi
7484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7485 fi
7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7487 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7489 CFLAGS="$xorg_testset_save_CFLAGS"
7490 fi
7491
7492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7495 fi
7496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7498 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7499 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7500 then :
7501 printf %s "(cached) " >&6
7502 else $as_nop
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7505 int i;
7506 _ACEOF
7507 if ac_fn_c_try_compile "$LINENO"
7508 then :
7509 xorg_cv_cc_flag_unused_command_line_argument=yes
7510 else $as_nop
7511 xorg_cv_cc_flag_unused_command_line_argument=no
7512 fi
7513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7514 fi
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7516 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7518 CFLAGS="$xorg_testset_save_CFLAGS"
7519 fi
7520
7521 found="no"
7522
7523 if test $found = "no" ; then
7524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7526 fi
7527
7528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7530 fi
7531
7532 CFLAGS="$CFLAGS -Werror=init-self"
7533
7534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7535 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7536 cacheid=xorg_cv_cc_flag__Werror_init_self
7537 if eval test \${$cacheid+y}
7538 then :
7539 printf %s "(cached) " >&6
7540 else $as_nop
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7543 int i;
7544 int
7545 main (void)
7546 {
7547
7548 ;
7549 return 0;
7550 }
7551 _ACEOF
7552 if ac_fn_c_try_link "$LINENO"
7553 then :
7554 eval $cacheid=yes
7555 else $as_nop
7556 eval $cacheid=no
7557 fi
7558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7559 conftest$ac_exeext conftest.$ac_ext
7560 fi
7561
7562
7563 CFLAGS="$xorg_testset_save_CFLAGS"
7564
7565 eval supported=\$$cacheid
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7567 printf "%s\n" "$supported" >&6; }
7568 if test "$supported" = "yes" ; then
7569 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7570 found="yes"
7571 fi
7572 fi
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588 xorg_testset_save_CFLAGS="$CFLAGS"
7589
7590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7593 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7594 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7595 then :
7596 printf %s "(cached) " >&6
7597 else $as_nop
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7600 int i;
7601 _ACEOF
7602 if ac_fn_c_try_compile "$LINENO"
7603 then :
7604 xorg_cv_cc_flag_unknown_warning_option=yes
7605 else $as_nop
7606 xorg_cv_cc_flag_unknown_warning_option=no
7607 fi
7608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7609 fi
7610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7611 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7613 CFLAGS="$xorg_testset_save_CFLAGS"
7614 fi
7615
7616 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7619 fi
7620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7622 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7623 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7624 then :
7625 printf %s "(cached) " >&6
7626 else $as_nop
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7629 int i;
7630 _ACEOF
7631 if ac_fn_c_try_compile "$LINENO"
7632 then :
7633 xorg_cv_cc_flag_unused_command_line_argument=yes
7634 else $as_nop
7635 xorg_cv_cc_flag_unused_command_line_argument=no
7636 fi
7637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7638 fi
7639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7640 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7642 CFLAGS="$xorg_testset_save_CFLAGS"
7643 fi
7644
7645 found="no"
7646
7647 if test $found = "no" ; then
7648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7650 fi
7651
7652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7654 fi
7655
7656 CFLAGS="$CFLAGS -Werror=main"
7657
7658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7659 printf %s "checking if $CC supports -Werror=main... " >&6; }
7660 cacheid=xorg_cv_cc_flag__Werror_main
7661 if eval test \${$cacheid+y}
7662 then :
7663 printf %s "(cached) " >&6
7664 else $as_nop
7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7666 /* end confdefs.h. */
7667 int i;
7668 int
7669 main (void)
7670 {
7671
7672 ;
7673 return 0;
7674 }
7675 _ACEOF
7676 if ac_fn_c_try_link "$LINENO"
7677 then :
7678 eval $cacheid=yes
7679 else $as_nop
7680 eval $cacheid=no
7681 fi
7682 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7683 conftest$ac_exeext conftest.$ac_ext
7684 fi
7685
7686
7687 CFLAGS="$xorg_testset_save_CFLAGS"
7688
7689 eval supported=\$$cacheid
7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7691 printf "%s\n" "$supported" >&6; }
7692 if test "$supported" = "yes" ; then
7693 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7694 found="yes"
7695 fi
7696 fi
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712 xorg_testset_save_CFLAGS="$CFLAGS"
7713
7714 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7717 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7718 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7719 then :
7720 printf %s "(cached) " >&6
7721 else $as_nop
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7724 int i;
7725 _ACEOF
7726 if ac_fn_c_try_compile "$LINENO"
7727 then :
7728 xorg_cv_cc_flag_unknown_warning_option=yes
7729 else $as_nop
7730 xorg_cv_cc_flag_unknown_warning_option=no
7731 fi
7732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7733 fi
7734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7735 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7737 CFLAGS="$xorg_testset_save_CFLAGS"
7738 fi
7739
7740 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7743 fi
7744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7746 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7747 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7748 then :
7749 printf %s "(cached) " >&6
7750 else $as_nop
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753 int i;
7754 _ACEOF
7755 if ac_fn_c_try_compile "$LINENO"
7756 then :
7757 xorg_cv_cc_flag_unused_command_line_argument=yes
7758 else $as_nop
7759 xorg_cv_cc_flag_unused_command_line_argument=no
7760 fi
7761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7762 fi
7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7764 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7766 CFLAGS="$xorg_testset_save_CFLAGS"
7767 fi
7768
7769 found="no"
7770
7771 if test $found = "no" ; then
7772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774 fi
7775
7776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7778 fi
7779
7780 CFLAGS="$CFLAGS -Werror=missing-braces"
7781
7782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7783 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7784 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7785 if eval test \${$cacheid+y}
7786 then :
7787 printf %s "(cached) " >&6
7788 else $as_nop
7789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h. */
7791 int i;
7792 int
7793 main (void)
7794 {
7795
7796 ;
7797 return 0;
7798 }
7799 _ACEOF
7800 if ac_fn_c_try_link "$LINENO"
7801 then :
7802 eval $cacheid=yes
7803 else $as_nop
7804 eval $cacheid=no
7805 fi
7806 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7807 conftest$ac_exeext conftest.$ac_ext
7808 fi
7809
7810
7811 CFLAGS="$xorg_testset_save_CFLAGS"
7812
7813 eval supported=\$$cacheid
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7815 printf "%s\n" "$supported" >&6; }
7816 if test "$supported" = "yes" ; then
7817 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7818 found="yes"
7819 fi
7820 fi
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836 xorg_testset_save_CFLAGS="$CFLAGS"
7837
7838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7841 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7842 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7843 then :
7844 printf %s "(cached) " >&6
7845 else $as_nop
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 int i;
7849 _ACEOF
7850 if ac_fn_c_try_compile "$LINENO"
7851 then :
7852 xorg_cv_cc_flag_unknown_warning_option=yes
7853 else $as_nop
7854 xorg_cv_cc_flag_unknown_warning_option=no
7855 fi
7856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7857 fi
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7859 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7861 CFLAGS="$xorg_testset_save_CFLAGS"
7862 fi
7863
7864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7867 fi
7868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7870 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7871 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7872 then :
7873 printf %s "(cached) " >&6
7874 else $as_nop
7875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7876 /* end confdefs.h. */
7877 int i;
7878 _ACEOF
7879 if ac_fn_c_try_compile "$LINENO"
7880 then :
7881 xorg_cv_cc_flag_unused_command_line_argument=yes
7882 else $as_nop
7883 xorg_cv_cc_flag_unused_command_line_argument=no
7884 fi
7885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7886 fi
7887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7888 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7890 CFLAGS="$xorg_testset_save_CFLAGS"
7891 fi
7892
7893 found="no"
7894
7895 if test $found = "no" ; then
7896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7898 fi
7899
7900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7902 fi
7903
7904 CFLAGS="$CFLAGS -Werror=sequence-point"
7905
7906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7907 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7908 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7909 if eval test \${$cacheid+y}
7910 then :
7911 printf %s "(cached) " >&6
7912 else $as_nop
7913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914 /* end confdefs.h. */
7915 int i;
7916 int
7917 main (void)
7918 {
7919
7920 ;
7921 return 0;
7922 }
7923 _ACEOF
7924 if ac_fn_c_try_link "$LINENO"
7925 then :
7926 eval $cacheid=yes
7927 else $as_nop
7928 eval $cacheid=no
7929 fi
7930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7931 conftest$ac_exeext conftest.$ac_ext
7932 fi
7933
7934
7935 CFLAGS="$xorg_testset_save_CFLAGS"
7936
7937 eval supported=\$$cacheid
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7939 printf "%s\n" "$supported" >&6; }
7940 if test "$supported" = "yes" ; then
7941 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7942 found="yes"
7943 fi
7944 fi
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960 xorg_testset_save_CFLAGS="$CFLAGS"
7961
7962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7965 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7966 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7967 then :
7968 printf %s "(cached) " >&6
7969 else $as_nop
7970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7971 /* end confdefs.h. */
7972 int i;
7973 _ACEOF
7974 if ac_fn_c_try_compile "$LINENO"
7975 then :
7976 xorg_cv_cc_flag_unknown_warning_option=yes
7977 else $as_nop
7978 xorg_cv_cc_flag_unknown_warning_option=no
7979 fi
7980 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7981 fi
7982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7983 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7985 CFLAGS="$xorg_testset_save_CFLAGS"
7986 fi
7987
7988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7991 fi
7992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7994 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7995 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7996 then :
7997 printf %s "(cached) " >&6
7998 else $as_nop
7999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8001 int i;
8002 _ACEOF
8003 if ac_fn_c_try_compile "$LINENO"
8004 then :
8005 xorg_cv_cc_flag_unused_command_line_argument=yes
8006 else $as_nop
8007 xorg_cv_cc_flag_unused_command_line_argument=no
8008 fi
8009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8010 fi
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8012 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8014 CFLAGS="$xorg_testset_save_CFLAGS"
8015 fi
8016
8017 found="no"
8018
8019 if test $found = "no" ; then
8020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8022 fi
8023
8024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8026 fi
8027
8028 CFLAGS="$CFLAGS -Werror=return-type"
8029
8030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8031 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8032 cacheid=xorg_cv_cc_flag__Werror_return_type
8033 if eval test \${$cacheid+y}
8034 then :
8035 printf %s "(cached) " >&6
8036 else $as_nop
8037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8039 int i;
8040 int
8041 main (void)
8042 {
8043
8044 ;
8045 return 0;
8046 }
8047 _ACEOF
8048 if ac_fn_c_try_link "$LINENO"
8049 then :
8050 eval $cacheid=yes
8051 else $as_nop
8052 eval $cacheid=no
8053 fi
8054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8055 conftest$ac_exeext conftest.$ac_ext
8056 fi
8057
8058
8059 CFLAGS="$xorg_testset_save_CFLAGS"
8060
8061 eval supported=\$$cacheid
8062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8063 printf "%s\n" "$supported" >&6; }
8064 if test "$supported" = "yes" ; then
8065 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8066 found="yes"
8067 fi
8068 fi
8069
8070 if test $found = "no" ; then
8071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8073 fi
8074
8075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8077 fi
8078
8079 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8080
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8082 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8083 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8084 if eval test \${$cacheid+y}
8085 then :
8086 printf %s "(cached) " >&6
8087 else $as_nop
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8090 int i;
8091 int
8092 main (void)
8093 {
8094
8095 ;
8096 return 0;
8097 }
8098 _ACEOF
8099 if ac_fn_c_try_link "$LINENO"
8100 then :
8101 eval $cacheid=yes
8102 else $as_nop
8103 eval $cacheid=no
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8106 conftest$ac_exeext conftest.$ac_ext
8107 fi
8108
8109
8110 CFLAGS="$xorg_testset_save_CFLAGS"
8111
8112 eval supported=\$$cacheid
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8114 printf "%s\n" "$supported" >&6; }
8115 if test "$supported" = "yes" ; then
8116 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8117 found="yes"
8118 fi
8119 fi
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135 xorg_testset_save_CFLAGS="$CFLAGS"
8136
8137 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8140 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8141 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8142 then :
8143 printf %s "(cached) " >&6
8144 else $as_nop
8145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8146 /* end confdefs.h. */
8147 int i;
8148 _ACEOF
8149 if ac_fn_c_try_compile "$LINENO"
8150 then :
8151 xorg_cv_cc_flag_unknown_warning_option=yes
8152 else $as_nop
8153 xorg_cv_cc_flag_unknown_warning_option=no
8154 fi
8155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8156 fi
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8158 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8159 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8160 CFLAGS="$xorg_testset_save_CFLAGS"
8161 fi
8162
8163 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8164 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8166 fi
8167 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8169 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8170 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8171 then :
8172 printf %s "(cached) " >&6
8173 else $as_nop
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 int i;
8177 _ACEOF
8178 if ac_fn_c_try_compile "$LINENO"
8179 then :
8180 xorg_cv_cc_flag_unused_command_line_argument=yes
8181 else $as_nop
8182 xorg_cv_cc_flag_unused_command_line_argument=no
8183 fi
8184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8185 fi
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8187 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8188 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8189 CFLAGS="$xorg_testset_save_CFLAGS"
8190 fi
8191
8192 found="no"
8193
8194 if test $found = "no" ; then
8195 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8197 fi
8198
8199 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8200 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8201 fi
8202
8203 CFLAGS="$CFLAGS -Werror=trigraphs"
8204
8205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8206 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8207 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8208 if eval test \${$cacheid+y}
8209 then :
8210 printf %s "(cached) " >&6
8211 else $as_nop
8212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8213 /* end confdefs.h. */
8214 int i;
8215 int
8216 main (void)
8217 {
8218
8219 ;
8220 return 0;
8221 }
8222 _ACEOF
8223 if ac_fn_c_try_link "$LINENO"
8224 then :
8225 eval $cacheid=yes
8226 else $as_nop
8227 eval $cacheid=no
8228 fi
8229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8230 conftest$ac_exeext conftest.$ac_ext
8231 fi
8232
8233
8234 CFLAGS="$xorg_testset_save_CFLAGS"
8235
8236 eval supported=\$$cacheid
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8238 printf "%s\n" "$supported" >&6; }
8239 if test "$supported" = "yes" ; then
8240 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8241 found="yes"
8242 fi
8243 fi
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259 xorg_testset_save_CFLAGS="$CFLAGS"
8260
8261 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8264 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8265 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8266 then :
8267 printf %s "(cached) " >&6
8268 else $as_nop
8269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8271 int i;
8272 _ACEOF
8273 if ac_fn_c_try_compile "$LINENO"
8274 then :
8275 xorg_cv_cc_flag_unknown_warning_option=yes
8276 else $as_nop
8277 xorg_cv_cc_flag_unknown_warning_option=no
8278 fi
8279 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8280 fi
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8282 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8283 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8284 CFLAGS="$xorg_testset_save_CFLAGS"
8285 fi
8286
8287 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8288 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8289 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8290 fi
8291 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8293 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8294 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8295 then :
8296 printf %s "(cached) " >&6
8297 else $as_nop
8298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8299 /* end confdefs.h. */
8300 int i;
8301 _ACEOF
8302 if ac_fn_c_try_compile "$LINENO"
8303 then :
8304 xorg_cv_cc_flag_unused_command_line_argument=yes
8305 else $as_nop
8306 xorg_cv_cc_flag_unused_command_line_argument=no
8307 fi
8308 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8309 fi
8310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8311 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8312 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8313 CFLAGS="$xorg_testset_save_CFLAGS"
8314 fi
8315
8316 found="no"
8317
8318 if test $found = "no" ; then
8319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8321 fi
8322
8323 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8324 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8325 fi
8326
8327 CFLAGS="$CFLAGS -Werror=array-bounds"
8328
8329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8330 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8331 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8332 if eval test \${$cacheid+y}
8333 then :
8334 printf %s "(cached) " >&6
8335 else $as_nop
8336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8337 /* end confdefs.h. */
8338 int i;
8339 int
8340 main (void)
8341 {
8342
8343 ;
8344 return 0;
8345 }
8346 _ACEOF
8347 if ac_fn_c_try_link "$LINENO"
8348 then :
8349 eval $cacheid=yes
8350 else $as_nop
8351 eval $cacheid=no
8352 fi
8353 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8354 conftest$ac_exeext conftest.$ac_ext
8355 fi
8356
8357
8358 CFLAGS="$xorg_testset_save_CFLAGS"
8359
8360 eval supported=\$$cacheid
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8362 printf "%s\n" "$supported" >&6; }
8363 if test "$supported" = "yes" ; then
8364 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8365 found="yes"
8366 fi
8367 fi
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383 xorg_testset_save_CFLAGS="$CFLAGS"
8384
8385 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8388 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8389 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8390 then :
8391 printf %s "(cached) " >&6
8392 else $as_nop
8393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8394 /* end confdefs.h. */
8395 int i;
8396 _ACEOF
8397 if ac_fn_c_try_compile "$LINENO"
8398 then :
8399 xorg_cv_cc_flag_unknown_warning_option=yes
8400 else $as_nop
8401 xorg_cv_cc_flag_unknown_warning_option=no
8402 fi
8403 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8404 fi
8405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8406 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8407 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8408 CFLAGS="$xorg_testset_save_CFLAGS"
8409 fi
8410
8411 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8412 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8413 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8414 fi
8415 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8417 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8418 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8419 then :
8420 printf %s "(cached) " >&6
8421 else $as_nop
8422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8424 int i;
8425 _ACEOF
8426 if ac_fn_c_try_compile "$LINENO"
8427 then :
8428 xorg_cv_cc_flag_unused_command_line_argument=yes
8429 else $as_nop
8430 xorg_cv_cc_flag_unused_command_line_argument=no
8431 fi
8432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8433 fi
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8435 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8436 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8437 CFLAGS="$xorg_testset_save_CFLAGS"
8438 fi
8439
8440 found="no"
8441
8442 if test $found = "no" ; then
8443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8445 fi
8446
8447 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8448 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8449 fi
8450
8451 CFLAGS="$CFLAGS -Werror=write-strings"
8452
8453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8454 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8455 cacheid=xorg_cv_cc_flag__Werror_write_strings
8456 if eval test \${$cacheid+y}
8457 then :
8458 printf %s "(cached) " >&6
8459 else $as_nop
8460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8461 /* end confdefs.h. */
8462 int i;
8463 int
8464 main (void)
8465 {
8466
8467 ;
8468 return 0;
8469 }
8470 _ACEOF
8471 if ac_fn_c_try_link "$LINENO"
8472 then :
8473 eval $cacheid=yes
8474 else $as_nop
8475 eval $cacheid=no
8476 fi
8477 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8478 conftest$ac_exeext conftest.$ac_ext
8479 fi
8480
8481
8482 CFLAGS="$xorg_testset_save_CFLAGS"
8483
8484 eval supported=\$$cacheid
8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8486 printf "%s\n" "$supported" >&6; }
8487 if test "$supported" = "yes" ; then
8488 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8489 found="yes"
8490 fi
8491 fi
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507 xorg_testset_save_CFLAGS="$CFLAGS"
8508
8509 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8512 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8513 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8514 then :
8515 printf %s "(cached) " >&6
8516 else $as_nop
8517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8518 /* end confdefs.h. */
8519 int i;
8520 _ACEOF
8521 if ac_fn_c_try_compile "$LINENO"
8522 then :
8523 xorg_cv_cc_flag_unknown_warning_option=yes
8524 else $as_nop
8525 xorg_cv_cc_flag_unknown_warning_option=no
8526 fi
8527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8528 fi
8529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8530 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8531 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8532 CFLAGS="$xorg_testset_save_CFLAGS"
8533 fi
8534
8535 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8536 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8537 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8538 fi
8539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8541 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8542 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8543 then :
8544 printf %s "(cached) " >&6
8545 else $as_nop
8546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8547 /* end confdefs.h. */
8548 int i;
8549 _ACEOF
8550 if ac_fn_c_try_compile "$LINENO"
8551 then :
8552 xorg_cv_cc_flag_unused_command_line_argument=yes
8553 else $as_nop
8554 xorg_cv_cc_flag_unused_command_line_argument=no
8555 fi
8556 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8557 fi
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8559 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8560 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8561 CFLAGS="$xorg_testset_save_CFLAGS"
8562 fi
8563
8564 found="no"
8565
8566 if test $found = "no" ; then
8567 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8568 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8569 fi
8570
8571 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8572 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8573 fi
8574
8575 CFLAGS="$CFLAGS -Werror=address"
8576
8577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8578 printf %s "checking if $CC supports -Werror=address... " >&6; }
8579 cacheid=xorg_cv_cc_flag__Werror_address
8580 if eval test \${$cacheid+y}
8581 then :
8582 printf %s "(cached) " >&6
8583 else $as_nop
8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8585 /* end confdefs.h. */
8586 int i;
8587 int
8588 main (void)
8589 {
8590
8591 ;
8592 return 0;
8593 }
8594 _ACEOF
8595 if ac_fn_c_try_link "$LINENO"
8596 then :
8597 eval $cacheid=yes
8598 else $as_nop
8599 eval $cacheid=no
8600 fi
8601 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8602 conftest$ac_exeext conftest.$ac_ext
8603 fi
8604
8605
8606 CFLAGS="$xorg_testset_save_CFLAGS"
8607
8608 eval supported=\$$cacheid
8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8610 printf "%s\n" "$supported" >&6; }
8611 if test "$supported" = "yes" ; then
8612 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8613 found="yes"
8614 fi
8615 fi
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631 xorg_testset_save_CFLAGS="$CFLAGS"
8632
8633 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8636 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8637 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8638 then :
8639 printf %s "(cached) " >&6
8640 else $as_nop
8641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8642 /* end confdefs.h. */
8643 int i;
8644 _ACEOF
8645 if ac_fn_c_try_compile "$LINENO"
8646 then :
8647 xorg_cv_cc_flag_unknown_warning_option=yes
8648 else $as_nop
8649 xorg_cv_cc_flag_unknown_warning_option=no
8650 fi
8651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8652 fi
8653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8654 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8655 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8656 CFLAGS="$xorg_testset_save_CFLAGS"
8657 fi
8658
8659 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8662 fi
8663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8665 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8666 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8667 then :
8668 printf %s "(cached) " >&6
8669 else $as_nop
8670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h. */
8672 int i;
8673 _ACEOF
8674 if ac_fn_c_try_compile "$LINENO"
8675 then :
8676 xorg_cv_cc_flag_unused_command_line_argument=yes
8677 else $as_nop
8678 xorg_cv_cc_flag_unused_command_line_argument=no
8679 fi
8680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8681 fi
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8683 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8685 CFLAGS="$xorg_testset_save_CFLAGS"
8686 fi
8687
8688 found="no"
8689
8690 if test $found = "no" ; then
8691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8693 fi
8694
8695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8697 fi
8698
8699 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8700
8701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8702 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8703 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8704 if eval test \${$cacheid+y}
8705 then :
8706 printf %s "(cached) " >&6
8707 else $as_nop
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8710 int i;
8711 int
8712 main (void)
8713 {
8714
8715 ;
8716 return 0;
8717 }
8718 _ACEOF
8719 if ac_fn_c_try_link "$LINENO"
8720 then :
8721 eval $cacheid=yes
8722 else $as_nop
8723 eval $cacheid=no
8724 fi
8725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8726 conftest$ac_exeext conftest.$ac_ext
8727 fi
8728
8729
8730 CFLAGS="$xorg_testset_save_CFLAGS"
8731
8732 eval supported=\$$cacheid
8733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8734 printf "%s\n" "$supported" >&6; }
8735 if test "$supported" = "yes" ; then
8736 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8737 found="yes"
8738 fi
8739 fi
8740
8741 if test $found = "no" ; then
8742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8744 fi
8745
8746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8748 fi
8749
8750 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8751
8752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8753 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8754 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8755 if eval test \${$cacheid+y}
8756 then :
8757 printf %s "(cached) " >&6
8758 else $as_nop
8759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h. */
8761 int i;
8762 int
8763 main (void)
8764 {
8765
8766 ;
8767 return 0;
8768 }
8769 _ACEOF
8770 if ac_fn_c_try_link "$LINENO"
8771 then :
8772 eval $cacheid=yes
8773 else $as_nop
8774 eval $cacheid=no
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8777 conftest$ac_exeext conftest.$ac_ext
8778 fi
8779
8780
8781 CFLAGS="$xorg_testset_save_CFLAGS"
8782
8783 eval supported=\$$cacheid
8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8785 printf "%s\n" "$supported" >&6; }
8786 if test "$supported" = "yes" ; then
8787 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8788 found="yes"
8789 fi
8790 fi
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806 xorg_testset_save_CFLAGS="$CFLAGS"
8807
8808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8811 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8812 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8813 then :
8814 printf %s "(cached) " >&6
8815 else $as_nop
8816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8817 /* end confdefs.h. */
8818 int i;
8819 _ACEOF
8820 if ac_fn_c_try_compile "$LINENO"
8821 then :
8822 xorg_cv_cc_flag_unknown_warning_option=yes
8823 else $as_nop
8824 xorg_cv_cc_flag_unknown_warning_option=no
8825 fi
8826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8827 fi
8828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8829 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8831 CFLAGS="$xorg_testset_save_CFLAGS"
8832 fi
8833
8834 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8837 fi
8838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8840 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8841 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8842 then :
8843 printf %s "(cached) " >&6
8844 else $as_nop
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 int i;
8848 _ACEOF
8849 if ac_fn_c_try_compile "$LINENO"
8850 then :
8851 xorg_cv_cc_flag_unused_command_line_argument=yes
8852 else $as_nop
8853 xorg_cv_cc_flag_unused_command_line_argument=no
8854 fi
8855 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8856 fi
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8858 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8860 CFLAGS="$xorg_testset_save_CFLAGS"
8861 fi
8862
8863 found="no"
8864
8865 if test $found = "no" ; then
8866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8868 fi
8869
8870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8872 fi
8873
8874 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8875
8876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8877 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8878 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8879 if eval test \${$cacheid+y}
8880 then :
8881 printf %s "(cached) " >&6
8882 else $as_nop
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h. */
8885 int i;
8886 int
8887 main (void)
8888 {
8889
8890 ;
8891 return 0;
8892 }
8893 _ACEOF
8894 if ac_fn_c_try_link "$LINENO"
8895 then :
8896 eval $cacheid=yes
8897 else $as_nop
8898 eval $cacheid=no
8899 fi
8900 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8901 conftest$ac_exeext conftest.$ac_ext
8902 fi
8903
8904
8905 CFLAGS="$xorg_testset_save_CFLAGS"
8906
8907 eval supported=\$$cacheid
8908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8909 printf "%s\n" "$supported" >&6; }
8910 if test "$supported" = "yes" ; then
8911 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8912 found="yes"
8913 fi
8914 fi
8915
8916 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8917 else
8918 { 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
8919 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;}
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933 xorg_testset_save_CFLAGS="$CFLAGS"
8934
8935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8938 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8939 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8940 then :
8941 printf %s "(cached) " >&6
8942 else $as_nop
8943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8944 /* end confdefs.h. */
8945 int i;
8946 _ACEOF
8947 if ac_fn_c_try_compile "$LINENO"
8948 then :
8949 xorg_cv_cc_flag_unknown_warning_option=yes
8950 else $as_nop
8951 xorg_cv_cc_flag_unknown_warning_option=no
8952 fi
8953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8954 fi
8955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8956 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8958 CFLAGS="$xorg_testset_save_CFLAGS"
8959 fi
8960
8961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8964 fi
8965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8967 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8968 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8969 then :
8970 printf %s "(cached) " >&6
8971 else $as_nop
8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8973 /* end confdefs.h. */
8974 int i;
8975 _ACEOF
8976 if ac_fn_c_try_compile "$LINENO"
8977 then :
8978 xorg_cv_cc_flag_unused_command_line_argument=yes
8979 else $as_nop
8980 xorg_cv_cc_flag_unused_command_line_argument=no
8981 fi
8982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8983 fi
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8985 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8987 CFLAGS="$xorg_testset_save_CFLAGS"
8988 fi
8989
8990 found="no"
8991
8992 if test $found = "no" ; then
8993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8995 fi
8996
8997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8999 fi
9000
9001 CFLAGS="$CFLAGS -Wimplicit"
9002
9003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9004 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9005 cacheid=xorg_cv_cc_flag__Wimplicit
9006 if eval test \${$cacheid+y}
9007 then :
9008 printf %s "(cached) " >&6
9009 else $as_nop
9010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9011 /* end confdefs.h. */
9012 int i;
9013 int
9014 main (void)
9015 {
9016
9017 ;
9018 return 0;
9019 }
9020 _ACEOF
9021 if ac_fn_c_try_link "$LINENO"
9022 then :
9023 eval $cacheid=yes
9024 else $as_nop
9025 eval $cacheid=no
9026 fi
9027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9028 conftest$ac_exeext conftest.$ac_ext
9029 fi
9030
9031
9032 CFLAGS="$xorg_testset_save_CFLAGS"
9033
9034 eval supported=\$$cacheid
9035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9036 printf "%s\n" "$supported" >&6; }
9037 if test "$supported" = "yes" ; then
9038 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9039 found="yes"
9040 fi
9041 fi
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057 xorg_testset_save_CFLAGS="$CFLAGS"
9058
9059 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9062 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9063 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9064 then :
9065 printf %s "(cached) " >&6
9066 else $as_nop
9067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9068 /* end confdefs.h. */
9069 int i;
9070 _ACEOF
9071 if ac_fn_c_try_compile "$LINENO"
9072 then :
9073 xorg_cv_cc_flag_unknown_warning_option=yes
9074 else $as_nop
9075 xorg_cv_cc_flag_unknown_warning_option=no
9076 fi
9077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9078 fi
9079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9080 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9082 CFLAGS="$xorg_testset_save_CFLAGS"
9083 fi
9084
9085 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9088 fi
9089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9091 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9092 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9093 then :
9094 printf %s "(cached) " >&6
9095 else $as_nop
9096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9097 /* end confdefs.h. */
9098 int i;
9099 _ACEOF
9100 if ac_fn_c_try_compile "$LINENO"
9101 then :
9102 xorg_cv_cc_flag_unused_command_line_argument=yes
9103 else $as_nop
9104 xorg_cv_cc_flag_unused_command_line_argument=no
9105 fi
9106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9107 fi
9108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9109 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9111 CFLAGS="$xorg_testset_save_CFLAGS"
9112 fi
9113
9114 found="no"
9115
9116 if test $found = "no" ; then
9117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9119 fi
9120
9121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9123 fi
9124
9125 CFLAGS="$CFLAGS -Wnonnull"
9126
9127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9128 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9129 cacheid=xorg_cv_cc_flag__Wnonnull
9130 if eval test \${$cacheid+y}
9131 then :
9132 printf %s "(cached) " >&6
9133 else $as_nop
9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9135 /* end confdefs.h. */
9136 int i;
9137 int
9138 main (void)
9139 {
9140
9141 ;
9142 return 0;
9143 }
9144 _ACEOF
9145 if ac_fn_c_try_link "$LINENO"
9146 then :
9147 eval $cacheid=yes
9148 else $as_nop
9149 eval $cacheid=no
9150 fi
9151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9152 conftest$ac_exeext conftest.$ac_ext
9153 fi
9154
9155
9156 CFLAGS="$xorg_testset_save_CFLAGS"
9157
9158 eval supported=\$$cacheid
9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9160 printf "%s\n" "$supported" >&6; }
9161 if test "$supported" = "yes" ; then
9162 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9163 found="yes"
9164 fi
9165 fi
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181 xorg_testset_save_CFLAGS="$CFLAGS"
9182
9183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9186 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9187 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9188 then :
9189 printf %s "(cached) " >&6
9190 else $as_nop
9191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h. */
9193 int i;
9194 _ACEOF
9195 if ac_fn_c_try_compile "$LINENO"
9196 then :
9197 xorg_cv_cc_flag_unknown_warning_option=yes
9198 else $as_nop
9199 xorg_cv_cc_flag_unknown_warning_option=no
9200 fi
9201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9202 fi
9203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9204 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9206 CFLAGS="$xorg_testset_save_CFLAGS"
9207 fi
9208
9209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9212 fi
9213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9215 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9216 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9217 then :
9218 printf %s "(cached) " >&6
9219 else $as_nop
9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9221 /* end confdefs.h. */
9222 int i;
9223 _ACEOF
9224 if ac_fn_c_try_compile "$LINENO"
9225 then :
9226 xorg_cv_cc_flag_unused_command_line_argument=yes
9227 else $as_nop
9228 xorg_cv_cc_flag_unused_command_line_argument=no
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9231 fi
9232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9233 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9234 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9235 CFLAGS="$xorg_testset_save_CFLAGS"
9236 fi
9237
9238 found="no"
9239
9240 if test $found = "no" ; then
9241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9243 fi
9244
9245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9247 fi
9248
9249 CFLAGS="$CFLAGS -Winit-self"
9250
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9252 printf %s "checking if $CC supports -Winit-self... " >&6; }
9253 cacheid=xorg_cv_cc_flag__Winit_self
9254 if eval test \${$cacheid+y}
9255 then :
9256 printf %s "(cached) " >&6
9257 else $as_nop
9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9260 int i;
9261 int
9262 main (void)
9263 {
9264
9265 ;
9266 return 0;
9267 }
9268 _ACEOF
9269 if ac_fn_c_try_link "$LINENO"
9270 then :
9271 eval $cacheid=yes
9272 else $as_nop
9273 eval $cacheid=no
9274 fi
9275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9276 conftest$ac_exeext conftest.$ac_ext
9277 fi
9278
9279
9280 CFLAGS="$xorg_testset_save_CFLAGS"
9281
9282 eval supported=\$$cacheid
9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9284 printf "%s\n" "$supported" >&6; }
9285 if test "$supported" = "yes" ; then
9286 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9287 found="yes"
9288 fi
9289 fi
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305 xorg_testset_save_CFLAGS="$CFLAGS"
9306
9307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9310 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9311 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9312 then :
9313 printf %s "(cached) " >&6
9314 else $as_nop
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9317 int i;
9318 _ACEOF
9319 if ac_fn_c_try_compile "$LINENO"
9320 then :
9321 xorg_cv_cc_flag_unknown_warning_option=yes
9322 else $as_nop
9323 xorg_cv_cc_flag_unknown_warning_option=no
9324 fi
9325 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9326 fi
9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9328 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9330 CFLAGS="$xorg_testset_save_CFLAGS"
9331 fi
9332
9333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9336 fi
9337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9339 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9340 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9341 then :
9342 printf %s "(cached) " >&6
9343 else $as_nop
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9346 int i;
9347 _ACEOF
9348 if ac_fn_c_try_compile "$LINENO"
9349 then :
9350 xorg_cv_cc_flag_unused_command_line_argument=yes
9351 else $as_nop
9352 xorg_cv_cc_flag_unused_command_line_argument=no
9353 fi
9354 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9355 fi
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9357 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9358 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9359 CFLAGS="$xorg_testset_save_CFLAGS"
9360 fi
9361
9362 found="no"
9363
9364 if test $found = "no" ; then
9365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9367 fi
9368
9369 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9370 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9371 fi
9372
9373 CFLAGS="$CFLAGS -Wmain"
9374
9375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9376 printf %s "checking if $CC supports -Wmain... " >&6; }
9377 cacheid=xorg_cv_cc_flag__Wmain
9378 if eval test \${$cacheid+y}
9379 then :
9380 printf %s "(cached) " >&6
9381 else $as_nop
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383 /* end confdefs.h. */
9384 int i;
9385 int
9386 main (void)
9387 {
9388
9389 ;
9390 return 0;
9391 }
9392 _ACEOF
9393 if ac_fn_c_try_link "$LINENO"
9394 then :
9395 eval $cacheid=yes
9396 else $as_nop
9397 eval $cacheid=no
9398 fi
9399 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9400 conftest$ac_exeext conftest.$ac_ext
9401 fi
9402
9403
9404 CFLAGS="$xorg_testset_save_CFLAGS"
9405
9406 eval supported=\$$cacheid
9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9408 printf "%s\n" "$supported" >&6; }
9409 if test "$supported" = "yes" ; then
9410 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9411 found="yes"
9412 fi
9413 fi
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429 xorg_testset_save_CFLAGS="$CFLAGS"
9430
9431 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9434 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9435 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9436 then :
9437 printf %s "(cached) " >&6
9438 else $as_nop
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9441 int i;
9442 _ACEOF
9443 if ac_fn_c_try_compile "$LINENO"
9444 then :
9445 xorg_cv_cc_flag_unknown_warning_option=yes
9446 else $as_nop
9447 xorg_cv_cc_flag_unknown_warning_option=no
9448 fi
9449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9450 fi
9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9452 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9453 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9454 CFLAGS="$xorg_testset_save_CFLAGS"
9455 fi
9456
9457 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9458 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9459 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9460 fi
9461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9463 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9464 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9465 then :
9466 printf %s "(cached) " >&6
9467 else $as_nop
9468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9469 /* end confdefs.h. */
9470 int i;
9471 _ACEOF
9472 if ac_fn_c_try_compile "$LINENO"
9473 then :
9474 xorg_cv_cc_flag_unused_command_line_argument=yes
9475 else $as_nop
9476 xorg_cv_cc_flag_unused_command_line_argument=no
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9479 fi
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9481 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9483 CFLAGS="$xorg_testset_save_CFLAGS"
9484 fi
9485
9486 found="no"
9487
9488 if test $found = "no" ; then
9489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9491 fi
9492
9493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9495 fi
9496
9497 CFLAGS="$CFLAGS -Wmissing-braces"
9498
9499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9500 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9501 cacheid=xorg_cv_cc_flag__Wmissing_braces
9502 if eval test \${$cacheid+y}
9503 then :
9504 printf %s "(cached) " >&6
9505 else $as_nop
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9508 int i;
9509 int
9510 main (void)
9511 {
9512
9513 ;
9514 return 0;
9515 }
9516 _ACEOF
9517 if ac_fn_c_try_link "$LINENO"
9518 then :
9519 eval $cacheid=yes
9520 else $as_nop
9521 eval $cacheid=no
9522 fi
9523 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9524 conftest$ac_exeext conftest.$ac_ext
9525 fi
9526
9527
9528 CFLAGS="$xorg_testset_save_CFLAGS"
9529
9530 eval supported=\$$cacheid
9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9532 printf "%s\n" "$supported" >&6; }
9533 if test "$supported" = "yes" ; then
9534 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9535 found="yes"
9536 fi
9537 fi
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553 xorg_testset_save_CFLAGS="$CFLAGS"
9554
9555 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9558 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9559 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9560 then :
9561 printf %s "(cached) " >&6
9562 else $as_nop
9563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9564 /* end confdefs.h. */
9565 int i;
9566 _ACEOF
9567 if ac_fn_c_try_compile "$LINENO"
9568 then :
9569 xorg_cv_cc_flag_unknown_warning_option=yes
9570 else $as_nop
9571 xorg_cv_cc_flag_unknown_warning_option=no
9572 fi
9573 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9574 fi
9575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9576 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9577 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9578 CFLAGS="$xorg_testset_save_CFLAGS"
9579 fi
9580
9581 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9583 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9584 fi
9585 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9587 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9588 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9589 then :
9590 printf %s "(cached) " >&6
9591 else $as_nop
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9594 int i;
9595 _ACEOF
9596 if ac_fn_c_try_compile "$LINENO"
9597 then :
9598 xorg_cv_cc_flag_unused_command_line_argument=yes
9599 else $as_nop
9600 xorg_cv_cc_flag_unused_command_line_argument=no
9601 fi
9602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9603 fi
9604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9605 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9607 CFLAGS="$xorg_testset_save_CFLAGS"
9608 fi
9609
9610 found="no"
9611
9612 if test $found = "no" ; then
9613 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9615 fi
9616
9617 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9619 fi
9620
9621 CFLAGS="$CFLAGS -Wsequence-point"
9622
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9624 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9625 cacheid=xorg_cv_cc_flag__Wsequence_point
9626 if eval test \${$cacheid+y}
9627 then :
9628 printf %s "(cached) " >&6
9629 else $as_nop
9630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9631 /* end confdefs.h. */
9632 int i;
9633 int
9634 main (void)
9635 {
9636
9637 ;
9638 return 0;
9639 }
9640 _ACEOF
9641 if ac_fn_c_try_link "$LINENO"
9642 then :
9643 eval $cacheid=yes
9644 else $as_nop
9645 eval $cacheid=no
9646 fi
9647 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9648 conftest$ac_exeext conftest.$ac_ext
9649 fi
9650
9651
9652 CFLAGS="$xorg_testset_save_CFLAGS"
9653
9654 eval supported=\$$cacheid
9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9656 printf "%s\n" "$supported" >&6; }
9657 if test "$supported" = "yes" ; then
9658 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9659 found="yes"
9660 fi
9661 fi
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677 xorg_testset_save_CFLAGS="$CFLAGS"
9678
9679 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9682 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9683 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9684 then :
9685 printf %s "(cached) " >&6
9686 else $as_nop
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9689 int i;
9690 _ACEOF
9691 if ac_fn_c_try_compile "$LINENO"
9692 then :
9693 xorg_cv_cc_flag_unknown_warning_option=yes
9694 else $as_nop
9695 xorg_cv_cc_flag_unknown_warning_option=no
9696 fi
9697 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9698 fi
9699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9700 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9701 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9702 CFLAGS="$xorg_testset_save_CFLAGS"
9703 fi
9704
9705 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9706 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9707 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9708 fi
9709 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9711 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9712 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9713 then :
9714 printf %s "(cached) " >&6
9715 else $as_nop
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9718 int i;
9719 _ACEOF
9720 if ac_fn_c_try_compile "$LINENO"
9721 then :
9722 xorg_cv_cc_flag_unused_command_line_argument=yes
9723 else $as_nop
9724 xorg_cv_cc_flag_unused_command_line_argument=no
9725 fi
9726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9727 fi
9728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9729 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9731 CFLAGS="$xorg_testset_save_CFLAGS"
9732 fi
9733
9734 found="no"
9735
9736 if test $found = "no" ; then
9737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9739 fi
9740
9741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9743 fi
9744
9745 CFLAGS="$CFLAGS -Wreturn-type"
9746
9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9748 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9749 cacheid=xorg_cv_cc_flag__Wreturn_type
9750 if eval test \${$cacheid+y}
9751 then :
9752 printf %s "(cached) " >&6
9753 else $as_nop
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9756 int i;
9757 int
9758 main (void)
9759 {
9760
9761 ;
9762 return 0;
9763 }
9764 _ACEOF
9765 if ac_fn_c_try_link "$LINENO"
9766 then :
9767 eval $cacheid=yes
9768 else $as_nop
9769 eval $cacheid=no
9770 fi
9771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9772 conftest$ac_exeext conftest.$ac_ext
9773 fi
9774
9775
9776 CFLAGS="$xorg_testset_save_CFLAGS"
9777
9778 eval supported=\$$cacheid
9779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9780 printf "%s\n" "$supported" >&6; }
9781 if test "$supported" = "yes" ; then
9782 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9783 found="yes"
9784 fi
9785 fi
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801 xorg_testset_save_CFLAGS="$CFLAGS"
9802
9803 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9806 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9807 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9808 then :
9809 printf %s "(cached) " >&6
9810 else $as_nop
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812 /* end confdefs.h. */
9813 int i;
9814 _ACEOF
9815 if ac_fn_c_try_compile "$LINENO"
9816 then :
9817 xorg_cv_cc_flag_unknown_warning_option=yes
9818 else $as_nop
9819 xorg_cv_cc_flag_unknown_warning_option=no
9820 fi
9821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9822 fi
9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9824 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9825 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9826 CFLAGS="$xorg_testset_save_CFLAGS"
9827 fi
9828
9829 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9830 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9831 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9832 fi
9833 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9835 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9836 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9837 then :
9838 printf %s "(cached) " >&6
9839 else $as_nop
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9842 int i;
9843 _ACEOF
9844 if ac_fn_c_try_compile "$LINENO"
9845 then :
9846 xorg_cv_cc_flag_unused_command_line_argument=yes
9847 else $as_nop
9848 xorg_cv_cc_flag_unused_command_line_argument=no
9849 fi
9850 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9851 fi
9852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9853 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9854 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9855 CFLAGS="$xorg_testset_save_CFLAGS"
9856 fi
9857
9858 found="no"
9859
9860 if test $found = "no" ; then
9861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9863 fi
9864
9865 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9866 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9867 fi
9868
9869 CFLAGS="$CFLAGS -Wtrigraphs"
9870
9871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9872 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9873 cacheid=xorg_cv_cc_flag__Wtrigraphs
9874 if eval test \${$cacheid+y}
9875 then :
9876 printf %s "(cached) " >&6
9877 else $as_nop
9878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9879 /* end confdefs.h. */
9880 int i;
9881 int
9882 main (void)
9883 {
9884
9885 ;
9886 return 0;
9887 }
9888 _ACEOF
9889 if ac_fn_c_try_link "$LINENO"
9890 then :
9891 eval $cacheid=yes
9892 else $as_nop
9893 eval $cacheid=no
9894 fi
9895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9896 conftest$ac_exeext conftest.$ac_ext
9897 fi
9898
9899
9900 CFLAGS="$xorg_testset_save_CFLAGS"
9901
9902 eval supported=\$$cacheid
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9904 printf "%s\n" "$supported" >&6; }
9905 if test "$supported" = "yes" ; then
9906 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9907 found="yes"
9908 fi
9909 fi
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925 xorg_testset_save_CFLAGS="$CFLAGS"
9926
9927 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9930 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9931 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9932 then :
9933 printf %s "(cached) " >&6
9934 else $as_nop
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9937 int i;
9938 _ACEOF
9939 if ac_fn_c_try_compile "$LINENO"
9940 then :
9941 xorg_cv_cc_flag_unknown_warning_option=yes
9942 else $as_nop
9943 xorg_cv_cc_flag_unknown_warning_option=no
9944 fi
9945 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9946 fi
9947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9948 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9950 CFLAGS="$xorg_testset_save_CFLAGS"
9951 fi
9952
9953 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9956 fi
9957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9959 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9960 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9961 then :
9962 printf %s "(cached) " >&6
9963 else $as_nop
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9966 int i;
9967 _ACEOF
9968 if ac_fn_c_try_compile "$LINENO"
9969 then :
9970 xorg_cv_cc_flag_unused_command_line_argument=yes
9971 else $as_nop
9972 xorg_cv_cc_flag_unused_command_line_argument=no
9973 fi
9974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9975 fi
9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9977 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9978 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9979 CFLAGS="$xorg_testset_save_CFLAGS"
9980 fi
9981
9982 found="no"
9983
9984 if test $found = "no" ; then
9985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9987 fi
9988
9989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9991 fi
9992
9993 CFLAGS="$CFLAGS -Warray-bounds"
9994
9995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9996 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9997 cacheid=xorg_cv_cc_flag__Warray_bounds
9998 if eval test \${$cacheid+y}
9999 then :
10000 printf %s "(cached) " >&6
10001 else $as_nop
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003 /* end confdefs.h. */
10004 int i;
10005 int
10006 main (void)
10007 {
10008
10009 ;
10010 return 0;
10011 }
10012 _ACEOF
10013 if ac_fn_c_try_link "$LINENO"
10014 then :
10015 eval $cacheid=yes
10016 else $as_nop
10017 eval $cacheid=no
10018 fi
10019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10020 conftest$ac_exeext conftest.$ac_ext
10021 fi
10022
10023
10024 CFLAGS="$xorg_testset_save_CFLAGS"
10025
10026 eval supported=\$$cacheid
10027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10028 printf "%s\n" "$supported" >&6; }
10029 if test "$supported" = "yes" ; then
10030 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10031 found="yes"
10032 fi
10033 fi
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049 xorg_testset_save_CFLAGS="$CFLAGS"
10050
10051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10054 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10055 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10056 then :
10057 printf %s "(cached) " >&6
10058 else $as_nop
10059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060 /* end confdefs.h. */
10061 int i;
10062 _ACEOF
10063 if ac_fn_c_try_compile "$LINENO"
10064 then :
10065 xorg_cv_cc_flag_unknown_warning_option=yes
10066 else $as_nop
10067 xorg_cv_cc_flag_unknown_warning_option=no
10068 fi
10069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10070 fi
10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10072 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10074 CFLAGS="$xorg_testset_save_CFLAGS"
10075 fi
10076
10077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10080 fi
10081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10083 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10084 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10085 then :
10086 printf %s "(cached) " >&6
10087 else $as_nop
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10089 /* end confdefs.h. */
10090 int i;
10091 _ACEOF
10092 if ac_fn_c_try_compile "$LINENO"
10093 then :
10094 xorg_cv_cc_flag_unused_command_line_argument=yes
10095 else $as_nop
10096 xorg_cv_cc_flag_unused_command_line_argument=no
10097 fi
10098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10099 fi
10100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10101 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10102 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10103 CFLAGS="$xorg_testset_save_CFLAGS"
10104 fi
10105
10106 found="no"
10107
10108 if test $found = "no" ; then
10109 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10110 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10111 fi
10112
10113 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10115 fi
10116
10117 CFLAGS="$CFLAGS -Wwrite-strings"
10118
10119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10120 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10121 cacheid=xorg_cv_cc_flag__Wwrite_strings
10122 if eval test \${$cacheid+y}
10123 then :
10124 printf %s "(cached) " >&6
10125 else $as_nop
10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10128 int i;
10129 int
10130 main (void)
10131 {
10132
10133 ;
10134 return 0;
10135 }
10136 _ACEOF
10137 if ac_fn_c_try_link "$LINENO"
10138 then :
10139 eval $cacheid=yes
10140 else $as_nop
10141 eval $cacheid=no
10142 fi
10143 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10144 conftest$ac_exeext conftest.$ac_ext
10145 fi
10146
10147
10148 CFLAGS="$xorg_testset_save_CFLAGS"
10149
10150 eval supported=\$$cacheid
10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10152 printf "%s\n" "$supported" >&6; }
10153 if test "$supported" = "yes" ; then
10154 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10155 found="yes"
10156 fi
10157 fi
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173 xorg_testset_save_CFLAGS="$CFLAGS"
10174
10175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10178 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10179 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10180 then :
10181 printf %s "(cached) " >&6
10182 else $as_nop
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10185 int i;
10186 _ACEOF
10187 if ac_fn_c_try_compile "$LINENO"
10188 then :
10189 xorg_cv_cc_flag_unknown_warning_option=yes
10190 else $as_nop
10191 xorg_cv_cc_flag_unknown_warning_option=no
10192 fi
10193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10194 fi
10195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10196 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10197 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10198 CFLAGS="$xorg_testset_save_CFLAGS"
10199 fi
10200
10201 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10204 fi
10205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10207 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10208 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10209 then :
10210 printf %s "(cached) " >&6
10211 else $as_nop
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10214 int i;
10215 _ACEOF
10216 if ac_fn_c_try_compile "$LINENO"
10217 then :
10218 xorg_cv_cc_flag_unused_command_line_argument=yes
10219 else $as_nop
10220 xorg_cv_cc_flag_unused_command_line_argument=no
10221 fi
10222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10223 fi
10224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10225 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10226 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10227 CFLAGS="$xorg_testset_save_CFLAGS"
10228 fi
10229
10230 found="no"
10231
10232 if test $found = "no" ; then
10233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10235 fi
10236
10237 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10239 fi
10240
10241 CFLAGS="$CFLAGS -Waddress"
10242
10243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10244 printf %s "checking if $CC supports -Waddress... " >&6; }
10245 cacheid=xorg_cv_cc_flag__Waddress
10246 if eval test \${$cacheid+y}
10247 then :
10248 printf %s "(cached) " >&6
10249 else $as_nop
10250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10251 /* end confdefs.h. */
10252 int i;
10253 int
10254 main (void)
10255 {
10256
10257 ;
10258 return 0;
10259 }
10260 _ACEOF
10261 if ac_fn_c_try_link "$LINENO"
10262 then :
10263 eval $cacheid=yes
10264 else $as_nop
10265 eval $cacheid=no
10266 fi
10267 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10268 conftest$ac_exeext conftest.$ac_ext
10269 fi
10270
10271
10272 CFLAGS="$xorg_testset_save_CFLAGS"
10273
10274 eval supported=\$$cacheid
10275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10276 printf "%s\n" "$supported" >&6; }
10277 if test "$supported" = "yes" ; then
10278 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10279 found="yes"
10280 fi
10281 fi
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297 xorg_testset_save_CFLAGS="$CFLAGS"
10298
10299 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10302 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10303 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10304 then :
10305 printf %s "(cached) " >&6
10306 else $as_nop
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10309 int i;
10310 _ACEOF
10311 if ac_fn_c_try_compile "$LINENO"
10312 then :
10313 xorg_cv_cc_flag_unknown_warning_option=yes
10314 else $as_nop
10315 xorg_cv_cc_flag_unknown_warning_option=no
10316 fi
10317 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10318 fi
10319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10320 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10322 CFLAGS="$xorg_testset_save_CFLAGS"
10323 fi
10324
10325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10328 fi
10329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10331 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10332 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10333 then :
10334 printf %s "(cached) " >&6
10335 else $as_nop
10336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10337 /* end confdefs.h. */
10338 int i;
10339 _ACEOF
10340 if ac_fn_c_try_compile "$LINENO"
10341 then :
10342 xorg_cv_cc_flag_unused_command_line_argument=yes
10343 else $as_nop
10344 xorg_cv_cc_flag_unused_command_line_argument=no
10345 fi
10346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10347 fi
10348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10349 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10351 CFLAGS="$xorg_testset_save_CFLAGS"
10352 fi
10353
10354 found="no"
10355
10356 if test $found = "no" ; then
10357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10359 fi
10360
10361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10363 fi
10364
10365 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10366
10367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10368 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10369 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10370 if eval test \${$cacheid+y}
10371 then :
10372 printf %s "(cached) " >&6
10373 else $as_nop
10374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10375 /* end confdefs.h. */
10376 int i;
10377 int
10378 main (void)
10379 {
10380
10381 ;
10382 return 0;
10383 }
10384 _ACEOF
10385 if ac_fn_c_try_link "$LINENO"
10386 then :
10387 eval $cacheid=yes
10388 else $as_nop
10389 eval $cacheid=no
10390 fi
10391 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10392 conftest$ac_exeext conftest.$ac_ext
10393 fi
10394
10395
10396 CFLAGS="$xorg_testset_save_CFLAGS"
10397
10398 eval supported=\$$cacheid
10399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10400 printf "%s\n" "$supported" >&6; }
10401 if test "$supported" = "yes" ; then
10402 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10403 found="yes"
10404 fi
10405 fi
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421 xorg_testset_save_CFLAGS="$CFLAGS"
10422
10423 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10426 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10427 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10428 then :
10429 printf %s "(cached) " >&6
10430 else $as_nop
10431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10432 /* end confdefs.h. */
10433 int i;
10434 _ACEOF
10435 if ac_fn_c_try_compile "$LINENO"
10436 then :
10437 xorg_cv_cc_flag_unknown_warning_option=yes
10438 else $as_nop
10439 xorg_cv_cc_flag_unknown_warning_option=no
10440 fi
10441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10442 fi
10443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10444 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10445 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10446 CFLAGS="$xorg_testset_save_CFLAGS"
10447 fi
10448
10449 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10452 fi
10453 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10455 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10456 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10457 then :
10458 printf %s "(cached) " >&6
10459 else $as_nop
10460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10461 /* end confdefs.h. */
10462 int i;
10463 _ACEOF
10464 if ac_fn_c_try_compile "$LINENO"
10465 then :
10466 xorg_cv_cc_flag_unused_command_line_argument=yes
10467 else $as_nop
10468 xorg_cv_cc_flag_unused_command_line_argument=no
10469 fi
10470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10471 fi
10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10473 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10474 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10475 CFLAGS="$xorg_testset_save_CFLAGS"
10476 fi
10477
10478 found="no"
10479
10480 if test $found = "no" ; then
10481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10483 fi
10484
10485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10487 fi
10488
10489 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10490
10491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10492 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10493 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10494 if eval test \${$cacheid+y}
10495 then :
10496 printf %s "(cached) " >&6
10497 else $as_nop
10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h. */
10500 int i;
10501 int
10502 main (void)
10503 {
10504
10505 ;
10506 return 0;
10507 }
10508 _ACEOF
10509 if ac_fn_c_try_link "$LINENO"
10510 then :
10511 eval $cacheid=yes
10512 else $as_nop
10513 eval $cacheid=no
10514 fi
10515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10516 conftest$ac_exeext conftest.$ac_ext
10517 fi
10518
10519
10520 CFLAGS="$xorg_testset_save_CFLAGS"
10521
10522 eval supported=\$$cacheid
10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10524 printf "%s\n" "$supported" >&6; }
10525 if test "$supported" = "yes" ; then
10526 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10527 found="yes"
10528 fi
10529 fi
10530
10531
10532 fi
10533
10534
10535
10536
10537
10538
10539
10540 CWARNFLAGS="$BASE_CFLAGS"
10541 if test "x$GCC" = xyes ; then
10542 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10543 fi
10544
10545
10546
10547
10548
10549
10550
10551
10552 # Check whether --enable-strict-compilation was given.
10553 if test ${enable_strict_compilation+y}
10554 then :
10555 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10556 else $as_nop
10557 STRICT_COMPILE=no
10558 fi
10559
10560
10561
10562
10563
10564
10565 STRICT_CFLAGS=""
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579 xorg_testset_save_CFLAGS="$CFLAGS"
10580
10581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10584 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10585 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10586 then :
10587 printf %s "(cached) " >&6
10588 else $as_nop
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10591 int i;
10592 _ACEOF
10593 if ac_fn_c_try_compile "$LINENO"
10594 then :
10595 xorg_cv_cc_flag_unknown_warning_option=yes
10596 else $as_nop
10597 xorg_cv_cc_flag_unknown_warning_option=no
10598 fi
10599 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10600 fi
10601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10602 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10603 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10604 CFLAGS="$xorg_testset_save_CFLAGS"
10605 fi
10606
10607 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10608 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10610 fi
10611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10613 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10614 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10615 then :
10616 printf %s "(cached) " >&6
10617 else $as_nop
10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h. */
10620 int i;
10621 _ACEOF
10622 if ac_fn_c_try_compile "$LINENO"
10623 then :
10624 xorg_cv_cc_flag_unused_command_line_argument=yes
10625 else $as_nop
10626 xorg_cv_cc_flag_unused_command_line_argument=no
10627 fi
10628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10629 fi
10630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10631 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10632 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10633 CFLAGS="$xorg_testset_save_CFLAGS"
10634 fi
10635
10636 found="no"
10637
10638 if test $found = "no" ; then
10639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10640 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10641 fi
10642
10643 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10645 fi
10646
10647 CFLAGS="$CFLAGS -pedantic"
10648
10649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10650 printf %s "checking if $CC supports -pedantic... " >&6; }
10651 cacheid=xorg_cv_cc_flag__pedantic
10652 if eval test \${$cacheid+y}
10653 then :
10654 printf %s "(cached) " >&6
10655 else $as_nop
10656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10657 /* end confdefs.h. */
10658 int i;
10659 int
10660 main (void)
10661 {
10662
10663 ;
10664 return 0;
10665 }
10666 _ACEOF
10667 if ac_fn_c_try_link "$LINENO"
10668 then :
10669 eval $cacheid=yes
10670 else $as_nop
10671 eval $cacheid=no
10672 fi
10673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10674 conftest$ac_exeext conftest.$ac_ext
10675 fi
10676
10677
10678 CFLAGS="$xorg_testset_save_CFLAGS"
10679
10680 eval supported=\$$cacheid
10681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10682 printf "%s\n" "$supported" >&6; }
10683 if test "$supported" = "yes" ; then
10684 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10685 found="yes"
10686 fi
10687 fi
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703 xorg_testset_save_CFLAGS="$CFLAGS"
10704
10705 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10708 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10709 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10710 then :
10711 printf %s "(cached) " >&6
10712 else $as_nop
10713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10715 int i;
10716 _ACEOF
10717 if ac_fn_c_try_compile "$LINENO"
10718 then :
10719 xorg_cv_cc_flag_unknown_warning_option=yes
10720 else $as_nop
10721 xorg_cv_cc_flag_unknown_warning_option=no
10722 fi
10723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10724 fi
10725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10726 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10727 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10728 CFLAGS="$xorg_testset_save_CFLAGS"
10729 fi
10730
10731 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10732 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10734 fi
10735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10737 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10738 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10739 then :
10740 printf %s "(cached) " >&6
10741 else $as_nop
10742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10743 /* end confdefs.h. */
10744 int i;
10745 _ACEOF
10746 if ac_fn_c_try_compile "$LINENO"
10747 then :
10748 xorg_cv_cc_flag_unused_command_line_argument=yes
10749 else $as_nop
10750 xorg_cv_cc_flag_unused_command_line_argument=no
10751 fi
10752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10753 fi
10754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10755 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10756 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10757 CFLAGS="$xorg_testset_save_CFLAGS"
10758 fi
10759
10760 found="no"
10761
10762 if test $found = "no" ; then
10763 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10765 fi
10766
10767 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10769 fi
10770
10771 CFLAGS="$CFLAGS -Werror"
10772
10773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10774 printf %s "checking if $CC supports -Werror... " >&6; }
10775 cacheid=xorg_cv_cc_flag__Werror
10776 if eval test \${$cacheid+y}
10777 then :
10778 printf %s "(cached) " >&6
10779 else $as_nop
10780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h. */
10782 int i;
10783 int
10784 main (void)
10785 {
10786
10787 ;
10788 return 0;
10789 }
10790 _ACEOF
10791 if ac_fn_c_try_link "$LINENO"
10792 then :
10793 eval $cacheid=yes
10794 else $as_nop
10795 eval $cacheid=no
10796 fi
10797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10798 conftest$ac_exeext conftest.$ac_ext
10799 fi
10800
10801
10802 CFLAGS="$xorg_testset_save_CFLAGS"
10803
10804 eval supported=\$$cacheid
10805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10806 printf "%s\n" "$supported" >&6; }
10807 if test "$supported" = "yes" ; then
10808 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10809 found="yes"
10810 fi
10811 fi
10812
10813 if test $found = "no" ; then
10814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10816 fi
10817
10818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10820 fi
10821
10822 CFLAGS="$CFLAGS -errwarn"
10823
10824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10825 printf %s "checking if $CC supports -errwarn... " >&6; }
10826 cacheid=xorg_cv_cc_flag__errwarn
10827 if eval test \${$cacheid+y}
10828 then :
10829 printf %s "(cached) " >&6
10830 else $as_nop
10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10832 /* end confdefs.h. */
10833 int i;
10834 int
10835 main (void)
10836 {
10837
10838 ;
10839 return 0;
10840 }
10841 _ACEOF
10842 if ac_fn_c_try_link "$LINENO"
10843 then :
10844 eval $cacheid=yes
10845 else $as_nop
10846 eval $cacheid=no
10847 fi
10848 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10849 conftest$ac_exeext conftest.$ac_ext
10850 fi
10851
10852
10853 CFLAGS="$xorg_testset_save_CFLAGS"
10854
10855 eval supported=\$$cacheid
10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10857 printf "%s\n" "$supported" >&6; }
10858 if test "$supported" = "yes" ; then
10859 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10860 found="yes"
10861 fi
10862 fi
10863
10864
10865
10866 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10867 # activate it with -Werror, so we add it here explicitly.
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881 xorg_testset_save_CFLAGS="$CFLAGS"
10882
10883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10886 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10887 if test ${xorg_cv_cc_flag_unknown_warning_option+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 _ACEOF
10895 if ac_fn_c_try_compile "$LINENO"
10896 then :
10897 xorg_cv_cc_flag_unknown_warning_option=yes
10898 else $as_nop
10899 xorg_cv_cc_flag_unknown_warning_option=no
10900 fi
10901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10902 fi
10903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10904 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10906 CFLAGS="$xorg_testset_save_CFLAGS"
10907 fi
10908
10909 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10912 fi
10913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10915 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10916 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10917 then :
10918 printf %s "(cached) " >&6
10919 else $as_nop
10920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10921 /* end confdefs.h. */
10922 int i;
10923 _ACEOF
10924 if ac_fn_c_try_compile "$LINENO"
10925 then :
10926 xorg_cv_cc_flag_unused_command_line_argument=yes
10927 else $as_nop
10928 xorg_cv_cc_flag_unused_command_line_argument=no
10929 fi
10930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10931 fi
10932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10933 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10935 CFLAGS="$xorg_testset_save_CFLAGS"
10936 fi
10937
10938 found="no"
10939
10940 if test $found = "no" ; then
10941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10943 fi
10944
10945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10947 fi
10948
10949 CFLAGS="$CFLAGS -Werror=attributes"
10950
10951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10952 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10953 cacheid=xorg_cv_cc_flag__Werror_attributes
10954 if eval test \${$cacheid+y}
10955 then :
10956 printf %s "(cached) " >&6
10957 else $as_nop
10958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10959 /* end confdefs.h. */
10960 int i;
10961 int
10962 main (void)
10963 {
10964
10965 ;
10966 return 0;
10967 }
10968 _ACEOF
10969 if ac_fn_c_try_link "$LINENO"
10970 then :
10971 eval $cacheid=yes
10972 else $as_nop
10973 eval $cacheid=no
10974 fi
10975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10976 conftest$ac_exeext conftest.$ac_ext
10977 fi
10978
10979
10980 CFLAGS="$xorg_testset_save_CFLAGS"
10981
10982 eval supported=\$$cacheid
10983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10984 printf "%s\n" "$supported" >&6; }
10985 if test "$supported" = "yes" ; then
10986 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10987 found="yes"
10988 fi
10989 fi
10990
10991
10992
10993 if test "x$STRICT_COMPILE" = "xyes"; then
10994 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10995 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10996 fi
10997
10998
10999
11000
11001
11002
11003 cat >>confdefs.h <<_ACEOF
11004 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11005 _ACEOF
11006
11007 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11008 if test "x$PVM" = "x"; then
11009 PVM="0"
11010 fi
11011
11012 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11013
11014 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11015 if test "x$PVP" = "x"; then
11016 PVP="0"
11017 fi
11018
11019 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11020
11021
11022
11023 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11024 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11025 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11026 touch \$(top_srcdir)/ChangeLog; \
11027 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11028
11029
11030
11031
11032 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11033 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11034 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11035 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11036 touch \$(top_srcdir)/INSTALL; \
11037 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11038
11039
11040
11041
11042
11043
11044 case $host_os in
11045 solaris*)
11046 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11047 # check for a man page file found in later versions that use
11048 # traditional section numbers instead
11049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11050 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11051 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11052 then :
11053 printf %s "(cached) " >&6
11054 else $as_nop
11055 test "$cross_compiling" = yes &&
11056 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11057 if test -r "/usr/share/man/man7/attributes.7"; then
11058 ac_cv_file__usr_share_man_man7_attributes_7=yes
11059 else
11060 ac_cv_file__usr_share_man_man7_attributes_7=no
11061 fi
11062 fi
11063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11064 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11065 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11066 then :
11067 SYSV_MAN_SECTIONS=false
11068 else $as_nop
11069 SYSV_MAN_SECTIONS=true
11070 fi
11071
11072 ;;
11073 *) SYSV_MAN_SECTIONS=false ;;
11074 esac
11075
11076 if test x$APP_MAN_SUFFIX = x ; then
11077 APP_MAN_SUFFIX=1
11078 fi
11079 if test x$APP_MAN_DIR = x ; then
11080 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11081 fi
11082
11083 if test x$LIB_MAN_SUFFIX = x ; then
11084 LIB_MAN_SUFFIX=3
11085 fi
11086 if test x$LIB_MAN_DIR = x ; then
11087 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11088 fi
11089
11090 if test x$FILE_MAN_SUFFIX = x ; then
11091 case $SYSV_MAN_SECTIONS in
11092 true) FILE_MAN_SUFFIX=4 ;;
11093 *) FILE_MAN_SUFFIX=5 ;;
11094 esac
11095 fi
11096 if test x$FILE_MAN_DIR = x ; then
11097 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11098 fi
11099
11100 if test x$MISC_MAN_SUFFIX = x ; then
11101 case $SYSV_MAN_SECTIONS in
11102 true) MISC_MAN_SUFFIX=5 ;;
11103 *) MISC_MAN_SUFFIX=7 ;;
11104 esac
11105 fi
11106 if test x$MISC_MAN_DIR = x ; then
11107 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11108 fi
11109
11110 if test x$DRIVER_MAN_SUFFIX = x ; then
11111 case $SYSV_MAN_SECTIONS in
11112 true) DRIVER_MAN_SUFFIX=7 ;;
11113 *) DRIVER_MAN_SUFFIX=4 ;;
11114 esac
11115 fi
11116 if test x$DRIVER_MAN_DIR = x ; then
11117 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11118 fi
11119
11120 if test x$ADMIN_MAN_SUFFIX = x ; then
11121 case $SYSV_MAN_SECTIONS in
11122 true) ADMIN_MAN_SUFFIX=1m ;;
11123 *) ADMIN_MAN_SUFFIX=8 ;;
11124 esac
11125 fi
11126 if test x$ADMIN_MAN_DIR = x ; then
11127 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11128 fi
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144 XORG_MAN_PAGE="X Version 11"
11145
11146 MAN_SUBSTS="\
11147 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11148 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11149 -e 's|__xservername__|Xorg|g' \
11150 -e 's|__xconfigfile__|xorg.conf|g' \
11151 -e 's|__projectroot__|\$(prefix)|g' \
11152 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11153 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11154 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11155 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11156 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11157 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11158 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11159
11160
11161
11162 # Check whether --enable-silent-rules was given.
11163 if test ${enable_silent_rules+y}
11164 then :
11165 enableval=$enable_silent_rules;
11166 fi
11167
11168 case $enable_silent_rules in # (((
11169 yes) AM_DEFAULT_VERBOSITY=0;;
11170 no) AM_DEFAULT_VERBOSITY=1;;
11171 *) AM_DEFAULT_VERBOSITY=0;;
11172 esac
11173 am_make=${MAKE-make}
11174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11175 printf %s "checking whether $am_make supports nested variables... " >&6; }
11176 if test ${am_cv_make_support_nested_variables+y}
11177 then :
11178 printf %s "(cached) " >&6
11179 else $as_nop
11180 if printf "%s\n" 'TRUE=$(BAR$(V))
11181 BAR0=false
11182 BAR1=true
11183 V=1
11184 am__doit:
11185 @$(TRUE)
11186 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11187 am_cv_make_support_nested_variables=yes
11188 else
11189 am_cv_make_support_nested_variables=no
11190 fi
11191 fi
11192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11193 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11194 if test $am_cv_make_support_nested_variables = yes; then
11195 AM_V='$(V)'
11196 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11197 else
11198 AM_V=$AM_DEFAULT_VERBOSITY
11199 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11200 fi
11201 AM_BACKSLASH='\'
11202
11203
11204
11205 ac_ext=c
11206 ac_cpp='$CPP $CPPFLAGS'
11207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
11211 printf %s "checking how to run the C preprocessor... " >&6; }
11212 # On Suns, sometimes $CPP names a directory.
11213 if test -n "$CPP" && test -d "$CPP"; then
11214 CPP=
11215 fi
11216 if test -z "$CPP"; then
11217 if test ${ac_cv_prog_CPP+y}
11218 then :
11219 printf %s "(cached) " >&6
11220 else $as_nop
11221 # Double quotes because $CC needs to be expanded
11222 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
11223 do
11224 ac_preproc_ok=false
11225 for ac_c_preproc_warn_flag in '' yes
11226 do
11227 # Use a header file that comes with gcc, so configuring glibc
11228 # with a fresh cross-compiler works.
11229 # On the NeXT, cc -E runs the code through the compiler's parser,
11230 # not just through cpp. "Syntax error" is here to catch this case.
11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11232 /* end confdefs.h. */
11233 #include <limits.h>
11234 Syntax error
11235 _ACEOF
11236 if ac_fn_c_try_cpp "$LINENO"
11237 then :
11238
11239 else $as_nop
11240 # Broken: fails on valid input.
11241 continue
11242 fi
11243 rm -f conftest.err conftest.i conftest.$ac_ext
11244
11245 # OK, works on sane cases. Now check whether nonexistent headers
11246 # can be detected and how.
11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11248 /* end confdefs.h. */
11249 #include <ac_nonexistent.h>
11250 _ACEOF
11251 if ac_fn_c_try_cpp "$LINENO"
11252 then :
11253 # Broken: success on invalid input.
11254 continue
11255 else $as_nop
11256 # Passes both tests.
11257 ac_preproc_ok=:
11258 break
11259 fi
11260 rm -f conftest.err conftest.i conftest.$ac_ext
11261
11262 done
11263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11264 rm -f conftest.i conftest.err conftest.$ac_ext
11265 if $ac_preproc_ok
11266 then :
11267 break
11268 fi
11269
11270 done
11271 ac_cv_prog_CPP=$CPP
11272
11273 fi
11274 CPP=$ac_cv_prog_CPP
11275 else
11276 ac_cv_prog_CPP=$CPP
11277 fi
11278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
11279 printf "%s\n" "$CPP" >&6; }
11280 ac_preproc_ok=false
11281 for ac_c_preproc_warn_flag in '' yes
11282 do
11283 # Use a header file that comes with gcc, so configuring glibc
11284 # with a fresh cross-compiler works.
11285 # On the NeXT, cc -E runs the code through the compiler's parser,
11286 # not just through cpp. "Syntax error" is here to catch this case.
11287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11289 #include <limits.h>
11290 Syntax error
11291 _ACEOF
11292 if ac_fn_c_try_cpp "$LINENO"
11293 then :
11294
11295 else $as_nop
11296 # Broken: fails on valid input.
11297 continue
11298 fi
11299 rm -f conftest.err conftest.i conftest.$ac_ext
11300
11301 # OK, works on sane cases. Now check whether nonexistent headers
11302 # can be detected and how.
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11305 #include <ac_nonexistent.h>
11306 _ACEOF
11307 if ac_fn_c_try_cpp "$LINENO"
11308 then :
11309 # Broken: success on invalid input.
11310 continue
11311 else $as_nop
11312 # Passes both tests.
11313 ac_preproc_ok=:
11314 break
11315 fi
11316 rm -f conftest.err conftest.i conftest.$ac_ext
11317
11318 done
11319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11320 rm -f conftest.i conftest.err conftest.$ac_ext
11321 if $ac_preproc_ok
11322 then :
11323
11324 else $as_nop
11325 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11326 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11327 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
11328 See \`config.log' for more details" "$LINENO" 5; }
11329 fi
11330
11331 ac_ext=c
11332 ac_cpp='$CPP $CPPFLAGS'
11333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11336
11337
11338
11339 if test -n "$ac_tool_prefix"; then
11340 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
11341 set dummy ${ac_tool_prefix}cpp; ac_word=$2
11342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11343 printf %s "checking for $ac_word... " >&6; }
11344 if test ${ac_cv_path_RAWCPP+y}
11345 then :
11346 printf %s "(cached) " >&6
11347 else $as_nop
11348 case $RAWCPP in
11349 [\\/]* | ?:[\\/]*)
11350 ac_cv_path_RAWCPP="$RAWCPP" # Let the user override the test with a path.
11351 ;;
11352 *)
11353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11354 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
11355 for as_dir in $as_dummy
11356 do
11357 IFS=$as_save_IFS
11358 case $as_dir in #(((
11359 '') as_dir=./ ;;
11360 */) ;;
11361 *) as_dir=$as_dir/ ;;
11362 esac
11363 for ac_exec_ext in '' $ac_executable_extensions; do
11364 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11365 ac_cv_path_RAWCPP="$as_dir$ac_word$ac_exec_ext"
11366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11367 break 2
11368 fi
11369 done
11370 done
11371 IFS=$as_save_IFS
11372
11373 ;;
11374 esac
11375 fi
11376 RAWCPP=$ac_cv_path_RAWCPP
11377 if test -n "$RAWCPP"; then
11378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RAWCPP" >&5
11379 printf "%s\n" "$RAWCPP" >&6; }
11380 else
11381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11382 printf "%s\n" "no" >&6; }
11383 fi
11384
11385
11386 fi
11387 if test -z "$ac_cv_path_RAWCPP"; then
11388 ac_pt_RAWCPP=$RAWCPP
11389 # Extract the first word of "cpp", so it can be a program name with args.
11390 set dummy cpp; ac_word=$2
11391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11392 printf %s "checking for $ac_word... " >&6; }
11393 if test ${ac_cv_path_ac_pt_RAWCPP+y}
11394 then :
11395 printf %s "(cached) " >&6
11396 else $as_nop
11397 case $ac_pt_RAWCPP in
11398 [\\/]* | ?:[\\/]*)
11399 ac_cv_path_ac_pt_RAWCPP="$ac_pt_RAWCPP" # Let the user override the test with a path.
11400 ;;
11401 *)
11402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11403 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib"
11404 for as_dir in $as_dummy
11405 do
11406 IFS=$as_save_IFS
11407 case $as_dir in #(((
11408 '') as_dir=./ ;;
11409 */) ;;
11410 *) as_dir=$as_dir/ ;;
11411 esac
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11414 ac_cv_path_ac_pt_RAWCPP="$as_dir$ac_word$ac_exec_ext"
11415 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11416 break 2
11417 fi
11418 done
11419 done
11420 IFS=$as_save_IFS
11421
11422 ;;
11423 esac
11424 fi
11425 ac_pt_RAWCPP=$ac_cv_path_ac_pt_RAWCPP
11426 if test -n "$ac_pt_RAWCPP"; then
11427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_RAWCPP" >&5
11428 printf "%s\n" "$ac_pt_RAWCPP" >&6; }
11429 else
11430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 printf "%s\n" "no" >&6; }
11432 fi
11433
11434 if test "x$ac_pt_RAWCPP" = x; then
11435 RAWCPP="${CPP}"
11436 else
11437 case $cross_compiling:$ac_tool_warned in
11438 yes:)
11439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11440 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11441 ac_tool_warned=yes ;;
11442 esac
11443 RAWCPP=$ac_pt_RAWCPP
11444 fi
11445 else
11446 RAWCPP="$ac_cv_path_RAWCPP"
11447 fi
11448
11449
11450 # Check for flag to avoid builtin definitions - assumes unix is predefined,
11451 # which is not the best choice for supporting other OS'es, but covers most
11452 # of the ones we need for now.
11453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -undef" >&5
11454 printf %s "checking if $RAWCPP requires -undef... " >&6; }
11455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11457 Does cpp redefine unix ?
11458 _ACEOF
11459 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11461 printf "%s\n" "no" >&6; }
11462 else
11463 if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11464 RAWCPPFLAGS=-undef
11465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11466 printf "%s\n" "yes" >&6; }
11467 # under Cygwin unix is still defined even with -undef
11468 elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then
11469 RAWCPPFLAGS="-undef -ansi"
11470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, with -ansi" >&5
11471 printf "%s\n" "yes, with -ansi" >&6; }
11472 else
11473 as_fn_error $? "${RAWCPP} defines unix with or without -undef. I don't know what to do." "$LINENO" 5
11474 fi
11475 fi
11476 rm -f conftest.$ac_ext
11477
11478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $RAWCPP requires -traditional" >&5
11479 printf %s "checking if $RAWCPP requires -traditional... " >&6; }
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11482 Does cpp preserve "whitespace"?
11483 _ACEOF
11484 if test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
11485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486 printf "%s\n" "no" >&6; }
11487 else
11488 if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then
11489 TRADITIONALCPPFLAGS="-traditional"
11490 RAWCPPFLAGS="${RAWCPPFLAGS} -traditional"
11491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11492 printf "%s\n" "yes" >&6; }
11493 else
11494 as_fn_error $? "${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do." "$LINENO" 5
11495 fi
11496 fi
11497 rm -f conftest.$ac_ext
11498
11499
11500
11501
11502
11503 # Build options
11504 DEFAULT_XRDB=xrdb
11505 DEFAULT_XMODMAP=xmodmap
11506 DEFAULT_TWM=twm
11507 DEFAULT_XCLOCK=xclock
11508 DEFAULT_XTERM=xterm
11509 # You always want to specify the full path to the X server
11510 DEFAULT_XSERVER=${bindir}/X
11511 DEFAULT_XAUTH=xauth
11512 DEFAULT_XINIT=xinit
11513 DEFAULT_XINITDIR=${sysconfdir}/X11/xinit
11514
11515
11516 # Check whether --with-xrdb was given.
11517 if test ${with_xrdb+y}
11518 then :
11519 withval=$with_xrdb; XRDB="$withval"
11520 else $as_nop
11521 XRDB="$DEFAULT_XRDB"
11522 fi
11523
11524
11525
11526 # Check whether --with-xmodmap was given.
11527 if test ${with_xmodmap+y}
11528 then :
11529 withval=$with_xmodmap; XMODMAP="$withval"
11530 else $as_nop
11531 XMODMAP="$DEFAULT_XMODMAP"
11532 fi
11533
11534
11535
11536 # Check whether --with-twm was given.
11537 if test ${with_twm+y}
11538 then :
11539 withval=$with_twm; TWM="$withval"
11540 else $as_nop
11541 TWM="$DEFAULT_TWM"
11542 fi
11543
11544
11545
11546 # Check whether --with-xclock was given.
11547 if test ${with_xclock+y}
11548 then :
11549 withval=$with_xclock; XCLOCK="$withval"
11550 else $as_nop
11551 XCLOCK="$DEFAULT_XCLOCK"
11552 fi
11553
11554
11555
11556 # Check whether --with-xterm was given.
11557 if test ${with_xterm+y}
11558 then :
11559 withval=$with_xterm; XTERM="$withval"
11560 else $as_nop
11561 XTERM="$DEFAULT_XTERM"
11562 fi
11563
11564
11565
11566 # Check whether --with-xserver was given.
11567 if test ${with_xserver+y}
11568 then :
11569 withval=$with_xserver; XSERVER="$withval"
11570 else $as_nop
11571 XSERVER="$DEFAULT_XSERVER"
11572 fi
11573
11574
11575
11576 # Check whether --with-xauth was given.
11577 if test ${with_xauth+y}
11578 then :
11579 withval=$with_xauth; XAUTH="$withval"
11580 else $as_nop
11581 XAUTH="$DEFAULT_XAUTH"
11582 fi
11583
11584
11585
11586 # Check whether --with-xinit was given.
11587 if test ${with_xinit+y}
11588 then :
11589 withval=$with_xinit; XINIT="$withval"
11590 else $as_nop
11591 XINIT="$DEFAULT_XINIT"
11592 fi
11593
11594
11595
11596 # Check whether --with-xinitdir was given.
11597 if test ${with_xinitdir+y}
11598 then :
11599 withval=$with_xinitdir; XINITDIR="$withval"
11600 else $as_nop
11601 XINITDIR="$DEFAULT_XINITDIR"
11602 fi
11603
11604
11605
11606 # Check whether --with-launchd was given.
11607 if test ${with_launchd+y}
11608 then :
11609 withval=$with_launchd; LAUNCHD=$withval
11610 else $as_nop
11611 LAUNCHD=auto
11612 fi
11613
11614
11615 # Check whether --with-launchagents-dir was given.
11616 if test ${with_launchagents_dir+y}
11617 then :
11618 withval=$with_launchagents_dir; launchagentsdir="${withval}"
11619 else $as_nop
11620 launchagentsdir="/Library/LaunchAgents"
11621 fi
11622
11623
11624 # Check whether --with-launchagent-xserver was given.
11625 if test ${with_launchagent_xserver+y}
11626 then :
11627 withval=$with_launchagent_xserver; launchagentxserver="${withval}"
11628 else $as_nop
11629 launchagentxserver="no"
11630 fi
11631
11632
11633 # Check whether --with-launchdaemons-dir was given.
11634 if test ${with_launchdaemons_dir+y}
11635 then :
11636 withval=$with_launchdaemons_dir; launchdaemonsdir="${withval}"
11637 else $as_nop
11638 launchdaemonsdir="/Library/LaunchDaemons"
11639 fi
11640
11641
11642 # Check whether --with-launchd-id-prefix was given.
11643 if test ${with_launchd_id_prefix+y}
11644 then :
11645 withval=$with_launchd_id_prefix; bundleidprefix="${withval}"
11646 else $as_nop
11647 bundleidprefix="org.x"
11648 fi
11649
11650
11651 # Check whether --with-bundle-id-prefix was given.
11652 if test ${with_bundle_id_prefix+y}
11653 then :
11654 withval=$with_bundle_id_prefix; bundleidprefix="${withval}"
11655 fi
11656
11657
11658 if test "x$LAUNCHD" = "xauto"; then
11659 unset LAUNCHD
11660 # Extract the first word of "launchd", so it can be a program name with args.
11661 set dummy launchd; ac_word=$2
11662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663 printf %s "checking for $ac_word... " >&6; }
11664 if test ${ac_cv_prog_LAUNCHD+y}
11665 then :
11666 printf %s "(cached) " >&6
11667 else $as_nop
11668 if test -n "$LAUNCHD"; then
11669 ac_cv_prog_LAUNCHD="$LAUNCHD" # Let the user override the test.
11670 else
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH$PATH_SEPARATOR/sbin
11673 do
11674 IFS=$as_save_IFS
11675 case $as_dir in #(((
11676 '') as_dir=./ ;;
11677 */) ;;
11678 *) as_dir=$as_dir/ ;;
11679 esac
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11682 ac_cv_prog_LAUNCHD="yes"
11683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11684 break 2
11685 fi
11686 done
11687 done
11688 IFS=$as_save_IFS
11689
11690 test -z "$ac_cv_prog_LAUNCHD" && ac_cv_prog_LAUNCHD="no"
11691 fi
11692 fi
11693 LAUNCHD=$ac_cv_prog_LAUNCHD
11694 if test -n "$LAUNCHD"; then
11695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LAUNCHD" >&5
11696 printf "%s\n" "$LAUNCHD" >&6; }
11697 else
11698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 printf "%s\n" "no" >&6; }
11700 fi
11701
11702
11703 fi
11704
11705
11706 printf "%s\n" "#define BUNDLE_ID_PREFIX \"$bundleidprefix\"" >>confdefs.h
11707
11708
11709
11710
11711
11712 if test "x$LAUNCHD" = "xyes"; then
11713 LAUNCHD_TRUE=
11714 LAUNCHD_FALSE='#'
11715 else
11716 LAUNCHD_TRUE='#'
11717 LAUNCHD_FALSE=
11718 fi
11719
11720 if test "x$launchagentxserver" != "xno"; then
11721 LAUNCHAGENT_XSERVER_TRUE=
11722 LAUNCHAGENT_XSERVER_FALSE='#'
11723 else
11724 LAUNCHAGENT_XSERVER_TRUE='#'
11725 LAUNCHAGENT_XSERVER_FALSE=
11726 fi
11727
11728
11729 # Checks for pkg-config packages
11730
11731 pkg_failed=no
11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XINIT" >&5
11733 printf %s "checking for XINIT... " >&6; }
11734
11735 if test -n "$XINIT_CFLAGS"; then
11736 pkg_cv_XINIT_CFLAGS="$XINIT_CFLAGS"
11737 elif test -n "$PKG_CONFIG"; then
11738 if test -n "$PKG_CONFIG" && \
11739 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11740 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11741 ac_status=$?
11742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11743 test $ac_status = 0; }; then
11744 pkg_cv_XINIT_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
11745 test "x$?" != "x0" && pkg_failed=yes
11746 else
11747 pkg_failed=yes
11748 fi
11749 else
11750 pkg_failed=untried
11751 fi
11752 if test -n "$XINIT_LIBS"; then
11753 pkg_cv_XINIT_LIBS="$XINIT_LIBS"
11754 elif test -n "$PKG_CONFIG"; then
11755 if test -n "$PKG_CONFIG" && \
11756 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
11757 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
11758 ac_status=$?
11759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11760 test $ac_status = 0; }; then
11761 pkg_cv_XINIT_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
11762 test "x$?" != "x0" && pkg_failed=yes
11763 else
11764 pkg_failed=yes
11765 fi
11766 else
11767 pkg_failed=untried
11768 fi
11769
11770
11771
11772 if test $pkg_failed = yes; then
11773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11774 printf "%s\n" "no" >&6; }
11775
11776 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11777 _pkg_short_errors_supported=yes
11778 else
11779 _pkg_short_errors_supported=no
11780 fi
11781 if test $_pkg_short_errors_supported = yes; then
11782 XINIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
11783 else
11784 XINIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xproto >= 7.0.17" 2>&1`
11785 fi
11786 # Put the nasty error message in config.log where it belongs
11787 echo "$XINIT_PKG_ERRORS" >&5
11788
11789 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
11790
11791 $XINIT_PKG_ERRORS
11792
11793 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11794 installed software in a non-standard prefix.
11795
11796 Alternatively, you may set the environment variables XINIT_CFLAGS
11797 and XINIT_LIBS to avoid the need to call pkg-config.
11798 See the pkg-config man page for more details." "$LINENO" 5
11799 elif test $pkg_failed = untried; then
11800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 printf "%s\n" "no" >&6; }
11802 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11803 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11804 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11805 is in your PATH or set the PKG_CONFIG environment variable to the full
11806 path to pkg-config.
11807
11808 Alternatively, you may set the environment variables XINIT_CFLAGS
11809 and XINIT_LIBS to avoid the need to call pkg-config.
11810 See the pkg-config man page for more details.
11811
11812 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11813 See \`config.log' for more details" "$LINENO" 5; }
11814 else
11815 XINIT_CFLAGS=$pkg_cv_XINIT_CFLAGS
11816 XINIT_LIBS=$pkg_cv_XINIT_LIBS
11817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11818 printf "%s\n" "yes" >&6; }
11819
11820 fi
11821
11822 case $host_os in
11823 *bsd*)
11824 XINIT_CFLAGS="$XINIT_CFLAGS -DCSRG_BASED"
11825 ;;
11826 esac
11827
11828
11829 for ac_prog in mcookie
11830 do
11831 # Extract the first word of "$ac_prog", so it can be a program name with args.
11832 set dummy $ac_prog; ac_word=$2
11833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11834 printf %s "checking for $ac_word... " >&6; }
11835 if test ${ac_cv_path_MCOOKIE+y}
11836 then :
11837 printf %s "(cached) " >&6
11838 else $as_nop
11839 case $MCOOKIE in
11840 [\\/]* | ?:[\\/]*)
11841 ac_cv_path_MCOOKIE="$MCOOKIE" # Let the user override the test with a path.
11842 ;;
11843 *)
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 as_dummy="$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/local/bin"
11846 for as_dir in $as_dummy
11847 do
11848 IFS=$as_save_IFS
11849 case $as_dir in #(((
11850 '') as_dir=./ ;;
11851 */) ;;
11852 *) as_dir=$as_dir/ ;;
11853 esac
11854 for ac_exec_ext in '' $ac_executable_extensions; do
11855 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11856 ac_cv_path_MCOOKIE="$as_dir$ac_word$ac_exec_ext"
11857 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11858 break 2
11859 fi
11860 done
11861 done
11862 IFS=$as_save_IFS
11863
11864 ;;
11865 esac
11866 fi
11867 MCOOKIE=$ac_cv_path_MCOOKIE
11868 if test -n "$MCOOKIE"; then
11869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MCOOKIE" >&5
11870 printf "%s\n" "$MCOOKIE" >&6; }
11871 else
11872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11873 printf "%s\n" "no" >&6; }
11874 fi
11875
11876
11877 test -n "$MCOOKIE" && break
11878 done
11879 test -n "$MCOOKIE" || MCOOKIE="$MCOOKIE"
11880
11881
11882 # If mcookie not found, try openssl, else per-system fallbacks
11883 if test "x$MCOOKIE" = x ; then
11884 for ac_prog in openssl
11885 do
11886 # Extract the first word of "$ac_prog", so it can be a program name with args.
11887 set dummy $ac_prog; ac_word=$2
11888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889 printf %s "checking for $ac_word... " >&6; }
11890 if test ${ac_cv_path_OPENSSL+y}
11891 then :
11892 printf %s "(cached) " >&6
11893 else $as_nop
11894 case $OPENSSL in
11895 [\\/]* | ?:[\\/]*)
11896 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
11897 ;;
11898 *)
11899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900 as_dummy="$PATH:/bin:/usr/bin:/usr/sbin:/usr/lib:/usr/libexec:/usr/local/bin"
11901 for as_dir in $as_dummy
11902 do
11903 IFS=$as_save_IFS
11904 case $as_dir in #(((
11905 '') as_dir=./ ;;
11906 */) ;;
11907 *) as_dir=$as_dir/ ;;
11908 esac
11909 for ac_exec_ext in '' $ac_executable_extensions; do
11910 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11911 ac_cv_path_OPENSSL="$as_dir$ac_word$ac_exec_ext"
11912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11913 break 2
11914 fi
11915 done
11916 done
11917 IFS=$as_save_IFS
11918
11919 ;;
11920 esac
11921 fi
11922 OPENSSL=$ac_cv_path_OPENSSL
11923 if test -n "$OPENSSL"; then
11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
11925 printf "%s\n" "$OPENSSL" >&6; }
11926 else
11927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 printf "%s\n" "no" >&6; }
11929 fi
11930
11931
11932 test -n "$OPENSSL" && break
11933 done
11934 test -n "$OPENSSL" || OPENSSL="$OPENSSL"
11935
11936 if test "x$OPENSSL" != x ; then
11937 MCOOKIE="$OPENSSL rand -hex 16"
11938 else
11939 case $host_os in
11940 *solaris*)
11941 MCOOKIE="/usr/bin/od -X -A n -N 16 /dev/urandom | /usr/bin/tr -d ' '"
11942 ;;
11943 esac
11944 fi
11945 fi
11946 if test "x$MCOOKIE" != x ; then
11947 STARTX_COOKIE_FLAGS='-DHAS_COOKIE_MAKER -DMK_COOKIE="$(MCOOKIE)"'
11948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&5
11949 printf "%s\n" "$as_me: startx will depend on \"$MCOOKIE\" to generate xauth cookies" >&6;}
11950 fi
11951
11952
11953 # Additional substitutions in startx, xinitrc & man pages
11954 SHELL_CMD="/bin/sh"
11955 XSERVERNAME="Xorg"
11956 XCONFIGFILE="xorg.conf"
11957 XCONFIGFILEMAN='${XCONFIGFILE} (${FILE_MAN_SUFFIX})'
11958 case $host_os in
11959 cygwin*)
11960 XSERVERNAME="XWin"
11961 XCONFIGFILE="XWinrc"
11962 ;;
11963 darwin*)
11964 XSERVERNAME="Xquartz"
11965 XCONFIGFILE="defaults"
11966 XCONFIGFILEMAN='defaults (1)'
11967 ;;
11968 *solaris*)
11969 SHELL_CMD="/bin/ksh"
11970 ;;
11971 esac
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987 ac_config_files="$ac_config_files Makefile man/Makefile launchd/Makefile launchd/privileged_startx/Makefile launchd/user_startx/Makefile"
11988
11989 cat >confcache <<\_ACEOF
11990 # This file is a shell script that caches the results of configure
11991 # tests run on this system so they can be shared between configure
11992 # scripts and configure runs, see configure's option --config-cache.
11993 # It is not useful on other systems. If it contains results you don't
11994 # want to keep, you may remove or edit it.
11995 #
11996 # config.status only pays attention to the cache file if you give it
11997 # the --recheck option to rerun configure.
11998 #
11999 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12000 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12001 # following values.
12002
12003 _ACEOF
12004
12005 # The following way of writing the cache mishandles newlines in values,
12006 # but we know of no workaround that is simple, portable, and efficient.
12007 # So, we kill variables containing newlines.
12008 # Ultrix sh set writes to stderr and can't be redirected directly,
12009 # and sets the high bit in the cache file unless we assign to the vars.
12010 (
12011 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12012 eval ac_val=\$$ac_var
12013 case $ac_val in #(
12014 *${as_nl}*)
12015 case $ac_var in #(
12016 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12017 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12018 esac
12019 case $ac_var in #(
12020 _ | IFS | as_nl) ;; #(
12021 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12022 *) { eval $ac_var=; unset $ac_var;} ;;
12023 esac ;;
12024 esac
12025 done
12026
12027 (set) 2>&1 |
12028 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12029 *${as_nl}ac_space=\ *)
12030 # `set' does not quote correctly, so add quotes: double-quote
12031 # substitution turns \\\\ into \\, and sed turns \\ into \.
12032 sed -n \
12033 "s/'/'\\\\''/g;
12034 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12035 ;; #(
12036 *)
12037 # `set' quotes correctly as required by POSIX, so do not add quotes.
12038 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12039 ;;
12040 esac |
12041 sort
12042 ) |
12043 sed '
12044 /^ac_cv_env_/b end
12045 t clear
12046 :clear
12047 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12048 t end
12049 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12050 :end' >>confcache
12051 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12052 if test -w "$cache_file"; then
12053 if test "x$cache_file" != "x/dev/null"; then
12054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12055 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12056 if test ! -f "$cache_file" || test -h "$cache_file"; then
12057 cat confcache >"$cache_file"
12058 else
12059 case $cache_file in #(
12060 */* | ?:*)
12061 mv -f confcache "$cache_file"$$ &&
12062 mv -f "$cache_file"$$ "$cache_file" ;; #(
12063 *)
12064 mv -f confcache "$cache_file" ;;
12065 esac
12066 fi
12067 fi
12068 else
12069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12070 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12071 fi
12072 fi
12073 rm -f confcache
12074
12075 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12076 # Let make expand exec_prefix.
12077 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12078
12079 DEFS=-DHAVE_CONFIG_H
12080
12081 ac_libobjs=
12082 ac_ltlibobjs=
12083 U=
12084 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12085 # 1. Remove the extension, and $U if already installed.
12086 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12087 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12088 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12089 # will be set to the directory where LIBOBJS objects are built.
12090 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12091 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12092 done
12093 LIBOBJS=$ac_libobjs
12094
12095 LTLIBOBJS=$ac_ltlibobjs
12096
12097
12098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12099 printf %s "checking that generated files are newer than configure... " >&6; }
12100 if test -n "$am_sleep_pid"; then
12101 # Hide warnings about reused PIDs.
12102 wait $am_sleep_pid 2>/dev/null
12103 fi
12104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12105 printf "%s\n" "done" >&6; }
12106 if test -n "$EXEEXT"; then
12107 am__EXEEXT_TRUE=
12108 am__EXEEXT_FALSE='#'
12109 else
12110 am__EXEEXT_TRUE='#'
12111 am__EXEEXT_FALSE=
12112 fi
12113
12114 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12115 as_fn_error $? "conditional \"AMDEP\" was never defined.
12116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12117 fi
12118 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12119 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12121 fi
12122 if test -z "${LAUNCHD_TRUE}" && test -z "${LAUNCHD_FALSE}"; then
12123 as_fn_error $? "conditional \"LAUNCHD\" was never defined.
12124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12125 fi
12126 if test -z "${LAUNCHAGENT_XSERVER_TRUE}" && test -z "${LAUNCHAGENT_XSERVER_FALSE}"; then
12127 as_fn_error $? "conditional \"LAUNCHAGENT_XSERVER\" was never defined.
12128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12129 fi
12130
12131 : "${CONFIG_STATUS=./config.status}"
12132 ac_write_fail=0
12133 ac_clean_files_save=$ac_clean_files
12134 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12136 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12137 as_write_fail=0
12138 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12139 #! $SHELL
12140 # Generated by $as_me.
12141 # Run this file to recreate the current configuration.
12142 # Compiler output produced by configure, useful for debugging
12143 # configure, is in config.log if it exists.
12144
12145 debug=false
12146 ac_cs_recheck=false
12147 ac_cs_silent=false
12148
12149 SHELL=\${CONFIG_SHELL-$SHELL}
12150 export SHELL
12151 _ASEOF
12152 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12153 ## -------------------- ##
12154 ## M4sh Initialization. ##
12155 ## -------------------- ##
12156
12157 # Be more Bourne compatible
12158 DUALCASE=1; export DUALCASE # for MKS sh
12159 as_nop=:
12160 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12161 then :
12162 emulate sh
12163 NULLCMD=:
12164 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12165 # is contrary to our usage. Disable this feature.
12166 alias -g '${1+"$@"}'='"$@"'
12167 setopt NO_GLOB_SUBST
12168 else $as_nop
12169 case `(set -o) 2>/dev/null` in #(
12170 *posix*) :
12171 set -o posix ;; #(
12172 *) :
12173 ;;
12174 esac
12175 fi
12176
12177
12178
12179 # Reset variables that may have inherited troublesome values from
12180 # the environment.
12181
12182 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12183 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12184 # side effect of setting IFS to empty, thus disabling word splitting.)
12185 # Quoting is to prevent editors from complaining about space-tab.
12186 as_nl='
12187 '
12188 export as_nl
12189 IFS=" "" $as_nl"
12190
12191 PS1='$ '
12192 PS2='> '
12193 PS4='+ '
12194
12195 # Ensure predictable behavior from utilities with locale-dependent output.
12196 LC_ALL=C
12197 export LC_ALL
12198 LANGUAGE=C
12199 export LANGUAGE
12200
12201 # We cannot yet rely on "unset" to work, but we need these variables
12202 # to be unset--not just set to an empty or harmless value--now, to
12203 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12204 # also avoids known problems related to "unset" and subshell syntax
12205 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12206 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12207 do eval test \${$as_var+y} \
12208 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12209 done
12210
12211 # Ensure that fds 0, 1, and 2 are open.
12212 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12213 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12214 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12215
12216 # The user is always right.
12217 if ${PATH_SEPARATOR+false} :; then
12218 PATH_SEPARATOR=:
12219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12221 PATH_SEPARATOR=';'
12222 }
12223 fi
12224
12225
12226 # Find who we are. Look in the path if we contain no directory separator.
12227 as_myself=
12228 case $0 in #((
12229 *[\\/]* ) as_myself=$0 ;;
12230 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231 for as_dir in $PATH
12232 do
12233 IFS=$as_save_IFS
12234 case $as_dir in #(((
12235 '') as_dir=./ ;;
12236 */) ;;
12237 *) as_dir=$as_dir/ ;;
12238 esac
12239 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12240 done
12241 IFS=$as_save_IFS
12242
12243 ;;
12244 esac
12245 # We did not find ourselves, most probably we were run as `sh COMMAND'
12246 # in which case we are not to be found in the path.
12247 if test "x$as_myself" = x; then
12248 as_myself=$0
12249 fi
12250 if test ! -f "$as_myself"; then
12251 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12252 exit 1
12253 fi
12254
12255
12256
12257 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12258 # ----------------------------------------
12259 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12260 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12261 # script with STATUS, using 1 if that was 0.
12262 as_fn_error ()
12263 {
12264 as_status=$1; test $as_status -eq 0 && as_status=1
12265 if test "$4"; then
12266 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12268 fi
12269 printf "%s\n" "$as_me: error: $2" >&2
12270 as_fn_exit $as_status
12271 } # as_fn_error
12272
12273
12274
12275 # as_fn_set_status STATUS
12276 # -----------------------
12277 # Set $? to STATUS, without forking.
12278 as_fn_set_status ()
12279 {
12280 return $1
12281 } # as_fn_set_status
12282
12283 # as_fn_exit STATUS
12284 # -----------------
12285 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12286 as_fn_exit ()
12287 {
12288 set +e
12289 as_fn_set_status $1
12290 exit $1
12291 } # as_fn_exit
12292
12293 # as_fn_unset VAR
12294 # ---------------
12295 # Portably unset VAR.
12296 as_fn_unset ()
12297 {
12298 { eval $1=; unset $1;}
12299 }
12300 as_unset=as_fn_unset
12301
12302 # as_fn_append VAR VALUE
12303 # ----------------------
12304 # Append the text in VALUE to the end of the definition contained in VAR. Take
12305 # advantage of any shell optimizations that allow amortized linear growth over
12306 # repeated appends, instead of the typical quadratic growth present in naive
12307 # implementations.
12308 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12309 then :
12310 eval 'as_fn_append ()
12311 {
12312 eval $1+=\$2
12313 }'
12314 else $as_nop
12315 as_fn_append ()
12316 {
12317 eval $1=\$$1\$2
12318 }
12319 fi # as_fn_append
12320
12321 # as_fn_arith ARG...
12322 # ------------------
12323 # Perform arithmetic evaluation on the ARGs, and store the result in the
12324 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12325 # must be portable across $(()) and expr.
12326 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12327 then :
12328 eval 'as_fn_arith ()
12329 {
12330 as_val=$(( $* ))
12331 }'
12332 else $as_nop
12333 as_fn_arith ()
12334 {
12335 as_val=`expr "$@" || test $? -eq 1`
12336 }
12337 fi # as_fn_arith
12338
12339
12340 if expr a : '\(a\)' >/dev/null 2>&1 &&
12341 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12342 as_expr=expr
12343 else
12344 as_expr=false
12345 fi
12346
12347 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12348 as_basename=basename
12349 else
12350 as_basename=false
12351 fi
12352
12353 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12354 as_dirname=dirname
12355 else
12356 as_dirname=false
12357 fi
12358
12359 as_me=`$as_basename -- "$0" ||
12360 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12361 X"$0" : 'X\(//\)$' \| \
12362 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12363 printf "%s\n" X/"$0" |
12364 sed '/^.*\/\([^/][^/]*\)\/*$/{
12365 s//\1/
12366 q
12367 }
12368 /^X\/\(\/\/\)$/{
12369 s//\1/
12370 q
12371 }
12372 /^X\/\(\/\).*/{
12373 s//\1/
12374 q
12375 }
12376 s/.*/./; q'`
12377
12378 # Avoid depending upon Character Ranges.
12379 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12380 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12381 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12382 as_cr_digits='0123456789'
12383 as_cr_alnum=$as_cr_Letters$as_cr_digits
12384
12385
12386 # Determine whether it's possible to make 'echo' print without a newline.
12387 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12388 # for compatibility with existing Makefiles.
12389 ECHO_C= ECHO_N= ECHO_T=
12390 case `echo -n x` in #(((((
12391 -n*)
12392 case `echo 'xy\c'` in
12393 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12394 xy) ECHO_C='\c';;
12395 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12396 ECHO_T=' ';;
12397 esac;;
12398 *)
12399 ECHO_N='-n';;
12400 esac
12401
12402 # For backward compatibility with old third-party macros, we provide
12403 # the shell variables $as_echo and $as_echo_n. New code should use
12404 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12405 as_echo='printf %s\n'
12406 as_echo_n='printf %s'
12407
12408 rm -f conf$$ conf$$.exe conf$$.file
12409 if test -d conf$$.dir; then
12410 rm -f conf$$.dir/conf$$.file
12411 else
12412 rm -f conf$$.dir
12413 mkdir conf$$.dir 2>/dev/null
12414 fi
12415 if (echo >conf$$.file) 2>/dev/null; then
12416 if ln -s conf$$.file conf$$ 2>/dev/null; then
12417 as_ln_s='ln -s'
12418 # ... but there are two gotchas:
12419 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12420 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12421 # In both cases, we have to default to `cp -pR'.
12422 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12423 as_ln_s='cp -pR'
12424 elif ln conf$$.file conf$$ 2>/dev/null; then
12425 as_ln_s=ln
12426 else
12427 as_ln_s='cp -pR'
12428 fi
12429 else
12430 as_ln_s='cp -pR'
12431 fi
12432 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12433 rmdir conf$$.dir 2>/dev/null
12434
12435
12436 # as_fn_mkdir_p
12437 # -------------
12438 # Create "$as_dir" as a directory, including parents if necessary.
12439 as_fn_mkdir_p ()
12440 {
12441
12442 case $as_dir in #(
12443 -*) as_dir=./$as_dir;;
12444 esac
12445 test -d "$as_dir" || eval $as_mkdir_p || {
12446 as_dirs=
12447 while :; do
12448 case $as_dir in #(
12449 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12450 *) as_qdir=$as_dir;;
12451 esac
12452 as_dirs="'$as_qdir' $as_dirs"
12453 as_dir=`$as_dirname -- "$as_dir" ||
12454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12455 X"$as_dir" : 'X\(//\)[^/]' \| \
12456 X"$as_dir" : 'X\(//\)$' \| \
12457 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12458 printf "%s\n" X"$as_dir" |
12459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12460 s//\1/
12461 q
12462 }
12463 /^X\(\/\/\)[^/].*/{
12464 s//\1/
12465 q
12466 }
12467 /^X\(\/\/\)$/{
12468 s//\1/
12469 q
12470 }
12471 /^X\(\/\).*/{
12472 s//\1/
12473 q
12474 }
12475 s/.*/./; q'`
12476 test -d "$as_dir" && break
12477 done
12478 test -z "$as_dirs" || eval "mkdir $as_dirs"
12479 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12480
12481
12482 } # as_fn_mkdir_p
12483 if mkdir -p . 2>/dev/null; then
12484 as_mkdir_p='mkdir -p "$as_dir"'
12485 else
12486 test -d ./-p && rmdir ./-p
12487 as_mkdir_p=false
12488 fi
12489
12490
12491 # as_fn_executable_p FILE
12492 # -----------------------
12493 # Test if FILE is an executable regular file.
12494 as_fn_executable_p ()
12495 {
12496 test -f "$1" && test -x "$1"
12497 } # as_fn_executable_p
12498 as_test_x='test -x'
12499 as_executable_p=as_fn_executable_p
12500
12501 # Sed expression to map a string onto a valid CPP name.
12502 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12503
12504 # Sed expression to map a string onto a valid variable name.
12505 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12506
12507
12508 exec 6>&1
12509 ## ----------------------------------- ##
12510 ## Main body of $CONFIG_STATUS script. ##
12511 ## ----------------------------------- ##
12512 _ASEOF
12513 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12514
12515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12516 # Save the log message, to keep $0 and so on meaningful, and to
12517 # report actual input values of CONFIG_FILES etc. instead of their
12518 # values after options handling.
12519 ac_log="
12520 This file was extended by xinit $as_me 1.4.2, which was
12521 generated by GNU Autoconf 2.71. Invocation command line was
12522
12523 CONFIG_FILES = $CONFIG_FILES
12524 CONFIG_HEADERS = $CONFIG_HEADERS
12525 CONFIG_LINKS = $CONFIG_LINKS
12526 CONFIG_COMMANDS = $CONFIG_COMMANDS
12527 $ $0 $@
12528
12529 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12530 "
12531
12532 _ACEOF
12533
12534 case $ac_config_files in *"
12535 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12536 esac
12537
12538 case $ac_config_headers in *"
12539 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12540 esac
12541
12542
12543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12544 # Files that config.status was made for.
12545 config_files="$ac_config_files"
12546 config_headers="$ac_config_headers"
12547 config_commands="$ac_config_commands"
12548
12549 _ACEOF
12550
12551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12552 ac_cs_usage="\
12553 \`$as_me' instantiates files and other configuration actions
12554 from templates according to the current configuration. Unless the files
12555 and actions are specified as TAGs, all are instantiated by default.
12556
12557 Usage: $0 [OPTION]... [TAG]...
12558
12559 -h, --help print this help, then exit
12560 -V, --version print version number and configuration settings, then exit
12561 --config print configuration, then exit
12562 -q, --quiet, --silent
12563 do not print progress messages
12564 -d, --debug don't remove temporary files
12565 --recheck update $as_me by reconfiguring in the same conditions
12566 --file=FILE[:TEMPLATE]
12567 instantiate the configuration file FILE
12568 --header=FILE[:TEMPLATE]
12569 instantiate the configuration header FILE
12570
12571 Configuration files:
12572 $config_files
12573
12574 Configuration headers:
12575 $config_headers
12576
12577 Configuration commands:
12578 $config_commands
12579
12580 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xinit/-/issues>."
12581
12582 _ACEOF
12583 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12584 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12586 ac_cs_config='$ac_cs_config_escaped'
12587 ac_cs_version="\\
12588 xinit config.status 1.4.2
12589 configured by $0, generated by GNU Autoconf 2.71,
12590 with options \\"\$ac_cs_config\\"
12591
12592 Copyright (C) 2021 Free Software Foundation, Inc.
12593 This config.status script is free software; the Free Software Foundation
12594 gives unlimited permission to copy, distribute and modify it."
12595
12596 ac_pwd='$ac_pwd'
12597 srcdir='$srcdir'
12598 INSTALL='$INSTALL'
12599 MKDIR_P='$MKDIR_P'
12600 AWK='$AWK'
12601 test -n "\$AWK" || AWK=awk
12602 _ACEOF
12603
12604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12605 # The default lists apply if the user does not specify any file.
12606 ac_need_defaults=:
12607 while test $# != 0
12608 do
12609 case $1 in
12610 --*=?*)
12611 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12612 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12613 ac_shift=:
12614 ;;
12615 --*=)
12616 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12617 ac_optarg=
12618 ac_shift=:
12619 ;;
12620 *)
12621 ac_option=$1
12622 ac_optarg=$2
12623 ac_shift=shift
12624 ;;
12625 esac
12626
12627 case $ac_option in
12628 # Handling of the options.
12629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12630 ac_cs_recheck=: ;;
12631 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12632 printf "%s\n" "$ac_cs_version"; exit ;;
12633 --config | --confi | --conf | --con | --co | --c )
12634 printf "%s\n" "$ac_cs_config"; exit ;;
12635 --debug | --debu | --deb | --de | --d | -d )
12636 debug=: ;;
12637 --file | --fil | --fi | --f )
12638 $ac_shift
12639 case $ac_optarg in
12640 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12641 '') as_fn_error $? "missing file argument" ;;
12642 esac
12643 as_fn_append CONFIG_FILES " '$ac_optarg'"
12644 ac_need_defaults=false;;
12645 --header | --heade | --head | --hea )
12646 $ac_shift
12647 case $ac_optarg in
12648 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12649 esac
12650 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12651 ac_need_defaults=false;;
12652 --he | --h)
12653 # Conflict between --help and --header
12654 as_fn_error $? "ambiguous option: \`$1'
12655 Try \`$0 --help' for more information.";;
12656 --help | --hel | -h )
12657 printf "%s\n" "$ac_cs_usage"; exit ;;
12658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12660 ac_cs_silent=: ;;
12661
12662 # This is an error.
12663 -*) as_fn_error $? "unrecognized option: \`$1'
12664 Try \`$0 --help' for more information." ;;
12665
12666 *) as_fn_append ac_config_targets " $1"
12667 ac_need_defaults=false ;;
12668
12669 esac
12670 shift
12671 done
12672
12673 ac_configure_extra_args=
12674
12675 if $ac_cs_silent; then
12676 exec 6>/dev/null
12677 ac_configure_extra_args="$ac_configure_extra_args --silent"
12678 fi
12679
12680 _ACEOF
12681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12682 if \$ac_cs_recheck; then
12683 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12684 shift
12685 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12686 CONFIG_SHELL='$SHELL'
12687 export CONFIG_SHELL
12688 exec "\$@"
12689 fi
12690
12691 _ACEOF
12692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12693 exec 5>>config.log
12694 {
12695 echo
12696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12697 ## Running $as_me. ##
12698 _ASBOX
12699 printf "%s\n" "$ac_log"
12700 } >&5
12701
12702 _ACEOF
12703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12704 #
12705 # INIT-COMMANDS
12706 #
12707 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12708
12709 _ACEOF
12710
12711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12712
12713 # Handling of arguments.
12714 for ac_config_target in $ac_config_targets
12715 do
12716 case $ac_config_target in
12717 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12718 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12719 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12720 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12721 "launchd/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/Makefile" ;;
12722 "launchd/privileged_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/privileged_startx/Makefile" ;;
12723 "launchd/user_startx/Makefile") CONFIG_FILES="$CONFIG_FILES launchd/user_startx/Makefile" ;;
12724
12725 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12726 esac
12727 done
12728
12729
12730 # If the user did not use the arguments to specify the items to instantiate,
12731 # then the envvar interface is used. Set only those that are not.
12732 # We use the long form for the default assignment because of an extremely
12733 # bizarre bug on SunOS 4.1.3.
12734 if $ac_need_defaults; then
12735 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12736 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12737 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12738 fi
12739
12740 # Have a temporary directory for convenience. Make it in the build tree
12741 # simply because there is no reason against having it here, and in addition,
12742 # creating and moving files from /tmp can sometimes cause problems.
12743 # Hook for its removal unless debugging.
12744 # Note that there is a small window in which the directory will not be cleaned:
12745 # after its creation but before its name has been assigned to `$tmp'.
12746 $debug ||
12747 {
12748 tmp= ac_tmp=
12749 trap 'exit_status=$?
12750 : "${ac_tmp:=$tmp}"
12751 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12752 ' 0
12753 trap 'as_fn_exit 1' 1 2 13 15
12754 }
12755 # Create a (secure) tmp directory for tmp files.
12756
12757 {
12758 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12759 test -d "$tmp"
12760 } ||
12761 {
12762 tmp=./conf$$-$RANDOM
12763 (umask 077 && mkdir "$tmp")
12764 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12765 ac_tmp=$tmp
12766
12767 # Set up the scripts for CONFIG_FILES section.
12768 # No need to generate them if there are no CONFIG_FILES.
12769 # This happens for instance with `./config.status config.h'.
12770 if test -n "$CONFIG_FILES"; then
12771
12772
12773 ac_cr=`echo X | tr X '\015'`
12774 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12775 # But we know of no other shell where ac_cr would be empty at this
12776 # point, so we can use a bashism as a fallback.
12777 if test "x$ac_cr" = x; then
12778 eval ac_cr=\$\'\\r\'
12779 fi
12780 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12781 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12782 ac_cs_awk_cr='\\r'
12783 else
12784 ac_cs_awk_cr=$ac_cr
12785 fi
12786
12787 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12788 _ACEOF
12789
12790
12791 {
12792 echo "cat >conf$$subs.awk <<_ACEOF" &&
12793 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12794 echo "_ACEOF"
12795 } >conf$$subs.sh ||
12796 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12797 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12798 ac_delim='%!_!# '
12799 for ac_last_try in false false false false false :; do
12800 . ./conf$$subs.sh ||
12801 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12802
12803 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12804 if test $ac_delim_n = $ac_delim_num; then
12805 break
12806 elif $ac_last_try; then
12807 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12808 else
12809 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12810 fi
12811 done
12812 rm -f conf$$subs.sh
12813
12814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12815 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12816 _ACEOF
12817 sed -n '
12818 h
12819 s/^/S["/; s/!.*/"]=/
12820 p
12821 g
12822 s/^[^!]*!//
12823 :repl
12824 t repl
12825 s/'"$ac_delim"'$//
12826 t delim
12827 :nl
12828 h
12829 s/\(.\{148\}\)..*/\1/
12830 t more1
12831 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12832 p
12833 n
12834 b repl
12835 :more1
12836 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12837 p
12838 g
12839 s/.\{148\}//
12840 t nl
12841 :delim
12842 h
12843 s/\(.\{148\}\)..*/\1/
12844 t more2
12845 s/["\\]/\\&/g; s/^/"/; s/$/"/
12846 p
12847 b
12848 :more2
12849 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12850 p
12851 g
12852 s/.\{148\}//
12853 t delim
12854 ' <conf$$subs.awk | sed '
12855 /^[^""]/{
12856 N
12857 s/\n//
12858 }
12859 ' >>$CONFIG_STATUS || ac_write_fail=1
12860 rm -f conf$$subs.awk
12861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12862 _ACAWK
12863 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12864 for (key in S) S_is_set[key] = 1
12865 FS = ""
12866
12867 }
12868 {
12869 line = $ 0
12870 nfields = split(line, field, "@")
12871 substed = 0
12872 len = length(field[1])
12873 for (i = 2; i < nfields; i++) {
12874 key = field[i]
12875 keylen = length(key)
12876 if (S_is_set[key]) {
12877 value = S[key]
12878 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12879 len += length(value) + length(field[++i])
12880 substed = 1
12881 } else
12882 len += 1 + keylen
12883 }
12884
12885 print line
12886 }
12887
12888 _ACAWK
12889 _ACEOF
12890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12891 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12892 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12893 else
12894 cat
12895 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12896 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12897 _ACEOF
12898
12899 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12900 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12901 # trailing colons and then remove the whole line if VPATH becomes empty
12902 # (actually we leave an empty line to preserve line numbers).
12903 if test "x$srcdir" = x.; then
12904 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12905 h
12906 s///
12907 s/^/:/
12908 s/[ ]*$/:/
12909 s/:\$(srcdir):/:/g
12910 s/:\${srcdir}:/:/g
12911 s/:@srcdir@:/:/g
12912 s/^:*//
12913 s/:*$//
12914 x
12915 s/\(=[ ]*\).*/\1/
12916 G
12917 s/\n//
12918 s/^[^=]*=[ ]*$//
12919 }'
12920 fi
12921
12922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12923 fi # test -n "$CONFIG_FILES"
12924
12925 # Set up the scripts for CONFIG_HEADERS section.
12926 # No need to generate them if there are no CONFIG_HEADERS.
12927 # This happens for instance with `./config.status Makefile'.
12928 if test -n "$CONFIG_HEADERS"; then
12929 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12930 BEGIN {
12931 _ACEOF
12932
12933 # Transform confdefs.h into an awk script `defines.awk', embedded as
12934 # here-document in config.status, that substitutes the proper values into
12935 # config.h.in to produce config.h.
12936
12937 # Create a delimiter string that does not exist in confdefs.h, to ease
12938 # handling of long lines.
12939 ac_delim='%!_!# '
12940 for ac_last_try in false false :; do
12941 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12942 if test -z "$ac_tt"; then
12943 break
12944 elif $ac_last_try; then
12945 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12946 else
12947 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12948 fi
12949 done
12950
12951 # For the awk script, D is an array of macro values keyed by name,
12952 # likewise P contains macro parameters if any. Preserve backslash
12953 # newline sequences.
12954
12955 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12956 sed -n '
12957 s/.\{148\}/&'"$ac_delim"'/g
12958 t rset
12959 :rset
12960 s/^[ ]*#[ ]*define[ ][ ]*/ /
12961 t def
12962 d
12963 :def
12964 s/\\$//
12965 t bsnl
12966 s/["\\]/\\&/g
12967 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12968 D["\1"]=" \3"/p
12969 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12970 d
12971 :bsnl
12972 s/["\\]/\\&/g
12973 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12974 D["\1"]=" \3\\\\\\n"\\/p
12975 t cont
12976 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12977 t cont
12978 d
12979 :cont
12980 n
12981 s/.\{148\}/&'"$ac_delim"'/g
12982 t clear
12983 :clear
12984 s/\\$//
12985 t bsnlc
12986 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12987 d
12988 :bsnlc
12989 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12990 b cont
12991 ' <confdefs.h | sed '
12992 s/'"$ac_delim"'/"\\\
12993 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12994
12995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12996 for (key in D) D_is_set[key] = 1
12997 FS = ""
12998 }
12999 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13000 line = \$ 0
13001 split(line, arg, " ")
13002 if (arg[1] == "#") {
13003 defundef = arg[2]
13004 mac1 = arg[3]
13005 } else {
13006 defundef = substr(arg[1], 2)
13007 mac1 = arg[2]
13008 }
13009 split(mac1, mac2, "(") #)
13010 macro = mac2[1]
13011 prefix = substr(line, 1, index(line, defundef) - 1)
13012 if (D_is_set[macro]) {
13013 # Preserve the white space surrounding the "#".
13014 print prefix "define", macro P[macro] D[macro]
13015 next
13016 } else {
13017 # Replace #undef with comments. This is necessary, for example,
13018 # in the case of _POSIX_SOURCE, which is predefined and required
13019 # on some systems where configure will not decide to define it.
13020 if (defundef == "undef") {
13021 print "/*", prefix defundef, macro, "*/"
13022 next
13023 }
13024 }
13025 }
13026 { print }
13027 _ACAWK
13028 _ACEOF
13029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13030 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13031 fi # test -n "$CONFIG_HEADERS"
13032
13033
13034 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13035 shift
13036 for ac_tag
13037 do
13038 case $ac_tag in
13039 :[FHLC]) ac_mode=$ac_tag; continue;;
13040 esac
13041 case $ac_mode$ac_tag in
13042 :[FHL]*:*);;
13043 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13044 :[FH]-) ac_tag=-:-;;
13045 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13046 esac
13047 ac_save_IFS=$IFS
13048 IFS=:
13049 set x $ac_tag
13050 IFS=$ac_save_IFS
13051 shift
13052 ac_file=$1
13053 shift
13054
13055 case $ac_mode in
13056 :L) ac_source=$1;;
13057 :[FH])
13058 ac_file_inputs=
13059 for ac_f
13060 do
13061 case $ac_f in
13062 -) ac_f="$ac_tmp/stdin";;
13063 *) # Look for the file first in the build tree, then in the source tree
13064 # (if the path is not absolute). The absolute path cannot be DOS-style,
13065 # because $ac_f cannot contain `:'.
13066 test -f "$ac_f" ||
13067 case $ac_f in
13068 [\\/$]*) false;;
13069 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13070 esac ||
13071 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13072 esac
13073 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13074 as_fn_append ac_file_inputs " '$ac_f'"
13075 done
13076
13077 # Let's still pretend it is `configure' which instantiates (i.e., don't
13078 # use $as_me), people would be surprised to read:
13079 # /* config.h. Generated by config.status. */
13080 configure_input='Generated from '`
13081 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13082 `' by configure.'
13083 if test x"$ac_file" != x-; then
13084 configure_input="$ac_file. $configure_input"
13085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13086 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13087 fi
13088 # Neutralize special characters interpreted by sed in replacement strings.
13089 case $configure_input in #(
13090 *\&* | *\|* | *\\* )
13091 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13092 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13093 *) ac_sed_conf_input=$configure_input;;
13094 esac
13095
13096 case $ac_tag in
13097 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13099 esac
13100 ;;
13101 esac
13102
13103 ac_dir=`$as_dirname -- "$ac_file" ||
13104 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13105 X"$ac_file" : 'X\(//\)[^/]' \| \
13106 X"$ac_file" : 'X\(//\)$' \| \
13107 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13108 printf "%s\n" X"$ac_file" |
13109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13110 s//\1/
13111 q
13112 }
13113 /^X\(\/\/\)[^/].*/{
13114 s//\1/
13115 q
13116 }
13117 /^X\(\/\/\)$/{
13118 s//\1/
13119 q
13120 }
13121 /^X\(\/\).*/{
13122 s//\1/
13123 q
13124 }
13125 s/.*/./; q'`
13126 as_dir="$ac_dir"; as_fn_mkdir_p
13127 ac_builddir=.
13128
13129 case "$ac_dir" in
13130 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13131 *)
13132 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13133 # A ".." for each directory in $ac_dir_suffix.
13134 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13135 case $ac_top_builddir_sub in
13136 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13137 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13138 esac ;;
13139 esac
13140 ac_abs_top_builddir=$ac_pwd
13141 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13142 # for backward compatibility:
13143 ac_top_builddir=$ac_top_build_prefix
13144
13145 case $srcdir in
13146 .) # We are building in place.
13147 ac_srcdir=.
13148 ac_top_srcdir=$ac_top_builddir_sub
13149 ac_abs_top_srcdir=$ac_pwd ;;
13150 [\\/]* | ?:[\\/]* ) # Absolute name.
13151 ac_srcdir=$srcdir$ac_dir_suffix;
13152 ac_top_srcdir=$srcdir
13153 ac_abs_top_srcdir=$srcdir ;;
13154 *) # Relative name.
13155 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13156 ac_top_srcdir=$ac_top_build_prefix$srcdir
13157 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13158 esac
13159 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13160
13161
13162 case $ac_mode in
13163 :F)
13164 #
13165 # CONFIG_FILE
13166 #
13167
13168 case $INSTALL in
13169 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13170 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13171 esac
13172 ac_MKDIR_P=$MKDIR_P
13173 case $MKDIR_P in
13174 [\\/$]* | ?:[\\/]* ) ;;
13175 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13176 esac
13177 _ACEOF
13178
13179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13180 # If the template does not know about datarootdir, expand it.
13181 # FIXME: This hack should be removed a few years after 2.60.
13182 ac_datarootdir_hack=; ac_datarootdir_seen=
13183 ac_sed_dataroot='
13184 /datarootdir/ {
13185 p
13186 q
13187 }
13188 /@datadir@/p
13189 /@docdir@/p
13190 /@infodir@/p
13191 /@localedir@/p
13192 /@mandir@/p'
13193 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13194 *datarootdir*) ac_datarootdir_seen=yes;;
13195 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13197 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13198 _ACEOF
13199 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13200 ac_datarootdir_hack='
13201 s&@datadir@&$datadir&g
13202 s&@docdir@&$docdir&g
13203 s&@infodir@&$infodir&g
13204 s&@localedir@&$localedir&g
13205 s&@mandir@&$mandir&g
13206 s&\\\${datarootdir}&$datarootdir&g' ;;
13207 esac
13208 _ACEOF
13209
13210 # Neutralize VPATH when `$srcdir' = `.'.
13211 # Shell code in configure.ac might set extrasub.
13212 # FIXME: do we really want to maintain this feature?
13213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13214 ac_sed_extra="$ac_vpsub
13215 $extrasub
13216 _ACEOF
13217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13218 :t
13219 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13220 s|@configure_input@|$ac_sed_conf_input|;t t
13221 s&@top_builddir@&$ac_top_builddir_sub&;t t
13222 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13223 s&@srcdir@&$ac_srcdir&;t t
13224 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13225 s&@top_srcdir@&$ac_top_srcdir&;t t
13226 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13227 s&@builddir@&$ac_builddir&;t t
13228 s&@abs_builddir@&$ac_abs_builddir&;t t
13229 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13230 s&@INSTALL@&$ac_INSTALL&;t t
13231 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13232 $ac_datarootdir_hack
13233 "
13234 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13235 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13236
13237 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13238 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13239 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13240 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13242 which seems to be undefined. Please make sure it is defined" >&5
13243 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13244 which seems to be undefined. Please make sure it is defined" >&2;}
13245
13246 rm -f "$ac_tmp/stdin"
13247 case $ac_file in
13248 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13249 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13250 esac \
13251 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13252 ;;
13253 :H)
13254 #
13255 # CONFIG_HEADER
13256 #
13257 if test x"$ac_file" != x-; then
13258 {
13259 printf "%s\n" "/* $configure_input */" >&1 \
13260 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13261 } >"$ac_tmp/config.h" \
13262 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13263 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13265 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13266 else
13267 rm -f "$ac_file"
13268 mv "$ac_tmp/config.h" "$ac_file" \
13269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13270 fi
13271 else
13272 printf "%s\n" "/* $configure_input */" >&1 \
13273 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13274 || as_fn_error $? "could not create -" "$LINENO" 5
13275 fi
13276 # Compute "$ac_file"'s index in $config_headers.
13277 _am_arg="$ac_file"
13278 _am_stamp_count=1
13279 for _am_header in $config_headers :; do
13280 case $_am_header in
13281 $_am_arg | $_am_arg:* )
13282 break ;;
13283 * )
13284 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13285 esac
13286 done
13287 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13288 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13289 X"$_am_arg" : 'X\(//\)[^/]' \| \
13290 X"$_am_arg" : 'X\(//\)$' \| \
13291 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13292 printf "%s\n" X"$_am_arg" |
13293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13294 s//\1/
13295 q
13296 }
13297 /^X\(\/\/\)[^/].*/{
13298 s//\1/
13299 q
13300 }
13301 /^X\(\/\/\)$/{
13302 s//\1/
13303 q
13304 }
13305 /^X\(\/\).*/{
13306 s//\1/
13307 q
13308 }
13309 s/.*/./; q'`/stamp-h$_am_stamp_count
13310 ;;
13311
13312 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13313 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13314 ;;
13315 esac
13316
13317
13318 case $ac_file$ac_mode in
13319 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13320 # Older Autoconf quotes --file arguments for eval, but not when files
13321 # are listed without --file. Let's play safe and only enable the eval
13322 # if we detect the quoting.
13323 # TODO: see whether this extra hack can be removed once we start
13324 # requiring Autoconf 2.70 or later.
13325 case $CONFIG_FILES in #(
13326 *\'*) :
13327 eval set x "$CONFIG_FILES" ;; #(
13328 *) :
13329 set x $CONFIG_FILES ;; #(
13330 *) :
13331 ;;
13332 esac
13333 shift
13334 # Used to flag and report bootstrapping failures.
13335 am_rc=0
13336 for am_mf
13337 do
13338 # Strip MF so we end up with the name of the file.
13339 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13340 # Check whether this is an Automake generated Makefile which includes
13341 # dependency-tracking related rules and includes.
13342 # Grep'ing the whole file directly is not great: AIX grep has a line
13343 # limit of 2048, but all sed's we know have understand at least 4000.
13344 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13345 || continue
13346 am_dirpart=`$as_dirname -- "$am_mf" ||
13347 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13348 X"$am_mf" : 'X\(//\)[^/]' \| \
13349 X"$am_mf" : 'X\(//\)$' \| \
13350 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13351 printf "%s\n" X"$am_mf" |
13352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13353 s//\1/
13354 q
13355 }
13356 /^X\(\/\/\)[^/].*/{
13357 s//\1/
13358 q
13359 }
13360 /^X\(\/\/\)$/{
13361 s//\1/
13362 q
13363 }
13364 /^X\(\/\).*/{
13365 s//\1/
13366 q
13367 }
13368 s/.*/./; q'`
13369 am_filepart=`$as_basename -- "$am_mf" ||
13370 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13371 X"$am_mf" : 'X\(//\)$' \| \
13372 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13373 printf "%s\n" X/"$am_mf" |
13374 sed '/^.*\/\([^/][^/]*\)\/*$/{
13375 s//\1/
13376 q
13377 }
13378 /^X\/\(\/\/\)$/{
13379 s//\1/
13380 q
13381 }
13382 /^X\/\(\/\).*/{
13383 s//\1/
13384 q
13385 }
13386 s/.*/./; q'`
13387 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13388 && sed -e '/# am--include-marker/d' "$am_filepart" \
13389 | $MAKE -f - am--depfiles" >&5
13390 (cd "$am_dirpart" \
13391 && sed -e '/# am--include-marker/d' "$am_filepart" \
13392 | $MAKE -f - am--depfiles) >&5 2>&5
13393 ac_status=$?
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } || am_rc=$?
13396 done
13397 if test $am_rc -ne 0; then
13398 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13399 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13400 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13401 for automatic dependency tracking. If GNU make was not used, consider
13402 re-running the configure script with MAKE=\"gmake\" (or whatever is
13403 necessary). You can also try re-running configure with the
13404 '--disable-dependency-tracking' option to at least be able to build
13405 the package (albeit without support for automatic dependency tracking).
13406 See \`config.log' for more details" "$LINENO" 5; }
13407 fi
13408 { am_dirpart=; unset am_dirpart;}
13409 { am_filepart=; unset am_filepart;}
13410 { am_mf=; unset am_mf;}
13411 { am_rc=; unset am_rc;}
13412 rm -f conftest-deps.mk
13413 }
13414 ;;
13415
13416 esac
13417 done # for ac_tag
13418
13419
13420 as_fn_exit 0
13421 _ACEOF
13422 ac_clean_files=$ac_clean_files_save
13423
13424 test $ac_write_fail = 0 ||
13425 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13426
13427
13428 # configure is writing to config.log, and then calls config.status.
13429 # config.status does its own redirection, appending to config.log.
13430 # Unfortunately, on DOS this fails, as config.log is still kept open
13431 # by configure, so config.status won't be able to write to it; its
13432 # output is simply discarded. So we exec the FD to /dev/null,
13433 # effectively closing config.log, so it can be properly (re)opened and
13434 # appended to by config.status. When coming back to configure, we
13435 # need to make the FD available again.
13436 if test "$no_create" != yes; then
13437 ac_cs_success=:
13438 ac_config_status_args=
13439 test "$silent" = yes &&
13440 ac_config_status_args="$ac_config_status_args --quiet"
13441 exec 5>/dev/null
13442 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13443 exec 5>>config.log
13444 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13445 # would make configure fail if this is the last instruction.
13446 $ac_cs_success || as_fn_exit 1
13447 fi
13448 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13450 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13451 fi
13452
13453
13454