Debian Codegraph @

rstart/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for rstart 1.0.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/rstart/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 [email protected] and
271 $0: https://gitlab.freedesktop.org/xorg/app/rstart/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='rstart'
614 PACKAGE_TARNAME='rstart'
615 PACKAGE_VERSION='1.0.6'
616 PACKAGE_STRING='rstart 1.0.6'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/rstart/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 DEFAULT_X_MANPATH
658 DEFAULT_USER_PATH
659 RSTART_LIBS
660 RSTART_CFLAGS
661 configdir
662 rstartdir
663 LN_S
664 RSH
665 MAN_SUBSTS
666 XORG_MAN_PAGE
667 ADMIN_MAN_DIR
668 DRIVER_MAN_DIR
669 MISC_MAN_DIR
670 FILE_MAN_DIR
671 LIB_MAN_DIR
672 APP_MAN_DIR
673 ADMIN_MAN_SUFFIX
674 DRIVER_MAN_SUFFIX
675 MISC_MAN_SUFFIX
676 FILE_MAN_SUFFIX
677 LIB_MAN_SUFFIX
678 APP_MAN_SUFFIX
679 SED
680 host_os
681 host_vendor
682 host_cpu
683 host
684 build_os
685 build_vendor
686 build_cpu
687 build
688 INSTALL_CMD
689 PKG_CONFIG_LIBDIR
690 PKG_CONFIG_PATH
691 PKG_CONFIG
692 CHANGELOG_CMD
693 STRICT_CFLAGS
694 CWARNFLAGS
695 BASE_CFLAGS
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__include
704 DEPDIR
705 OBJEXT
706 EXEEXT
707 ac_ct_CC
708 CPPFLAGS
709 LDFLAGS
710 CFLAGS
711 CC
712 AM_BACKSLASH
713 AM_DEFAULT_VERBOSITY
714 AM_DEFAULT_V
715 AM_V
716 CSCOPE
717 ETAGS
718 CTAGS
719 am__untar
720 am__tar
721 AMTAR
722 am__leading_dot
723 SET_MAKE
724 AWK
725 mkdir_p
726 MKDIR_P
727 INSTALL_STRIP_PROGRAM
728 STRIP
729 install_sh
730 MAKEINFO
731 AUTOHEADER
732 AUTOMAKE
733 AUTOCONF
734 ACLOCAL
735 VERSION
736 PACKAGE
737 CYGPATH_W
738 am__isrc
739 INSTALL_DATA
740 INSTALL_SCRIPT
741 INSTALL_PROGRAM
742 target_alias
743 host_alias
744 build_alias
745 LIBS
746 ECHO_T
747 ECHO_N
748 ECHO_C
749 DEFS
750 mandir
751 localedir
752 libdir
753 psdir
754 pdfdir
755 dvidir
756 htmldir
757 infodir
758 docdir
759 oldincludedir
760 includedir
761 runstatedir
762 localstatedir
763 sharedstatedir
764 sysconfdir
765 datadir
766 datarootdir
767 libexecdir
768 sbindir
769 bindir
770 program_transform_name
771 prefix
772 exec_prefix
773 PACKAGE_URL
774 PACKAGE_BUGREPORT
775 PACKAGE_STRING
776 PACKAGE_VERSION
777 PACKAGE_TARNAME
778 PACKAGE_NAME
779 PATH_SEPARATOR
780 SHELL
781 am__quote'
782 ac_subst_files=''
783 ac_user_opts='
784 enable_option_checking
785 enable_silent_rules
786 enable_dependency_tracking
787 enable_selective_werror
788 enable_strict_compilation
789 with_default_user_path
790 with_default_man_path
791 '
792 ac_precious_vars='build_alias
793 host_alias
794 target_alias
795 CC
796 CFLAGS
797 LDFLAGS
798 LIBS
799 CPPFLAGS
800 PKG_CONFIG
801 PKG_CONFIG_PATH
802 PKG_CONFIG_LIBDIR
803 RSTART_CFLAGS
804 RSTART_LIBS'
805
806
807 # Initialize some variables set by options.
808 ac_init_help=
809 ac_init_version=false
810 ac_unrecognized_opts=
811 ac_unrecognized_sep=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
814 cache_file=/dev/null
815 exec_prefix=NONE
816 no_create=
817 no_recursion=
818 prefix=NONE
819 program_prefix=NONE
820 program_suffix=NONE
821 program_transform_name=s,x,x,
822 silent=
823 site=
824 srcdir=
825 verbose=
826 x_includes=NONE
827 x_libraries=NONE
828
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir='${exec_prefix}/bin'
836 sbindir='${exec_prefix}/sbin'
837 libexecdir='${exec_prefix}/libexec'
838 datarootdir='${prefix}/share'
839 datadir='${datarootdir}'
840 sysconfdir='${prefix}/etc'
841 sharedstatedir='${prefix}/com'
842 localstatedir='${prefix}/var'
843 runstatedir='${localstatedir}/run'
844 includedir='${prefix}/include'
845 oldincludedir='/usr/include'
846 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
847 infodir='${datarootdir}/info'
848 htmldir='${docdir}'
849 dvidir='${docdir}'
850 pdfdir='${docdir}'
851 psdir='${docdir}'
852 libdir='${exec_prefix}/lib'
853 localedir='${datarootdir}/locale'
854 mandir='${datarootdir}/man'
855
856 ac_prev=
857 ac_dashdash=
858 for ac_option
859 do
860 # If the previous option needs an argument, assign it.
861 if test -n "$ac_prev"; then
862 eval $ac_prev=\$ac_option
863 ac_prev=
864 continue
865 fi
866
867 case $ac_option in
868 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869 *=) ac_optarg= ;;
870 *) ac_optarg=yes ;;
871 esac
872
873 case $ac_dashdash$ac_option in
874 --)
875 ac_dashdash=yes ;;
876
877 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 ac_prev=bindir ;;
879 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
880 bindir=$ac_optarg ;;
881
882 -build | --build | --buil | --bui | --bu)
883 ac_prev=build_alias ;;
884 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
885 build_alias=$ac_optarg ;;
886
887 -cache-file | --cache-file | --cache-fil | --cache-fi \
888 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
889 ac_prev=cache_file ;;
890 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
891 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
892 cache_file=$ac_optarg ;;
893
894 --config-cache | -C)
895 cache_file=config.cache ;;
896
897 -datadir | --datadir | --datadi | --datad)
898 ac_prev=datadir ;;
899 -datadir=* | --datadir=* | --datadi=* | --datad=*)
900 datadir=$ac_optarg ;;
901
902 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
903 | --dataroo | --dataro | --datar)
904 ac_prev=datarootdir ;;
905 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
906 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
907 datarootdir=$ac_optarg ;;
908
909 -disable-* | --disable-*)
910 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913 as_fn_error $? "invalid feature name: \`$ac_useropt'"
914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918 "enable_$ac_useropt"
919 "*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=no ;;
924
925 -docdir | --docdir | --docdi | --doc | --do)
926 ac_prev=docdir ;;
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 docdir=$ac_optarg ;;
929
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 ac_prev=dvidir ;;
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 dvidir=$ac_optarg ;;
934
935 -enable-* | --enable-*)
936 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
939 as_fn_error $? "invalid feature name: \`$ac_useropt'"
940 ac_useropt_orig=$ac_useropt
941 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
942 case $ac_user_opts in
943 *"
944 "enable_$ac_useropt"
945 "*) ;;
946 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
947 ac_unrecognized_sep=', ';;
948 esac
949 eval enable_$ac_useropt=\$ac_optarg ;;
950
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
959
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
963
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
970
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
975
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
981
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
988
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
993
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
998
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1005
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1010
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1017
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1022
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1026
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1030
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1034
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1043
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1048
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1055
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1062
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1079
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1084
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1089
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1093
1094 -runstatedir | --runstatedir | --runstatedi | --runstated \
1095 | --runstate | --runstat | --runsta | --runst | --runs \
1096 | --run | --ru | --r)
1097 ac_prev=runstatedir ;;
1098 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1099 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1100 | --run=* | --ru=* | --r=*)
1101 runstatedir=$ac_optarg ;;
1102
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1108
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1119
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1124
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1129
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1136
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1141
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1144
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1147
1148 -with-* | --with-*)
1149 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152 as_fn_error $? "invalid package name: \`$ac_useropt'"
1153 ac_useropt_orig=$ac_useropt
1154 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1155 case $ac_user_opts in
1156 *"
1157 "with_$ac_useropt"
1158 "*) ;;
1159 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1160 ac_unrecognized_sep=', ';;
1161 esac
1162 eval with_$ac_useropt=\$ac_optarg ;;
1163
1164 -without-* | --without-*)
1165 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 as_fn_error $? "invalid package name: \`$ac_useropt'"
1169 ac_useropt_orig=$ac_useropt
1170 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1171 case $ac_user_opts in
1172 *"
1173 "with_$ac_useropt"
1174 "*) ;;
1175 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1176 ac_unrecognized_sep=', ';;
1177 esac
1178 eval with_$ac_useropt=no ;;
1179
1180 --x)
1181 # Obsolete; use --with-x.
1182 with_x=yes ;;
1183
1184 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1185 | --x-incl | --x-inc | --x-in | --x-i)
1186 ac_prev=x_includes ;;
1187 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1188 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1189 x_includes=$ac_optarg ;;
1190
1191 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1192 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1193 ac_prev=x_libraries ;;
1194 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1195 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1196 x_libraries=$ac_optarg ;;
1197
1198 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1199 Try \`$0 --help' for more information"
1200 ;;
1201
1202 *=*)
1203 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1204 # Reject names that are not valid shell variable names.
1205 case $ac_envvar in #(
1206 '' | [0-9]* | *[!_$as_cr_alnum]* )
1207 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1208 esac
1209 eval $ac_envvar=\$ac_optarg
1210 export $ac_envvar ;;
1211
1212 *)
1213 # FIXME: should be removed in autoconf 3.0.
1214 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1215 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1216 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1217 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218 ;;
1219
1220 esac
1221 done
1222
1223 if test -n "$ac_prev"; then
1224 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1225 as_fn_error $? "missing argument to $ac_option"
1226 fi
1227
1228 if test -n "$ac_unrecognized_opts"; then
1229 case $enable_option_checking in
1230 no) ;;
1231 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1232 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1233 esac
1234 fi
1235
1236 # Check all directory arguments for consistency.
1237 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1238 datadir sysconfdir sharedstatedir localstatedir includedir \
1239 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1240 libdir localedir mandir runstatedir
1241 do
1242 eval ac_val=\$$ac_var
1243 # Remove trailing slashes.
1244 case $ac_val in
1245 */ )
1246 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1247 eval $ac_var=\$ac_val;;
1248 esac
1249 # Be sure to have absolute directory names.
1250 case $ac_val in
1251 [\\/$]* | ?:[\\/]* ) continue;;
1252 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1253 esac
1254 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1255 done
1256
1257 # There might be people who depend on the old broken behavior: `$host'
1258 # used to hold the argument of --host etc.
1259 # FIXME: To remove some day.
1260 build=$build_alias
1261 host=$host_alias
1262 target=$target_alias
1263
1264 # FIXME: To remove some day.
1265 if test "x$host_alias" != x; then
1266 if test "x$build_alias" = x; then
1267 cross_compiling=maybe
1268 elif test "x$build_alias" != "x$host_alias"; then
1269 cross_compiling=yes
1270 fi
1271 fi
1272
1273 ac_tool_prefix=
1274 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1275
1276 test "$silent" = yes && exec 6>/dev/null
1277
1278
1279 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1280 ac_ls_di=`ls -di .` &&
1281 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1282 as_fn_error $? "working directory cannot be determined"
1283 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1284 as_fn_error $? "pwd does not report name of working directory"
1285
1286
1287 # Find the source files, if location was not specified.
1288 if test -z "$srcdir"; then
1289 ac_srcdir_defaulted=yes
1290 # Try the directory containing this script, then the parent directory.
1291 ac_confdir=`$as_dirname -- "$as_myself" ||
1292 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1293 X"$as_myself" : 'X\(//\)[^/]' \| \
1294 X"$as_myself" : 'X\(//\)$' \| \
1295 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1296 printf "%s\n" X"$as_myself" |
1297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\/\)[^/].*/{
1302 s//\1/
1303 q
1304 }
1305 /^X\(\/\/\)$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\).*/{
1310 s//\1/
1311 q
1312 }
1313 s/.*/./; q'`
1314 srcdir=$ac_confdir
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 srcdir=..
1317 fi
1318 else
1319 ac_srcdir_defaulted=no
1320 fi
1321 if test ! -r "$srcdir/$ac_unique_file"; then
1322 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1323 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1324 fi
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1328 pwd)`
1329 # When building in place, set srcdir=.
1330 if test "$ac_abs_confdir" = "$ac_pwd"; then
1331 srcdir=.
1332 fi
1333 # Remove unnecessary trailing slashes from srcdir.
1334 # Double slashes in file names in object file debugging info
1335 # mess up M-x gdb in Emacs.
1336 case $srcdir in
1337 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1338 esac
1339 for ac_var in $ac_precious_vars; do
1340 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1341 eval ac_env_${ac_var}_value=\$${ac_var}
1342 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1343 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1344 done
1345
1346 #
1347 # Report the --help message.
1348 #
1349 if test "$ac_init_help" = "long"; then
1350 # Omit some internal or obsolete options to make the list less imposing.
1351 # This message is too long to be a string in the A/UX 3.1 sh.
1352 cat <<_ACEOF
1353 \`configure' configures rstart 1.0.6 to adapt to many kinds of systems.
1354
1355 Usage: $0 [OPTION]... [VAR=VALUE]...
1356
1357 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1358 VAR=VALUE. See below for descriptions of some of the useful variables.
1359
1360 Defaults for the options are specified in brackets.
1361
1362 Configuration:
1363 -h, --help display this help and exit
1364 --help=short display options specific to this package
1365 --help=recursive display the short help of all the included packages
1366 -V, --version display version information and exit
1367 -q, --quiet, --silent do not print \`checking ...' messages
1368 --cache-file=FILE cache test results in FILE [disabled]
1369 -C, --config-cache alias for \`--cache-file=config.cache'
1370 -n, --no-create do not create output files
1371 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1372
1373 Installation directories:
1374 --prefix=PREFIX install architecture-independent files in PREFIX
1375 [$ac_default_prefix]
1376 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1377 [PREFIX]
1378
1379 By default, \`make install' will install all the files in
1380 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1381 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1382 for instance \`--prefix=\$HOME'.
1383
1384 For better control, use the options below.
1385
1386 Fine tuning of the installation directories:
1387 --bindir=DIR user executables [EPREFIX/bin]
1388 --sbindir=DIR system admin executables [EPREFIX/sbin]
1389 --libexecdir=DIR program executables [EPREFIX/libexec]
1390 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1391 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1392 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1393 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/rstart]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1407 _ACEOF
1408
1409 cat <<\_ACEOF
1410
1411 Program names:
1412 --program-prefix=PREFIX prepend PREFIX to installed program names
1413 --program-suffix=SUFFIX append SUFFIX to installed program names
1414 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1415
1416 System types:
1417 --build=BUILD configure for building on BUILD [guessed]
1418 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1419 _ACEOF
1420 fi
1421
1422 if test -n "$ac_init_help"; then
1423 case $ac_init_help in
1424 short | recursive ) echo "Configuration of rstart 1.0.6:";;
1425 esac
1426 cat <<\_ACEOF
1427
1428 Optional Features:
1429 --disable-option-checking ignore unrecognized --enable/--with options
1430 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1431 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1432 --enable-silent-rules less verbose build output (undo: "make V=1")
1433 --disable-silent-rules verbose build output (undo: "make V=0")
1434 --enable-dependency-tracking
1435 do not reject slow dependency extractors
1436 --disable-dependency-tracking
1437 speeds up one-time build
1438 --disable-selective-werror
1439 Turn off selective compiler errors. (default:
1440 enabled)
1441 --enable-strict-compilation
1442 Enable all warnings from compiler and make them
1443 errors (default: disabled)
1444
1445 Optional Packages:
1446 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1447 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1448 --with-default-user-path=PATH
1449 --with-default-man-path=PATH
1450
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1459 PKG_CONFIG path to pkg-config utility
1460 PKG_CONFIG_PATH
1461 directories to add to pkg-config's search path
1462 PKG_CONFIG_LIBDIR
1463 path overriding pkg-config's built-in search path
1464 RSTART_CFLAGS
1465 C compiler flags for RSTART, overriding pkg-config
1466 RSTART_LIBS linker flags for RSTART, overriding pkg-config
1467
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1470
1471 Report bugs to <https://gitlab.freedesktop.org/xorg/app/rstart/issues>.
1472 _ACEOF
1473 ac_status=$?
1474 fi
1475
1476 if test "$ac_init_help" = "recursive"; then
1477 # If there are subdirs, report their specific --help.
1478 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1479 test -d "$ac_dir" ||
1480 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1481 continue
1482 ac_builddir=.
1483
1484 case "$ac_dir" in
1485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *)
1487 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1488 # A ".." for each directory in $ac_dir_suffix.
1489 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1490 case $ac_top_builddir_sub in
1491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1493 esac ;;
1494 esac
1495 ac_abs_top_builddir=$ac_pwd
1496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1497 # for backward compatibility:
1498 ac_top_builddir=$ac_top_build_prefix
1499
1500 case $srcdir in
1501 .) # We are building in place.
1502 ac_srcdir=.
1503 ac_top_srcdir=$ac_top_builddir_sub
1504 ac_abs_top_srcdir=$ac_pwd ;;
1505 [\\/]* | ?:[\\/]* ) # Absolute name.
1506 ac_srcdir=$srcdir$ac_dir_suffix;
1507 ac_top_srcdir=$srcdir
1508 ac_abs_top_srcdir=$srcdir ;;
1509 *) # Relative name.
1510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1511 ac_top_srcdir=$ac_top_build_prefix$srcdir
1512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 esac
1514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515
1516 cd "$ac_dir" || { ac_status=$?; continue; }
1517 # Check for configure.gnu first; this name is used for a wrapper for
1518 # Metaconfig's "Configure" on case-insensitive file systems.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure" --help=recursive
1525 else
1526 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 fi || ac_status=$?
1528 cd "$ac_pwd" || { ac_status=$?; break; }
1529 done
1530 fi
1531
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1534 cat <<\_ACEOF
1535 rstart configure 1.0.6
1536 generated by GNU Autoconf 2.71
1537
1538 Copyright (C) 2021 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541 _ACEOF
1542 exit
1543 fi
1544
1545 ## ------------------------ ##
1546 ## Autoconf initialization. ##
1547 ## ------------------------ ##
1548
1549 # ac_fn_c_try_compile LINENO
1550 # --------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_compile ()
1553 {
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext conftest.beam
1556 if { { ac_try="$ac_compile"
1557 case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 printf "%s\n" "$ac_try_echo"; } >&5
1563 (eval "$ac_compile") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1569 fi
1570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest.$ac_objext
1575 then :
1576 ac_retval=0
1577 else $as_nop
1578 printf "%s\n" "$as_me: failed program was:" >&5
1579 sed 's/^/| /' conftest.$ac_ext >&5
1580
1581 ac_retval=1
1582 fi
1583 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1584 as_fn_set_status $ac_retval
1585
1586 } # ac_fn_c_try_compile
1587
1588 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1589 # ------------------------------------------------------------------
1590 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1591 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1592 ac_fn_check_decl ()
1593 {
1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1595 as_decl_name=`echo $2|sed 's/ *(.*//'`
1596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1597 printf %s "checking whether $as_decl_name is declared... " >&6; }
1598 if eval test \${$3+y}
1599 then :
1600 printf %s "(cached) " >&6
1601 else $as_nop
1602 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1603 eval ac_save_FLAGS=\$$6
1604 as_fn_append $6 " $5"
1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1606 /* end confdefs.h. */
1607 $4
1608 int
1609 main (void)
1610 {
1611 #ifndef $as_decl_name
1612 #ifdef __cplusplus
1613 (void) $as_decl_use;
1614 #else
1615 (void) $as_decl_name;
1616 #endif
1617 #endif
1618
1619 ;
1620 return 0;
1621 }
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"
1624 then :
1625 eval "$3=yes"
1626 else $as_nop
1627 eval "$3=no"
1628 fi
1629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1630 eval $6=\$ac_save_FLAGS
1631
1632 fi
1633 eval ac_res=\$$3
1634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1635 printf "%s\n" "$ac_res" >&6; }
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637
1638 } # ac_fn_check_decl
1639
1640 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1641 # -------------------------------------------------------
1642 # Tests whether HEADER exists and can be compiled using the include files in
1643 # INCLUDES, setting the cache variable VAR accordingly.
1644 ac_fn_c_check_header_compile ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1648 printf %s "checking for $2... " >&6; }
1649 if eval test \${$3+y}
1650 then :
1651 printf %s "(cached) " >&6
1652 else $as_nop
1653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654 /* end confdefs.h. */
1655 $4
1656 #include <$2>
1657 _ACEOF
1658 if ac_fn_c_try_compile "$LINENO"
1659 then :
1660 eval "$3=yes"
1661 else $as_nop
1662 eval "$3=no"
1663 fi
1664 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1665 fi
1666 eval ac_res=\$$3
1667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1668 printf "%s\n" "$ac_res" >&6; }
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670
1671 } # ac_fn_c_check_header_compile
1672
1673 # ac_fn_c_try_link LINENO
1674 # -----------------------
1675 # Try to link conftest.$ac_ext, and return whether this succeeded.
1676 ac_fn_c_try_link ()
1677 {
1678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1679 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1680 if { { ac_try="$ac_link"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 printf "%s\n" "$ac_try_echo"; } >&5
1687 (eval "$ac_link") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } && {
1696 test -z "$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 } && test -s conftest$ac_exeext && {
1699 test "$cross_compiling" = yes ||
1700 test -x conftest$ac_exeext
1701 }
1702 then :
1703 ac_retval=0
1704 else $as_nop
1705 printf "%s\n" "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1707
1708 ac_retval=1
1709 fi
1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712 # interfere with the next link command; also delete a directory that is
1713 # left behind by Apple's compiler. We do this before executing the actions.
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1717
1718 } # ac_fn_c_try_link
1719 ac_configure_args_raw=
1720 for ac_arg
1721 do
1722 case $ac_arg in
1723 *\'*)
1724 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1725 esac
1726 as_fn_append ac_configure_args_raw " '$ac_arg'"
1727 done
1728
1729 case $ac_configure_args_raw in
1730 *$as_nl*)
1731 ac_safe_unquote= ;;
1732 *)
1733 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1734 ac_unsafe_a="$ac_unsafe_z#~"
1735 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1736 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1737 esac
1738
1739 cat >config.log <<_ACEOF
1740 This file contains any messages produced by compilers while
1741 running configure, to aid debugging if configure makes a mistake.
1742
1743 It was created by rstart $as_me 1.0.6, which was
1744 generated by GNU Autoconf 2.71. Invocation command line was
1745
1746 $ $0$ac_configure_args_raw
1747
1748 _ACEOF
1749 exec 5>>config.log
1750 {
1751 cat <<_ASUNAME
1752 ## --------- ##
1753 ## Platform. ##
1754 ## --------- ##
1755
1756 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1757 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1758 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1759 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1760 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1761
1762 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1763 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1764
1765 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1766 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1767 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1768 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1769 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1770 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1771 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1772
1773 _ASUNAME
1774
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1776 for as_dir in $PATH
1777 do
1778 IFS=$as_save_IFS
1779 case $as_dir in #(((
1780 '') as_dir=./ ;;
1781 */) ;;
1782 *) as_dir=$as_dir/ ;;
1783 esac
1784 printf "%s\n" "PATH: $as_dir"
1785 done
1786 IFS=$as_save_IFS
1787
1788 } >&5
1789
1790 cat >&5 <<_ACEOF
1791
1792
1793 ## ----------- ##
1794 ## Core tests. ##
1795 ## ----------- ##
1796
1797 _ACEOF
1798
1799
1800 # Keep a trace of the command line.
1801 # Strip out --no-create and --no-recursion so they do not pile up.
1802 # Strip out --silent because we don't want to record it for future runs.
1803 # Also quote any args containing shell meta-characters.
1804 # Make two passes to allow for proper duplicate-argument suppression.
1805 ac_configure_args=
1806 ac_configure_args0=
1807 ac_configure_args1=
1808 ac_must_keep_next=false
1809 for ac_pass in 1 2
1810 do
1811 for ac_arg
1812 do
1813 case $ac_arg in
1814 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1815 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1816 | -silent | --silent | --silen | --sile | --sil)
1817 continue ;;
1818 *\'*)
1819 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1820 esac
1821 case $ac_pass in
1822 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1823 2)
1824 as_fn_append ac_configure_args1 " '$ac_arg'"
1825 if test $ac_must_keep_next = true; then
1826 ac_must_keep_next=false # Got value, back to normal.
1827 else
1828 case $ac_arg in
1829 *=* | --config-cache | -C | -disable-* | --disable-* \
1830 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1831 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1832 | -with-* | --with-* | -without-* | --without-* | --x)
1833 case "$ac_configure_args0 " in
1834 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1835 esac
1836 ;;
1837 -* ) ac_must_keep_next=true ;;
1838 esac
1839 fi
1840 as_fn_append ac_configure_args " '$ac_arg'"
1841 ;;
1842 esac
1843 done
1844 done
1845 { ac_configure_args0=; unset ac_configure_args0;}
1846 { ac_configure_args1=; unset ac_configure_args1;}
1847
1848 # When interrupted or exit'd, cleanup temporary files, and complete
1849 # config.log. We remove comments because anyway the quotes in there
1850 # would cause problems or look ugly.
1851 # WARNING: Use '\'' to represent an apostrophe within the trap.
1852 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1853 trap 'exit_status=$?
1854 # Sanitize IFS.
1855 IFS=" "" $as_nl"
1856 # Save into config.log some information that might help in debugging.
1857 {
1858 echo
1859
1860 printf "%s\n" "## ---------------- ##
1861 ## Cache variables. ##
1862 ## ---------------- ##"
1863 echo
1864 # The following way of writing the cache mishandles newlines in values,
1865 (
1866 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1867 eval ac_val=\$$ac_var
1868 case $ac_val in #(
1869 *${as_nl}*)
1870 case $ac_var in #(
1871 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1872 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1873 esac
1874 case $ac_var in #(
1875 _ | IFS | as_nl) ;; #(
1876 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1877 *) { eval $ac_var=; unset $ac_var;} ;;
1878 esac ;;
1879 esac
1880 done
1881 (set) 2>&1 |
1882 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1883 *${as_nl}ac_space=\ *)
1884 sed -n \
1885 "s/'\''/'\''\\\\'\'''\''/g;
1886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1887 ;; #(
1888 *)
1889 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1890 ;;
1891 esac |
1892 sort
1893 )
1894 echo
1895
1896 printf "%s\n" "## ----------------- ##
1897 ## Output variables. ##
1898 ## ----------------- ##"
1899 echo
1900 for ac_var in $ac_subst_vars
1901 do
1902 eval ac_val=\$$ac_var
1903 case $ac_val in
1904 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1905 esac
1906 printf "%s\n" "$ac_var='\''$ac_val'\''"
1907 done | sort
1908 echo
1909
1910 if test -n "$ac_subst_files"; then
1911 printf "%s\n" "## ------------------- ##
1912 ## File substitutions. ##
1913 ## ------------------- ##"
1914 echo
1915 for ac_var in $ac_subst_files
1916 do
1917 eval ac_val=\$$ac_var
1918 case $ac_val in
1919 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1920 esac
1921 printf "%s\n" "$ac_var='\''$ac_val'\''"
1922 done | sort
1923 echo
1924 fi
1925
1926 if test -s confdefs.h; then
1927 printf "%s\n" "## ----------- ##
1928 ## confdefs.h. ##
1929 ## ----------- ##"
1930 echo
1931 cat confdefs.h
1932 echo
1933 fi
1934 test "$ac_signal" != 0 &&
1935 printf "%s\n" "$as_me: caught signal $ac_signal"
1936 printf "%s\n" "$as_me: exit $exit_status"
1937 } >&5
1938 rm -f core *.core core.conftest.* &&
1939 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1940 exit $exit_status
1941 ' 0
1942 for ac_signal in 1 2 13 15; do
1943 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1944 done
1945 ac_signal=0
1946
1947 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1948 rm -f -r conftest* confdefs.h
1949
1950 printf "%s\n" "/* confdefs.h */" > confdefs.h
1951
1952 # Predefined preprocessor variables.
1953
1954 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1955
1956 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1957
1958 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1959
1960 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1961
1962 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1963
1964 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1965
1966
1967 # Let the site file select an alternate cache file if it wants to.
1968 # Prefer an explicitly selected file to automatically selected ones.
1969 if test -n "$CONFIG_SITE"; then
1970 ac_site_files="$CONFIG_SITE"
1971 elif test "x$prefix" != xNONE; then
1972 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1973 else
1974 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1975 fi
1976
1977 for ac_site_file in $ac_site_files
1978 do
1979 case $ac_site_file in #(
1980 */*) :
1981 ;; #(
1982 *) :
1983 ac_site_file=./$ac_site_file ;;
1984 esac
1985 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1987 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1988 sed 's/^/| /' "$ac_site_file" >&5
1989 . "$ac_site_file" \
1990 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1991 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
1992 as_fn_error $? "failed to load site script $ac_site_file
1993 See \`config.log' for more details" "$LINENO" 5; }
1994 fi
1995 done
1996
1997 if test -r "$cache_file"; then
1998 # Some versions of bash will fail to source /dev/null (special files
1999 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2000 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2002 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2003 case $cache_file in
2004 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2005 *) . "./$cache_file";;
2006 esac
2007 fi
2008 else
2009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2010 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2011 >$cache_file
2012 fi
2013
2014 # Test code for whether the C compiler supports C89 (global declarations)
2015 ac_c_conftest_c89_globals='
2016 /* Does the compiler advertise C89 conformance?
2017 Do not test the value of __STDC__, because some compilers set it to 0
2018 while being otherwise adequately conformant. */
2019 #if !defined __STDC__
2020 # error "Compiler does not advertise C89 conformance"
2021 #endif
2022
2023 #include <stddef.h>
2024 #include <stdarg.h>
2025 struct stat;
2026 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2027 struct buf { int x; };
2028 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2029 static char *e (p, i)
2030 char **p;
2031 int i;
2032 {
2033 return p[i];
2034 }
2035 static char *f (char * (*g) (char **, int), char **p, ...)
2036 {
2037 char *s;
2038 va_list v;
2039 va_start (v,p);
2040 s = g (p, va_arg (v,int));
2041 va_end (v);
2042 return s;
2043 }
2044
2045 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2046 function prototypes and stuff, but not \xHH hex character constants.
2047 These do not provoke an error unfortunately, instead are silently treated
2048 as an "x". The following induces an error, until -std is added to get
2049 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2050 array size at least. It is necessary to write \x00 == 0 to get something
2051 that is true only with -std. */
2052 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2053
2054 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2055 inside strings and character constants. */
2056 #define FOO(x) '\''x'\''
2057 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2058
2059 int test (int i, double x);
2060 struct s1 {int (*f) (int a);};
2061 struct s2 {int (*f) (double a);};
2062 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2063 int, int);'
2064
2065 # Test code for whether the C compiler supports C89 (body of main).
2066 ac_c_conftest_c89_main='
2067 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2068 '
2069
2070 # Test code for whether the C compiler supports C99 (global declarations)
2071 ac_c_conftest_c99_globals='
2072 // Does the compiler advertise C99 conformance?
2073 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2074 # error "Compiler does not advertise C99 conformance"
2075 #endif
2076
2077 #include <stdbool.h>
2078 extern int puts (const char *);
2079 extern int printf (const char *, ...);
2080 extern int dprintf (int, const char *, ...);
2081 extern void *malloc (size_t);
2082
2083 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2084 // dprintf is used instead of fprintf to avoid needing to declare
2085 // FILE and stderr.
2086 #define debug(...) dprintf (2, __VA_ARGS__)
2087 #define showlist(...) puts (#__VA_ARGS__)
2088 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2089 static void
2090 test_varargs_macros (void)
2091 {
2092 int x = 1234;
2093 int y = 5678;
2094 debug ("Flag");
2095 debug ("X = %d\n", x);
2096 showlist (The first, second, and third items.);
2097 report (x>y, "x is %d but y is %d", x, y);
2098 }
2099
2100 // Check long long types.
2101 #define BIG64 18446744073709551615ull
2102 #define BIG32 4294967295ul
2103 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2104 #if !BIG_OK
2105 #error "your preprocessor is broken"
2106 #endif
2107 #if BIG_OK
2108 #else
2109 #error "your preprocessor is broken"
2110 #endif
2111 static long long int bignum = -9223372036854775807LL;
2112 static unsigned long long int ubignum = BIG64;
2113
2114 struct incomplete_array
2115 {
2116 int datasize;
2117 double data[];
2118 };
2119
2120 struct named_init {
2121 int number;
2122 const wchar_t *name;
2123 double average;
2124 };
2125
2126 typedef const char *ccp;
2127
2128 static inline int
2129 test_restrict (ccp restrict text)
2130 {
2131 // See if C++-style comments work.
2132 // Iterate through items via the restricted pointer.
2133 // Also check for declarations in for loops.
2134 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2135 continue;
2136 return 0;
2137 }
2138
2139 // Check varargs and va_copy.
2140 static bool
2141 test_varargs (const char *format, ...)
2142 {
2143 va_list args;
2144 va_start (args, format);
2145 va_list args_copy;
2146 va_copy (args_copy, args);
2147
2148 const char *str = "";
2149 int number = 0;
2150 float fnumber = 0;
2151
2152 while (*format)
2153 {
2154 switch (*format++)
2155 {
2156 case '\''s'\'': // string
2157 str = va_arg (args_copy, const char *);
2158 break;
2159 case '\''d'\'': // int
2160 number = va_arg (args_copy, int);
2161 break;
2162 case '\''f'\'': // float
2163 fnumber = va_arg (args_copy, double);
2164 break;
2165 default:
2166 break;
2167 }
2168 }
2169 va_end (args_copy);
2170 va_end (args);
2171
2172 return *str && number && fnumber;
2173 }
2174 '
2175
2176 # Test code for whether the C compiler supports C99 (body of main).
2177 ac_c_conftest_c99_main='
2178 // Check bool.
2179 _Bool success = false;
2180 success |= (argc != 0);
2181
2182 // Check restrict.
2183 if (test_restrict ("String literal") == 0)
2184 success = true;
2185 char *restrict newvar = "Another string";
2186
2187 // Check varargs.
2188 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2189 test_varargs_macros ();
2190
2191 // Check flexible array members.
2192 struct incomplete_array *ia =
2193 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2194 ia->datasize = 10;
2195 for (int i = 0; i < ia->datasize; ++i)
2196 ia->data[i] = i * 1.234;
2197
2198 // Check named initializers.
2199 struct named_init ni = {
2200 .number = 34,
2201 .name = L"Test wide string",
2202 .average = 543.34343,
2203 };
2204
2205 ni.number = 58;
2206
2207 int dynamic_array[ni.number];
2208 dynamic_array[0] = argv[0][0];
2209 dynamic_array[ni.number - 1] = 543;
2210
2211 // work around unused variable warnings
2212 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2213 || dynamic_array[ni.number - 1] != 543);
2214 '
2215
2216 # Test code for whether the C compiler supports C11 (global declarations)
2217 ac_c_conftest_c11_globals='
2218 // Does the compiler advertise C11 conformance?
2219 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2220 # error "Compiler does not advertise C11 conformance"
2221 #endif
2222
2223 // Check _Alignas.
2224 char _Alignas (double) aligned_as_double;
2225 char _Alignas (0) no_special_alignment;
2226 extern char aligned_as_int;
2227 char _Alignas (0) _Alignas (int) aligned_as_int;
2228
2229 // Check _Alignof.
2230 enum
2231 {
2232 int_alignment = _Alignof (int),
2233 int_array_alignment = _Alignof (int[100]),
2234 char_alignment = _Alignof (char)
2235 };
2236 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2237
2238 // Check _Noreturn.
2239 int _Noreturn does_not_return (void) { for (;;) continue; }
2240
2241 // Check _Static_assert.
2242 struct test_static_assert
2243 {
2244 int x;
2245 _Static_assert (sizeof (int) <= sizeof (long int),
2246 "_Static_assert does not work in struct");
2247 long int y;
2248 };
2249
2250 // Check UTF-8 literals.
2251 #define u8 syntax error!
2252 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2253
2254 // Check duplicate typedefs.
2255 typedef long *long_ptr;
2256 typedef long int *long_ptr;
2257 typedef long_ptr long_ptr;
2258
2259 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2260 struct anonymous
2261 {
2262 union {
2263 struct { int i; int j; };
2264 struct { int k; long int l; } w;
2265 };
2266 int m;
2267 } v1;
2268 '
2269
2270 # Test code for whether the C compiler supports C11 (body of main).
2271 ac_c_conftest_c11_main='
2272 _Static_assert ((offsetof (struct anonymous, i)
2273 == offsetof (struct anonymous, w.k)),
2274 "Anonymous union alignment botch");
2275 v1.i = 2;
2276 v1.w.k = 5;
2277 ok |= v1.i != 5;
2278 '
2279
2280 # Test code for whether the C compiler supports C11 (complete).
2281 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2282 ${ac_c_conftest_c99_globals}
2283 ${ac_c_conftest_c11_globals}
2284
2285 int
2286 main (int argc, char **argv)
2287 {
2288 int ok = 0;
2289 ${ac_c_conftest_c89_main}
2290 ${ac_c_conftest_c99_main}
2291 ${ac_c_conftest_c11_main}
2292 return ok;
2293 }
2294 "
2295
2296 # Test code for whether the C compiler supports C99 (complete).
2297 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2298 ${ac_c_conftest_c99_globals}
2299
2300 int
2301 main (int argc, char **argv)
2302 {
2303 int ok = 0;
2304 ${ac_c_conftest_c89_main}
2305 ${ac_c_conftest_c99_main}
2306 return ok;
2307 }
2308 "
2309
2310 # Test code for whether the C compiler supports C89 (complete).
2311 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2312
2313 int
2314 main (int argc, char **argv)
2315 {
2316 int ok = 0;
2317 ${ac_c_conftest_c89_main}
2318 return ok;
2319 }
2320 "
2321
2322 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2323 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2324 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2325 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2326 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2327 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2328 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2329 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2330 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2331
2332 # Auxiliary files required by this configure script.
2333 ac_aux_files="config.guess config.sub compile missing install-sh"
2334
2335 # Locations in which to look for auxiliary files.
2336 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2337
2338 # Search for a directory containing all of the required auxiliary files,
2339 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2340 # If we don't find one directory that contains all the files we need,
2341 # we report the set of missing files from the *first* directory in
2342 # $ac_aux_dir_candidates and give up.
2343 ac_missing_aux_files=""
2344 ac_first_candidate=:
2345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 as_found=false
2348 for as_dir in $ac_aux_dir_candidates
2349 do
2350 IFS=$as_save_IFS
2351 case $as_dir in #(((
2352 '') as_dir=./ ;;
2353 */) ;;
2354 *) as_dir=$as_dir/ ;;
2355 esac
2356 as_found=:
2357
2358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2359 ac_aux_dir_found=yes
2360 ac_install_sh=
2361 for ac_aux in $ac_aux_files
2362 do
2363 # As a special case, if "install-sh" is required, that requirement
2364 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2365 # and $ac_install_sh is set appropriately for whichever one is found.
2366 if test x"$ac_aux" = x"install-sh"
2367 then
2368 if test -f "${as_dir}install-sh"; then
2369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2370 ac_install_sh="${as_dir}install-sh -c"
2371 elif test -f "${as_dir}install.sh"; then
2372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2373 ac_install_sh="${as_dir}install.sh -c"
2374 elif test -f "${as_dir}shtool"; then
2375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2376 ac_install_sh="${as_dir}shtool install -c"
2377 else
2378 ac_aux_dir_found=no
2379 if $ac_first_candidate; then
2380 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2381 else
2382 break
2383 fi
2384 fi
2385 else
2386 if test -f "${as_dir}${ac_aux}"; then
2387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2388 else
2389 ac_aux_dir_found=no
2390 if $ac_first_candidate; then
2391 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2392 else
2393 break
2394 fi
2395 fi
2396 fi
2397 done
2398 if test "$ac_aux_dir_found" = yes; then
2399 ac_aux_dir="$as_dir"
2400 break
2401 fi
2402 ac_first_candidate=false
2403
2404 as_found=false
2405 done
2406 IFS=$as_save_IFS
2407 if $as_found
2408 then :
2409
2410 else $as_nop
2411 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2412 fi
2413
2414
2415 # These three variables are undocumented and unsupported,
2416 # and are intended to be withdrawn in a future Autoconf release.
2417 # They can cause serious problems if a builder's source tree is in a directory
2418 # whose full name contains unusual characters.
2419 if test -f "${ac_aux_dir}config.guess"; then
2420 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2421 fi
2422 if test -f "${ac_aux_dir}config.sub"; then
2423 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2424 fi
2425 if test -f "$ac_aux_dir/configure"; then
2426 ac_configure="$SHELL ${ac_aux_dir}configure"
2427 fi
2428
2429 # Check that the precious variables saved in the cache have kept the same
2430 # value.
2431 ac_cache_corrupted=false
2432 for ac_var in $ac_precious_vars; do
2433 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2434 eval ac_new_set=\$ac_env_${ac_var}_set
2435 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2436 eval ac_new_val=\$ac_env_${ac_var}_value
2437 case $ac_old_set,$ac_new_set in
2438 set,)
2439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2440 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2441 ac_cache_corrupted=: ;;
2442 ,set)
2443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2444 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2445 ac_cache_corrupted=: ;;
2446 ,);;
2447 *)
2448 if test "x$ac_old_val" != "x$ac_new_val"; then
2449 # differences in whitespace do not lead to failure.
2450 ac_old_val_w=`echo x $ac_old_val`
2451 ac_new_val_w=`echo x $ac_new_val`
2452 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2454 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2455 ac_cache_corrupted=:
2456 else
2457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2458 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2459 eval $ac_var=\$ac_old_val
2460 fi
2461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2462 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2464 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2465 fi;;
2466 esac
2467 # Pass precious variables to config.status.
2468 if test "$ac_new_set" = set; then
2469 case $ac_new_val in
2470 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2471 *) ac_arg=$ac_var=$ac_new_val ;;
2472 esac
2473 case " $ac_configure_args " in
2474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2475 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2476 esac
2477 fi
2478 done
2479 if $ac_cache_corrupted; then
2480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2481 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2483 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2484 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2485 and start over" "$LINENO" 5
2486 fi
2487 ## -------------------- ##
2488 ## Main body of script. ##
2489 ## -------------------- ##
2490
2491 ac_ext=c
2492 ac_cpp='$CPP $CPPFLAGS'
2493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2496
2497
2498
2499 ac_config_headers="$ac_config_headers config.h"
2500
2501
2502 # Initialize Automake
2503 am__api_version='1.16'
2504
2505
2506
2507 # Find a good install program. We prefer a C program (faster),
2508 # so one script is as good as another. But avoid the broken or
2509 # incompatible versions:
2510 # SysV /etc/install, /usr/sbin/install
2511 # SunOS /usr/etc/install
2512 # IRIX /sbin/install
2513 # AIX /bin/install
2514 # AmigaOS /C/install, which installs bootblocks on floppy discs
2515 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2516 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2517 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2518 # OS/2's system install, which has a completely different semantic
2519 # ./install, which can be erroneously created by make from ./install.sh.
2520 # Reject install programs that cannot install multiple files.
2521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2522 printf %s "checking for a BSD-compatible install... " >&6; }
2523 if test -z "$INSTALL"; then
2524 if test ${ac_cv_path_install+y}
2525 then :
2526 printf %s "(cached) " >&6
2527 else $as_nop
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531 IFS=$as_save_IFS
2532 case $as_dir in #(((
2533 '') as_dir=./ ;;
2534 */) ;;
2535 *) as_dir=$as_dir/ ;;
2536 esac
2537 # Account for fact that we put trailing slashes in our PATH walk.
2538 case $as_dir in #((
2539 ./ | /[cC]/* | \
2540 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2541 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2542 /usr/ucb/* ) ;;
2543 *)
2544 # OSF1 and SCO ODT 3.0 have their own names for install.
2545 # Don't use installbsd from OSF since it installs stuff as root
2546 # by default.
2547 for ac_prog in ginstall scoinst install; do
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2550 if test $ac_prog = install &&
2551 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2552 # AIX install. It has an incompatible calling convention.
2553 :
2554 elif test $ac_prog = install &&
2555 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2556 # program-specific install script used by HP pwplus--don't use.
2557 :
2558 else
2559 rm -rf conftest.one conftest.two conftest.dir
2560 echo one > conftest.one
2561 echo two > conftest.two
2562 mkdir conftest.dir
2563 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2564 test -s conftest.one && test -s conftest.two &&
2565 test -s conftest.dir/conftest.one &&
2566 test -s conftest.dir/conftest.two
2567 then
2568 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2569 break 3
2570 fi
2571 fi
2572 fi
2573 done
2574 done
2575 ;;
2576 esac
2577
2578 done
2579 IFS=$as_save_IFS
2580
2581 rm -rf conftest.one conftest.two conftest.dir
2582
2583 fi
2584 if test ${ac_cv_path_install+y}; then
2585 INSTALL=$ac_cv_path_install
2586 else
2587 # As a last resort, use the slow shell script. Don't cache a
2588 # value for INSTALL within a source directory, because that will
2589 # break other packages using the cache if that directory is
2590 # removed, or if the value is a relative name.
2591 INSTALL=$ac_install_sh
2592 fi
2593 fi
2594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2595 printf "%s\n" "$INSTALL" >&6; }
2596
2597 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2598 # It thinks the first close brace ends the variable substitution.
2599 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2600
2601 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2602
2603 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2604
2605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2606 printf %s "checking whether build environment is sane... " >&6; }
2607 # Reject unsafe characters in $srcdir or the absolute working directory
2608 # name. Accept space and tab only in the latter.
2609 am_lf='
2610 '
2611 case `pwd` in
2612 *[\\\"\#\$\&\'\`$am_lf]*)
2613 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2614 esac
2615 case $srcdir in
2616 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2617 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2618 esac
2619
2620 # Do 'set' in a subshell so we don't clobber the current shell's
2621 # arguments. Must try -L first in case configure is actually a
2622 # symlink; some systems play weird games with the mod time of symlinks
2623 # (eg FreeBSD returns the mod time of the symlink's containing
2624 # directory).
2625 if (
2626 am_has_slept=no
2627 for am_try in 1 2; do
2628 echo "timestamp, slept: $am_has_slept" > conftest.file
2629 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2630 if test "$*" = "X"; then
2631 # -L didn't work.
2632 set X `ls -t "$srcdir/configure" conftest.file`
2633 fi
2634 if test "$*" != "X $srcdir/configure conftest.file" \
2635 && test "$*" != "X conftest.file $srcdir/configure"; then
2636
2637 # If neither matched, then we have a broken ls. This can happen
2638 # if, for instance, CONFIG_SHELL is bash and it inherits a
2639 # broken ls alias from the environment. This has actually
2640 # happened. Such a system could not be considered "sane".
2641 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2642 alias in your environment" "$LINENO" 5
2643 fi
2644 if test "$2" = conftest.file || test $am_try -eq 2; then
2645 break
2646 fi
2647 # Just in case.
2648 sleep 1
2649 am_has_slept=yes
2650 done
2651 test "$2" = conftest.file
2652 )
2653 then
2654 # Ok.
2655 :
2656 else
2657 as_fn_error $? "newly created file is older than distributed files!
2658 Check your system clock" "$LINENO" 5
2659 fi
2660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2661 printf "%s\n" "yes" >&6; }
2662 # If we didn't sleep, we still need to ensure time stamps of config.status and
2663 # generated files are strictly newer.
2664 am_sleep_pid=
2665 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2666 ( sleep 1 ) &
2667 am_sleep_pid=$!
2668 fi
2669
2670 rm -f conftest.file
2671
2672 test "$program_prefix" != NONE &&
2673 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2674 # Use a double $ so make ignores it.
2675 test "$program_suffix" != NONE &&
2676 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2677 # Double any \ or $.
2678 # By default was `s,x,x', remove it if useless.
2679 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2680 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2681
2682
2683 # Expand $ac_aux_dir to an absolute path.
2684 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2685
2686
2687 if test x"${MISSING+set}" != xset; then
2688 MISSING="\${SHELL} '$am_aux_dir/missing'"
2689 fi
2690 # Use eval to expand $SHELL
2691 if eval "$MISSING --is-lightweight"; then
2692 am_missing_run="$MISSING "
2693 else
2694 am_missing_run=
2695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2696 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2697 fi
2698
2699 if test x"${install_sh+set}" != xset; then
2700 case $am_aux_dir in
2701 *\ * | *\ *)
2702 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2703 *)
2704 install_sh="\${SHELL} $am_aux_dir/install-sh"
2705 esac
2706 fi
2707
2708 # Installed binaries are usually stripped using 'strip' when the user
2709 # run "make install-strip". However 'strip' might not be the right
2710 # tool to use in cross-compilation environments, therefore Automake
2711 # will honor the 'STRIP' environment variable to overrule this program.
2712 if test "$cross_compiling" != no; then
2713 if test -n "$ac_tool_prefix"; then
2714 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2715 set dummy ${ac_tool_prefix}strip; ac_word=$2
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2717 printf %s "checking for $ac_word... " >&6; }
2718 if test ${ac_cv_prog_STRIP+y}
2719 then :
2720 printf %s "(cached) " >&6
2721 else $as_nop
2722 if test -n "$STRIP"; then
2723 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728 IFS=$as_save_IFS
2729 case $as_dir in #(((
2730 '') as_dir=./ ;;
2731 */) ;;
2732 *) as_dir=$as_dir/ ;;
2733 esac
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2736 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740 done
2741 done
2742 IFS=$as_save_IFS
2743
2744 fi
2745 fi
2746 STRIP=$ac_cv_prog_STRIP
2747 if test -n "$STRIP"; then
2748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2749 printf "%s\n" "$STRIP" >&6; }
2750 else
2751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 printf "%s\n" "no" >&6; }
2753 fi
2754
2755
2756 fi
2757 if test -z "$ac_cv_prog_STRIP"; then
2758 ac_ct_STRIP=$STRIP
2759 # Extract the first word of "strip", so it can be a program name with args.
2760 set dummy strip; ac_word=$2
2761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 printf %s "checking for $ac_word... " >&6; }
2763 if test ${ac_cv_prog_ac_ct_STRIP+y}
2764 then :
2765 printf %s "(cached) " >&6
2766 else $as_nop
2767 if test -n "$ac_ct_STRIP"; then
2768 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2769 else
2770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 for as_dir in $PATH
2772 do
2773 IFS=$as_save_IFS
2774 case $as_dir in #(((
2775 '') as_dir=./ ;;
2776 */) ;;
2777 *) as_dir=$as_dir/ ;;
2778 esac
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2781 ac_cv_prog_ac_ct_STRIP="strip"
2782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2783 break 2
2784 fi
2785 done
2786 done
2787 IFS=$as_save_IFS
2788
2789 fi
2790 fi
2791 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2792 if test -n "$ac_ct_STRIP"; then
2793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2794 printf "%s\n" "$ac_ct_STRIP" >&6; }
2795 else
2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 printf "%s\n" "no" >&6; }
2798 fi
2799
2800 if test "x$ac_ct_STRIP" = x; then
2801 STRIP=":"
2802 else
2803 case $cross_compiling:$ac_tool_warned in
2804 yes:)
2805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2806 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2807 ac_tool_warned=yes ;;
2808 esac
2809 STRIP=$ac_ct_STRIP
2810 fi
2811 else
2812 STRIP="$ac_cv_prog_STRIP"
2813 fi
2814
2815 fi
2816 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2817
2818
2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2820 printf %s "checking for a race-free mkdir -p... " >&6; }
2821 if test -z "$MKDIR_P"; then
2822 if test ${ac_cv_path_mkdir+y}
2823 then :
2824 printf %s "(cached) " >&6
2825 else $as_nop
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2828 do
2829 IFS=$as_save_IFS
2830 case $as_dir in #(((
2831 '') as_dir=./ ;;
2832 */) ;;
2833 *) as_dir=$as_dir/ ;;
2834 esac
2835 for ac_prog in mkdir gmkdir; do
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2838 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2839 'mkdir ('*'coreutils) '* | \
2840 'BusyBox '* | \
2841 'mkdir (fileutils) '4.1*)
2842 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2843 break 3;;
2844 esac
2845 done
2846 done
2847 done
2848 IFS=$as_save_IFS
2849
2850 fi
2851
2852 test -d ./--version && rmdir ./--version
2853 if test ${ac_cv_path_mkdir+y}; then
2854 MKDIR_P="$ac_cv_path_mkdir -p"
2855 else
2856 # As a last resort, use the slow shell script. Don't cache a
2857 # value for MKDIR_P within a source directory, because that will
2858 # break other packages using the cache if that directory is
2859 # removed, or if the value is a relative name.
2860 MKDIR_P="$ac_install_sh -d"
2861 fi
2862 fi
2863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2864 printf "%s\n" "$MKDIR_P" >&6; }
2865
2866 for ac_prog in gawk mawk nawk awk
2867 do
2868 # Extract the first word of "$ac_prog", so it can be a program name with args.
2869 set dummy $ac_prog; ac_word=$2
2870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2871 printf %s "checking for $ac_word... " >&6; }
2872 if test ${ac_cv_prog_AWK+y}
2873 then :
2874 printf %s "(cached) " >&6
2875 else $as_nop
2876 if test -n "$AWK"; then
2877 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 case $as_dir in #(((
2884 '') as_dir=./ ;;
2885 */) ;;
2886 *) as_dir=$as_dir/ ;;
2887 esac
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_AWK="$ac_prog"
2891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894 done
2895 done
2896 IFS=$as_save_IFS
2897
2898 fi
2899 fi
2900 AWK=$ac_cv_prog_AWK
2901 if test -n "$AWK"; then
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2903 printf "%s\n" "$AWK" >&6; }
2904 else
2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 printf "%s\n" "no" >&6; }
2907 fi
2908
2909
2910 test -n "$AWK" && break
2911 done
2912
2913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2914 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2915 set x ${MAKE-make}
2916 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2917 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2918 then :
2919 printf %s "(cached) " >&6
2920 else $as_nop
2921 cat >conftest.make <<\_ACEOF
2922 SHELL = /bin/sh
2923 all:
2924 @echo '@@@%%%=$(MAKE)=@@@%%%'
2925 _ACEOF
2926 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2927 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2928 *@@@%%%=?*=@@@%%%*)
2929 eval ac_cv_prog_make_${ac_make}_set=yes;;
2930 *)
2931 eval ac_cv_prog_make_${ac_make}_set=no;;
2932 esac
2933 rm -f conftest.make
2934 fi
2935 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2937 printf "%s\n" "yes" >&6; }
2938 SET_MAKE=
2939 else
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 printf "%s\n" "no" >&6; }
2942 SET_MAKE="MAKE=${MAKE-make}"
2943 fi
2944
2945 rm -rf .tst 2>/dev/null
2946 mkdir .tst 2>/dev/null
2947 if test -d .tst; then
2948 am__leading_dot=.
2949 else
2950 am__leading_dot=_
2951 fi
2952 rmdir .tst 2>/dev/null
2953
2954 # Check whether --enable-silent-rules was given.
2955 if test ${enable_silent_rules+y}
2956 then :
2957 enableval=$enable_silent_rules;
2958 fi
2959
2960 case $enable_silent_rules in # (((
2961 yes) AM_DEFAULT_VERBOSITY=0;;
2962 no) AM_DEFAULT_VERBOSITY=1;;
2963 *) AM_DEFAULT_VERBOSITY=1;;
2964 esac
2965 am_make=${MAKE-make}
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2967 printf %s "checking whether $am_make supports nested variables... " >&6; }
2968 if test ${am_cv_make_support_nested_variables+y}
2969 then :
2970 printf %s "(cached) " >&6
2971 else $as_nop
2972 if printf "%s\n" 'TRUE=$(BAR$(V))
2973 BAR0=false
2974 BAR1=true
2975 V=1
2976 am__doit:
2977 @$(TRUE)
2978 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2979 am_cv_make_support_nested_variables=yes
2980 else
2981 am_cv_make_support_nested_variables=no
2982 fi
2983 fi
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2985 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
2986 if test $am_cv_make_support_nested_variables = yes; then
2987 AM_V='$(V)'
2988 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2989 else
2990 AM_V=$AM_DEFAULT_VERBOSITY
2991 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2992 fi
2993 AM_BACKSLASH='\'
2994
2995 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2996 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2997 # is not polluted with repeated "-I."
2998 am__isrc=' -I$(srcdir)'
2999 # test to see if srcdir already configured
3000 if test -f $srcdir/config.status; then
3001 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3002 fi
3003 fi
3004
3005 # test whether we have cygpath
3006 if test -z "$CYGPATH_W"; then
3007 if (cygpath --version) >/dev/null 2>/dev/null; then
3008 CYGPATH_W='cygpath -w'
3009 else
3010 CYGPATH_W=echo
3011 fi
3012 fi
3013
3014
3015 # Define the identity of the package.
3016 PACKAGE='rstart'
3017 VERSION='1.0.6'
3018
3019
3020 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3021
3022
3023 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3024
3025 # Some tools Automake needs.
3026
3027 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3028
3029
3030 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3031
3032
3033 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3034
3035
3036 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3037
3038
3039 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3040
3041 # For better backward compatibility. To be removed once Automake 1.9.x
3042 # dies out for good. For more background, see:
3043 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3044 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3045 mkdir_p='$(MKDIR_P)'
3046
3047 # We need awk for the "check" target (and possibly the TAP driver). The
3048 # system "awk" is bad on some platforms.
3049 # Always define AMTAR for backward compatibility. Yes, it's still used
3050 # in the wild :-( We should find a proper way to deprecate it ...
3051 AMTAR='$${TAR-tar}'
3052
3053
3054 # We'll loop over all known methods to create a tar archive until one works.
3055 _am_tools='gnutar pax cpio none'
3056
3057 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3058
3059
3060
3061
3062
3063 # Variables for tags utilities; see am/tags.am
3064 if test -z "$CTAGS"; then
3065 CTAGS=ctags
3066 fi
3067
3068 if test -z "$ETAGS"; then
3069 ETAGS=etags
3070 fi
3071
3072 if test -z "$CSCOPE"; then
3073 CSCOPE=cscope
3074 fi
3075
3076
3077
3078 # POSIX will say in a future version that running "rm -f" with no argument
3079 # is OK; and we want to be able to make that assumption in our Makefile
3080 # recipes. So use an aggressive probe to check that the usage we want is
3081 # actually supported "in the wild" to an acceptable degree.
3082 # See automake bug#10828.
3083 # To make any issue more visible, cause the running configure to be aborted
3084 # by default if the 'rm' program in use doesn't match our expectations; the
3085 # user can still override this though.
3086 if rm -f && rm -fr && rm -rf; then : OK; else
3087 cat >&2 <<'END'
3088 Oops!
3089
3090 Your 'rm' program seems unable to run without file operands specified
3091 on the command line, even when the '-f' option is present. This is contrary
3092 to the behaviour of most rm programs out there, and not conforming with
3093 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3094
3095 Please tell [email protected] about your system, including the value
3096 of your $PATH and any error possibly output before this message. This
3097 can help us improve future automake versions.
3098
3099 END
3100 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3101 echo 'Configuration will proceed anyway, since you have set the' >&2
3102 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3103 echo >&2
3104 else
3105 cat >&2 <<'END'
3106 Aborting the configuration process, to ensure you take notice of the issue.
3107
3108 You can download and install GNU coreutils to get an 'rm' implementation
3109 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3110
3111 If you want to complete the configuration process using your problematic
3112 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3113 to "yes", and re-run configure.
3114
3115 END
3116 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3117 fi
3118 fi
3119
3120
3121 # Require X.Org macros 1.8 or later for AC_PROG_SED in XORG_MANPAGE_SECTIONS
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142 DEPDIR="${am__leading_dot}deps"
3143
3144 ac_config_commands="$ac_config_commands depfiles"
3145
3146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3147 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3148 cat > confinc.mk << 'END'
3149 am__doit:
3150 @echo this is the am__doit target >confinc.out
3151 .PHONY: am__doit
3152 END
3153 am__include="#"
3154 am__quote=
3155 # BSD make does it like this.
3156 echo '.include "confinc.mk" # ignored' > confmf.BSD
3157 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3158 echo 'include confinc.mk # ignored' > confmf.GNU
3159 _am_result=no
3160 for s in GNU BSD; do
3161 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3162 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3163 ac_status=$?
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }
3166 case $?:`cat confinc.out 2>/dev/null` in #(
3167 '0:this is the am__doit target') :
3168 case $s in #(
3169 BSD) :
3170 am__include='.include' am__quote='"' ;; #(
3171 *) :
3172 am__include='include' am__quote='' ;;
3173 esac ;; #(
3174 *) :
3175 ;;
3176 esac
3177 if test "$am__include" != "#"; then
3178 _am_result="yes ($s style)"
3179 break
3180 fi
3181 done
3182 rm -f confinc.* confmf.*
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3184 printf "%s\n" "${_am_result}" >&6; }
3185
3186 # Check whether --enable-dependency-tracking was given.
3187 if test ${enable_dependency_tracking+y}
3188 then :
3189 enableval=$enable_dependency_tracking;
3190 fi
3191
3192 if test "x$enable_dependency_tracking" != xno; then
3193 am_depcomp="$ac_aux_dir/depcomp"
3194 AMDEPBACKSLASH='\'
3195 am__nodep='_no'
3196 fi
3197 if test "x$enable_dependency_tracking" != xno; then
3198 AMDEP_TRUE=
3199 AMDEP_FALSE='#'
3200 else
3201 AMDEP_TRUE='#'
3202 AMDEP_FALSE=
3203 fi
3204
3205
3206 ac_ext=c
3207 ac_cpp='$CPP $CPPFLAGS'
3208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3211 if test -n "$ac_tool_prefix"; then
3212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 printf %s "checking for $ac_word... " >&6; }
3216 if test ${ac_cv_prog_CC+y}
3217 then :
3218 printf %s "(cached) " >&6
3219 else $as_nop
3220 if test -n "$CC"; then
3221 ac_cv_prog_CC="$CC" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226 IFS=$as_save_IFS
3227 case $as_dir in #(((
3228 '') as_dir=./ ;;
3229 */) ;;
3230 *) as_dir=$as_dir/ ;;
3231 esac
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3234 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3236 break 2
3237 fi
3238 done
3239 done
3240 IFS=$as_save_IFS
3241
3242 fi
3243 fi
3244 CC=$ac_cv_prog_CC
3245 if test -n "$CC"; then
3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3247 printf "%s\n" "$CC" >&6; }
3248 else
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 printf "%s\n" "no" >&6; }
3251 fi
3252
3253
3254 fi
3255 if test -z "$ac_cv_prog_CC"; then
3256 ac_ct_CC=$CC
3257 # Extract the first word of "gcc", so it can be a program name with args.
3258 set dummy gcc; ac_word=$2
3259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 printf %s "checking for $ac_word... " >&6; }
3261 if test ${ac_cv_prog_ac_ct_CC+y}
3262 then :
3263 printf %s "(cached) " >&6
3264 else $as_nop
3265 if test -n "$ac_ct_CC"; then
3266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3267 else
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3269 for as_dir in $PATH
3270 do
3271 IFS=$as_save_IFS
3272 case $as_dir in #(((
3273 '') as_dir=./ ;;
3274 */) ;;
3275 *) as_dir=$as_dir/ ;;
3276 esac
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_ac_ct_CC="gcc"
3280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3281 break 2
3282 fi
3283 done
3284 done
3285 IFS=$as_save_IFS
3286
3287 fi
3288 fi
3289 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3290 if test -n "$ac_ct_CC"; then
3291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3292 printf "%s\n" "$ac_ct_CC" >&6; }
3293 else
3294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 printf "%s\n" "no" >&6; }
3296 fi
3297
3298 if test "x$ac_ct_CC" = x; then
3299 CC=""
3300 else
3301 case $cross_compiling:$ac_tool_warned in
3302 yes:)
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3304 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3305 ac_tool_warned=yes ;;
3306 esac
3307 CC=$ac_ct_CC
3308 fi
3309 else
3310 CC="$ac_cv_prog_CC"
3311 fi
3312
3313 if test -z "$CC"; then
3314 if test -n "$ac_tool_prefix"; then
3315 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3316 set dummy ${ac_tool_prefix}cc; ac_word=$2
3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 printf %s "checking for $ac_word... " >&6; }
3319 if test ${ac_cv_prog_CC+y}
3320 then :
3321 printf %s "(cached) " >&6
3322 else $as_nop
3323 if test -n "$CC"; then
3324 ac_cv_prog_CC="$CC" # Let the user override the test.
3325 else
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3328 do
3329 IFS=$as_save_IFS
3330 case $as_dir in #(((
3331 '') as_dir=./ ;;
3332 */) ;;
3333 *) as_dir=$as_dir/ ;;
3334 esac
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_CC="${ac_tool_prefix}cc"
3338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3339 break 2
3340 fi
3341 done
3342 done
3343 IFS=$as_save_IFS
3344
3345 fi
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 printf "%s\n" "$CC" >&6; }
3351 else
3352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 printf "%s\n" "no" >&6; }
3354 fi
3355
3356
3357 fi
3358 fi
3359 if test -z "$CC"; then
3360 # Extract the first word of "cc", so it can be a program name with args.
3361 set dummy cc; ac_word=$2
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 printf %s "checking for $ac_word... " >&6; }
3364 if test ${ac_cv_prog_CC+y}
3365 then :
3366 printf %s "(cached) " >&6
3367 else $as_nop
3368 if test -n "$CC"; then
3369 ac_cv_prog_CC="$CC" # Let the user override the test.
3370 else
3371 ac_prog_rejected=no
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375 IFS=$as_save_IFS
3376 case $as_dir in #(((
3377 '') as_dir=./ ;;
3378 */) ;;
3379 *) as_dir=$as_dir/ ;;
3380 esac
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3383 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3384 ac_prog_rejected=yes
3385 continue
3386 fi
3387 ac_cv_prog_CC="cc"
3388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3389 break 2
3390 fi
3391 done
3392 done
3393 IFS=$as_save_IFS
3394
3395 if test $ac_prog_rejected = yes; then
3396 # We found a bogon in the path, so make sure we never use it.
3397 set dummy $ac_cv_prog_CC
3398 shift
3399 if test $# != 0; then
3400 # We chose a different compiler from the bogus one.
3401 # However, it has the same basename, so the bogon will be chosen
3402 # first if we set CC to just the basename; use the full file name.
3403 shift
3404 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3405 fi
3406 fi
3407 fi
3408 fi
3409 CC=$ac_cv_prog_CC
3410 if test -n "$CC"; then
3411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3412 printf "%s\n" "$CC" >&6; }
3413 else
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 printf "%s\n" "no" >&6; }
3416 fi
3417
3418
3419 fi
3420 if test -z "$CC"; then
3421 if test -n "$ac_tool_prefix"; then
3422 for ac_prog in cl.exe
3423 do
3424 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3425 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3427 printf %s "checking for $ac_word... " >&6; }
3428 if test ${ac_cv_prog_CC+y}
3429 then :
3430 printf %s "(cached) " >&6
3431 else $as_nop
3432 if test -n "$CC"; then
3433 ac_cv_prog_CC="$CC" # Let the user override the test.
3434 else
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3437 do
3438 IFS=$as_save_IFS
3439 case $as_dir in #(((
3440 '') as_dir=./ ;;
3441 */) ;;
3442 *) as_dir=$as_dir/ ;;
3443 esac
3444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3446 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3448 break 2
3449 fi
3450 done
3451 done
3452 IFS=$as_save_IFS
3453
3454 fi
3455 fi
3456 CC=$ac_cv_prog_CC
3457 if test -n "$CC"; then
3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3459 printf "%s\n" "$CC" >&6; }
3460 else
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3462 printf "%s\n" "no" >&6; }
3463 fi
3464
3465
3466 test -n "$CC" && break
3467 done
3468 fi
3469 if test -z "$CC"; then
3470 ac_ct_CC=$CC
3471 for ac_prog in cl.exe
3472 do
3473 # Extract the first word of "$ac_prog", so it can be a program name with args.
3474 set dummy $ac_prog; ac_word=$2
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 printf %s "checking for $ac_word... " >&6; }
3477 if test ${ac_cv_prog_ac_ct_CC+y}
3478 then :
3479 printf %s "(cached) " >&6
3480 else $as_nop
3481 if test -n "$ac_ct_CC"; then
3482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3483 else
3484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 for as_dir in $PATH
3486 do
3487 IFS=$as_save_IFS
3488 case $as_dir in #(((
3489 '') as_dir=./ ;;
3490 */) ;;
3491 *) as_dir=$as_dir/ ;;
3492 esac
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3495 ac_cv_prog_ac_ct_CC="$ac_prog"
3496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3497 break 2
3498 fi
3499 done
3500 done
3501 IFS=$as_save_IFS
3502
3503 fi
3504 fi
3505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3506 if test -n "$ac_ct_CC"; then
3507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3508 printf "%s\n" "$ac_ct_CC" >&6; }
3509 else
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3511 printf "%s\n" "no" >&6; }
3512 fi
3513
3514
3515 test -n "$ac_ct_CC" && break
3516 done
3517
3518 if test "x$ac_ct_CC" = x; then
3519 CC=""
3520 else
3521 case $cross_compiling:$ac_tool_warned in
3522 yes:)
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3524 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3525 ac_tool_warned=yes ;;
3526 esac
3527 CC=$ac_ct_CC
3528 fi
3529 fi
3530
3531 fi
3532 if test -z "$CC"; then
3533 if test -n "$ac_tool_prefix"; then
3534 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3535 set dummy ${ac_tool_prefix}clang; ac_word=$2
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 printf %s "checking for $ac_word... " >&6; }
3538 if test ${ac_cv_prog_CC+y}
3539 then :
3540 printf %s "(cached) " >&6
3541 else $as_nop
3542 if test -n "$CC"; then
3543 ac_cv_prog_CC="$CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548 IFS=$as_save_IFS
3549 case $as_dir in #(((
3550 '') as_dir=./ ;;
3551 */) ;;
3552 *) as_dir=$as_dir/ ;;
3553 esac
3554 for ac_exec_ext in '' $ac_executable_extensions; do
3555 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3556 ac_cv_prog_CC="${ac_tool_prefix}clang"
3557 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3558 break 2
3559 fi
3560 done
3561 done
3562 IFS=$as_save_IFS
3563
3564 fi
3565 fi
3566 CC=$ac_cv_prog_CC
3567 if test -n "$CC"; then
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3569 printf "%s\n" "$CC" >&6; }
3570 else
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 printf "%s\n" "no" >&6; }
3573 fi
3574
3575
3576 fi
3577 if test -z "$ac_cv_prog_CC"; then
3578 ac_ct_CC=$CC
3579 # Extract the first word of "clang", so it can be a program name with args.
3580 set dummy clang; ac_word=$2
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3582 printf %s "checking for $ac_word... " >&6; }
3583 if test ${ac_cv_prog_ac_ct_CC+y}
3584 then :
3585 printf %s "(cached) " >&6
3586 else $as_nop
3587 if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593 IFS=$as_save_IFS
3594 case $as_dir in #(((
3595 '') as_dir=./ ;;
3596 */) ;;
3597 *) as_dir=$as_dir/ ;;
3598 esac
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3601 ac_cv_prog_ac_ct_CC="clang"
3602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3603 break 2
3604 fi
3605 done
3606 done
3607 IFS=$as_save_IFS
3608
3609 fi
3610 fi
3611 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3612 if test -n "$ac_ct_CC"; then
3613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3614 printf "%s\n" "$ac_ct_CC" >&6; }
3615 else
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3617 printf "%s\n" "no" >&6; }
3618 fi
3619
3620 if test "x$ac_ct_CC" = x; then
3621 CC=""
3622 else
3623 case $cross_compiling:$ac_tool_warned in
3624 yes:)
3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3626 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627 ac_tool_warned=yes ;;
3628 esac
3629 CC=$ac_ct_CC
3630 fi
3631 else
3632 CC="$ac_cv_prog_CC"
3633 fi
3634
3635 fi
3636
3637
3638 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3639 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3640 as_fn_error $? "no acceptable C compiler found in \$PATH
3641 See \`config.log' for more details" "$LINENO" 5; }
3642
3643 # Provide some information about the compiler.
3644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3645 set X $ac_compile
3646 ac_compiler=$2
3647 for ac_option in --version -v -V -qversion -version; do
3648 { { ac_try="$ac_compiler $ac_option >&5"
3649 case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3652 esac
3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 printf "%s\n" "$ac_try_echo"; } >&5
3655 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3656 ac_status=$?
3657 if test -s conftest.err; then
3658 sed '10a\
3659 ... rest of stderr output deleted ...
3660 10q' conftest.err >conftest.er1
3661 cat conftest.er1 >&5
3662 fi
3663 rm -f conftest.er1 conftest.err
3664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3665 test $ac_status = 0; }
3666 done
3667
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3670
3671 int
3672 main (void)
3673 {
3674
3675 ;
3676 return 0;
3677 }
3678 _ACEOF
3679 ac_clean_files_save=$ac_clean_files
3680 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3681 # Try to create an executable without -o first, disregard a.out.
3682 # It will help us diagnose broken compilers, and finding out an intuition
3683 # of exeext.
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3685 printf %s "checking whether the C compiler works... " >&6; }
3686 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3687
3688 # The possible output files:
3689 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3690
3691 ac_rmfiles=
3692 for ac_file in $ac_files
3693 do
3694 case $ac_file in
3695 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3696 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3697 esac
3698 done
3699 rm -f $ac_rmfiles
3700
3701 if { { ac_try="$ac_link_default"
3702 case "(($ac_try" in
3703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704 *) ac_try_echo=$ac_try;;
3705 esac
3706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3707 printf "%s\n" "$ac_try_echo"; } >&5
3708 (eval "$ac_link_default") 2>&5
3709 ac_status=$?
3710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3711 test $ac_status = 0; }
3712 then :
3713 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3714 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3715 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3716 # so that the user can short-circuit this test for compilers unknown to
3717 # Autoconf.
3718 for ac_file in $ac_files ''
3719 do
3720 test -f "$ac_file" || continue
3721 case $ac_file in
3722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3723 ;;
3724 [ab].out )
3725 # We found the default executable, but exeext='' is most
3726 # certainly right.
3727 break;;
3728 *.* )
3729 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3730 then :; else
3731 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3732 fi
3733 # We set ac_cv_exeext here because the later test for it is not
3734 # safe: cross compilers may not add the suffix if given an `-o'
3735 # argument, so we may need to know it at that point already.
3736 # Even if this section looks crufty: it has the advantage of
3737 # actually working.
3738 break;;
3739 * )
3740 break;;
3741 esac
3742 done
3743 test "$ac_cv_exeext" = no && ac_cv_exeext=
3744
3745 else $as_nop
3746 ac_file=''
3747 fi
3748 if test -z "$ac_file"
3749 then :
3750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 printf "%s\n" "no" >&6; }
3752 printf "%s\n" "$as_me: failed program was:" >&5
3753 sed 's/^/| /' conftest.$ac_ext >&5
3754
3755 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3757 as_fn_error 77 "C compiler cannot create executables
3758 See \`config.log' for more details" "$LINENO" 5; }
3759 else $as_nop
3760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3761 printf "%s\n" "yes" >&6; }
3762 fi
3763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3764 printf %s "checking for C compiler default output file name... " >&6; }
3765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3766 printf "%s\n" "$ac_file" >&6; }
3767 ac_exeext=$ac_cv_exeext
3768
3769 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3770 ac_clean_files=$ac_clean_files_save
3771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3772 printf %s "checking for suffix of executables... " >&6; }
3773 if { { ac_try="$ac_link"
3774 case "(($ac_try" in
3775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3776 *) ac_try_echo=$ac_try;;
3777 esac
3778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3779 printf "%s\n" "$ac_try_echo"; } >&5
3780 (eval "$ac_link") 2>&5
3781 ac_status=$?
3782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3783 test $ac_status = 0; }
3784 then :
3785 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3786 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3787 # work properly (i.e., refer to `conftest.exe'), while it won't with
3788 # `rm'.
3789 for ac_file in conftest.exe conftest conftest.*; do
3790 test -f "$ac_file" || continue
3791 case $ac_file in
3792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3793 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3794 break;;
3795 * ) break;;
3796 esac
3797 done
3798 else $as_nop
3799 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3802 See \`config.log' for more details" "$LINENO" 5; }
3803 fi
3804 rm -f conftest conftest$ac_cv_exeext
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3806 printf "%s\n" "$ac_cv_exeext" >&6; }
3807
3808 rm -f conftest.$ac_ext
3809 EXEEXT=$ac_cv_exeext
3810 ac_exeext=$EXEEXT
3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3812 /* end confdefs.h. */
3813 #include <stdio.h>
3814 int
3815 main (void)
3816 {
3817 FILE *f = fopen ("conftest.out", "w");
3818 return ferror (f) || fclose (f) != 0;
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 ac_clean_files="$ac_clean_files conftest.out"
3825 # Check that the compiler produces executables we can run. If not, either
3826 # the compiler is broken, or we cross compile.
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3828 printf %s "checking whether we are cross compiling... " >&6; }
3829 if test "$cross_compiling" != yes; then
3830 { { ac_try="$ac_link"
3831 case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 printf "%s\n" "$ac_try_echo"; } >&5
3837 (eval "$ac_link") 2>&5
3838 ac_status=$?
3839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3840 test $ac_status = 0; }
3841 if { ac_try='./conftest$ac_cv_exeext'
3842 { { case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845 esac
3846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3847 printf "%s\n" "$ac_try_echo"; } >&5
3848 (eval "$ac_try") 2>&5
3849 ac_status=$?
3850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3851 test $ac_status = 0; }; }; then
3852 cross_compiling=no
3853 else
3854 if test "$cross_compiling" = maybe; then
3855 cross_compiling=yes
3856 else
3857 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3859 as_fn_error 77 "cannot run C compiled programs.
3860 If you meant to cross compile, use \`--host'.
3861 See \`config.log' for more details" "$LINENO" 5; }
3862 fi
3863 fi
3864 fi
3865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3866 printf "%s\n" "$cross_compiling" >&6; }
3867
3868 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3869 ac_clean_files=$ac_clean_files_save
3870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3871 printf %s "checking for suffix of object files... " >&6; }
3872 if test ${ac_cv_objext+y}
3873 then :
3874 printf %s "(cached) " >&6
3875 else $as_nop
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878
3879 int
3880 main (void)
3881 {
3882
3883 ;
3884 return 0;
3885 }
3886 _ACEOF
3887 rm -f conftest.o conftest.obj
3888 if { { ac_try="$ac_compile"
3889 case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892 esac
3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 printf "%s\n" "$ac_try_echo"; } >&5
3895 (eval "$ac_compile") 2>&5
3896 ac_status=$?
3897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898 test $ac_status = 0; }
3899 then :
3900 for ac_file in conftest.o conftest.obj conftest.*; do
3901 test -f "$ac_file" || continue;
3902 case $ac_file in
3903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3904 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3905 break;;
3906 esac
3907 done
3908 else $as_nop
3909 printf "%s\n" "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3911
3912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3913 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3914 as_fn_error $? "cannot compute suffix of object files: cannot compile
3915 See \`config.log' for more details" "$LINENO" 5; }
3916 fi
3917 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3918 fi
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3920 printf "%s\n" "$ac_cv_objext" >&6; }
3921 OBJEXT=$ac_cv_objext
3922 ac_objext=$OBJEXT
3923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3924 printf %s "checking whether the compiler supports GNU C... " >&6; }
3925 if test ${ac_cv_c_compiler_gnu+y}
3926 then :
3927 printf %s "(cached) " >&6
3928 else $as_nop
3929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h. */
3931
3932 int
3933 main (void)
3934 {
3935 #ifndef __GNUC__
3936 choke me
3937 #endif
3938
3939 ;
3940 return 0;
3941 }
3942 _ACEOF
3943 if ac_fn_c_try_compile "$LINENO"
3944 then :
3945 ac_compiler_gnu=yes
3946 else $as_nop
3947 ac_compiler_gnu=no
3948 fi
3949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3950 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3951
3952 fi
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3954 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956
3957 if test $ac_compiler_gnu = yes; then
3958 GCC=yes
3959 else
3960 GCC=
3961 fi
3962 ac_test_CFLAGS=${CFLAGS+y}
3963 ac_save_CFLAGS=$CFLAGS
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3965 printf %s "checking whether $CC accepts -g... " >&6; }
3966 if test ${ac_cv_prog_cc_g+y}
3967 then :
3968 printf %s "(cached) " >&6
3969 else $as_nop
3970 ac_save_c_werror_flag=$ac_c_werror_flag
3971 ac_c_werror_flag=yes
3972 ac_cv_prog_cc_g=no
3973 CFLAGS="-g"
3974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h. */
3976
3977 int
3978 main (void)
3979 {
3980
3981 ;
3982 return 0;
3983 }
3984 _ACEOF
3985 if ac_fn_c_try_compile "$LINENO"
3986 then :
3987 ac_cv_prog_cc_g=yes
3988 else $as_nop
3989 CFLAGS=""
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992
3993 int
3994 main (void)
3995 {
3996
3997 ;
3998 return 0;
3999 }
4000 _ACEOF
4001 if ac_fn_c_try_compile "$LINENO"
4002 then :
4003
4004 else $as_nop
4005 ac_c_werror_flag=$ac_save_c_werror_flag
4006 CFLAGS="-g"
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4009
4010 int
4011 main (void)
4012 {
4013
4014 ;
4015 return 0;
4016 }
4017 _ACEOF
4018 if ac_fn_c_try_compile "$LINENO"
4019 then :
4020 ac_cv_prog_cc_g=yes
4021 fi
4022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4023 fi
4024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4025 fi
4026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4027 ac_c_werror_flag=$ac_save_c_werror_flag
4028 fi
4029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4030 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4031 if test $ac_test_CFLAGS; then
4032 CFLAGS=$ac_save_CFLAGS
4033 elif test $ac_cv_prog_cc_g = yes; then
4034 if test "$GCC" = yes; then
4035 CFLAGS="-g -O2"
4036 else
4037 CFLAGS="-g"
4038 fi
4039 else
4040 if test "$GCC" = yes; then
4041 CFLAGS="-O2"
4042 else
4043 CFLAGS=
4044 fi
4045 fi
4046 ac_prog_cc_stdc=no
4047 if test x$ac_prog_cc_stdc = xno
4048 then :
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4050 printf %s "checking for $CC option to enable C11 features... " >&6; }
4051 if test ${ac_cv_prog_cc_c11+y}
4052 then :
4053 printf %s "(cached) " >&6
4054 else $as_nop
4055 ac_cv_prog_cc_c11=no
4056 ac_save_CC=$CC
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059 $ac_c_conftest_c11_program
4060 _ACEOF
4061 for ac_arg in '' -std=gnu11
4062 do
4063 CC="$ac_save_CC $ac_arg"
4064 if ac_fn_c_try_compile "$LINENO"
4065 then :
4066 ac_cv_prog_cc_c11=$ac_arg
4067 fi
4068 rm -f core conftest.err conftest.$ac_objext conftest.beam
4069 test "x$ac_cv_prog_cc_c11" != "xno" && break
4070 done
4071 rm -f conftest.$ac_ext
4072 CC=$ac_save_CC
4073 fi
4074
4075 if test "x$ac_cv_prog_cc_c11" = xno
4076 then :
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4078 printf "%s\n" "unsupported" >&6; }
4079 else $as_nop
4080 if test "x$ac_cv_prog_cc_c11" = x
4081 then :
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4083 printf "%s\n" "none needed" >&6; }
4084 else $as_nop
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4086 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4087 CC="$CC $ac_cv_prog_cc_c11"
4088 fi
4089 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4090 ac_prog_cc_stdc=c11
4091 fi
4092 fi
4093 if test x$ac_prog_cc_stdc = xno
4094 then :
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4096 printf %s "checking for $CC option to enable C99 features... " >&6; }
4097 if test ${ac_cv_prog_cc_c99+y}
4098 then :
4099 printf %s "(cached) " >&6
4100 else $as_nop
4101 ac_cv_prog_cc_c99=no
4102 ac_save_CC=$CC
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105 $ac_c_conftest_c99_program
4106 _ACEOF
4107 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4108 do
4109 CC="$ac_save_CC $ac_arg"
4110 if ac_fn_c_try_compile "$LINENO"
4111 then :
4112 ac_cv_prog_cc_c99=$ac_arg
4113 fi
4114 rm -f core conftest.err conftest.$ac_objext conftest.beam
4115 test "x$ac_cv_prog_cc_c99" != "xno" && break
4116 done
4117 rm -f conftest.$ac_ext
4118 CC=$ac_save_CC
4119 fi
4120
4121 if test "x$ac_cv_prog_cc_c99" = xno
4122 then :
4123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4124 printf "%s\n" "unsupported" >&6; }
4125 else $as_nop
4126 if test "x$ac_cv_prog_cc_c99" = x
4127 then :
4128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4129 printf "%s\n" "none needed" >&6; }
4130 else $as_nop
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4132 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4133 CC="$CC $ac_cv_prog_cc_c99"
4134 fi
4135 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4136 ac_prog_cc_stdc=c99
4137 fi
4138 fi
4139 if test x$ac_prog_cc_stdc = xno
4140 then :
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4142 printf %s "checking for $CC option to enable C89 features... " >&6; }
4143 if test ${ac_cv_prog_cc_c89+y}
4144 then :
4145 printf %s "(cached) " >&6
4146 else $as_nop
4147 ac_cv_prog_cc_c89=no
4148 ac_save_CC=$CC
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151 $ac_c_conftest_c89_program
4152 _ACEOF
4153 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4154 do
4155 CC="$ac_save_CC $ac_arg"
4156 if ac_fn_c_try_compile "$LINENO"
4157 then :
4158 ac_cv_prog_cc_c89=$ac_arg
4159 fi
4160 rm -f core conftest.err conftest.$ac_objext conftest.beam
4161 test "x$ac_cv_prog_cc_c89" != "xno" && break
4162 done
4163 rm -f conftest.$ac_ext
4164 CC=$ac_save_CC
4165 fi
4166
4167 if test "x$ac_cv_prog_cc_c89" = xno
4168 then :
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4170 printf "%s\n" "unsupported" >&6; }
4171 else $as_nop
4172 if test "x$ac_cv_prog_cc_c89" = x
4173 then :
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4175 printf "%s\n" "none needed" >&6; }
4176 else $as_nop
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4178 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4179 CC="$CC $ac_cv_prog_cc_c89"
4180 fi
4181 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4182 ac_prog_cc_stdc=c89
4183 fi
4184 fi
4185
4186 ac_ext=c
4187 ac_cpp='$CPP $CPPFLAGS'
4188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4191
4192
4193 ac_ext=c
4194 ac_cpp='$CPP $CPPFLAGS'
4195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4199 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4200 if test ${am_cv_prog_cc_c_o+y}
4201 then :
4202 printf %s "(cached) " >&6
4203 else $as_nop
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4206
4207 int
4208 main (void)
4209 {
4210
4211 ;
4212 return 0;
4213 }
4214 _ACEOF
4215 # Make sure it works both with $CC and with simple cc.
4216 # Following AC_PROG_CC_C_O, we do the test twice because some
4217 # compilers refuse to overwrite an existing .o file with -o,
4218 # though they will create one.
4219 am_cv_prog_cc_c_o=yes
4220 for am_i in 1 2; do
4221 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4222 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } \
4226 && test -f conftest2.$ac_objext; then
4227 : OK
4228 else
4229 am_cv_prog_cc_c_o=no
4230 break
4231 fi
4232 done
4233 rm -f core conftest*
4234 unset am_i
4235 fi
4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4237 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4238 if test "$am_cv_prog_cc_c_o" != yes; then
4239 # Losing compiler, so override with the script.
4240 # FIXME: It is wrong to rewrite CC.
4241 # But if we don't then we get into trouble of one sort or another.
4242 # A longer-term fix would be to have automake use am__CC in this case,
4243 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4244 CC="$am_aux_dir/compile $CC"
4245 fi
4246 ac_ext=c
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251
4252
4253 depcc="$CC" am_compiler_list=
4254
4255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4256 printf %s "checking dependency style of $depcc... " >&6; }
4257 if test ${am_cv_CC_dependencies_compiler_type+y}
4258 then :
4259 printf %s "(cached) " >&6
4260 else $as_nop
4261 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4262 # We make a subdir and do the tests there. Otherwise we can end up
4263 # making bogus files that we don't know about and never remove. For
4264 # instance it was reported that on HP-UX the gcc test will end up
4265 # making a dummy file named 'D' -- because '-MD' means "put the output
4266 # in D".
4267 rm -rf conftest.dir
4268 mkdir conftest.dir
4269 # Copy depcomp to subdir because otherwise we won't find it if we're
4270 # using a relative directory.
4271 cp "$am_depcomp" conftest.dir
4272 cd conftest.dir
4273 # We will build objects and dependencies in a subdirectory because
4274 # it helps to detect inapplicable dependency modes. For instance
4275 # both Tru64's cc and ICC support -MD to output dependencies as a
4276 # side effect of compilation, but ICC will put the dependencies in
4277 # the current directory while Tru64 will put them in the object
4278 # directory.
4279 mkdir sub
4280
4281 am_cv_CC_dependencies_compiler_type=none
4282 if test "$am_compiler_list" = ""; then
4283 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4284 fi
4285 am__universal=false
4286 case " $depcc " in #(
4287 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4288 esac
4289
4290 for depmode in $am_compiler_list; do
4291 # Setup a source with many dependencies, because some compilers
4292 # like to wrap large dependency lists on column 80 (with \), and
4293 # we should not choose a depcomp mode which is confused by this.
4294 #
4295 # We need to recreate these files for each test, as the compiler may
4296 # overwrite some of them when testing with obscure command lines.
4297 # This happens at least with the AIX C compiler.
4298 : > sub/conftest.c
4299 for i in 1 2 3 4 5 6; do
4300 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4301 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4302 # Solaris 10 /bin/sh.
4303 echo '/* dummy */' > sub/conftst$i.h
4304 done
4305 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4306
4307 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4308 # mode. It turns out that the SunPro C++ compiler does not properly
4309 # handle '-M -o', and we need to detect this. Also, some Intel
4310 # versions had trouble with output in subdirs.
4311 am__obj=sub/conftest.${OBJEXT-o}
4312 am__minus_obj="-o $am__obj"
4313 case $depmode in
4314 gcc)
4315 # This depmode causes a compiler race in universal mode.
4316 test "$am__universal" = false || continue
4317 ;;
4318 nosideeffect)
4319 # After this tag, mechanisms are not by side-effect, so they'll
4320 # only be used when explicitly requested.
4321 if test "x$enable_dependency_tracking" = xyes; then
4322 continue
4323 else
4324 break
4325 fi
4326 ;;
4327 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4328 # This compiler won't grok '-c -o', but also, the minuso test has
4329 # not run yet. These depmodes are late enough in the game, and
4330 # so weak that their functioning should not be impacted.
4331 am__obj=conftest.${OBJEXT-o}
4332 am__minus_obj=
4333 ;;
4334 none) break ;;
4335 esac
4336 if depmode=$depmode \
4337 source=sub/conftest.c object=$am__obj \
4338 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4339 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4340 >/dev/null 2>conftest.err &&
4341 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4342 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4343 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4344 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4345 # icc doesn't choke on unknown options, it will just issue warnings
4346 # or remarks (even with -Werror). So we grep stderr for any message
4347 # that says an option was ignored or not supported.
4348 # When given -MP, icc 7.0 and 7.1 complain thusly:
4349 # icc: Command line warning: ignoring option '-M'; no argument required
4350 # The diagnosis changed in icc 8.0:
4351 # icc: Command line remark: option '-MP' not supported
4352 if (grep 'ignoring option' conftest.err ||
4353 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4354 am_cv_CC_dependencies_compiler_type=$depmode
4355 break
4356 fi
4357 fi
4358 done
4359
4360 cd ..
4361 rm -rf conftest.dir
4362 else
4363 am_cv_CC_dependencies_compiler_type=none
4364 fi
4365
4366 fi
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4368 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4369 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4370
4371 if
4372 test "x$enable_dependency_tracking" != xno \
4373 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4374 am__fastdepCC_TRUE=
4375 am__fastdepCC_FALSE='#'
4376 else
4377 am__fastdepCC_TRUE='#'
4378 am__fastdepCC_FALSE=
4379 fi
4380
4381
4382
4383
4384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4385 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4386 if test ${ac_cv_c_undeclared_builtin_options+y}
4387 then :
4388 printf %s "(cached) " >&6
4389 else $as_nop
4390 ac_save_CFLAGS=$CFLAGS
4391 ac_cv_c_undeclared_builtin_options='cannot detect'
4392 for ac_arg in '' -fno-builtin; do
4393 CFLAGS="$ac_save_CFLAGS $ac_arg"
4394 # This test program should *not* compile successfully.
4395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h. */
4397
4398 int
4399 main (void)
4400 {
4401 (void) strchr;
4402 ;
4403 return 0;
4404 }
4405 _ACEOF
4406 if ac_fn_c_try_compile "$LINENO"
4407 then :
4408
4409 else $as_nop
4410 # This test program should compile successfully.
4411 # No library function is consistently available on
4412 # freestanding implementations, so test against a dummy
4413 # declaration. Include always-available headers on the
4414 # off chance that they somehow elicit warnings.
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4417 #include <float.h>
4418 #include <limits.h>
4419 #include <stdarg.h>
4420 #include <stddef.h>
4421 extern void ac_decl (int, char *);
4422
4423 int
4424 main (void)
4425 {
4426 (void) ac_decl (0, (char *) 0);
4427 (void) ac_decl;
4428
4429 ;
4430 return 0;
4431 }
4432 _ACEOF
4433 if ac_fn_c_try_compile "$LINENO"
4434 then :
4435 if test x"$ac_arg" = x
4436 then :
4437 ac_cv_c_undeclared_builtin_options='none needed'
4438 else $as_nop
4439 ac_cv_c_undeclared_builtin_options=$ac_arg
4440 fi
4441 break
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4444 fi
4445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4446 done
4447 CFLAGS=$ac_save_CFLAGS
4448
4449 fi
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4451 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4452 case $ac_cv_c_undeclared_builtin_options in #(
4453 'cannot detect') :
4454 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4455 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4456 as_fn_error $? "cannot make $CC report undeclared builtins
4457 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4458 'none needed') :
4459 ac_c_undeclared_builtin_options='' ;; #(
4460 *) :
4461 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4462 esac
4463
4464 ac_header= ac_cache=
4465 for ac_item in $ac_header_c_list
4466 do
4467 if test $ac_cache; then
4468 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4469 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4470 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4471 fi
4472 ac_header= ac_cache=
4473 elif test $ac_header; then
4474 ac_cache=$ac_item
4475 else
4476 ac_header=$ac_item
4477 fi
4478 done
4479
4480
4481
4482
4483
4484
4485
4486
4487 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4488 then :
4489
4490 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4491
4492 fi
4493
4494
4495
4496
4497 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4498 if test "x$ac_cv_have_decl___clang__" = xyes
4499 then :
4500 CLANGCC="yes"
4501 else $as_nop
4502 CLANGCC="no"
4503 fi
4504 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4505 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4506 then :
4507 INTELCC="yes"
4508 else $as_nop
4509 INTELCC="no"
4510 fi
4511 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4512 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4513 then :
4514 SUNCC="yes"
4515 else $as_nop
4516 SUNCC="no"
4517 fi
4518
4519
4520
4521
4522
4523
4524
4525
4526 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4527 if test -n "$ac_tool_prefix"; then
4528 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4529 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4531 printf %s "checking for $ac_word... " >&6; }
4532 if test ${ac_cv_path_PKG_CONFIG+y}
4533 then :
4534 printf %s "(cached) " >&6
4535 else $as_nop
4536 case $PKG_CONFIG in
4537 [\\/]* | ?:[\\/]*)
4538 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4539 ;;
4540 *)
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544 IFS=$as_save_IFS
4545 case $as_dir in #(((
4546 '') as_dir=./ ;;
4547 */) ;;
4548 *) as_dir=$as_dir/ ;;
4549 esac
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4552 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4554 break 2
4555 fi
4556 done
4557 done
4558 IFS=$as_save_IFS
4559
4560 ;;
4561 esac
4562 fi
4563 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4564 if test -n "$PKG_CONFIG"; then
4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4566 printf "%s\n" "$PKG_CONFIG" >&6; }
4567 else
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 printf "%s\n" "no" >&6; }
4570 fi
4571
4572
4573 fi
4574 if test -z "$ac_cv_path_PKG_CONFIG"; then
4575 ac_pt_PKG_CONFIG=$PKG_CONFIG
4576 # Extract the first word of "pkg-config", so it can be a program name with args.
4577 set dummy pkg-config; ac_word=$2
4578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 printf %s "checking for $ac_word... " >&6; }
4580 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4581 then :
4582 printf %s "(cached) " >&6
4583 else $as_nop
4584 case $ac_pt_PKG_CONFIG in
4585 [\\/]* | ?:[\\/]*)
4586 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4587 ;;
4588 *)
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4591 do
4592 IFS=$as_save_IFS
4593 case $as_dir in #(((
4594 '') as_dir=./ ;;
4595 */) ;;
4596 *) as_dir=$as_dir/ ;;
4597 esac
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4600 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4602 break 2
4603 fi
4604 done
4605 done
4606 IFS=$as_save_IFS
4607
4608 ;;
4609 esac
4610 fi
4611 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4612 if test -n "$ac_pt_PKG_CONFIG"; then
4613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4614 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4615 else
4616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 printf "%s\n" "no" >&6; }
4618 fi
4619
4620 if test "x$ac_pt_PKG_CONFIG" = x; then
4621 PKG_CONFIG=""
4622 else
4623 case $cross_compiling:$ac_tool_warned in
4624 yes:)
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4626 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4627 ac_tool_warned=yes ;;
4628 esac
4629 PKG_CONFIG=$ac_pt_PKG_CONFIG
4630 fi
4631 else
4632 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4633 fi
4634
4635 fi
4636 if test -n "$PKG_CONFIG"; then
4637 _pkg_min_version=0.9.0
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4639 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4640 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4642 printf "%s\n" "yes" >&6; }
4643 else
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 printf "%s\n" "no" >&6; }
4646 PKG_CONFIG=""
4647 fi
4648 fi
4649
4650
4651 # Make sure we can run config.sub.
4652 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4653 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4654
4655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4656 printf %s "checking build system type... " >&6; }
4657 if test ${ac_cv_build+y}
4658 then :
4659 printf %s "(cached) " >&6
4660 else $as_nop
4661 ac_build_alias=$build_alias
4662 test "x$ac_build_alias" = x &&
4663 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4664 test "x$ac_build_alias" = x &&
4665 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4666 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4667 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4668
4669 fi
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4671 printf "%s\n" "$ac_cv_build" >&6; }
4672 case $ac_cv_build in
4673 *-*-*) ;;
4674 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4675 esac
4676 build=$ac_cv_build
4677 ac_save_IFS=$IFS; IFS='-'
4678 set x $ac_cv_build
4679 shift
4680 build_cpu=$1
4681 build_vendor=$2
4682 shift; shift
4683 # Remember, the first character of IFS is used to create $*,
4684 # except with old shells:
4685 build_os=$*
4686 IFS=$ac_save_IFS
4687 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4688
4689
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4691 printf %s "checking host system type... " >&6; }
4692 if test ${ac_cv_host+y}
4693 then :
4694 printf %s "(cached) " >&6
4695 else $as_nop
4696 if test "x$host_alias" = x; then
4697 ac_cv_host=$ac_cv_build
4698 else
4699 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4700 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4701 fi
4702
4703 fi
4704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4705 printf "%s\n" "$ac_cv_host" >&6; }
4706 case $ac_cv_host in
4707 *-*-*) ;;
4708 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4709 esac
4710 host=$ac_cv_host
4711 ac_save_IFS=$IFS; IFS='-'
4712 set x $ac_cv_host
4713 shift
4714 host_cpu=$1
4715 host_vendor=$2
4716 shift; shift
4717 # Remember, the first character of IFS is used to create $*,
4718 # except with old shells:
4719 host_os=$*
4720 IFS=$ac_save_IFS
4721 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4722
4723
4724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4725 printf %s "checking for a sed that does not truncate output... " >&6; }
4726 if test ${ac_cv_path_SED+y}
4727 then :
4728 printf %s "(cached) " >&6
4729 else $as_nop
4730 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4731 for ac_i in 1 2 3 4 5 6 7; do
4732 ac_script="$ac_script$as_nl$ac_script"
4733 done
4734 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4735 { ac_script=; unset ac_script;}
4736 if test -z "$SED"; then
4737 ac_path_SED_found=false
4738 # Loop through the user's path and test for each of PROGNAME-LIST
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4741 do
4742 IFS=$as_save_IFS
4743 case $as_dir in #(((
4744 '') as_dir=./ ;;
4745 */) ;;
4746 *) as_dir=$as_dir/ ;;
4747 esac
4748 for ac_prog in sed gsed
4749 do
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4752 as_fn_executable_p "$ac_path_SED" || continue
4753 # Check for GNU ac_path_SED and select it if it is found.
4754 # Check for GNU $ac_path_SED
4755 case `"$ac_path_SED" --version 2>&1` in
4756 *GNU*)
4757 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4758 *)
4759 ac_count=0
4760 printf %s 0123456789 >"conftest.in"
4761 while :
4762 do
4763 cat "conftest.in" "conftest.in" >"conftest.tmp"
4764 mv "conftest.tmp" "conftest.in"
4765 cp "conftest.in" "conftest.nl"
4766 printf "%s\n" '' >> "conftest.nl"
4767 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4769 as_fn_arith $ac_count + 1 && ac_count=$as_val
4770 if test $ac_count -gt ${ac_path_SED_max-0}; then
4771 # Best one so far, save it but keep looking for a better one
4772 ac_cv_path_SED="$ac_path_SED"
4773 ac_path_SED_max=$ac_count
4774 fi
4775 # 10*(2^10) chars as input seems more than enough
4776 test $ac_count -gt 10 && break
4777 done
4778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4779 esac
4780
4781 $ac_path_SED_found && break 3
4782 done
4783 done
4784 done
4785 IFS=$as_save_IFS
4786 if test -z "$ac_cv_path_SED"; then
4787 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4788 fi
4789 else
4790 ac_cv_path_SED=$SED
4791 fi
4792
4793 fi
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4795 printf "%s\n" "$ac_cv_path_SED" >&6; }
4796 SED="$ac_cv_path_SED"
4797 rm -f conftest.sed
4798
4799
4800
4801
4802
4803
4804 # Check whether --enable-selective-werror was given.
4805 if test ${enable_selective_werror+y}
4806 then :
4807 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4808 else $as_nop
4809 SELECTIVE_WERROR=yes
4810 fi
4811
4812
4813
4814
4815
4816 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4817 if test "x$SUNCC" = "xyes"; then
4818 BASE_CFLAGS="-v"
4819 else
4820 BASE_CFLAGS=""
4821 fi
4822
4823 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837 xorg_testset_save_CFLAGS="$CFLAGS"
4838
4839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4842 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4843 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4844 then :
4845 printf %s "(cached) " >&6
4846 else $as_nop
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 int i;
4850 _ACEOF
4851 if ac_fn_c_try_compile "$LINENO"
4852 then :
4853 xorg_cv_cc_flag_unknown_warning_option=yes
4854 else $as_nop
4855 xorg_cv_cc_flag_unknown_warning_option=no
4856 fi
4857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4858 fi
4859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4860 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4862 CFLAGS="$xorg_testset_save_CFLAGS"
4863 fi
4864
4865 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4868 fi
4869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4871 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4872 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4873 then :
4874 printf %s "(cached) " >&6
4875 else $as_nop
4876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877 /* end confdefs.h. */
4878 int i;
4879 _ACEOF
4880 if ac_fn_c_try_compile "$LINENO"
4881 then :
4882 xorg_cv_cc_flag_unused_command_line_argument=yes
4883 else $as_nop
4884 xorg_cv_cc_flag_unused_command_line_argument=no
4885 fi
4886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4887 fi
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4889 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4891 CFLAGS="$xorg_testset_save_CFLAGS"
4892 fi
4893
4894 found="no"
4895
4896 if test $found = "no" ; then
4897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4899 fi
4900
4901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4903 fi
4904
4905 CFLAGS="$CFLAGS -Wall"
4906
4907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4908 printf %s "checking if $CC supports -Wall... " >&6; }
4909 cacheid=xorg_cv_cc_flag__Wall
4910 if eval test \${$cacheid+y}
4911 then :
4912 printf %s "(cached) " >&6
4913 else $as_nop
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 int i;
4917 int
4918 main (void)
4919 {
4920
4921 ;
4922 return 0;
4923 }
4924 _ACEOF
4925 if ac_fn_c_try_link "$LINENO"
4926 then :
4927 eval $cacheid=yes
4928 else $as_nop
4929 eval $cacheid=no
4930 fi
4931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4932 conftest$ac_exeext conftest.$ac_ext
4933 fi
4934
4935
4936 CFLAGS="$xorg_testset_save_CFLAGS"
4937
4938 eval supported=\$$cacheid
4939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4940 printf "%s\n" "$supported" >&6; }
4941 if test "$supported" = "yes" ; then
4942 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4943 found="yes"
4944 fi
4945 fi
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961 xorg_testset_save_CFLAGS="$CFLAGS"
4962
4963 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4966 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4967 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4968 then :
4969 printf %s "(cached) " >&6
4970 else $as_nop
4971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4972 /* end confdefs.h. */
4973 int i;
4974 _ACEOF
4975 if ac_fn_c_try_compile "$LINENO"
4976 then :
4977 xorg_cv_cc_flag_unknown_warning_option=yes
4978 else $as_nop
4979 xorg_cv_cc_flag_unknown_warning_option=no
4980 fi
4981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4982 fi
4983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4984 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4986 CFLAGS="$xorg_testset_save_CFLAGS"
4987 fi
4988
4989 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4992 fi
4993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4995 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4996 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4997 then :
4998 printf %s "(cached) " >&6
4999 else $as_nop
5000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5001 /* end confdefs.h. */
5002 int i;
5003 _ACEOF
5004 if ac_fn_c_try_compile "$LINENO"
5005 then :
5006 xorg_cv_cc_flag_unused_command_line_argument=yes
5007 else $as_nop
5008 xorg_cv_cc_flag_unused_command_line_argument=no
5009 fi
5010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5011 fi
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5013 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5014 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5015 CFLAGS="$xorg_testset_save_CFLAGS"
5016 fi
5017
5018 found="no"
5019
5020 if test $found = "no" ; then
5021 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5022 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5023 fi
5024
5025 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5026 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5027 fi
5028
5029 CFLAGS="$CFLAGS -Wpointer-arith"
5030
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5032 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5033 cacheid=xorg_cv_cc_flag__Wpointer_arith
5034 if eval test \${$cacheid+y}
5035 then :
5036 printf %s "(cached) " >&6
5037 else $as_nop
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5040 int i;
5041 int
5042 main (void)
5043 {
5044
5045 ;
5046 return 0;
5047 }
5048 _ACEOF
5049 if ac_fn_c_try_link "$LINENO"
5050 then :
5051 eval $cacheid=yes
5052 else $as_nop
5053 eval $cacheid=no
5054 fi
5055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5056 conftest$ac_exeext conftest.$ac_ext
5057 fi
5058
5059
5060 CFLAGS="$xorg_testset_save_CFLAGS"
5061
5062 eval supported=\$$cacheid
5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5064 printf "%s\n" "$supported" >&6; }
5065 if test "$supported" = "yes" ; then
5066 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5067 found="yes"
5068 fi
5069 fi
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085 xorg_testset_save_CFLAGS="$CFLAGS"
5086
5087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5090 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5091 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5092 then :
5093 printf %s "(cached) " >&6
5094 else $as_nop
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5097 int i;
5098 _ACEOF
5099 if ac_fn_c_try_compile "$LINENO"
5100 then :
5101 xorg_cv_cc_flag_unknown_warning_option=yes
5102 else $as_nop
5103 xorg_cv_cc_flag_unknown_warning_option=no
5104 fi
5105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5106 fi
5107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5108 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5110 CFLAGS="$xorg_testset_save_CFLAGS"
5111 fi
5112
5113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5116 fi
5117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5119 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5120 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5121 then :
5122 printf %s "(cached) " >&6
5123 else $as_nop
5124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126 int i;
5127 _ACEOF
5128 if ac_fn_c_try_compile "$LINENO"
5129 then :
5130 xorg_cv_cc_flag_unused_command_line_argument=yes
5131 else $as_nop
5132 xorg_cv_cc_flag_unused_command_line_argument=no
5133 fi
5134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5135 fi
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5137 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5138 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5139 CFLAGS="$xorg_testset_save_CFLAGS"
5140 fi
5141
5142 found="no"
5143
5144 if test $found = "no" ; then
5145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5147 fi
5148
5149 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5150 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5151 fi
5152
5153 CFLAGS="$CFLAGS -Wmissing-declarations"
5154
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5156 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5157 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5158 if eval test \${$cacheid+y}
5159 then :
5160 printf %s "(cached) " >&6
5161 else $as_nop
5162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5163 /* end confdefs.h. */
5164 int i;
5165 int
5166 main (void)
5167 {
5168
5169 ;
5170 return 0;
5171 }
5172 _ACEOF
5173 if ac_fn_c_try_link "$LINENO"
5174 then :
5175 eval $cacheid=yes
5176 else $as_nop
5177 eval $cacheid=no
5178 fi
5179 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5180 conftest$ac_exeext conftest.$ac_ext
5181 fi
5182
5183
5184 CFLAGS="$xorg_testset_save_CFLAGS"
5185
5186 eval supported=\$$cacheid
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5188 printf "%s\n" "$supported" >&6; }
5189 if test "$supported" = "yes" ; then
5190 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5191 found="yes"
5192 fi
5193 fi
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209 xorg_testset_save_CFLAGS="$CFLAGS"
5210
5211 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5214 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5215 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5216 then :
5217 printf %s "(cached) " >&6
5218 else $as_nop
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 int i;
5222 _ACEOF
5223 if ac_fn_c_try_compile "$LINENO"
5224 then :
5225 xorg_cv_cc_flag_unknown_warning_option=yes
5226 else $as_nop
5227 xorg_cv_cc_flag_unknown_warning_option=no
5228 fi
5229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5230 fi
5231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5232 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5233 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5234 CFLAGS="$xorg_testset_save_CFLAGS"
5235 fi
5236
5237 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5238 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5239 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5240 fi
5241 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5243 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5244 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5245 then :
5246 printf %s "(cached) " >&6
5247 else $as_nop
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5250 int i;
5251 _ACEOF
5252 if ac_fn_c_try_compile "$LINENO"
5253 then :
5254 xorg_cv_cc_flag_unused_command_line_argument=yes
5255 else $as_nop
5256 xorg_cv_cc_flag_unused_command_line_argument=no
5257 fi
5258 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5259 fi
5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5261 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5263 CFLAGS="$xorg_testset_save_CFLAGS"
5264 fi
5265
5266 found="no"
5267
5268 if test $found = "no" ; then
5269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5271 fi
5272
5273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5275 fi
5276
5277 CFLAGS="$CFLAGS -Wformat=2"
5278
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5280 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5281 cacheid=xorg_cv_cc_flag__Wformat_2
5282 if eval test \${$cacheid+y}
5283 then :
5284 printf %s "(cached) " >&6
5285 else $as_nop
5286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5287 /* end confdefs.h. */
5288 int i;
5289 int
5290 main (void)
5291 {
5292
5293 ;
5294 return 0;
5295 }
5296 _ACEOF
5297 if ac_fn_c_try_link "$LINENO"
5298 then :
5299 eval $cacheid=yes
5300 else $as_nop
5301 eval $cacheid=no
5302 fi
5303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5304 conftest$ac_exeext conftest.$ac_ext
5305 fi
5306
5307
5308 CFLAGS="$xorg_testset_save_CFLAGS"
5309
5310 eval supported=\$$cacheid
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5312 printf "%s\n" "$supported" >&6; }
5313 if test "$supported" = "yes" ; then
5314 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5315 found="yes"
5316 fi
5317 fi
5318
5319 if test $found = "no" ; then
5320 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5322 fi
5323
5324 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5326 fi
5327
5328 CFLAGS="$CFLAGS -Wformat"
5329
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5331 printf %s "checking if $CC supports -Wformat... " >&6; }
5332 cacheid=xorg_cv_cc_flag__Wformat
5333 if eval test \${$cacheid+y}
5334 then :
5335 printf %s "(cached) " >&6
5336 else $as_nop
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5339 int i;
5340 int
5341 main (void)
5342 {
5343
5344 ;
5345 return 0;
5346 }
5347 _ACEOF
5348 if ac_fn_c_try_link "$LINENO"
5349 then :
5350 eval $cacheid=yes
5351 else $as_nop
5352 eval $cacheid=no
5353 fi
5354 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5355 conftest$ac_exeext conftest.$ac_ext
5356 fi
5357
5358
5359 CFLAGS="$xorg_testset_save_CFLAGS"
5360
5361 eval supported=\$$cacheid
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5363 printf "%s\n" "$supported" >&6; }
5364 if test "$supported" = "yes" ; then
5365 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5366 found="yes"
5367 fi
5368 fi
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386 xorg_testset_save_CFLAGS="$CFLAGS"
5387
5388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5391 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5392 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5393 then :
5394 printf %s "(cached) " >&6
5395 else $as_nop
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5398 int i;
5399 _ACEOF
5400 if ac_fn_c_try_compile "$LINENO"
5401 then :
5402 xorg_cv_cc_flag_unknown_warning_option=yes
5403 else $as_nop
5404 xorg_cv_cc_flag_unknown_warning_option=no
5405 fi
5406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5407 fi
5408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5409 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5411 CFLAGS="$xorg_testset_save_CFLAGS"
5412 fi
5413
5414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5417 fi
5418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5420 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5421 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5422 then :
5423 printf %s "(cached) " >&6
5424 else $as_nop
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 int i;
5428 _ACEOF
5429 if ac_fn_c_try_compile "$LINENO"
5430 then :
5431 xorg_cv_cc_flag_unused_command_line_argument=yes
5432 else $as_nop
5433 xorg_cv_cc_flag_unused_command_line_argument=no
5434 fi
5435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5436 fi
5437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5438 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5440 CFLAGS="$xorg_testset_save_CFLAGS"
5441 fi
5442
5443 found="no"
5444
5445 if test $found = "no" ; then
5446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5448 fi
5449
5450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5452 fi
5453
5454 CFLAGS="$CFLAGS -Wstrict-prototypes"
5455
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5457 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5458 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5459 if eval test \${$cacheid+y}
5460 then :
5461 printf %s "(cached) " >&6
5462 else $as_nop
5463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5464 /* end confdefs.h. */
5465 int i;
5466 int
5467 main (void)
5468 {
5469
5470 ;
5471 return 0;
5472 }
5473 _ACEOF
5474 if ac_fn_c_try_link "$LINENO"
5475 then :
5476 eval $cacheid=yes
5477 else $as_nop
5478 eval $cacheid=no
5479 fi
5480 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5481 conftest$ac_exeext conftest.$ac_ext
5482 fi
5483
5484
5485 CFLAGS="$xorg_testset_save_CFLAGS"
5486
5487 eval supported=\$$cacheid
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5489 printf "%s\n" "$supported" >&6; }
5490 if test "$supported" = "yes" ; then
5491 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5492 found="yes"
5493 fi
5494 fi
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510 xorg_testset_save_CFLAGS="$CFLAGS"
5511
5512 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5515 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5516 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5517 then :
5518 printf %s "(cached) " >&6
5519 else $as_nop
5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521 /* end confdefs.h. */
5522 int i;
5523 _ACEOF
5524 if ac_fn_c_try_compile "$LINENO"
5525 then :
5526 xorg_cv_cc_flag_unknown_warning_option=yes
5527 else $as_nop
5528 xorg_cv_cc_flag_unknown_warning_option=no
5529 fi
5530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5531 fi
5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5533 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5535 CFLAGS="$xorg_testset_save_CFLAGS"
5536 fi
5537
5538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5541 fi
5542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5544 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5545 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5546 then :
5547 printf %s "(cached) " >&6
5548 else $as_nop
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 int i;
5552 _ACEOF
5553 if ac_fn_c_try_compile "$LINENO"
5554 then :
5555 xorg_cv_cc_flag_unused_command_line_argument=yes
5556 else $as_nop
5557 xorg_cv_cc_flag_unused_command_line_argument=no
5558 fi
5559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5560 fi
5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5562 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5564 CFLAGS="$xorg_testset_save_CFLAGS"
5565 fi
5566
5567 found="no"
5568
5569 if test $found = "no" ; then
5570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5572 fi
5573
5574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5576 fi
5577
5578 CFLAGS="$CFLAGS -Wmissing-prototypes"
5579
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5581 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5582 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5583 if eval test \${$cacheid+y}
5584 then :
5585 printf %s "(cached) " >&6
5586 else $as_nop
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 int i;
5590 int
5591 main (void)
5592 {
5593
5594 ;
5595 return 0;
5596 }
5597 _ACEOF
5598 if ac_fn_c_try_link "$LINENO"
5599 then :
5600 eval $cacheid=yes
5601 else $as_nop
5602 eval $cacheid=no
5603 fi
5604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5605 conftest$ac_exeext conftest.$ac_ext
5606 fi
5607
5608
5609 CFLAGS="$xorg_testset_save_CFLAGS"
5610
5611 eval supported=\$$cacheid
5612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5613 printf "%s\n" "$supported" >&6; }
5614 if test "$supported" = "yes" ; then
5615 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5616 found="yes"
5617 fi
5618 fi
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634 xorg_testset_save_CFLAGS="$CFLAGS"
5635
5636 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5639 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5640 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5641 then :
5642 printf %s "(cached) " >&6
5643 else $as_nop
5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645 /* end confdefs.h. */
5646 int i;
5647 _ACEOF
5648 if ac_fn_c_try_compile "$LINENO"
5649 then :
5650 xorg_cv_cc_flag_unknown_warning_option=yes
5651 else $as_nop
5652 xorg_cv_cc_flag_unknown_warning_option=no
5653 fi
5654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5655 fi
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5657 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5659 CFLAGS="$xorg_testset_save_CFLAGS"
5660 fi
5661
5662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5665 fi
5666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5668 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5669 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5670 then :
5671 printf %s "(cached) " >&6
5672 else $as_nop
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 int i;
5676 _ACEOF
5677 if ac_fn_c_try_compile "$LINENO"
5678 then :
5679 xorg_cv_cc_flag_unused_command_line_argument=yes
5680 else $as_nop
5681 xorg_cv_cc_flag_unused_command_line_argument=no
5682 fi
5683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5684 fi
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5686 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5688 CFLAGS="$xorg_testset_save_CFLAGS"
5689 fi
5690
5691 found="no"
5692
5693 if test $found = "no" ; then
5694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5696 fi
5697
5698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5700 fi
5701
5702 CFLAGS="$CFLAGS -Wnested-externs"
5703
5704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5705 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5706 cacheid=xorg_cv_cc_flag__Wnested_externs
5707 if eval test \${$cacheid+y}
5708 then :
5709 printf %s "(cached) " >&6
5710 else $as_nop
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 int i;
5714 int
5715 main (void)
5716 {
5717
5718 ;
5719 return 0;
5720 }
5721 _ACEOF
5722 if ac_fn_c_try_link "$LINENO"
5723 then :
5724 eval $cacheid=yes
5725 else $as_nop
5726 eval $cacheid=no
5727 fi
5728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5729 conftest$ac_exeext conftest.$ac_ext
5730 fi
5731
5732
5733 CFLAGS="$xorg_testset_save_CFLAGS"
5734
5735 eval supported=\$$cacheid
5736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5737 printf "%s\n" "$supported" >&6; }
5738 if test "$supported" = "yes" ; then
5739 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5740 found="yes"
5741 fi
5742 fi
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758 xorg_testset_save_CFLAGS="$CFLAGS"
5759
5760 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5763 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5764 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5765 then :
5766 printf %s "(cached) " >&6
5767 else $as_nop
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 int i;
5771 _ACEOF
5772 if ac_fn_c_try_compile "$LINENO"
5773 then :
5774 xorg_cv_cc_flag_unknown_warning_option=yes
5775 else $as_nop
5776 xorg_cv_cc_flag_unknown_warning_option=no
5777 fi
5778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5779 fi
5780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5781 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5783 CFLAGS="$xorg_testset_save_CFLAGS"
5784 fi
5785
5786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5789 fi
5790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5792 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5793 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5794 then :
5795 printf %s "(cached) " >&6
5796 else $as_nop
5797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5799 int i;
5800 _ACEOF
5801 if ac_fn_c_try_compile "$LINENO"
5802 then :
5803 xorg_cv_cc_flag_unused_command_line_argument=yes
5804 else $as_nop
5805 xorg_cv_cc_flag_unused_command_line_argument=no
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5808 fi
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5810 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5812 CFLAGS="$xorg_testset_save_CFLAGS"
5813 fi
5814
5815 found="no"
5816
5817 if test $found = "no" ; then
5818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5820 fi
5821
5822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5824 fi
5825
5826 CFLAGS="$CFLAGS -Wbad-function-cast"
5827
5828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5829 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5830 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5831 if eval test \${$cacheid+y}
5832 then :
5833 printf %s "(cached) " >&6
5834 else $as_nop
5835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5836 /* end confdefs.h. */
5837 int i;
5838 int
5839 main (void)
5840 {
5841
5842 ;
5843 return 0;
5844 }
5845 _ACEOF
5846 if ac_fn_c_try_link "$LINENO"
5847 then :
5848 eval $cacheid=yes
5849 else $as_nop
5850 eval $cacheid=no
5851 fi
5852 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5853 conftest$ac_exeext conftest.$ac_ext
5854 fi
5855
5856
5857 CFLAGS="$xorg_testset_save_CFLAGS"
5858
5859 eval supported=\$$cacheid
5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5861 printf "%s\n" "$supported" >&6; }
5862 if test "$supported" = "yes" ; then
5863 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5864 found="yes"
5865 fi
5866 fi
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882 xorg_testset_save_CFLAGS="$CFLAGS"
5883
5884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5887 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5888 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5889 then :
5890 printf %s "(cached) " >&6
5891 else $as_nop
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893 /* end confdefs.h. */
5894 int i;
5895 _ACEOF
5896 if ac_fn_c_try_compile "$LINENO"
5897 then :
5898 xorg_cv_cc_flag_unknown_warning_option=yes
5899 else $as_nop
5900 xorg_cv_cc_flag_unknown_warning_option=no
5901 fi
5902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5903 fi
5904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5905 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5907 CFLAGS="$xorg_testset_save_CFLAGS"
5908 fi
5909
5910 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5913 fi
5914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5916 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5917 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5918 then :
5919 printf %s "(cached) " >&6
5920 else $as_nop
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5923 int i;
5924 _ACEOF
5925 if ac_fn_c_try_compile "$LINENO"
5926 then :
5927 xorg_cv_cc_flag_unused_command_line_argument=yes
5928 else $as_nop
5929 xorg_cv_cc_flag_unused_command_line_argument=no
5930 fi
5931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5932 fi
5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5934 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5936 CFLAGS="$xorg_testset_save_CFLAGS"
5937 fi
5938
5939 found="no"
5940
5941 if test $found = "no" ; then
5942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5944 fi
5945
5946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5948 fi
5949
5950 CFLAGS="$CFLAGS -Wold-style-definition"
5951
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5953 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
5954 cacheid=xorg_cv_cc_flag__Wold_style_definition
5955 if eval test \${$cacheid+y}
5956 then :
5957 printf %s "(cached) " >&6
5958 else $as_nop
5959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961 int i;
5962 int
5963 main (void)
5964 {
5965
5966 ;
5967 return 0;
5968 }
5969 _ACEOF
5970 if ac_fn_c_try_link "$LINENO"
5971 then :
5972 eval $cacheid=yes
5973 else $as_nop
5974 eval $cacheid=no
5975 fi
5976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5977 conftest$ac_exeext conftest.$ac_ext
5978 fi
5979
5980
5981 CFLAGS="$xorg_testset_save_CFLAGS"
5982
5983 eval supported=\$$cacheid
5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5985 printf "%s\n" "$supported" >&6; }
5986 if test "$supported" = "yes" ; then
5987 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5988 found="yes"
5989 fi
5990 fi
5991
5992 if test $found = "no" ; then
5993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5995 fi
5996
5997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5999 fi
6000
6001 CFLAGS="$CFLAGS -fd"
6002
6003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6004 printf %s "checking if $CC supports -fd... " >&6; }
6005 cacheid=xorg_cv_cc_flag__fd
6006 if eval test \${$cacheid+y}
6007 then :
6008 printf %s "(cached) " >&6
6009 else $as_nop
6010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6011 /* end confdefs.h. */
6012 int i;
6013 int
6014 main (void)
6015 {
6016
6017 ;
6018 return 0;
6019 }
6020 _ACEOF
6021 if ac_fn_c_try_link "$LINENO"
6022 then :
6023 eval $cacheid=yes
6024 else $as_nop
6025 eval $cacheid=no
6026 fi
6027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6028 conftest$ac_exeext conftest.$ac_ext
6029 fi
6030
6031
6032 CFLAGS="$xorg_testset_save_CFLAGS"
6033
6034 eval supported=\$$cacheid
6035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6036 printf "%s\n" "$supported" >&6; }
6037 if test "$supported" = "yes" ; then
6038 BASE_CFLAGS="$BASE_CFLAGS -fd"
6039 found="yes"
6040 fi
6041 fi
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057 xorg_testset_save_CFLAGS="$CFLAGS"
6058
6059 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6062 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6063 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6064 then :
6065 printf %s "(cached) " >&6
6066 else $as_nop
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069 int i;
6070 _ACEOF
6071 if ac_fn_c_try_compile "$LINENO"
6072 then :
6073 xorg_cv_cc_flag_unknown_warning_option=yes
6074 else $as_nop
6075 xorg_cv_cc_flag_unknown_warning_option=no
6076 fi
6077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6078 fi
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6080 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6081 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6082 CFLAGS="$xorg_testset_save_CFLAGS"
6083 fi
6084
6085 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6088 fi
6089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6091 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6092 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6093 then :
6094 printf %s "(cached) " >&6
6095 else $as_nop
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097 /* end confdefs.h. */
6098 int i;
6099 _ACEOF
6100 if ac_fn_c_try_compile "$LINENO"
6101 then :
6102 xorg_cv_cc_flag_unused_command_line_argument=yes
6103 else $as_nop
6104 xorg_cv_cc_flag_unused_command_line_argument=no
6105 fi
6106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6107 fi
6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6109 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6110 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6111 CFLAGS="$xorg_testset_save_CFLAGS"
6112 fi
6113
6114 found="no"
6115
6116 if test $found = "no" ; then
6117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6119 fi
6120
6121 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6122 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6123 fi
6124
6125 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6126
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6128 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6129 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6130 if eval test \${$cacheid+y}
6131 then :
6132 printf %s "(cached) " >&6
6133 else $as_nop
6134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* end confdefs.h. */
6136 int i;
6137 int
6138 main (void)
6139 {
6140
6141 ;
6142 return 0;
6143 }
6144 _ACEOF
6145 if ac_fn_c_try_link "$LINENO"
6146 then :
6147 eval $cacheid=yes
6148 else $as_nop
6149 eval $cacheid=no
6150 fi
6151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6152 conftest$ac_exeext conftest.$ac_ext
6153 fi
6154
6155
6156 CFLAGS="$xorg_testset_save_CFLAGS"
6157
6158 eval supported=\$$cacheid
6159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6160 printf "%s\n" "$supported" >&6; }
6161 if test "$supported" = "yes" ; then
6162 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6163 found="yes"
6164 fi
6165 fi
6166
6167
6168
6169
6170
6171 # This chunk adds additional warnings that could catch undesired effects.
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185 xorg_testset_save_CFLAGS="$CFLAGS"
6186
6187 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6190 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6191 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6192 then :
6193 printf %s "(cached) " >&6
6194 else $as_nop
6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6196 /* end confdefs.h. */
6197 int i;
6198 _ACEOF
6199 if ac_fn_c_try_compile "$LINENO"
6200 then :
6201 xorg_cv_cc_flag_unknown_warning_option=yes
6202 else $as_nop
6203 xorg_cv_cc_flag_unknown_warning_option=no
6204 fi
6205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6206 fi
6207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6208 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6209 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6210 CFLAGS="$xorg_testset_save_CFLAGS"
6211 fi
6212
6213 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6216 fi
6217 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6219 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6220 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6221 then :
6222 printf %s "(cached) " >&6
6223 else $as_nop
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6226 int i;
6227 _ACEOF
6228 if ac_fn_c_try_compile "$LINENO"
6229 then :
6230 xorg_cv_cc_flag_unused_command_line_argument=yes
6231 else $as_nop
6232 xorg_cv_cc_flag_unused_command_line_argument=no
6233 fi
6234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6235 fi
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6237 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6239 CFLAGS="$xorg_testset_save_CFLAGS"
6240 fi
6241
6242 found="no"
6243
6244 if test $found = "no" ; then
6245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6247 fi
6248
6249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6251 fi
6252
6253 CFLAGS="$CFLAGS -Wunused"
6254
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6256 printf %s "checking if $CC supports -Wunused... " >&6; }
6257 cacheid=xorg_cv_cc_flag__Wunused
6258 if eval test \${$cacheid+y}
6259 then :
6260 printf %s "(cached) " >&6
6261 else $as_nop
6262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263 /* end confdefs.h. */
6264 int i;
6265 int
6266 main (void)
6267 {
6268
6269 ;
6270 return 0;
6271 }
6272 _ACEOF
6273 if ac_fn_c_try_link "$LINENO"
6274 then :
6275 eval $cacheid=yes
6276 else $as_nop
6277 eval $cacheid=no
6278 fi
6279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6280 conftest$ac_exeext conftest.$ac_ext
6281 fi
6282
6283
6284 CFLAGS="$xorg_testset_save_CFLAGS"
6285
6286 eval supported=\$$cacheid
6287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6288 printf "%s\n" "$supported" >&6; }
6289 if test "$supported" = "yes" ; then
6290 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6291 found="yes"
6292 fi
6293 fi
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309 xorg_testset_save_CFLAGS="$CFLAGS"
6310
6311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6314 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6315 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6316 then :
6317 printf %s "(cached) " >&6
6318 else $as_nop
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6321 int i;
6322 _ACEOF
6323 if ac_fn_c_try_compile "$LINENO"
6324 then :
6325 xorg_cv_cc_flag_unknown_warning_option=yes
6326 else $as_nop
6327 xorg_cv_cc_flag_unknown_warning_option=no
6328 fi
6329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6330 fi
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6332 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6333 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6334 CFLAGS="$xorg_testset_save_CFLAGS"
6335 fi
6336
6337 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6340 fi
6341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6343 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6344 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6345 then :
6346 printf %s "(cached) " >&6
6347 else $as_nop
6348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6349 /* end confdefs.h. */
6350 int i;
6351 _ACEOF
6352 if ac_fn_c_try_compile "$LINENO"
6353 then :
6354 xorg_cv_cc_flag_unused_command_line_argument=yes
6355 else $as_nop
6356 xorg_cv_cc_flag_unused_command_line_argument=no
6357 fi
6358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6359 fi
6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6361 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6362 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6363 CFLAGS="$xorg_testset_save_CFLAGS"
6364 fi
6365
6366 found="no"
6367
6368 if test $found = "no" ; then
6369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6371 fi
6372
6373 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6375 fi
6376
6377 CFLAGS="$CFLAGS -Wuninitialized"
6378
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6380 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6381 cacheid=xorg_cv_cc_flag__Wuninitialized
6382 if eval test \${$cacheid+y}
6383 then :
6384 printf %s "(cached) " >&6
6385 else $as_nop
6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6387 /* end confdefs.h. */
6388 int i;
6389 int
6390 main (void)
6391 {
6392
6393 ;
6394 return 0;
6395 }
6396 _ACEOF
6397 if ac_fn_c_try_link "$LINENO"
6398 then :
6399 eval $cacheid=yes
6400 else $as_nop
6401 eval $cacheid=no
6402 fi
6403 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6404 conftest$ac_exeext conftest.$ac_ext
6405 fi
6406
6407
6408 CFLAGS="$xorg_testset_save_CFLAGS"
6409
6410 eval supported=\$$cacheid
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6412 printf "%s\n" "$supported" >&6; }
6413 if test "$supported" = "yes" ; then
6414 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6415 found="yes"
6416 fi
6417 fi
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433 xorg_testset_save_CFLAGS="$CFLAGS"
6434
6435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6438 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6439 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6440 then :
6441 printf %s "(cached) " >&6
6442 else $as_nop
6443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6444 /* end confdefs.h. */
6445 int i;
6446 _ACEOF
6447 if ac_fn_c_try_compile "$LINENO"
6448 then :
6449 xorg_cv_cc_flag_unknown_warning_option=yes
6450 else $as_nop
6451 xorg_cv_cc_flag_unknown_warning_option=no
6452 fi
6453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6454 fi
6455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6456 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6457 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6458 CFLAGS="$xorg_testset_save_CFLAGS"
6459 fi
6460
6461 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6464 fi
6465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6467 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6468 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6469 then :
6470 printf %s "(cached) " >&6
6471 else $as_nop
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474 int i;
6475 _ACEOF
6476 if ac_fn_c_try_compile "$LINENO"
6477 then :
6478 xorg_cv_cc_flag_unused_command_line_argument=yes
6479 else $as_nop
6480 xorg_cv_cc_flag_unused_command_line_argument=no
6481 fi
6482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6483 fi
6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6485 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6486 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6487 CFLAGS="$xorg_testset_save_CFLAGS"
6488 fi
6489
6490 found="no"
6491
6492 if test $found = "no" ; then
6493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6495 fi
6496
6497 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6499 fi
6500
6501 CFLAGS="$CFLAGS -Wshadow"
6502
6503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6504 printf %s "checking if $CC supports -Wshadow... " >&6; }
6505 cacheid=xorg_cv_cc_flag__Wshadow
6506 if eval test \${$cacheid+y}
6507 then :
6508 printf %s "(cached) " >&6
6509 else $as_nop
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511 /* end confdefs.h. */
6512 int i;
6513 int
6514 main (void)
6515 {
6516
6517 ;
6518 return 0;
6519 }
6520 _ACEOF
6521 if ac_fn_c_try_link "$LINENO"
6522 then :
6523 eval $cacheid=yes
6524 else $as_nop
6525 eval $cacheid=no
6526 fi
6527 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6528 conftest$ac_exeext conftest.$ac_ext
6529 fi
6530
6531
6532 CFLAGS="$xorg_testset_save_CFLAGS"
6533
6534 eval supported=\$$cacheid
6535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6536 printf "%s\n" "$supported" >&6; }
6537 if test "$supported" = "yes" ; then
6538 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6539 found="yes"
6540 fi
6541 fi
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557 xorg_testset_save_CFLAGS="$CFLAGS"
6558
6559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6562 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6563 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6564 then :
6565 printf %s "(cached) " >&6
6566 else $as_nop
6567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6569 int i;
6570 _ACEOF
6571 if ac_fn_c_try_compile "$LINENO"
6572 then :
6573 xorg_cv_cc_flag_unknown_warning_option=yes
6574 else $as_nop
6575 xorg_cv_cc_flag_unknown_warning_option=no
6576 fi
6577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6578 fi
6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6580 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6581 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6582 CFLAGS="$xorg_testset_save_CFLAGS"
6583 fi
6584
6585 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6588 fi
6589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6591 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6592 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6593 then :
6594 printf %s "(cached) " >&6
6595 else $as_nop
6596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6597 /* end confdefs.h. */
6598 int i;
6599 _ACEOF
6600 if ac_fn_c_try_compile "$LINENO"
6601 then :
6602 xorg_cv_cc_flag_unused_command_line_argument=yes
6603 else $as_nop
6604 xorg_cv_cc_flag_unused_command_line_argument=no
6605 fi
6606 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6607 fi
6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6609 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6610 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6611 CFLAGS="$xorg_testset_save_CFLAGS"
6612 fi
6613
6614 found="no"
6615
6616 if test $found = "no" ; then
6617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6619 fi
6620
6621 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6623 fi
6624
6625 CFLAGS="$CFLAGS -Wmissing-noreturn"
6626
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6628 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6629 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6630 if eval test \${$cacheid+y}
6631 then :
6632 printf %s "(cached) " >&6
6633 else $as_nop
6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635 /* end confdefs.h. */
6636 int i;
6637 int
6638 main (void)
6639 {
6640
6641 ;
6642 return 0;
6643 }
6644 _ACEOF
6645 if ac_fn_c_try_link "$LINENO"
6646 then :
6647 eval $cacheid=yes
6648 else $as_nop
6649 eval $cacheid=no
6650 fi
6651 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6652 conftest$ac_exeext conftest.$ac_ext
6653 fi
6654
6655
6656 CFLAGS="$xorg_testset_save_CFLAGS"
6657
6658 eval supported=\$$cacheid
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6660 printf "%s\n" "$supported" >&6; }
6661 if test "$supported" = "yes" ; then
6662 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6663 found="yes"
6664 fi
6665 fi
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681 xorg_testset_save_CFLAGS="$CFLAGS"
6682
6683 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6686 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6687 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6688 then :
6689 printf %s "(cached) " >&6
6690 else $as_nop
6691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6692 /* end confdefs.h. */
6693 int i;
6694 _ACEOF
6695 if ac_fn_c_try_compile "$LINENO"
6696 then :
6697 xorg_cv_cc_flag_unknown_warning_option=yes
6698 else $as_nop
6699 xorg_cv_cc_flag_unknown_warning_option=no
6700 fi
6701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6702 fi
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6704 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6706 CFLAGS="$xorg_testset_save_CFLAGS"
6707 fi
6708
6709 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6712 fi
6713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6715 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6716 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6717 then :
6718 printf %s "(cached) " >&6
6719 else $as_nop
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6722 int i;
6723 _ACEOF
6724 if ac_fn_c_try_compile "$LINENO"
6725 then :
6726 xorg_cv_cc_flag_unused_command_line_argument=yes
6727 else $as_nop
6728 xorg_cv_cc_flag_unused_command_line_argument=no
6729 fi
6730 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6731 fi
6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6733 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6735 CFLAGS="$xorg_testset_save_CFLAGS"
6736 fi
6737
6738 found="no"
6739
6740 if test $found = "no" ; then
6741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6743 fi
6744
6745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6747 fi
6748
6749 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6750
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6752 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6753 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6754 if eval test \${$cacheid+y}
6755 then :
6756 printf %s "(cached) " >&6
6757 else $as_nop
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6760 int i;
6761 int
6762 main (void)
6763 {
6764
6765 ;
6766 return 0;
6767 }
6768 _ACEOF
6769 if ac_fn_c_try_link "$LINENO"
6770 then :
6771 eval $cacheid=yes
6772 else $as_nop
6773 eval $cacheid=no
6774 fi
6775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6776 conftest$ac_exeext conftest.$ac_ext
6777 fi
6778
6779
6780 CFLAGS="$xorg_testset_save_CFLAGS"
6781
6782 eval supported=\$$cacheid
6783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6784 printf "%s\n" "$supported" >&6; }
6785 if test "$supported" = "yes" ; then
6786 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6787 found="yes"
6788 fi
6789 fi
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805 xorg_testset_save_CFLAGS="$CFLAGS"
6806
6807 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6810 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6811 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6812 then :
6813 printf %s "(cached) " >&6
6814 else $as_nop
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816 /* end confdefs.h. */
6817 int i;
6818 _ACEOF
6819 if ac_fn_c_try_compile "$LINENO"
6820 then :
6821 xorg_cv_cc_flag_unknown_warning_option=yes
6822 else $as_nop
6823 xorg_cv_cc_flag_unknown_warning_option=no
6824 fi
6825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6826 fi
6827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6828 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6829 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6830 CFLAGS="$xorg_testset_save_CFLAGS"
6831 fi
6832
6833 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6836 fi
6837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6839 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6840 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6841 then :
6842 printf %s "(cached) " >&6
6843 else $as_nop
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6846 int i;
6847 _ACEOF
6848 if ac_fn_c_try_compile "$LINENO"
6849 then :
6850 xorg_cv_cc_flag_unused_command_line_argument=yes
6851 else $as_nop
6852 xorg_cv_cc_flag_unused_command_line_argument=no
6853 fi
6854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6855 fi
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6857 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6859 CFLAGS="$xorg_testset_save_CFLAGS"
6860 fi
6861
6862 found="no"
6863
6864 if test $found = "no" ; then
6865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6867 fi
6868
6869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6871 fi
6872
6873 CFLAGS="$CFLAGS -Wredundant-decls"
6874
6875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6876 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6877 cacheid=xorg_cv_cc_flag__Wredundant_decls
6878 if eval test \${$cacheid+y}
6879 then :
6880 printf %s "(cached) " >&6
6881 else $as_nop
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6884 int i;
6885 int
6886 main (void)
6887 {
6888
6889 ;
6890 return 0;
6891 }
6892 _ACEOF
6893 if ac_fn_c_try_link "$LINENO"
6894 then :
6895 eval $cacheid=yes
6896 else $as_nop
6897 eval $cacheid=no
6898 fi
6899 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6900 conftest$ac_exeext conftest.$ac_ext
6901 fi
6902
6903
6904 CFLAGS="$xorg_testset_save_CFLAGS"
6905
6906 eval supported=\$$cacheid
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6908 printf "%s\n" "$supported" >&6; }
6909 if test "$supported" = "yes" ; then
6910 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6911 found="yes"
6912 fi
6913 fi
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929 xorg_testset_save_CFLAGS="$CFLAGS"
6930
6931 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6932 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6934 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6935 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6936 then :
6937 printf %s "(cached) " >&6
6938 else $as_nop
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6941 int i;
6942 _ACEOF
6943 if ac_fn_c_try_compile "$LINENO"
6944 then :
6945 xorg_cv_cc_flag_unknown_warning_option=yes
6946 else $as_nop
6947 xorg_cv_cc_flag_unknown_warning_option=no
6948 fi
6949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6950 fi
6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6952 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6954 CFLAGS="$xorg_testset_save_CFLAGS"
6955 fi
6956
6957 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6960 fi
6961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6963 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6964 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6965 then :
6966 printf %s "(cached) " >&6
6967 else $as_nop
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6970 int i;
6971 _ACEOF
6972 if ac_fn_c_try_compile "$LINENO"
6973 then :
6974 xorg_cv_cc_flag_unused_command_line_argument=yes
6975 else $as_nop
6976 xorg_cv_cc_flag_unused_command_line_argument=no
6977 fi
6978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6979 fi
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6981 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6983 CFLAGS="$xorg_testset_save_CFLAGS"
6984 fi
6985
6986 found="no"
6987
6988 if test $found = "no" ; then
6989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6991 fi
6992
6993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6995 fi
6996
6997 CFLAGS="$CFLAGS -Wlogical-op"
6998
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7000 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7001 cacheid=xorg_cv_cc_flag__Wlogical_op
7002 if eval test \${$cacheid+y}
7003 then :
7004 printf %s "(cached) " >&6
7005 else $as_nop
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008 int i;
7009 int
7010 main (void)
7011 {
7012
7013 ;
7014 return 0;
7015 }
7016 _ACEOF
7017 if ac_fn_c_try_link "$LINENO"
7018 then :
7019 eval $cacheid=yes
7020 else $as_nop
7021 eval $cacheid=no
7022 fi
7023 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7024 conftest$ac_exeext conftest.$ac_ext
7025 fi
7026
7027
7028 CFLAGS="$xorg_testset_save_CFLAGS"
7029
7030 eval supported=\$$cacheid
7031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7032 printf "%s\n" "$supported" >&6; }
7033 if test "$supported" = "yes" ; then
7034 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7035 found="yes"
7036 fi
7037 fi
7038
7039
7040
7041 # These are currently disabled because they are noisy. They will be enabled
7042 # in the future once the codebase is sufficiently modernized to silence
7043 # them. For now, I don't want them to drown out the other warnings.
7044 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7045 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7046 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7047
7048 # Turn some warnings into errors, so we don't accidently get successful builds
7049 # when there are problems that should be fixed.
7050
7051 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065 xorg_testset_save_CFLAGS="$CFLAGS"
7066
7067 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7070 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7071 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7072 then :
7073 printf %s "(cached) " >&6
7074 else $as_nop
7075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7076 /* end confdefs.h. */
7077 int i;
7078 _ACEOF
7079 if ac_fn_c_try_compile "$LINENO"
7080 then :
7081 xorg_cv_cc_flag_unknown_warning_option=yes
7082 else $as_nop
7083 xorg_cv_cc_flag_unknown_warning_option=no
7084 fi
7085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7086 fi
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7088 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7089 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7090 CFLAGS="$xorg_testset_save_CFLAGS"
7091 fi
7092
7093 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7096 fi
7097 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7099 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7100 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7101 then :
7102 printf %s "(cached) " >&6
7103 else $as_nop
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7106 int i;
7107 _ACEOF
7108 if ac_fn_c_try_compile "$LINENO"
7109 then :
7110 xorg_cv_cc_flag_unused_command_line_argument=yes
7111 else $as_nop
7112 xorg_cv_cc_flag_unused_command_line_argument=no
7113 fi
7114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7115 fi
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7117 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7118 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7119 CFLAGS="$xorg_testset_save_CFLAGS"
7120 fi
7121
7122 found="no"
7123
7124 if test $found = "no" ; then
7125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7127 fi
7128
7129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7131 fi
7132
7133 CFLAGS="$CFLAGS -Werror=implicit"
7134
7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7136 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7137 cacheid=xorg_cv_cc_flag__Werror_implicit
7138 if eval test \${$cacheid+y}
7139 then :
7140 printf %s "(cached) " >&6
7141 else $as_nop
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7144 int i;
7145 int
7146 main (void)
7147 {
7148
7149 ;
7150 return 0;
7151 }
7152 _ACEOF
7153 if ac_fn_c_try_link "$LINENO"
7154 then :
7155 eval $cacheid=yes
7156 else $as_nop
7157 eval $cacheid=no
7158 fi
7159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7160 conftest$ac_exeext conftest.$ac_ext
7161 fi
7162
7163
7164 CFLAGS="$xorg_testset_save_CFLAGS"
7165
7166 eval supported=\$$cacheid
7167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7168 printf "%s\n" "$supported" >&6; }
7169 if test "$supported" = "yes" ; then
7170 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7171 found="yes"
7172 fi
7173 fi
7174
7175 if test $found = "no" ; then
7176 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7177 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7178 fi
7179
7180 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7181 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7182 fi
7183
7184 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7185
7186 { 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
7187 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7188 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7189 if eval test \${$cacheid+y}
7190 then :
7191 printf %s "(cached) " >&6
7192 else $as_nop
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 int i;
7196 int
7197 main (void)
7198 {
7199
7200 ;
7201 return 0;
7202 }
7203 _ACEOF
7204 if ac_fn_c_try_link "$LINENO"
7205 then :
7206 eval $cacheid=yes
7207 else $as_nop
7208 eval $cacheid=no
7209 fi
7210 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7211 conftest$ac_exeext conftest.$ac_ext
7212 fi
7213
7214
7215 CFLAGS="$xorg_testset_save_CFLAGS"
7216
7217 eval supported=\$$cacheid
7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7219 printf "%s\n" "$supported" >&6; }
7220 if test "$supported" = "yes" ; then
7221 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7222 found="yes"
7223 fi
7224 fi
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240 xorg_testset_save_CFLAGS="$CFLAGS"
7241
7242 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7245 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7246 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7247 then :
7248 printf %s "(cached) " >&6
7249 else $as_nop
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251 /* end confdefs.h. */
7252 int i;
7253 _ACEOF
7254 if ac_fn_c_try_compile "$LINENO"
7255 then :
7256 xorg_cv_cc_flag_unknown_warning_option=yes
7257 else $as_nop
7258 xorg_cv_cc_flag_unknown_warning_option=no
7259 fi
7260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7261 fi
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7263 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7265 CFLAGS="$xorg_testset_save_CFLAGS"
7266 fi
7267
7268 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7271 fi
7272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7274 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7275 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7276 then :
7277 printf %s "(cached) " >&6
7278 else $as_nop
7279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7281 int i;
7282 _ACEOF
7283 if ac_fn_c_try_compile "$LINENO"
7284 then :
7285 xorg_cv_cc_flag_unused_command_line_argument=yes
7286 else $as_nop
7287 xorg_cv_cc_flag_unused_command_line_argument=no
7288 fi
7289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7290 fi
7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7292 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7293 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7294 CFLAGS="$xorg_testset_save_CFLAGS"
7295 fi
7296
7297 found="no"
7298
7299 if test $found = "no" ; then
7300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7302 fi
7303
7304 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7306 fi
7307
7308 CFLAGS="$CFLAGS -Werror=nonnull"
7309
7310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7311 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7312 cacheid=xorg_cv_cc_flag__Werror_nonnull
7313 if eval test \${$cacheid+y}
7314 then :
7315 printf %s "(cached) " >&6
7316 else $as_nop
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7319 int i;
7320 int
7321 main (void)
7322 {
7323
7324 ;
7325 return 0;
7326 }
7327 _ACEOF
7328 if ac_fn_c_try_link "$LINENO"
7329 then :
7330 eval $cacheid=yes
7331 else $as_nop
7332 eval $cacheid=no
7333 fi
7334 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7335 conftest$ac_exeext conftest.$ac_ext
7336 fi
7337
7338
7339 CFLAGS="$xorg_testset_save_CFLAGS"
7340
7341 eval supported=\$$cacheid
7342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7343 printf "%s\n" "$supported" >&6; }
7344 if test "$supported" = "yes" ; then
7345 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7346 found="yes"
7347 fi
7348 fi
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364 xorg_testset_save_CFLAGS="$CFLAGS"
7365
7366 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7369 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7370 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7371 then :
7372 printf %s "(cached) " >&6
7373 else $as_nop
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7376 int i;
7377 _ACEOF
7378 if ac_fn_c_try_compile "$LINENO"
7379 then :
7380 xorg_cv_cc_flag_unknown_warning_option=yes
7381 else $as_nop
7382 xorg_cv_cc_flag_unknown_warning_option=no
7383 fi
7384 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7385 fi
7386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7387 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7389 CFLAGS="$xorg_testset_save_CFLAGS"
7390 fi
7391
7392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7395 fi
7396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7398 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7399 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7400 then :
7401 printf %s "(cached) " >&6
7402 else $as_nop
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7405 int i;
7406 _ACEOF
7407 if ac_fn_c_try_compile "$LINENO"
7408 then :
7409 xorg_cv_cc_flag_unused_command_line_argument=yes
7410 else $as_nop
7411 xorg_cv_cc_flag_unused_command_line_argument=no
7412 fi
7413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7414 fi
7415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7416 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7418 CFLAGS="$xorg_testset_save_CFLAGS"
7419 fi
7420
7421 found="no"
7422
7423 if test $found = "no" ; then
7424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7426 fi
7427
7428 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7430 fi
7431
7432 CFLAGS="$CFLAGS -Werror=init-self"
7433
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7435 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7436 cacheid=xorg_cv_cc_flag__Werror_init_self
7437 if eval test \${$cacheid+y}
7438 then :
7439 printf %s "(cached) " >&6
7440 else $as_nop
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7443 int i;
7444 int
7445 main (void)
7446 {
7447
7448 ;
7449 return 0;
7450 }
7451 _ACEOF
7452 if ac_fn_c_try_link "$LINENO"
7453 then :
7454 eval $cacheid=yes
7455 else $as_nop
7456 eval $cacheid=no
7457 fi
7458 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7459 conftest$ac_exeext conftest.$ac_ext
7460 fi
7461
7462
7463 CFLAGS="$xorg_testset_save_CFLAGS"
7464
7465 eval supported=\$$cacheid
7466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7467 printf "%s\n" "$supported" >&6; }
7468 if test "$supported" = "yes" ; then
7469 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7470 found="yes"
7471 fi
7472 fi
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488 xorg_testset_save_CFLAGS="$CFLAGS"
7489
7490 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7493 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7494 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7495 then :
7496 printf %s "(cached) " >&6
7497 else $as_nop
7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7500 int i;
7501 _ACEOF
7502 if ac_fn_c_try_compile "$LINENO"
7503 then :
7504 xorg_cv_cc_flag_unknown_warning_option=yes
7505 else $as_nop
7506 xorg_cv_cc_flag_unknown_warning_option=no
7507 fi
7508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7509 fi
7510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7511 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7512 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7513 CFLAGS="$xorg_testset_save_CFLAGS"
7514 fi
7515
7516 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7517 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7518 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7519 fi
7520 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7522 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7523 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7524 then :
7525 printf %s "(cached) " >&6
7526 else $as_nop
7527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7528 /* end confdefs.h. */
7529 int i;
7530 _ACEOF
7531 if ac_fn_c_try_compile "$LINENO"
7532 then :
7533 xorg_cv_cc_flag_unused_command_line_argument=yes
7534 else $as_nop
7535 xorg_cv_cc_flag_unused_command_line_argument=no
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7538 fi
7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7540 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7541 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7542 CFLAGS="$xorg_testset_save_CFLAGS"
7543 fi
7544
7545 found="no"
7546
7547 if test $found = "no" ; then
7548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7550 fi
7551
7552 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7554 fi
7555
7556 CFLAGS="$CFLAGS -Werror=main"
7557
7558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7559 printf %s "checking if $CC supports -Werror=main... " >&6; }
7560 cacheid=xorg_cv_cc_flag__Werror_main
7561 if eval test \${$cacheid+y}
7562 then :
7563 printf %s "(cached) " >&6
7564 else $as_nop
7565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h. */
7567 int i;
7568 int
7569 main (void)
7570 {
7571
7572 ;
7573 return 0;
7574 }
7575 _ACEOF
7576 if ac_fn_c_try_link "$LINENO"
7577 then :
7578 eval $cacheid=yes
7579 else $as_nop
7580 eval $cacheid=no
7581 fi
7582 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7583 conftest$ac_exeext conftest.$ac_ext
7584 fi
7585
7586
7587 CFLAGS="$xorg_testset_save_CFLAGS"
7588
7589 eval supported=\$$cacheid
7590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7591 printf "%s\n" "$supported" >&6; }
7592 if test "$supported" = "yes" ; then
7593 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7594 found="yes"
7595 fi
7596 fi
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612 xorg_testset_save_CFLAGS="$CFLAGS"
7613
7614 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7617 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7618 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7619 then :
7620 printf %s "(cached) " >&6
7621 else $as_nop
7622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7623 /* end confdefs.h. */
7624 int i;
7625 _ACEOF
7626 if ac_fn_c_try_compile "$LINENO"
7627 then :
7628 xorg_cv_cc_flag_unknown_warning_option=yes
7629 else $as_nop
7630 xorg_cv_cc_flag_unknown_warning_option=no
7631 fi
7632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7633 fi
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7635 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7636 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7637 CFLAGS="$xorg_testset_save_CFLAGS"
7638 fi
7639
7640 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7641 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7643 fi
7644 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7646 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7647 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7648 then :
7649 printf %s "(cached) " >&6
7650 else $as_nop
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7653 int i;
7654 _ACEOF
7655 if ac_fn_c_try_compile "$LINENO"
7656 then :
7657 xorg_cv_cc_flag_unused_command_line_argument=yes
7658 else $as_nop
7659 xorg_cv_cc_flag_unused_command_line_argument=no
7660 fi
7661 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7662 fi
7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7664 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7665 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7666 CFLAGS="$xorg_testset_save_CFLAGS"
7667 fi
7668
7669 found="no"
7670
7671 if test $found = "no" ; then
7672 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7674 fi
7675
7676 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7677 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7678 fi
7679
7680 CFLAGS="$CFLAGS -Werror=missing-braces"
7681
7682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7683 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7684 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7685 if eval test \${$cacheid+y}
7686 then :
7687 printf %s "(cached) " >&6
7688 else $as_nop
7689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7690 /* end confdefs.h. */
7691 int i;
7692 int
7693 main (void)
7694 {
7695
7696 ;
7697 return 0;
7698 }
7699 _ACEOF
7700 if ac_fn_c_try_link "$LINENO"
7701 then :
7702 eval $cacheid=yes
7703 else $as_nop
7704 eval $cacheid=no
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7707 conftest$ac_exeext conftest.$ac_ext
7708 fi
7709
7710
7711 CFLAGS="$xorg_testset_save_CFLAGS"
7712
7713 eval supported=\$$cacheid
7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7715 printf "%s\n" "$supported" >&6; }
7716 if test "$supported" = "yes" ; then
7717 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7718 found="yes"
7719 fi
7720 fi
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736 xorg_testset_save_CFLAGS="$CFLAGS"
7737
7738 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7741 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7742 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7743 then :
7744 printf %s "(cached) " >&6
7745 else $as_nop
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 int i;
7749 _ACEOF
7750 if ac_fn_c_try_compile "$LINENO"
7751 then :
7752 xorg_cv_cc_flag_unknown_warning_option=yes
7753 else $as_nop
7754 xorg_cv_cc_flag_unknown_warning_option=no
7755 fi
7756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7757 fi
7758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7759 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7760 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7761 CFLAGS="$xorg_testset_save_CFLAGS"
7762 fi
7763
7764 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7765 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7766 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7767 fi
7768 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7770 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7771 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7772 then :
7773 printf %s "(cached) " >&6
7774 else $as_nop
7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7777 int i;
7778 _ACEOF
7779 if ac_fn_c_try_compile "$LINENO"
7780 then :
7781 xorg_cv_cc_flag_unused_command_line_argument=yes
7782 else $as_nop
7783 xorg_cv_cc_flag_unused_command_line_argument=no
7784 fi
7785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7786 fi
7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7788 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7789 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7790 CFLAGS="$xorg_testset_save_CFLAGS"
7791 fi
7792
7793 found="no"
7794
7795 if test $found = "no" ; then
7796 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7797 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7798 fi
7799
7800 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7802 fi
7803
7804 CFLAGS="$CFLAGS -Werror=sequence-point"
7805
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7807 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7808 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7809 if eval test \${$cacheid+y}
7810 then :
7811 printf %s "(cached) " >&6
7812 else $as_nop
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815 int i;
7816 int
7817 main (void)
7818 {
7819
7820 ;
7821 return 0;
7822 }
7823 _ACEOF
7824 if ac_fn_c_try_link "$LINENO"
7825 then :
7826 eval $cacheid=yes
7827 else $as_nop
7828 eval $cacheid=no
7829 fi
7830 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7831 conftest$ac_exeext conftest.$ac_ext
7832 fi
7833
7834
7835 CFLAGS="$xorg_testset_save_CFLAGS"
7836
7837 eval supported=\$$cacheid
7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7839 printf "%s\n" "$supported" >&6; }
7840 if test "$supported" = "yes" ; then
7841 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7842 found="yes"
7843 fi
7844 fi
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860 xorg_testset_save_CFLAGS="$CFLAGS"
7861
7862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7865 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7866 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7867 then :
7868 printf %s "(cached) " >&6
7869 else $as_nop
7870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 int i;
7873 _ACEOF
7874 if ac_fn_c_try_compile "$LINENO"
7875 then :
7876 xorg_cv_cc_flag_unknown_warning_option=yes
7877 else $as_nop
7878 xorg_cv_cc_flag_unknown_warning_option=no
7879 fi
7880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7881 fi
7882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7883 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7885 CFLAGS="$xorg_testset_save_CFLAGS"
7886 fi
7887
7888 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7891 fi
7892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7894 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7895 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7896 then :
7897 printf %s "(cached) " >&6
7898 else $as_nop
7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7900 /* end confdefs.h. */
7901 int i;
7902 _ACEOF
7903 if ac_fn_c_try_compile "$LINENO"
7904 then :
7905 xorg_cv_cc_flag_unused_command_line_argument=yes
7906 else $as_nop
7907 xorg_cv_cc_flag_unused_command_line_argument=no
7908 fi
7909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7910 fi
7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7912 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7913 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7914 CFLAGS="$xorg_testset_save_CFLAGS"
7915 fi
7916
7917 found="no"
7918
7919 if test $found = "no" ; then
7920 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7922 fi
7923
7924 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7926 fi
7927
7928 CFLAGS="$CFLAGS -Werror=return-type"
7929
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7931 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7932 cacheid=xorg_cv_cc_flag__Werror_return_type
7933 if eval test \${$cacheid+y}
7934 then :
7935 printf %s "(cached) " >&6
7936 else $as_nop
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7939 int i;
7940 int
7941 main (void)
7942 {
7943
7944 ;
7945 return 0;
7946 }
7947 _ACEOF
7948 if ac_fn_c_try_link "$LINENO"
7949 then :
7950 eval $cacheid=yes
7951 else $as_nop
7952 eval $cacheid=no
7953 fi
7954 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7955 conftest$ac_exeext conftest.$ac_ext
7956 fi
7957
7958
7959 CFLAGS="$xorg_testset_save_CFLAGS"
7960
7961 eval supported=\$$cacheid
7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7963 printf "%s\n" "$supported" >&6; }
7964 if test "$supported" = "yes" ; then
7965 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7966 found="yes"
7967 fi
7968 fi
7969
7970 if test $found = "no" ; then
7971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7973 fi
7974
7975 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7977 fi
7978
7979 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7980
7981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7982 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7983 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7984 if eval test \${$cacheid+y}
7985 then :
7986 printf %s "(cached) " >&6
7987 else $as_nop
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7990 int i;
7991 int
7992 main (void)
7993 {
7994
7995 ;
7996 return 0;
7997 }
7998 _ACEOF
7999 if ac_fn_c_try_link "$LINENO"
8000 then :
8001 eval $cacheid=yes
8002 else $as_nop
8003 eval $cacheid=no
8004 fi
8005 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8006 conftest$ac_exeext conftest.$ac_ext
8007 fi
8008
8009
8010 CFLAGS="$xorg_testset_save_CFLAGS"
8011
8012 eval supported=\$$cacheid
8013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8014 printf "%s\n" "$supported" >&6; }
8015 if test "$supported" = "yes" ; then
8016 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8017 found="yes"
8018 fi
8019 fi
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035 xorg_testset_save_CFLAGS="$CFLAGS"
8036
8037 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8040 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8041 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8042 then :
8043 printf %s "(cached) " >&6
8044 else $as_nop
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8047 int i;
8048 _ACEOF
8049 if ac_fn_c_try_compile "$LINENO"
8050 then :
8051 xorg_cv_cc_flag_unknown_warning_option=yes
8052 else $as_nop
8053 xorg_cv_cc_flag_unknown_warning_option=no
8054 fi
8055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8056 fi
8057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8058 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8059 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8060 CFLAGS="$xorg_testset_save_CFLAGS"
8061 fi
8062
8063 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8064 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8066 fi
8067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8069 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8070 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8071 then :
8072 printf %s "(cached) " >&6
8073 else $as_nop
8074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075 /* end confdefs.h. */
8076 int i;
8077 _ACEOF
8078 if ac_fn_c_try_compile "$LINENO"
8079 then :
8080 xorg_cv_cc_flag_unused_command_line_argument=yes
8081 else $as_nop
8082 xorg_cv_cc_flag_unused_command_line_argument=no
8083 fi
8084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8085 fi
8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8087 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8088 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8089 CFLAGS="$xorg_testset_save_CFLAGS"
8090 fi
8091
8092 found="no"
8093
8094 if test $found = "no" ; then
8095 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8097 fi
8098
8099 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8100 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8101 fi
8102
8103 CFLAGS="$CFLAGS -Werror=trigraphs"
8104
8105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8106 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8107 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8108 if eval test \${$cacheid+y}
8109 then :
8110 printf %s "(cached) " >&6
8111 else $as_nop
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8114 int i;
8115 int
8116 main (void)
8117 {
8118
8119 ;
8120 return 0;
8121 }
8122 _ACEOF
8123 if ac_fn_c_try_link "$LINENO"
8124 then :
8125 eval $cacheid=yes
8126 else $as_nop
8127 eval $cacheid=no
8128 fi
8129 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8130 conftest$ac_exeext conftest.$ac_ext
8131 fi
8132
8133
8134 CFLAGS="$xorg_testset_save_CFLAGS"
8135
8136 eval supported=\$$cacheid
8137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8138 printf "%s\n" "$supported" >&6; }
8139 if test "$supported" = "yes" ; then
8140 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8141 found="yes"
8142 fi
8143 fi
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159 xorg_testset_save_CFLAGS="$CFLAGS"
8160
8161 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8164 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8165 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8166 then :
8167 printf %s "(cached) " >&6
8168 else $as_nop
8169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8170 /* end confdefs.h. */
8171 int i;
8172 _ACEOF
8173 if ac_fn_c_try_compile "$LINENO"
8174 then :
8175 xorg_cv_cc_flag_unknown_warning_option=yes
8176 else $as_nop
8177 xorg_cv_cc_flag_unknown_warning_option=no
8178 fi
8179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8180 fi
8181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8182 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8183 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8184 CFLAGS="$xorg_testset_save_CFLAGS"
8185 fi
8186
8187 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8188 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8190 fi
8191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8193 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8194 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8195 then :
8196 printf %s "(cached) " >&6
8197 else $as_nop
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 int i;
8201 _ACEOF
8202 if ac_fn_c_try_compile "$LINENO"
8203 then :
8204 xorg_cv_cc_flag_unused_command_line_argument=yes
8205 else $as_nop
8206 xorg_cv_cc_flag_unused_command_line_argument=no
8207 fi
8208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8209 fi
8210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8211 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8213 CFLAGS="$xorg_testset_save_CFLAGS"
8214 fi
8215
8216 found="no"
8217
8218 if test $found = "no" ; then
8219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8221 fi
8222
8223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8225 fi
8226
8227 CFLAGS="$CFLAGS -Werror=array-bounds"
8228
8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8230 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8231 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8232 if eval test \${$cacheid+y}
8233 then :
8234 printf %s "(cached) " >&6
8235 else $as_nop
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237 /* end confdefs.h. */
8238 int i;
8239 int
8240 main (void)
8241 {
8242
8243 ;
8244 return 0;
8245 }
8246 _ACEOF
8247 if ac_fn_c_try_link "$LINENO"
8248 then :
8249 eval $cacheid=yes
8250 else $as_nop
8251 eval $cacheid=no
8252 fi
8253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8254 conftest$ac_exeext conftest.$ac_ext
8255 fi
8256
8257
8258 CFLAGS="$xorg_testset_save_CFLAGS"
8259
8260 eval supported=\$$cacheid
8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8262 printf "%s\n" "$supported" >&6; }
8263 if test "$supported" = "yes" ; then
8264 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8265 found="yes"
8266 fi
8267 fi
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283 xorg_testset_save_CFLAGS="$CFLAGS"
8284
8285 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8286 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8288 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8289 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8290 then :
8291 printf %s "(cached) " >&6
8292 else $as_nop
8293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8294 /* end confdefs.h. */
8295 int i;
8296 _ACEOF
8297 if ac_fn_c_try_compile "$LINENO"
8298 then :
8299 xorg_cv_cc_flag_unknown_warning_option=yes
8300 else $as_nop
8301 xorg_cv_cc_flag_unknown_warning_option=no
8302 fi
8303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8304 fi
8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8306 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8308 CFLAGS="$xorg_testset_save_CFLAGS"
8309 fi
8310
8311 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8314 fi
8315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8317 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8318 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8319 then :
8320 printf %s "(cached) " >&6
8321 else $as_nop
8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 int i;
8325 _ACEOF
8326 if ac_fn_c_try_compile "$LINENO"
8327 then :
8328 xorg_cv_cc_flag_unused_command_line_argument=yes
8329 else $as_nop
8330 xorg_cv_cc_flag_unused_command_line_argument=no
8331 fi
8332 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8333 fi
8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8335 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8337 CFLAGS="$xorg_testset_save_CFLAGS"
8338 fi
8339
8340 found="no"
8341
8342 if test $found = "no" ; then
8343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8345 fi
8346
8347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8349 fi
8350
8351 CFLAGS="$CFLAGS -Werror=write-strings"
8352
8353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8354 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8355 cacheid=xorg_cv_cc_flag__Werror_write_strings
8356 if eval test \${$cacheid+y}
8357 then :
8358 printf %s "(cached) " >&6
8359 else $as_nop
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361 /* end confdefs.h. */
8362 int i;
8363 int
8364 main (void)
8365 {
8366
8367 ;
8368 return 0;
8369 }
8370 _ACEOF
8371 if ac_fn_c_try_link "$LINENO"
8372 then :
8373 eval $cacheid=yes
8374 else $as_nop
8375 eval $cacheid=no
8376 fi
8377 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8378 conftest$ac_exeext conftest.$ac_ext
8379 fi
8380
8381
8382 CFLAGS="$xorg_testset_save_CFLAGS"
8383
8384 eval supported=\$$cacheid
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8386 printf "%s\n" "$supported" >&6; }
8387 if test "$supported" = "yes" ; then
8388 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8389 found="yes"
8390 fi
8391 fi
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407 xorg_testset_save_CFLAGS="$CFLAGS"
8408
8409 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8412 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8413 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8414 then :
8415 printf %s "(cached) " >&6
8416 else $as_nop
8417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8418 /* end confdefs.h. */
8419 int i;
8420 _ACEOF
8421 if ac_fn_c_try_compile "$LINENO"
8422 then :
8423 xorg_cv_cc_flag_unknown_warning_option=yes
8424 else $as_nop
8425 xorg_cv_cc_flag_unknown_warning_option=no
8426 fi
8427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8428 fi
8429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8430 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8431 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8432 CFLAGS="$xorg_testset_save_CFLAGS"
8433 fi
8434
8435 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8436 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8438 fi
8439 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8441 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8442 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8443 then :
8444 printf %s "(cached) " >&6
8445 else $as_nop
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8448 int i;
8449 _ACEOF
8450 if ac_fn_c_try_compile "$LINENO"
8451 then :
8452 xorg_cv_cc_flag_unused_command_line_argument=yes
8453 else $as_nop
8454 xorg_cv_cc_flag_unused_command_line_argument=no
8455 fi
8456 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8457 fi
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8459 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8460 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8461 CFLAGS="$xorg_testset_save_CFLAGS"
8462 fi
8463
8464 found="no"
8465
8466 if test $found = "no" ; then
8467 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8468 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8469 fi
8470
8471 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8472 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8473 fi
8474
8475 CFLAGS="$CFLAGS -Werror=address"
8476
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8478 printf %s "checking if $CC supports -Werror=address... " >&6; }
8479 cacheid=xorg_cv_cc_flag__Werror_address
8480 if eval test \${$cacheid+y}
8481 then :
8482 printf %s "(cached) " >&6
8483 else $as_nop
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8486 int i;
8487 int
8488 main (void)
8489 {
8490
8491 ;
8492 return 0;
8493 }
8494 _ACEOF
8495 if ac_fn_c_try_link "$LINENO"
8496 then :
8497 eval $cacheid=yes
8498 else $as_nop
8499 eval $cacheid=no
8500 fi
8501 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8502 conftest$ac_exeext conftest.$ac_ext
8503 fi
8504
8505
8506 CFLAGS="$xorg_testset_save_CFLAGS"
8507
8508 eval supported=\$$cacheid
8509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8510 printf "%s\n" "$supported" >&6; }
8511 if test "$supported" = "yes" ; then
8512 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8513 found="yes"
8514 fi
8515 fi
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531 xorg_testset_save_CFLAGS="$CFLAGS"
8532
8533 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8536 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8537 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8538 then :
8539 printf %s "(cached) " >&6
8540 else $as_nop
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8543 int i;
8544 _ACEOF
8545 if ac_fn_c_try_compile "$LINENO"
8546 then :
8547 xorg_cv_cc_flag_unknown_warning_option=yes
8548 else $as_nop
8549 xorg_cv_cc_flag_unknown_warning_option=no
8550 fi
8551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8552 fi
8553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8554 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8556 CFLAGS="$xorg_testset_save_CFLAGS"
8557 fi
8558
8559 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8562 fi
8563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8565 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8566 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8567 then :
8568 printf %s "(cached) " >&6
8569 else $as_nop
8570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8571 /* end confdefs.h. */
8572 int i;
8573 _ACEOF
8574 if ac_fn_c_try_compile "$LINENO"
8575 then :
8576 xorg_cv_cc_flag_unused_command_line_argument=yes
8577 else $as_nop
8578 xorg_cv_cc_flag_unused_command_line_argument=no
8579 fi
8580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8581 fi
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8583 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8585 CFLAGS="$xorg_testset_save_CFLAGS"
8586 fi
8587
8588 found="no"
8589
8590 if test $found = "no" ; then
8591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8593 fi
8594
8595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8597 fi
8598
8599 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8600
8601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8602 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8603 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8604 if eval test \${$cacheid+y}
8605 then :
8606 printf %s "(cached) " >&6
8607 else $as_nop
8608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8609 /* end confdefs.h. */
8610 int i;
8611 int
8612 main (void)
8613 {
8614
8615 ;
8616 return 0;
8617 }
8618 _ACEOF
8619 if ac_fn_c_try_link "$LINENO"
8620 then :
8621 eval $cacheid=yes
8622 else $as_nop
8623 eval $cacheid=no
8624 fi
8625 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8626 conftest$ac_exeext conftest.$ac_ext
8627 fi
8628
8629
8630 CFLAGS="$xorg_testset_save_CFLAGS"
8631
8632 eval supported=\$$cacheid
8633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8634 printf "%s\n" "$supported" >&6; }
8635 if test "$supported" = "yes" ; then
8636 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8637 found="yes"
8638 fi
8639 fi
8640
8641 if test $found = "no" ; then
8642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8644 fi
8645
8646 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8648 fi
8649
8650 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8651
8652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8653 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8654 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8655 if eval test \${$cacheid+y}
8656 then :
8657 printf %s "(cached) " >&6
8658 else $as_nop
8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8661 int i;
8662 int
8663 main (void)
8664 {
8665
8666 ;
8667 return 0;
8668 }
8669 _ACEOF
8670 if ac_fn_c_try_link "$LINENO"
8671 then :
8672 eval $cacheid=yes
8673 else $as_nop
8674 eval $cacheid=no
8675 fi
8676 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8677 conftest$ac_exeext conftest.$ac_ext
8678 fi
8679
8680
8681 CFLAGS="$xorg_testset_save_CFLAGS"
8682
8683 eval supported=\$$cacheid
8684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8685 printf "%s\n" "$supported" >&6; }
8686 if test "$supported" = "yes" ; then
8687 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8688 found="yes"
8689 fi
8690 fi
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706 xorg_testset_save_CFLAGS="$CFLAGS"
8707
8708 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8711 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8712 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8713 then :
8714 printf %s "(cached) " >&6
8715 else $as_nop
8716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717 /* end confdefs.h. */
8718 int i;
8719 _ACEOF
8720 if ac_fn_c_try_compile "$LINENO"
8721 then :
8722 xorg_cv_cc_flag_unknown_warning_option=yes
8723 else $as_nop
8724 xorg_cv_cc_flag_unknown_warning_option=no
8725 fi
8726 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8727 fi
8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8729 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8730 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8731 CFLAGS="$xorg_testset_save_CFLAGS"
8732 fi
8733
8734 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8737 fi
8738 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8740 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8741 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8742 then :
8743 printf %s "(cached) " >&6
8744 else $as_nop
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8747 int i;
8748 _ACEOF
8749 if ac_fn_c_try_compile "$LINENO"
8750 then :
8751 xorg_cv_cc_flag_unused_command_line_argument=yes
8752 else $as_nop
8753 xorg_cv_cc_flag_unused_command_line_argument=no
8754 fi
8755 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8756 fi
8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8758 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8759 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8760 CFLAGS="$xorg_testset_save_CFLAGS"
8761 fi
8762
8763 found="no"
8764
8765 if test $found = "no" ; then
8766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8768 fi
8769
8770 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8771 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8772 fi
8773
8774 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8775
8776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8777 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8778 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8779 if eval test \${$cacheid+y}
8780 then :
8781 printf %s "(cached) " >&6
8782 else $as_nop
8783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8784 /* end confdefs.h. */
8785 int i;
8786 int
8787 main (void)
8788 {
8789
8790 ;
8791 return 0;
8792 }
8793 _ACEOF
8794 if ac_fn_c_try_link "$LINENO"
8795 then :
8796 eval $cacheid=yes
8797 else $as_nop
8798 eval $cacheid=no
8799 fi
8800 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8801 conftest$ac_exeext conftest.$ac_ext
8802 fi
8803
8804
8805 CFLAGS="$xorg_testset_save_CFLAGS"
8806
8807 eval supported=\$$cacheid
8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8809 printf "%s\n" "$supported" >&6; }
8810 if test "$supported" = "yes" ; then
8811 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8812 found="yes"
8813 fi
8814 fi
8815
8816 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8817 else
8818 { 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
8819 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;}
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833 xorg_testset_save_CFLAGS="$CFLAGS"
8834
8835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8838 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8839 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8840 then :
8841 printf %s "(cached) " >&6
8842 else $as_nop
8843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8844 /* end confdefs.h. */
8845 int i;
8846 _ACEOF
8847 if ac_fn_c_try_compile "$LINENO"
8848 then :
8849 xorg_cv_cc_flag_unknown_warning_option=yes
8850 else $as_nop
8851 xorg_cv_cc_flag_unknown_warning_option=no
8852 fi
8853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8854 fi
8855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8856 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8858 CFLAGS="$xorg_testset_save_CFLAGS"
8859 fi
8860
8861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8864 fi
8865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8867 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8868 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8869 then :
8870 printf %s "(cached) " >&6
8871 else $as_nop
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8874 int i;
8875 _ACEOF
8876 if ac_fn_c_try_compile "$LINENO"
8877 then :
8878 xorg_cv_cc_flag_unused_command_line_argument=yes
8879 else $as_nop
8880 xorg_cv_cc_flag_unused_command_line_argument=no
8881 fi
8882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8883 fi
8884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8885 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8887 CFLAGS="$xorg_testset_save_CFLAGS"
8888 fi
8889
8890 found="no"
8891
8892 if test $found = "no" ; then
8893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8895 fi
8896
8897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8899 fi
8900
8901 CFLAGS="$CFLAGS -Wimplicit"
8902
8903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8904 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8905 cacheid=xorg_cv_cc_flag__Wimplicit
8906 if eval test \${$cacheid+y}
8907 then :
8908 printf %s "(cached) " >&6
8909 else $as_nop
8910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8911 /* end confdefs.h. */
8912 int i;
8913 int
8914 main (void)
8915 {
8916
8917 ;
8918 return 0;
8919 }
8920 _ACEOF
8921 if ac_fn_c_try_link "$LINENO"
8922 then :
8923 eval $cacheid=yes
8924 else $as_nop
8925 eval $cacheid=no
8926 fi
8927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8928 conftest$ac_exeext conftest.$ac_ext
8929 fi
8930
8931
8932 CFLAGS="$xorg_testset_save_CFLAGS"
8933
8934 eval supported=\$$cacheid
8935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8936 printf "%s\n" "$supported" >&6; }
8937 if test "$supported" = "yes" ; then
8938 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8939 found="yes"
8940 fi
8941 fi
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957 xorg_testset_save_CFLAGS="$CFLAGS"
8958
8959 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8962 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8963 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8964 then :
8965 printf %s "(cached) " >&6
8966 else $as_nop
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8969 int i;
8970 _ACEOF
8971 if ac_fn_c_try_compile "$LINENO"
8972 then :
8973 xorg_cv_cc_flag_unknown_warning_option=yes
8974 else $as_nop
8975 xorg_cv_cc_flag_unknown_warning_option=no
8976 fi
8977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8978 fi
8979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8980 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8981 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8982 CFLAGS="$xorg_testset_save_CFLAGS"
8983 fi
8984
8985 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8988 fi
8989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8991 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8992 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8993 then :
8994 printf %s "(cached) " >&6
8995 else $as_nop
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8998 int i;
8999 _ACEOF
9000 if ac_fn_c_try_compile "$LINENO"
9001 then :
9002 xorg_cv_cc_flag_unused_command_line_argument=yes
9003 else $as_nop
9004 xorg_cv_cc_flag_unused_command_line_argument=no
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9007 fi
9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9009 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9011 CFLAGS="$xorg_testset_save_CFLAGS"
9012 fi
9013
9014 found="no"
9015
9016 if test $found = "no" ; then
9017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9019 fi
9020
9021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9023 fi
9024
9025 CFLAGS="$CFLAGS -Wnonnull"
9026
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9028 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9029 cacheid=xorg_cv_cc_flag__Wnonnull
9030 if eval test \${$cacheid+y}
9031 then :
9032 printf %s "(cached) " >&6
9033 else $as_nop
9034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9035 /* end confdefs.h. */
9036 int i;
9037 int
9038 main (void)
9039 {
9040
9041 ;
9042 return 0;
9043 }
9044 _ACEOF
9045 if ac_fn_c_try_link "$LINENO"
9046 then :
9047 eval $cacheid=yes
9048 else $as_nop
9049 eval $cacheid=no
9050 fi
9051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9052 conftest$ac_exeext conftest.$ac_ext
9053 fi
9054
9055
9056 CFLAGS="$xorg_testset_save_CFLAGS"
9057
9058 eval supported=\$$cacheid
9059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9060 printf "%s\n" "$supported" >&6; }
9061 if test "$supported" = "yes" ; then
9062 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9063 found="yes"
9064 fi
9065 fi
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081 xorg_testset_save_CFLAGS="$CFLAGS"
9082
9083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9086 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9087 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9088 then :
9089 printf %s "(cached) " >&6
9090 else $as_nop
9091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h. */
9093 int i;
9094 _ACEOF
9095 if ac_fn_c_try_compile "$LINENO"
9096 then :
9097 xorg_cv_cc_flag_unknown_warning_option=yes
9098 else $as_nop
9099 xorg_cv_cc_flag_unknown_warning_option=no
9100 fi
9101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9102 fi
9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9104 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9106 CFLAGS="$xorg_testset_save_CFLAGS"
9107 fi
9108
9109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9112 fi
9113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9115 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9116 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9117 then :
9118 printf %s "(cached) " >&6
9119 else $as_nop
9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9122 int i;
9123 _ACEOF
9124 if ac_fn_c_try_compile "$LINENO"
9125 then :
9126 xorg_cv_cc_flag_unused_command_line_argument=yes
9127 else $as_nop
9128 xorg_cv_cc_flag_unused_command_line_argument=no
9129 fi
9130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9131 fi
9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9133 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9135 CFLAGS="$xorg_testset_save_CFLAGS"
9136 fi
9137
9138 found="no"
9139
9140 if test $found = "no" ; then
9141 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9143 fi
9144
9145 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9147 fi
9148
9149 CFLAGS="$CFLAGS -Winit-self"
9150
9151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9152 printf %s "checking if $CC supports -Winit-self... " >&6; }
9153 cacheid=xorg_cv_cc_flag__Winit_self
9154 if eval test \${$cacheid+y}
9155 then :
9156 printf %s "(cached) " >&6
9157 else $as_nop
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9160 int i;
9161 int
9162 main (void)
9163 {
9164
9165 ;
9166 return 0;
9167 }
9168 _ACEOF
9169 if ac_fn_c_try_link "$LINENO"
9170 then :
9171 eval $cacheid=yes
9172 else $as_nop
9173 eval $cacheid=no
9174 fi
9175 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9176 conftest$ac_exeext conftest.$ac_ext
9177 fi
9178
9179
9180 CFLAGS="$xorg_testset_save_CFLAGS"
9181
9182 eval supported=\$$cacheid
9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9184 printf "%s\n" "$supported" >&6; }
9185 if test "$supported" = "yes" ; then
9186 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9187 found="yes"
9188 fi
9189 fi
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205 xorg_testset_save_CFLAGS="$CFLAGS"
9206
9207 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9210 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9211 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9212 then :
9213 printf %s "(cached) " >&6
9214 else $as_nop
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9217 int i;
9218 _ACEOF
9219 if ac_fn_c_try_compile "$LINENO"
9220 then :
9221 xorg_cv_cc_flag_unknown_warning_option=yes
9222 else $as_nop
9223 xorg_cv_cc_flag_unknown_warning_option=no
9224 fi
9225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9226 fi
9227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9228 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9229 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9230 CFLAGS="$xorg_testset_save_CFLAGS"
9231 fi
9232
9233 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9236 fi
9237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9239 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9240 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9241 then :
9242 printf %s "(cached) " >&6
9243 else $as_nop
9244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9245 /* end confdefs.h. */
9246 int i;
9247 _ACEOF
9248 if ac_fn_c_try_compile "$LINENO"
9249 then :
9250 xorg_cv_cc_flag_unused_command_line_argument=yes
9251 else $as_nop
9252 xorg_cv_cc_flag_unused_command_line_argument=no
9253 fi
9254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9255 fi
9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9257 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9258 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9259 CFLAGS="$xorg_testset_save_CFLAGS"
9260 fi
9261
9262 found="no"
9263
9264 if test $found = "no" ; then
9265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9267 fi
9268
9269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9271 fi
9272
9273 CFLAGS="$CFLAGS -Wmain"
9274
9275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9276 printf %s "checking if $CC supports -Wmain... " >&6; }
9277 cacheid=xorg_cv_cc_flag__Wmain
9278 if eval test \${$cacheid+y}
9279 then :
9280 printf %s "(cached) " >&6
9281 else $as_nop
9282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9283 /* end confdefs.h. */
9284 int i;
9285 int
9286 main (void)
9287 {
9288
9289 ;
9290 return 0;
9291 }
9292 _ACEOF
9293 if ac_fn_c_try_link "$LINENO"
9294 then :
9295 eval $cacheid=yes
9296 else $as_nop
9297 eval $cacheid=no
9298 fi
9299 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9300 conftest$ac_exeext conftest.$ac_ext
9301 fi
9302
9303
9304 CFLAGS="$xorg_testset_save_CFLAGS"
9305
9306 eval supported=\$$cacheid
9307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9308 printf "%s\n" "$supported" >&6; }
9309 if test "$supported" = "yes" ; then
9310 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9311 found="yes"
9312 fi
9313 fi
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329 xorg_testset_save_CFLAGS="$CFLAGS"
9330
9331 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9334 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9335 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9336 then :
9337 printf %s "(cached) " >&6
9338 else $as_nop
9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340 /* end confdefs.h. */
9341 int i;
9342 _ACEOF
9343 if ac_fn_c_try_compile "$LINENO"
9344 then :
9345 xorg_cv_cc_flag_unknown_warning_option=yes
9346 else $as_nop
9347 xorg_cv_cc_flag_unknown_warning_option=no
9348 fi
9349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9350 fi
9351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9352 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9354 CFLAGS="$xorg_testset_save_CFLAGS"
9355 fi
9356
9357 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9360 fi
9361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9363 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9364 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9365 then :
9366 printf %s "(cached) " >&6
9367 else $as_nop
9368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9369 /* end confdefs.h. */
9370 int i;
9371 _ACEOF
9372 if ac_fn_c_try_compile "$LINENO"
9373 then :
9374 xorg_cv_cc_flag_unused_command_line_argument=yes
9375 else $as_nop
9376 xorg_cv_cc_flag_unused_command_line_argument=no
9377 fi
9378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9379 fi
9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9381 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9383 CFLAGS="$xorg_testset_save_CFLAGS"
9384 fi
9385
9386 found="no"
9387
9388 if test $found = "no" ; then
9389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9391 fi
9392
9393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9395 fi
9396
9397 CFLAGS="$CFLAGS -Wmissing-braces"
9398
9399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9400 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9401 cacheid=xorg_cv_cc_flag__Wmissing_braces
9402 if eval test \${$cacheid+y}
9403 then :
9404 printf %s "(cached) " >&6
9405 else $as_nop
9406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9408 int i;
9409 int
9410 main (void)
9411 {
9412
9413 ;
9414 return 0;
9415 }
9416 _ACEOF
9417 if ac_fn_c_try_link "$LINENO"
9418 then :
9419 eval $cacheid=yes
9420 else $as_nop
9421 eval $cacheid=no
9422 fi
9423 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9424 conftest$ac_exeext conftest.$ac_ext
9425 fi
9426
9427
9428 CFLAGS="$xorg_testset_save_CFLAGS"
9429
9430 eval supported=\$$cacheid
9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9432 printf "%s\n" "$supported" >&6; }
9433 if test "$supported" = "yes" ; then
9434 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9435 found="yes"
9436 fi
9437 fi
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453 xorg_testset_save_CFLAGS="$CFLAGS"
9454
9455 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9458 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9459 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9460 then :
9461 printf %s "(cached) " >&6
9462 else $as_nop
9463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9464 /* end confdefs.h. */
9465 int i;
9466 _ACEOF
9467 if ac_fn_c_try_compile "$LINENO"
9468 then :
9469 xorg_cv_cc_flag_unknown_warning_option=yes
9470 else $as_nop
9471 xorg_cv_cc_flag_unknown_warning_option=no
9472 fi
9473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9474 fi
9475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9476 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9477 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9478 CFLAGS="$xorg_testset_save_CFLAGS"
9479 fi
9480
9481 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9484 fi
9485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9487 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9488 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9489 then :
9490 printf %s "(cached) " >&6
9491 else $as_nop
9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9494 int i;
9495 _ACEOF
9496 if ac_fn_c_try_compile "$LINENO"
9497 then :
9498 xorg_cv_cc_flag_unused_command_line_argument=yes
9499 else $as_nop
9500 xorg_cv_cc_flag_unused_command_line_argument=no
9501 fi
9502 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9503 fi
9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9505 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9506 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9507 CFLAGS="$xorg_testset_save_CFLAGS"
9508 fi
9509
9510 found="no"
9511
9512 if test $found = "no" ; then
9513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9515 fi
9516
9517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9519 fi
9520
9521 CFLAGS="$CFLAGS -Wsequence-point"
9522
9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9524 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9525 cacheid=xorg_cv_cc_flag__Wsequence_point
9526 if eval test \${$cacheid+y}
9527 then :
9528 printf %s "(cached) " >&6
9529 else $as_nop
9530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h. */
9532 int i;
9533 int
9534 main (void)
9535 {
9536
9537 ;
9538 return 0;
9539 }
9540 _ACEOF
9541 if ac_fn_c_try_link "$LINENO"
9542 then :
9543 eval $cacheid=yes
9544 else $as_nop
9545 eval $cacheid=no
9546 fi
9547 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9548 conftest$ac_exeext conftest.$ac_ext
9549 fi
9550
9551
9552 CFLAGS="$xorg_testset_save_CFLAGS"
9553
9554 eval supported=\$$cacheid
9555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9556 printf "%s\n" "$supported" >&6; }
9557 if test "$supported" = "yes" ; then
9558 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9559 found="yes"
9560 fi
9561 fi
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577 xorg_testset_save_CFLAGS="$CFLAGS"
9578
9579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9582 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9583 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9584 then :
9585 printf %s "(cached) " >&6
9586 else $as_nop
9587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h. */
9589 int i;
9590 _ACEOF
9591 if ac_fn_c_try_compile "$LINENO"
9592 then :
9593 xorg_cv_cc_flag_unknown_warning_option=yes
9594 else $as_nop
9595 xorg_cv_cc_flag_unknown_warning_option=no
9596 fi
9597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9598 fi
9599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9600 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9602 CFLAGS="$xorg_testset_save_CFLAGS"
9603 fi
9604
9605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9608 fi
9609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9611 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9612 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9613 then :
9614 printf %s "(cached) " >&6
9615 else $as_nop
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9618 int i;
9619 _ACEOF
9620 if ac_fn_c_try_compile "$LINENO"
9621 then :
9622 xorg_cv_cc_flag_unused_command_line_argument=yes
9623 else $as_nop
9624 xorg_cv_cc_flag_unused_command_line_argument=no
9625 fi
9626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9627 fi
9628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9629 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9631 CFLAGS="$xorg_testset_save_CFLAGS"
9632 fi
9633
9634 found="no"
9635
9636 if test $found = "no" ; then
9637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9639 fi
9640
9641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9643 fi
9644
9645 CFLAGS="$CFLAGS -Wreturn-type"
9646
9647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9648 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9649 cacheid=xorg_cv_cc_flag__Wreturn_type
9650 if eval test \${$cacheid+y}
9651 then :
9652 printf %s "(cached) " >&6
9653 else $as_nop
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656 int i;
9657 int
9658 main (void)
9659 {
9660
9661 ;
9662 return 0;
9663 }
9664 _ACEOF
9665 if ac_fn_c_try_link "$LINENO"
9666 then :
9667 eval $cacheid=yes
9668 else $as_nop
9669 eval $cacheid=no
9670 fi
9671 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9672 conftest$ac_exeext conftest.$ac_ext
9673 fi
9674
9675
9676 CFLAGS="$xorg_testset_save_CFLAGS"
9677
9678 eval supported=\$$cacheid
9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9680 printf "%s\n" "$supported" >&6; }
9681 if test "$supported" = "yes" ; then
9682 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9683 found="yes"
9684 fi
9685 fi
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701 xorg_testset_save_CFLAGS="$CFLAGS"
9702
9703 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9706 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9707 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9708 then :
9709 printf %s "(cached) " >&6
9710 else $as_nop
9711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9712 /* end confdefs.h. */
9713 int i;
9714 _ACEOF
9715 if ac_fn_c_try_compile "$LINENO"
9716 then :
9717 xorg_cv_cc_flag_unknown_warning_option=yes
9718 else $as_nop
9719 xorg_cv_cc_flag_unknown_warning_option=no
9720 fi
9721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9722 fi
9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9724 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9725 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9726 CFLAGS="$xorg_testset_save_CFLAGS"
9727 fi
9728
9729 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9732 fi
9733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9735 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9736 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9737 then :
9738 printf %s "(cached) " >&6
9739 else $as_nop
9740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9741 /* end confdefs.h. */
9742 int i;
9743 _ACEOF
9744 if ac_fn_c_try_compile "$LINENO"
9745 then :
9746 xorg_cv_cc_flag_unused_command_line_argument=yes
9747 else $as_nop
9748 xorg_cv_cc_flag_unused_command_line_argument=no
9749 fi
9750 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9751 fi
9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9753 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9754 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9755 CFLAGS="$xorg_testset_save_CFLAGS"
9756 fi
9757
9758 found="no"
9759
9760 if test $found = "no" ; then
9761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9763 fi
9764
9765 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9766 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9767 fi
9768
9769 CFLAGS="$CFLAGS -Wtrigraphs"
9770
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9772 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9773 cacheid=xorg_cv_cc_flag__Wtrigraphs
9774 if eval test \${$cacheid+y}
9775 then :
9776 printf %s "(cached) " >&6
9777 else $as_nop
9778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9779 /* end confdefs.h. */
9780 int i;
9781 int
9782 main (void)
9783 {
9784
9785 ;
9786 return 0;
9787 }
9788 _ACEOF
9789 if ac_fn_c_try_link "$LINENO"
9790 then :
9791 eval $cacheid=yes
9792 else $as_nop
9793 eval $cacheid=no
9794 fi
9795 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9796 conftest$ac_exeext conftest.$ac_ext
9797 fi
9798
9799
9800 CFLAGS="$xorg_testset_save_CFLAGS"
9801
9802 eval supported=\$$cacheid
9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9804 printf "%s\n" "$supported" >&6; }
9805 if test "$supported" = "yes" ; then
9806 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9807 found="yes"
9808 fi
9809 fi
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825 xorg_testset_save_CFLAGS="$CFLAGS"
9826
9827 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9830 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9831 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9832 then :
9833 printf %s "(cached) " >&6
9834 else $as_nop
9835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836 /* end confdefs.h. */
9837 int i;
9838 _ACEOF
9839 if ac_fn_c_try_compile "$LINENO"
9840 then :
9841 xorg_cv_cc_flag_unknown_warning_option=yes
9842 else $as_nop
9843 xorg_cv_cc_flag_unknown_warning_option=no
9844 fi
9845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9846 fi
9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9848 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9849 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9850 CFLAGS="$xorg_testset_save_CFLAGS"
9851 fi
9852
9853 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9856 fi
9857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9859 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9860 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9861 then :
9862 printf %s "(cached) " >&6
9863 else $as_nop
9864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9865 /* end confdefs.h. */
9866 int i;
9867 _ACEOF
9868 if ac_fn_c_try_compile "$LINENO"
9869 then :
9870 xorg_cv_cc_flag_unused_command_line_argument=yes
9871 else $as_nop
9872 xorg_cv_cc_flag_unused_command_line_argument=no
9873 fi
9874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9875 fi
9876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9877 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9879 CFLAGS="$xorg_testset_save_CFLAGS"
9880 fi
9881
9882 found="no"
9883
9884 if test $found = "no" ; then
9885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9887 fi
9888
9889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9891 fi
9892
9893 CFLAGS="$CFLAGS -Warray-bounds"
9894
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9896 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9897 cacheid=xorg_cv_cc_flag__Warray_bounds
9898 if eval test \${$cacheid+y}
9899 then :
9900 printf %s "(cached) " >&6
9901 else $as_nop
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9904 int i;
9905 int
9906 main (void)
9907 {
9908
9909 ;
9910 return 0;
9911 }
9912 _ACEOF
9913 if ac_fn_c_try_link "$LINENO"
9914 then :
9915 eval $cacheid=yes
9916 else $as_nop
9917 eval $cacheid=no
9918 fi
9919 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9920 conftest$ac_exeext conftest.$ac_ext
9921 fi
9922
9923
9924 CFLAGS="$xorg_testset_save_CFLAGS"
9925
9926 eval supported=\$$cacheid
9927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9928 printf "%s\n" "$supported" >&6; }
9929 if test "$supported" = "yes" ; then
9930 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9931 found="yes"
9932 fi
9933 fi
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949 xorg_testset_save_CFLAGS="$CFLAGS"
9950
9951 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9954 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9955 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9956 then :
9957 printf %s "(cached) " >&6
9958 else $as_nop
9959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9960 /* end confdefs.h. */
9961 int i;
9962 _ACEOF
9963 if ac_fn_c_try_compile "$LINENO"
9964 then :
9965 xorg_cv_cc_flag_unknown_warning_option=yes
9966 else $as_nop
9967 xorg_cv_cc_flag_unknown_warning_option=no
9968 fi
9969 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9970 fi
9971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9972 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9973 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9974 CFLAGS="$xorg_testset_save_CFLAGS"
9975 fi
9976
9977 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9980 fi
9981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9983 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9984 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9985 then :
9986 printf %s "(cached) " >&6
9987 else $as_nop
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 int i;
9991 _ACEOF
9992 if ac_fn_c_try_compile "$LINENO"
9993 then :
9994 xorg_cv_cc_flag_unused_command_line_argument=yes
9995 else $as_nop
9996 xorg_cv_cc_flag_unused_command_line_argument=no
9997 fi
9998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9999 fi
10000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10001 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10003 CFLAGS="$xorg_testset_save_CFLAGS"
10004 fi
10005
10006 found="no"
10007
10008 if test $found = "no" ; then
10009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10011 fi
10012
10013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10015 fi
10016
10017 CFLAGS="$CFLAGS -Wwrite-strings"
10018
10019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10020 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10021 cacheid=xorg_cv_cc_flag__Wwrite_strings
10022 if eval test \${$cacheid+y}
10023 then :
10024 printf %s "(cached) " >&6
10025 else $as_nop
10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */
10028 int i;
10029 int
10030 main (void)
10031 {
10032
10033 ;
10034 return 0;
10035 }
10036 _ACEOF
10037 if ac_fn_c_try_link "$LINENO"
10038 then :
10039 eval $cacheid=yes
10040 else $as_nop
10041 eval $cacheid=no
10042 fi
10043 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10044 conftest$ac_exeext conftest.$ac_ext
10045 fi
10046
10047
10048 CFLAGS="$xorg_testset_save_CFLAGS"
10049
10050 eval supported=\$$cacheid
10051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10052 printf "%s\n" "$supported" >&6; }
10053 if test "$supported" = "yes" ; then
10054 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10055 found="yes"
10056 fi
10057 fi
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073 xorg_testset_save_CFLAGS="$CFLAGS"
10074
10075 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10076 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10078 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10079 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10080 then :
10081 printf %s "(cached) " >&6
10082 else $as_nop
10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084 /* end confdefs.h. */
10085 int i;
10086 _ACEOF
10087 if ac_fn_c_try_compile "$LINENO"
10088 then :
10089 xorg_cv_cc_flag_unknown_warning_option=yes
10090 else $as_nop
10091 xorg_cv_cc_flag_unknown_warning_option=no
10092 fi
10093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10094 fi
10095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10096 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10097 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10098 CFLAGS="$xorg_testset_save_CFLAGS"
10099 fi
10100
10101 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10104 fi
10105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10107 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10108 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10109 then :
10110 printf %s "(cached) " >&6
10111 else $as_nop
10112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10114 int i;
10115 _ACEOF
10116 if ac_fn_c_try_compile "$LINENO"
10117 then :
10118 xorg_cv_cc_flag_unused_command_line_argument=yes
10119 else $as_nop
10120 xorg_cv_cc_flag_unused_command_line_argument=no
10121 fi
10122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10123 fi
10124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10125 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10126 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10127 CFLAGS="$xorg_testset_save_CFLAGS"
10128 fi
10129
10130 found="no"
10131
10132 if test $found = "no" ; then
10133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10135 fi
10136
10137 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10138 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10139 fi
10140
10141 CFLAGS="$CFLAGS -Waddress"
10142
10143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10144 printf %s "checking if $CC supports -Waddress... " >&6; }
10145 cacheid=xorg_cv_cc_flag__Waddress
10146 if eval test \${$cacheid+y}
10147 then :
10148 printf %s "(cached) " >&6
10149 else $as_nop
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h. */
10152 int i;
10153 int
10154 main (void)
10155 {
10156
10157 ;
10158 return 0;
10159 }
10160 _ACEOF
10161 if ac_fn_c_try_link "$LINENO"
10162 then :
10163 eval $cacheid=yes
10164 else $as_nop
10165 eval $cacheid=no
10166 fi
10167 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10168 conftest$ac_exeext conftest.$ac_ext
10169 fi
10170
10171
10172 CFLAGS="$xorg_testset_save_CFLAGS"
10173
10174 eval supported=\$$cacheid
10175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10176 printf "%s\n" "$supported" >&6; }
10177 if test "$supported" = "yes" ; then
10178 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10179 found="yes"
10180 fi
10181 fi
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197 xorg_testset_save_CFLAGS="$CFLAGS"
10198
10199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10202 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10203 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10204 then :
10205 printf %s "(cached) " >&6
10206 else $as_nop
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10209 int i;
10210 _ACEOF
10211 if ac_fn_c_try_compile "$LINENO"
10212 then :
10213 xorg_cv_cc_flag_unknown_warning_option=yes
10214 else $as_nop
10215 xorg_cv_cc_flag_unknown_warning_option=no
10216 fi
10217 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10218 fi
10219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10220 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10221 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10222 CFLAGS="$xorg_testset_save_CFLAGS"
10223 fi
10224
10225 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10228 fi
10229 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10231 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10232 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10233 then :
10234 printf %s "(cached) " >&6
10235 else $as_nop
10236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10237 /* end confdefs.h. */
10238 int i;
10239 _ACEOF
10240 if ac_fn_c_try_compile "$LINENO"
10241 then :
10242 xorg_cv_cc_flag_unused_command_line_argument=yes
10243 else $as_nop
10244 xorg_cv_cc_flag_unused_command_line_argument=no
10245 fi
10246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10247 fi
10248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10249 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10250 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10251 CFLAGS="$xorg_testset_save_CFLAGS"
10252 fi
10253
10254 found="no"
10255
10256 if test $found = "no" ; then
10257 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10258 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10259 fi
10260
10261 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10262 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10263 fi
10264
10265 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10266
10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10268 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10269 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10270 if eval test \${$cacheid+y}
10271 then :
10272 printf %s "(cached) " >&6
10273 else $as_nop
10274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10275 /* end confdefs.h. */
10276 int i;
10277 int
10278 main (void)
10279 {
10280
10281 ;
10282 return 0;
10283 }
10284 _ACEOF
10285 if ac_fn_c_try_link "$LINENO"
10286 then :
10287 eval $cacheid=yes
10288 else $as_nop
10289 eval $cacheid=no
10290 fi
10291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10292 conftest$ac_exeext conftest.$ac_ext
10293 fi
10294
10295
10296 CFLAGS="$xorg_testset_save_CFLAGS"
10297
10298 eval supported=\$$cacheid
10299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10300 printf "%s\n" "$supported" >&6; }
10301 if test "$supported" = "yes" ; then
10302 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10303 found="yes"
10304 fi
10305 fi
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321 xorg_testset_save_CFLAGS="$CFLAGS"
10322
10323 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10326 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10327 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10328 then :
10329 printf %s "(cached) " >&6
10330 else $as_nop
10331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10332 /* end confdefs.h. */
10333 int i;
10334 _ACEOF
10335 if ac_fn_c_try_compile "$LINENO"
10336 then :
10337 xorg_cv_cc_flag_unknown_warning_option=yes
10338 else $as_nop
10339 xorg_cv_cc_flag_unknown_warning_option=no
10340 fi
10341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10342 fi
10343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10344 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10345 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10346 CFLAGS="$xorg_testset_save_CFLAGS"
10347 fi
10348
10349 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10350 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10351 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10352 fi
10353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10355 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10356 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10357 then :
10358 printf %s "(cached) " >&6
10359 else $as_nop
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361 /* end confdefs.h. */
10362 int i;
10363 _ACEOF
10364 if ac_fn_c_try_compile "$LINENO"
10365 then :
10366 xorg_cv_cc_flag_unused_command_line_argument=yes
10367 else $as_nop
10368 xorg_cv_cc_flag_unused_command_line_argument=no
10369 fi
10370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10371 fi
10372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10373 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10374 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10375 CFLAGS="$xorg_testset_save_CFLAGS"
10376 fi
10377
10378 found="no"
10379
10380 if test $found = "no" ; then
10381 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10383 fi
10384
10385 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10386 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10387 fi
10388
10389 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10390
10391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10392 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10393 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10394 if eval test \${$cacheid+y}
10395 then :
10396 printf %s "(cached) " >&6
10397 else $as_nop
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10400 int i;
10401 int
10402 main (void)
10403 {
10404
10405 ;
10406 return 0;
10407 }
10408 _ACEOF
10409 if ac_fn_c_try_link "$LINENO"
10410 then :
10411 eval $cacheid=yes
10412 else $as_nop
10413 eval $cacheid=no
10414 fi
10415 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10416 conftest$ac_exeext conftest.$ac_ext
10417 fi
10418
10419
10420 CFLAGS="$xorg_testset_save_CFLAGS"
10421
10422 eval supported=\$$cacheid
10423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10424 printf "%s\n" "$supported" >&6; }
10425 if test "$supported" = "yes" ; then
10426 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10427 found="yes"
10428 fi
10429 fi
10430
10431
10432 fi
10433
10434
10435
10436
10437
10438
10439
10440 CWARNFLAGS="$BASE_CFLAGS"
10441 if test "x$GCC" = xyes ; then
10442 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10443 fi
10444
10445
10446
10447
10448
10449
10450
10451
10452 # Check whether --enable-strict-compilation was given.
10453 if test ${enable_strict_compilation+y}
10454 then :
10455 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10456 else $as_nop
10457 STRICT_COMPILE=no
10458 fi
10459
10460
10461
10462
10463
10464
10465 STRICT_CFLAGS=""
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479 xorg_testset_save_CFLAGS="$CFLAGS"
10480
10481 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10484 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10485 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10486 then :
10487 printf %s "(cached) " >&6
10488 else $as_nop
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490 /* end confdefs.h. */
10491 int i;
10492 _ACEOF
10493 if ac_fn_c_try_compile "$LINENO"
10494 then :
10495 xorg_cv_cc_flag_unknown_warning_option=yes
10496 else $as_nop
10497 xorg_cv_cc_flag_unknown_warning_option=no
10498 fi
10499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10500 fi
10501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10502 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10504 CFLAGS="$xorg_testset_save_CFLAGS"
10505 fi
10506
10507 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10510 fi
10511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10513 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10514 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10515 then :
10516 printf %s "(cached) " >&6
10517 else $as_nop
10518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10519 /* end confdefs.h. */
10520 int i;
10521 _ACEOF
10522 if ac_fn_c_try_compile "$LINENO"
10523 then :
10524 xorg_cv_cc_flag_unused_command_line_argument=yes
10525 else $as_nop
10526 xorg_cv_cc_flag_unused_command_line_argument=no
10527 fi
10528 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10529 fi
10530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10531 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10532 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10533 CFLAGS="$xorg_testset_save_CFLAGS"
10534 fi
10535
10536 found="no"
10537
10538 if test $found = "no" ; then
10539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10541 fi
10542
10543 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10544 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10545 fi
10546
10547 CFLAGS="$CFLAGS -pedantic"
10548
10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10550 printf %s "checking if $CC supports -pedantic... " >&6; }
10551 cacheid=xorg_cv_cc_flag__pedantic
10552 if eval test \${$cacheid+y}
10553 then :
10554 printf %s "(cached) " >&6
10555 else $as_nop
10556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10557 /* end confdefs.h. */
10558 int i;
10559 int
10560 main (void)
10561 {
10562
10563 ;
10564 return 0;
10565 }
10566 _ACEOF
10567 if ac_fn_c_try_link "$LINENO"
10568 then :
10569 eval $cacheid=yes
10570 else $as_nop
10571 eval $cacheid=no
10572 fi
10573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10574 conftest$ac_exeext conftest.$ac_ext
10575 fi
10576
10577
10578 CFLAGS="$xorg_testset_save_CFLAGS"
10579
10580 eval supported=\$$cacheid
10581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10582 printf "%s\n" "$supported" >&6; }
10583 if test "$supported" = "yes" ; then
10584 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10585 found="yes"
10586 fi
10587 fi
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603 xorg_testset_save_CFLAGS="$CFLAGS"
10604
10605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10608 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10609 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10610 then :
10611 printf %s "(cached) " >&6
10612 else $as_nop
10613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 int i;
10616 _ACEOF
10617 if ac_fn_c_try_compile "$LINENO"
10618 then :
10619 xorg_cv_cc_flag_unknown_warning_option=yes
10620 else $as_nop
10621 xorg_cv_cc_flag_unknown_warning_option=no
10622 fi
10623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10624 fi
10625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10626 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10628 CFLAGS="$xorg_testset_save_CFLAGS"
10629 fi
10630
10631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10634 fi
10635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10637 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10638 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10639 then :
10640 printf %s "(cached) " >&6
10641 else $as_nop
10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h. */
10644 int i;
10645 _ACEOF
10646 if ac_fn_c_try_compile "$LINENO"
10647 then :
10648 xorg_cv_cc_flag_unused_command_line_argument=yes
10649 else $as_nop
10650 xorg_cv_cc_flag_unused_command_line_argument=no
10651 fi
10652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10653 fi
10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10655 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10656 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10657 CFLAGS="$xorg_testset_save_CFLAGS"
10658 fi
10659
10660 found="no"
10661
10662 if test $found = "no" ; then
10663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10665 fi
10666
10667 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10668 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10669 fi
10670
10671 CFLAGS="$CFLAGS -Werror"
10672
10673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10674 printf %s "checking if $CC supports -Werror... " >&6; }
10675 cacheid=xorg_cv_cc_flag__Werror
10676 if eval test \${$cacheid+y}
10677 then :
10678 printf %s "(cached) " >&6
10679 else $as_nop
10680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10681 /* end confdefs.h. */
10682 int i;
10683 int
10684 main (void)
10685 {
10686
10687 ;
10688 return 0;
10689 }
10690 _ACEOF
10691 if ac_fn_c_try_link "$LINENO"
10692 then :
10693 eval $cacheid=yes
10694 else $as_nop
10695 eval $cacheid=no
10696 fi
10697 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10698 conftest$ac_exeext conftest.$ac_ext
10699 fi
10700
10701
10702 CFLAGS="$xorg_testset_save_CFLAGS"
10703
10704 eval supported=\$$cacheid
10705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10706 printf "%s\n" "$supported" >&6; }
10707 if test "$supported" = "yes" ; then
10708 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10709 found="yes"
10710 fi
10711 fi
10712
10713 if test $found = "no" ; then
10714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10716 fi
10717
10718 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10719 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10720 fi
10721
10722 CFLAGS="$CFLAGS -errwarn"
10723
10724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10725 printf %s "checking if $CC supports -errwarn... " >&6; }
10726 cacheid=xorg_cv_cc_flag__errwarn
10727 if eval test \${$cacheid+y}
10728 then :
10729 printf %s "(cached) " >&6
10730 else $as_nop
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10733 int i;
10734 int
10735 main (void)
10736 {
10737
10738 ;
10739 return 0;
10740 }
10741 _ACEOF
10742 if ac_fn_c_try_link "$LINENO"
10743 then :
10744 eval $cacheid=yes
10745 else $as_nop
10746 eval $cacheid=no
10747 fi
10748 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10749 conftest$ac_exeext conftest.$ac_ext
10750 fi
10751
10752
10753 CFLAGS="$xorg_testset_save_CFLAGS"
10754
10755 eval supported=\$$cacheid
10756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10757 printf "%s\n" "$supported" >&6; }
10758 if test "$supported" = "yes" ; then
10759 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10760 found="yes"
10761 fi
10762 fi
10763
10764
10765
10766 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10767 # activate it with -Werror, so we add it here explicitly.
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781 xorg_testset_save_CFLAGS="$CFLAGS"
10782
10783 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10786 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10787 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10788 then :
10789 printf %s "(cached) " >&6
10790 else $as_nop
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10793 int i;
10794 _ACEOF
10795 if ac_fn_c_try_compile "$LINENO"
10796 then :
10797 xorg_cv_cc_flag_unknown_warning_option=yes
10798 else $as_nop
10799 xorg_cv_cc_flag_unknown_warning_option=no
10800 fi
10801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10802 fi
10803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10804 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10805 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10806 CFLAGS="$xorg_testset_save_CFLAGS"
10807 fi
10808
10809 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10812 fi
10813 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10815 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10816 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10817 then :
10818 printf %s "(cached) " >&6
10819 else $as_nop
10820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10821 /* end confdefs.h. */
10822 int i;
10823 _ACEOF
10824 if ac_fn_c_try_compile "$LINENO"
10825 then :
10826 xorg_cv_cc_flag_unused_command_line_argument=yes
10827 else $as_nop
10828 xorg_cv_cc_flag_unused_command_line_argument=no
10829 fi
10830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10831 fi
10832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10833 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10834 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10835 CFLAGS="$xorg_testset_save_CFLAGS"
10836 fi
10837
10838 found="no"
10839
10840 if test $found = "no" ; then
10841 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10842 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10843 fi
10844
10845 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10847 fi
10848
10849 CFLAGS="$CFLAGS -Werror=attributes"
10850
10851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10852 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10853 cacheid=xorg_cv_cc_flag__Werror_attributes
10854 if eval test \${$cacheid+y}
10855 then :
10856 printf %s "(cached) " >&6
10857 else $as_nop
10858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10859 /* end confdefs.h. */
10860 int i;
10861 int
10862 main (void)
10863 {
10864
10865 ;
10866 return 0;
10867 }
10868 _ACEOF
10869 if ac_fn_c_try_link "$LINENO"
10870 then :
10871 eval $cacheid=yes
10872 else $as_nop
10873 eval $cacheid=no
10874 fi
10875 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10876 conftest$ac_exeext conftest.$ac_ext
10877 fi
10878
10879
10880 CFLAGS="$xorg_testset_save_CFLAGS"
10881
10882 eval supported=\$$cacheid
10883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10884 printf "%s\n" "$supported" >&6; }
10885 if test "$supported" = "yes" ; then
10886 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10887 found="yes"
10888 fi
10889 fi
10890
10891
10892
10893 if test "x$STRICT_COMPILE" = "xyes"; then
10894 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10895 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10896 fi
10897
10898
10899
10900
10901
10902
10903 cat >>confdefs.h <<_ACEOF
10904 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10905 _ACEOF
10906
10907 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10908 if test "x$PVM" = "x"; then
10909 PVM="0"
10910 fi
10911
10912 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10913
10914 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10915 if test "x$PVP" = "x"; then
10916 PVP="0"
10917 fi
10918
10919 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10920
10921
10922
10923 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10924 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10925 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10926 touch \$(top_srcdir)/ChangeLog; \
10927 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10928
10929
10930
10931
10932 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10933 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10934 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10935 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10936 touch \$(top_srcdir)/INSTALL; \
10937 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10938
10939
10940
10941
10942
10943
10944 case $host_os in
10945 solaris*)
10946 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
10947 # check for a man page file found in later versions that use
10948 # traditional section numbers instead
10949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
10950 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
10951 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
10952 then :
10953 printf %s "(cached) " >&6
10954 else $as_nop
10955 test "$cross_compiling" = yes &&
10956 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
10957 if test -r "/usr/share/man/man7/attributes.7"; then
10958 ac_cv_file__usr_share_man_man7_attributes_7=yes
10959 else
10960 ac_cv_file__usr_share_man_man7_attributes_7=no
10961 fi
10962 fi
10963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
10964 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
10965 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
10966 then :
10967 SYSV_MAN_SECTIONS=false
10968 else $as_nop
10969 SYSV_MAN_SECTIONS=true
10970 fi
10971
10972 ;;
10973 *) SYSV_MAN_SECTIONS=false ;;
10974 esac
10975
10976 if test x$APP_MAN_SUFFIX = x ; then
10977 APP_MAN_SUFFIX=1
10978 fi
10979 if test x$APP_MAN_DIR = x ; then
10980 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10981 fi
10982
10983 if test x$LIB_MAN_SUFFIX = x ; then
10984 LIB_MAN_SUFFIX=3
10985 fi
10986 if test x$LIB_MAN_DIR = x ; then
10987 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10988 fi
10989
10990 if test x$FILE_MAN_SUFFIX = x ; then
10991 case $SYSV_MAN_SECTIONS in
10992 true) FILE_MAN_SUFFIX=4 ;;
10993 *) FILE_MAN_SUFFIX=5 ;;
10994 esac
10995 fi
10996 if test x$FILE_MAN_DIR = x ; then
10997 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10998 fi
10999
11000 if test x$MISC_MAN_SUFFIX = x ; then
11001 case $SYSV_MAN_SECTIONS in
11002 true) MISC_MAN_SUFFIX=5 ;;
11003 *) MISC_MAN_SUFFIX=7 ;;
11004 esac
11005 fi
11006 if test x$MISC_MAN_DIR = x ; then
11007 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11008 fi
11009
11010 if test x$DRIVER_MAN_SUFFIX = x ; then
11011 case $SYSV_MAN_SECTIONS in
11012 true) DRIVER_MAN_SUFFIX=7 ;;
11013 *) DRIVER_MAN_SUFFIX=4 ;;
11014 esac
11015 fi
11016 if test x$DRIVER_MAN_DIR = x ; then
11017 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11018 fi
11019
11020 if test x$ADMIN_MAN_SUFFIX = x ; then
11021 case $SYSV_MAN_SECTIONS in
11022 true) ADMIN_MAN_SUFFIX=1m ;;
11023 *) ADMIN_MAN_SUFFIX=8 ;;
11024 esac
11025 fi
11026 if test x$ADMIN_MAN_DIR = x ; then
11027 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11028 fi
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044 XORG_MAN_PAGE="X Version 11"
11045
11046 MAN_SUBSTS="\
11047 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11048 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11049 -e 's|__xservername__|Xorg|g' \
11050 -e 's|__xconfigfile__|xorg.conf|g' \
11051 -e 's|__projectroot__|\$(prefix)|g' \
11052 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11053 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11054 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11055 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11056 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11057 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11058 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11059
11060
11061
11062 # Check whether --enable-silent-rules was given.
11063 if test ${enable_silent_rules+y}
11064 then :
11065 enableval=$enable_silent_rules;
11066 fi
11067
11068 case $enable_silent_rules in # (((
11069 yes) AM_DEFAULT_VERBOSITY=0;;
11070 no) AM_DEFAULT_VERBOSITY=1;;
11071 *) AM_DEFAULT_VERBOSITY=0;;
11072 esac
11073 am_make=${MAKE-make}
11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11075 printf %s "checking whether $am_make supports nested variables... " >&6; }
11076 if test ${am_cv_make_support_nested_variables+y}
11077 then :
11078 printf %s "(cached) " >&6
11079 else $as_nop
11080 if printf "%s\n" 'TRUE=$(BAR$(V))
11081 BAR0=false
11082 BAR1=true
11083 V=1
11084 am__doit:
11085 @$(TRUE)
11086 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11087 am_cv_make_support_nested_variables=yes
11088 else
11089 am_cv_make_support_nested_variables=no
11090 fi
11091 fi
11092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11093 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11094 if test $am_cv_make_support_nested_variables = yes; then
11095 AM_V='$(V)'
11096 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11097 else
11098 AM_V=$AM_DEFAULT_VERBOSITY
11099 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11100 fi
11101 AM_BACKSLASH='\'
11102
11103
11104
11105 # Checks for programs.
11106 for ac_prog in remsh rsh rcmd
11107 do
11108 # Extract the first word of "$ac_prog", so it can be a program name with args.
11109 set dummy $ac_prog; ac_word=$2
11110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11111 printf %s "checking for $ac_word... " >&6; }
11112 if test ${ac_cv_prog_RSH+y}
11113 then :
11114 printf %s "(cached) " >&6
11115 else $as_nop
11116 if test -n "$RSH"; then
11117 ac_cv_prog_RSH="$RSH" # Let the user override the test.
11118 else
11119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120 for as_dir in $PATH
11121 do
11122 IFS=$as_save_IFS
11123 case $as_dir in #(((
11124 '') as_dir=./ ;;
11125 */) ;;
11126 *) as_dir=$as_dir/ ;;
11127 esac
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11130 ac_cv_prog_RSH="$ac_prog"
11131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11132 break 2
11133 fi
11134 done
11135 done
11136 IFS=$as_save_IFS
11137
11138 fi
11139 fi
11140 RSH=$ac_cv_prog_RSH
11141 if test -n "$RSH"; then
11142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RSH" >&5
11143 printf "%s\n" "$RSH" >&6; }
11144 else
11145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 printf "%s\n" "no" >&6; }
11147 fi
11148
11149
11150 test -n "$RSH" && break
11151 done
11152
11153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11154 printf %s "checking whether ln -s works... " >&6; }
11155 LN_S=$as_ln_s
11156 if test "$LN_S" = "ln -s"; then
11157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11158 printf "%s\n" "yes" >&6; }
11159 else
11160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11161 printf "%s\n" "no, using $LN_S" >&6; }
11162 fi
11163
11164
11165 # Define the root directory for client/server
11166 rstartdir=$libdir/X11/rstart
11167
11168
11169 # Define the root directory for config
11170 configdir=$sysconfdir/X11/rstart
11171
11172
11173 # Obtain compiler options from dependencies
11174
11175 pkg_failed=no
11176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RSTART" >&5
11177 printf %s "checking for RSTART... " >&6; }
11178
11179 if test -n "$RSTART_CFLAGS"; then
11180 pkg_cv_RSTART_CFLAGS="$RSTART_CFLAGS"
11181 elif test -n "$PKG_CONFIG"; then
11182 if test -n "$PKG_CONFIG" && \
11183 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
11184 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
11185 ac_status=$?
11186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11187 test $ac_status = 0; }; then
11188 pkg_cv_RSTART_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
11189 test "x$?" != "x0" && pkg_failed=yes
11190 else
11191 pkg_failed=yes
11192 fi
11193 else
11194 pkg_failed=untried
11195 fi
11196 if test -n "$RSTART_LIBS"; then
11197 pkg_cv_RSTART_LIBS="$RSTART_LIBS"
11198 elif test -n "$PKG_CONFIG"; then
11199 if test -n "$PKG_CONFIG" && \
11200 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
11201 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
11202 ac_status=$?
11203 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11204 test $ac_status = 0; }; then
11205 pkg_cv_RSTART_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
11206 test "x$?" != "x0" && pkg_failed=yes
11207 else
11208 pkg_failed=yes
11209 fi
11210 else
11211 pkg_failed=untried
11212 fi
11213
11214
11215
11216 if test $pkg_failed = yes; then
11217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11218 printf "%s\n" "no" >&6; }
11219
11220 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11221 _pkg_short_errors_supported=yes
11222 else
11223 _pkg_short_errors_supported=no
11224 fi
11225 if test $_pkg_short_errors_supported = yes; then
11226 RSTART_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
11227 else
11228 RSTART_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
11229 fi
11230 # Put the nasty error message in config.log where it belongs
11231 echo "$RSTART_PKG_ERRORS" >&5
11232
11233 as_fn_error $? "Package requirements (xproto) were not met:
11234
11235 $RSTART_PKG_ERRORS
11236
11237 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11238 installed software in a non-standard prefix.
11239
11240 Alternatively, you may set the environment variables RSTART_CFLAGS
11241 and RSTART_LIBS to avoid the need to call pkg-config.
11242 See the pkg-config man page for more details." "$LINENO" 5
11243 elif test $pkg_failed = untried; then
11244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245 printf "%s\n" "no" >&6; }
11246 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11247 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11248 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11249 is in your PATH or set the PKG_CONFIG environment variable to the full
11250 path to pkg-config.
11251
11252 Alternatively, you may set the environment variables RSTART_CFLAGS
11253 and RSTART_LIBS to avoid the need to call pkg-config.
11254 See the pkg-config man page for more details.
11255
11256 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11257 See \`config.log' for more details" "$LINENO" 5; }
11258 else
11259 RSTART_CFLAGS=$pkg_cv_RSTART_CFLAGS
11260 RSTART_LIBS=$pkg_cv_RSTART_LIBS
11261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11262 printf "%s\n" "yes" >&6; }
11263
11264 fi
11265
11266 # Define a configure option for an alternate user path
11267
11268 # Check whether --with-default-user-path was given.
11269 if test ${with_default_user_path+y}
11270 then :
11271 withval=$with_default_user_path; DEFAULT_USER_PATH="$withval"
11272 else $as_nop
11273 DEFAULT_USER_PATH="/bin:/usr/bin:${prefix}/bin:/usr/ucb:/usr/gnu/bin:/usr/local/bin"
11274 fi
11275
11276
11277
11278 # Define a configure option for an alternate man pages path
11279
11280 # Check whether --with-default-man-path was given.
11281 if test ${with_default_man_path+y}
11282 then :
11283 withval=$with_default_man_path; DEFAULT_X_MANPATH="$withval"
11284 else $as_nop
11285 DEFAULT_X_MANPATH="${prefix}/man:/usr/share/man:/usr/man"
11286 fi
11287
11288
11289
11290 ac_config_files="$ac_config_files Makefile man/Makefile commands/Makefile contexts/Makefile samples/Makefile scripts/Makefile specs/Makefile"
11291
11292 cat >confcache <<\_ACEOF
11293 # This file is a shell script that caches the results of configure
11294 # tests run on this system so they can be shared between configure
11295 # scripts and configure runs, see configure's option --config-cache.
11296 # It is not useful on other systems. If it contains results you don't
11297 # want to keep, you may remove or edit it.
11298 #
11299 # config.status only pays attention to the cache file if you give it
11300 # the --recheck option to rerun configure.
11301 #
11302 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11303 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11304 # following values.
11305
11306 _ACEOF
11307
11308 # The following way of writing the cache mishandles newlines in values,
11309 # but we know of no workaround that is simple, portable, and efficient.
11310 # So, we kill variables containing newlines.
11311 # Ultrix sh set writes to stderr and can't be redirected directly,
11312 # and sets the high bit in the cache file unless we assign to the vars.
11313 (
11314 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11315 eval ac_val=\$$ac_var
11316 case $ac_val in #(
11317 *${as_nl}*)
11318 case $ac_var in #(
11319 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11320 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11321 esac
11322 case $ac_var in #(
11323 _ | IFS | as_nl) ;; #(
11324 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11325 *) { eval $ac_var=; unset $ac_var;} ;;
11326 esac ;;
11327 esac
11328 done
11329
11330 (set) 2>&1 |
11331 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11332 *${as_nl}ac_space=\ *)
11333 # `set' does not quote correctly, so add quotes: double-quote
11334 # substitution turns \\\\ into \\, and sed turns \\ into \.
11335 sed -n \
11336 "s/'/'\\\\''/g;
11337 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11338 ;; #(
11339 *)
11340 # `set' quotes correctly as required by POSIX, so do not add quotes.
11341 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11342 ;;
11343 esac |
11344 sort
11345 ) |
11346 sed '
11347 /^ac_cv_env_/b end
11348 t clear
11349 :clear
11350 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11351 t end
11352 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11353 :end' >>confcache
11354 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11355 if test -w "$cache_file"; then
11356 if test "x$cache_file" != "x/dev/null"; then
11357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11358 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11359 if test ! -f "$cache_file" || test -h "$cache_file"; then
11360 cat confcache >"$cache_file"
11361 else
11362 case $cache_file in #(
11363 */* | ?:*)
11364 mv -f confcache "$cache_file"$$ &&
11365 mv -f "$cache_file"$$ "$cache_file" ;; #(
11366 *)
11367 mv -f confcache "$cache_file" ;;
11368 esac
11369 fi
11370 fi
11371 else
11372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11373 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11374 fi
11375 fi
11376 rm -f confcache
11377
11378 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11379 # Let make expand exec_prefix.
11380 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11381
11382 DEFS=-DHAVE_CONFIG_H
11383
11384 ac_libobjs=
11385 ac_ltlibobjs=
11386 U=
11387 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11388 # 1. Remove the extension, and $U if already installed.
11389 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11390 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11391 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11392 # will be set to the directory where LIBOBJS objects are built.
11393 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11394 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11395 done
11396 LIBOBJS=$ac_libobjs
11397
11398 LTLIBOBJS=$ac_ltlibobjs
11399
11400
11401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11402 printf %s "checking that generated files are newer than configure... " >&6; }
11403 if test -n "$am_sleep_pid"; then
11404 # Hide warnings about reused PIDs.
11405 wait $am_sleep_pid 2>/dev/null
11406 fi
11407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11408 printf "%s\n" "done" >&6; }
11409 if test -n "$EXEEXT"; then
11410 am__EXEEXT_TRUE=
11411 am__EXEEXT_FALSE='#'
11412 else
11413 am__EXEEXT_TRUE='#'
11414 am__EXEEXT_FALSE=
11415 fi
11416
11417 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11418 as_fn_error $? "conditional \"AMDEP\" was never defined.
11419 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11420 fi
11421 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11422 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11423 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11424 fi
11425
11426 : "${CONFIG_STATUS=./config.status}"
11427 ac_write_fail=0
11428 ac_clean_files_save=$ac_clean_files
11429 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11431 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11432 as_write_fail=0
11433 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11434 #! $SHELL
11435 # Generated by $as_me.
11436 # Run this file to recreate the current configuration.
11437 # Compiler output produced by configure, useful for debugging
11438 # configure, is in config.log if it exists.
11439
11440 debug=false
11441 ac_cs_recheck=false
11442 ac_cs_silent=false
11443
11444 SHELL=\${CONFIG_SHELL-$SHELL}
11445 export SHELL
11446 _ASEOF
11447 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11448 ## -------------------- ##
11449 ## M4sh Initialization. ##
11450 ## -------------------- ##
11451
11452 # Be more Bourne compatible
11453 DUALCASE=1; export DUALCASE # for MKS sh
11454 as_nop=:
11455 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11456 then :
11457 emulate sh
11458 NULLCMD=:
11459 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11460 # is contrary to our usage. Disable this feature.
11461 alias -g '${1+"$@"}'='"$@"'
11462 setopt NO_GLOB_SUBST
11463 else $as_nop
11464 case `(set -o) 2>/dev/null` in #(
11465 *posix*) :
11466 set -o posix ;; #(
11467 *) :
11468 ;;
11469 esac
11470 fi
11471
11472
11473
11474 # Reset variables that may have inherited troublesome values from
11475 # the environment.
11476
11477 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11478 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11479 # side effect of setting IFS to empty, thus disabling word splitting.)
11480 # Quoting is to prevent editors from complaining about space-tab.
11481 as_nl='
11482 '
11483 export as_nl
11484 IFS=" "" $as_nl"
11485
11486 PS1='$ '
11487 PS2='> '
11488 PS4='+ '
11489
11490 # Ensure predictable behavior from utilities with locale-dependent output.
11491 LC_ALL=C
11492 export LC_ALL
11493 LANGUAGE=C
11494 export LANGUAGE
11495
11496 # We cannot yet rely on "unset" to work, but we need these variables
11497 # to be unset--not just set to an empty or harmless value--now, to
11498 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11499 # also avoids known problems related to "unset" and subshell syntax
11500 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11501 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11502 do eval test \${$as_var+y} \
11503 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11504 done
11505
11506 # Ensure that fds 0, 1, and 2 are open.
11507 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11508 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11509 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11510
11511 # The user is always right.
11512 if ${PATH_SEPARATOR+false} :; then
11513 PATH_SEPARATOR=:
11514 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11515 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11516 PATH_SEPARATOR=';'
11517 }
11518 fi
11519
11520
11521 # Find who we are. Look in the path if we contain no directory separator.
11522 as_myself=
11523 case $0 in #((
11524 *[\\/]* ) as_myself=$0 ;;
11525 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11526 for as_dir in $PATH
11527 do
11528 IFS=$as_save_IFS
11529 case $as_dir in #(((
11530 '') as_dir=./ ;;
11531 */) ;;
11532 *) as_dir=$as_dir/ ;;
11533 esac
11534 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11535 done
11536 IFS=$as_save_IFS
11537
11538 ;;
11539 esac
11540 # We did not find ourselves, most probably we were run as `sh COMMAND'
11541 # in which case we are not to be found in the path.
11542 if test "x$as_myself" = x; then
11543 as_myself=$0
11544 fi
11545 if test ! -f "$as_myself"; then
11546 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11547 exit 1
11548 fi
11549
11550
11551
11552 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11553 # ----------------------------------------
11554 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11555 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11556 # script with STATUS, using 1 if that was 0.
11557 as_fn_error ()
11558 {
11559 as_status=$1; test $as_status -eq 0 && as_status=1
11560 if test "$4"; then
11561 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11563 fi
11564 printf "%s\n" "$as_me: error: $2" >&2
11565 as_fn_exit $as_status
11566 } # as_fn_error
11567
11568
11569
11570 # as_fn_set_status STATUS
11571 # -----------------------
11572 # Set $? to STATUS, without forking.
11573 as_fn_set_status ()
11574 {
11575 return $1
11576 } # as_fn_set_status
11577
11578 # as_fn_exit STATUS
11579 # -----------------
11580 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11581 as_fn_exit ()
11582 {
11583 set +e
11584 as_fn_set_status $1
11585 exit $1
11586 } # as_fn_exit
11587
11588 # as_fn_unset VAR
11589 # ---------------
11590 # Portably unset VAR.
11591 as_fn_unset ()
11592 {
11593 { eval $1=; unset $1;}
11594 }
11595 as_unset=as_fn_unset
11596
11597 # as_fn_append VAR VALUE
11598 # ----------------------
11599 # Append the text in VALUE to the end of the definition contained in VAR. Take
11600 # advantage of any shell optimizations that allow amortized linear growth over
11601 # repeated appends, instead of the typical quadratic growth present in naive
11602 # implementations.
11603 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11604 then :
11605 eval 'as_fn_append ()
11606 {
11607 eval $1+=\$2
11608 }'
11609 else $as_nop
11610 as_fn_append ()
11611 {
11612 eval $1=\$$1\$2
11613 }
11614 fi # as_fn_append
11615
11616 # as_fn_arith ARG...
11617 # ------------------
11618 # Perform arithmetic evaluation on the ARGs, and store the result in the
11619 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11620 # must be portable across $(()) and expr.
11621 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11622 then :
11623 eval 'as_fn_arith ()
11624 {
11625 as_val=$(( $* ))
11626 }'
11627 else $as_nop
11628 as_fn_arith ()
11629 {
11630 as_val=`expr "$@" || test $? -eq 1`
11631 }
11632 fi # as_fn_arith
11633
11634
11635 if expr a : '\(a\)' >/dev/null 2>&1 &&
11636 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11637 as_expr=expr
11638 else
11639 as_expr=false
11640 fi
11641
11642 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11643 as_basename=basename
11644 else
11645 as_basename=false
11646 fi
11647
11648 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11649 as_dirname=dirname
11650 else
11651 as_dirname=false
11652 fi
11653
11654 as_me=`$as_basename -- "$0" ||
11655 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11656 X"$0" : 'X\(//\)$' \| \
11657 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11658 printf "%s\n" X/"$0" |
11659 sed '/^.*\/\([^/][^/]*\)\/*$/{
11660 s//\1/
11661 q
11662 }
11663 /^X\/\(\/\/\)$/{
11664 s//\1/
11665 q
11666 }
11667 /^X\/\(\/\).*/{
11668 s//\1/
11669 q
11670 }
11671 s/.*/./; q'`
11672
11673 # Avoid depending upon Character Ranges.
11674 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11675 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11676 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11677 as_cr_digits='0123456789'
11678 as_cr_alnum=$as_cr_Letters$as_cr_digits
11679
11680
11681 # Determine whether it's possible to make 'echo' print without a newline.
11682 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11683 # for compatibility with existing Makefiles.
11684 ECHO_C= ECHO_N= ECHO_T=
11685 case `echo -n x` in #(((((
11686 -n*)
11687 case `echo 'xy\c'` in
11688 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11689 xy) ECHO_C='\c';;
11690 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11691 ECHO_T=' ';;
11692 esac;;
11693 *)
11694 ECHO_N='-n';;
11695 esac
11696
11697 # For backward compatibility with old third-party macros, we provide
11698 # the shell variables $as_echo and $as_echo_n. New code should use
11699 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11700 as_echo='printf %s\n'
11701 as_echo_n='printf %s'
11702
11703 rm -f conf$$ conf$$.exe conf$$.file
11704 if test -d conf$$.dir; then
11705 rm -f conf$$.dir/conf$$.file
11706 else
11707 rm -f conf$$.dir
11708 mkdir conf$$.dir 2>/dev/null
11709 fi
11710 if (echo >conf$$.file) 2>/dev/null; then
11711 if ln -s conf$$.file conf$$ 2>/dev/null; then
11712 as_ln_s='ln -s'
11713 # ... but there are two gotchas:
11714 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11715 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11716 # In both cases, we have to default to `cp -pR'.
11717 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11718 as_ln_s='cp -pR'
11719 elif ln conf$$.file conf$$ 2>/dev/null; then
11720 as_ln_s=ln
11721 else
11722 as_ln_s='cp -pR'
11723 fi
11724 else
11725 as_ln_s='cp -pR'
11726 fi
11727 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11728 rmdir conf$$.dir 2>/dev/null
11729
11730
11731 # as_fn_mkdir_p
11732 # -------------
11733 # Create "$as_dir" as a directory, including parents if necessary.
11734 as_fn_mkdir_p ()
11735 {
11736
11737 case $as_dir in #(
11738 -*) as_dir=./$as_dir;;
11739 esac
11740 test -d "$as_dir" || eval $as_mkdir_p || {
11741 as_dirs=
11742 while :; do
11743 case $as_dir in #(
11744 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11745 *) as_qdir=$as_dir;;
11746 esac
11747 as_dirs="'$as_qdir' $as_dirs"
11748 as_dir=`$as_dirname -- "$as_dir" ||
11749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11750 X"$as_dir" : 'X\(//\)[^/]' \| \
11751 X"$as_dir" : 'X\(//\)$' \| \
11752 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11753 printf "%s\n" X"$as_dir" |
11754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11755 s//\1/
11756 q
11757 }
11758 /^X\(\/\/\)[^/].*/{
11759 s//\1/
11760 q
11761 }
11762 /^X\(\/\/\)$/{
11763 s//\1/
11764 q
11765 }
11766 /^X\(\/\).*/{
11767 s//\1/
11768 q
11769 }
11770 s/.*/./; q'`
11771 test -d "$as_dir" && break
11772 done
11773 test -z "$as_dirs" || eval "mkdir $as_dirs"
11774 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11775
11776
11777 } # as_fn_mkdir_p
11778 if mkdir -p . 2>/dev/null; then
11779 as_mkdir_p='mkdir -p "$as_dir"'
11780 else
11781 test -d ./-p && rmdir ./-p
11782 as_mkdir_p=false
11783 fi
11784
11785
11786 # as_fn_executable_p FILE
11787 # -----------------------
11788 # Test if FILE is an executable regular file.
11789 as_fn_executable_p ()
11790 {
11791 test -f "$1" && test -x "$1"
11792 } # as_fn_executable_p
11793 as_test_x='test -x'
11794 as_executable_p=as_fn_executable_p
11795
11796 # Sed expression to map a string onto a valid CPP name.
11797 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11798
11799 # Sed expression to map a string onto a valid variable name.
11800 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11801
11802
11803 exec 6>&1
11804 ## ----------------------------------- ##
11805 ## Main body of $CONFIG_STATUS script. ##
11806 ## ----------------------------------- ##
11807 _ASEOF
11808 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11809
11810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11811 # Save the log message, to keep $0 and so on meaningful, and to
11812 # report actual input values of CONFIG_FILES etc. instead of their
11813 # values after options handling.
11814 ac_log="
11815 This file was extended by rstart $as_me 1.0.6, which was
11816 generated by GNU Autoconf 2.71. Invocation command line was
11817
11818 CONFIG_FILES = $CONFIG_FILES
11819 CONFIG_HEADERS = $CONFIG_HEADERS
11820 CONFIG_LINKS = $CONFIG_LINKS
11821 CONFIG_COMMANDS = $CONFIG_COMMANDS
11822 $ $0 $@
11823
11824 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11825 "
11826
11827 _ACEOF
11828
11829 case $ac_config_files in *"
11830 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11831 esac
11832
11833 case $ac_config_headers in *"
11834 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11835 esac
11836
11837
11838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11839 # Files that config.status was made for.
11840 config_files="$ac_config_files"
11841 config_headers="$ac_config_headers"
11842 config_commands="$ac_config_commands"
11843
11844 _ACEOF
11845
11846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11847 ac_cs_usage="\
11848 \`$as_me' instantiates files and other configuration actions
11849 from templates according to the current configuration. Unless the files
11850 and actions are specified as TAGs, all are instantiated by default.
11851
11852 Usage: $0 [OPTION]... [TAG]...
11853
11854 -h, --help print this help, then exit
11855 -V, --version print version number and configuration settings, then exit
11856 --config print configuration, then exit
11857 -q, --quiet, --silent
11858 do not print progress messages
11859 -d, --debug don't remove temporary files
11860 --recheck update $as_me by reconfiguring in the same conditions
11861 --file=FILE[:TEMPLATE]
11862 instantiate the configuration file FILE
11863 --header=FILE[:TEMPLATE]
11864 instantiate the configuration header FILE
11865
11866 Configuration files:
11867 $config_files
11868
11869 Configuration headers:
11870 $config_headers
11871
11872 Configuration commands:
11873 $config_commands
11874
11875 Report bugs to <https://gitlab.freedesktop.org/xorg/app/rstart/issues>."
11876
11877 _ACEOF
11878 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
11879 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
11880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11881 ac_cs_config='$ac_cs_config_escaped'
11882 ac_cs_version="\\
11883 rstart config.status 1.0.6
11884 configured by $0, generated by GNU Autoconf 2.71,
11885 with options \\"\$ac_cs_config\\"
11886
11887 Copyright (C) 2021 Free Software Foundation, Inc.
11888 This config.status script is free software; the Free Software Foundation
11889 gives unlimited permission to copy, distribute and modify it."
11890
11891 ac_pwd='$ac_pwd'
11892 srcdir='$srcdir'
11893 INSTALL='$INSTALL'
11894 MKDIR_P='$MKDIR_P'
11895 AWK='$AWK'
11896 test -n "\$AWK" || AWK=awk
11897 _ACEOF
11898
11899 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11900 # The default lists apply if the user does not specify any file.
11901 ac_need_defaults=:
11902 while test $# != 0
11903 do
11904 case $1 in
11905 --*=?*)
11906 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11907 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11908 ac_shift=:
11909 ;;
11910 --*=)
11911 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11912 ac_optarg=
11913 ac_shift=:
11914 ;;
11915 *)
11916 ac_option=$1
11917 ac_optarg=$2
11918 ac_shift=shift
11919 ;;
11920 esac
11921
11922 case $ac_option in
11923 # Handling of the options.
11924 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11925 ac_cs_recheck=: ;;
11926 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11927 printf "%s\n" "$ac_cs_version"; exit ;;
11928 --config | --confi | --conf | --con | --co | --c )
11929 printf "%s\n" "$ac_cs_config"; exit ;;
11930 --debug | --debu | --deb | --de | --d | -d )
11931 debug=: ;;
11932 --file | --fil | --fi | --f )
11933 $ac_shift
11934 case $ac_optarg in
11935 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11936 '') as_fn_error $? "missing file argument" ;;
11937 esac
11938 as_fn_append CONFIG_FILES " '$ac_optarg'"
11939 ac_need_defaults=false;;
11940 --header | --heade | --head | --hea )
11941 $ac_shift
11942 case $ac_optarg in
11943 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11944 esac
11945 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11946 ac_need_defaults=false;;
11947 --he | --h)
11948 # Conflict between --help and --header
11949 as_fn_error $? "ambiguous option: \`$1'
11950 Try \`$0 --help' for more information.";;
11951 --help | --hel | -h )
11952 printf "%s\n" "$ac_cs_usage"; exit ;;
11953 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11954 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11955 ac_cs_silent=: ;;
11956
11957 # This is an error.
11958 -*) as_fn_error $? "unrecognized option: \`$1'
11959 Try \`$0 --help' for more information." ;;
11960
11961 *) as_fn_append ac_config_targets " $1"
11962 ac_need_defaults=false ;;
11963
11964 esac
11965 shift
11966 done
11967
11968 ac_configure_extra_args=
11969
11970 if $ac_cs_silent; then
11971 exec 6>/dev/null
11972 ac_configure_extra_args="$ac_configure_extra_args --silent"
11973 fi
11974
11975 _ACEOF
11976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11977 if \$ac_cs_recheck; then
11978 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11979 shift
11980 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
11981 CONFIG_SHELL='$SHELL'
11982 export CONFIG_SHELL
11983 exec "\$@"
11984 fi
11985
11986 _ACEOF
11987 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11988 exec 5>>config.log
11989 {
11990 echo
11991 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11992 ## Running $as_me. ##
11993 _ASBOX
11994 printf "%s\n" "$ac_log"
11995 } >&5
11996
11997 _ACEOF
11998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11999 #
12000 # INIT-COMMANDS
12001 #
12002 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12003
12004 _ACEOF
12005
12006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12007
12008 # Handling of arguments.
12009 for ac_config_target in $ac_config_targets
12010 do
12011 case $ac_config_target in
12012 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12013 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12014 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12015 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12016 "commands/Makefile") CONFIG_FILES="$CONFIG_FILES commands/Makefile" ;;
12017 "contexts/Makefile") CONFIG_FILES="$CONFIG_FILES contexts/Makefile" ;;
12018 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
12019 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
12020 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;;
12021
12022 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12023 esac
12024 done
12025
12026
12027 # If the user did not use the arguments to specify the items to instantiate,
12028 # then the envvar interface is used. Set only those that are not.
12029 # We use the long form for the default assignment because of an extremely
12030 # bizarre bug on SunOS 4.1.3.
12031 if $ac_need_defaults; then
12032 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12033 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12034 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12035 fi
12036
12037 # Have a temporary directory for convenience. Make it in the build tree
12038 # simply because there is no reason against having it here, and in addition,
12039 # creating and moving files from /tmp can sometimes cause problems.
12040 # Hook for its removal unless debugging.
12041 # Note that there is a small window in which the directory will not be cleaned:
12042 # after its creation but before its name has been assigned to `$tmp'.
12043 $debug ||
12044 {
12045 tmp= ac_tmp=
12046 trap 'exit_status=$?
12047 : "${ac_tmp:=$tmp}"
12048 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12049 ' 0
12050 trap 'as_fn_exit 1' 1 2 13 15
12051 }
12052 # Create a (secure) tmp directory for tmp files.
12053
12054 {
12055 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12056 test -d "$tmp"
12057 } ||
12058 {
12059 tmp=./conf$$-$RANDOM
12060 (umask 077 && mkdir "$tmp")
12061 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12062 ac_tmp=$tmp
12063
12064 # Set up the scripts for CONFIG_FILES section.
12065 # No need to generate them if there are no CONFIG_FILES.
12066 # This happens for instance with `./config.status config.h'.
12067 if test -n "$CONFIG_FILES"; then
12068
12069
12070 ac_cr=`echo X | tr X '\015'`
12071 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12072 # But we know of no other shell where ac_cr would be empty at this
12073 # point, so we can use a bashism as a fallback.
12074 if test "x$ac_cr" = x; then
12075 eval ac_cr=\$\'\\r\'
12076 fi
12077 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12078 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12079 ac_cs_awk_cr='\\r'
12080 else
12081 ac_cs_awk_cr=$ac_cr
12082 fi
12083
12084 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12085 _ACEOF
12086
12087
12088 {
12089 echo "cat >conf$$subs.awk <<_ACEOF" &&
12090 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12091 echo "_ACEOF"
12092 } >conf$$subs.sh ||
12093 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12094 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12095 ac_delim='%!_!# '
12096 for ac_last_try in false false false false false :; do
12097 . ./conf$$subs.sh ||
12098 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12099
12100 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12101 if test $ac_delim_n = $ac_delim_num; then
12102 break
12103 elif $ac_last_try; then
12104 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12105 else
12106 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12107 fi
12108 done
12109 rm -f conf$$subs.sh
12110
12111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12112 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12113 _ACEOF
12114 sed -n '
12115 h
12116 s/^/S["/; s/!.*/"]=/
12117 p
12118 g
12119 s/^[^!]*!//
12120 :repl
12121 t repl
12122 s/'"$ac_delim"'$//
12123 t delim
12124 :nl
12125 h
12126 s/\(.\{148\}\)..*/\1/
12127 t more1
12128 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12129 p
12130 n
12131 b repl
12132 :more1
12133 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12134 p
12135 g
12136 s/.\{148\}//
12137 t nl
12138 :delim
12139 h
12140 s/\(.\{148\}\)..*/\1/
12141 t more2
12142 s/["\\]/\\&/g; s/^/"/; s/$/"/
12143 p
12144 b
12145 :more2
12146 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12147 p
12148 g
12149 s/.\{148\}//
12150 t delim
12151 ' <conf$$subs.awk | sed '
12152 /^[^""]/{
12153 N
12154 s/\n//
12155 }
12156 ' >>$CONFIG_STATUS || ac_write_fail=1
12157 rm -f conf$$subs.awk
12158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12159 _ACAWK
12160 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12161 for (key in S) S_is_set[key] = 1
12162 FS = ""
12163
12164 }
12165 {
12166 line = $ 0
12167 nfields = split(line, field, "@")
12168 substed = 0
12169 len = length(field[1])
12170 for (i = 2; i < nfields; i++) {
12171 key = field[i]
12172 keylen = length(key)
12173 if (S_is_set[key]) {
12174 value = S[key]
12175 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12176 len += length(value) + length(field[++i])
12177 substed = 1
12178 } else
12179 len += 1 + keylen
12180 }
12181
12182 print line
12183 }
12184
12185 _ACAWK
12186 _ACEOF
12187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12188 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12189 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12190 else
12191 cat
12192 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12193 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12194 _ACEOF
12195
12196 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12197 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12198 # trailing colons and then remove the whole line if VPATH becomes empty
12199 # (actually we leave an empty line to preserve line numbers).
12200 if test "x$srcdir" = x.; then
12201 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12202 h
12203 s///
12204 s/^/:/
12205 s/[ ]*$/:/
12206 s/:\$(srcdir):/:/g
12207 s/:\${srcdir}:/:/g
12208 s/:@srcdir@:/:/g
12209 s/^:*//
12210 s/:*$//
12211 x
12212 s/\(=[ ]*\).*/\1/
12213 G
12214 s/\n//
12215 s/^[^=]*=[ ]*$//
12216 }'
12217 fi
12218
12219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12220 fi # test -n "$CONFIG_FILES"
12221
12222 # Set up the scripts for CONFIG_HEADERS section.
12223 # No need to generate them if there are no CONFIG_HEADERS.
12224 # This happens for instance with `./config.status Makefile'.
12225 if test -n "$CONFIG_HEADERS"; then
12226 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12227 BEGIN {
12228 _ACEOF
12229
12230 # Transform confdefs.h into an awk script `defines.awk', embedded as
12231 # here-document in config.status, that substitutes the proper values into
12232 # config.h.in to produce config.h.
12233
12234 # Create a delimiter string that does not exist in confdefs.h, to ease
12235 # handling of long lines.
12236 ac_delim='%!_!# '
12237 for ac_last_try in false false :; do
12238 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12239 if test -z "$ac_tt"; then
12240 break
12241 elif $ac_last_try; then
12242 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12243 else
12244 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12245 fi
12246 done
12247
12248 # For the awk script, D is an array of macro values keyed by name,
12249 # likewise P contains macro parameters if any. Preserve backslash
12250 # newline sequences.
12251
12252 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12253 sed -n '
12254 s/.\{148\}/&'"$ac_delim"'/g
12255 t rset
12256 :rset
12257 s/^[ ]*#[ ]*define[ ][ ]*/ /
12258 t def
12259 d
12260 :def
12261 s/\\$//
12262 t bsnl
12263 s/["\\]/\\&/g
12264 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12265 D["\1"]=" \3"/p
12266 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12267 d
12268 :bsnl
12269 s/["\\]/\\&/g
12270 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12271 D["\1"]=" \3\\\\\\n"\\/p
12272 t cont
12273 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12274 t cont
12275 d
12276 :cont
12277 n
12278 s/.\{148\}/&'"$ac_delim"'/g
12279 t clear
12280 :clear
12281 s/\\$//
12282 t bsnlc
12283 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12284 d
12285 :bsnlc
12286 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12287 b cont
12288 ' <confdefs.h | sed '
12289 s/'"$ac_delim"'/"\\\
12290 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12291
12292 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12293 for (key in D) D_is_set[key] = 1
12294 FS = ""
12295 }
12296 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12297 line = \$ 0
12298 split(line, arg, " ")
12299 if (arg[1] == "#") {
12300 defundef = arg[2]
12301 mac1 = arg[3]
12302 } else {
12303 defundef = substr(arg[1], 2)
12304 mac1 = arg[2]
12305 }
12306 split(mac1, mac2, "(") #)
12307 macro = mac2[1]
12308 prefix = substr(line, 1, index(line, defundef) - 1)
12309 if (D_is_set[macro]) {
12310 # Preserve the white space surrounding the "#".
12311 print prefix "define", macro P[macro] D[macro]
12312 next
12313 } else {
12314 # Replace #undef with comments. This is necessary, for example,
12315 # in the case of _POSIX_SOURCE, which is predefined and required
12316 # on some systems where configure will not decide to define it.
12317 if (defundef == "undef") {
12318 print "/*", prefix defundef, macro, "*/"
12319 next
12320 }
12321 }
12322 }
12323 { print }
12324 _ACAWK
12325 _ACEOF
12326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12327 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12328 fi # test -n "$CONFIG_HEADERS"
12329
12330
12331 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12332 shift
12333 for ac_tag
12334 do
12335 case $ac_tag in
12336 :[FHLC]) ac_mode=$ac_tag; continue;;
12337 esac
12338 case $ac_mode$ac_tag in
12339 :[FHL]*:*);;
12340 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12341 :[FH]-) ac_tag=-:-;;
12342 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12343 esac
12344 ac_save_IFS=$IFS
12345 IFS=:
12346 set x $ac_tag
12347 IFS=$ac_save_IFS
12348 shift
12349 ac_file=$1
12350 shift
12351
12352 case $ac_mode in
12353 :L) ac_source=$1;;
12354 :[FH])
12355 ac_file_inputs=
12356 for ac_f
12357 do
12358 case $ac_f in
12359 -) ac_f="$ac_tmp/stdin";;
12360 *) # Look for the file first in the build tree, then in the source tree
12361 # (if the path is not absolute). The absolute path cannot be DOS-style,
12362 # because $ac_f cannot contain `:'.
12363 test -f "$ac_f" ||
12364 case $ac_f in
12365 [\\/$]*) false;;
12366 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12367 esac ||
12368 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12369 esac
12370 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12371 as_fn_append ac_file_inputs " '$ac_f'"
12372 done
12373
12374 # Let's still pretend it is `configure' which instantiates (i.e., don't
12375 # use $as_me), people would be surprised to read:
12376 # /* config.h. Generated by config.status. */
12377 configure_input='Generated from '`
12378 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12379 `' by configure.'
12380 if test x"$ac_file" != x-; then
12381 configure_input="$ac_file. $configure_input"
12382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12383 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12384 fi
12385 # Neutralize special characters interpreted by sed in replacement strings.
12386 case $configure_input in #(
12387 *\&* | *\|* | *\\* )
12388 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12389 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12390 *) ac_sed_conf_input=$configure_input;;
12391 esac
12392
12393 case $ac_tag in
12394 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12395 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12396 esac
12397 ;;
12398 esac
12399
12400 ac_dir=`$as_dirname -- "$ac_file" ||
12401 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12402 X"$ac_file" : 'X\(//\)[^/]' \| \
12403 X"$ac_file" : 'X\(//\)$' \| \
12404 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12405 printf "%s\n" X"$ac_file" |
12406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12407 s//\1/
12408 q
12409 }
12410 /^X\(\/\/\)[^/].*/{
12411 s//\1/
12412 q
12413 }
12414 /^X\(\/\/\)$/{
12415 s//\1/
12416 q
12417 }
12418 /^X\(\/\).*/{
12419 s//\1/
12420 q
12421 }
12422 s/.*/./; q'`
12423 as_dir="$ac_dir"; as_fn_mkdir_p
12424 ac_builddir=.
12425
12426 case "$ac_dir" in
12427 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12428 *)
12429 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12430 # A ".." for each directory in $ac_dir_suffix.
12431 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12432 case $ac_top_builddir_sub in
12433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12435 esac ;;
12436 esac
12437 ac_abs_top_builddir=$ac_pwd
12438 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12439 # for backward compatibility:
12440 ac_top_builddir=$ac_top_build_prefix
12441
12442 case $srcdir in
12443 .) # We are building in place.
12444 ac_srcdir=.
12445 ac_top_srcdir=$ac_top_builddir_sub
12446 ac_abs_top_srcdir=$ac_pwd ;;
12447 [\\/]* | ?:[\\/]* ) # Absolute name.
12448 ac_srcdir=$srcdir$ac_dir_suffix;
12449 ac_top_srcdir=$srcdir
12450 ac_abs_top_srcdir=$srcdir ;;
12451 *) # Relative name.
12452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12453 ac_top_srcdir=$ac_top_build_prefix$srcdir
12454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12455 esac
12456 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12457
12458
12459 case $ac_mode in
12460 :F)
12461 #
12462 # CONFIG_FILE
12463 #
12464
12465 case $INSTALL in
12466 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12467 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12468 esac
12469 ac_MKDIR_P=$MKDIR_P
12470 case $MKDIR_P in
12471 [\\/$]* | ?:[\\/]* ) ;;
12472 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12473 esac
12474 _ACEOF
12475
12476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12477 # If the template does not know about datarootdir, expand it.
12478 # FIXME: This hack should be removed a few years after 2.60.
12479 ac_datarootdir_hack=; ac_datarootdir_seen=
12480 ac_sed_dataroot='
12481 /datarootdir/ {
12482 p
12483 q
12484 }
12485 /@datadir@/p
12486 /@docdir@/p
12487 /@infodir@/p
12488 /@localedir@/p
12489 /@mandir@/p'
12490 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12491 *datarootdir*) ac_datarootdir_seen=yes;;
12492 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12494 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12495 _ACEOF
12496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12497 ac_datarootdir_hack='
12498 s&@datadir@&$datadir&g
12499 s&@docdir@&$docdir&g
12500 s&@infodir@&$infodir&g
12501 s&@localedir@&$localedir&g
12502 s&@mandir@&$mandir&g
12503 s&\\\${datarootdir}&$datarootdir&g' ;;
12504 esac
12505 _ACEOF
12506
12507 # Neutralize VPATH when `$srcdir' = `.'.
12508 # Shell code in configure.ac might set extrasub.
12509 # FIXME: do we really want to maintain this feature?
12510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12511 ac_sed_extra="$ac_vpsub
12512 $extrasub
12513 _ACEOF
12514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12515 :t
12516 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12517 s|@configure_input@|$ac_sed_conf_input|;t t
12518 s&@top_builddir@&$ac_top_builddir_sub&;t t
12519 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12520 s&@srcdir@&$ac_srcdir&;t t
12521 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12522 s&@top_srcdir@&$ac_top_srcdir&;t t
12523 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12524 s&@builddir@&$ac_builddir&;t t
12525 s&@abs_builddir@&$ac_abs_builddir&;t t
12526 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12527 s&@INSTALL@&$ac_INSTALL&;t t
12528 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12529 $ac_datarootdir_hack
12530 "
12531 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12532 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12533
12534 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12535 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12536 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12537 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12539 which seems to be undefined. Please make sure it is defined" >&5
12540 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12541 which seems to be undefined. Please make sure it is defined" >&2;}
12542
12543 rm -f "$ac_tmp/stdin"
12544 case $ac_file in
12545 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12546 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12547 esac \
12548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12549 ;;
12550 :H)
12551 #
12552 # CONFIG_HEADER
12553 #
12554 if test x"$ac_file" != x-; then
12555 {
12556 printf "%s\n" "/* $configure_input */" >&1 \
12557 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12558 } >"$ac_tmp/config.h" \
12559 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12560 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12562 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12563 else
12564 rm -f "$ac_file"
12565 mv "$ac_tmp/config.h" "$ac_file" \
12566 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12567 fi
12568 else
12569 printf "%s\n" "/* $configure_input */" >&1 \
12570 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12571 || as_fn_error $? "could not create -" "$LINENO" 5
12572 fi
12573 # Compute "$ac_file"'s index in $config_headers.
12574 _am_arg="$ac_file"
12575 _am_stamp_count=1
12576 for _am_header in $config_headers :; do
12577 case $_am_header in
12578 $_am_arg | $_am_arg:* )
12579 break ;;
12580 * )
12581 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12582 esac
12583 done
12584 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12585 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12586 X"$_am_arg" : 'X\(//\)[^/]' \| \
12587 X"$_am_arg" : 'X\(//\)$' \| \
12588 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12589 printf "%s\n" X"$_am_arg" |
12590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12591 s//\1/
12592 q
12593 }
12594 /^X\(\/\/\)[^/].*/{
12595 s//\1/
12596 q
12597 }
12598 /^X\(\/\/\)$/{
12599 s//\1/
12600 q
12601 }
12602 /^X\(\/\).*/{
12603 s//\1/
12604 q
12605 }
12606 s/.*/./; q'`/stamp-h$_am_stamp_count
12607 ;;
12608
12609 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12610 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12611 ;;
12612 esac
12613
12614
12615 case $ac_file$ac_mode in
12616 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12617 # Older Autoconf quotes --file arguments for eval, but not when files
12618 # are listed without --file. Let's play safe and only enable the eval
12619 # if we detect the quoting.
12620 # TODO: see whether this extra hack can be removed once we start
12621 # requiring Autoconf 2.70 or later.
12622 case $CONFIG_FILES in #(
12623 *\'*) :
12624 eval set x "$CONFIG_FILES" ;; #(
12625 *) :
12626 set x $CONFIG_FILES ;; #(
12627 *) :
12628 ;;
12629 esac
12630 shift
12631 # Used to flag and report bootstrapping failures.
12632 am_rc=0
12633 for am_mf
12634 do
12635 # Strip MF so we end up with the name of the file.
12636 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12637 # Check whether this is an Automake generated Makefile which includes
12638 # dependency-tracking related rules and includes.
12639 # Grep'ing the whole file directly is not great: AIX grep has a line
12640 # limit of 2048, but all sed's we know have understand at least 4000.
12641 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12642 || continue
12643 am_dirpart=`$as_dirname -- "$am_mf" ||
12644 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12645 X"$am_mf" : 'X\(//\)[^/]' \| \
12646 X"$am_mf" : 'X\(//\)$' \| \
12647 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12648 printf "%s\n" X"$am_mf" |
12649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12650 s//\1/
12651 q
12652 }
12653 /^X\(\/\/\)[^/].*/{
12654 s//\1/
12655 q
12656 }
12657 /^X\(\/\/\)$/{
12658 s//\1/
12659 q
12660 }
12661 /^X\(\/\).*/{
12662 s//\1/
12663 q
12664 }
12665 s/.*/./; q'`
12666 am_filepart=`$as_basename -- "$am_mf" ||
12667 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12668 X"$am_mf" : 'X\(//\)$' \| \
12669 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12670 printf "%s\n" X/"$am_mf" |
12671 sed '/^.*\/\([^/][^/]*\)\/*$/{
12672 s//\1/
12673 q
12674 }
12675 /^X\/\(\/\/\)$/{
12676 s//\1/
12677 q
12678 }
12679 /^X\/\(\/\).*/{
12680 s//\1/
12681 q
12682 }
12683 s/.*/./; q'`
12684 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12685 && sed -e '/# am--include-marker/d' "$am_filepart" \
12686 | $MAKE -f - am--depfiles" >&5
12687 (cd "$am_dirpart" \
12688 && sed -e '/# am--include-marker/d' "$am_filepart" \
12689 | $MAKE -f - am--depfiles) >&5 2>&5
12690 ac_status=$?
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } || am_rc=$?
12693 done
12694 if test $am_rc -ne 0; then
12695 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12696 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12697 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12698 for automatic dependency tracking. If GNU make was not used, consider
12699 re-running the configure script with MAKE=\"gmake\" (or whatever is
12700 necessary). You can also try re-running configure with the
12701 '--disable-dependency-tracking' option to at least be able to build
12702 the package (albeit without support for automatic dependency tracking).
12703 See \`config.log' for more details" "$LINENO" 5; }
12704 fi
12705 { am_dirpart=; unset am_dirpart;}
12706 { am_filepart=; unset am_filepart;}
12707 { am_mf=; unset am_mf;}
12708 { am_rc=; unset am_rc;}
12709 rm -f conftest-deps.mk
12710 }
12711 ;;
12712
12713 esac
12714 done # for ac_tag
12715
12716
12717 as_fn_exit 0
12718 _ACEOF
12719 ac_clean_files=$ac_clean_files_save
12720
12721 test $ac_write_fail = 0 ||
12722 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12723
12724
12725 # configure is writing to config.log, and then calls config.status.
12726 # config.status does its own redirection, appending to config.log.
12727 # Unfortunately, on DOS this fails, as config.log is still kept open
12728 # by configure, so config.status won't be able to write to it; its
12729 # output is simply discarded. So we exec the FD to /dev/null,
12730 # effectively closing config.log, so it can be properly (re)opened and
12731 # appended to by config.status. When coming back to configure, we
12732 # need to make the FD available again.
12733 if test "$no_create" != yes; then
12734 ac_cs_success=:
12735 ac_config_status_args=
12736 test "$silent" = yes &&
12737 ac_config_status_args="$ac_config_status_args --quiet"
12738 exec 5>/dev/null
12739 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12740 exec 5>>config.log
12741 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12742 # would make configure fail if this is the last instruction.
12743 $ac_cs_success || as_fn_exit 1
12744 fi
12745 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12747 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12748 fi
12749
12750