configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xmag 1.0.7.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmag/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
271 $0: https://gitlab.freedesktop.org/xorg/app/xmag/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='xmag'
614 PACKAGE_TARNAME='xmag'
615 PACKAGE_VERSION='1.0.7'
616 PACKAGE_STRING='xmag 1.0.7'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xmag/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 appdefaultdir
658 XMAG_LIBS
659 XMAG_CFLAGS
660 MAN_SUBSTS
661 XORG_MAN_PAGE
662 ADMIN_MAN_DIR
663 DRIVER_MAN_DIR
664 MISC_MAN_DIR
665 FILE_MAN_DIR
666 LIB_MAN_DIR
667 APP_MAN_DIR
668 ADMIN_MAN_SUFFIX
669 DRIVER_MAN_SUFFIX
670 MISC_MAN_SUFFIX
671 FILE_MAN_SUFFIX
672 LIB_MAN_SUFFIX
673 APP_MAN_SUFFIX
674 SED
675 host_os
676 host_vendor
677 host_cpu
678 host
679 build_os
680 build_vendor
681 build_cpu
682 build
683 INSTALL_CMD
684 PKG_CONFIG_LIBDIR
685 PKG_CONFIG_PATH
686 PKG_CONFIG
687 CHANGELOG_CMD
688 STRICT_CFLAGS
689 CWARNFLAGS
690 BASE_CFLAGS
691 am__fastdepCC_FALSE
692 am__fastdepCC_TRUE
693 CCDEPMODE
694 am__nodep
695 AMDEPBACKSLASH
696 AMDEP_FALSE
697 AMDEP_TRUE
698 am__include
699 DEPDIR
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 AM_BACKSLASH
708 AM_DEFAULT_VERBOSITY
709 AM_DEFAULT_V
710 AM_V
711 CSCOPE
712 ETAGS
713 CTAGS
714 am__untar
715 am__tar
716 AMTAR
717 am__leading_dot
718 SET_MAKE
719 AWK
720 mkdir_p
721 MKDIR_P
722 INSTALL_STRIP_PROGRAM
723 STRIP
724 install_sh
725 MAKEINFO
726 AUTOHEADER
727 AUTOMAKE
728 AUTOCONF
729 ACLOCAL
730 VERSION
731 PACKAGE
732 CYGPATH_W
733 am__isrc
734 INSTALL_DATA
735 INSTALL_SCRIPT
736 INSTALL_PROGRAM
737 target_alias
738 host_alias
739 build_alias
740 LIBS
741 ECHO_T
742 ECHO_N
743 ECHO_C
744 DEFS
745 mandir
746 localedir
747 libdir
748 psdir
749 pdfdir
750 dvidir
751 htmldir
752 infodir
753 docdir
754 oldincludedir
755 includedir
756 runstatedir
757 localstatedir
758 sharedstatedir
759 sysconfdir
760 datadir
761 datarootdir
762 libexecdir
763 sbindir
764 bindir
765 program_transform_name
766 prefix
767 exec_prefix
768 PACKAGE_URL
769 PACKAGE_BUGREPORT
770 PACKAGE_STRING
771 PACKAGE_VERSION
772 PACKAGE_TARNAME
773 PACKAGE_NAME
774 PATH_SEPARATOR
775 SHELL
776 am__quote'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 enable_silent_rules
781 enable_dependency_tracking
782 enable_selective_werror
783 enable_strict_compilation
784 with_appdefaultdir
785 '
786 ac_precious_vars='build_alias
787 host_alias
788 target_alias
789 CC
790 CFLAGS
791 LDFLAGS
792 LIBS
793 CPPFLAGS
794 PKG_CONFIG
795 PKG_CONFIG_PATH
796 PKG_CONFIG_LIBDIR
797 XMAG_CFLAGS
798 XMAG_LIBS'
799
800
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
822
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 runstatedir='${localstatedir}/run'
838 includedir='${prefix}/include'
839 oldincludedir='/usr/include'
840 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
841 infodir='${datarootdir}/info'
842 htmldir='${docdir}'
843 dvidir='${docdir}'
844 pdfdir='${docdir}'
845 psdir='${docdir}'
846 libdir='${exec_prefix}/lib'
847 localedir='${datarootdir}/locale'
848 mandir='${datarootdir}/man'
849
850 ac_prev=
851 ac_dashdash=
852 for ac_option
853 do
854 # If the previous option needs an argument, assign it.
855 if test -n "$ac_prev"; then
856 eval $ac_prev=\$ac_option
857 ac_prev=
858 continue
859 fi
860
861 case $ac_option in
862 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
863 *=) ac_optarg= ;;
864 *) ac_optarg=yes ;;
865 esac
866
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
895
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: \`$ac_useropt'"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
928
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: \`$ac_useropt'"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -runstatedir | --runstatedir | --runstatedi | --runstated \
1089 | --runstate | --runstat | --runsta | --runst | --runs \
1090 | --run | --ru | --r)
1091 ac_prev=runstatedir ;;
1092 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1093 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1094 | --run=* | --ru=* | --r=*)
1095 runstatedir=$ac_optarg ;;
1096
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1102
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1113
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1118
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1123
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1130
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1135
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1138
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1141
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: \`$ac_useropt'"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1150 *"
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1157
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: \`$ac_useropt'"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1166 *"
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1173
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1177
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1184
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1191
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1194 ;;
1195
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1205
1206 *)
1207 # FIXME: should be removed in autoconf 3.0.
1208 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 ;;
1213
1214 esac
1215 done
1216
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1220 fi
1221
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1228 fi
1229
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir runstatedir
1235 do
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1250
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1257
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1264 fi
1265 fi
1266
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1269
1270 test "$silent" = yes && exec 6>/dev/null
1271
1272
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $? "pwd does not report name of working directory"
1279
1280
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 printf "%s\n" X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\/\)$/{
1300 s//\1/
1301 q
1302 }
1303 /^X\(\/\).*/{
1304 s//\1/
1305 q
1306 }
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1311 fi
1312 else
1313 ac_srcdir_defaulted=no
1314 fi
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1318 fi
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1326 fi
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1339
1340 #
1341 # Report the --help message.
1342 #
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347 \`configure' configures xmag 1.0.7 to adapt to many kinds of systems.
1348
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1350
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1353
1354 Defaults for the options are specified in brackets.
1355
1356 Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1366
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 [PREFIX]
1372
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1377
1378 For better control, use the options below.
1379
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/xmag]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1401 _ACEOF
1402
1403 cat <<\_ACEOF
1404
1405 Program names:
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409
1410 System types:
1411 --build=BUILD configure for building on BUILD [guessed]
1412 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1413 _ACEOF
1414 fi
1415
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short | recursive ) echo "Configuration of xmag 1.0.7:";;
1419 esac
1420 cat <<\_ACEOF
1421
1422 Optional Features:
1423 --disable-option-checking ignore unrecognized --enable/--with options
1424 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1425 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1426 --enable-silent-rules less verbose build output (undo: "make V=1")
1427 --disable-silent-rules verbose build output (undo: "make V=0")
1428 --enable-dependency-tracking
1429 do not reject slow dependency extractors
1430 --disable-dependency-tracking
1431 speeds up one-time build
1432 --disable-selective-werror
1433 Turn off selective compiler errors. (default:
1434 enabled)
1435 --enable-strict-compilation
1436 Enable all warnings from compiler and make them
1437 errors (default: disabled)
1438
1439 Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-appdefaultdir=<pathname>
1443 specify directory for app-defaults files (default is
1444 autodetected)
1445
1446 Some influential environment variables:
1447 CC C compiler command
1448 CFLAGS C compiler flags
1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
1451 LIBS libraries to pass to the linker, e.g. -l<library>
1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453 you have headers in a nonstandard directory <include dir>
1454 PKG_CONFIG path to pkg-config utility
1455 PKG_CONFIG_PATH
1456 directories to add to pkg-config's search path
1457 PKG_CONFIG_LIBDIR
1458 path overriding pkg-config's built-in search path
1459 XMAG_CFLAGS C compiler flags for XMAG, overriding pkg-config
1460 XMAG_LIBS linker flags for XMAG, overriding pkg-config
1461
1462 Use these variables to override the choices made by `configure' or to help
1463 it to find libraries and programs with nonstandard names/locations.
1464
1465 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmag/issues>.
1466 _ACEOF
1467 ac_status=$?
1468 fi
1469
1470 if test "$ac_init_help" = "recursive"; then
1471 # If there are subdirs, report their specific --help.
1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473 test -d "$ac_dir" ||
1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475 continue
1476 ac_builddir=.
1477
1478 case "$ac_dir" in
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *)
1481 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1482 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484 case $ac_top_builddir_sub in
1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487 esac ;;
1488 esac
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1493
1494 case $srcdir in
1495 .) # We are building in place.
1496 ac_srcdir=.
1497 ac_top_srcdir=$ac_top_builddir_sub
1498 ac_abs_top_srcdir=$ac_pwd ;;
1499 [\\/]* | ?:[\\/]* ) # Absolute name.
1500 ac_srcdir=$srcdir$ac_dir_suffix;
1501 ac_top_srcdir=$srcdir
1502 ac_abs_top_srcdir=$srcdir ;;
1503 *) # Relative name.
1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505 ac_top_srcdir=$ac_top_build_prefix$srcdir
1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 esac
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1509
1510 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for configure.gnu first; this name is used for a wrapper for
1512 # Metaconfig's "Configure" on case-insensitive file systems.
1513 if test -f "$ac_srcdir/configure.gnu"; then
1514 echo &&
1515 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516 elif test -f "$ac_srcdir/configure"; then
1517 echo &&
1518 $SHELL "$ac_srcdir/configure" --help=recursive
1519 else
1520 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521 fi || ac_status=$?
1522 cd "$ac_pwd" || { ac_status=$?; break; }
1523 done
1524 fi
1525
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1528 cat <<\_ACEOF
1529 xmag configure 1.0.7
1530 generated by GNU Autoconf 2.71
1531
1532 Copyright (C) 2021 Free Software Foundation, Inc.
1533 This configure script is free software; the Free Software Foundation
1534 gives unlimited permission to copy, distribute and modify it.
1535 _ACEOF
1536 exit
1537 fi
1538
1539 ## ------------------------ ##
1540 ## Autoconf initialization. ##
1541 ## ------------------------ ##
1542
1543 # ac_fn_c_try_compile LINENO
1544 # --------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_compile ()
1547 {
1548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549 rm -f conftest.$ac_objext conftest.beam
1550 if { { ac_try="$ac_compile"
1551 case "(($ac_try" in
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 printf "%s\n" "$ac_try_echo"; } >&5
1557 (eval "$ac_compile") 2>conftest.err
1558 ac_status=$?
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1563 fi
1564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } && {
1566 test -z "$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1568 } && test -s conftest.$ac_objext
1569 then :
1570 ac_retval=0
1571 else $as_nop
1572 printf "%s\n" "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1574
1575 ac_retval=1
1576 fi
1577 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578 as_fn_set_status $ac_retval
1579
1580 } # ac_fn_c_try_compile
1581
1582 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1583 # ------------------------------------------------------------------
1584 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1585 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1586 ac_fn_check_decl ()
1587 {
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 as_decl_name=`echo $2|sed 's/ *(.*//'`
1590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1591 printf %s "checking whether $as_decl_name is declared... " >&6; }
1592 if eval test \${$3+y}
1593 then :
1594 printf %s "(cached) " >&6
1595 else $as_nop
1596 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1597 eval ac_save_FLAGS=\$$6
1598 as_fn_append $6 " $5"
1599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1600 /* end confdefs.h. */
1601 $4
1602 int
1603 main (void)
1604 {
1605 #ifndef $as_decl_name
1606 #ifdef __cplusplus
1607 (void) $as_decl_use;
1608 #else
1609 (void) $as_decl_name;
1610 #endif
1611 #endif
1612
1613 ;
1614 return 0;
1615 }
1616 _ACEOF
1617 if ac_fn_c_try_compile "$LINENO"
1618 then :
1619 eval "$3=yes"
1620 else $as_nop
1621 eval "$3=no"
1622 fi
1623 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1624 eval $6=\$ac_save_FLAGS
1625
1626 fi
1627 eval ac_res=\$$3
1628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1629 printf "%s\n" "$ac_res" >&6; }
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631
1632 } # ac_fn_check_decl
1633
1634 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1635 # -------------------------------------------------------
1636 # Tests whether HEADER exists and can be compiled using the include files in
1637 # INCLUDES, setting the cache variable VAR accordingly.
1638 ac_fn_c_check_header_compile ()
1639 {
1640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1642 printf %s "checking for $2... " >&6; }
1643 if eval test \${$3+y}
1644 then :
1645 printf %s "(cached) " >&6
1646 else $as_nop
1647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1648 /* end confdefs.h. */
1649 $4
1650 #include <$2>
1651 _ACEOF
1652 if ac_fn_c_try_compile "$LINENO"
1653 then :
1654 eval "$3=yes"
1655 else $as_nop
1656 eval "$3=no"
1657 fi
1658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1659 fi
1660 eval ac_res=\$$3
1661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 printf "%s\n" "$ac_res" >&6; }
1663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664
1665 } # ac_fn_c_check_header_compile
1666
1667 # ac_fn_c_try_link LINENO
1668 # -----------------------
1669 # Try to link conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_link ()
1671 {
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1674 if { { ac_try="$ac_link"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 printf "%s\n" "$ac_try_echo"; } >&5
1681 (eval "$ac_link") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest$ac_exeext && {
1693 test "$cross_compiling" = yes ||
1694 test -x conftest$ac_exeext
1695 }
1696 then :
1697 ac_retval=0
1698 else $as_nop
1699 printf "%s\n" "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=1
1703 fi
1704 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1705 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1706 # interfere with the next link command; also delete a directory that is
1707 # left behind by Apple's compiler. We do this before executing the actions.
1708 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710 as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_link
1713
1714 # ac_fn_c_check_func LINENO FUNC VAR
1715 # ----------------------------------
1716 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1717 ac_fn_c_check_func ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 printf %s "checking for $2... " >&6; }
1722 if eval test \${$3+y}
1723 then :
1724 printf %s "(cached) " >&6
1725 else $as_nop
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1728 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1730 #define $2 innocuous_$2
1731
1732 /* System header to define __stub macros and hopefully few prototypes,
1733 which can conflict with char $2 (); below. */
1734
1735 #include <limits.h>
1736 #undef $2
1737
1738 /* Override any GCC internal prototype to avoid an error.
1739 Use char because int might match the return type of a GCC
1740 builtin and then its argument prototype would still apply. */
1741 #ifdef __cplusplus
1742 extern "C"
1743 #endif
1744 char $2 ();
1745 /* The GNU C library defines this for functions which it implements
1746 to always fail with ENOSYS. Some functions are actually named
1747 something starting with __ and the normal name is an alias. */
1748 #if defined __stub_$2 || defined __stub___$2
1749 choke me
1750 #endif
1751
1752 int
1753 main (void)
1754 {
1755 return $2 ();
1756 ;
1757 return 0;
1758 }
1759 _ACEOF
1760 if ac_fn_c_try_link "$LINENO"
1761 then :
1762 eval "$3=yes"
1763 else $as_nop
1764 eval "$3=no"
1765 fi
1766 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1767 conftest$ac_exeext conftest.$ac_ext
1768 fi
1769 eval ac_res=\$$3
1770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1771 printf "%s\n" "$ac_res" >&6; }
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773
1774 } # ac_fn_c_check_func
1775 ac_configure_args_raw=
1776 for ac_arg
1777 do
1778 case $ac_arg in
1779 *\'*)
1780 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1781 esac
1782 as_fn_append ac_configure_args_raw " '$ac_arg'"
1783 done
1784
1785 case $ac_configure_args_raw in
1786 *$as_nl*)
1787 ac_safe_unquote= ;;
1788 *)
1789 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1790 ac_unsafe_a="$ac_unsafe_z#~"
1791 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1792 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1793 esac
1794
1795 cat >config.log <<_ACEOF
1796 This file contains any messages produced by compilers while
1797 running configure, to aid debugging if configure makes a mistake.
1798
1799 It was created by xmag $as_me 1.0.7, which was
1800 generated by GNU Autoconf 2.71. Invocation command line was
1801
1802 $ $0$ac_configure_args_raw
1803
1804 _ACEOF
1805 exec 5>>config.log
1806 {
1807 cat <<_ASUNAME
1808 ## --------- ##
1809 ## Platform. ##
1810 ## --------- ##
1811
1812 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1813 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1814 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1815 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1816 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1817
1818 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1819 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1820
1821 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1822 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1823 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1824 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1825 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1826 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1827 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1828
1829 _ASUNAME
1830
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 for as_dir in $PATH
1833 do
1834 IFS=$as_save_IFS
1835 case $as_dir in #(((
1836 '') as_dir=./ ;;
1837 */) ;;
1838 *) as_dir=$as_dir/ ;;
1839 esac
1840 printf "%s\n" "PATH: $as_dir"
1841 done
1842 IFS=$as_save_IFS
1843
1844 } >&5
1845
1846 cat >&5 <<_ACEOF
1847
1848
1849 ## ----------- ##
1850 ## Core tests. ##
1851 ## ----------- ##
1852
1853 _ACEOF
1854
1855
1856 # Keep a trace of the command line.
1857 # Strip out --no-create and --no-recursion so they do not pile up.
1858 # Strip out --silent because we don't want to record it for future runs.
1859 # Also quote any args containing shell meta-characters.
1860 # Make two passes to allow for proper duplicate-argument suppression.
1861 ac_configure_args=
1862 ac_configure_args0=
1863 ac_configure_args1=
1864 ac_must_keep_next=false
1865 for ac_pass in 1 2
1866 do
1867 for ac_arg
1868 do
1869 case $ac_arg in
1870 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1871 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1872 | -silent | --silent | --silen | --sile | --sil)
1873 continue ;;
1874 *\'*)
1875 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1876 esac
1877 case $ac_pass in
1878 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1879 2)
1880 as_fn_append ac_configure_args1 " '$ac_arg'"
1881 if test $ac_must_keep_next = true; then
1882 ac_must_keep_next=false # Got value, back to normal.
1883 else
1884 case $ac_arg in
1885 *=* | --config-cache | -C | -disable-* | --disable-* \
1886 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1887 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1888 | -with-* | --with-* | -without-* | --without-* | --x)
1889 case "$ac_configure_args0 " in
1890 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1891 esac
1892 ;;
1893 -* ) ac_must_keep_next=true ;;
1894 esac
1895 fi
1896 as_fn_append ac_configure_args " '$ac_arg'"
1897 ;;
1898 esac
1899 done
1900 done
1901 { ac_configure_args0=; unset ac_configure_args0;}
1902 { ac_configure_args1=; unset ac_configure_args1;}
1903
1904 # When interrupted or exit'd, cleanup temporary files, and complete
1905 # config.log. We remove comments because anyway the quotes in there
1906 # would cause problems or look ugly.
1907 # WARNING: Use '\'' to represent an apostrophe within the trap.
1908 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1909 trap 'exit_status=$?
1910 # Sanitize IFS.
1911 IFS=" "" $as_nl"
1912 # Save into config.log some information that might help in debugging.
1913 {
1914 echo
1915
1916 printf "%s\n" "## ---------------- ##
1917 ## Cache variables. ##
1918 ## ---------------- ##"
1919 echo
1920 # The following way of writing the cache mishandles newlines in values,
1921 (
1922 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1923 eval ac_val=\$$ac_var
1924 case $ac_val in #(
1925 *${as_nl}*)
1926 case $ac_var in #(
1927 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1928 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1929 esac
1930 case $ac_var in #(
1931 _ | IFS | as_nl) ;; #(
1932 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1933 *) { eval $ac_var=; unset $ac_var;} ;;
1934 esac ;;
1935 esac
1936 done
1937 (set) 2>&1 |
1938 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1939 *${as_nl}ac_space=\ *)
1940 sed -n \
1941 "s/'\''/'\''\\\\'\'''\''/g;
1942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1943 ;; #(
1944 *)
1945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1946 ;;
1947 esac |
1948 sort
1949 )
1950 echo
1951
1952 printf "%s\n" "## ----------------- ##
1953 ## Output variables. ##
1954 ## ----------------- ##"
1955 echo
1956 for ac_var in $ac_subst_vars
1957 do
1958 eval ac_val=\$$ac_var
1959 case $ac_val in
1960 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1961 esac
1962 printf "%s\n" "$ac_var='\''$ac_val'\''"
1963 done | sort
1964 echo
1965
1966 if test -n "$ac_subst_files"; then
1967 printf "%s\n" "## ------------------- ##
1968 ## File substitutions. ##
1969 ## ------------------- ##"
1970 echo
1971 for ac_var in $ac_subst_files
1972 do
1973 eval ac_val=\$$ac_var
1974 case $ac_val in
1975 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1976 esac
1977 printf "%s\n" "$ac_var='\''$ac_val'\''"
1978 done | sort
1979 echo
1980 fi
1981
1982 if test -s confdefs.h; then
1983 printf "%s\n" "## ----------- ##
1984 ## confdefs.h. ##
1985 ## ----------- ##"
1986 echo
1987 cat confdefs.h
1988 echo
1989 fi
1990 test "$ac_signal" != 0 &&
1991 printf "%s\n" "$as_me: caught signal $ac_signal"
1992 printf "%s\n" "$as_me: exit $exit_status"
1993 } >&5
1994 rm -f core *.core core.conftest.* &&
1995 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1996 exit $exit_status
1997 ' 0
1998 for ac_signal in 1 2 13 15; do
1999 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2000 done
2001 ac_signal=0
2002
2003 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2004 rm -f -r conftest* confdefs.h
2005
2006 printf "%s\n" "/* confdefs.h */" > confdefs.h
2007
2008 # Predefined preprocessor variables.
2009
2010 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2011
2012 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2013
2014 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2015
2016 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2017
2018 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2019
2020 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2021
2022
2023 # Let the site file select an alternate cache file if it wants to.
2024 # Prefer an explicitly selected file to automatically selected ones.
2025 if test -n "$CONFIG_SITE"; then
2026 ac_site_files="$CONFIG_SITE"
2027 elif test "x$prefix" != xNONE; then
2028 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2029 else
2030 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2031 fi
2032
2033 for ac_site_file in $ac_site_files
2034 do
2035 case $ac_site_file in #(
2036 */*) :
2037 ;; #(
2038 *) :
2039 ac_site_file=./$ac_site_file ;;
2040 esac
2041 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2043 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2044 sed 's/^/| /' "$ac_site_file" >&5
2045 . "$ac_site_file" \
2046 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2047 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2048 as_fn_error $? "failed to load site script $ac_site_file
2049 See \`config.log' for more details" "$LINENO" 5; }
2050 fi
2051 done
2052
2053 if test -r "$cache_file"; then
2054 # Some versions of bash will fail to source /dev/null (special files
2055 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2056 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2058 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2059 case $cache_file in
2060 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2061 *) . "./$cache_file";;
2062 esac
2063 fi
2064 else
2065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2066 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2067 >$cache_file
2068 fi
2069
2070 # Test code for whether the C compiler supports C89 (global declarations)
2071 ac_c_conftest_c89_globals='
2072 /* Does the compiler advertise C89 conformance?
2073 Do not test the value of __STDC__, because some compilers set it to 0
2074 while being otherwise adequately conformant. */
2075 #if !defined __STDC__
2076 # error "Compiler does not advertise C89 conformance"
2077 #endif
2078
2079 #include <stddef.h>
2080 #include <stdarg.h>
2081 struct stat;
2082 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2083 struct buf { int x; };
2084 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2085 static char *e (p, i)
2086 char **p;
2087 int i;
2088 {
2089 return p[i];
2090 }
2091 static char *f (char * (*g) (char **, int), char **p, ...)
2092 {
2093 char *s;
2094 va_list v;
2095 va_start (v,p);
2096 s = g (p, va_arg (v,int));
2097 va_end (v);
2098 return s;
2099 }
2100
2101 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2102 function prototypes and stuff, but not \xHH hex character constants.
2103 These do not provoke an error unfortunately, instead are silently treated
2104 as an "x". The following induces an error, until -std is added to get
2105 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2106 array size at least. It is necessary to write \x00 == 0 to get something
2107 that is true only with -std. */
2108 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2109
2110 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2111 inside strings and character constants. */
2112 #define FOO(x) '\''x'\''
2113 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2114
2115 int test (int i, double x);
2116 struct s1 {int (*f) (int a);};
2117 struct s2 {int (*f) (double a);};
2118 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2119 int, int);'
2120
2121 # Test code for whether the C compiler supports C89 (body of main).
2122 ac_c_conftest_c89_main='
2123 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2124 '
2125
2126 # Test code for whether the C compiler supports C99 (global declarations)
2127 ac_c_conftest_c99_globals='
2128 // Does the compiler advertise C99 conformance?
2129 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2130 # error "Compiler does not advertise C99 conformance"
2131 #endif
2132
2133 #include <stdbool.h>
2134 extern int puts (const char *);
2135 extern int printf (const char *, ...);
2136 extern int dprintf (int, const char *, ...);
2137 extern void *malloc (size_t);
2138
2139 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2140 // dprintf is used instead of fprintf to avoid needing to declare
2141 // FILE and stderr.
2142 #define debug(...) dprintf (2, __VA_ARGS__)
2143 #define showlist(...) puts (#__VA_ARGS__)
2144 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2145 static void
2146 test_varargs_macros (void)
2147 {
2148 int x = 1234;
2149 int y = 5678;
2150 debug ("Flag");
2151 debug ("X = %d\n", x);
2152 showlist (The first, second, and third items.);
2153 report (x>y, "x is %d but y is %d", x, y);
2154 }
2155
2156 // Check long long types.
2157 #define BIG64 18446744073709551615ull
2158 #define BIG32 4294967295ul
2159 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2160 #if !BIG_OK
2161 #error "your preprocessor is broken"
2162 #endif
2163 #if BIG_OK
2164 #else
2165 #error "your preprocessor is broken"
2166 #endif
2167 static long long int bignum = -9223372036854775807LL;
2168 static unsigned long long int ubignum = BIG64;
2169
2170 struct incomplete_array
2171 {
2172 int datasize;
2173 double data[];
2174 };
2175
2176 struct named_init {
2177 int number;
2178 const wchar_t *name;
2179 double average;
2180 };
2181
2182 typedef const char *ccp;
2183
2184 static inline int
2185 test_restrict (ccp restrict text)
2186 {
2187 // See if C++-style comments work.
2188 // Iterate through items via the restricted pointer.
2189 // Also check for declarations in for loops.
2190 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2191 continue;
2192 return 0;
2193 }
2194
2195 // Check varargs and va_copy.
2196 static bool
2197 test_varargs (const char *format, ...)
2198 {
2199 va_list args;
2200 va_start (args, format);
2201 va_list args_copy;
2202 va_copy (args_copy, args);
2203
2204 const char *str = "";
2205 int number = 0;
2206 float fnumber = 0;
2207
2208 while (*format)
2209 {
2210 switch (*format++)
2211 {
2212 case '\''s'\'': // string
2213 str = va_arg (args_copy, const char *);
2214 break;
2215 case '\''d'\'': // int
2216 number = va_arg (args_copy, int);
2217 break;
2218 case '\''f'\'': // float
2219 fnumber = va_arg (args_copy, double);
2220 break;
2221 default:
2222 break;
2223 }
2224 }
2225 va_end (args_copy);
2226 va_end (args);
2227
2228 return *str && number && fnumber;
2229 }
2230 '
2231
2232 # Test code for whether the C compiler supports C99 (body of main).
2233 ac_c_conftest_c99_main='
2234 // Check bool.
2235 _Bool success = false;
2236 success |= (argc != 0);
2237
2238 // Check restrict.
2239 if (test_restrict ("String literal") == 0)
2240 success = true;
2241 char *restrict newvar = "Another string";
2242
2243 // Check varargs.
2244 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2245 test_varargs_macros ();
2246
2247 // Check flexible array members.
2248 struct incomplete_array *ia =
2249 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2250 ia->datasize = 10;
2251 for (int i = 0; i < ia->datasize; ++i)
2252 ia->data[i] = i * 1.234;
2253
2254 // Check named initializers.
2255 struct named_init ni = {
2256 .number = 34,
2257 .name = L"Test wide string",
2258 .average = 543.34343,
2259 };
2260
2261 ni.number = 58;
2262
2263 int dynamic_array[ni.number];
2264 dynamic_array[0] = argv[0][0];
2265 dynamic_array[ni.number - 1] = 543;
2266
2267 // work around unused variable warnings
2268 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2269 || dynamic_array[ni.number - 1] != 543);
2270 '
2271
2272 # Test code for whether the C compiler supports C11 (global declarations)
2273 ac_c_conftest_c11_globals='
2274 // Does the compiler advertise C11 conformance?
2275 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2276 # error "Compiler does not advertise C11 conformance"
2277 #endif
2278
2279 // Check _Alignas.
2280 char _Alignas (double) aligned_as_double;
2281 char _Alignas (0) no_special_alignment;
2282 extern char aligned_as_int;
2283 char _Alignas (0) _Alignas (int) aligned_as_int;
2284
2285 // Check _Alignof.
2286 enum
2287 {
2288 int_alignment = _Alignof (int),
2289 int_array_alignment = _Alignof (int[100]),
2290 char_alignment = _Alignof (char)
2291 };
2292 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2293
2294 // Check _Noreturn.
2295 int _Noreturn does_not_return (void) { for (;;) continue; }
2296
2297 // Check _Static_assert.
2298 struct test_static_assert
2299 {
2300 int x;
2301 _Static_assert (sizeof (int) <= sizeof (long int),
2302 "_Static_assert does not work in struct");
2303 long int y;
2304 };
2305
2306 // Check UTF-8 literals.
2307 #define u8 syntax error!
2308 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2309
2310 // Check duplicate typedefs.
2311 typedef long *long_ptr;
2312 typedef long int *long_ptr;
2313 typedef long_ptr long_ptr;
2314
2315 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2316 struct anonymous
2317 {
2318 union {
2319 struct { int i; int j; };
2320 struct { int k; long int l; } w;
2321 };
2322 int m;
2323 } v1;
2324 '
2325
2326 # Test code for whether the C compiler supports C11 (body of main).
2327 ac_c_conftest_c11_main='
2328 _Static_assert ((offsetof (struct anonymous, i)
2329 == offsetof (struct anonymous, w.k)),
2330 "Anonymous union alignment botch");
2331 v1.i = 2;
2332 v1.w.k = 5;
2333 ok |= v1.i != 5;
2334 '
2335
2336 # Test code for whether the C compiler supports C11 (complete).
2337 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2338 ${ac_c_conftest_c99_globals}
2339 ${ac_c_conftest_c11_globals}
2340
2341 int
2342 main (int argc, char **argv)
2343 {
2344 int ok = 0;
2345 ${ac_c_conftest_c89_main}
2346 ${ac_c_conftest_c99_main}
2347 ${ac_c_conftest_c11_main}
2348 return ok;
2349 }
2350 "
2351
2352 # Test code for whether the C compiler supports C99 (complete).
2353 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2354 ${ac_c_conftest_c99_globals}
2355
2356 int
2357 main (int argc, char **argv)
2358 {
2359 int ok = 0;
2360 ${ac_c_conftest_c89_main}
2361 ${ac_c_conftest_c99_main}
2362 return ok;
2363 }
2364 "
2365
2366 # Test code for whether the C compiler supports C89 (complete).
2367 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2368
2369 int
2370 main (int argc, char **argv)
2371 {
2372 int ok = 0;
2373 ${ac_c_conftest_c89_main}
2374 return ok;
2375 }
2376 "
2377
2378 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2379 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2380 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2381 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2382 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2383 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2384 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2385 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2386 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2387
2388 # Auxiliary files required by this configure script.
2389 ac_aux_files="config.guess config.sub compile missing install-sh"
2390
2391 # Locations in which to look for auxiliary files.
2392 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2393
2394 # Search for a directory containing all of the required auxiliary files,
2395 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2396 # If we don't find one directory that contains all the files we need,
2397 # we report the set of missing files from the *first* directory in
2398 # $ac_aux_dir_candidates and give up.
2399 ac_missing_aux_files=""
2400 ac_first_candidate=:
2401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 as_found=false
2404 for as_dir in $ac_aux_dir_candidates
2405 do
2406 IFS=$as_save_IFS
2407 case $as_dir in #(((
2408 '') as_dir=./ ;;
2409 */) ;;
2410 *) as_dir=$as_dir/ ;;
2411 esac
2412 as_found=:
2413
2414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2415 ac_aux_dir_found=yes
2416 ac_install_sh=
2417 for ac_aux in $ac_aux_files
2418 do
2419 # As a special case, if "install-sh" is required, that requirement
2420 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2421 # and $ac_install_sh is set appropriately for whichever one is found.
2422 if test x"$ac_aux" = x"install-sh"
2423 then
2424 if test -f "${as_dir}install-sh"; then
2425 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2426 ac_install_sh="${as_dir}install-sh -c"
2427 elif test -f "${as_dir}install.sh"; then
2428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2429 ac_install_sh="${as_dir}install.sh -c"
2430 elif test -f "${as_dir}shtool"; then
2431 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2432 ac_install_sh="${as_dir}shtool install -c"
2433 else
2434 ac_aux_dir_found=no
2435 if $ac_first_candidate; then
2436 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2437 else
2438 break
2439 fi
2440 fi
2441 else
2442 if test -f "${as_dir}${ac_aux}"; then
2443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2444 else
2445 ac_aux_dir_found=no
2446 if $ac_first_candidate; then
2447 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2448 else
2449 break
2450 fi
2451 fi
2452 fi
2453 done
2454 if test "$ac_aux_dir_found" = yes; then
2455 ac_aux_dir="$as_dir"
2456 break
2457 fi
2458 ac_first_candidate=false
2459
2460 as_found=false
2461 done
2462 IFS=$as_save_IFS
2463 if $as_found
2464 then :
2465
2466 else $as_nop
2467 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2468 fi
2469
2470
2471 # These three variables are undocumented and unsupported,
2472 # and are intended to be withdrawn in a future Autoconf release.
2473 # They can cause serious problems if a builder's source tree is in a directory
2474 # whose full name contains unusual characters.
2475 if test -f "${ac_aux_dir}config.guess"; then
2476 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2477 fi
2478 if test -f "${ac_aux_dir}config.sub"; then
2479 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2480 fi
2481 if test -f "$ac_aux_dir/configure"; then
2482 ac_configure="$SHELL ${ac_aux_dir}configure"
2483 fi
2484
2485 # Check that the precious variables saved in the cache have kept the same
2486 # value.
2487 ac_cache_corrupted=false
2488 for ac_var in $ac_precious_vars; do
2489 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2490 eval ac_new_set=\$ac_env_${ac_var}_set
2491 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2492 eval ac_new_val=\$ac_env_${ac_var}_value
2493 case $ac_old_set,$ac_new_set in
2494 set,)
2495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2496 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2497 ac_cache_corrupted=: ;;
2498 ,set)
2499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2500 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2501 ac_cache_corrupted=: ;;
2502 ,);;
2503 *)
2504 if test "x$ac_old_val" != "x$ac_new_val"; then
2505 # differences in whitespace do not lead to failure.
2506 ac_old_val_w=`echo x $ac_old_val`
2507 ac_new_val_w=`echo x $ac_new_val`
2508 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2510 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2511 ac_cache_corrupted=:
2512 else
2513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2514 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2515 eval $ac_var=\$ac_old_val
2516 fi
2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2518 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2520 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2521 fi;;
2522 esac
2523 # Pass precious variables to config.status.
2524 if test "$ac_new_set" = set; then
2525 case $ac_new_val in
2526 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2527 *) ac_arg=$ac_var=$ac_new_val ;;
2528 esac
2529 case " $ac_configure_args " in
2530 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2531 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2532 esac
2533 fi
2534 done
2535 if $ac_cache_corrupted; then
2536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2539 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2540 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2541 and start over" "$LINENO" 5
2542 fi
2543 ## -------------------- ##
2544 ## Main body of script. ##
2545 ## -------------------- ##
2546
2547 ac_ext=c
2548 ac_cpp='$CPP $CPPFLAGS'
2549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552
2553
2554
2555 ac_config_headers="$ac_config_headers config.h"
2556
2557
2558 # Initialize Automake
2559 am__api_version='1.16'
2560
2561
2562
2563 # Find a good install program. We prefer a C program (faster),
2564 # so one script is as good as another. But avoid the broken or
2565 # incompatible versions:
2566 # SysV /etc/install, /usr/sbin/install
2567 # SunOS /usr/etc/install
2568 # IRIX /sbin/install
2569 # AIX /bin/install
2570 # AmigaOS /C/install, which installs bootblocks on floppy discs
2571 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2572 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2573 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2574 # OS/2's system install, which has a completely different semantic
2575 # ./install, which can be erroneously created by make from ./install.sh.
2576 # Reject install programs that cannot install multiple files.
2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2578 printf %s "checking for a BSD-compatible install... " >&6; }
2579 if test -z "$INSTALL"; then
2580 if test ${ac_cv_path_install+y}
2581 then :
2582 printf %s "(cached) " >&6
2583 else $as_nop
2584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585 for as_dir in $PATH
2586 do
2587 IFS=$as_save_IFS
2588 case $as_dir in #(((
2589 '') as_dir=./ ;;
2590 */) ;;
2591 *) as_dir=$as_dir/ ;;
2592 esac
2593 # Account for fact that we put trailing slashes in our PATH walk.
2594 case $as_dir in #((
2595 ./ | /[cC]/* | \
2596 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2597 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2598 /usr/ucb/* ) ;;
2599 *)
2600 # OSF1 and SCO ODT 3.0 have their own names for install.
2601 # Don't use installbsd from OSF since it installs stuff as root
2602 # by default.
2603 for ac_prog in ginstall scoinst install; do
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2606 if test $ac_prog = install &&
2607 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2608 # AIX install. It has an incompatible calling convention.
2609 :
2610 elif test $ac_prog = install &&
2611 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2612 # program-specific install script used by HP pwplus--don't use.
2613 :
2614 else
2615 rm -rf conftest.one conftest.two conftest.dir
2616 echo one > conftest.one
2617 echo two > conftest.two
2618 mkdir conftest.dir
2619 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2620 test -s conftest.one && test -s conftest.two &&
2621 test -s conftest.dir/conftest.one &&
2622 test -s conftest.dir/conftest.two
2623 then
2624 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2625 break 3
2626 fi
2627 fi
2628 fi
2629 done
2630 done
2631 ;;
2632 esac
2633
2634 done
2635 IFS=$as_save_IFS
2636
2637 rm -rf conftest.one conftest.two conftest.dir
2638
2639 fi
2640 if test ${ac_cv_path_install+y}; then
2641 INSTALL=$ac_cv_path_install
2642 else
2643 # As a last resort, use the slow shell script. Don't cache a
2644 # value for INSTALL within a source directory, because that will
2645 # break other packages using the cache if that directory is
2646 # removed, or if the value is a relative name.
2647 INSTALL=$ac_install_sh
2648 fi
2649 fi
2650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2651 printf "%s\n" "$INSTALL" >&6; }
2652
2653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2654 # It thinks the first close brace ends the variable substitution.
2655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2656
2657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2658
2659 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2660
2661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2662 printf %s "checking whether build environment is sane... " >&6; }
2663 # Reject unsafe characters in $srcdir or the absolute working directory
2664 # name. Accept space and tab only in the latter.
2665 am_lf='
2666 '
2667 case `pwd` in
2668 *[\\\"\#\$\&\'\`$am_lf]*)
2669 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2670 esac
2671 case $srcdir in
2672 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2673 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2674 esac
2675
2676 # Do 'set' in a subshell so we don't clobber the current shell's
2677 # arguments. Must try -L first in case configure is actually a
2678 # symlink; some systems play weird games with the mod time of symlinks
2679 # (eg FreeBSD returns the mod time of the symlink's containing
2680 # directory).
2681 if (
2682 am_has_slept=no
2683 for am_try in 1 2; do
2684 echo "timestamp, slept: $am_has_slept" > conftest.file
2685 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2686 if test "$*" = "X"; then
2687 # -L didn't work.
2688 set X `ls -t "$srcdir/configure" conftest.file`
2689 fi
2690 if test "$*" != "X $srcdir/configure conftest.file" \
2691 && test "$*" != "X conftest.file $srcdir/configure"; then
2692
2693 # If neither matched, then we have a broken ls. This can happen
2694 # if, for instance, CONFIG_SHELL is bash and it inherits a
2695 # broken ls alias from the environment. This has actually
2696 # happened. Such a system could not be considered "sane".
2697 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2698 alias in your environment" "$LINENO" 5
2699 fi
2700 if test "$2" = conftest.file || test $am_try -eq 2; then
2701 break
2702 fi
2703 # Just in case.
2704 sleep 1
2705 am_has_slept=yes
2706 done
2707 test "$2" = conftest.file
2708 )
2709 then
2710 # Ok.
2711 :
2712 else
2713 as_fn_error $? "newly created file is older than distributed files!
2714 Check your system clock" "$LINENO" 5
2715 fi
2716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2717 printf "%s\n" "yes" >&6; }
2718 # If we didn't sleep, we still need to ensure time stamps of config.status and
2719 # generated files are strictly newer.
2720 am_sleep_pid=
2721 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2722 ( sleep 1 ) &
2723 am_sleep_pid=$!
2724 fi
2725
2726 rm -f conftest.file
2727
2728 test "$program_prefix" != NONE &&
2729 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2730 # Use a double $ so make ignores it.
2731 test "$program_suffix" != NONE &&
2732 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2733 # Double any \ or $.
2734 # By default was `s,x,x', remove it if useless.
2735 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2736 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2737
2738
2739 # Expand $ac_aux_dir to an absolute path.
2740 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2741
2742
2743 if test x"${MISSING+set}" != xset; then
2744 MISSING="\${SHELL} '$am_aux_dir/missing'"
2745 fi
2746 # Use eval to expand $SHELL
2747 if eval "$MISSING --is-lightweight"; then
2748 am_missing_run="$MISSING "
2749 else
2750 am_missing_run=
2751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2752 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2753 fi
2754
2755 if test x"${install_sh+set}" != xset; then
2756 case $am_aux_dir in
2757 *\ * | *\ *)
2758 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2759 *)
2760 install_sh="\${SHELL} $am_aux_dir/install-sh"
2761 esac
2762 fi
2763
2764 # Installed binaries are usually stripped using 'strip' when the user
2765 # run "make install-strip". However 'strip' might not be the right
2766 # tool to use in cross-compilation environments, therefore Automake
2767 # will honor the 'STRIP' environment variable to overrule this program.
2768 if test "$cross_compiling" != no; then
2769 if test -n "$ac_tool_prefix"; then
2770 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2771 set dummy ${ac_tool_prefix}strip; ac_word=$2
2772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 printf %s "checking for $ac_word... " >&6; }
2774 if test ${ac_cv_prog_STRIP+y}
2775 then :
2776 printf %s "(cached) " >&6
2777 else $as_nop
2778 if test -n "$STRIP"; then
2779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2780 else
2781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2782 for as_dir in $PATH
2783 do
2784 IFS=$as_save_IFS
2785 case $as_dir in #(((
2786 '') as_dir=./ ;;
2787 */) ;;
2788 *) as_dir=$as_dir/ ;;
2789 esac
2790 for ac_exec_ext in '' $ac_executable_extensions; do
2791 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2792 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2794 break 2
2795 fi
2796 done
2797 done
2798 IFS=$as_save_IFS
2799
2800 fi
2801 fi
2802 STRIP=$ac_cv_prog_STRIP
2803 if test -n "$STRIP"; then
2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2805 printf "%s\n" "$STRIP" >&6; }
2806 else
2807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2808 printf "%s\n" "no" >&6; }
2809 fi
2810
2811
2812 fi
2813 if test -z "$ac_cv_prog_STRIP"; then
2814 ac_ct_STRIP=$STRIP
2815 # Extract the first word of "strip", so it can be a program name with args.
2816 set dummy strip; ac_word=$2
2817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2818 printf %s "checking for $ac_word... " >&6; }
2819 if test ${ac_cv_prog_ac_ct_STRIP+y}
2820 then :
2821 printf %s "(cached) " >&6
2822 else $as_nop
2823 if test -n "$ac_ct_STRIP"; then
2824 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2825 else
2826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
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_exec_ext in '' $ac_executable_extensions; do
2836 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2837 ac_cv_prog_ac_ct_STRIP="strip"
2838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2839 break 2
2840 fi
2841 done
2842 done
2843 IFS=$as_save_IFS
2844
2845 fi
2846 fi
2847 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2848 if test -n "$ac_ct_STRIP"; then
2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2850 printf "%s\n" "$ac_ct_STRIP" >&6; }
2851 else
2852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 printf "%s\n" "no" >&6; }
2854 fi
2855
2856 if test "x$ac_ct_STRIP" = x; then
2857 STRIP=":"
2858 else
2859 case $cross_compiling:$ac_tool_warned in
2860 yes:)
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2862 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2863 ac_tool_warned=yes ;;
2864 esac
2865 STRIP=$ac_ct_STRIP
2866 fi
2867 else
2868 STRIP="$ac_cv_prog_STRIP"
2869 fi
2870
2871 fi
2872 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2873
2874
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2876 printf %s "checking for a race-free mkdir -p... " >&6; }
2877 if test -z "$MKDIR_P"; then
2878 if test ${ac_cv_path_mkdir+y}
2879 then :
2880 printf %s "(cached) " >&6
2881 else $as_nop
2882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2883 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2884 do
2885 IFS=$as_save_IFS
2886 case $as_dir in #(((
2887 '') as_dir=./ ;;
2888 */) ;;
2889 *) as_dir=$as_dir/ ;;
2890 esac
2891 for ac_prog in mkdir gmkdir; do
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2894 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2895 'mkdir ('*'coreutils) '* | \
2896 'BusyBox '* | \
2897 'mkdir (fileutils) '4.1*)
2898 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2899 break 3;;
2900 esac
2901 done
2902 done
2903 done
2904 IFS=$as_save_IFS
2905
2906 fi
2907
2908 test -d ./--version && rmdir ./--version
2909 if test ${ac_cv_path_mkdir+y}; then
2910 MKDIR_P="$ac_cv_path_mkdir -p"
2911 else
2912 # As a last resort, use the slow shell script. Don't cache a
2913 # value for MKDIR_P within a source directory, because that will
2914 # break other packages using the cache if that directory is
2915 # removed, or if the value is a relative name.
2916 MKDIR_P="$ac_install_sh -d"
2917 fi
2918 fi
2919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2920 printf "%s\n" "$MKDIR_P" >&6; }
2921
2922 for ac_prog in gawk mawk nawk awk
2923 do
2924 # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2927 printf %s "checking for $ac_word... " >&6; }
2928 if test ${ac_cv_prog_AWK+y}
2929 then :
2930 printf %s "(cached) " >&6
2931 else $as_nop
2932 if test -n "$AWK"; then
2933 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2934 else
2935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 for as_dir in $PATH
2937 do
2938 IFS=$as_save_IFS
2939 case $as_dir in #(((
2940 '') as_dir=./ ;;
2941 */) ;;
2942 *) as_dir=$as_dir/ ;;
2943 esac
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_AWK="$ac_prog"
2947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950 done
2951 done
2952 IFS=$as_save_IFS
2953
2954 fi
2955 fi
2956 AWK=$ac_cv_prog_AWK
2957 if test -n "$AWK"; then
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2959 printf "%s\n" "$AWK" >&6; }
2960 else
2961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 printf "%s\n" "no" >&6; }
2963 fi
2964
2965
2966 test -n "$AWK" && break
2967 done
2968
2969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2970 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2971 set x ${MAKE-make}
2972 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2973 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2974 then :
2975 printf %s "(cached) " >&6
2976 else $as_nop
2977 cat >conftest.make <<\_ACEOF
2978 SHELL = /bin/sh
2979 all:
2980 @echo '@@@%%%=$(MAKE)=@@@%%%'
2981 _ACEOF
2982 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2983 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2984 *@@@%%%=?*=@@@%%%*)
2985 eval ac_cv_prog_make_${ac_make}_set=yes;;
2986 *)
2987 eval ac_cv_prog_make_${ac_make}_set=no;;
2988 esac
2989 rm -f conftest.make
2990 fi
2991 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2993 printf "%s\n" "yes" >&6; }
2994 SET_MAKE=
2995 else
2996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 printf "%s\n" "no" >&6; }
2998 SET_MAKE="MAKE=${MAKE-make}"
2999 fi
3000
3001 rm -rf .tst 2>/dev/null
3002 mkdir .tst 2>/dev/null
3003 if test -d .tst; then
3004 am__leading_dot=.
3005 else
3006 am__leading_dot=_
3007 fi
3008 rmdir .tst 2>/dev/null
3009
3010 # Check whether --enable-silent-rules was given.
3011 if test ${enable_silent_rules+y}
3012 then :
3013 enableval=$enable_silent_rules;
3014 fi
3015
3016 case $enable_silent_rules in # (((
3017 yes) AM_DEFAULT_VERBOSITY=0;;
3018 no) AM_DEFAULT_VERBOSITY=1;;
3019 *) AM_DEFAULT_VERBOSITY=1;;
3020 esac
3021 am_make=${MAKE-make}
3022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3023 printf %s "checking whether $am_make supports nested variables... " >&6; }
3024 if test ${am_cv_make_support_nested_variables+y}
3025 then :
3026 printf %s "(cached) " >&6
3027 else $as_nop
3028 if printf "%s\n" 'TRUE=$(BAR$(V))
3029 BAR0=false
3030 BAR1=true
3031 V=1
3032 am__doit:
3033 @$(TRUE)
3034 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3035 am_cv_make_support_nested_variables=yes
3036 else
3037 am_cv_make_support_nested_variables=no
3038 fi
3039 fi
3040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3041 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3042 if test $am_cv_make_support_nested_variables = yes; then
3043 AM_V='$(V)'
3044 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3045 else
3046 AM_V=$AM_DEFAULT_VERBOSITY
3047 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3048 fi
3049 AM_BACKSLASH='\'
3050
3051 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3052 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3053 # is not polluted with repeated "-I."
3054 am__isrc=' -I$(srcdir)'
3055 # test to see if srcdir already configured
3056 if test -f $srcdir/config.status; then
3057 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3058 fi
3059 fi
3060
3061 # test whether we have cygpath
3062 if test -z "$CYGPATH_W"; then
3063 if (cygpath --version) >/dev/null 2>/dev/null; then
3064 CYGPATH_W='cygpath -w'
3065 else
3066 CYGPATH_W=echo
3067 fi
3068 fi
3069
3070
3071 # Define the identity of the package.
3072 PACKAGE='xmag'
3073 VERSION='1.0.7'
3074
3075
3076 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3077
3078
3079 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3080
3081 # Some tools Automake needs.
3082
3083 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3084
3085
3086 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3087
3088
3089 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3090
3091
3092 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3093
3094
3095 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3096
3097 # For better backward compatibility. To be removed once Automake 1.9.x
3098 # dies out for good. For more background, see:
3099 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3100 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3101 mkdir_p='$(MKDIR_P)'
3102
3103 # We need awk for the "check" target (and possibly the TAP driver). The
3104 # system "awk" is bad on some platforms.
3105 # Always define AMTAR for backward compatibility. Yes, it's still used
3106 # in the wild :-( We should find a proper way to deprecate it ...
3107 AMTAR='$${TAR-tar}'
3108
3109
3110 # We'll loop over all known methods to create a tar archive until one works.
3111 _am_tools='gnutar pax cpio none'
3112
3113 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3114
3115
3116
3117
3118
3119 # Variables for tags utilities; see am/tags.am
3120 if test -z "$CTAGS"; then
3121 CTAGS=ctags
3122 fi
3123
3124 if test -z "$ETAGS"; then
3125 ETAGS=etags
3126 fi
3127
3128 if test -z "$CSCOPE"; then
3129 CSCOPE=cscope
3130 fi
3131
3132
3133
3134 # POSIX will say in a future version that running "rm -f" with no argument
3135 # is OK; and we want to be able to make that assumption in our Makefile
3136 # recipes. So use an aggressive probe to check that the usage we want is
3137 # actually supported "in the wild" to an acceptable degree.
3138 # See automake bug#10828.
3139 # To make any issue more visible, cause the running configure to be aborted
3140 # by default if the 'rm' program in use doesn't match our expectations; the
3141 # user can still override this though.
3142 if rm -f && rm -fr && rm -rf; then : OK; else
3143 cat >&2 <<'END'
3144 Oops!
3145
3146 Your 'rm' program seems unable to run without file operands specified
3147 on the command line, even when the '-f' option is present. This is contrary
3148 to the behaviour of most rm programs out there, and not conforming with
3149 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3150
3151 Please tell bug-automake@gnu.org about your system, including the value
3152 of your $PATH and any error possibly output before this message. This
3153 can help us improve future automake versions.
3154
3155 END
3156 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3157 echo 'Configuration will proceed anyway, since you have set the' >&2
3158 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3159 echo >&2
3160 else
3161 cat >&2 <<'END'
3162 Aborting the configuration process, to ensure you take notice of the issue.
3163
3164 You can download and install GNU coreutils to get an 'rm' implementation
3165 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3166
3167 If you want to complete the configuration process using your problematic
3168 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3169 to "yes", and re-run configure.
3170
3171 END
3172 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3173 fi
3174 fi
3175
3176
3177 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198 DEPDIR="${am__leading_dot}deps"
3199
3200 ac_config_commands="$ac_config_commands depfiles"
3201
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3203 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3204 cat > confinc.mk << 'END'
3205 am__doit:
3206 @echo this is the am__doit target >confinc.out
3207 .PHONY: am__doit
3208 END
3209 am__include="#"
3210 am__quote=
3211 # BSD make does it like this.
3212 echo '.include "confinc.mk" # ignored' > confmf.BSD
3213 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3214 echo 'include confinc.mk # ignored' > confmf.GNU
3215 _am_result=no
3216 for s in GNU BSD; do
3217 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3218 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3219 ac_status=$?
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }
3222 case $?:`cat confinc.out 2>/dev/null` in #(
3223 '0:this is the am__doit target') :
3224 case $s in #(
3225 BSD) :
3226 am__include='.include' am__quote='"' ;; #(
3227 *) :
3228 am__include='include' am__quote='' ;;
3229 esac ;; #(
3230 *) :
3231 ;;
3232 esac
3233 if test "$am__include" != "#"; then
3234 _am_result="yes ($s style)"
3235 break
3236 fi
3237 done
3238 rm -f confinc.* confmf.*
3239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3240 printf "%s\n" "${_am_result}" >&6; }
3241
3242 # Check whether --enable-dependency-tracking was given.
3243 if test ${enable_dependency_tracking+y}
3244 then :
3245 enableval=$enable_dependency_tracking;
3246 fi
3247
3248 if test "x$enable_dependency_tracking" != xno; then
3249 am_depcomp="$ac_aux_dir/depcomp"
3250 AMDEPBACKSLASH='\'
3251 am__nodep='_no'
3252 fi
3253 if test "x$enable_dependency_tracking" != xno; then
3254 AMDEP_TRUE=
3255 AMDEP_FALSE='#'
3256 else
3257 AMDEP_TRUE='#'
3258 AMDEP_FALSE=
3259 fi
3260
3261
3262 ac_ext=c
3263 ac_cpp='$CPP $CPPFLAGS'
3264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267 if test -n "$ac_tool_prefix"; then
3268 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3269 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 printf %s "checking for $ac_word... " >&6; }
3272 if test ${ac_cv_prog_CC+y}
3273 then :
3274 printf %s "(cached) " >&6
3275 else $as_nop
3276 if test -n "$CC"; then
3277 ac_cv_prog_CC="$CC" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282 IFS=$as_save_IFS
3283 case $as_dir in #(((
3284 '') as_dir=./ ;;
3285 */) ;;
3286 *) as_dir=$as_dir/ ;;
3287 esac
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3290 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3292 break 2
3293 fi
3294 done
3295 done
3296 IFS=$as_save_IFS
3297
3298 fi
3299 fi
3300 CC=$ac_cv_prog_CC
3301 if test -n "$CC"; then
3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 printf "%s\n" "$CC" >&6; }
3304 else
3305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 printf "%s\n" "no" >&6; }
3307 fi
3308
3309
3310 fi
3311 if test -z "$ac_cv_prog_CC"; then
3312 ac_ct_CC=$CC
3313 # Extract the first word of "gcc", so it can be a program name with args.
3314 set dummy gcc; ac_word=$2
3315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 printf %s "checking for $ac_word... " >&6; }
3317 if test ${ac_cv_prog_ac_ct_CC+y}
3318 then :
3319 printf %s "(cached) " >&6
3320 else $as_nop
3321 if test -n "$ac_ct_CC"; then
3322 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3323 else
3324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325 for as_dir in $PATH
3326 do
3327 IFS=$as_save_IFS
3328 case $as_dir in #(((
3329 '') as_dir=./ ;;
3330 */) ;;
3331 *) as_dir=$as_dir/ ;;
3332 esac
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3335 ac_cv_prog_ac_ct_CC="gcc"
3336 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3337 break 2
3338 fi
3339 done
3340 done
3341 IFS=$as_save_IFS
3342
3343 fi
3344 fi
3345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3346 if test -n "$ac_ct_CC"; then
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3348 printf "%s\n" "$ac_ct_CC" >&6; }
3349 else
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 printf "%s\n" "no" >&6; }
3352 fi
3353
3354 if test "x$ac_ct_CC" = x; then
3355 CC=""
3356 else
3357 case $cross_compiling:$ac_tool_warned in
3358 yes:)
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3360 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3361 ac_tool_warned=yes ;;
3362 esac
3363 CC=$ac_ct_CC
3364 fi
3365 else
3366 CC="$ac_cv_prog_CC"
3367 fi
3368
3369 if test -z "$CC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3372 set dummy ${ac_tool_prefix}cc; ac_word=$2
3373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374 printf %s "checking for $ac_word... " >&6; }
3375 if test ${ac_cv_prog_CC+y}
3376 then :
3377 printf %s "(cached) " >&6
3378 else $as_nop
3379 if test -n "$CC"; then
3380 ac_cv_prog_CC="$CC" # Let the user override the test.
3381 else
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3384 do
3385 IFS=$as_save_IFS
3386 case $as_dir in #(((
3387 '') as_dir=./ ;;
3388 */) ;;
3389 *) as_dir=$as_dir/ ;;
3390 esac
3391 for ac_exec_ext in '' $ac_executable_extensions; do
3392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3393 ac_cv_prog_CC="${ac_tool_prefix}cc"
3394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3395 break 2
3396 fi
3397 done
3398 done
3399 IFS=$as_save_IFS
3400
3401 fi
3402 fi
3403 CC=$ac_cv_prog_CC
3404 if test -n "$CC"; then
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 printf "%s\n" "$CC" >&6; }
3407 else
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 printf "%s\n" "no" >&6; }
3410 fi
3411
3412
3413 fi
3414 fi
3415 if test -z "$CC"; then
3416 # Extract the first word of "cc", so it can be a program name with args.
3417 set dummy cc; ac_word=$2
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 printf %s "checking for $ac_word... " >&6; }
3420 if test ${ac_cv_prog_CC+y}
3421 then :
3422 printf %s "(cached) " >&6
3423 else $as_nop
3424 if test -n "$CC"; then
3425 ac_cv_prog_CC="$CC" # Let the user override the test.
3426 else
3427 ac_prog_rejected=no
3428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3429 for as_dir in $PATH
3430 do
3431 IFS=$as_save_IFS
3432 case $as_dir in #(((
3433 '') as_dir=./ ;;
3434 */) ;;
3435 *) as_dir=$as_dir/ ;;
3436 esac
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3439 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3440 ac_prog_rejected=yes
3441 continue
3442 fi
3443 ac_cv_prog_CC="cc"
3444 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3445 break 2
3446 fi
3447 done
3448 done
3449 IFS=$as_save_IFS
3450
3451 if test $ac_prog_rejected = yes; then
3452 # We found a bogon in the path, so make sure we never use it.
3453 set dummy $ac_cv_prog_CC
3454 shift
3455 if test $# != 0; then
3456 # We chose a different compiler from the bogus one.
3457 # However, it has the same basename, so the bogon will be chosen
3458 # first if we set CC to just the basename; use the full file name.
3459 shift
3460 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3461 fi
3462 fi
3463 fi
3464 fi
3465 CC=$ac_cv_prog_CC
3466 if test -n "$CC"; then
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3468 printf "%s\n" "$CC" >&6; }
3469 else
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 printf "%s\n" "no" >&6; }
3472 fi
3473
3474
3475 fi
3476 if test -z "$CC"; then
3477 if test -n "$ac_tool_prefix"; then
3478 for ac_prog in cl.exe
3479 do
3480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3483 printf %s "checking for $ac_word... " >&6; }
3484 if test ${ac_cv_prog_CC+y}
3485 then :
3486 printf %s "(cached) " >&6
3487 else $as_nop
3488 if test -n "$CC"; then
3489 ac_cv_prog_CC="$CC" # Let the user override the test.
3490 else
3491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492 for as_dir in $PATH
3493 do
3494 IFS=$as_save_IFS
3495 case $as_dir in #(((
3496 '') as_dir=./ ;;
3497 */) ;;
3498 *) as_dir=$as_dir/ ;;
3499 esac
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3502 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3504 break 2
3505 fi
3506 done
3507 done
3508 IFS=$as_save_IFS
3509
3510 fi
3511 fi
3512 CC=$ac_cv_prog_CC
3513 if test -n "$CC"; then
3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3515 printf "%s\n" "$CC" >&6; }
3516 else
3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 printf "%s\n" "no" >&6; }
3519 fi
3520
3521
3522 test -n "$CC" && break
3523 done
3524 fi
3525 if test -z "$CC"; then
3526 ac_ct_CC=$CC
3527 for ac_prog in cl.exe
3528 do
3529 # Extract the first word of "$ac_prog", so it can be a program name with args.
3530 set dummy $ac_prog; ac_word=$2
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3532 printf %s "checking for $ac_word... " >&6; }
3533 if test ${ac_cv_prog_ac_ct_CC+y}
3534 then :
3535 printf %s "(cached) " >&6
3536 else $as_nop
3537 if test -n "$ac_ct_CC"; then
3538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543 IFS=$as_save_IFS
3544 case $as_dir in #(((
3545 '') as_dir=./ ;;
3546 */) ;;
3547 *) as_dir=$as_dir/ ;;
3548 esac
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_ac_ct_CC="$ac_prog"
3552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3553 break 2
3554 fi
3555 done
3556 done
3557 IFS=$as_save_IFS
3558
3559 fi
3560 fi
3561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3562 if test -n "$ac_ct_CC"; then
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3564 printf "%s\n" "$ac_ct_CC" >&6; }
3565 else
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 printf "%s\n" "no" >&6; }
3568 fi
3569
3570
3571 test -n "$ac_ct_CC" && break
3572 done
3573
3574 if test "x$ac_ct_CC" = x; then
3575 CC=""
3576 else
3577 case $cross_compiling:$ac_tool_warned in
3578 yes:)
3579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3580 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3581 ac_tool_warned=yes ;;
3582 esac
3583 CC=$ac_ct_CC
3584 fi
3585 fi
3586
3587 fi
3588 if test -z "$CC"; then
3589 if test -n "$ac_tool_prefix"; then
3590 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3591 set dummy ${ac_tool_prefix}clang; ac_word=$2
3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 printf %s "checking for $ac_word... " >&6; }
3594 if test ${ac_cv_prog_CC+y}
3595 then :
3596 printf %s "(cached) " >&6
3597 else $as_nop
3598 if test -n "$CC"; then
3599 ac_cv_prog_CC="$CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3603 do
3604 IFS=$as_save_IFS
3605 case $as_dir in #(((
3606 '') as_dir=./ ;;
3607 */) ;;
3608 *) as_dir=$as_dir/ ;;
3609 esac
3610 for ac_exec_ext in '' $ac_executable_extensions; do
3611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3612 ac_cv_prog_CC="${ac_tool_prefix}clang"
3613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3614 break 2
3615 fi
3616 done
3617 done
3618 IFS=$as_save_IFS
3619
3620 fi
3621 fi
3622 CC=$ac_cv_prog_CC
3623 if test -n "$CC"; then
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3625 printf "%s\n" "$CC" >&6; }
3626 else
3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 printf "%s\n" "no" >&6; }
3629 fi
3630
3631
3632 fi
3633 if test -z "$ac_cv_prog_CC"; then
3634 ac_ct_CC=$CC
3635 # Extract the first word of "clang", so it can be a program name with args.
3636 set dummy clang; ac_word=$2
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 printf %s "checking for $ac_word... " >&6; }
3639 if test ${ac_cv_prog_ac_ct_CC+y}
3640 then :
3641 printf %s "(cached) " >&6
3642 else $as_nop
3643 if test -n "$ac_ct_CC"; then
3644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3645 else
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH
3648 do
3649 IFS=$as_save_IFS
3650 case $as_dir in #(((
3651 '') as_dir=./ ;;
3652 */) ;;
3653 *) as_dir=$as_dir/ ;;
3654 esac
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3657 ac_cv_prog_ac_ct_CC="clang"
3658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3659 break 2
3660 fi
3661 done
3662 done
3663 IFS=$as_save_IFS
3664
3665 fi
3666 fi
3667 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3668 if test -n "$ac_ct_CC"; then
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3670 printf "%s\n" "$ac_ct_CC" >&6; }
3671 else
3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 printf "%s\n" "no" >&6; }
3674 fi
3675
3676 if test "x$ac_ct_CC" = x; then
3677 CC=""
3678 else
3679 case $cross_compiling:$ac_tool_warned in
3680 yes:)
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3682 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3683 ac_tool_warned=yes ;;
3684 esac
3685 CC=$ac_ct_CC
3686 fi
3687 else
3688 CC="$ac_cv_prog_CC"
3689 fi
3690
3691 fi
3692
3693
3694 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3695 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3696 as_fn_error $? "no acceptable C compiler found in \$PATH
3697 See \`config.log' for more details" "$LINENO" 5; }
3698
3699 # Provide some information about the compiler.
3700 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3701 set X $ac_compile
3702 ac_compiler=$2
3703 for ac_option in --version -v -V -qversion -version; do
3704 { { ac_try="$ac_compiler $ac_option >&5"
3705 case "(($ac_try" in
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3708 esac
3709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3710 printf "%s\n" "$ac_try_echo"; } >&5
3711 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3712 ac_status=$?
3713 if test -s conftest.err; then
3714 sed '10a\
3715 ... rest of stderr output deleted ...
3716 10q' conftest.err >conftest.er1
3717 cat conftest.er1 >&5
3718 fi
3719 rm -f conftest.er1 conftest.err
3720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3721 test $ac_status = 0; }
3722 done
3723
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726
3727 int
3728 main (void)
3729 {
3730
3731 ;
3732 return 0;
3733 }
3734 _ACEOF
3735 ac_clean_files_save=$ac_clean_files
3736 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3737 # Try to create an executable without -o first, disregard a.out.
3738 # It will help us diagnose broken compilers, and finding out an intuition
3739 # of exeext.
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3741 printf %s "checking whether the C compiler works... " >&6; }
3742 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3743
3744 # The possible output files:
3745 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3746
3747 ac_rmfiles=
3748 for ac_file in $ac_files
3749 do
3750 case $ac_file in
3751 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3752 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3753 esac
3754 done
3755 rm -f $ac_rmfiles
3756
3757 if { { ac_try="$ac_link_default"
3758 case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761 esac
3762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763 printf "%s\n" "$ac_try_echo"; } >&5
3764 (eval "$ac_link_default") 2>&5
3765 ac_status=$?
3766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3767 test $ac_status = 0; }
3768 then :
3769 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3770 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3771 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3772 # so that the user can short-circuit this test for compilers unknown to
3773 # Autoconf.
3774 for ac_file in $ac_files ''
3775 do
3776 test -f "$ac_file" || continue
3777 case $ac_file in
3778 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3779 ;;
3780 [ab].out )
3781 # We found the default executable, but exeext='' is most
3782 # certainly right.
3783 break;;
3784 *.* )
3785 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3786 then :; else
3787 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3788 fi
3789 # We set ac_cv_exeext here because the later test for it is not
3790 # safe: cross compilers may not add the suffix if given an `-o'
3791 # argument, so we may need to know it at that point already.
3792 # Even if this section looks crufty: it has the advantage of
3793 # actually working.
3794 break;;
3795 * )
3796 break;;
3797 esac
3798 done
3799 test "$ac_cv_exeext" = no && ac_cv_exeext=
3800
3801 else $as_nop
3802 ac_file=''
3803 fi
3804 if test -z "$ac_file"
3805 then :
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 printf "%s\n" "no" >&6; }
3808 printf "%s\n" "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3810
3811 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error 77 "C compiler cannot create executables
3814 See \`config.log' for more details" "$LINENO" 5; }
3815 else $as_nop
3816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3817 printf "%s\n" "yes" >&6; }
3818 fi
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3820 printf %s "checking for C compiler default output file name... " >&6; }
3821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3822 printf "%s\n" "$ac_file" >&6; }
3823 ac_exeext=$ac_cv_exeext
3824
3825 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3826 ac_clean_files=$ac_clean_files_save
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3828 printf %s "checking for suffix of executables... " >&6; }
3829 if { { ac_try="$ac_link"
3830 case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833 esac
3834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835 printf "%s\n" "$ac_try_echo"; } >&5
3836 (eval "$ac_link") 2>&5
3837 ac_status=$?
3838 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3839 test $ac_status = 0; }
3840 then :
3841 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3842 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3843 # work properly (i.e., refer to `conftest.exe'), while it won't with
3844 # `rm'.
3845 for ac_file in conftest.exe conftest conftest.*; do
3846 test -f "$ac_file" || continue
3847 case $ac_file in
3848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3849 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3850 break;;
3851 * ) break;;
3852 esac
3853 done
3854 else $as_nop
3855 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3856 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3857 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3858 See \`config.log' for more details" "$LINENO" 5; }
3859 fi
3860 rm -f conftest conftest$ac_cv_exeext
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3862 printf "%s\n" "$ac_cv_exeext" >&6; }
3863
3864 rm -f conftest.$ac_ext
3865 EXEEXT=$ac_cv_exeext
3866 ac_exeext=$EXEEXT
3867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868 /* end confdefs.h. */
3869 #include <stdio.h>
3870 int
3871 main (void)
3872 {
3873 FILE *f = fopen ("conftest.out", "w");
3874 return ferror (f) || fclose (f) != 0;
3875
3876 ;
3877 return 0;
3878 }
3879 _ACEOF
3880 ac_clean_files="$ac_clean_files conftest.out"
3881 # Check that the compiler produces executables we can run. If not, either
3882 # the compiler is broken, or we cross compile.
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3884 printf %s "checking whether we are cross compiling... " >&6; }
3885 if test "$cross_compiling" != yes; then
3886 { { ac_try="$ac_link"
3887 case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892 printf "%s\n" "$ac_try_echo"; } >&5
3893 (eval "$ac_link") 2>&5
3894 ac_status=$?
3895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 test $ac_status = 0; }
3897 if { ac_try='./conftest$ac_cv_exeext'
3898 { { case "(($ac_try" in
3899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900 *) ac_try_echo=$ac_try;;
3901 esac
3902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 printf "%s\n" "$ac_try_echo"; } >&5
3904 (eval "$ac_try") 2>&5
3905 ac_status=$?
3906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907 test $ac_status = 0; }; }; then
3908 cross_compiling=no
3909 else
3910 if test "$cross_compiling" = maybe; then
3911 cross_compiling=yes
3912 else
3913 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3915 as_fn_error 77 "cannot run C compiled programs.
3916 If you meant to cross compile, use \`--host'.
3917 See \`config.log' for more details" "$LINENO" 5; }
3918 fi
3919 fi
3920 fi
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3922 printf "%s\n" "$cross_compiling" >&6; }
3923
3924 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3925 ac_clean_files=$ac_clean_files_save
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3927 printf %s "checking for suffix of object files... " >&6; }
3928 if test ${ac_cv_objext+y}
3929 then :
3930 printf %s "(cached) " >&6
3931 else $as_nop
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3934
3935 int
3936 main (void)
3937 {
3938
3939 ;
3940 return 0;
3941 }
3942 _ACEOF
3943 rm -f conftest.o conftest.obj
3944 if { { ac_try="$ac_compile"
3945 case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3948 esac
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 printf "%s\n" "$ac_try_echo"; } >&5
3951 (eval "$ac_compile") 2>&5
3952 ac_status=$?
3953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954 test $ac_status = 0; }
3955 then :
3956 for ac_file in conftest.o conftest.obj conftest.*; do
3957 test -f "$ac_file" || continue;
3958 case $ac_file in
3959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3960 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3961 break;;
3962 esac
3963 done
3964 else $as_nop
3965 printf "%s\n" "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3967
3968 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3970 as_fn_error $? "cannot compute suffix of object files: cannot compile
3971 See \`config.log' for more details" "$LINENO" 5; }
3972 fi
3973 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3974 fi
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3976 printf "%s\n" "$ac_cv_objext" >&6; }
3977 OBJEXT=$ac_cv_objext
3978 ac_objext=$OBJEXT
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3980 printf %s "checking whether the compiler supports GNU C... " >&6; }
3981 if test ${ac_cv_c_compiler_gnu+y}
3982 then :
3983 printf %s "(cached) " >&6
3984 else $as_nop
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3987
3988 int
3989 main (void)
3990 {
3991 #ifndef __GNUC__
3992 choke me
3993 #endif
3994
3995 ;
3996 return 0;
3997 }
3998 _ACEOF
3999 if ac_fn_c_try_compile "$LINENO"
4000 then :
4001 ac_compiler_gnu=yes
4002 else $as_nop
4003 ac_compiler_gnu=no
4004 fi
4005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4006 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4007
4008 fi
4009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4010 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012
4013 if test $ac_compiler_gnu = yes; then
4014 GCC=yes
4015 else
4016 GCC=
4017 fi
4018 ac_test_CFLAGS=${CFLAGS+y}
4019 ac_save_CFLAGS=$CFLAGS
4020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4021 printf %s "checking whether $CC accepts -g... " >&6; }
4022 if test ${ac_cv_prog_cc_g+y}
4023 then :
4024 printf %s "(cached) " >&6
4025 else $as_nop
4026 ac_save_c_werror_flag=$ac_c_werror_flag
4027 ac_c_werror_flag=yes
4028 ac_cv_prog_cc_g=no
4029 CFLAGS="-g"
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031 /* end confdefs.h. */
4032
4033 int
4034 main (void)
4035 {
4036
4037 ;
4038 return 0;
4039 }
4040 _ACEOF
4041 if ac_fn_c_try_compile "$LINENO"
4042 then :
4043 ac_cv_prog_cc_g=yes
4044 else $as_nop
4045 CFLAGS=""
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048
4049 int
4050 main (void)
4051 {
4052
4053 ;
4054 return 0;
4055 }
4056 _ACEOF
4057 if ac_fn_c_try_compile "$LINENO"
4058 then :
4059
4060 else $as_nop
4061 ac_c_werror_flag=$ac_save_c_werror_flag
4062 CFLAGS="-g"
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065
4066 int
4067 main (void)
4068 {
4069
4070 ;
4071 return 0;
4072 }
4073 _ACEOF
4074 if ac_fn_c_try_compile "$LINENO"
4075 then :
4076 ac_cv_prog_cc_g=yes
4077 fi
4078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4079 fi
4080 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4081 fi
4082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4083 ac_c_werror_flag=$ac_save_c_werror_flag
4084 fi
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4086 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4087 if test $ac_test_CFLAGS; then
4088 CFLAGS=$ac_save_CFLAGS
4089 elif test $ac_cv_prog_cc_g = yes; then
4090 if test "$GCC" = yes; then
4091 CFLAGS="-g -O2"
4092 else
4093 CFLAGS="-g"
4094 fi
4095 else
4096 if test "$GCC" = yes; then
4097 CFLAGS="-O2"
4098 else
4099 CFLAGS=
4100 fi
4101 fi
4102 ac_prog_cc_stdc=no
4103 if test x$ac_prog_cc_stdc = xno
4104 then :
4105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4106 printf %s "checking for $CC option to enable C11 features... " >&6; }
4107 if test ${ac_cv_prog_cc_c11+y}
4108 then :
4109 printf %s "(cached) " >&6
4110 else $as_nop
4111 ac_cv_prog_cc_c11=no
4112 ac_save_CC=$CC
4113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4114 /* end confdefs.h. */
4115 $ac_c_conftest_c11_program
4116 _ACEOF
4117 for ac_arg in '' -std=gnu11
4118 do
4119 CC="$ac_save_CC $ac_arg"
4120 if ac_fn_c_try_compile "$LINENO"
4121 then :
4122 ac_cv_prog_cc_c11=$ac_arg
4123 fi
4124 rm -f core conftest.err conftest.$ac_objext conftest.beam
4125 test "x$ac_cv_prog_cc_c11" != "xno" && break
4126 done
4127 rm -f conftest.$ac_ext
4128 CC=$ac_save_CC
4129 fi
4130
4131 if test "x$ac_cv_prog_cc_c11" = xno
4132 then :
4133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4134 printf "%s\n" "unsupported" >&6; }
4135 else $as_nop
4136 if test "x$ac_cv_prog_cc_c11" = x
4137 then :
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4139 printf "%s\n" "none needed" >&6; }
4140 else $as_nop
4141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4142 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4143 CC="$CC $ac_cv_prog_cc_c11"
4144 fi
4145 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4146 ac_prog_cc_stdc=c11
4147 fi
4148 fi
4149 if test x$ac_prog_cc_stdc = xno
4150 then :
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4152 printf %s "checking for $CC option to enable C99 features... " >&6; }
4153 if test ${ac_cv_prog_cc_c99+y}
4154 then :
4155 printf %s "(cached) " >&6
4156 else $as_nop
4157 ac_cv_prog_cc_c99=no
4158 ac_save_CC=$CC
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 $ac_c_conftest_c99_program
4162 _ACEOF
4163 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4164 do
4165 CC="$ac_save_CC $ac_arg"
4166 if ac_fn_c_try_compile "$LINENO"
4167 then :
4168 ac_cv_prog_cc_c99=$ac_arg
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.beam
4171 test "x$ac_cv_prog_cc_c99" != "xno" && break
4172 done
4173 rm -f conftest.$ac_ext
4174 CC=$ac_save_CC
4175 fi
4176
4177 if test "x$ac_cv_prog_cc_c99" = xno
4178 then :
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4180 printf "%s\n" "unsupported" >&6; }
4181 else $as_nop
4182 if test "x$ac_cv_prog_cc_c99" = x
4183 then :
4184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4185 printf "%s\n" "none needed" >&6; }
4186 else $as_nop
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4188 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4189 CC="$CC $ac_cv_prog_cc_c99"
4190 fi
4191 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4192 ac_prog_cc_stdc=c99
4193 fi
4194 fi
4195 if test x$ac_prog_cc_stdc = xno
4196 then :
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4198 printf %s "checking for $CC option to enable C89 features... " >&6; }
4199 if test ${ac_cv_prog_cc_c89+y}
4200 then :
4201 printf %s "(cached) " >&6
4202 else $as_nop
4203 ac_cv_prog_cc_c89=no
4204 ac_save_CC=$CC
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4207 $ac_c_conftest_c89_program
4208 _ACEOF
4209 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4210 do
4211 CC="$ac_save_CC $ac_arg"
4212 if ac_fn_c_try_compile "$LINENO"
4213 then :
4214 ac_cv_prog_cc_c89=$ac_arg
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext conftest.beam
4217 test "x$ac_cv_prog_cc_c89" != "xno" && break
4218 done
4219 rm -f conftest.$ac_ext
4220 CC=$ac_save_CC
4221 fi
4222
4223 if test "x$ac_cv_prog_cc_c89" = xno
4224 then :
4225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4226 printf "%s\n" "unsupported" >&6; }
4227 else $as_nop
4228 if test "x$ac_cv_prog_cc_c89" = x
4229 then :
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4231 printf "%s\n" "none needed" >&6; }
4232 else $as_nop
4233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4234 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4235 CC="$CC $ac_cv_prog_cc_c89"
4236 fi
4237 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4238 ac_prog_cc_stdc=c89
4239 fi
4240 fi
4241
4242 ac_ext=c
4243 ac_cpp='$CPP $CPPFLAGS'
4244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247
4248
4249 ac_ext=c
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4255 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4256 if test ${am_cv_prog_cc_c_o+y}
4257 then :
4258 printf %s "(cached) " >&6
4259 else $as_nop
4260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4261 /* end confdefs.h. */
4262
4263 int
4264 main (void)
4265 {
4266
4267 ;
4268 return 0;
4269 }
4270 _ACEOF
4271 # Make sure it works both with $CC and with simple cc.
4272 # Following AC_PROG_CC_C_O, we do the test twice because some
4273 # compilers refuse to overwrite an existing .o file with -o,
4274 # though they will create one.
4275 am_cv_prog_cc_c_o=yes
4276 for am_i in 1 2; do
4277 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4278 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4279 ac_status=$?
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } \
4282 && test -f conftest2.$ac_objext; then
4283 : OK
4284 else
4285 am_cv_prog_cc_c_o=no
4286 break
4287 fi
4288 done
4289 rm -f core conftest*
4290 unset am_i
4291 fi
4292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4293 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4294 if test "$am_cv_prog_cc_c_o" != yes; then
4295 # Losing compiler, so override with the script.
4296 # FIXME: It is wrong to rewrite CC.
4297 # But if we don't then we get into trouble of one sort or another.
4298 # A longer-term fix would be to have automake use am__CC in this case,
4299 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4300 CC="$am_aux_dir/compile $CC"
4301 fi
4302 ac_ext=c
4303 ac_cpp='$CPP $CPPFLAGS'
4304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4307
4308
4309 depcc="$CC" am_compiler_list=
4310
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4312 printf %s "checking dependency style of $depcc... " >&6; }
4313 if test ${am_cv_CC_dependencies_compiler_type+y}
4314 then :
4315 printf %s "(cached) " >&6
4316 else $as_nop
4317 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4318 # We make a subdir and do the tests there. Otherwise we can end up
4319 # making bogus files that we don't know about and never remove. For
4320 # instance it was reported that on HP-UX the gcc test will end up
4321 # making a dummy file named 'D' -- because '-MD' means "put the output
4322 # in D".
4323 rm -rf conftest.dir
4324 mkdir conftest.dir
4325 # Copy depcomp to subdir because otherwise we won't find it if we're
4326 # using a relative directory.
4327 cp "$am_depcomp" conftest.dir
4328 cd conftest.dir
4329 # We will build objects and dependencies in a subdirectory because
4330 # it helps to detect inapplicable dependency modes. For instance
4331 # both Tru64's cc and ICC support -MD to output dependencies as a
4332 # side effect of compilation, but ICC will put the dependencies in
4333 # the current directory while Tru64 will put them in the object
4334 # directory.
4335 mkdir sub
4336
4337 am_cv_CC_dependencies_compiler_type=none
4338 if test "$am_compiler_list" = ""; then
4339 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4340 fi
4341 am__universal=false
4342 case " $depcc " in #(
4343 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4344 esac
4345
4346 for depmode in $am_compiler_list; do
4347 # Setup a source with many dependencies, because some compilers
4348 # like to wrap large dependency lists on column 80 (with \), and
4349 # we should not choose a depcomp mode which is confused by this.
4350 #
4351 # We need to recreate these files for each test, as the compiler may
4352 # overwrite some of them when testing with obscure command lines.
4353 # This happens at least with the AIX C compiler.
4354 : > sub/conftest.c
4355 for i in 1 2 3 4 5 6; do
4356 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4357 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4358 # Solaris 10 /bin/sh.
4359 echo '/* dummy */' > sub/conftst$i.h
4360 done
4361 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4362
4363 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4364 # mode. It turns out that the SunPro C++ compiler does not properly
4365 # handle '-M -o', and we need to detect this. Also, some Intel
4366 # versions had trouble with output in subdirs.
4367 am__obj=sub/conftest.${OBJEXT-o}
4368 am__minus_obj="-o $am__obj"
4369 case $depmode in
4370 gcc)
4371 # This depmode causes a compiler race in universal mode.
4372 test "$am__universal" = false || continue
4373 ;;
4374 nosideeffect)
4375 # After this tag, mechanisms are not by side-effect, so they'll
4376 # only be used when explicitly requested.
4377 if test "x$enable_dependency_tracking" = xyes; then
4378 continue
4379 else
4380 break
4381 fi
4382 ;;
4383 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4384 # This compiler won't grok '-c -o', but also, the minuso test has
4385 # not run yet. These depmodes are late enough in the game, and
4386 # so weak that their functioning should not be impacted.
4387 am__obj=conftest.${OBJEXT-o}
4388 am__minus_obj=
4389 ;;
4390 none) break ;;
4391 esac
4392 if depmode=$depmode \
4393 source=sub/conftest.c object=$am__obj \
4394 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4395 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4396 >/dev/null 2>conftest.err &&
4397 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4398 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4399 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4400 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4401 # icc doesn't choke on unknown options, it will just issue warnings
4402 # or remarks (even with -Werror). So we grep stderr for any message
4403 # that says an option was ignored or not supported.
4404 # When given -MP, icc 7.0 and 7.1 complain thusly:
4405 # icc: Command line warning: ignoring option '-M'; no argument required
4406 # The diagnosis changed in icc 8.0:
4407 # icc: Command line remark: option '-MP' not supported
4408 if (grep 'ignoring option' conftest.err ||
4409 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4410 am_cv_CC_dependencies_compiler_type=$depmode
4411 break
4412 fi
4413 fi
4414 done
4415
4416 cd ..
4417 rm -rf conftest.dir
4418 else
4419 am_cv_CC_dependencies_compiler_type=none
4420 fi
4421
4422 fi
4423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4424 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4425 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4426
4427 if
4428 test "x$enable_dependency_tracking" != xno \
4429 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4430 am__fastdepCC_TRUE=
4431 am__fastdepCC_FALSE='#'
4432 else
4433 am__fastdepCC_TRUE='#'
4434 am__fastdepCC_FALSE=
4435 fi
4436
4437
4438
4439
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4441 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4442 if test ${ac_cv_c_undeclared_builtin_options+y}
4443 then :
4444 printf %s "(cached) " >&6
4445 else $as_nop
4446 ac_save_CFLAGS=$CFLAGS
4447 ac_cv_c_undeclared_builtin_options='cannot detect'
4448 for ac_arg in '' -fno-builtin; do
4449 CFLAGS="$ac_save_CFLAGS $ac_arg"
4450 # This test program should *not* compile successfully.
4451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4452 /* end confdefs.h. */
4453
4454 int
4455 main (void)
4456 {
4457 (void) strchr;
4458 ;
4459 return 0;
4460 }
4461 _ACEOF
4462 if ac_fn_c_try_compile "$LINENO"
4463 then :
4464
4465 else $as_nop
4466 # This test program should compile successfully.
4467 # No library function is consistently available on
4468 # freestanding implementations, so test against a dummy
4469 # declaration. Include always-available headers on the
4470 # off chance that they somehow elicit warnings.
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4473 #include <float.h>
4474 #include <limits.h>
4475 #include <stdarg.h>
4476 #include <stddef.h>
4477 extern void ac_decl (int, char *);
4478
4479 int
4480 main (void)
4481 {
4482 (void) ac_decl (0, (char *) 0);
4483 (void) ac_decl;
4484
4485 ;
4486 return 0;
4487 }
4488 _ACEOF
4489 if ac_fn_c_try_compile "$LINENO"
4490 then :
4491 if test x"$ac_arg" = x
4492 then :
4493 ac_cv_c_undeclared_builtin_options='none needed'
4494 else $as_nop
4495 ac_cv_c_undeclared_builtin_options=$ac_arg
4496 fi
4497 break
4498 fi
4499 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4500 fi
4501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4502 done
4503 CFLAGS=$ac_save_CFLAGS
4504
4505 fi
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4507 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4508 case $ac_cv_c_undeclared_builtin_options in #(
4509 'cannot detect') :
4510 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4512 as_fn_error $? "cannot make $CC report undeclared builtins
4513 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4514 'none needed') :
4515 ac_c_undeclared_builtin_options='' ;; #(
4516 *) :
4517 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4518 esac
4519
4520 ac_header= ac_cache=
4521 for ac_item in $ac_header_c_list
4522 do
4523 if test $ac_cache; then
4524 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4525 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4526 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4527 fi
4528 ac_header= ac_cache=
4529 elif test $ac_header; then
4530 ac_cache=$ac_item
4531 else
4532 ac_header=$ac_item
4533 fi
4534 done
4535
4536
4537
4538
4539
4540
4541
4542
4543 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4544 then :
4545
4546 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4547
4548 fi
4549
4550
4551
4552
4553 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4554 if test "x$ac_cv_have_decl___clang__" = xyes
4555 then :
4556 CLANGCC="yes"
4557 else $as_nop
4558 CLANGCC="no"
4559 fi
4560 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4561 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4562 then :
4563 INTELCC="yes"
4564 else $as_nop
4565 INTELCC="no"
4566 fi
4567 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4568 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4569 then :
4570 SUNCC="yes"
4571 else $as_nop
4572 SUNCC="no"
4573 fi
4574
4575
4576
4577
4578
4579
4580
4581
4582 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4583 if test -n "$ac_tool_prefix"; then
4584 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4585 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 printf %s "checking for $ac_word... " >&6; }
4588 if test ${ac_cv_path_PKG_CONFIG+y}
4589 then :
4590 printf %s "(cached) " >&6
4591 else $as_nop
4592 case $PKG_CONFIG in
4593 [\\/]* | ?:[\\/]*)
4594 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4595 ;;
4596 *)
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4599 do
4600 IFS=$as_save_IFS
4601 case $as_dir in #(((
4602 '') as_dir=./ ;;
4603 */) ;;
4604 *) as_dir=$as_dir/ ;;
4605 esac
4606 for ac_exec_ext in '' $ac_executable_extensions; do
4607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4608 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4610 break 2
4611 fi
4612 done
4613 done
4614 IFS=$as_save_IFS
4615
4616 ;;
4617 esac
4618 fi
4619 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4620 if test -n "$PKG_CONFIG"; then
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4622 printf "%s\n" "$PKG_CONFIG" >&6; }
4623 else
4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 printf "%s\n" "no" >&6; }
4626 fi
4627
4628
4629 fi
4630 if test -z "$ac_cv_path_PKG_CONFIG"; then
4631 ac_pt_PKG_CONFIG=$PKG_CONFIG
4632 # Extract the first word of "pkg-config", so it can be a program name with args.
4633 set dummy pkg-config; ac_word=$2
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4635 printf %s "checking for $ac_word... " >&6; }
4636 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4637 then :
4638 printf %s "(cached) " >&6
4639 else $as_nop
4640 case $ac_pt_PKG_CONFIG in
4641 [\\/]* | ?:[\\/]*)
4642 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4643 ;;
4644 *)
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4647 do
4648 IFS=$as_save_IFS
4649 case $as_dir in #(((
4650 '') as_dir=./ ;;
4651 */) ;;
4652 *) as_dir=$as_dir/ ;;
4653 esac
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4656 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4658 break 2
4659 fi
4660 done
4661 done
4662 IFS=$as_save_IFS
4663
4664 ;;
4665 esac
4666 fi
4667 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4668 if test -n "$ac_pt_PKG_CONFIG"; then
4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4670 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4671 else
4672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4673 printf "%s\n" "no" >&6; }
4674 fi
4675
4676 if test "x$ac_pt_PKG_CONFIG" = x; then
4677 PKG_CONFIG=""
4678 else
4679 case $cross_compiling:$ac_tool_warned in
4680 yes:)
4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4682 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4683 ac_tool_warned=yes ;;
4684 esac
4685 PKG_CONFIG=$ac_pt_PKG_CONFIG
4686 fi
4687 else
4688 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4689 fi
4690
4691 fi
4692 if test -n "$PKG_CONFIG"; then
4693 _pkg_min_version=0.9.0
4694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4695 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4696 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4698 printf "%s\n" "yes" >&6; }
4699 else
4700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 printf "%s\n" "no" >&6; }
4702 PKG_CONFIG=""
4703 fi
4704 fi
4705
4706
4707 # Make sure we can run config.sub.
4708 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4709 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4710
4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4712 printf %s "checking build system type... " >&6; }
4713 if test ${ac_cv_build+y}
4714 then :
4715 printf %s "(cached) " >&6
4716 else $as_nop
4717 ac_build_alias=$build_alias
4718 test "x$ac_build_alias" = x &&
4719 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4720 test "x$ac_build_alias" = x &&
4721 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4722 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4723 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4724
4725 fi
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4727 printf "%s\n" "$ac_cv_build" >&6; }
4728 case $ac_cv_build in
4729 *-*-*) ;;
4730 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4731 esac
4732 build=$ac_cv_build
4733 ac_save_IFS=$IFS; IFS='-'
4734 set x $ac_cv_build
4735 shift
4736 build_cpu=$1
4737 build_vendor=$2
4738 shift; shift
4739 # Remember, the first character of IFS is used to create $*,
4740 # except with old shells:
4741 build_os=$*
4742 IFS=$ac_save_IFS
4743 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4744
4745
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4747 printf %s "checking host system type... " >&6; }
4748 if test ${ac_cv_host+y}
4749 then :
4750 printf %s "(cached) " >&6
4751 else $as_nop
4752 if test "x$host_alias" = x; then
4753 ac_cv_host=$ac_cv_build
4754 else
4755 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4756 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4757 fi
4758
4759 fi
4760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4761 printf "%s\n" "$ac_cv_host" >&6; }
4762 case $ac_cv_host in
4763 *-*-*) ;;
4764 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4765 esac
4766 host=$ac_cv_host
4767 ac_save_IFS=$IFS; IFS='-'
4768 set x $ac_cv_host
4769 shift
4770 host_cpu=$1
4771 host_vendor=$2
4772 shift; shift
4773 # Remember, the first character of IFS is used to create $*,
4774 # except with old shells:
4775 host_os=$*
4776 IFS=$ac_save_IFS
4777 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4778
4779
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4781 printf %s "checking for a sed that does not truncate output... " >&6; }
4782 if test ${ac_cv_path_SED+y}
4783 then :
4784 printf %s "(cached) " >&6
4785 else $as_nop
4786 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4787 for ac_i in 1 2 3 4 5 6 7; do
4788 ac_script="$ac_script$as_nl$ac_script"
4789 done
4790 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4791 { ac_script=; unset ac_script;}
4792 if test -z "$SED"; then
4793 ac_path_SED_found=false
4794 # Loop through the user's path and test for each of PROGNAME-LIST
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798 IFS=$as_save_IFS
4799 case $as_dir in #(((
4800 '') as_dir=./ ;;
4801 */) ;;
4802 *) as_dir=$as_dir/ ;;
4803 esac
4804 for ac_prog in sed gsed
4805 do
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4808 as_fn_executable_p "$ac_path_SED" || continue
4809 # Check for GNU ac_path_SED and select it if it is found.
4810 # Check for GNU $ac_path_SED
4811 case `"$ac_path_SED" --version 2>&1` in
4812 *GNU*)
4813 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4814 *)
4815 ac_count=0
4816 printf %s 0123456789 >"conftest.in"
4817 while :
4818 do
4819 cat "conftest.in" "conftest.in" >"conftest.tmp"
4820 mv "conftest.tmp" "conftest.in"
4821 cp "conftest.in" "conftest.nl"
4822 printf "%s\n" '' >> "conftest.nl"
4823 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4825 as_fn_arith $ac_count + 1 && ac_count=$as_val
4826 if test $ac_count -gt ${ac_path_SED_max-0}; then
4827 # Best one so far, save it but keep looking for a better one
4828 ac_cv_path_SED="$ac_path_SED"
4829 ac_path_SED_max=$ac_count
4830 fi
4831 # 10*(2^10) chars as input seems more than enough
4832 test $ac_count -gt 10 && break
4833 done
4834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4835 esac
4836
4837 $ac_path_SED_found && break 3
4838 done
4839 done
4840 done
4841 IFS=$as_save_IFS
4842 if test -z "$ac_cv_path_SED"; then
4843 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4844 fi
4845 else
4846 ac_cv_path_SED=$SED
4847 fi
4848
4849 fi
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4851 printf "%s\n" "$ac_cv_path_SED" >&6; }
4852 SED="$ac_cv_path_SED"
4853 rm -f conftest.sed
4854
4855
4856
4857
4858
4859
4860 # Check whether --enable-selective-werror was given.
4861 if test ${enable_selective_werror+y}
4862 then :
4863 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4864 else $as_nop
4865 SELECTIVE_WERROR=yes
4866 fi
4867
4868
4869
4870
4871
4872 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4873 if test "x$SUNCC" = "xyes"; then
4874 BASE_CFLAGS="-v"
4875 else
4876 BASE_CFLAGS=""
4877 fi
4878
4879 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893 xorg_testset_save_CFLAGS="$CFLAGS"
4894
4895 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4896 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4898 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4899 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4900 then :
4901 printf %s "(cached) " >&6
4902 else $as_nop
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905 int i;
4906 _ACEOF
4907 if ac_fn_c_try_compile "$LINENO"
4908 then :
4909 xorg_cv_cc_flag_unknown_warning_option=yes
4910 else $as_nop
4911 xorg_cv_cc_flag_unknown_warning_option=no
4912 fi
4913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4914 fi
4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4916 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4918 CFLAGS="$xorg_testset_save_CFLAGS"
4919 fi
4920
4921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4924 fi
4925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4927 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4928 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4929 then :
4930 printf %s "(cached) " >&6
4931 else $as_nop
4932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933 /* end confdefs.h. */
4934 int i;
4935 _ACEOF
4936 if ac_fn_c_try_compile "$LINENO"
4937 then :
4938 xorg_cv_cc_flag_unused_command_line_argument=yes
4939 else $as_nop
4940 xorg_cv_cc_flag_unused_command_line_argument=no
4941 fi
4942 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4943 fi
4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4945 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4946 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4947 CFLAGS="$xorg_testset_save_CFLAGS"
4948 fi
4949
4950 found="no"
4951
4952 if test $found = "no" ; then
4953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4955 fi
4956
4957 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4959 fi
4960
4961 CFLAGS="$CFLAGS -Wall"
4962
4963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4964 printf %s "checking if $CC supports -Wall... " >&6; }
4965 cacheid=xorg_cv_cc_flag__Wall
4966 if eval test \${$cacheid+y}
4967 then :
4968 printf %s "(cached) " >&6
4969 else $as_nop
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4972 int i;
4973 int
4974 main (void)
4975 {
4976
4977 ;
4978 return 0;
4979 }
4980 _ACEOF
4981 if ac_fn_c_try_link "$LINENO"
4982 then :
4983 eval $cacheid=yes
4984 else $as_nop
4985 eval $cacheid=no
4986 fi
4987 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4988 conftest$ac_exeext conftest.$ac_ext
4989 fi
4990
4991
4992 CFLAGS="$xorg_testset_save_CFLAGS"
4993
4994 eval supported=\$$cacheid
4995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4996 printf "%s\n" "$supported" >&6; }
4997 if test "$supported" = "yes" ; then
4998 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4999 found="yes"
5000 fi
5001 fi
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017 xorg_testset_save_CFLAGS="$CFLAGS"
5018
5019 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5022 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5023 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5024 then :
5025 printf %s "(cached) " >&6
5026 else $as_nop
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5029 int i;
5030 _ACEOF
5031 if ac_fn_c_try_compile "$LINENO"
5032 then :
5033 xorg_cv_cc_flag_unknown_warning_option=yes
5034 else $as_nop
5035 xorg_cv_cc_flag_unknown_warning_option=no
5036 fi
5037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5038 fi
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5040 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5041 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5042 CFLAGS="$xorg_testset_save_CFLAGS"
5043 fi
5044
5045 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5048 fi
5049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5051 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5052 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5053 then :
5054 printf %s "(cached) " >&6
5055 else $as_nop
5056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5057 /* end confdefs.h. */
5058 int i;
5059 _ACEOF
5060 if ac_fn_c_try_compile "$LINENO"
5061 then :
5062 xorg_cv_cc_flag_unused_command_line_argument=yes
5063 else $as_nop
5064 xorg_cv_cc_flag_unused_command_line_argument=no
5065 fi
5066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5067 fi
5068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5069 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5070 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5071 CFLAGS="$xorg_testset_save_CFLAGS"
5072 fi
5073
5074 found="no"
5075
5076 if test $found = "no" ; then
5077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5079 fi
5080
5081 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5082 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5083 fi
5084
5085 CFLAGS="$CFLAGS -Wpointer-arith"
5086
5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5088 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5089 cacheid=xorg_cv_cc_flag__Wpointer_arith
5090 if eval test \${$cacheid+y}
5091 then :
5092 printf %s "(cached) " >&6
5093 else $as_nop
5094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* end confdefs.h. */
5096 int i;
5097 int
5098 main (void)
5099 {
5100
5101 ;
5102 return 0;
5103 }
5104 _ACEOF
5105 if ac_fn_c_try_link "$LINENO"
5106 then :
5107 eval $cacheid=yes
5108 else $as_nop
5109 eval $cacheid=no
5110 fi
5111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5112 conftest$ac_exeext conftest.$ac_ext
5113 fi
5114
5115
5116 CFLAGS="$xorg_testset_save_CFLAGS"
5117
5118 eval supported=\$$cacheid
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5120 printf "%s\n" "$supported" >&6; }
5121 if test "$supported" = "yes" ; then
5122 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5123 found="yes"
5124 fi
5125 fi
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141 xorg_testset_save_CFLAGS="$CFLAGS"
5142
5143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5146 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5147 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5148 then :
5149 printf %s "(cached) " >&6
5150 else $as_nop
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 int i;
5154 _ACEOF
5155 if ac_fn_c_try_compile "$LINENO"
5156 then :
5157 xorg_cv_cc_flag_unknown_warning_option=yes
5158 else $as_nop
5159 xorg_cv_cc_flag_unknown_warning_option=no
5160 fi
5161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5162 fi
5163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5164 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5166 CFLAGS="$xorg_testset_save_CFLAGS"
5167 fi
5168
5169 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5172 fi
5173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5175 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5176 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5177 then :
5178 printf %s "(cached) " >&6
5179 else $as_nop
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5182 int i;
5183 _ACEOF
5184 if ac_fn_c_try_compile "$LINENO"
5185 then :
5186 xorg_cv_cc_flag_unused_command_line_argument=yes
5187 else $as_nop
5188 xorg_cv_cc_flag_unused_command_line_argument=no
5189 fi
5190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5191 fi
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5193 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5195 CFLAGS="$xorg_testset_save_CFLAGS"
5196 fi
5197
5198 found="no"
5199
5200 if test $found = "no" ; then
5201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5203 fi
5204
5205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5207 fi
5208
5209 CFLAGS="$CFLAGS -Wmissing-declarations"
5210
5211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5212 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5213 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5214 if eval test \${$cacheid+y}
5215 then :
5216 printf %s "(cached) " >&6
5217 else $as_nop
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5220 int i;
5221 int
5222 main (void)
5223 {
5224
5225 ;
5226 return 0;
5227 }
5228 _ACEOF
5229 if ac_fn_c_try_link "$LINENO"
5230 then :
5231 eval $cacheid=yes
5232 else $as_nop
5233 eval $cacheid=no
5234 fi
5235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5236 conftest$ac_exeext conftest.$ac_ext
5237 fi
5238
5239
5240 CFLAGS="$xorg_testset_save_CFLAGS"
5241
5242 eval supported=\$$cacheid
5243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5244 printf "%s\n" "$supported" >&6; }
5245 if test "$supported" = "yes" ; then
5246 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5247 found="yes"
5248 fi
5249 fi
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265 xorg_testset_save_CFLAGS="$CFLAGS"
5266
5267 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5270 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5271 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5272 then :
5273 printf %s "(cached) " >&6
5274 else $as_nop
5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5276 /* end confdefs.h. */
5277 int i;
5278 _ACEOF
5279 if ac_fn_c_try_compile "$LINENO"
5280 then :
5281 xorg_cv_cc_flag_unknown_warning_option=yes
5282 else $as_nop
5283 xorg_cv_cc_flag_unknown_warning_option=no
5284 fi
5285 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5286 fi
5287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5288 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5290 CFLAGS="$xorg_testset_save_CFLAGS"
5291 fi
5292
5293 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5296 fi
5297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5299 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5300 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5301 then :
5302 printf %s "(cached) " >&6
5303 else $as_nop
5304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5305 /* end confdefs.h. */
5306 int i;
5307 _ACEOF
5308 if ac_fn_c_try_compile "$LINENO"
5309 then :
5310 xorg_cv_cc_flag_unused_command_line_argument=yes
5311 else $as_nop
5312 xorg_cv_cc_flag_unused_command_line_argument=no
5313 fi
5314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5315 fi
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5317 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5318 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5319 CFLAGS="$xorg_testset_save_CFLAGS"
5320 fi
5321
5322 found="no"
5323
5324 if test $found = "no" ; then
5325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5327 fi
5328
5329 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5330 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5331 fi
5332
5333 CFLAGS="$CFLAGS -Wformat=2"
5334
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5336 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5337 cacheid=xorg_cv_cc_flag__Wformat_2
5338 if eval test \${$cacheid+y}
5339 then :
5340 printf %s "(cached) " >&6
5341 else $as_nop
5342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5343 /* end confdefs.h. */
5344 int i;
5345 int
5346 main (void)
5347 {
5348
5349 ;
5350 return 0;
5351 }
5352 _ACEOF
5353 if ac_fn_c_try_link "$LINENO"
5354 then :
5355 eval $cacheid=yes
5356 else $as_nop
5357 eval $cacheid=no
5358 fi
5359 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5360 conftest$ac_exeext conftest.$ac_ext
5361 fi
5362
5363
5364 CFLAGS="$xorg_testset_save_CFLAGS"
5365
5366 eval supported=\$$cacheid
5367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5368 printf "%s\n" "$supported" >&6; }
5369 if test "$supported" = "yes" ; then
5370 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5371 found="yes"
5372 fi
5373 fi
5374
5375 if test $found = "no" ; then
5376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5378 fi
5379
5380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5382 fi
5383
5384 CFLAGS="$CFLAGS -Wformat"
5385
5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5387 printf %s "checking if $CC supports -Wformat... " >&6; }
5388 cacheid=xorg_cv_cc_flag__Wformat
5389 if eval test \${$cacheid+y}
5390 then :
5391 printf %s "(cached) " >&6
5392 else $as_nop
5393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5395 int i;
5396 int
5397 main (void)
5398 {
5399
5400 ;
5401 return 0;
5402 }
5403 _ACEOF
5404 if ac_fn_c_try_link "$LINENO"
5405 then :
5406 eval $cacheid=yes
5407 else $as_nop
5408 eval $cacheid=no
5409 fi
5410 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5411 conftest$ac_exeext conftest.$ac_ext
5412 fi
5413
5414
5415 CFLAGS="$xorg_testset_save_CFLAGS"
5416
5417 eval supported=\$$cacheid
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5419 printf "%s\n" "$supported" >&6; }
5420 if test "$supported" = "yes" ; then
5421 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5422 found="yes"
5423 fi
5424 fi
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442 xorg_testset_save_CFLAGS="$CFLAGS"
5443
5444 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5447 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5448 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5449 then :
5450 printf %s "(cached) " >&6
5451 else $as_nop
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5454 int i;
5455 _ACEOF
5456 if ac_fn_c_try_compile "$LINENO"
5457 then :
5458 xorg_cv_cc_flag_unknown_warning_option=yes
5459 else $as_nop
5460 xorg_cv_cc_flag_unknown_warning_option=no
5461 fi
5462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5463 fi
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5465 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5467 CFLAGS="$xorg_testset_save_CFLAGS"
5468 fi
5469
5470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5473 fi
5474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5476 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5477 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5478 then :
5479 printf %s "(cached) " >&6
5480 else $as_nop
5481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5482 /* end confdefs.h. */
5483 int i;
5484 _ACEOF
5485 if ac_fn_c_try_compile "$LINENO"
5486 then :
5487 xorg_cv_cc_flag_unused_command_line_argument=yes
5488 else $as_nop
5489 xorg_cv_cc_flag_unused_command_line_argument=no
5490 fi
5491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5492 fi
5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5494 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5495 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5496 CFLAGS="$xorg_testset_save_CFLAGS"
5497 fi
5498
5499 found="no"
5500
5501 if test $found = "no" ; then
5502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5504 fi
5505
5506 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5508 fi
5509
5510 CFLAGS="$CFLAGS -Wstrict-prototypes"
5511
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5513 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5514 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5515 if eval test \${$cacheid+y}
5516 then :
5517 printf %s "(cached) " >&6
5518 else $as_nop
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5521 int i;
5522 int
5523 main (void)
5524 {
5525
5526 ;
5527 return 0;
5528 }
5529 _ACEOF
5530 if ac_fn_c_try_link "$LINENO"
5531 then :
5532 eval $cacheid=yes
5533 else $as_nop
5534 eval $cacheid=no
5535 fi
5536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5537 conftest$ac_exeext conftest.$ac_ext
5538 fi
5539
5540
5541 CFLAGS="$xorg_testset_save_CFLAGS"
5542
5543 eval supported=\$$cacheid
5544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5545 printf "%s\n" "$supported" >&6; }
5546 if test "$supported" = "yes" ; then
5547 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5548 found="yes"
5549 fi
5550 fi
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566 xorg_testset_save_CFLAGS="$CFLAGS"
5567
5568 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5571 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5572 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5573 then :
5574 printf %s "(cached) " >&6
5575 else $as_nop
5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578 int i;
5579 _ACEOF
5580 if ac_fn_c_try_compile "$LINENO"
5581 then :
5582 xorg_cv_cc_flag_unknown_warning_option=yes
5583 else $as_nop
5584 xorg_cv_cc_flag_unknown_warning_option=no
5585 fi
5586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5587 fi
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5589 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5591 CFLAGS="$xorg_testset_save_CFLAGS"
5592 fi
5593
5594 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5597 fi
5598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5600 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5601 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5602 then :
5603 printf %s "(cached) " >&6
5604 else $as_nop
5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5606 /* end confdefs.h. */
5607 int i;
5608 _ACEOF
5609 if ac_fn_c_try_compile "$LINENO"
5610 then :
5611 xorg_cv_cc_flag_unused_command_line_argument=yes
5612 else $as_nop
5613 xorg_cv_cc_flag_unused_command_line_argument=no
5614 fi
5615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5616 fi
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5618 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5620 CFLAGS="$xorg_testset_save_CFLAGS"
5621 fi
5622
5623 found="no"
5624
5625 if test $found = "no" ; then
5626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5628 fi
5629
5630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5632 fi
5633
5634 CFLAGS="$CFLAGS -Wmissing-prototypes"
5635
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5637 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5638 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5639 if eval test \${$cacheid+y}
5640 then :
5641 printf %s "(cached) " >&6
5642 else $as_nop
5643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5644 /* end confdefs.h. */
5645 int i;
5646 int
5647 main (void)
5648 {
5649
5650 ;
5651 return 0;
5652 }
5653 _ACEOF
5654 if ac_fn_c_try_link "$LINENO"
5655 then :
5656 eval $cacheid=yes
5657 else $as_nop
5658 eval $cacheid=no
5659 fi
5660 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5661 conftest$ac_exeext conftest.$ac_ext
5662 fi
5663
5664
5665 CFLAGS="$xorg_testset_save_CFLAGS"
5666
5667 eval supported=\$$cacheid
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5669 printf "%s\n" "$supported" >&6; }
5670 if test "$supported" = "yes" ; then
5671 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5672 found="yes"
5673 fi
5674 fi
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690 xorg_testset_save_CFLAGS="$CFLAGS"
5691
5692 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5695 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5696 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5697 then :
5698 printf %s "(cached) " >&6
5699 else $as_nop
5700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5701 /* end confdefs.h. */
5702 int i;
5703 _ACEOF
5704 if ac_fn_c_try_compile "$LINENO"
5705 then :
5706 xorg_cv_cc_flag_unknown_warning_option=yes
5707 else $as_nop
5708 xorg_cv_cc_flag_unknown_warning_option=no
5709 fi
5710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5711 fi
5712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5713 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5714 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5715 CFLAGS="$xorg_testset_save_CFLAGS"
5716 fi
5717
5718 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5721 fi
5722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5724 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5725 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5726 then :
5727 printf %s "(cached) " >&6
5728 else $as_nop
5729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5731 int i;
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"
5734 then :
5735 xorg_cv_cc_flag_unused_command_line_argument=yes
5736 else $as_nop
5737 xorg_cv_cc_flag_unused_command_line_argument=no
5738 fi
5739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5740 fi
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5742 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5743 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5744 CFLAGS="$xorg_testset_save_CFLAGS"
5745 fi
5746
5747 found="no"
5748
5749 if test $found = "no" ; then
5750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5752 fi
5753
5754 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5755 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5756 fi
5757
5758 CFLAGS="$CFLAGS -Wnested-externs"
5759
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5761 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5762 cacheid=xorg_cv_cc_flag__Wnested_externs
5763 if eval test \${$cacheid+y}
5764 then :
5765 printf %s "(cached) " >&6
5766 else $as_nop
5767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5768 /* end confdefs.h. */
5769 int i;
5770 int
5771 main (void)
5772 {
5773
5774 ;
5775 return 0;
5776 }
5777 _ACEOF
5778 if ac_fn_c_try_link "$LINENO"
5779 then :
5780 eval $cacheid=yes
5781 else $as_nop
5782 eval $cacheid=no
5783 fi
5784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5785 conftest$ac_exeext conftest.$ac_ext
5786 fi
5787
5788
5789 CFLAGS="$xorg_testset_save_CFLAGS"
5790
5791 eval supported=\$$cacheid
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5793 printf "%s\n" "$supported" >&6; }
5794 if test "$supported" = "yes" ; then
5795 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5796 found="yes"
5797 fi
5798 fi
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814 xorg_testset_save_CFLAGS="$CFLAGS"
5815
5816 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5819 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5820 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5821 then :
5822 printf %s "(cached) " >&6
5823 else $as_nop
5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5825 /* end confdefs.h. */
5826 int i;
5827 _ACEOF
5828 if ac_fn_c_try_compile "$LINENO"
5829 then :
5830 xorg_cv_cc_flag_unknown_warning_option=yes
5831 else $as_nop
5832 xorg_cv_cc_flag_unknown_warning_option=no
5833 fi
5834 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5835 fi
5836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5837 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5838 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5839 CFLAGS="$xorg_testset_save_CFLAGS"
5840 fi
5841
5842 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5843 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5845 fi
5846 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5848 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5849 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5850 then :
5851 printf %s "(cached) " >&6
5852 else $as_nop
5853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854 /* end confdefs.h. */
5855 int i;
5856 _ACEOF
5857 if ac_fn_c_try_compile "$LINENO"
5858 then :
5859 xorg_cv_cc_flag_unused_command_line_argument=yes
5860 else $as_nop
5861 xorg_cv_cc_flag_unused_command_line_argument=no
5862 fi
5863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5864 fi
5865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5866 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5867 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5868 CFLAGS="$xorg_testset_save_CFLAGS"
5869 fi
5870
5871 found="no"
5872
5873 if test $found = "no" ; then
5874 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5875 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5876 fi
5877
5878 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5880 fi
5881
5882 CFLAGS="$CFLAGS -Wbad-function-cast"
5883
5884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5885 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5886 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5887 if eval test \${$cacheid+y}
5888 then :
5889 printf %s "(cached) " >&6
5890 else $as_nop
5891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5892 /* end confdefs.h. */
5893 int i;
5894 int
5895 main (void)
5896 {
5897
5898 ;
5899 return 0;
5900 }
5901 _ACEOF
5902 if ac_fn_c_try_link "$LINENO"
5903 then :
5904 eval $cacheid=yes
5905 else $as_nop
5906 eval $cacheid=no
5907 fi
5908 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5909 conftest$ac_exeext conftest.$ac_ext
5910 fi
5911
5912
5913 CFLAGS="$xorg_testset_save_CFLAGS"
5914
5915 eval supported=\$$cacheid
5916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5917 printf "%s\n" "$supported" >&6; }
5918 if test "$supported" = "yes" ; then
5919 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5920 found="yes"
5921 fi
5922 fi
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938 xorg_testset_save_CFLAGS="$CFLAGS"
5939
5940 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5943 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5944 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5945 then :
5946 printf %s "(cached) " >&6
5947 else $as_nop
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5950 int i;
5951 _ACEOF
5952 if ac_fn_c_try_compile "$LINENO"
5953 then :
5954 xorg_cv_cc_flag_unknown_warning_option=yes
5955 else $as_nop
5956 xorg_cv_cc_flag_unknown_warning_option=no
5957 fi
5958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5959 fi
5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5961 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5962 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5963 CFLAGS="$xorg_testset_save_CFLAGS"
5964 fi
5965
5966 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5967 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5969 fi
5970 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5972 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5973 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5974 then :
5975 printf %s "(cached) " >&6
5976 else $as_nop
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5979 int i;
5980 _ACEOF
5981 if ac_fn_c_try_compile "$LINENO"
5982 then :
5983 xorg_cv_cc_flag_unused_command_line_argument=yes
5984 else $as_nop
5985 xorg_cv_cc_flag_unused_command_line_argument=no
5986 fi
5987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5988 fi
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5990 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5992 CFLAGS="$xorg_testset_save_CFLAGS"
5993 fi
5994
5995 found="no"
5996
5997 if test $found = "no" ; then
5998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6000 fi
6001
6002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6004 fi
6005
6006 CFLAGS="$CFLAGS -Wold-style-definition"
6007
6008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6009 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6010 cacheid=xorg_cv_cc_flag__Wold_style_definition
6011 if eval test \${$cacheid+y}
6012 then :
6013 printf %s "(cached) " >&6
6014 else $as_nop
6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6016 /* end confdefs.h. */
6017 int i;
6018 int
6019 main (void)
6020 {
6021
6022 ;
6023 return 0;
6024 }
6025 _ACEOF
6026 if ac_fn_c_try_link "$LINENO"
6027 then :
6028 eval $cacheid=yes
6029 else $as_nop
6030 eval $cacheid=no
6031 fi
6032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6033 conftest$ac_exeext conftest.$ac_ext
6034 fi
6035
6036
6037 CFLAGS="$xorg_testset_save_CFLAGS"
6038
6039 eval supported=\$$cacheid
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6041 printf "%s\n" "$supported" >&6; }
6042 if test "$supported" = "yes" ; then
6043 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6044 found="yes"
6045 fi
6046 fi
6047
6048 if test $found = "no" ; then
6049 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6050 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6051 fi
6052
6053 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6055 fi
6056
6057 CFLAGS="$CFLAGS -fd"
6058
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6060 printf %s "checking if $CC supports -fd... " >&6; }
6061 cacheid=xorg_cv_cc_flag__fd
6062 if eval test \${$cacheid+y}
6063 then :
6064 printf %s "(cached) " >&6
6065 else $as_nop
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068 int i;
6069 int
6070 main (void)
6071 {
6072
6073 ;
6074 return 0;
6075 }
6076 _ACEOF
6077 if ac_fn_c_try_link "$LINENO"
6078 then :
6079 eval $cacheid=yes
6080 else $as_nop
6081 eval $cacheid=no
6082 fi
6083 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6084 conftest$ac_exeext conftest.$ac_ext
6085 fi
6086
6087
6088 CFLAGS="$xorg_testset_save_CFLAGS"
6089
6090 eval supported=\$$cacheid
6091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6092 printf "%s\n" "$supported" >&6; }
6093 if test "$supported" = "yes" ; then
6094 BASE_CFLAGS="$BASE_CFLAGS -fd"
6095 found="yes"
6096 fi
6097 fi
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113 xorg_testset_save_CFLAGS="$CFLAGS"
6114
6115 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6118 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6119 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6120 then :
6121 printf %s "(cached) " >&6
6122 else $as_nop
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 int i;
6126 _ACEOF
6127 if ac_fn_c_try_compile "$LINENO"
6128 then :
6129 xorg_cv_cc_flag_unknown_warning_option=yes
6130 else $as_nop
6131 xorg_cv_cc_flag_unknown_warning_option=no
6132 fi
6133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6134 fi
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6136 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6137 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6138 CFLAGS="$xorg_testset_save_CFLAGS"
6139 fi
6140
6141 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6144 fi
6145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6147 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6148 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6149 then :
6150 printf %s "(cached) " >&6
6151 else $as_nop
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6154 int i;
6155 _ACEOF
6156 if ac_fn_c_try_compile "$LINENO"
6157 then :
6158 xorg_cv_cc_flag_unused_command_line_argument=yes
6159 else $as_nop
6160 xorg_cv_cc_flag_unused_command_line_argument=no
6161 fi
6162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6163 fi
6164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6165 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6166 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6167 CFLAGS="$xorg_testset_save_CFLAGS"
6168 fi
6169
6170 found="no"
6171
6172 if test $found = "no" ; then
6173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6175 fi
6176
6177 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6179 fi
6180
6181 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6182
6183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6184 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6185 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6186 if eval test \${$cacheid+y}
6187 then :
6188 printf %s "(cached) " >&6
6189 else $as_nop
6190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h. */
6192 int i;
6193 int
6194 main (void)
6195 {
6196
6197 ;
6198 return 0;
6199 }
6200 _ACEOF
6201 if ac_fn_c_try_link "$LINENO"
6202 then :
6203 eval $cacheid=yes
6204 else $as_nop
6205 eval $cacheid=no
6206 fi
6207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6208 conftest$ac_exeext conftest.$ac_ext
6209 fi
6210
6211
6212 CFLAGS="$xorg_testset_save_CFLAGS"
6213
6214 eval supported=\$$cacheid
6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6216 printf "%s\n" "$supported" >&6; }
6217 if test "$supported" = "yes" ; then
6218 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6219 found="yes"
6220 fi
6221 fi
6222
6223
6224
6225
6226
6227 # This chunk adds additional warnings that could catch undesired effects.
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241 xorg_testset_save_CFLAGS="$CFLAGS"
6242
6243 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6246 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6247 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6248 then :
6249 printf %s "(cached) " >&6
6250 else $as_nop
6251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h. */
6253 int i;
6254 _ACEOF
6255 if ac_fn_c_try_compile "$LINENO"
6256 then :
6257 xorg_cv_cc_flag_unknown_warning_option=yes
6258 else $as_nop
6259 xorg_cv_cc_flag_unknown_warning_option=no
6260 fi
6261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6262 fi
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6264 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6266 CFLAGS="$xorg_testset_save_CFLAGS"
6267 fi
6268
6269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6272 fi
6273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6275 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6276 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6277 then :
6278 printf %s "(cached) " >&6
6279 else $as_nop
6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281 /* end confdefs.h. */
6282 int i;
6283 _ACEOF
6284 if ac_fn_c_try_compile "$LINENO"
6285 then :
6286 xorg_cv_cc_flag_unused_command_line_argument=yes
6287 else $as_nop
6288 xorg_cv_cc_flag_unused_command_line_argument=no
6289 fi
6290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6291 fi
6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6293 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6294 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6295 CFLAGS="$xorg_testset_save_CFLAGS"
6296 fi
6297
6298 found="no"
6299
6300 if test $found = "no" ; then
6301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6303 fi
6304
6305 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6307 fi
6308
6309 CFLAGS="$CFLAGS -Wunused"
6310
6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6312 printf %s "checking if $CC supports -Wunused... " >&6; }
6313 cacheid=xorg_cv_cc_flag__Wunused
6314 if eval test \${$cacheid+y}
6315 then :
6316 printf %s "(cached) " >&6
6317 else $as_nop
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6320 int i;
6321 int
6322 main (void)
6323 {
6324
6325 ;
6326 return 0;
6327 }
6328 _ACEOF
6329 if ac_fn_c_try_link "$LINENO"
6330 then :
6331 eval $cacheid=yes
6332 else $as_nop
6333 eval $cacheid=no
6334 fi
6335 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6336 conftest$ac_exeext conftest.$ac_ext
6337 fi
6338
6339
6340 CFLAGS="$xorg_testset_save_CFLAGS"
6341
6342 eval supported=\$$cacheid
6343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6344 printf "%s\n" "$supported" >&6; }
6345 if test "$supported" = "yes" ; then
6346 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6347 found="yes"
6348 fi
6349 fi
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365 xorg_testset_save_CFLAGS="$CFLAGS"
6366
6367 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6370 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6371 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6372 then :
6373 printf %s "(cached) " >&6
6374 else $as_nop
6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6377 int i;
6378 _ACEOF
6379 if ac_fn_c_try_compile "$LINENO"
6380 then :
6381 xorg_cv_cc_flag_unknown_warning_option=yes
6382 else $as_nop
6383 xorg_cv_cc_flag_unknown_warning_option=no
6384 fi
6385 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6386 fi
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6388 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6389 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6390 CFLAGS="$xorg_testset_save_CFLAGS"
6391 fi
6392
6393 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6394 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6395 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6396 fi
6397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6399 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6400 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6401 then :
6402 printf %s "(cached) " >&6
6403 else $as_nop
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6406 int i;
6407 _ACEOF
6408 if ac_fn_c_try_compile "$LINENO"
6409 then :
6410 xorg_cv_cc_flag_unused_command_line_argument=yes
6411 else $as_nop
6412 xorg_cv_cc_flag_unused_command_line_argument=no
6413 fi
6414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6415 fi
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6417 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6419 CFLAGS="$xorg_testset_save_CFLAGS"
6420 fi
6421
6422 found="no"
6423
6424 if test $found = "no" ; then
6425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6427 fi
6428
6429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6431 fi
6432
6433 CFLAGS="$CFLAGS -Wuninitialized"
6434
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6436 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6437 cacheid=xorg_cv_cc_flag__Wuninitialized
6438 if eval test \${$cacheid+y}
6439 then :
6440 printf %s "(cached) " >&6
6441 else $as_nop
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444 int i;
6445 int
6446 main (void)
6447 {
6448
6449 ;
6450 return 0;
6451 }
6452 _ACEOF
6453 if ac_fn_c_try_link "$LINENO"
6454 then :
6455 eval $cacheid=yes
6456 else $as_nop
6457 eval $cacheid=no
6458 fi
6459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6460 conftest$ac_exeext conftest.$ac_ext
6461 fi
6462
6463
6464 CFLAGS="$xorg_testset_save_CFLAGS"
6465
6466 eval supported=\$$cacheid
6467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6468 printf "%s\n" "$supported" >&6; }
6469 if test "$supported" = "yes" ; then
6470 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6471 found="yes"
6472 fi
6473 fi
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489 xorg_testset_save_CFLAGS="$CFLAGS"
6490
6491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6494 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6495 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6496 then :
6497 printf %s "(cached) " >&6
6498 else $as_nop
6499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500 /* end confdefs.h. */
6501 int i;
6502 _ACEOF
6503 if ac_fn_c_try_compile "$LINENO"
6504 then :
6505 xorg_cv_cc_flag_unknown_warning_option=yes
6506 else $as_nop
6507 xorg_cv_cc_flag_unknown_warning_option=no
6508 fi
6509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6510 fi
6511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6512 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6514 CFLAGS="$xorg_testset_save_CFLAGS"
6515 fi
6516
6517 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6520 fi
6521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6523 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6524 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6525 then :
6526 printf %s "(cached) " >&6
6527 else $as_nop
6528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6529 /* end confdefs.h. */
6530 int i;
6531 _ACEOF
6532 if ac_fn_c_try_compile "$LINENO"
6533 then :
6534 xorg_cv_cc_flag_unused_command_line_argument=yes
6535 else $as_nop
6536 xorg_cv_cc_flag_unused_command_line_argument=no
6537 fi
6538 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6539 fi
6540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6541 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6543 CFLAGS="$xorg_testset_save_CFLAGS"
6544 fi
6545
6546 found="no"
6547
6548 if test $found = "no" ; then
6549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6551 fi
6552
6553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6555 fi
6556
6557 CFLAGS="$CFLAGS -Wshadow"
6558
6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6560 printf %s "checking if $CC supports -Wshadow... " >&6; }
6561 cacheid=xorg_cv_cc_flag__Wshadow
6562 if eval test \${$cacheid+y}
6563 then :
6564 printf %s "(cached) " >&6
6565 else $as_nop
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568 int i;
6569 int
6570 main (void)
6571 {
6572
6573 ;
6574 return 0;
6575 }
6576 _ACEOF
6577 if ac_fn_c_try_link "$LINENO"
6578 then :
6579 eval $cacheid=yes
6580 else $as_nop
6581 eval $cacheid=no
6582 fi
6583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6584 conftest$ac_exeext conftest.$ac_ext
6585 fi
6586
6587
6588 CFLAGS="$xorg_testset_save_CFLAGS"
6589
6590 eval supported=\$$cacheid
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6592 printf "%s\n" "$supported" >&6; }
6593 if test "$supported" = "yes" ; then
6594 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6595 found="yes"
6596 fi
6597 fi
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613 xorg_testset_save_CFLAGS="$CFLAGS"
6614
6615 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6618 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6619 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6620 then :
6621 printf %s "(cached) " >&6
6622 else $as_nop
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625 int i;
6626 _ACEOF
6627 if ac_fn_c_try_compile "$LINENO"
6628 then :
6629 xorg_cv_cc_flag_unknown_warning_option=yes
6630 else $as_nop
6631 xorg_cv_cc_flag_unknown_warning_option=no
6632 fi
6633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6634 fi
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6636 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6637 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6638 CFLAGS="$xorg_testset_save_CFLAGS"
6639 fi
6640
6641 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6642 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6643 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6644 fi
6645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6647 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6648 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6649 then :
6650 printf %s "(cached) " >&6
6651 else $as_nop
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6654 int i;
6655 _ACEOF
6656 if ac_fn_c_try_compile "$LINENO"
6657 then :
6658 xorg_cv_cc_flag_unused_command_line_argument=yes
6659 else $as_nop
6660 xorg_cv_cc_flag_unused_command_line_argument=no
6661 fi
6662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6663 fi
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6665 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6666 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6667 CFLAGS="$xorg_testset_save_CFLAGS"
6668 fi
6669
6670 found="no"
6671
6672 if test $found = "no" ; then
6673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6675 fi
6676
6677 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6678 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6679 fi
6680
6681 CFLAGS="$CFLAGS -Wmissing-noreturn"
6682
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6684 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6685 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6686 if eval test \${$cacheid+y}
6687 then :
6688 printf %s "(cached) " >&6
6689 else $as_nop
6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6691 /* end confdefs.h. */
6692 int i;
6693 int
6694 main (void)
6695 {
6696
6697 ;
6698 return 0;
6699 }
6700 _ACEOF
6701 if ac_fn_c_try_link "$LINENO"
6702 then :
6703 eval $cacheid=yes
6704 else $as_nop
6705 eval $cacheid=no
6706 fi
6707 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6708 conftest$ac_exeext conftest.$ac_ext
6709 fi
6710
6711
6712 CFLAGS="$xorg_testset_save_CFLAGS"
6713
6714 eval supported=\$$cacheid
6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6716 printf "%s\n" "$supported" >&6; }
6717 if test "$supported" = "yes" ; then
6718 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6719 found="yes"
6720 fi
6721 fi
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737 xorg_testset_save_CFLAGS="$CFLAGS"
6738
6739 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6740 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6742 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6743 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6744 then :
6745 printf %s "(cached) " >&6
6746 else $as_nop
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748 /* end confdefs.h. */
6749 int i;
6750 _ACEOF
6751 if ac_fn_c_try_compile "$LINENO"
6752 then :
6753 xorg_cv_cc_flag_unknown_warning_option=yes
6754 else $as_nop
6755 xorg_cv_cc_flag_unknown_warning_option=no
6756 fi
6757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6758 fi
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6760 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6761 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6762 CFLAGS="$xorg_testset_save_CFLAGS"
6763 fi
6764
6765 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6766 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6767 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6768 fi
6769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6771 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6772 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6773 then :
6774 printf %s "(cached) " >&6
6775 else $as_nop
6776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777 /* end confdefs.h. */
6778 int i;
6779 _ACEOF
6780 if ac_fn_c_try_compile "$LINENO"
6781 then :
6782 xorg_cv_cc_flag_unused_command_line_argument=yes
6783 else $as_nop
6784 xorg_cv_cc_flag_unused_command_line_argument=no
6785 fi
6786 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6787 fi
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6789 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6790 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6791 CFLAGS="$xorg_testset_save_CFLAGS"
6792 fi
6793
6794 found="no"
6795
6796 if test $found = "no" ; then
6797 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6799 fi
6800
6801 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6802 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6803 fi
6804
6805 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6806
6807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6808 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6809 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6810 if eval test \${$cacheid+y}
6811 then :
6812 printf %s "(cached) " >&6
6813 else $as_nop
6814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6816 int i;
6817 int
6818 main (void)
6819 {
6820
6821 ;
6822 return 0;
6823 }
6824 _ACEOF
6825 if ac_fn_c_try_link "$LINENO"
6826 then :
6827 eval $cacheid=yes
6828 else $as_nop
6829 eval $cacheid=no
6830 fi
6831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6832 conftest$ac_exeext conftest.$ac_ext
6833 fi
6834
6835
6836 CFLAGS="$xorg_testset_save_CFLAGS"
6837
6838 eval supported=\$$cacheid
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6840 printf "%s\n" "$supported" >&6; }
6841 if test "$supported" = "yes" ; then
6842 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6843 found="yes"
6844 fi
6845 fi
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861 xorg_testset_save_CFLAGS="$CFLAGS"
6862
6863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6866 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6867 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6868 then :
6869 printf %s "(cached) " >&6
6870 else $as_nop
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6873 int i;
6874 _ACEOF
6875 if ac_fn_c_try_compile "$LINENO"
6876 then :
6877 xorg_cv_cc_flag_unknown_warning_option=yes
6878 else $as_nop
6879 xorg_cv_cc_flag_unknown_warning_option=no
6880 fi
6881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6882 fi
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6884 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6885 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6886 CFLAGS="$xorg_testset_save_CFLAGS"
6887 fi
6888
6889 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6892 fi
6893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6895 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6896 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6897 then :
6898 printf %s "(cached) " >&6
6899 else $as_nop
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902 int i;
6903 _ACEOF
6904 if ac_fn_c_try_compile "$LINENO"
6905 then :
6906 xorg_cv_cc_flag_unused_command_line_argument=yes
6907 else $as_nop
6908 xorg_cv_cc_flag_unused_command_line_argument=no
6909 fi
6910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6911 fi
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6913 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6914 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6915 CFLAGS="$xorg_testset_save_CFLAGS"
6916 fi
6917
6918 found="no"
6919
6920 if test $found = "no" ; then
6921 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6923 fi
6924
6925 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6927 fi
6928
6929 CFLAGS="$CFLAGS -Wredundant-decls"
6930
6931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6932 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6933 cacheid=xorg_cv_cc_flag__Wredundant_decls
6934 if eval test \${$cacheid+y}
6935 then :
6936 printf %s "(cached) " >&6
6937 else $as_nop
6938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6939 /* end confdefs.h. */
6940 int i;
6941 int
6942 main (void)
6943 {
6944
6945 ;
6946 return 0;
6947 }
6948 _ACEOF
6949 if ac_fn_c_try_link "$LINENO"
6950 then :
6951 eval $cacheid=yes
6952 else $as_nop
6953 eval $cacheid=no
6954 fi
6955 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6956 conftest$ac_exeext conftest.$ac_ext
6957 fi
6958
6959
6960 CFLAGS="$xorg_testset_save_CFLAGS"
6961
6962 eval supported=\$$cacheid
6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6964 printf "%s\n" "$supported" >&6; }
6965 if test "$supported" = "yes" ; then
6966 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6967 found="yes"
6968 fi
6969 fi
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985 xorg_testset_save_CFLAGS="$CFLAGS"
6986
6987 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6990 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6991 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6992 then :
6993 printf %s "(cached) " >&6
6994 else $as_nop
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997 int i;
6998 _ACEOF
6999 if ac_fn_c_try_compile "$LINENO"
7000 then :
7001 xorg_cv_cc_flag_unknown_warning_option=yes
7002 else $as_nop
7003 xorg_cv_cc_flag_unknown_warning_option=no
7004 fi
7005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7006 fi
7007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7008 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7009 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7010 CFLAGS="$xorg_testset_save_CFLAGS"
7011 fi
7012
7013 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7016 fi
7017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7019 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7020 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7021 then :
7022 printf %s "(cached) " >&6
7023 else $as_nop
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7026 int i;
7027 _ACEOF
7028 if ac_fn_c_try_compile "$LINENO"
7029 then :
7030 xorg_cv_cc_flag_unused_command_line_argument=yes
7031 else $as_nop
7032 xorg_cv_cc_flag_unused_command_line_argument=no
7033 fi
7034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7035 fi
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7037 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7039 CFLAGS="$xorg_testset_save_CFLAGS"
7040 fi
7041
7042 found="no"
7043
7044 if test $found = "no" ; then
7045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7047 fi
7048
7049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7051 fi
7052
7053 CFLAGS="$CFLAGS -Wlogical-op"
7054
7055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7056 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7057 cacheid=xorg_cv_cc_flag__Wlogical_op
7058 if eval test \${$cacheid+y}
7059 then :
7060 printf %s "(cached) " >&6
7061 else $as_nop
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064 int i;
7065 int
7066 main (void)
7067 {
7068
7069 ;
7070 return 0;
7071 }
7072 _ACEOF
7073 if ac_fn_c_try_link "$LINENO"
7074 then :
7075 eval $cacheid=yes
7076 else $as_nop
7077 eval $cacheid=no
7078 fi
7079 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7080 conftest$ac_exeext conftest.$ac_ext
7081 fi
7082
7083
7084 CFLAGS="$xorg_testset_save_CFLAGS"
7085
7086 eval supported=\$$cacheid
7087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7088 printf "%s\n" "$supported" >&6; }
7089 if test "$supported" = "yes" ; then
7090 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7091 found="yes"
7092 fi
7093 fi
7094
7095
7096
7097 # These are currently disabled because they are noisy. They will be enabled
7098 # in the future once the codebase is sufficiently modernized to silence
7099 # them. For now, I don't want them to drown out the other warnings.
7100 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7101 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7102 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7103
7104 # Turn some warnings into errors, so we don't accidently get successful builds
7105 # when there are problems that should be fixed.
7106
7107 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121 xorg_testset_save_CFLAGS="$CFLAGS"
7122
7123 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7126 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7127 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7128 then :
7129 printf %s "(cached) " >&6
7130 else $as_nop
7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7132 /* end confdefs.h. */
7133 int i;
7134 _ACEOF
7135 if ac_fn_c_try_compile "$LINENO"
7136 then :
7137 xorg_cv_cc_flag_unknown_warning_option=yes
7138 else $as_nop
7139 xorg_cv_cc_flag_unknown_warning_option=no
7140 fi
7141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7142 fi
7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7144 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7145 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7146 CFLAGS="$xorg_testset_save_CFLAGS"
7147 fi
7148
7149 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7150 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7151 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7152 fi
7153 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7155 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7156 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7157 then :
7158 printf %s "(cached) " >&6
7159 else $as_nop
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162 int i;
7163 _ACEOF
7164 if ac_fn_c_try_compile "$LINENO"
7165 then :
7166 xorg_cv_cc_flag_unused_command_line_argument=yes
7167 else $as_nop
7168 xorg_cv_cc_flag_unused_command_line_argument=no
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7171 fi
7172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7173 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7175 CFLAGS="$xorg_testset_save_CFLAGS"
7176 fi
7177
7178 found="no"
7179
7180 if test $found = "no" ; then
7181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7183 fi
7184
7185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7187 fi
7188
7189 CFLAGS="$CFLAGS -Werror=implicit"
7190
7191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7192 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7193 cacheid=xorg_cv_cc_flag__Werror_implicit
7194 if eval test \${$cacheid+y}
7195 then :
7196 printf %s "(cached) " >&6
7197 else $as_nop
7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199 /* end confdefs.h. */
7200 int i;
7201 int
7202 main (void)
7203 {
7204
7205 ;
7206 return 0;
7207 }
7208 _ACEOF
7209 if ac_fn_c_try_link "$LINENO"
7210 then :
7211 eval $cacheid=yes
7212 else $as_nop
7213 eval $cacheid=no
7214 fi
7215 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7216 conftest$ac_exeext conftest.$ac_ext
7217 fi
7218
7219
7220 CFLAGS="$xorg_testset_save_CFLAGS"
7221
7222 eval supported=\$$cacheid
7223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7224 printf "%s\n" "$supported" >&6; }
7225 if test "$supported" = "yes" ; then
7226 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7227 found="yes"
7228 fi
7229 fi
7230
7231 if test $found = "no" ; then
7232 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7233 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7234 fi
7235
7236 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7237 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7238 fi
7239
7240 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7241
7242 { 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
7243 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7244 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7245 if eval test \${$cacheid+y}
7246 then :
7247 printf %s "(cached) " >&6
7248 else $as_nop
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7251 int i;
7252 int
7253 main (void)
7254 {
7255
7256 ;
7257 return 0;
7258 }
7259 _ACEOF
7260 if ac_fn_c_try_link "$LINENO"
7261 then :
7262 eval $cacheid=yes
7263 else $as_nop
7264 eval $cacheid=no
7265 fi
7266 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7267 conftest$ac_exeext conftest.$ac_ext
7268 fi
7269
7270
7271 CFLAGS="$xorg_testset_save_CFLAGS"
7272
7273 eval supported=\$$cacheid
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7275 printf "%s\n" "$supported" >&6; }
7276 if test "$supported" = "yes" ; then
7277 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7278 found="yes"
7279 fi
7280 fi
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296 xorg_testset_save_CFLAGS="$CFLAGS"
7297
7298 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7301 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7302 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7303 then :
7304 printf %s "(cached) " >&6
7305 else $as_nop
7306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7307 /* end confdefs.h. */
7308 int i;
7309 _ACEOF
7310 if ac_fn_c_try_compile "$LINENO"
7311 then :
7312 xorg_cv_cc_flag_unknown_warning_option=yes
7313 else $as_nop
7314 xorg_cv_cc_flag_unknown_warning_option=no
7315 fi
7316 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7317 fi
7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7319 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7320 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7321 CFLAGS="$xorg_testset_save_CFLAGS"
7322 fi
7323
7324 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7325 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7326 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7327 fi
7328 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7330 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7331 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7332 then :
7333 printf %s "(cached) " >&6
7334 else $as_nop
7335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7336 /* end confdefs.h. */
7337 int i;
7338 _ACEOF
7339 if ac_fn_c_try_compile "$LINENO"
7340 then :
7341 xorg_cv_cc_flag_unused_command_line_argument=yes
7342 else $as_nop
7343 xorg_cv_cc_flag_unused_command_line_argument=no
7344 fi
7345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7346 fi
7347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7348 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7349 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7350 CFLAGS="$xorg_testset_save_CFLAGS"
7351 fi
7352
7353 found="no"
7354
7355 if test $found = "no" ; then
7356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7358 fi
7359
7360 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7362 fi
7363
7364 CFLAGS="$CFLAGS -Werror=nonnull"
7365
7366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7367 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7368 cacheid=xorg_cv_cc_flag__Werror_nonnull
7369 if eval test \${$cacheid+y}
7370 then :
7371 printf %s "(cached) " >&6
7372 else $as_nop
7373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7374 /* end confdefs.h. */
7375 int i;
7376 int
7377 main (void)
7378 {
7379
7380 ;
7381 return 0;
7382 }
7383 _ACEOF
7384 if ac_fn_c_try_link "$LINENO"
7385 then :
7386 eval $cacheid=yes
7387 else $as_nop
7388 eval $cacheid=no
7389 fi
7390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7391 conftest$ac_exeext conftest.$ac_ext
7392 fi
7393
7394
7395 CFLAGS="$xorg_testset_save_CFLAGS"
7396
7397 eval supported=\$$cacheid
7398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7399 printf "%s\n" "$supported" >&6; }
7400 if test "$supported" = "yes" ; then
7401 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7402 found="yes"
7403 fi
7404 fi
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420 xorg_testset_save_CFLAGS="$CFLAGS"
7421
7422 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7425 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7426 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7427 then :
7428 printf %s "(cached) " >&6
7429 else $as_nop
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7432 int i;
7433 _ACEOF
7434 if ac_fn_c_try_compile "$LINENO"
7435 then :
7436 xorg_cv_cc_flag_unknown_warning_option=yes
7437 else $as_nop
7438 xorg_cv_cc_flag_unknown_warning_option=no
7439 fi
7440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7441 fi
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7443 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7445 CFLAGS="$xorg_testset_save_CFLAGS"
7446 fi
7447
7448 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7451 fi
7452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7454 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7455 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7456 then :
7457 printf %s "(cached) " >&6
7458 else $as_nop
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 int i;
7462 _ACEOF
7463 if ac_fn_c_try_compile "$LINENO"
7464 then :
7465 xorg_cv_cc_flag_unused_command_line_argument=yes
7466 else $as_nop
7467 xorg_cv_cc_flag_unused_command_line_argument=no
7468 fi
7469 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7470 fi
7471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7472 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7473 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7474 CFLAGS="$xorg_testset_save_CFLAGS"
7475 fi
7476
7477 found="no"
7478
7479 if test $found = "no" ; then
7480 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7481 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7482 fi
7483
7484 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7485 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7486 fi
7487
7488 CFLAGS="$CFLAGS -Werror=init-self"
7489
7490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7491 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7492 cacheid=xorg_cv_cc_flag__Werror_init_self
7493 if eval test \${$cacheid+y}
7494 then :
7495 printf %s "(cached) " >&6
7496 else $as_nop
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498 /* end confdefs.h. */
7499 int i;
7500 int
7501 main (void)
7502 {
7503
7504 ;
7505 return 0;
7506 }
7507 _ACEOF
7508 if ac_fn_c_try_link "$LINENO"
7509 then :
7510 eval $cacheid=yes
7511 else $as_nop
7512 eval $cacheid=no
7513 fi
7514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7515 conftest$ac_exeext conftest.$ac_ext
7516 fi
7517
7518
7519 CFLAGS="$xorg_testset_save_CFLAGS"
7520
7521 eval supported=\$$cacheid
7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7523 printf "%s\n" "$supported" >&6; }
7524 if test "$supported" = "yes" ; then
7525 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7526 found="yes"
7527 fi
7528 fi
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544 xorg_testset_save_CFLAGS="$CFLAGS"
7545
7546 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7547 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7549 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7550 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7551 then :
7552 printf %s "(cached) " >&6
7553 else $as_nop
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7556 int i;
7557 _ACEOF
7558 if ac_fn_c_try_compile "$LINENO"
7559 then :
7560 xorg_cv_cc_flag_unknown_warning_option=yes
7561 else $as_nop
7562 xorg_cv_cc_flag_unknown_warning_option=no
7563 fi
7564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7565 fi
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7567 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7569 CFLAGS="$xorg_testset_save_CFLAGS"
7570 fi
7571
7572 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7575 fi
7576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7578 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7579 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7580 then :
7581 printf %s "(cached) " >&6
7582 else $as_nop
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584 /* end confdefs.h. */
7585 int i;
7586 _ACEOF
7587 if ac_fn_c_try_compile "$LINENO"
7588 then :
7589 xorg_cv_cc_flag_unused_command_line_argument=yes
7590 else $as_nop
7591 xorg_cv_cc_flag_unused_command_line_argument=no
7592 fi
7593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7594 fi
7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7596 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7597 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7598 CFLAGS="$xorg_testset_save_CFLAGS"
7599 fi
7600
7601 found="no"
7602
7603 if test $found = "no" ; then
7604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7606 fi
7607
7608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7610 fi
7611
7612 CFLAGS="$CFLAGS -Werror=main"
7613
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7615 printf %s "checking if $CC supports -Werror=main... " >&6; }
7616 cacheid=xorg_cv_cc_flag__Werror_main
7617 if eval test \${$cacheid+y}
7618 then :
7619 printf %s "(cached) " >&6
7620 else $as_nop
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7623 int i;
7624 int
7625 main (void)
7626 {
7627
7628 ;
7629 return 0;
7630 }
7631 _ACEOF
7632 if ac_fn_c_try_link "$LINENO"
7633 then :
7634 eval $cacheid=yes
7635 else $as_nop
7636 eval $cacheid=no
7637 fi
7638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7639 conftest$ac_exeext conftest.$ac_ext
7640 fi
7641
7642
7643 CFLAGS="$xorg_testset_save_CFLAGS"
7644
7645 eval supported=\$$cacheid
7646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7647 printf "%s\n" "$supported" >&6; }
7648 if test "$supported" = "yes" ; then
7649 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7650 found="yes"
7651 fi
7652 fi
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668 xorg_testset_save_CFLAGS="$CFLAGS"
7669
7670 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7671 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7673 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7674 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7675 then :
7676 printf %s "(cached) " >&6
7677 else $as_nop
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7680 int i;
7681 _ACEOF
7682 if ac_fn_c_try_compile "$LINENO"
7683 then :
7684 xorg_cv_cc_flag_unknown_warning_option=yes
7685 else $as_nop
7686 xorg_cv_cc_flag_unknown_warning_option=no
7687 fi
7688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7689 fi
7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7691 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7693 CFLAGS="$xorg_testset_save_CFLAGS"
7694 fi
7695
7696 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7699 fi
7700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7702 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7703 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7704 then :
7705 printf %s "(cached) " >&6
7706 else $as_nop
7707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7708 /* end confdefs.h. */
7709 int i;
7710 _ACEOF
7711 if ac_fn_c_try_compile "$LINENO"
7712 then :
7713 xorg_cv_cc_flag_unused_command_line_argument=yes
7714 else $as_nop
7715 xorg_cv_cc_flag_unused_command_line_argument=no
7716 fi
7717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7718 fi
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7720 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7721 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7722 CFLAGS="$xorg_testset_save_CFLAGS"
7723 fi
7724
7725 found="no"
7726
7727 if test $found = "no" ; then
7728 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7729 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7730 fi
7731
7732 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7733 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7734 fi
7735
7736 CFLAGS="$CFLAGS -Werror=missing-braces"
7737
7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7739 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7740 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7741 if eval test \${$cacheid+y}
7742 then :
7743 printf %s "(cached) " >&6
7744 else $as_nop
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7747 int i;
7748 int
7749 main (void)
7750 {
7751
7752 ;
7753 return 0;
7754 }
7755 _ACEOF
7756 if ac_fn_c_try_link "$LINENO"
7757 then :
7758 eval $cacheid=yes
7759 else $as_nop
7760 eval $cacheid=no
7761 fi
7762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7763 conftest$ac_exeext conftest.$ac_ext
7764 fi
7765
7766
7767 CFLAGS="$xorg_testset_save_CFLAGS"
7768
7769 eval supported=\$$cacheid
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7771 printf "%s\n" "$supported" >&6; }
7772 if test "$supported" = "yes" ; then
7773 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7774 found="yes"
7775 fi
7776 fi
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792 xorg_testset_save_CFLAGS="$CFLAGS"
7793
7794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7797 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7798 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7799 then :
7800 printf %s "(cached) " >&6
7801 else $as_nop
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7804 int i;
7805 _ACEOF
7806 if ac_fn_c_try_compile "$LINENO"
7807 then :
7808 xorg_cv_cc_flag_unknown_warning_option=yes
7809 else $as_nop
7810 xorg_cv_cc_flag_unknown_warning_option=no
7811 fi
7812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7813 fi
7814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7815 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7817 CFLAGS="$xorg_testset_save_CFLAGS"
7818 fi
7819
7820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7823 fi
7824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7826 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7827 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7828 then :
7829 printf %s "(cached) " >&6
7830 else $as_nop
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h. */
7833 int i;
7834 _ACEOF
7835 if ac_fn_c_try_compile "$LINENO"
7836 then :
7837 xorg_cv_cc_flag_unused_command_line_argument=yes
7838 else $as_nop
7839 xorg_cv_cc_flag_unused_command_line_argument=no
7840 fi
7841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7842 fi
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7844 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7845 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7846 CFLAGS="$xorg_testset_save_CFLAGS"
7847 fi
7848
7849 found="no"
7850
7851 if test $found = "no" ; then
7852 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7853 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7854 fi
7855
7856 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7857 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7858 fi
7859
7860 CFLAGS="$CFLAGS -Werror=sequence-point"
7861
7862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7863 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7864 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7865 if eval test \${$cacheid+y}
7866 then :
7867 printf %s "(cached) " >&6
7868 else $as_nop
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h. */
7871 int i;
7872 int
7873 main (void)
7874 {
7875
7876 ;
7877 return 0;
7878 }
7879 _ACEOF
7880 if ac_fn_c_try_link "$LINENO"
7881 then :
7882 eval $cacheid=yes
7883 else $as_nop
7884 eval $cacheid=no
7885 fi
7886 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7887 conftest$ac_exeext conftest.$ac_ext
7888 fi
7889
7890
7891 CFLAGS="$xorg_testset_save_CFLAGS"
7892
7893 eval supported=\$$cacheid
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7895 printf "%s\n" "$supported" >&6; }
7896 if test "$supported" = "yes" ; then
7897 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7898 found="yes"
7899 fi
7900 fi
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916 xorg_testset_save_CFLAGS="$CFLAGS"
7917
7918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7921 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7922 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7923 then :
7924 printf %s "(cached) " >&6
7925 else $as_nop
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7928 int i;
7929 _ACEOF
7930 if ac_fn_c_try_compile "$LINENO"
7931 then :
7932 xorg_cv_cc_flag_unknown_warning_option=yes
7933 else $as_nop
7934 xorg_cv_cc_flag_unknown_warning_option=no
7935 fi
7936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7937 fi
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7939 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7941 CFLAGS="$xorg_testset_save_CFLAGS"
7942 fi
7943
7944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7947 fi
7948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7950 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7951 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7952 then :
7953 printf %s "(cached) " >&6
7954 else $as_nop
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7957 int i;
7958 _ACEOF
7959 if ac_fn_c_try_compile "$LINENO"
7960 then :
7961 xorg_cv_cc_flag_unused_command_line_argument=yes
7962 else $as_nop
7963 xorg_cv_cc_flag_unused_command_line_argument=no
7964 fi
7965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7966 fi
7967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7968 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7969 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7970 CFLAGS="$xorg_testset_save_CFLAGS"
7971 fi
7972
7973 found="no"
7974
7975 if test $found = "no" ; then
7976 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7977 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7978 fi
7979
7980 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7981 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7982 fi
7983
7984 CFLAGS="$CFLAGS -Werror=return-type"
7985
7986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7987 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
7988 cacheid=xorg_cv_cc_flag__Werror_return_type
7989 if eval test \${$cacheid+y}
7990 then :
7991 printf %s "(cached) " >&6
7992 else $as_nop
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7995 int i;
7996 int
7997 main (void)
7998 {
7999
8000 ;
8001 return 0;
8002 }
8003 _ACEOF
8004 if ac_fn_c_try_link "$LINENO"
8005 then :
8006 eval $cacheid=yes
8007 else $as_nop
8008 eval $cacheid=no
8009 fi
8010 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8011 conftest$ac_exeext conftest.$ac_ext
8012 fi
8013
8014
8015 CFLAGS="$xorg_testset_save_CFLAGS"
8016
8017 eval supported=\$$cacheid
8018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8019 printf "%s\n" "$supported" >&6; }
8020 if test "$supported" = "yes" ; then
8021 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8022 found="yes"
8023 fi
8024 fi
8025
8026 if test $found = "no" ; then
8027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8029 fi
8030
8031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8033 fi
8034
8035 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8036
8037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8038 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8039 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8040 if eval test \${$cacheid+y}
8041 then :
8042 printf %s "(cached) " >&6
8043 else $as_nop
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8046 int i;
8047 int
8048 main (void)
8049 {
8050
8051 ;
8052 return 0;
8053 }
8054 _ACEOF
8055 if ac_fn_c_try_link "$LINENO"
8056 then :
8057 eval $cacheid=yes
8058 else $as_nop
8059 eval $cacheid=no
8060 fi
8061 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8062 conftest$ac_exeext conftest.$ac_ext
8063 fi
8064
8065
8066 CFLAGS="$xorg_testset_save_CFLAGS"
8067
8068 eval supported=\$$cacheid
8069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8070 printf "%s\n" "$supported" >&6; }
8071 if test "$supported" = "yes" ; then
8072 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8073 found="yes"
8074 fi
8075 fi
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091 xorg_testset_save_CFLAGS="$CFLAGS"
8092
8093 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8096 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8097 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8098 then :
8099 printf %s "(cached) " >&6
8100 else $as_nop
8101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8102 /* end confdefs.h. */
8103 int i;
8104 _ACEOF
8105 if ac_fn_c_try_compile "$LINENO"
8106 then :
8107 xorg_cv_cc_flag_unknown_warning_option=yes
8108 else $as_nop
8109 xorg_cv_cc_flag_unknown_warning_option=no
8110 fi
8111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8112 fi
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8114 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8115 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8116 CFLAGS="$xorg_testset_save_CFLAGS"
8117 fi
8118
8119 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8122 fi
8123 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8125 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8126 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8127 then :
8128 printf %s "(cached) " >&6
8129 else $as_nop
8130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131 /* end confdefs.h. */
8132 int i;
8133 _ACEOF
8134 if ac_fn_c_try_compile "$LINENO"
8135 then :
8136 xorg_cv_cc_flag_unused_command_line_argument=yes
8137 else $as_nop
8138 xorg_cv_cc_flag_unused_command_line_argument=no
8139 fi
8140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8141 fi
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8143 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8145 CFLAGS="$xorg_testset_save_CFLAGS"
8146 fi
8147
8148 found="no"
8149
8150 if test $found = "no" ; then
8151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8152 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8153 fi
8154
8155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8157 fi
8158
8159 CFLAGS="$CFLAGS -Werror=trigraphs"
8160
8161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8162 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8163 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8164 if eval test \${$cacheid+y}
8165 then :
8166 printf %s "(cached) " >&6
8167 else $as_nop
8168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8169 /* end confdefs.h. */
8170 int i;
8171 int
8172 main (void)
8173 {
8174
8175 ;
8176 return 0;
8177 }
8178 _ACEOF
8179 if ac_fn_c_try_link "$LINENO"
8180 then :
8181 eval $cacheid=yes
8182 else $as_nop
8183 eval $cacheid=no
8184 fi
8185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8186 conftest$ac_exeext conftest.$ac_ext
8187 fi
8188
8189
8190 CFLAGS="$xorg_testset_save_CFLAGS"
8191
8192 eval supported=\$$cacheid
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8194 printf "%s\n" "$supported" >&6; }
8195 if test "$supported" = "yes" ; then
8196 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8197 found="yes"
8198 fi
8199 fi
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215 xorg_testset_save_CFLAGS="$CFLAGS"
8216
8217 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8220 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8221 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8222 then :
8223 printf %s "(cached) " >&6
8224 else $as_nop
8225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8226 /* end confdefs.h. */
8227 int i;
8228 _ACEOF
8229 if ac_fn_c_try_compile "$LINENO"
8230 then :
8231 xorg_cv_cc_flag_unknown_warning_option=yes
8232 else $as_nop
8233 xorg_cv_cc_flag_unknown_warning_option=no
8234 fi
8235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8236 fi
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8238 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8240 CFLAGS="$xorg_testset_save_CFLAGS"
8241 fi
8242
8243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8246 fi
8247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8249 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8250 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8251 then :
8252 printf %s "(cached) " >&6
8253 else $as_nop
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8256 int i;
8257 _ACEOF
8258 if ac_fn_c_try_compile "$LINENO"
8259 then :
8260 xorg_cv_cc_flag_unused_command_line_argument=yes
8261 else $as_nop
8262 xorg_cv_cc_flag_unused_command_line_argument=no
8263 fi
8264 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8265 fi
8266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8267 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8269 CFLAGS="$xorg_testset_save_CFLAGS"
8270 fi
8271
8272 found="no"
8273
8274 if test $found = "no" ; then
8275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8277 fi
8278
8279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8281 fi
8282
8283 CFLAGS="$CFLAGS -Werror=array-bounds"
8284
8285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8286 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8287 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8288 if eval test \${$cacheid+y}
8289 then :
8290 printf %s "(cached) " >&6
8291 else $as_nop
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8294 int i;
8295 int
8296 main (void)
8297 {
8298
8299 ;
8300 return 0;
8301 }
8302 _ACEOF
8303 if ac_fn_c_try_link "$LINENO"
8304 then :
8305 eval $cacheid=yes
8306 else $as_nop
8307 eval $cacheid=no
8308 fi
8309 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8310 conftest$ac_exeext conftest.$ac_ext
8311 fi
8312
8313
8314 CFLAGS="$xorg_testset_save_CFLAGS"
8315
8316 eval supported=\$$cacheid
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8318 printf "%s\n" "$supported" >&6; }
8319 if test "$supported" = "yes" ; then
8320 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8321 found="yes"
8322 fi
8323 fi
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339 xorg_testset_save_CFLAGS="$CFLAGS"
8340
8341 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8344 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8345 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8346 then :
8347 printf %s "(cached) " >&6
8348 else $as_nop
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8351 int i;
8352 _ACEOF
8353 if ac_fn_c_try_compile "$LINENO"
8354 then :
8355 xorg_cv_cc_flag_unknown_warning_option=yes
8356 else $as_nop
8357 xorg_cv_cc_flag_unknown_warning_option=no
8358 fi
8359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8360 fi
8361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8362 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8363 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8364 CFLAGS="$xorg_testset_save_CFLAGS"
8365 fi
8366
8367 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8370 fi
8371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8373 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8374 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8375 then :
8376 printf %s "(cached) " >&6
8377 else $as_nop
8378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8379 /* end confdefs.h. */
8380 int i;
8381 _ACEOF
8382 if ac_fn_c_try_compile "$LINENO"
8383 then :
8384 xorg_cv_cc_flag_unused_command_line_argument=yes
8385 else $as_nop
8386 xorg_cv_cc_flag_unused_command_line_argument=no
8387 fi
8388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8389 fi
8390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8391 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8392 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8393 CFLAGS="$xorg_testset_save_CFLAGS"
8394 fi
8395
8396 found="no"
8397
8398 if test $found = "no" ; then
8399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8401 fi
8402
8403 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8405 fi
8406
8407 CFLAGS="$CFLAGS -Werror=write-strings"
8408
8409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8410 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8411 cacheid=xorg_cv_cc_flag__Werror_write_strings
8412 if eval test \${$cacheid+y}
8413 then :
8414 printf %s "(cached) " >&6
8415 else $as_nop
8416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8418 int i;
8419 int
8420 main (void)
8421 {
8422
8423 ;
8424 return 0;
8425 }
8426 _ACEOF
8427 if ac_fn_c_try_link "$LINENO"
8428 then :
8429 eval $cacheid=yes
8430 else $as_nop
8431 eval $cacheid=no
8432 fi
8433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8434 conftest$ac_exeext conftest.$ac_ext
8435 fi
8436
8437
8438 CFLAGS="$xorg_testset_save_CFLAGS"
8439
8440 eval supported=\$$cacheid
8441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8442 printf "%s\n" "$supported" >&6; }
8443 if test "$supported" = "yes" ; then
8444 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8445 found="yes"
8446 fi
8447 fi
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463 xorg_testset_save_CFLAGS="$CFLAGS"
8464
8465 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8468 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8469 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8470 then :
8471 printf %s "(cached) " >&6
8472 else $as_nop
8473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8474 /* end confdefs.h. */
8475 int i;
8476 _ACEOF
8477 if ac_fn_c_try_compile "$LINENO"
8478 then :
8479 xorg_cv_cc_flag_unknown_warning_option=yes
8480 else $as_nop
8481 xorg_cv_cc_flag_unknown_warning_option=no
8482 fi
8483 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8484 fi
8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8486 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8487 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8488 CFLAGS="$xorg_testset_save_CFLAGS"
8489 fi
8490
8491 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8492 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8494 fi
8495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8497 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8498 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8499 then :
8500 printf %s "(cached) " >&6
8501 else $as_nop
8502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8503 /* end confdefs.h. */
8504 int i;
8505 _ACEOF
8506 if ac_fn_c_try_compile "$LINENO"
8507 then :
8508 xorg_cv_cc_flag_unused_command_line_argument=yes
8509 else $as_nop
8510 xorg_cv_cc_flag_unused_command_line_argument=no
8511 fi
8512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8513 fi
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8515 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8517 CFLAGS="$xorg_testset_save_CFLAGS"
8518 fi
8519
8520 found="no"
8521
8522 if test $found = "no" ; then
8523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8525 fi
8526
8527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8529 fi
8530
8531 CFLAGS="$CFLAGS -Werror=address"
8532
8533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8534 printf %s "checking if $CC supports -Werror=address... " >&6; }
8535 cacheid=xorg_cv_cc_flag__Werror_address
8536 if eval test \${$cacheid+y}
8537 then :
8538 printf %s "(cached) " >&6
8539 else $as_nop
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8542 int i;
8543 int
8544 main (void)
8545 {
8546
8547 ;
8548 return 0;
8549 }
8550 _ACEOF
8551 if ac_fn_c_try_link "$LINENO"
8552 then :
8553 eval $cacheid=yes
8554 else $as_nop
8555 eval $cacheid=no
8556 fi
8557 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8558 conftest$ac_exeext conftest.$ac_ext
8559 fi
8560
8561
8562 CFLAGS="$xorg_testset_save_CFLAGS"
8563
8564 eval supported=\$$cacheid
8565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8566 printf "%s\n" "$supported" >&6; }
8567 if test "$supported" = "yes" ; then
8568 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8569 found="yes"
8570 fi
8571 fi
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587 xorg_testset_save_CFLAGS="$CFLAGS"
8588
8589 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8590 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8592 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8593 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8594 then :
8595 printf %s "(cached) " >&6
8596 else $as_nop
8597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8598 /* end confdefs.h. */
8599 int i;
8600 _ACEOF
8601 if ac_fn_c_try_compile "$LINENO"
8602 then :
8603 xorg_cv_cc_flag_unknown_warning_option=yes
8604 else $as_nop
8605 xorg_cv_cc_flag_unknown_warning_option=no
8606 fi
8607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8608 fi
8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8610 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8612 CFLAGS="$xorg_testset_save_CFLAGS"
8613 fi
8614
8615 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8618 fi
8619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8621 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8622 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8623 then :
8624 printf %s "(cached) " >&6
8625 else $as_nop
8626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8627 /* end confdefs.h. */
8628 int i;
8629 _ACEOF
8630 if ac_fn_c_try_compile "$LINENO"
8631 then :
8632 xorg_cv_cc_flag_unused_command_line_argument=yes
8633 else $as_nop
8634 xorg_cv_cc_flag_unused_command_line_argument=no
8635 fi
8636 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8637 fi
8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8639 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8640 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8641 CFLAGS="$xorg_testset_save_CFLAGS"
8642 fi
8643
8644 found="no"
8645
8646 if test $found = "no" ; then
8647 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8648 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8649 fi
8650
8651 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8653 fi
8654
8655 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8656
8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8658 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8659 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8660 if eval test \${$cacheid+y}
8661 then :
8662 printf %s "(cached) " >&6
8663 else $as_nop
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665 /* end confdefs.h. */
8666 int i;
8667 int
8668 main (void)
8669 {
8670
8671 ;
8672 return 0;
8673 }
8674 _ACEOF
8675 if ac_fn_c_try_link "$LINENO"
8676 then :
8677 eval $cacheid=yes
8678 else $as_nop
8679 eval $cacheid=no
8680 fi
8681 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8682 conftest$ac_exeext conftest.$ac_ext
8683 fi
8684
8685
8686 CFLAGS="$xorg_testset_save_CFLAGS"
8687
8688 eval supported=\$$cacheid
8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8690 printf "%s\n" "$supported" >&6; }
8691 if test "$supported" = "yes" ; then
8692 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8693 found="yes"
8694 fi
8695 fi
8696
8697 if test $found = "no" ; then
8698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8700 fi
8701
8702 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8704 fi
8705
8706 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8707
8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8709 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8710 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8711 if eval test \${$cacheid+y}
8712 then :
8713 printf %s "(cached) " >&6
8714 else $as_nop
8715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8716 /* end confdefs.h. */
8717 int i;
8718 int
8719 main (void)
8720 {
8721
8722 ;
8723 return 0;
8724 }
8725 _ACEOF
8726 if ac_fn_c_try_link "$LINENO"
8727 then :
8728 eval $cacheid=yes
8729 else $as_nop
8730 eval $cacheid=no
8731 fi
8732 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8733 conftest$ac_exeext conftest.$ac_ext
8734 fi
8735
8736
8737 CFLAGS="$xorg_testset_save_CFLAGS"
8738
8739 eval supported=\$$cacheid
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8741 printf "%s\n" "$supported" >&6; }
8742 if test "$supported" = "yes" ; then
8743 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8744 found="yes"
8745 fi
8746 fi
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762 xorg_testset_save_CFLAGS="$CFLAGS"
8763
8764 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8767 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8768 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8769 then :
8770 printf %s "(cached) " >&6
8771 else $as_nop
8772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8773 /* end confdefs.h. */
8774 int i;
8775 _ACEOF
8776 if ac_fn_c_try_compile "$LINENO"
8777 then :
8778 xorg_cv_cc_flag_unknown_warning_option=yes
8779 else $as_nop
8780 xorg_cv_cc_flag_unknown_warning_option=no
8781 fi
8782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8783 fi
8784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8785 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8787 CFLAGS="$xorg_testset_save_CFLAGS"
8788 fi
8789
8790 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8793 fi
8794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8796 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8797 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8798 then :
8799 printf %s "(cached) " >&6
8800 else $as_nop
8801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8802 /* end confdefs.h. */
8803 int i;
8804 _ACEOF
8805 if ac_fn_c_try_compile "$LINENO"
8806 then :
8807 xorg_cv_cc_flag_unused_command_line_argument=yes
8808 else $as_nop
8809 xorg_cv_cc_flag_unused_command_line_argument=no
8810 fi
8811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8812 fi
8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8814 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8816 CFLAGS="$xorg_testset_save_CFLAGS"
8817 fi
8818
8819 found="no"
8820
8821 if test $found = "no" ; then
8822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8824 fi
8825
8826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8828 fi
8829
8830 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8831
8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8833 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8834 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8835 if eval test \${$cacheid+y}
8836 then :
8837 printf %s "(cached) " >&6
8838 else $as_nop
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8841 int i;
8842 int
8843 main (void)
8844 {
8845
8846 ;
8847 return 0;
8848 }
8849 _ACEOF
8850 if ac_fn_c_try_link "$LINENO"
8851 then :
8852 eval $cacheid=yes
8853 else $as_nop
8854 eval $cacheid=no
8855 fi
8856 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8857 conftest$ac_exeext conftest.$ac_ext
8858 fi
8859
8860
8861 CFLAGS="$xorg_testset_save_CFLAGS"
8862
8863 eval supported=\$$cacheid
8864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8865 printf "%s\n" "$supported" >&6; }
8866 if test "$supported" = "yes" ; then
8867 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8868 found="yes"
8869 fi
8870 fi
8871
8872 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8873 else
8874 { 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
8875 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;}
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889 xorg_testset_save_CFLAGS="$CFLAGS"
8890
8891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8894 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8895 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8896 then :
8897 printf %s "(cached) " >&6
8898 else $as_nop
8899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900 /* end confdefs.h. */
8901 int i;
8902 _ACEOF
8903 if ac_fn_c_try_compile "$LINENO"
8904 then :
8905 xorg_cv_cc_flag_unknown_warning_option=yes
8906 else $as_nop
8907 xorg_cv_cc_flag_unknown_warning_option=no
8908 fi
8909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8910 fi
8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8912 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8913 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8914 CFLAGS="$xorg_testset_save_CFLAGS"
8915 fi
8916
8917 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8920 fi
8921 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8923 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8924 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8925 then :
8926 printf %s "(cached) " >&6
8927 else $as_nop
8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8929 /* end confdefs.h. */
8930 int i;
8931 _ACEOF
8932 if ac_fn_c_try_compile "$LINENO"
8933 then :
8934 xorg_cv_cc_flag_unused_command_line_argument=yes
8935 else $as_nop
8936 xorg_cv_cc_flag_unused_command_line_argument=no
8937 fi
8938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8939 fi
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8941 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8942 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8943 CFLAGS="$xorg_testset_save_CFLAGS"
8944 fi
8945
8946 found="no"
8947
8948 if test $found = "no" ; then
8949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8951 fi
8952
8953 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8955 fi
8956
8957 CFLAGS="$CFLAGS -Wimplicit"
8958
8959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8960 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8961 cacheid=xorg_cv_cc_flag__Wimplicit
8962 if eval test \${$cacheid+y}
8963 then :
8964 printf %s "(cached) " >&6
8965 else $as_nop
8966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8967 /* end confdefs.h. */
8968 int i;
8969 int
8970 main (void)
8971 {
8972
8973 ;
8974 return 0;
8975 }
8976 _ACEOF
8977 if ac_fn_c_try_link "$LINENO"
8978 then :
8979 eval $cacheid=yes
8980 else $as_nop
8981 eval $cacheid=no
8982 fi
8983 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8984 conftest$ac_exeext conftest.$ac_ext
8985 fi
8986
8987
8988 CFLAGS="$xorg_testset_save_CFLAGS"
8989
8990 eval supported=\$$cacheid
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8992 printf "%s\n" "$supported" >&6; }
8993 if test "$supported" = "yes" ; then
8994 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8995 found="yes"
8996 fi
8997 fi
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013 xorg_testset_save_CFLAGS="$CFLAGS"
9014
9015 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9018 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9019 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9020 then :
9021 printf %s "(cached) " >&6
9022 else $as_nop
9023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h. */
9025 int i;
9026 _ACEOF
9027 if ac_fn_c_try_compile "$LINENO"
9028 then :
9029 xorg_cv_cc_flag_unknown_warning_option=yes
9030 else $as_nop
9031 xorg_cv_cc_flag_unknown_warning_option=no
9032 fi
9033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9034 fi
9035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9036 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9037 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9038 CFLAGS="$xorg_testset_save_CFLAGS"
9039 fi
9040
9041 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9044 fi
9045 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9047 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9048 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9049 then :
9050 printf %s "(cached) " >&6
9051 else $as_nop
9052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9053 /* end confdefs.h. */
9054 int i;
9055 _ACEOF
9056 if ac_fn_c_try_compile "$LINENO"
9057 then :
9058 xorg_cv_cc_flag_unused_command_line_argument=yes
9059 else $as_nop
9060 xorg_cv_cc_flag_unused_command_line_argument=no
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9063 fi
9064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9065 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9067 CFLAGS="$xorg_testset_save_CFLAGS"
9068 fi
9069
9070 found="no"
9071
9072 if test $found = "no" ; then
9073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9075 fi
9076
9077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9079 fi
9080
9081 CFLAGS="$CFLAGS -Wnonnull"
9082
9083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9084 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9085 cacheid=xorg_cv_cc_flag__Wnonnull
9086 if eval test \${$cacheid+y}
9087 then :
9088 printf %s "(cached) " >&6
9089 else $as_nop
9090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h. */
9092 int i;
9093 int
9094 main (void)
9095 {
9096
9097 ;
9098 return 0;
9099 }
9100 _ACEOF
9101 if ac_fn_c_try_link "$LINENO"
9102 then :
9103 eval $cacheid=yes
9104 else $as_nop
9105 eval $cacheid=no
9106 fi
9107 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9108 conftest$ac_exeext conftest.$ac_ext
9109 fi
9110
9111
9112 CFLAGS="$xorg_testset_save_CFLAGS"
9113
9114 eval supported=\$$cacheid
9115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9116 printf "%s\n" "$supported" >&6; }
9117 if test "$supported" = "yes" ; then
9118 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9119 found="yes"
9120 fi
9121 fi
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137 xorg_testset_save_CFLAGS="$CFLAGS"
9138
9139 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9142 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9143 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9144 then :
9145 printf %s "(cached) " >&6
9146 else $as_nop
9147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9148 /* end confdefs.h. */
9149 int i;
9150 _ACEOF
9151 if ac_fn_c_try_compile "$LINENO"
9152 then :
9153 xorg_cv_cc_flag_unknown_warning_option=yes
9154 else $as_nop
9155 xorg_cv_cc_flag_unknown_warning_option=no
9156 fi
9157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9158 fi
9159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9160 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9161 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9162 CFLAGS="$xorg_testset_save_CFLAGS"
9163 fi
9164
9165 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9168 fi
9169 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9171 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9172 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9173 then :
9174 printf %s "(cached) " >&6
9175 else $as_nop
9176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9177 /* end confdefs.h. */
9178 int i;
9179 _ACEOF
9180 if ac_fn_c_try_compile "$LINENO"
9181 then :
9182 xorg_cv_cc_flag_unused_command_line_argument=yes
9183 else $as_nop
9184 xorg_cv_cc_flag_unused_command_line_argument=no
9185 fi
9186 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9187 fi
9188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9189 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9190 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9191 CFLAGS="$xorg_testset_save_CFLAGS"
9192 fi
9193
9194 found="no"
9195
9196 if test $found = "no" ; then
9197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9199 fi
9200
9201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9203 fi
9204
9205 CFLAGS="$CFLAGS -Winit-self"
9206
9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9208 printf %s "checking if $CC supports -Winit-self... " >&6; }
9209 cacheid=xorg_cv_cc_flag__Winit_self
9210 if eval test \${$cacheid+y}
9211 then :
9212 printf %s "(cached) " >&6
9213 else $as_nop
9214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h. */
9216 int i;
9217 int
9218 main (void)
9219 {
9220
9221 ;
9222 return 0;
9223 }
9224 _ACEOF
9225 if ac_fn_c_try_link "$LINENO"
9226 then :
9227 eval $cacheid=yes
9228 else $as_nop
9229 eval $cacheid=no
9230 fi
9231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9232 conftest$ac_exeext conftest.$ac_ext
9233 fi
9234
9235
9236 CFLAGS="$xorg_testset_save_CFLAGS"
9237
9238 eval supported=\$$cacheid
9239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9240 printf "%s\n" "$supported" >&6; }
9241 if test "$supported" = "yes" ; then
9242 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9243 found="yes"
9244 fi
9245 fi
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261 xorg_testset_save_CFLAGS="$CFLAGS"
9262
9263 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9266 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9267 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9268 then :
9269 printf %s "(cached) " >&6
9270 else $as_nop
9271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9272 /* end confdefs.h. */
9273 int i;
9274 _ACEOF
9275 if ac_fn_c_try_compile "$LINENO"
9276 then :
9277 xorg_cv_cc_flag_unknown_warning_option=yes
9278 else $as_nop
9279 xorg_cv_cc_flag_unknown_warning_option=no
9280 fi
9281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9282 fi
9283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9284 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9285 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9286 CFLAGS="$xorg_testset_save_CFLAGS"
9287 fi
9288
9289 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9290 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9291 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9292 fi
9293 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9295 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9296 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9297 then :
9298 printf %s "(cached) " >&6
9299 else $as_nop
9300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9301 /* end confdefs.h. */
9302 int i;
9303 _ACEOF
9304 if ac_fn_c_try_compile "$LINENO"
9305 then :
9306 xorg_cv_cc_flag_unused_command_line_argument=yes
9307 else $as_nop
9308 xorg_cv_cc_flag_unused_command_line_argument=no
9309 fi
9310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9311 fi
9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9313 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9314 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9315 CFLAGS="$xorg_testset_save_CFLAGS"
9316 fi
9317
9318 found="no"
9319
9320 if test $found = "no" ; then
9321 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9323 fi
9324
9325 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9326 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9327 fi
9328
9329 CFLAGS="$CFLAGS -Wmain"
9330
9331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9332 printf %s "checking if $CC supports -Wmain... " >&6; }
9333 cacheid=xorg_cv_cc_flag__Wmain
9334 if eval test \${$cacheid+y}
9335 then :
9336 printf %s "(cached) " >&6
9337 else $as_nop
9338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339 /* end confdefs.h. */
9340 int i;
9341 int
9342 main (void)
9343 {
9344
9345 ;
9346 return 0;
9347 }
9348 _ACEOF
9349 if ac_fn_c_try_link "$LINENO"
9350 then :
9351 eval $cacheid=yes
9352 else $as_nop
9353 eval $cacheid=no
9354 fi
9355 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9356 conftest$ac_exeext conftest.$ac_ext
9357 fi
9358
9359
9360 CFLAGS="$xorg_testset_save_CFLAGS"
9361
9362 eval supported=\$$cacheid
9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9364 printf "%s\n" "$supported" >&6; }
9365 if test "$supported" = "yes" ; then
9366 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9367 found="yes"
9368 fi
9369 fi
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385 xorg_testset_save_CFLAGS="$CFLAGS"
9386
9387 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9388 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9390 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9391 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9392 then :
9393 printf %s "(cached) " >&6
9394 else $as_nop
9395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9396 /* end confdefs.h. */
9397 int i;
9398 _ACEOF
9399 if ac_fn_c_try_compile "$LINENO"
9400 then :
9401 xorg_cv_cc_flag_unknown_warning_option=yes
9402 else $as_nop
9403 xorg_cv_cc_flag_unknown_warning_option=no
9404 fi
9405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9406 fi
9407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9408 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9409 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9410 CFLAGS="$xorg_testset_save_CFLAGS"
9411 fi
9412
9413 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9414 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9416 fi
9417 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9419 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9420 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9421 then :
9422 printf %s "(cached) " >&6
9423 else $as_nop
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9426 int i;
9427 _ACEOF
9428 if ac_fn_c_try_compile "$LINENO"
9429 then :
9430 xorg_cv_cc_flag_unused_command_line_argument=yes
9431 else $as_nop
9432 xorg_cv_cc_flag_unused_command_line_argument=no
9433 fi
9434 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9435 fi
9436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9437 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9438 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9439 CFLAGS="$xorg_testset_save_CFLAGS"
9440 fi
9441
9442 found="no"
9443
9444 if test $found = "no" ; then
9445 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9446 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9447 fi
9448
9449 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9450 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9451 fi
9452
9453 CFLAGS="$CFLAGS -Wmissing-braces"
9454
9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9456 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9457 cacheid=xorg_cv_cc_flag__Wmissing_braces
9458 if eval test \${$cacheid+y}
9459 then :
9460 printf %s "(cached) " >&6
9461 else $as_nop
9462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9463 /* end confdefs.h. */
9464 int i;
9465 int
9466 main (void)
9467 {
9468
9469 ;
9470 return 0;
9471 }
9472 _ACEOF
9473 if ac_fn_c_try_link "$LINENO"
9474 then :
9475 eval $cacheid=yes
9476 else $as_nop
9477 eval $cacheid=no
9478 fi
9479 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9480 conftest$ac_exeext conftest.$ac_ext
9481 fi
9482
9483
9484 CFLAGS="$xorg_testset_save_CFLAGS"
9485
9486 eval supported=\$$cacheid
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9488 printf "%s\n" "$supported" >&6; }
9489 if test "$supported" = "yes" ; then
9490 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9491 found="yes"
9492 fi
9493 fi
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509 xorg_testset_save_CFLAGS="$CFLAGS"
9510
9511 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9514 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9515 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9516 then :
9517 printf %s "(cached) " >&6
9518 else $as_nop
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520 /* end confdefs.h. */
9521 int i;
9522 _ACEOF
9523 if ac_fn_c_try_compile "$LINENO"
9524 then :
9525 xorg_cv_cc_flag_unknown_warning_option=yes
9526 else $as_nop
9527 xorg_cv_cc_flag_unknown_warning_option=no
9528 fi
9529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9530 fi
9531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9532 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9533 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9534 CFLAGS="$xorg_testset_save_CFLAGS"
9535 fi
9536
9537 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9540 fi
9541 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9543 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9544 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9545 then :
9546 printf %s "(cached) " >&6
9547 else $as_nop
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9550 int i;
9551 _ACEOF
9552 if ac_fn_c_try_compile "$LINENO"
9553 then :
9554 xorg_cv_cc_flag_unused_command_line_argument=yes
9555 else $as_nop
9556 xorg_cv_cc_flag_unused_command_line_argument=no
9557 fi
9558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9559 fi
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9561 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9562 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9563 CFLAGS="$xorg_testset_save_CFLAGS"
9564 fi
9565
9566 found="no"
9567
9568 if test $found = "no" ; then
9569 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9571 fi
9572
9573 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9574 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9575 fi
9576
9577 CFLAGS="$CFLAGS -Wsequence-point"
9578
9579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9580 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9581 cacheid=xorg_cv_cc_flag__Wsequence_point
9582 if eval test \${$cacheid+y}
9583 then :
9584 printf %s "(cached) " >&6
9585 else $as_nop
9586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9587 /* end confdefs.h. */
9588 int i;
9589 int
9590 main (void)
9591 {
9592
9593 ;
9594 return 0;
9595 }
9596 _ACEOF
9597 if ac_fn_c_try_link "$LINENO"
9598 then :
9599 eval $cacheid=yes
9600 else $as_nop
9601 eval $cacheid=no
9602 fi
9603 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9604 conftest$ac_exeext conftest.$ac_ext
9605 fi
9606
9607
9608 CFLAGS="$xorg_testset_save_CFLAGS"
9609
9610 eval supported=\$$cacheid
9611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9612 printf "%s\n" "$supported" >&6; }
9613 if test "$supported" = "yes" ; then
9614 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9615 found="yes"
9616 fi
9617 fi
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633 xorg_testset_save_CFLAGS="$CFLAGS"
9634
9635 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9638 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9639 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9640 then :
9641 printf %s "(cached) " >&6
9642 else $as_nop
9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9644 /* end confdefs.h. */
9645 int i;
9646 _ACEOF
9647 if ac_fn_c_try_compile "$LINENO"
9648 then :
9649 xorg_cv_cc_flag_unknown_warning_option=yes
9650 else $as_nop
9651 xorg_cv_cc_flag_unknown_warning_option=no
9652 fi
9653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9654 fi
9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9656 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9658 CFLAGS="$xorg_testset_save_CFLAGS"
9659 fi
9660
9661 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9664 fi
9665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9667 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9668 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9669 then :
9670 printf %s "(cached) " >&6
9671 else $as_nop
9672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9673 /* end confdefs.h. */
9674 int i;
9675 _ACEOF
9676 if ac_fn_c_try_compile "$LINENO"
9677 then :
9678 xorg_cv_cc_flag_unused_command_line_argument=yes
9679 else $as_nop
9680 xorg_cv_cc_flag_unused_command_line_argument=no
9681 fi
9682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9683 fi
9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9685 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9686 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9687 CFLAGS="$xorg_testset_save_CFLAGS"
9688 fi
9689
9690 found="no"
9691
9692 if test $found = "no" ; then
9693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9695 fi
9696
9697 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9698 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9699 fi
9700
9701 CFLAGS="$CFLAGS -Wreturn-type"
9702
9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9704 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9705 cacheid=xorg_cv_cc_flag__Wreturn_type
9706 if eval test \${$cacheid+y}
9707 then :
9708 printf %s "(cached) " >&6
9709 else $as_nop
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9712 int i;
9713 int
9714 main (void)
9715 {
9716
9717 ;
9718 return 0;
9719 }
9720 _ACEOF
9721 if ac_fn_c_try_link "$LINENO"
9722 then :
9723 eval $cacheid=yes
9724 else $as_nop
9725 eval $cacheid=no
9726 fi
9727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9728 conftest$ac_exeext conftest.$ac_ext
9729 fi
9730
9731
9732 CFLAGS="$xorg_testset_save_CFLAGS"
9733
9734 eval supported=\$$cacheid
9735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9736 printf "%s\n" "$supported" >&6; }
9737 if test "$supported" = "yes" ; then
9738 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9739 found="yes"
9740 fi
9741 fi
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757 xorg_testset_save_CFLAGS="$CFLAGS"
9758
9759 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9760 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9762 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9763 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9764 then :
9765 printf %s "(cached) " >&6
9766 else $as_nop
9767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h. */
9769 int i;
9770 _ACEOF
9771 if ac_fn_c_try_compile "$LINENO"
9772 then :
9773 xorg_cv_cc_flag_unknown_warning_option=yes
9774 else $as_nop
9775 xorg_cv_cc_flag_unknown_warning_option=no
9776 fi
9777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9778 fi
9779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9780 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9782 CFLAGS="$xorg_testset_save_CFLAGS"
9783 fi
9784
9785 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9788 fi
9789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9791 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9792 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9793 then :
9794 printf %s "(cached) " >&6
9795 else $as_nop
9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797 /* end confdefs.h. */
9798 int i;
9799 _ACEOF
9800 if ac_fn_c_try_compile "$LINENO"
9801 then :
9802 xorg_cv_cc_flag_unused_command_line_argument=yes
9803 else $as_nop
9804 xorg_cv_cc_flag_unused_command_line_argument=no
9805 fi
9806 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9807 fi
9808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9809 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9811 CFLAGS="$xorg_testset_save_CFLAGS"
9812 fi
9813
9814 found="no"
9815
9816 if test $found = "no" ; then
9817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9819 fi
9820
9821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9823 fi
9824
9825 CFLAGS="$CFLAGS -Wtrigraphs"
9826
9827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9828 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9829 cacheid=xorg_cv_cc_flag__Wtrigraphs
9830 if eval test \${$cacheid+y}
9831 then :
9832 printf %s "(cached) " >&6
9833 else $as_nop
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h. */
9836 int i;
9837 int
9838 main (void)
9839 {
9840
9841 ;
9842 return 0;
9843 }
9844 _ACEOF
9845 if ac_fn_c_try_link "$LINENO"
9846 then :
9847 eval $cacheid=yes
9848 else $as_nop
9849 eval $cacheid=no
9850 fi
9851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9852 conftest$ac_exeext conftest.$ac_ext
9853 fi
9854
9855
9856 CFLAGS="$xorg_testset_save_CFLAGS"
9857
9858 eval supported=\$$cacheid
9859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9860 printf "%s\n" "$supported" >&6; }
9861 if test "$supported" = "yes" ; then
9862 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9863 found="yes"
9864 fi
9865 fi
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881 xorg_testset_save_CFLAGS="$CFLAGS"
9882
9883 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9886 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9887 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9888 then :
9889 printf %s "(cached) " >&6
9890 else $as_nop
9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h. */
9893 int i;
9894 _ACEOF
9895 if ac_fn_c_try_compile "$LINENO"
9896 then :
9897 xorg_cv_cc_flag_unknown_warning_option=yes
9898 else $as_nop
9899 xorg_cv_cc_flag_unknown_warning_option=no
9900 fi
9901 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9902 fi
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9904 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9906 CFLAGS="$xorg_testset_save_CFLAGS"
9907 fi
9908
9909 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9912 fi
9913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9915 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9916 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9917 then :
9918 printf %s "(cached) " >&6
9919 else $as_nop
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 int i;
9923 _ACEOF
9924 if ac_fn_c_try_compile "$LINENO"
9925 then :
9926 xorg_cv_cc_flag_unused_command_line_argument=yes
9927 else $as_nop
9928 xorg_cv_cc_flag_unused_command_line_argument=no
9929 fi
9930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9931 fi
9932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9933 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9935 CFLAGS="$xorg_testset_save_CFLAGS"
9936 fi
9937
9938 found="no"
9939
9940 if test $found = "no" ; then
9941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9943 fi
9944
9945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9947 fi
9948
9949 CFLAGS="$CFLAGS -Warray-bounds"
9950
9951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9952 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9953 cacheid=xorg_cv_cc_flag__Warray_bounds
9954 if eval test \${$cacheid+y}
9955 then :
9956 printf %s "(cached) " >&6
9957 else $as_nop
9958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9959 /* end confdefs.h. */
9960 int i;
9961 int
9962 main (void)
9963 {
9964
9965 ;
9966 return 0;
9967 }
9968 _ACEOF
9969 if ac_fn_c_try_link "$LINENO"
9970 then :
9971 eval $cacheid=yes
9972 else $as_nop
9973 eval $cacheid=no
9974 fi
9975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9976 conftest$ac_exeext conftest.$ac_ext
9977 fi
9978
9979
9980 CFLAGS="$xorg_testset_save_CFLAGS"
9981
9982 eval supported=\$$cacheid
9983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9984 printf "%s\n" "$supported" >&6; }
9985 if test "$supported" = "yes" ; then
9986 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9987 found="yes"
9988 fi
9989 fi
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005 xorg_testset_save_CFLAGS="$CFLAGS"
10006
10007 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10008 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10010 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10011 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10012 then :
10013 printf %s "(cached) " >&6
10014 else $as_nop
10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10016 /* end confdefs.h. */
10017 int i;
10018 _ACEOF
10019 if ac_fn_c_try_compile "$LINENO"
10020 then :
10021 xorg_cv_cc_flag_unknown_warning_option=yes
10022 else $as_nop
10023 xorg_cv_cc_flag_unknown_warning_option=no
10024 fi
10025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10026 fi
10027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10028 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10030 CFLAGS="$xorg_testset_save_CFLAGS"
10031 fi
10032
10033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10036 fi
10037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10039 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10040 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10041 then :
10042 printf %s "(cached) " >&6
10043 else $as_nop
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10046 int i;
10047 _ACEOF
10048 if ac_fn_c_try_compile "$LINENO"
10049 then :
10050 xorg_cv_cc_flag_unused_command_line_argument=yes
10051 else $as_nop
10052 xorg_cv_cc_flag_unused_command_line_argument=no
10053 fi
10054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10055 fi
10056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10057 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10058 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10059 CFLAGS="$xorg_testset_save_CFLAGS"
10060 fi
10061
10062 found="no"
10063
10064 if test $found = "no" ; then
10065 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10067 fi
10068
10069 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10071 fi
10072
10073 CFLAGS="$CFLAGS -Wwrite-strings"
10074
10075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10076 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10077 cacheid=xorg_cv_cc_flag__Wwrite_strings
10078 if eval test \${$cacheid+y}
10079 then :
10080 printf %s "(cached) " >&6
10081 else $as_nop
10082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10084 int i;
10085 int
10086 main (void)
10087 {
10088
10089 ;
10090 return 0;
10091 }
10092 _ACEOF
10093 if ac_fn_c_try_link "$LINENO"
10094 then :
10095 eval $cacheid=yes
10096 else $as_nop
10097 eval $cacheid=no
10098 fi
10099 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10100 conftest$ac_exeext conftest.$ac_ext
10101 fi
10102
10103
10104 CFLAGS="$xorg_testset_save_CFLAGS"
10105
10106 eval supported=\$$cacheid
10107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10108 printf "%s\n" "$supported" >&6; }
10109 if test "$supported" = "yes" ; then
10110 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10111 found="yes"
10112 fi
10113 fi
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129 xorg_testset_save_CFLAGS="$CFLAGS"
10130
10131 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10132 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10134 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10135 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10136 then :
10137 printf %s "(cached) " >&6
10138 else $as_nop
10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10140 /* end confdefs.h. */
10141 int i;
10142 _ACEOF
10143 if ac_fn_c_try_compile "$LINENO"
10144 then :
10145 xorg_cv_cc_flag_unknown_warning_option=yes
10146 else $as_nop
10147 xorg_cv_cc_flag_unknown_warning_option=no
10148 fi
10149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10150 fi
10151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10152 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10154 CFLAGS="$xorg_testset_save_CFLAGS"
10155 fi
10156
10157 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10160 fi
10161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10163 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10164 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10165 then :
10166 printf %s "(cached) " >&6
10167 else $as_nop
10168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10169 /* end confdefs.h. */
10170 int i;
10171 _ACEOF
10172 if ac_fn_c_try_compile "$LINENO"
10173 then :
10174 xorg_cv_cc_flag_unused_command_line_argument=yes
10175 else $as_nop
10176 xorg_cv_cc_flag_unused_command_line_argument=no
10177 fi
10178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10179 fi
10180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10181 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10183 CFLAGS="$xorg_testset_save_CFLAGS"
10184 fi
10185
10186 found="no"
10187
10188 if test $found = "no" ; then
10189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10191 fi
10192
10193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10195 fi
10196
10197 CFLAGS="$CFLAGS -Waddress"
10198
10199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10200 printf %s "checking if $CC supports -Waddress... " >&6; }
10201 cacheid=xorg_cv_cc_flag__Waddress
10202 if eval test \${$cacheid+y}
10203 then :
10204 printf %s "(cached) " >&6
10205 else $as_nop
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10208 int i;
10209 int
10210 main (void)
10211 {
10212
10213 ;
10214 return 0;
10215 }
10216 _ACEOF
10217 if ac_fn_c_try_link "$LINENO"
10218 then :
10219 eval $cacheid=yes
10220 else $as_nop
10221 eval $cacheid=no
10222 fi
10223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10224 conftest$ac_exeext conftest.$ac_ext
10225 fi
10226
10227
10228 CFLAGS="$xorg_testset_save_CFLAGS"
10229
10230 eval supported=\$$cacheid
10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10232 printf "%s\n" "$supported" >&6; }
10233 if test "$supported" = "yes" ; then
10234 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10235 found="yes"
10236 fi
10237 fi
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253 xorg_testset_save_CFLAGS="$CFLAGS"
10254
10255 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10258 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10259 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10260 then :
10261 printf %s "(cached) " >&6
10262 else $as_nop
10263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10264 /* end confdefs.h. */
10265 int i;
10266 _ACEOF
10267 if ac_fn_c_try_compile "$LINENO"
10268 then :
10269 xorg_cv_cc_flag_unknown_warning_option=yes
10270 else $as_nop
10271 xorg_cv_cc_flag_unknown_warning_option=no
10272 fi
10273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10274 fi
10275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10276 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10278 CFLAGS="$xorg_testset_save_CFLAGS"
10279 fi
10280
10281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10284 fi
10285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10287 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10288 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10289 then :
10290 printf %s "(cached) " >&6
10291 else $as_nop
10292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10294 int i;
10295 _ACEOF
10296 if ac_fn_c_try_compile "$LINENO"
10297 then :
10298 xorg_cv_cc_flag_unused_command_line_argument=yes
10299 else $as_nop
10300 xorg_cv_cc_flag_unused_command_line_argument=no
10301 fi
10302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10303 fi
10304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10305 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10307 CFLAGS="$xorg_testset_save_CFLAGS"
10308 fi
10309
10310 found="no"
10311
10312 if test $found = "no" ; then
10313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10315 fi
10316
10317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10319 fi
10320
10321 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10322
10323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10324 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10325 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10326 if eval test \${$cacheid+y}
10327 then :
10328 printf %s "(cached) " >&6
10329 else $as_nop
10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10331 /* end confdefs.h. */
10332 int i;
10333 int
10334 main (void)
10335 {
10336
10337 ;
10338 return 0;
10339 }
10340 _ACEOF
10341 if ac_fn_c_try_link "$LINENO"
10342 then :
10343 eval $cacheid=yes
10344 else $as_nop
10345 eval $cacheid=no
10346 fi
10347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10348 conftest$ac_exeext conftest.$ac_ext
10349 fi
10350
10351
10352 CFLAGS="$xorg_testset_save_CFLAGS"
10353
10354 eval supported=\$$cacheid
10355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10356 printf "%s\n" "$supported" >&6; }
10357 if test "$supported" = "yes" ; then
10358 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10359 found="yes"
10360 fi
10361 fi
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377 xorg_testset_save_CFLAGS="$CFLAGS"
10378
10379 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10380 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10382 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10383 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10384 then :
10385 printf %s "(cached) " >&6
10386 else $as_nop
10387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10388 /* end confdefs.h. */
10389 int i;
10390 _ACEOF
10391 if ac_fn_c_try_compile "$LINENO"
10392 then :
10393 xorg_cv_cc_flag_unknown_warning_option=yes
10394 else $as_nop
10395 xorg_cv_cc_flag_unknown_warning_option=no
10396 fi
10397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10398 fi
10399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10400 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10402 CFLAGS="$xorg_testset_save_CFLAGS"
10403 fi
10404
10405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10408 fi
10409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10411 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10412 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10413 then :
10414 printf %s "(cached) " >&6
10415 else $as_nop
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417 /* end confdefs.h. */
10418 int i;
10419 _ACEOF
10420 if ac_fn_c_try_compile "$LINENO"
10421 then :
10422 xorg_cv_cc_flag_unused_command_line_argument=yes
10423 else $as_nop
10424 xorg_cv_cc_flag_unused_command_line_argument=no
10425 fi
10426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10427 fi
10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10429 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10430 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10431 CFLAGS="$xorg_testset_save_CFLAGS"
10432 fi
10433
10434 found="no"
10435
10436 if test $found = "no" ; then
10437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10438 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10439 fi
10440
10441 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10442 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10443 fi
10444
10445 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10446
10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10448 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10449 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10450 if eval test \${$cacheid+y}
10451 then :
10452 printf %s "(cached) " >&6
10453 else $as_nop
10454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10455 /* end confdefs.h. */
10456 int i;
10457 int
10458 main (void)
10459 {
10460
10461 ;
10462 return 0;
10463 }
10464 _ACEOF
10465 if ac_fn_c_try_link "$LINENO"
10466 then :
10467 eval $cacheid=yes
10468 else $as_nop
10469 eval $cacheid=no
10470 fi
10471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10472 conftest$ac_exeext conftest.$ac_ext
10473 fi
10474
10475
10476 CFLAGS="$xorg_testset_save_CFLAGS"
10477
10478 eval supported=\$$cacheid
10479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10480 printf "%s\n" "$supported" >&6; }
10481 if test "$supported" = "yes" ; then
10482 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10483 found="yes"
10484 fi
10485 fi
10486
10487
10488 fi
10489
10490
10491
10492
10493
10494
10495
10496 CWARNFLAGS="$BASE_CFLAGS"
10497 if test "x$GCC" = xyes ; then
10498 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10499 fi
10500
10501
10502
10503
10504
10505
10506
10507
10508 # Check whether --enable-strict-compilation was given.
10509 if test ${enable_strict_compilation+y}
10510 then :
10511 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10512 else $as_nop
10513 STRICT_COMPILE=no
10514 fi
10515
10516
10517
10518
10519
10520
10521 STRICT_CFLAGS=""
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535 xorg_testset_save_CFLAGS="$CFLAGS"
10536
10537 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10540 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10541 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10542 then :
10543 printf %s "(cached) " >&6
10544 else $as_nop
10545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546 /* end confdefs.h. */
10547 int i;
10548 _ACEOF
10549 if ac_fn_c_try_compile "$LINENO"
10550 then :
10551 xorg_cv_cc_flag_unknown_warning_option=yes
10552 else $as_nop
10553 xorg_cv_cc_flag_unknown_warning_option=no
10554 fi
10555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10556 fi
10557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10558 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10559 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10560 CFLAGS="$xorg_testset_save_CFLAGS"
10561 fi
10562
10563 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10564 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10565 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10566 fi
10567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10569 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10570 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10571 then :
10572 printf %s "(cached) " >&6
10573 else $as_nop
10574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10575 /* end confdefs.h. */
10576 int i;
10577 _ACEOF
10578 if ac_fn_c_try_compile "$LINENO"
10579 then :
10580 xorg_cv_cc_flag_unused_command_line_argument=yes
10581 else $as_nop
10582 xorg_cv_cc_flag_unused_command_line_argument=no
10583 fi
10584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10585 fi
10586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10587 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10589 CFLAGS="$xorg_testset_save_CFLAGS"
10590 fi
10591
10592 found="no"
10593
10594 if test $found = "no" ; then
10595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10597 fi
10598
10599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10601 fi
10602
10603 CFLAGS="$CFLAGS -pedantic"
10604
10605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10606 printf %s "checking if $CC supports -pedantic... " >&6; }
10607 cacheid=xorg_cv_cc_flag__pedantic
10608 if eval test \${$cacheid+y}
10609 then :
10610 printf %s "(cached) " >&6
10611 else $as_nop
10612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10613 /* end confdefs.h. */
10614 int i;
10615 int
10616 main (void)
10617 {
10618
10619 ;
10620 return 0;
10621 }
10622 _ACEOF
10623 if ac_fn_c_try_link "$LINENO"
10624 then :
10625 eval $cacheid=yes
10626 else $as_nop
10627 eval $cacheid=no
10628 fi
10629 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10630 conftest$ac_exeext conftest.$ac_ext
10631 fi
10632
10633
10634 CFLAGS="$xorg_testset_save_CFLAGS"
10635
10636 eval supported=\$$cacheid
10637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10638 printf "%s\n" "$supported" >&6; }
10639 if test "$supported" = "yes" ; then
10640 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10641 found="yes"
10642 fi
10643 fi
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659 xorg_testset_save_CFLAGS="$CFLAGS"
10660
10661 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10664 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10665 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10666 then :
10667 printf %s "(cached) " >&6
10668 else $as_nop
10669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 int i;
10672 _ACEOF
10673 if ac_fn_c_try_compile "$LINENO"
10674 then :
10675 xorg_cv_cc_flag_unknown_warning_option=yes
10676 else $as_nop
10677 xorg_cv_cc_flag_unknown_warning_option=no
10678 fi
10679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10680 fi
10681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10682 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10683 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10684 CFLAGS="$xorg_testset_save_CFLAGS"
10685 fi
10686
10687 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10690 fi
10691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10693 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10694 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10695 then :
10696 printf %s "(cached) " >&6
10697 else $as_nop
10698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10699 /* end confdefs.h. */
10700 int i;
10701 _ACEOF
10702 if ac_fn_c_try_compile "$LINENO"
10703 then :
10704 xorg_cv_cc_flag_unused_command_line_argument=yes
10705 else $as_nop
10706 xorg_cv_cc_flag_unused_command_line_argument=no
10707 fi
10708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10709 fi
10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10711 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10712 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10713 CFLAGS="$xorg_testset_save_CFLAGS"
10714 fi
10715
10716 found="no"
10717
10718 if test $found = "no" ; then
10719 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10721 fi
10722
10723 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10725 fi
10726
10727 CFLAGS="$CFLAGS -Werror"
10728
10729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10730 printf %s "checking if $CC supports -Werror... " >&6; }
10731 cacheid=xorg_cv_cc_flag__Werror
10732 if eval test \${$cacheid+y}
10733 then :
10734 printf %s "(cached) " >&6
10735 else $as_nop
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10738 int i;
10739 int
10740 main (void)
10741 {
10742
10743 ;
10744 return 0;
10745 }
10746 _ACEOF
10747 if ac_fn_c_try_link "$LINENO"
10748 then :
10749 eval $cacheid=yes
10750 else $as_nop
10751 eval $cacheid=no
10752 fi
10753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10754 conftest$ac_exeext conftest.$ac_ext
10755 fi
10756
10757
10758 CFLAGS="$xorg_testset_save_CFLAGS"
10759
10760 eval supported=\$$cacheid
10761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10762 printf "%s\n" "$supported" >&6; }
10763 if test "$supported" = "yes" ; then
10764 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10765 found="yes"
10766 fi
10767 fi
10768
10769 if test $found = "no" ; then
10770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10772 fi
10773
10774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10776 fi
10777
10778 CFLAGS="$CFLAGS -errwarn"
10779
10780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10781 printf %s "checking if $CC supports -errwarn... " >&6; }
10782 cacheid=xorg_cv_cc_flag__errwarn
10783 if eval test \${$cacheid+y}
10784 then :
10785 printf %s "(cached) " >&6
10786 else $as_nop
10787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h. */
10789 int i;
10790 int
10791 main (void)
10792 {
10793
10794 ;
10795 return 0;
10796 }
10797 _ACEOF
10798 if ac_fn_c_try_link "$LINENO"
10799 then :
10800 eval $cacheid=yes
10801 else $as_nop
10802 eval $cacheid=no
10803 fi
10804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10805 conftest$ac_exeext conftest.$ac_ext
10806 fi
10807
10808
10809 CFLAGS="$xorg_testset_save_CFLAGS"
10810
10811 eval supported=\$$cacheid
10812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10813 printf "%s\n" "$supported" >&6; }
10814 if test "$supported" = "yes" ; then
10815 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10816 found="yes"
10817 fi
10818 fi
10819
10820
10821
10822 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10823 # activate it with -Werror, so we add it here explicitly.
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837 xorg_testset_save_CFLAGS="$CFLAGS"
10838
10839 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10842 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10843 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10844 then :
10845 printf %s "(cached) " >&6
10846 else $as_nop
10847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10848 /* end confdefs.h. */
10849 int i;
10850 _ACEOF
10851 if ac_fn_c_try_compile "$LINENO"
10852 then :
10853 xorg_cv_cc_flag_unknown_warning_option=yes
10854 else $as_nop
10855 xorg_cv_cc_flag_unknown_warning_option=no
10856 fi
10857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10858 fi
10859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10860 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10861 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10862 CFLAGS="$xorg_testset_save_CFLAGS"
10863 fi
10864
10865 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10868 fi
10869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10871 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10872 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10873 then :
10874 printf %s "(cached) " >&6
10875 else $as_nop
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878 int i;
10879 _ACEOF
10880 if ac_fn_c_try_compile "$LINENO"
10881 then :
10882 xorg_cv_cc_flag_unused_command_line_argument=yes
10883 else $as_nop
10884 xorg_cv_cc_flag_unused_command_line_argument=no
10885 fi
10886 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10887 fi
10888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10889 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10890 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10891 CFLAGS="$xorg_testset_save_CFLAGS"
10892 fi
10893
10894 found="no"
10895
10896 if test $found = "no" ; then
10897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10899 fi
10900
10901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10903 fi
10904
10905 CFLAGS="$CFLAGS -Werror=attributes"
10906
10907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10908 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10909 cacheid=xorg_cv_cc_flag__Werror_attributes
10910 if eval test \${$cacheid+y}
10911 then :
10912 printf %s "(cached) " >&6
10913 else $as_nop
10914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10915 /* end confdefs.h. */
10916 int i;
10917 int
10918 main (void)
10919 {
10920
10921 ;
10922 return 0;
10923 }
10924 _ACEOF
10925 if ac_fn_c_try_link "$LINENO"
10926 then :
10927 eval $cacheid=yes
10928 else $as_nop
10929 eval $cacheid=no
10930 fi
10931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10932 conftest$ac_exeext conftest.$ac_ext
10933 fi
10934
10935
10936 CFLAGS="$xorg_testset_save_CFLAGS"
10937
10938 eval supported=\$$cacheid
10939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10940 printf "%s\n" "$supported" >&6; }
10941 if test "$supported" = "yes" ; then
10942 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10943 found="yes"
10944 fi
10945 fi
10946
10947
10948
10949 if test "x$STRICT_COMPILE" = "xyes"; then
10950 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10951 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10952 fi
10953
10954
10955
10956
10957
10958
10959 cat >>confdefs.h <<_ACEOF
10960 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10961 _ACEOF
10962
10963 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10964 if test "x$PVM" = "x"; then
10965 PVM="0"
10966 fi
10967
10968 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10969
10970 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10971 if test "x$PVP" = "x"; then
10972 PVP="0"
10973 fi
10974
10975 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10976
10977
10978
10979 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10980 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10981 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10982 touch \$(top_srcdir)/ChangeLog; \
10983 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
10984
10985
10986
10987
10988 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10989 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10990 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10991 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
10992 touch \$(top_srcdir)/INSTALL; \
10993 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
10994
10995
10996
10997
10998
10999
11000 case $host_os in
11001 solaris*)
11002 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11003 # check for a man page file found in later versions that use
11004 # traditional section numbers instead
11005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11006 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11007 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11008 then :
11009 printf %s "(cached) " >&6
11010 else $as_nop
11011 test "$cross_compiling" = yes &&
11012 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11013 if test -r "/usr/share/man/man7/attributes.7"; then
11014 ac_cv_file__usr_share_man_man7_attributes_7=yes
11015 else
11016 ac_cv_file__usr_share_man_man7_attributes_7=no
11017 fi
11018 fi
11019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11020 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11021 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11022 then :
11023 SYSV_MAN_SECTIONS=false
11024 else $as_nop
11025 SYSV_MAN_SECTIONS=true
11026 fi
11027
11028 ;;
11029 *) SYSV_MAN_SECTIONS=false ;;
11030 esac
11031
11032 if test x$APP_MAN_SUFFIX = x ; then
11033 APP_MAN_SUFFIX=1
11034 fi
11035 if test x$APP_MAN_DIR = x ; then
11036 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11037 fi
11038
11039 if test x$LIB_MAN_SUFFIX = x ; then
11040 LIB_MAN_SUFFIX=3
11041 fi
11042 if test x$LIB_MAN_DIR = x ; then
11043 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11044 fi
11045
11046 if test x$FILE_MAN_SUFFIX = x ; then
11047 case $SYSV_MAN_SECTIONS in
11048 true) FILE_MAN_SUFFIX=4 ;;
11049 *) FILE_MAN_SUFFIX=5 ;;
11050 esac
11051 fi
11052 if test x$FILE_MAN_DIR = x ; then
11053 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11054 fi
11055
11056 if test x$MISC_MAN_SUFFIX = x ; then
11057 case $SYSV_MAN_SECTIONS in
11058 true) MISC_MAN_SUFFIX=5 ;;
11059 *) MISC_MAN_SUFFIX=7 ;;
11060 esac
11061 fi
11062 if test x$MISC_MAN_DIR = x ; then
11063 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11064 fi
11065
11066 if test x$DRIVER_MAN_SUFFIX = x ; then
11067 case $SYSV_MAN_SECTIONS in
11068 true) DRIVER_MAN_SUFFIX=7 ;;
11069 *) DRIVER_MAN_SUFFIX=4 ;;
11070 esac
11071 fi
11072 if test x$DRIVER_MAN_DIR = x ; then
11073 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11074 fi
11075
11076 if test x$ADMIN_MAN_SUFFIX = x ; then
11077 case $SYSV_MAN_SECTIONS in
11078 true) ADMIN_MAN_SUFFIX=1m ;;
11079 *) ADMIN_MAN_SUFFIX=8 ;;
11080 esac
11081 fi
11082 if test x$ADMIN_MAN_DIR = x ; then
11083 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11084 fi
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100 XORG_MAN_PAGE="X Version 11"
11101
11102 MAN_SUBSTS="\
11103 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11104 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11105 -e 's|__xservername__|Xorg|g' \
11106 -e 's|__xconfigfile__|xorg.conf|g' \
11107 -e 's|__projectroot__|\$(prefix)|g' \
11108 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11109 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11110 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11111 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11112 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11113 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11114 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11115
11116
11117
11118 # Check whether --enable-silent-rules was given.
11119 if test ${enable_silent_rules+y}
11120 then :
11121 enableval=$enable_silent_rules;
11122 fi
11123
11124 case $enable_silent_rules in # (((
11125 yes) AM_DEFAULT_VERBOSITY=0;;
11126 no) AM_DEFAULT_VERBOSITY=1;;
11127 *) AM_DEFAULT_VERBOSITY=0;;
11128 esac
11129 am_make=${MAKE-make}
11130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11131 printf %s "checking whether $am_make supports nested variables... " >&6; }
11132 if test ${am_cv_make_support_nested_variables+y}
11133 then :
11134 printf %s "(cached) " >&6
11135 else $as_nop
11136 if printf "%s\n" 'TRUE=$(BAR$(V))
11137 BAR0=false
11138 BAR1=true
11139 V=1
11140 am__doit:
11141 @$(TRUE)
11142 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11143 am_cv_make_support_nested_variables=yes
11144 else
11145 am_cv_make_support_nested_variables=no
11146 fi
11147 fi
11148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11149 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11150 if test $am_cv_make_support_nested_variables = yes; then
11151 AM_V='$(V)'
11152 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11153 else
11154 AM_V=$AM_DEFAULT_VERBOSITY
11155 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11156 fi
11157 AM_BACKSLASH='\'
11158
11159
11160
11161 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
11162 if test "x$ac_cv_func_nanosleep" = xyes
11163 then :
11164 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
11165
11166 fi
11167 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
11168 if test "x$ac_cv_func_poll" = xyes
11169 then :
11170 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
11171
11172 fi
11173 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
11174 if test "x$ac_cv_func_select" = xyes
11175 then :
11176 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
11177
11178 fi
11179
11180
11181 # Math libraries & functions
11182 # - some compilers use builtin inlines for floor
11183 # - lrint() is a C99 addition not found on some older systems
11184 # - must do the libm check first so that the lrint check will have it in $LIBS
11185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
11186 printf %s "checking for library containing floor... " >&6; }
11187 if test ${ac_cv_search_floor+y}
11188 then :
11189 printf %s "(cached) " >&6
11190 else $as_nop
11191 ac_func_search_save_LIBS=$LIBS
11192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11194
11195 /* Override any GCC internal prototype to avoid an error.
11196 Use char because int might match the return type of a GCC
11197 builtin and then its argument prototype would still apply. */
11198 char floor ();
11199 int
11200 main (void)
11201 {
11202 return floor ();
11203 ;
11204 return 0;
11205 }
11206 _ACEOF
11207 for ac_lib in '' m
11208 do
11209 if test -z "$ac_lib"; then
11210 ac_res="none required"
11211 else
11212 ac_res=-l$ac_lib
11213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11214 fi
11215 if ac_fn_c_try_link "$LINENO"
11216 then :
11217 ac_cv_search_floor=$ac_res
11218 fi
11219 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11220 conftest$ac_exeext
11221 if test ${ac_cv_search_floor+y}
11222 then :
11223 break
11224 fi
11225 done
11226 if test ${ac_cv_search_floor+y}
11227 then :
11228
11229 else $as_nop
11230 ac_cv_search_floor=no
11231 fi
11232 rm conftest.$ac_ext
11233 LIBS=$ac_func_search_save_LIBS
11234 fi
11235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
11236 printf "%s\n" "$ac_cv_search_floor" >&6; }
11237 ac_res=$ac_cv_search_floor
11238 if test "$ac_res" != no
11239 then :
11240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11241
11242 fi
11243
11244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing lrint" >&5
11245 printf %s "checking for library containing lrint... " >&6; }
11246 if test ${ac_cv_search_lrint+y}
11247 then :
11248 printf %s "(cached) " >&6
11249 else $as_nop
11250 ac_func_search_save_LIBS=$LIBS
11251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11252 /* end confdefs.h. */
11253
11254 /* Override any GCC internal prototype to avoid an error.
11255 Use char because int might match the return type of a GCC
11256 builtin and then its argument prototype would still apply. */
11257 char lrint ();
11258 int
11259 main (void)
11260 {
11261 return lrint ();
11262 ;
11263 return 0;
11264 }
11265 _ACEOF
11266 for ac_lib in '' m
11267 do
11268 if test -z "$ac_lib"; then
11269 ac_res="none required"
11270 else
11271 ac_res=-l$ac_lib
11272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11273 fi
11274 if ac_fn_c_try_link "$LINENO"
11275 then :
11276 ac_cv_search_lrint=$ac_res
11277 fi
11278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11279 conftest$ac_exeext
11280 if test ${ac_cv_search_lrint+y}
11281 then :
11282 break
11283 fi
11284 done
11285 if test ${ac_cv_search_lrint+y}
11286 then :
11287
11288 else $as_nop
11289 ac_cv_search_lrint=no
11290 fi
11291 rm conftest.$ac_ext
11292 LIBS=$ac_func_search_save_LIBS
11293 fi
11294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lrint" >&5
11295 printf "%s\n" "$ac_cv_search_lrint" >&6; }
11296 ac_res=$ac_cv_search_lrint
11297 if test "$ac_res" != no
11298 then :
11299 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11300
11301 fi
11302
11303 ac_fn_c_check_func "$LINENO" "lrint" "ac_cv_func_lrint"
11304 if test "x$ac_cv_func_lrint" = xyes
11305 then :
11306 printf "%s\n" "#define HAVE_LRINT 1" >>confdefs.h
11307
11308 fi
11309
11310
11311 # Checks for pkg-config packages
11312
11313 pkg_failed=no
11314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XMAG" >&5
11315 printf %s "checking for XMAG... " >&6; }
11316
11317 if test -n "$XMAG_CFLAGS"; then
11318 pkg_cv_XMAG_CFLAGS="$XMAG_CFLAGS"
11319 elif test -n "$PKG_CONFIG"; then
11320 if test -n "$PKG_CONFIG" && \
11321 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
11322 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
11323 ac_status=$?
11324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11325 test $ac_status = 0; }; then
11326 pkg_cv_XMAG_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null`
11327 test "x$?" != "x0" && pkg_failed=yes
11328 else
11329 pkg_failed=yes
11330 fi
11331 else
11332 pkg_failed=untried
11333 fi
11334 if test -n "$XMAG_LIBS"; then
11335 pkg_cv_XMAG_LIBS="$XMAG_LIBS"
11336 elif test -n "$PKG_CONFIG"; then
11337 if test -n "$PKG_CONFIG" && \
11338 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
11339 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
11340 ac_status=$?
11341 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11342 test $ac_status = 0; }; then
11343 pkg_cv_XMAG_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null`
11344 test "x$?" != "x0" && pkg_failed=yes
11345 else
11346 pkg_failed=yes
11347 fi
11348 else
11349 pkg_failed=untried
11350 fi
11351
11352
11353
11354 if test $pkg_failed = yes; then
11355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 printf "%s\n" "no" >&6; }
11357
11358 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11359 _pkg_short_errors_supported=yes
11360 else
11361 _pkg_short_errors_supported=no
11362 fi
11363 if test $_pkg_short_errors_supported = yes; then
11364 XMAG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11" 2>&1`
11365 else
11366 XMAG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11" 2>&1`
11367 fi
11368 # Put the nasty error message in config.log where it belongs
11369 echo "$XMAG_PKG_ERRORS" >&5
11370
11371 as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met:
11372
11373 $XMAG_PKG_ERRORS
11374
11375 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11376 installed software in a non-standard prefix.
11377
11378 Alternatively, you may set the environment variables XMAG_CFLAGS
11379 and XMAG_LIBS to avoid the need to call pkg-config.
11380 See the pkg-config man page for more details." "$LINENO" 5
11381 elif test $pkg_failed = untried; then
11382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11383 printf "%s\n" "no" >&6; }
11384 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11385 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11386 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11387 is in your PATH or set the PKG_CONFIG environment variable to the full
11388 path to pkg-config.
11389
11390 Alternatively, you may set the environment variables XMAG_CFLAGS
11391 and XMAG_LIBS to avoid the need to call pkg-config.
11392 See the pkg-config man page for more details.
11393
11394 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11395 See \`config.log' for more details" "$LINENO" 5; }
11396 else
11397 XMAG_CFLAGS=$pkg_cv_XMAG_CFLAGS
11398 XMAG_LIBS=$pkg_cv_XMAG_LIBS
11399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11400 printf "%s\n" "yes" >&6; }
11401
11402 fi
11403
11404 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11405
11406 # Check whether --with-appdefaultdir was given.
11407 if test ${with_appdefaultdir+y}
11408 then :
11409 withval=$with_appdefaultdir; appdefaultdir="$withval"
11410 else $as_nop
11411 appdefaultdir="${xt_appdefaultdir}"
11412 fi
11413
11414
11415
11416
11417 ac_config_files="$ac_config_files Makefile man/Makefile"
11418
11419 cat >confcache <<\_ACEOF
11420 # This file is a shell script that caches the results of configure
11421 # tests run on this system so they can be shared between configure
11422 # scripts and configure runs, see configure's option --config-cache.
11423 # It is not useful on other systems. If it contains results you don't
11424 # want to keep, you may remove or edit it.
11425 #
11426 # config.status only pays attention to the cache file if you give it
11427 # the --recheck option to rerun configure.
11428 #
11429 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11430 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11431 # following values.
11432
11433 _ACEOF
11434
11435 # The following way of writing the cache mishandles newlines in values,
11436 # but we know of no workaround that is simple, portable, and efficient.
11437 # So, we kill variables containing newlines.
11438 # Ultrix sh set writes to stderr and can't be redirected directly,
11439 # and sets the high bit in the cache file unless we assign to the vars.
11440 (
11441 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11442 eval ac_val=\$$ac_var
11443 case $ac_val in #(
11444 *${as_nl}*)
11445 case $ac_var in #(
11446 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11447 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11448 esac
11449 case $ac_var in #(
11450 _ | IFS | as_nl) ;; #(
11451 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11452 *) { eval $ac_var=; unset $ac_var;} ;;
11453 esac ;;
11454 esac
11455 done
11456
11457 (set) 2>&1 |
11458 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11459 *${as_nl}ac_space=\ *)
11460 # `set' does not quote correctly, so add quotes: double-quote
11461 # substitution turns \\\\ into \\, and sed turns \\ into \.
11462 sed -n \
11463 "s/'/'\\\\''/g;
11464 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11465 ;; #(
11466 *)
11467 # `set' quotes correctly as required by POSIX, so do not add quotes.
11468 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11469 ;;
11470 esac |
11471 sort
11472 ) |
11473 sed '
11474 /^ac_cv_env_/b end
11475 t clear
11476 :clear
11477 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11478 t end
11479 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11480 :end' >>confcache
11481 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11482 if test -w "$cache_file"; then
11483 if test "x$cache_file" != "x/dev/null"; then
11484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11485 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11486 if test ! -f "$cache_file" || test -h "$cache_file"; then
11487 cat confcache >"$cache_file"
11488 else
11489 case $cache_file in #(
11490 */* | ?:*)
11491 mv -f confcache "$cache_file"$$ &&
11492 mv -f "$cache_file"$$ "$cache_file" ;; #(
11493 *)
11494 mv -f confcache "$cache_file" ;;
11495 esac
11496 fi
11497 fi
11498 else
11499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11500 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11501 fi
11502 fi
11503 rm -f confcache
11504
11505 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11506 # Let make expand exec_prefix.
11507 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11508
11509 DEFS=-DHAVE_CONFIG_H
11510
11511 ac_libobjs=
11512 ac_ltlibobjs=
11513 U=
11514 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11515 # 1. Remove the extension, and $U if already installed.
11516 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11517 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11518 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11519 # will be set to the directory where LIBOBJS objects are built.
11520 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11521 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11522 done
11523 LIBOBJS=$ac_libobjs
11524
11525 LTLIBOBJS=$ac_ltlibobjs
11526
11527
11528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11529 printf %s "checking that generated files are newer than configure... " >&6; }
11530 if test -n "$am_sleep_pid"; then
11531 # Hide warnings about reused PIDs.
11532 wait $am_sleep_pid 2>/dev/null
11533 fi
11534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11535 printf "%s\n" "done" >&6; }
11536 if test -n "$EXEEXT"; then
11537 am__EXEEXT_TRUE=
11538 am__EXEEXT_FALSE='#'
11539 else
11540 am__EXEEXT_TRUE='#'
11541 am__EXEEXT_FALSE=
11542 fi
11543
11544 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11545 as_fn_error $? "conditional \"AMDEP\" was never defined.
11546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11547 fi
11548 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11549 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11551 fi
11552
11553 : "${CONFIG_STATUS=./config.status}"
11554 ac_write_fail=0
11555 ac_clean_files_save=$ac_clean_files
11556 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11558 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11559 as_write_fail=0
11560 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11561 #! $SHELL
11562 # Generated by $as_me.
11563 # Run this file to recreate the current configuration.
11564 # Compiler output produced by configure, useful for debugging
11565 # configure, is in config.log if it exists.
11566
11567 debug=false
11568 ac_cs_recheck=false
11569 ac_cs_silent=false
11570
11571 SHELL=\${CONFIG_SHELL-$SHELL}
11572 export SHELL
11573 _ASEOF
11574 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11575 ## -------------------- ##
11576 ## M4sh Initialization. ##
11577 ## -------------------- ##
11578
11579 # Be more Bourne compatible
11580 DUALCASE=1; export DUALCASE # for MKS sh
11581 as_nop=:
11582 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11583 then :
11584 emulate sh
11585 NULLCMD=:
11586 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11587 # is contrary to our usage. Disable this feature.
11588 alias -g '${1+"$@"}'='"$@"'
11589 setopt NO_GLOB_SUBST
11590 else $as_nop
11591 case `(set -o) 2>/dev/null` in #(
11592 *posix*) :
11593 set -o posix ;; #(
11594 *) :
11595 ;;
11596 esac
11597 fi
11598
11599
11600
11601 # Reset variables that may have inherited troublesome values from
11602 # the environment.
11603
11604 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11605 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11606 # side effect of setting IFS to empty, thus disabling word splitting.)
11607 # Quoting is to prevent editors from complaining about space-tab.
11608 as_nl='
11609 '
11610 export as_nl
11611 IFS=" "" $as_nl"
11612
11613 PS1='$ '
11614 PS2='> '
11615 PS4='+ '
11616
11617 # Ensure predictable behavior from utilities with locale-dependent output.
11618 LC_ALL=C
11619 export LC_ALL
11620 LANGUAGE=C
11621 export LANGUAGE
11622
11623 # We cannot yet rely on "unset" to work, but we need these variables
11624 # to be unset--not just set to an empty or harmless value--now, to
11625 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11626 # also avoids known problems related to "unset" and subshell syntax
11627 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11628 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11629 do eval test \${$as_var+y} \
11630 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11631 done
11632
11633 # Ensure that fds 0, 1, and 2 are open.
11634 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
11635 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
11636 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
11637
11638 # The user is always right.
11639 if ${PATH_SEPARATOR+false} :; then
11640 PATH_SEPARATOR=:
11641 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11642 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11643 PATH_SEPARATOR=';'
11644 }
11645 fi
11646
11647
11648 # Find who we are. Look in the path if we contain no directory separator.
11649 as_myself=
11650 case $0 in #((
11651 *[\\/]* ) as_myself=$0 ;;
11652 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653 for as_dir in $PATH
11654 do
11655 IFS=$as_save_IFS
11656 case $as_dir in #(((
11657 '') as_dir=./ ;;
11658 */) ;;
11659 *) as_dir=$as_dir/ ;;
11660 esac
11661 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
11662 done
11663 IFS=$as_save_IFS
11664
11665 ;;
11666 esac
11667 # We did not find ourselves, most probably we were run as `sh COMMAND'
11668 # in which case we are not to be found in the path.
11669 if test "x$as_myself" = x; then
11670 as_myself=$0
11671 fi
11672 if test ! -f "$as_myself"; then
11673 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11674 exit 1
11675 fi
11676
11677
11678
11679 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11680 # ----------------------------------------
11681 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11682 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11683 # script with STATUS, using 1 if that was 0.
11684 as_fn_error ()
11685 {
11686 as_status=$1; test $as_status -eq 0 && as_status=1
11687 if test "$4"; then
11688 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11689 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11690 fi
11691 printf "%s\n" "$as_me: error: $2" >&2
11692 as_fn_exit $as_status
11693 } # as_fn_error
11694
11695
11696
11697 # as_fn_set_status STATUS
11698 # -----------------------
11699 # Set $? to STATUS, without forking.
11700 as_fn_set_status ()
11701 {
11702 return $1
11703 } # as_fn_set_status
11704
11705 # as_fn_exit STATUS
11706 # -----------------
11707 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11708 as_fn_exit ()
11709 {
11710 set +e
11711 as_fn_set_status $1
11712 exit $1
11713 } # as_fn_exit
11714
11715 # as_fn_unset VAR
11716 # ---------------
11717 # Portably unset VAR.
11718 as_fn_unset ()
11719 {
11720 { eval $1=; unset $1;}
11721 }
11722 as_unset=as_fn_unset
11723
11724 # as_fn_append VAR VALUE
11725 # ----------------------
11726 # Append the text in VALUE to the end of the definition contained in VAR. Take
11727 # advantage of any shell optimizations that allow amortized linear growth over
11728 # repeated appends, instead of the typical quadratic growth present in naive
11729 # implementations.
11730 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
11731 then :
11732 eval 'as_fn_append ()
11733 {
11734 eval $1+=\$2
11735 }'
11736 else $as_nop
11737 as_fn_append ()
11738 {
11739 eval $1=\$$1\$2
11740 }
11741 fi # as_fn_append
11742
11743 # as_fn_arith ARG...
11744 # ------------------
11745 # Perform arithmetic evaluation on the ARGs, and store the result in the
11746 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11747 # must be portable across $(()) and expr.
11748 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
11749 then :
11750 eval 'as_fn_arith ()
11751 {
11752 as_val=$(( $* ))
11753 }'
11754 else $as_nop
11755 as_fn_arith ()
11756 {
11757 as_val=`expr "$@" || test $? -eq 1`
11758 }
11759 fi # as_fn_arith
11760
11761
11762 if expr a : '\(a\)' >/dev/null 2>&1 &&
11763 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11764 as_expr=expr
11765 else
11766 as_expr=false
11767 fi
11768
11769 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11770 as_basename=basename
11771 else
11772 as_basename=false
11773 fi
11774
11775 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11776 as_dirname=dirname
11777 else
11778 as_dirname=false
11779 fi
11780
11781 as_me=`$as_basename -- "$0" ||
11782 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11783 X"$0" : 'X\(//\)$' \| \
11784 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11785 printf "%s\n" X/"$0" |
11786 sed '/^.*\/\([^/][^/]*\)\/*$/{
11787 s//\1/
11788 q
11789 }
11790 /^X\/\(\/\/\)$/{
11791 s//\1/
11792 q
11793 }
11794 /^X\/\(\/\).*/{
11795 s//\1/
11796 q
11797 }
11798 s/.*/./; q'`
11799
11800 # Avoid depending upon Character Ranges.
11801 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11802 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11803 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11804 as_cr_digits='0123456789'
11805 as_cr_alnum=$as_cr_Letters$as_cr_digits
11806
11807
11808 # Determine whether it's possible to make 'echo' print without a newline.
11809 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
11810 # for compatibility with existing Makefiles.
11811 ECHO_C= ECHO_N= ECHO_T=
11812 case `echo -n x` in #(((((
11813 -n*)
11814 case `echo 'xy\c'` in
11815 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11816 xy) ECHO_C='\c';;
11817 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11818 ECHO_T=' ';;
11819 esac;;
11820 *)
11821 ECHO_N='-n';;
11822 esac
11823
11824 # For backward compatibility with old third-party macros, we provide
11825 # the shell variables $as_echo and $as_echo_n. New code should use
11826 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
11827 as_echo='printf %s\n'
11828 as_echo_n='printf %s'
11829
11830 rm -f conf$$ conf$$.exe conf$$.file
11831 if test -d conf$$.dir; then
11832 rm -f conf$$.dir/conf$$.file
11833 else
11834 rm -f conf$$.dir
11835 mkdir conf$$.dir 2>/dev/null
11836 fi
11837 if (echo >conf$$.file) 2>/dev/null; then
11838 if ln -s conf$$.file conf$$ 2>/dev/null; then
11839 as_ln_s='ln -s'
11840 # ... but there are two gotchas:
11841 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11842 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11843 # In both cases, we have to default to `cp -pR'.
11844 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11845 as_ln_s='cp -pR'
11846 elif ln conf$$.file conf$$ 2>/dev/null; then
11847 as_ln_s=ln
11848 else
11849 as_ln_s='cp -pR'
11850 fi
11851 else
11852 as_ln_s='cp -pR'
11853 fi
11854 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11855 rmdir conf$$.dir 2>/dev/null
11856
11857
11858 # as_fn_mkdir_p
11859 # -------------
11860 # Create "$as_dir" as a directory, including parents if necessary.
11861 as_fn_mkdir_p ()
11862 {
11863
11864 case $as_dir in #(
11865 -*) as_dir=./$as_dir;;
11866 esac
11867 test -d "$as_dir" || eval $as_mkdir_p || {
11868 as_dirs=
11869 while :; do
11870 case $as_dir in #(
11871 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11872 *) as_qdir=$as_dir;;
11873 esac
11874 as_dirs="'$as_qdir' $as_dirs"
11875 as_dir=`$as_dirname -- "$as_dir" ||
11876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11877 X"$as_dir" : 'X\(//\)[^/]' \| \
11878 X"$as_dir" : 'X\(//\)$' \| \
11879 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11880 printf "%s\n" X"$as_dir" |
11881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11882 s//\1/
11883 q
11884 }
11885 /^X\(\/\/\)[^/].*/{
11886 s//\1/
11887 q
11888 }
11889 /^X\(\/\/\)$/{
11890 s//\1/
11891 q
11892 }
11893 /^X\(\/\).*/{
11894 s//\1/
11895 q
11896 }
11897 s/.*/./; q'`
11898 test -d "$as_dir" && break
11899 done
11900 test -z "$as_dirs" || eval "mkdir $as_dirs"
11901 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11902
11903
11904 } # as_fn_mkdir_p
11905 if mkdir -p . 2>/dev/null; then
11906 as_mkdir_p='mkdir -p "$as_dir"'
11907 else
11908 test -d ./-p && rmdir ./-p
11909 as_mkdir_p=false
11910 fi
11911
11912
11913 # as_fn_executable_p FILE
11914 # -----------------------
11915 # Test if FILE is an executable regular file.
11916 as_fn_executable_p ()
11917 {
11918 test -f "$1" && test -x "$1"
11919 } # as_fn_executable_p
11920 as_test_x='test -x'
11921 as_executable_p=as_fn_executable_p
11922
11923 # Sed expression to map a string onto a valid CPP name.
11924 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11925
11926 # Sed expression to map a string onto a valid variable name.
11927 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11928
11929
11930 exec 6>&1
11931 ## ----------------------------------- ##
11932 ## Main body of $CONFIG_STATUS script. ##
11933 ## ----------------------------------- ##
11934 _ASEOF
11935 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11936
11937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11938 # Save the log message, to keep $0 and so on meaningful, and to
11939 # report actual input values of CONFIG_FILES etc. instead of their
11940 # values after options handling.
11941 ac_log="
11942 This file was extended by xmag $as_me 1.0.7, which was
11943 generated by GNU Autoconf 2.71. Invocation command line was
11944
11945 CONFIG_FILES = $CONFIG_FILES
11946 CONFIG_HEADERS = $CONFIG_HEADERS
11947 CONFIG_LINKS = $CONFIG_LINKS
11948 CONFIG_COMMANDS = $CONFIG_COMMANDS
11949 $ $0 $@
11950
11951 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11952 "
11953
11954 _ACEOF
11955
11956 case $ac_config_files in *"
11957 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11958 esac
11959
11960 case $ac_config_headers in *"
11961 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11962 esac
11963
11964
11965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11966 # Files that config.status was made for.
11967 config_files="$ac_config_files"
11968 config_headers="$ac_config_headers"
11969 config_commands="$ac_config_commands"
11970
11971 _ACEOF
11972
11973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11974 ac_cs_usage="\
11975 \`$as_me' instantiates files and other configuration actions
11976 from templates according to the current configuration. Unless the files
11977 and actions are specified as TAGs, all are instantiated by default.
11978
11979 Usage: $0 [OPTION]... [TAG]...
11980
11981 -h, --help print this help, then exit
11982 -V, --version print version number and configuration settings, then exit
11983 --config print configuration, then exit
11984 -q, --quiet, --silent
11985 do not print progress messages
11986 -d, --debug don't remove temporary files
11987 --recheck update $as_me by reconfiguring in the same conditions
11988 --file=FILE[:TEMPLATE]
11989 instantiate the configuration file FILE
11990 --header=FILE[:TEMPLATE]
11991 instantiate the configuration header FILE
11992
11993 Configuration files:
11994 $config_files
11995
11996 Configuration headers:
11997 $config_headers
11998
11999 Configuration commands:
12000 $config_commands
12001
12002 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xmag/issues>."
12003
12004 _ACEOF
12005 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12006 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12008 ac_cs_config='$ac_cs_config_escaped'
12009 ac_cs_version="\\
12010 xmag config.status 1.0.7
12011 configured by $0, generated by GNU Autoconf 2.71,
12012 with options \\"\$ac_cs_config\\"
12013
12014 Copyright (C) 2021 Free Software Foundation, Inc.
12015 This config.status script is free software; the Free Software Foundation
12016 gives unlimited permission to copy, distribute and modify it."
12017
12018 ac_pwd='$ac_pwd'
12019 srcdir='$srcdir'
12020 INSTALL='$INSTALL'
12021 MKDIR_P='$MKDIR_P'
12022 AWK='$AWK'
12023 test -n "\$AWK" || AWK=awk
12024 _ACEOF
12025
12026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12027 # The default lists apply if the user does not specify any file.
12028 ac_need_defaults=:
12029 while test $# != 0
12030 do
12031 case $1 in
12032 --*=?*)
12033 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12034 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12035 ac_shift=:
12036 ;;
12037 --*=)
12038 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12039 ac_optarg=
12040 ac_shift=:
12041 ;;
12042 *)
12043 ac_option=$1
12044 ac_optarg=$2
12045 ac_shift=shift
12046 ;;
12047 esac
12048
12049 case $ac_option in
12050 # Handling of the options.
12051 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12052 ac_cs_recheck=: ;;
12053 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12054 printf "%s\n" "$ac_cs_version"; exit ;;
12055 --config | --confi | --conf | --con | --co | --c )
12056 printf "%s\n" "$ac_cs_config"; exit ;;
12057 --debug | --debu | --deb | --de | --d | -d )
12058 debug=: ;;
12059 --file | --fil | --fi | --f )
12060 $ac_shift
12061 case $ac_optarg in
12062 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12063 '') as_fn_error $? "missing file argument" ;;
12064 esac
12065 as_fn_append CONFIG_FILES " '$ac_optarg'"
12066 ac_need_defaults=false;;
12067 --header | --heade | --head | --hea )
12068 $ac_shift
12069 case $ac_optarg in
12070 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12071 esac
12072 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12073 ac_need_defaults=false;;
12074 --he | --h)
12075 # Conflict between --help and --header
12076 as_fn_error $? "ambiguous option: \`$1'
12077 Try \`$0 --help' for more information.";;
12078 --help | --hel | -h )
12079 printf "%s\n" "$ac_cs_usage"; exit ;;
12080 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12081 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12082 ac_cs_silent=: ;;
12083
12084 # This is an error.
12085 -*) as_fn_error $? "unrecognized option: \`$1'
12086 Try \`$0 --help' for more information." ;;
12087
12088 *) as_fn_append ac_config_targets " $1"
12089 ac_need_defaults=false ;;
12090
12091 esac
12092 shift
12093 done
12094
12095 ac_configure_extra_args=
12096
12097 if $ac_cs_silent; then
12098 exec 6>/dev/null
12099 ac_configure_extra_args="$ac_configure_extra_args --silent"
12100 fi
12101
12102 _ACEOF
12103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12104 if \$ac_cs_recheck; then
12105 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12106 shift
12107 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12108 CONFIG_SHELL='$SHELL'
12109 export CONFIG_SHELL
12110 exec "\$@"
12111 fi
12112
12113 _ACEOF
12114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12115 exec 5>>config.log
12116 {
12117 echo
12118 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12119 ## Running $as_me. ##
12120 _ASBOX
12121 printf "%s\n" "$ac_log"
12122 } >&5
12123
12124 _ACEOF
12125 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12126 #
12127 # INIT-COMMANDS
12128 #
12129 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12130
12131 _ACEOF
12132
12133 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12134
12135 # Handling of arguments.
12136 for ac_config_target in $ac_config_targets
12137 do
12138 case $ac_config_target in
12139 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12140 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12141 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12142 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12143
12144 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12145 esac
12146 done
12147
12148
12149 # If the user did not use the arguments to specify the items to instantiate,
12150 # then the envvar interface is used. Set only those that are not.
12151 # We use the long form for the default assignment because of an extremely
12152 # bizarre bug on SunOS 4.1.3.
12153 if $ac_need_defaults; then
12154 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12155 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12156 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12157 fi
12158
12159 # Have a temporary directory for convenience. Make it in the build tree
12160 # simply because there is no reason against having it here, and in addition,
12161 # creating and moving files from /tmp can sometimes cause problems.
12162 # Hook for its removal unless debugging.
12163 # Note that there is a small window in which the directory will not be cleaned:
12164 # after its creation but before its name has been assigned to `$tmp'.
12165 $debug ||
12166 {
12167 tmp= ac_tmp=
12168 trap 'exit_status=$?
12169 : "${ac_tmp:=$tmp}"
12170 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12171 ' 0
12172 trap 'as_fn_exit 1' 1 2 13 15
12173 }
12174 # Create a (secure) tmp directory for tmp files.
12175
12176 {
12177 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12178 test -d "$tmp"
12179 } ||
12180 {
12181 tmp=./conf$$-$RANDOM
12182 (umask 077 && mkdir "$tmp")
12183 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12184 ac_tmp=$tmp
12185
12186 # Set up the scripts for CONFIG_FILES section.
12187 # No need to generate them if there are no CONFIG_FILES.
12188 # This happens for instance with `./config.status config.h'.
12189 if test -n "$CONFIG_FILES"; then
12190
12191
12192 ac_cr=`echo X | tr X '\015'`
12193 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12194 # But we know of no other shell where ac_cr would be empty at this
12195 # point, so we can use a bashism as a fallback.
12196 if test "x$ac_cr" = x; then
12197 eval ac_cr=\$\'\\r\'
12198 fi
12199 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12200 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12201 ac_cs_awk_cr='\\r'
12202 else
12203 ac_cs_awk_cr=$ac_cr
12204 fi
12205
12206 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12207 _ACEOF
12208
12209
12210 {
12211 echo "cat >conf$$subs.awk <<_ACEOF" &&
12212 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12213 echo "_ACEOF"
12214 } >conf$$subs.sh ||
12215 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12216 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12217 ac_delim='%!_!# '
12218 for ac_last_try in false false false false false :; do
12219 . ./conf$$subs.sh ||
12220 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12221
12222 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12223 if test $ac_delim_n = $ac_delim_num; then
12224 break
12225 elif $ac_last_try; then
12226 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12227 else
12228 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12229 fi
12230 done
12231 rm -f conf$$subs.sh
12232
12233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12234 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12235 _ACEOF
12236 sed -n '
12237 h
12238 s/^/S["/; s/!.*/"]=/
12239 p
12240 g
12241 s/^[^!]*!//
12242 :repl
12243 t repl
12244 s/'"$ac_delim"'$//
12245 t delim
12246 :nl
12247 h
12248 s/\(.\{148\}\)..*/\1/
12249 t more1
12250 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12251 p
12252 n
12253 b repl
12254 :more1
12255 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12256 p
12257 g
12258 s/.\{148\}//
12259 t nl
12260 :delim
12261 h
12262 s/\(.\{148\}\)..*/\1/
12263 t more2
12264 s/["\\]/\\&/g; s/^/"/; s/$/"/
12265 p
12266 b
12267 :more2
12268 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12269 p
12270 g
12271 s/.\{148\}//
12272 t delim
12273 ' <conf$$subs.awk | sed '
12274 /^[^""]/{
12275 N
12276 s/\n//
12277 }
12278 ' >>$CONFIG_STATUS || ac_write_fail=1
12279 rm -f conf$$subs.awk
12280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12281 _ACAWK
12282 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12283 for (key in S) S_is_set[key] = 1
12284 FS = ""
12285
12286 }
12287 {
12288 line = $ 0
12289 nfields = split(line, field, "@")
12290 substed = 0
12291 len = length(field[1])
12292 for (i = 2; i < nfields; i++) {
12293 key = field[i]
12294 keylen = length(key)
12295 if (S_is_set[key]) {
12296 value = S[key]
12297 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12298 len += length(value) + length(field[++i])
12299 substed = 1
12300 } else
12301 len += 1 + keylen
12302 }
12303
12304 print line
12305 }
12306
12307 _ACAWK
12308 _ACEOF
12309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12310 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12311 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12312 else
12313 cat
12314 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12315 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12316 _ACEOF
12317
12318 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12319 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12320 # trailing colons and then remove the whole line if VPATH becomes empty
12321 # (actually we leave an empty line to preserve line numbers).
12322 if test "x$srcdir" = x.; then
12323 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12324 h
12325 s///
12326 s/^/:/
12327 s/[ ]*$/:/
12328 s/:\$(srcdir):/:/g
12329 s/:\${srcdir}:/:/g
12330 s/:@srcdir@:/:/g
12331 s/^:*//
12332 s/:*$//
12333 x
12334 s/\(=[ ]*\).*/\1/
12335 G
12336 s/\n//
12337 s/^[^=]*=[ ]*$//
12338 }'
12339 fi
12340
12341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12342 fi # test -n "$CONFIG_FILES"
12343
12344 # Set up the scripts for CONFIG_HEADERS section.
12345 # No need to generate them if there are no CONFIG_HEADERS.
12346 # This happens for instance with `./config.status Makefile'.
12347 if test -n "$CONFIG_HEADERS"; then
12348 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12349 BEGIN {
12350 _ACEOF
12351
12352 # Transform confdefs.h into an awk script `defines.awk', embedded as
12353 # here-document in config.status, that substitutes the proper values into
12354 # config.h.in to produce config.h.
12355
12356 # Create a delimiter string that does not exist in confdefs.h, to ease
12357 # handling of long lines.
12358 ac_delim='%!_!# '
12359 for ac_last_try in false false :; do
12360 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12361 if test -z "$ac_tt"; then
12362 break
12363 elif $ac_last_try; then
12364 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12365 else
12366 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12367 fi
12368 done
12369
12370 # For the awk script, D is an array of macro values keyed by name,
12371 # likewise P contains macro parameters if any. Preserve backslash
12372 # newline sequences.
12373
12374 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12375 sed -n '
12376 s/.\{148\}/&'"$ac_delim"'/g
12377 t rset
12378 :rset
12379 s/^[ ]*#[ ]*define[ ][ ]*/ /
12380 t def
12381 d
12382 :def
12383 s/\\$//
12384 t bsnl
12385 s/["\\]/\\&/g
12386 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12387 D["\1"]=" \3"/p
12388 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12389 d
12390 :bsnl
12391 s/["\\]/\\&/g
12392 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12393 D["\1"]=" \3\\\\\\n"\\/p
12394 t cont
12395 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12396 t cont
12397 d
12398 :cont
12399 n
12400 s/.\{148\}/&'"$ac_delim"'/g
12401 t clear
12402 :clear
12403 s/\\$//
12404 t bsnlc
12405 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12406 d
12407 :bsnlc
12408 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12409 b cont
12410 ' <confdefs.h | sed '
12411 s/'"$ac_delim"'/"\\\
12412 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12413
12414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12415 for (key in D) D_is_set[key] = 1
12416 FS = ""
12417 }
12418 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12419 line = \$ 0
12420 split(line, arg, " ")
12421 if (arg[1] == "#") {
12422 defundef = arg[2]
12423 mac1 = arg[3]
12424 } else {
12425 defundef = substr(arg[1], 2)
12426 mac1 = arg[2]
12427 }
12428 split(mac1, mac2, "(") #)
12429 macro = mac2[1]
12430 prefix = substr(line, 1, index(line, defundef) - 1)
12431 if (D_is_set[macro]) {
12432 # Preserve the white space surrounding the "#".
12433 print prefix "define", macro P[macro] D[macro]
12434 next
12435 } else {
12436 # Replace #undef with comments. This is necessary, for example,
12437 # in the case of _POSIX_SOURCE, which is predefined and required
12438 # on some systems where configure will not decide to define it.
12439 if (defundef == "undef") {
12440 print "/*", prefix defundef, macro, "*/"
12441 next
12442 }
12443 }
12444 }
12445 { print }
12446 _ACAWK
12447 _ACEOF
12448 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12449 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12450 fi # test -n "$CONFIG_HEADERS"
12451
12452
12453 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12454 shift
12455 for ac_tag
12456 do
12457 case $ac_tag in
12458 :[FHLC]) ac_mode=$ac_tag; continue;;
12459 esac
12460 case $ac_mode$ac_tag in
12461 :[FHL]*:*);;
12462 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12463 :[FH]-) ac_tag=-:-;;
12464 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12465 esac
12466 ac_save_IFS=$IFS
12467 IFS=:
12468 set x $ac_tag
12469 IFS=$ac_save_IFS
12470 shift
12471 ac_file=$1
12472 shift
12473
12474 case $ac_mode in
12475 :L) ac_source=$1;;
12476 :[FH])
12477 ac_file_inputs=
12478 for ac_f
12479 do
12480 case $ac_f in
12481 -) ac_f="$ac_tmp/stdin";;
12482 *) # Look for the file first in the build tree, then in the source tree
12483 # (if the path is not absolute). The absolute path cannot be DOS-style,
12484 # because $ac_f cannot contain `:'.
12485 test -f "$ac_f" ||
12486 case $ac_f in
12487 [\\/$]*) false;;
12488 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12489 esac ||
12490 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12491 esac
12492 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12493 as_fn_append ac_file_inputs " '$ac_f'"
12494 done
12495
12496 # Let's still pretend it is `configure' which instantiates (i.e., don't
12497 # use $as_me), people would be surprised to read:
12498 # /* config.h. Generated by config.status. */
12499 configure_input='Generated from '`
12500 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12501 `' by configure.'
12502 if test x"$ac_file" != x-; then
12503 configure_input="$ac_file. $configure_input"
12504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12505 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12506 fi
12507 # Neutralize special characters interpreted by sed in replacement strings.
12508 case $configure_input in #(
12509 *\&* | *\|* | *\\* )
12510 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12511 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12512 *) ac_sed_conf_input=$configure_input;;
12513 esac
12514
12515 case $ac_tag in
12516 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12517 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12518 esac
12519 ;;
12520 esac
12521
12522 ac_dir=`$as_dirname -- "$ac_file" ||
12523 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12524 X"$ac_file" : 'X\(//\)[^/]' \| \
12525 X"$ac_file" : 'X\(//\)$' \| \
12526 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12527 printf "%s\n" X"$ac_file" |
12528 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12529 s//\1/
12530 q
12531 }
12532 /^X\(\/\/\)[^/].*/{
12533 s//\1/
12534 q
12535 }
12536 /^X\(\/\/\)$/{
12537 s//\1/
12538 q
12539 }
12540 /^X\(\/\).*/{
12541 s//\1/
12542 q
12543 }
12544 s/.*/./; q'`
12545 as_dir="$ac_dir"; as_fn_mkdir_p
12546 ac_builddir=.
12547
12548 case "$ac_dir" in
12549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12550 *)
12551 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12552 # A ".." for each directory in $ac_dir_suffix.
12553 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12554 case $ac_top_builddir_sub in
12555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12557 esac ;;
12558 esac
12559 ac_abs_top_builddir=$ac_pwd
12560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12561 # for backward compatibility:
12562 ac_top_builddir=$ac_top_build_prefix
12563
12564 case $srcdir in
12565 .) # We are building in place.
12566 ac_srcdir=.
12567 ac_top_srcdir=$ac_top_builddir_sub
12568 ac_abs_top_srcdir=$ac_pwd ;;
12569 [\\/]* | ?:[\\/]* ) # Absolute name.
12570 ac_srcdir=$srcdir$ac_dir_suffix;
12571 ac_top_srcdir=$srcdir
12572 ac_abs_top_srcdir=$srcdir ;;
12573 *) # Relative name.
12574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12575 ac_top_srcdir=$ac_top_build_prefix$srcdir
12576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12577 esac
12578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12579
12580
12581 case $ac_mode in
12582 :F)
12583 #
12584 # CONFIG_FILE
12585 #
12586
12587 case $INSTALL in
12588 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12589 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12590 esac
12591 ac_MKDIR_P=$MKDIR_P
12592 case $MKDIR_P in
12593 [\\/$]* | ?:[\\/]* ) ;;
12594 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12595 esac
12596 _ACEOF
12597
12598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12599 # If the template does not know about datarootdir, expand it.
12600 # FIXME: This hack should be removed a few years after 2.60.
12601 ac_datarootdir_hack=; ac_datarootdir_seen=
12602 ac_sed_dataroot='
12603 /datarootdir/ {
12604 p
12605 q
12606 }
12607 /@datadir@/p
12608 /@docdir@/p
12609 /@infodir@/p
12610 /@localedir@/p
12611 /@mandir@/p'
12612 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12613 *datarootdir*) ac_datarootdir_seen=yes;;
12614 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12616 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12617 _ACEOF
12618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12619 ac_datarootdir_hack='
12620 s&@datadir@&$datadir&g
12621 s&@docdir@&$docdir&g
12622 s&@infodir@&$infodir&g
12623 s&@localedir@&$localedir&g
12624 s&@mandir@&$mandir&g
12625 s&\\\${datarootdir}&$datarootdir&g' ;;
12626 esac
12627 _ACEOF
12628
12629 # Neutralize VPATH when `$srcdir' = `.'.
12630 # Shell code in configure.ac might set extrasub.
12631 # FIXME: do we really want to maintain this feature?
12632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12633 ac_sed_extra="$ac_vpsub
12634 $extrasub
12635 _ACEOF
12636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12637 :t
12638 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12639 s|@configure_input@|$ac_sed_conf_input|;t t
12640 s&@top_builddir@&$ac_top_builddir_sub&;t t
12641 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12642 s&@srcdir@&$ac_srcdir&;t t
12643 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12644 s&@top_srcdir@&$ac_top_srcdir&;t t
12645 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12646 s&@builddir@&$ac_builddir&;t t
12647 s&@abs_builddir@&$ac_abs_builddir&;t t
12648 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12649 s&@INSTALL@&$ac_INSTALL&;t t
12650 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12651 $ac_datarootdir_hack
12652 "
12653 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12654 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12655
12656 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12657 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12658 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12659 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12661 which seems to be undefined. Please make sure it is defined" >&5
12662 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12663 which seems to be undefined. Please make sure it is defined" >&2;}
12664
12665 rm -f "$ac_tmp/stdin"
12666 case $ac_file in
12667 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12668 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12669 esac \
12670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12671 ;;
12672 :H)
12673 #
12674 # CONFIG_HEADER
12675 #
12676 if test x"$ac_file" != x-; then
12677 {
12678 printf "%s\n" "/* $configure_input */" >&1 \
12679 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12680 } >"$ac_tmp/config.h" \
12681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12682 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12684 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
12685 else
12686 rm -f "$ac_file"
12687 mv "$ac_tmp/config.h" "$ac_file" \
12688 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12689 fi
12690 else
12691 printf "%s\n" "/* $configure_input */" >&1 \
12692 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12693 || as_fn_error $? "could not create -" "$LINENO" 5
12694 fi
12695 # Compute "$ac_file"'s index in $config_headers.
12696 _am_arg="$ac_file"
12697 _am_stamp_count=1
12698 for _am_header in $config_headers :; do
12699 case $_am_header in
12700 $_am_arg | $_am_arg:* )
12701 break ;;
12702 * )
12703 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12704 esac
12705 done
12706 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12707 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12708 X"$_am_arg" : 'X\(//\)[^/]' \| \
12709 X"$_am_arg" : 'X\(//\)$' \| \
12710 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12711 printf "%s\n" X"$_am_arg" |
12712 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12713 s//\1/
12714 q
12715 }
12716 /^X\(\/\/\)[^/].*/{
12717 s//\1/
12718 q
12719 }
12720 /^X\(\/\/\)$/{
12721 s//\1/
12722 q
12723 }
12724 /^X\(\/\).*/{
12725 s//\1/
12726 q
12727 }
12728 s/.*/./; q'`/stamp-h$_am_stamp_count
12729 ;;
12730
12731 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12732 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
12733 ;;
12734 esac
12735
12736
12737 case $ac_file$ac_mode in
12738 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12739 # Older Autoconf quotes --file arguments for eval, but not when files
12740 # are listed without --file. Let's play safe and only enable the eval
12741 # if we detect the quoting.
12742 # TODO: see whether this extra hack can be removed once we start
12743 # requiring Autoconf 2.70 or later.
12744 case $CONFIG_FILES in #(
12745 *\'*) :
12746 eval set x "$CONFIG_FILES" ;; #(
12747 *) :
12748 set x $CONFIG_FILES ;; #(
12749 *) :
12750 ;;
12751 esac
12752 shift
12753 # Used to flag and report bootstrapping failures.
12754 am_rc=0
12755 for am_mf
12756 do
12757 # Strip MF so we end up with the name of the file.
12758 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
12759 # Check whether this is an Automake generated Makefile which includes
12760 # dependency-tracking related rules and includes.
12761 # Grep'ing the whole file directly is not great: AIX grep has a line
12762 # limit of 2048, but all sed's we know have understand at least 4000.
12763 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
12764 || continue
12765 am_dirpart=`$as_dirname -- "$am_mf" ||
12766 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12767 X"$am_mf" : 'X\(//\)[^/]' \| \
12768 X"$am_mf" : 'X\(//\)$' \| \
12769 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12770 printf "%s\n" X"$am_mf" |
12771 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12772 s//\1/
12773 q
12774 }
12775 /^X\(\/\/\)[^/].*/{
12776 s//\1/
12777 q
12778 }
12779 /^X\(\/\/\)$/{
12780 s//\1/
12781 q
12782 }
12783 /^X\(\/\).*/{
12784 s//\1/
12785 q
12786 }
12787 s/.*/./; q'`
12788 am_filepart=`$as_basename -- "$am_mf" ||
12789 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
12790 X"$am_mf" : 'X\(//\)$' \| \
12791 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
12792 printf "%s\n" X/"$am_mf" |
12793 sed '/^.*\/\([^/][^/]*\)\/*$/{
12794 s//\1/
12795 q
12796 }
12797 /^X\/\(\/\/\)$/{
12798 s//\1/
12799 q
12800 }
12801 /^X\/\(\/\).*/{
12802 s//\1/
12803 q
12804 }
12805 s/.*/./; q'`
12806 { echo "$as_me:$LINENO: cd "$am_dirpart" \
12807 && sed -e '/# am--include-marker/d' "$am_filepart" \
12808 | $MAKE -f - am--depfiles" >&5
12809 (cd "$am_dirpart" \
12810 && sed -e '/# am--include-marker/d' "$am_filepart" \
12811 | $MAKE -f - am--depfiles) >&5 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } || am_rc=$?
12815 done
12816 if test $am_rc -ne 0; then
12817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12818 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12819 as_fn_error $? "Something went wrong bootstrapping makefile fragments
12820 for automatic dependency tracking. If GNU make was not used, consider
12821 re-running the configure script with MAKE=\"gmake\" (or whatever is
12822 necessary). You can also try re-running configure with the
12823 '--disable-dependency-tracking' option to at least be able to build
12824 the package (albeit without support for automatic dependency tracking).
12825 See \`config.log' for more details" "$LINENO" 5; }
12826 fi
12827 { am_dirpart=; unset am_dirpart;}
12828 { am_filepart=; unset am_filepart;}
12829 { am_mf=; unset am_mf;}
12830 { am_rc=; unset am_rc;}
12831 rm -f conftest-deps.mk
12832 }
12833 ;;
12834
12835 esac
12836 done # for ac_tag
12837
12838
12839 as_fn_exit 0
12840 _ACEOF
12841 ac_clean_files=$ac_clean_files_save
12842
12843 test $ac_write_fail = 0 ||
12844 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12845
12846
12847 # configure is writing to config.log, and then calls config.status.
12848 # config.status does its own redirection, appending to config.log.
12849 # Unfortunately, on DOS this fails, as config.log is still kept open
12850 # by configure, so config.status won't be able to write to it; its
12851 # output is simply discarded. So we exec the FD to /dev/null,
12852 # effectively closing config.log, so it can be properly (re)opened and
12853 # appended to by config.status. When coming back to configure, we
12854 # need to make the FD available again.
12855 if test "$no_create" != yes; then
12856 ac_cs_success=:
12857 ac_config_status_args=
12858 test "$silent" = yes &&
12859 ac_config_status_args="$ac_config_status_args --quiet"
12860 exec 5>/dev/null
12861 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12862 exec 5>>config.log
12863 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12864 # would make configure fail if this is the last instruction.
12865 $ac_cs_success || as_fn_exit 1
12866 fi
12867 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12869 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12870 fi
12871
12872
12873