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.72 for xditview 1.0.7.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xditview/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
274 $0: https://gitlab.freedesktop.org/xorg/app/xditview/-/issues
275 $0: about your system, including any error possibly output
276 $0: before this message. Then install a modern shell, or
277 $0: manually run the script under such a shell if you do
278 $0: have one."
279 fi
280 exit 1
281 fi ;;
282 esac
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else case e in #(
390 e) as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 } ;;
394 esac
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403 then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else case e in #(
409 e) as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 } ;;
413 esac
414 fi # as_fn_arith
415
416
417 # as_fn_error STATUS ERROR [LINENO LOG_FD]
418 # ----------------------------------------
419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421 # script with STATUS, using 1 if that was 0.
422 as_fn_error ()
423 {
424 as_status=$1; test $as_status -eq 0 && as_status=1
425 if test "$4"; then
426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428 fi
429 printf "%s\n" "$as_me: error: $2" >&2
430 as_fn_exit $as_status
431 } # as_fn_error
432
433 if expr a : '\(a\)' >/dev/null 2>&1 &&
434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
435 as_expr=expr
436 else
437 as_expr=false
438 fi
439
440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441 as_basename=basename
442 else
443 as_basename=false
444 fi
445
446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447 as_dirname=dirname
448 else
449 as_dirname=false
450 fi
451
452 as_me=`$as_basename -- "$0" ||
453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454 X"$0" : 'X\(//\)$' \| \
455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456 printf "%s\n" X/"$0" |
457 sed '/^.*\/\([^/][^/]*\)\/*$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\/\)$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\).*/{
466 s//\1/
467 q
468 }
469 s/.*/./; q'`
470
471 # Avoid depending upon Character Ranges.
472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475 as_cr_digits='0123456789'
476 as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479 as_lineno_1=$LINENO as_lineno_1a=$LINENO
480 as_lineno_2=$LINENO as_lineno_2a=$LINENO
481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 sed -n '
485 p
486 /[$]LINENO/=
487 ' <$as_myself |
488 sed '
489 t clear
490 :clear
491 s/[$]LINENO.*/&-/
492 t lineno
493 b
494 :lineno
495 N
496 :loop
497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498 t loop
499 s/-\n.*//
500 ' >$as_me.lineno &&
501 chmod +x "$as_me.lineno" ||
502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505 # already done that, so ensure we don't try to do so again and fall
506 # in an infinite loop. This has already happened in practice.
507 _as_can_reexec=no; export _as_can_reexec
508 # Don't try to exec as it changes $[0], causing all sort of problems
509 # (the dirname of $[0] is not the place where we might find the
510 # original and so on. Autoconf is especially sensitive to this).
511 . "./$as_me.lineno"
512 # Exit status is that of the last command.
513 exit
514 }
515
516
517 # Determine whether it's possible to make 'echo' print without a newline.
518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519 # for compatibility with existing Makefiles.
520 ECHO_C= ECHO_N= ECHO_T=
521 case `echo -n x` in #(((((
522 -n*)
523 case `echo 'xy\c'` in
524 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
525 xy) ECHO_C='\c';;
526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
527 ECHO_T=' ';;
528 esac;;
529 *)
530 ECHO_N='-n';;
531 esac
532
533 # For backward compatibility with old third-party macros, we provide
534 # the shell variables $as_echo and $as_echo_n. New code should use
535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536 as_echo='printf %s\n'
537 as_echo_n='printf %s'
538
539 rm -f conf$$ conf$$.exe conf$$.file
540 if test -d conf$$.dir; then
541 rm -f conf$$.dir/conf$$.file
542 else
543 rm -f conf$$.dir
544 mkdir conf$$.dir 2>/dev/null
545 fi
546 if (echo >conf$$.file) 2>/dev/null; then
547 if ln -s conf$$.file conf$$ 2>/dev/null; then
548 as_ln_s='ln -s'
549 # ... but there are two gotchas:
550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552 # In both cases, we have to default to 'cp -pR'.
553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554 as_ln_s='cp -pR'
555 elif ln conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s=ln
557 else
558 as_ln_s='cp -pR'
559 fi
560 else
561 as_ln_s='cp -pR'
562 fi
563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564 rmdir conf$$.dir 2>/dev/null
565
566 if mkdir -p . 2>/dev/null; then
567 as_mkdir_p='mkdir -p "$as_dir"'
568 else
569 test -d ./-p && rmdir ./-p
570 as_mkdir_p=false
571 fi
572
573 as_test_x='test -x'
574 as_executable_p=as_fn_executable_p
575
576 # Sed expression to map a string onto a valid CPP name.
577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580 # Sed expression to map a string onto a valid variable name.
581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585 test -n "$DJDIR" || exec 7<&0 </dev/null
586 exec 6>&1
587
588 # Name of the host.
589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590 # so uname gets run too.
591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593 #
594 # Initializations.
595 #
596 ac_default_prefix=/usr/local
597 ac_clean_files=
598 ac_config_libobj_dir=.
599 LIBOBJS=
600 cross_compiling=no
601 subdirs=
602 MFLAGS=
603 MAKEFLAGS=
604
605 # Identity of this package.
606 PACKAGE_NAME='xditview'
607 PACKAGE_TARNAME='xditview'
608 PACKAGE_VERSION='1.0.7'
609 PACKAGE_STRING='xditview 1.0.7'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xditview/-/issues'
611 PACKAGE_URL=''
612
613 ac_unique_file="Makefile.am"
614 # Factoring default headers for most tests.
615 ac_includes_default="\
616 #include <stddef.h>
617 #ifdef HAVE_STDIO_H
618 # include <stdio.h>
619 #endif
620 #ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 #endif
623 #ifdef HAVE_STRING_H
624 # include <string.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
634 #endif
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef HAVE_UNISTD_H
642 # include <unistd.h>
643 #endif"
644
645 ac_header_c_list=
646 enable_year2038=no
647 ac_subst_vars='am__EXEEXT_FALSE
648 am__EXEEXT_TRUE
649 LTLIBOBJS
650 LIBOBJS
651 XFT_LIBS
652 XFT_CFLAGS
653 appdefaultdir
654 APPDEFS_LIBS
655 APPDEFS_CFLAGS
656 XDITVIEW_LIBS
657 XDITVIEW_CFLAGS
658 MAN_SUBSTS
659 XORG_MAN_PAGE
660 ADMIN_MAN_DIR
661 DRIVER_MAN_DIR
662 MISC_MAN_DIR
663 FILE_MAN_DIR
664 LIB_MAN_DIR
665 APP_MAN_DIR
666 ADMIN_MAN_SUFFIX
667 DRIVER_MAN_SUFFIX
668 MISC_MAN_SUFFIX
669 FILE_MAN_SUFFIX
670 LIB_MAN_SUFFIX
671 APP_MAN_SUFFIX
672 SED
673 host_os
674 host_vendor
675 host_cpu
676 host
677 build_os
678 build_vendor
679 build_cpu
680 build
681 INSTALL_CMD
682 PKG_CONFIG_LIBDIR
683 PKG_CONFIG_PATH
684 PKG_CONFIG
685 CHANGELOG_CMD
686 STRICT_CFLAGS
687 CWARNFLAGS
688 BASE_CFLAGS
689 am__fastdepCC_FALSE
690 am__fastdepCC_TRUE
691 CCDEPMODE
692 am__nodep
693 AMDEPBACKSLASH
694 AMDEP_FALSE
695 AMDEP_TRUE
696 am__include
697 DEPDIR
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 AM_BACKSLASH
706 AM_DEFAULT_VERBOSITY
707 AM_DEFAULT_V
708 AM_V
709 CSCOPE
710 ETAGS
711 CTAGS
712 am__untar
713 am__tar
714 AMTAR
715 am__leading_dot
716 SET_MAKE
717 AWK
718 mkdir_p
719 MKDIR_P
720 INSTALL_STRIP_PROGRAM
721 STRIP
722 install_sh
723 MAKEINFO
724 AUTOHEADER
725 AUTOMAKE
726 AUTOCONF
727 ACLOCAL
728 VERSION
729 PACKAGE
730 CYGPATH_W
731 am__isrc
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 runstatedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL
774 am__quote'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 enable_silent_rules
779 enable_dependency_tracking
780 enable_selective_werror
781 enable_strict_compilation
782 enable_largefile
783 with_appdefaultdir
784 with_xft
785 enable_year2038
786 '
787 ac_precious_vars='build_alias
788 host_alias
789 target_alias
790 CC
791 CFLAGS
792 LDFLAGS
793 LIBS
794 CPPFLAGS
795 PKG_CONFIG
796 PKG_CONFIG_PATH
797 PKG_CONFIG_LIBDIR
798 XDITVIEW_CFLAGS
799 XDITVIEW_LIBS
800 APPDEFS_CFLAGS
801 APPDEFS_LIBS
802 XFT_CFLAGS
803 XFT_LIBS'
804
805
806 # Initialize some variables set by options.
807 ac_init_help=
808 ac_init_version=false
809 ac_unrecognized_opts=
810 ac_unrecognized_sep=
811 # The variables have the same names as the options, with
812 # dashes changed to underlines.
813 cache_file=/dev/null
814 exec_prefix=NONE
815 no_create=
816 no_recursion=
817 prefix=NONE
818 program_prefix=NONE
819 program_suffix=NONE
820 program_transform_name=s,x,x,
821 silent=
822 site=
823 srcdir=
824 verbose=
825 x_includes=NONE
826 x_libraries=NONE
827
828 # Installation directory options.
829 # These are left unexpanded so users can "make install exec_prefix=/foo"
830 # and all the variables that are supposed to be based on exec_prefix
831 # by default will actually change.
832 # Use braces instead of parens because sh, perl, etc. also accept them.
833 # (The list follows the same order as the GNU Coding Standards.)
834 bindir='${exec_prefix}/bin'
835 sbindir='${exec_prefix}/sbin'
836 libexecdir='${exec_prefix}/libexec'
837 datarootdir='${prefix}/share'
838 datadir='${datarootdir}'
839 sysconfdir='${prefix}/etc'
840 sharedstatedir='${prefix}/com'
841 localstatedir='${prefix}/var'
842 runstatedir='${localstatedir}/run'
843 includedir='${prefix}/include'
844 oldincludedir='/usr/include'
845 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846 infodir='${datarootdir}/info'
847 htmldir='${docdir}'
848 dvidir='${docdir}'
849 pdfdir='${docdir}'
850 psdir='${docdir}'
851 libdir='${exec_prefix}/lib'
852 localedir='${datarootdir}/locale'
853 mandir='${datarootdir}/man'
854
855 ac_prev=
856 ac_dashdash=
857 for ac_option
858 do
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\$ac_option
862 ac_prev=
863 continue
864 fi
865
866 case $ac_option in
867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 *=) ac_optarg= ;;
869 *) ac_optarg=yes ;;
870 esac
871
872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
875
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
880
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
885
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
892
893 --config-cache | -C)
894 cache_file=config.cache ;;
895
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
900
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
907
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: '$ac_useropt'"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
923
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
933
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: '$ac_useropt'"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=\$ac_optarg ;;
949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -runstatedir | --runstatedir | --runstatedi | --runstated \
1094 | --runstate | --runstat | --runsta | --runst | --runs \
1095 | --run | --ru | --r)
1096 ac_prev=runstatedir ;;
1097 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1098 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1099 | --run=* | --ru=* | --r=*)
1100 runstatedir=$ac_optarg ;;
1101
1102 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1103 ac_prev=sbindir ;;
1104 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1105 | --sbi=* | --sb=*)
1106 sbindir=$ac_optarg ;;
1107
1108 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1109 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1110 | --sharedst | --shareds | --shared | --share | --shar \
1111 | --sha | --sh)
1112 ac_prev=sharedstatedir ;;
1113 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1114 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1115 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1116 | --sha=* | --sh=*)
1117 sharedstatedir=$ac_optarg ;;
1118
1119 -site | --site | --sit)
1120 ac_prev=site ;;
1121 -site=* | --site=* | --sit=*)
1122 site=$ac_optarg ;;
1123
1124 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1125 ac_prev=srcdir ;;
1126 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1127 srcdir=$ac_optarg ;;
1128
1129 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1130 | --syscon | --sysco | --sysc | --sys | --sy)
1131 ac_prev=sysconfdir ;;
1132 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1133 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1134 sysconfdir=$ac_optarg ;;
1135
1136 -target | --target | --targe | --targ | --tar | --ta | --t)
1137 ac_prev=target_alias ;;
1138 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1139 target_alias=$ac_optarg ;;
1140
1141 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1142 verbose=yes ;;
1143
1144 -version | --version | --versio | --versi | --vers | -V)
1145 ac_init_version=: ;;
1146
1147 -with-* | --with-*)
1148 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151 as_fn_error $? "invalid package name: '$ac_useropt'"
1152 ac_useropt_orig=$ac_useropt
1153 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1154 case $ac_user_opts in
1155 *"
1156 "with_$ac_useropt"
1157 "*) ;;
1158 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1159 ac_unrecognized_sep=', ';;
1160 esac
1161 eval with_$ac_useropt=\$ac_optarg ;;
1162
1163 -without-* | --without-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: '$ac_useropt'"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=no ;;
1178
1179 --x)
1180 # Obsolete; use --with-x.
1181 with_x=yes ;;
1182
1183 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1184 | --x-incl | --x-inc | --x-in | --x-i)
1185 ac_prev=x_includes ;;
1186 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1187 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1188 x_includes=$ac_optarg ;;
1189
1190 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1191 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1192 ac_prev=x_libraries ;;
1193 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1194 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1195 x_libraries=$ac_optarg ;;
1196
1197 -*) as_fn_error $? "unrecognized option: '$ac_option'
1198 Try '$0 --help' for more information"
1199 ;;
1200
1201 *=*)
1202 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1203 # Reject names that are not valid shell variable names.
1204 case $ac_envvar in #(
1205 '' | [0-9]* | *[!_$as_cr_alnum]* )
1206 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1207 esac
1208 eval $ac_envvar=\$ac_optarg
1209 export $ac_envvar ;;
1210
1211 *)
1212 # FIXME: should be removed in autoconf 3.0.
1213 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1214 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1216 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217 ;;
1218
1219 esac
1220 done
1221
1222 if test -n "$ac_prev"; then
1223 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1224 as_fn_error $? "missing argument to $ac_option"
1225 fi
1226
1227 if test -n "$ac_unrecognized_opts"; then
1228 case $enable_option_checking in
1229 no) ;;
1230 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1231 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1232 esac
1233 fi
1234
1235 # Check all directory arguments for consistency.
1236 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1237 datadir sysconfdir sharedstatedir localstatedir includedir \
1238 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1239 libdir localedir mandir runstatedir
1240 do
1241 eval ac_val=\$$ac_var
1242 # Remove trailing slashes.
1243 case $ac_val in
1244 */ )
1245 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1246 eval $ac_var=\$ac_val;;
1247 esac
1248 # Be sure to have absolute directory names.
1249 case $ac_val in
1250 [\\/$]* | ?:[\\/]* ) continue;;
1251 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1252 esac
1253 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1254 done
1255
1256 # There might be people who depend on the old broken behavior: '$host'
1257 # used to hold the argument of --host etc.
1258 # FIXME: To remove some day.
1259 build=$build_alias
1260 host=$host_alias
1261 target=$target_alias
1262
1263 # FIXME: To remove some day.
1264 if test "x$host_alias" != x; then
1265 if test "x$build_alias" = x; then
1266 cross_compiling=maybe
1267 elif test "x$build_alias" != "x$host_alias"; then
1268 cross_compiling=yes
1269 fi
1270 fi
1271
1272 ac_tool_prefix=
1273 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1274
1275 test "$silent" = yes && exec 6>/dev/null
1276
1277
1278 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1279 ac_ls_di=`ls -di .` &&
1280 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1281 as_fn_error $? "working directory cannot be determined"
1282 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1283 as_fn_error $? "pwd does not report name of working directory"
1284
1285
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$as_myself" ||
1291 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$as_myself" : 'X\(//\)[^/]' \| \
1293 X"$as_myself" : 'X\(//\)$' \| \
1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1295 printf "%s\n" X"$as_myself" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\/\)$/{
1305 s//\1/
1306 q
1307 }
1308 /^X\(\/\).*/{
1309 s//\1/
1310 q
1311 }
1312 s/.*/./; q'`
1313 srcdir=$ac_confdir
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 srcdir=..
1316 fi
1317 else
1318 ac_srcdir_defaulted=no
1319 fi
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1323 fi
1324 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1325 ac_abs_confdir=`(
1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1327 pwd)`
1328 # When building in place, set srcdir=.
1329 if test "$ac_abs_confdir" = "$ac_pwd"; then
1330 srcdir=.
1331 fi
1332 # Remove unnecessary trailing slashes from srcdir.
1333 # Double slashes in file names in object file debugging info
1334 # mess up M-x gdb in Emacs.
1335 case $srcdir in
1336 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1337 esac
1338 for ac_var in $ac_precious_vars; do
1339 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_env_${ac_var}_value=\$${ac_var}
1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1343 done
1344
1345 #
1346 # Report the --help message.
1347 #
1348 if test "$ac_init_help" = "long"; then
1349 # Omit some internal or obsolete options to make the list less imposing.
1350 # This message is too long to be a string in the A/UX 3.1 sh.
1351 cat <<_ACEOF
1352 'configure' configures xditview 1.0.7 to adapt to many kinds of systems.
1353
1354 Usage: $0 [OPTION]... [VAR=VALUE]...
1355
1356 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1357 VAR=VALUE. See below for descriptions of some of the useful variables.
1358
1359 Defaults for the options are specified in brackets.
1360
1361 Configuration:
1362 -h, --help display this help and exit
1363 --help=short display options specific to this package
1364 --help=recursive display the short help of all the included packages
1365 -V, --version display version information and exit
1366 -q, --quiet, --silent do not print 'checking ...' messages
1367 --cache-file=FILE cache test results in FILE [disabled]
1368 -C, --config-cache alias for '--cache-file=config.cache'
1369 -n, --no-create do not create output files
1370 --srcdir=DIR find the sources in DIR [configure dir or '..']
1371
1372 Installation directories:
1373 --prefix=PREFIX install architecture-independent files in PREFIX
1374 [$ac_default_prefix]
1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1376 [PREFIX]
1377
1378 By default, 'make install' will install all the files in
1379 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1380 an installation prefix other than '$ac_default_prefix' using '--prefix',
1381 for instance '--prefix=\$HOME'.
1382
1383 For better control, use the options below.
1384
1385 Fine tuning of the installation directories:
1386 --bindir=DIR user executables [EPREFIX/bin]
1387 --sbindir=DIR system admin executables [EPREFIX/sbin]
1388 --libexecdir=DIR program executables [EPREFIX/libexec]
1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1392 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1393 --libdir=DIR object code libraries [EPREFIX/lib]
1394 --includedir=DIR C header files [PREFIX/include]
1395 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1396 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1397 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1398 --infodir=DIR info documentation [DATAROOTDIR/info]
1399 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1400 --mandir=DIR man documentation [DATAROOTDIR/man]
1401 --docdir=DIR documentation root [DATAROOTDIR/doc/xditview]
1402 --htmldir=DIR html documentation [DOCDIR]
1403 --dvidir=DIR dvi documentation [DOCDIR]
1404 --pdfdir=DIR pdf documentation [DOCDIR]
1405 --psdir=DIR ps documentation [DOCDIR]
1406 _ACEOF
1407
1408 cat <<\_ACEOF
1409
1410 Program names:
1411 --program-prefix=PREFIX prepend PREFIX to installed program names
1412 --program-suffix=SUFFIX append SUFFIX to installed program names
1413 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1414
1415 System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 _ACEOF
1419 fi
1420
1421 if test -n "$ac_init_help"; then
1422 case $ac_init_help in
1423 short | recursive ) echo "Configuration of xditview 1.0.7:";;
1424 esac
1425 cat <<\_ACEOF
1426
1427 Optional Features:
1428 --disable-option-checking ignore unrecognized --enable/--with options
1429 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1430 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1431 --enable-silent-rules less verbose build output (undo: "make V=1")
1432 --disable-silent-rules verbose build output (undo: "make V=0")
1433 --enable-dependency-tracking
1434 do not reject slow dependency extractors
1435 --disable-dependency-tracking
1436 speeds up one-time build
1437 --disable-selective-werror
1438 Turn off selective compiler errors. (default:
1439 enabled)
1440 --enable-strict-compilation
1441 Enable all warnings from compiler and make them
1442 errors (default: disabled)
1443 --disable-largefile omit support for large files
1444 --enable-year2038 support timestamps after 2038
1445
1446 Optional Packages:
1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1449 --with-appdefaultdir=<pathname>
1450 specify directory for app-defaults files (default is
1451 autodetected)
1452 --with-xft Use Xft to draw text (default is YES if installed)
1453
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 PKG_CONFIG path to pkg-config utility
1463 PKG_CONFIG_PATH
1464 directories to add to pkg-config's search path
1465 PKG_CONFIG_LIBDIR
1466 path overriding pkg-config's built-in search path
1467 XDITVIEW_CFLAGS
1468 C compiler flags for XDITVIEW, overriding pkg-config
1469 XDITVIEW_LIBS
1470 linker flags for XDITVIEW, overriding pkg-config
1471 APPDEFS_CFLAGS
1472 C compiler flags for APPDEFS, overriding pkg-config
1473 APPDEFS_LIBS
1474 linker flags for APPDEFS, overriding pkg-config
1475 XFT_CFLAGS C compiler flags for XFT, overriding pkg-config
1476 XFT_LIBS linker flags for XFT, overriding pkg-config
1477
1478 Use these variables to override the choices made by 'configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1480
1481 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xditview/-/issues>.
1482 _ACEOF
1483 ac_status=$?
1484 fi
1485
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1491 continue
1492 ac_builddir=.
1493
1494 case "$ac_dir" in
1495 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *)
1497 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1503 esac ;;
1504 esac
1505 ac_abs_top_builddir=$ac_pwd
1506 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir=$ac_top_build_prefix
1509
1510 case $srcdir in
1511 .) # We are building in place.
1512 ac_srcdir=.
1513 ac_top_srcdir=$ac_top_builddir_sub
1514 ac_abs_top_srcdir=$ac_pwd ;;
1515 [\\/]* | ?:[\\/]* ) # Absolute name.
1516 ac_srcdir=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir=$srcdir
1518 ac_abs_top_srcdir=$srcdir ;;
1519 *) # Relative name.
1520 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1523 esac
1524 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1525
1526 cd "$ac_dir" || { ac_status=$?; continue; }
1527 # Check for configure.gnu first; this name is used for a wrapper for
1528 # Metaconfig's "Configure" on case-insensitive file systems.
1529 if test -f "$ac_srcdir/configure.gnu"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532 elif test -f "$ac_srcdir/configure"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure" --help=recursive
1535 else
1536 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 fi || ac_status=$?
1538 cd "$ac_pwd" || { ac_status=$?; break; }
1539 done
1540 fi
1541
1542 test -n "$ac_init_help" && exit $ac_status
1543 if $ac_init_version; then
1544 cat <<\_ACEOF
1545 xditview configure 1.0.7
1546 generated by GNU Autoconf 2.72
1547
1548 Copyright (C) 2023 Free Software Foundation, Inc.
1549 This configure script is free software; the Free Software Foundation
1550 gives unlimited permission to copy, distribute and modify it.
1551 _ACEOF
1552 exit
1553 fi
1554
1555 ## ------------------------ ##
1556 ## Autoconf initialization. ##
1557 ## ------------------------ ##
1558
1559 # ac_fn_c_try_compile LINENO
1560 # --------------------------
1561 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1562 ac_fn_c_try_compile ()
1563 {
1564 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1565 rm -f conftest.$ac_objext conftest.beam
1566 if { { ac_try="$ac_compile"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 printf "%s\n" "$ac_try_echo"; } >&5
1573 (eval "$ac_compile") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1579 fi
1580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } && {
1582 test -z "$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 } && test -s conftest.$ac_objext
1585 then :
1586 ac_retval=0
1587 else case e in #(
1588 e) printf "%s\n" "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1590
1591 ac_retval=1 ;;
1592 esac
1593 fi
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status $ac_retval
1596
1597 } # ac_fn_c_try_compile
1598
1599 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1600 # ------------------------------------------------------------------
1601 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1602 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1603 ac_fn_check_decl ()
1604 {
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 as_decl_name=`echo $2|sed 's/ *(.*//'`
1607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1608 printf %s "checking whether $as_decl_name is declared... " >&6; }
1609 if eval test \${$3+y}
1610 then :
1611 printf %s "(cached) " >&6
1612 else case e in #(
1613 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1614 eval ac_save_FLAGS=\$$6
1615 as_fn_append $6 " $5"
1616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1617 /* end confdefs.h. */
1618 $4
1619 int
1620 main (void)
1621 {
1622 #ifndef $as_decl_name
1623 #ifdef __cplusplus
1624 (void) $as_decl_use;
1625 #else
1626 (void) $as_decl_name;
1627 #endif
1628 #endif
1629
1630 ;
1631 return 0;
1632 }
1633 _ACEOF
1634 if ac_fn_c_try_compile "$LINENO"
1635 then :
1636 eval "$3=yes"
1637 else case e in #(
1638 e) eval "$3=no" ;;
1639 esac
1640 fi
1641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1642 eval $6=\$ac_save_FLAGS
1643 ;;
1644 esac
1645 fi
1646 eval ac_res=\$$3
1647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1648 printf "%s\n" "$ac_res" >&6; }
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650
1651 } # ac_fn_check_decl
1652
1653 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1654 # -------------------------------------------------------
1655 # Tests whether HEADER exists and can be compiled using the include files in
1656 # INCLUDES, setting the cache variable VAR accordingly.
1657 ac_fn_c_check_header_compile ()
1658 {
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661 printf %s "checking for $2... " >&6; }
1662 if eval test \${$3+y}
1663 then :
1664 printf %s "(cached) " >&6
1665 else case e in #(
1666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h. */
1668 $4
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_compile "$LINENO"
1672 then :
1673 eval "$3=yes"
1674 else case e in #(
1675 e) eval "$3=no" ;;
1676 esac
1677 fi
1678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1679 esac
1680 fi
1681 eval ac_res=\$$3
1682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 printf "%s\n" "$ac_res" >&6; }
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685
1686 } # ac_fn_c_check_header_compile
1687
1688 # ac_fn_c_try_link LINENO
1689 # -----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_link ()
1692 {
1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 printf "%s\n" "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>conftest.err
1703 ac_status=$?
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1708 fi
1709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest$ac_exeext && {
1714 test "$cross_compiling" = yes ||
1715 test -x conftest$ac_exeext
1716 }
1717 then :
1718 ac_retval=0
1719 else case e in #(
1720 e) printf "%s\n" "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723 ac_retval=1 ;;
1724 esac
1725 fi
1726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1728 # interfere with the next link command; also delete a directory that is
1729 # left behind by Apple's compiler. We do this before executing the actions.
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_link
1735
1736 # ac_fn_c_check_func LINENO FUNC VAR
1737 # ----------------------------------
1738 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1739 ac_fn_c_check_func ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 printf %s "checking for $2... " >&6; }
1744 if eval test \${$3+y}
1745 then :
1746 printf %s "(cached) " >&6
1747 else case e in #(
1748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1752 #define $2 innocuous_$2
1753
1754 /* System header to define __stub macros and hopefully few prototypes,
1755 which can conflict with char $2 (void); below. */
1756
1757 #include <limits.h>
1758 #undef $2
1759
1760 /* Override any GCC internal prototype to avoid an error.
1761 Use char because int might match the return type of a GCC
1762 builtin and then its argument prototype would still apply. */
1763 #ifdef __cplusplus
1764 extern "C"
1765 #endif
1766 char $2 (void);
1767 /* The GNU C library defines this for functions which it implements
1768 to always fail with ENOSYS. Some functions are actually named
1769 something starting with __ and the normal name is an alias. */
1770 #if defined __stub_$2 || defined __stub___$2
1771 choke me
1772 #endif
1773
1774 int
1775 main (void)
1776 {
1777 return $2 ();
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_link "$LINENO"
1783 then :
1784 eval "$3=yes"
1785 else case e in #(
1786 e) eval "$3=no" ;;
1787 esac
1788 fi
1789 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1790 conftest$ac_exeext conftest.$ac_ext ;;
1791 esac
1792 fi
1793 eval ac_res=\$$3
1794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 printf "%s\n" "$ac_res" >&6; }
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797
1798 } # ac_fn_c_check_func
1799 ac_configure_args_raw=
1800 for ac_arg
1801 do
1802 case $ac_arg in
1803 *\'*)
1804 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1805 esac
1806 as_fn_append ac_configure_args_raw " '$ac_arg'"
1807 done
1808
1809 case $ac_configure_args_raw in
1810 *$as_nl*)
1811 ac_safe_unquote= ;;
1812 *)
1813 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1814 ac_unsafe_a="$ac_unsafe_z#~"
1815 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1816 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1817 esac
1818
1819 cat >config.log <<_ACEOF
1820 This file contains any messages produced by compilers while
1821 running configure, to aid debugging if configure makes a mistake.
1822
1823 It was created by xditview $as_me 1.0.7, which was
1824 generated by GNU Autoconf 2.72. Invocation command line was
1825
1826 $ $0$ac_configure_args_raw
1827
1828 _ACEOF
1829 exec 5>>config.log
1830 {
1831 cat <<_ASUNAME
1832 ## --------- ##
1833 ## Platform. ##
1834 ## --------- ##
1835
1836 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1837 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1838 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1839 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1840 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1841
1842 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1843 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1844
1845 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1846 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1847 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1848 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1849 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1850 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1851 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1852
1853 _ASUNAME
1854
1855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1856 for as_dir in $PATH
1857 do
1858 IFS=$as_save_IFS
1859 case $as_dir in #(((
1860 '') as_dir=./ ;;
1861 */) ;;
1862 *) as_dir=$as_dir/ ;;
1863 esac
1864 printf "%s\n" "PATH: $as_dir"
1865 done
1866 IFS=$as_save_IFS
1867
1868 } >&5
1869
1870 cat >&5 <<_ACEOF
1871
1872
1873 ## ----------- ##
1874 ## Core tests. ##
1875 ## ----------- ##
1876
1877 _ACEOF
1878
1879
1880 # Keep a trace of the command line.
1881 # Strip out --no-create and --no-recursion so they do not pile up.
1882 # Strip out --silent because we don't want to record it for future runs.
1883 # Also quote any args containing shell meta-characters.
1884 # Make two passes to allow for proper duplicate-argument suppression.
1885 ac_configure_args=
1886 ac_configure_args0=
1887 ac_configure_args1=
1888 ac_must_keep_next=false
1889 for ac_pass in 1 2
1890 do
1891 for ac_arg
1892 do
1893 case $ac_arg in
1894 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1896 | -silent | --silent | --silen | --sile | --sil)
1897 continue ;;
1898 *\'*)
1899 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1900 esac
1901 case $ac_pass in
1902 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1903 2)
1904 as_fn_append ac_configure_args1 " '$ac_arg'"
1905 if test $ac_must_keep_next = true; then
1906 ac_must_keep_next=false # Got value, back to normal.
1907 else
1908 case $ac_arg in
1909 *=* | --config-cache | -C | -disable-* | --disable-* \
1910 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1911 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1912 | -with-* | --with-* | -without-* | --without-* | --x)
1913 case "$ac_configure_args0 " in
1914 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1915 esac
1916 ;;
1917 -* ) ac_must_keep_next=true ;;
1918 esac
1919 fi
1920 as_fn_append ac_configure_args " '$ac_arg'"
1921 ;;
1922 esac
1923 done
1924 done
1925 { ac_configure_args0=; unset ac_configure_args0;}
1926 { ac_configure_args1=; unset ac_configure_args1;}
1927
1928 # When interrupted or exit'd, cleanup temporary files, and complete
1929 # config.log. We remove comments because anyway the quotes in there
1930 # would cause problems or look ugly.
1931 # WARNING: Use '\'' to represent an apostrophe within the trap.
1932 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1933 trap 'exit_status=$?
1934 # Sanitize IFS.
1935 IFS=" "" $as_nl"
1936 # Save into config.log some information that might help in debugging.
1937 {
1938 echo
1939
1940 printf "%s\n" "## ---------------- ##
1941 ## Cache variables. ##
1942 ## ---------------- ##"
1943 echo
1944 # The following way of writing the cache mishandles newlines in values,
1945 (
1946 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1947 eval ac_val=\$$ac_var
1948 case $ac_val in #(
1949 *${as_nl}*)
1950 case $ac_var in #(
1951 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1952 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1953 esac
1954 case $ac_var in #(
1955 _ | IFS | as_nl) ;; #(
1956 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1957 *) { eval $ac_var=; unset $ac_var;} ;;
1958 esac ;;
1959 esac
1960 done
1961 (set) 2>&1 |
1962 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1963 *${as_nl}ac_space=\ *)
1964 sed -n \
1965 "s/'\''/'\''\\\\'\'''\''/g;
1966 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1967 ;; #(
1968 *)
1969 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1970 ;;
1971 esac |
1972 sort
1973 )
1974 echo
1975
1976 printf "%s\n" "## ----------------- ##
1977 ## Output variables. ##
1978 ## ----------------- ##"
1979 echo
1980 for ac_var in $ac_subst_vars
1981 do
1982 eval ac_val=\$$ac_var
1983 case $ac_val in
1984 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1985 esac
1986 printf "%s\n" "$ac_var='\''$ac_val'\''"
1987 done | sort
1988 echo
1989
1990 if test -n "$ac_subst_files"; then
1991 printf "%s\n" "## ------------------- ##
1992 ## File substitutions. ##
1993 ## ------------------- ##"
1994 echo
1995 for ac_var in $ac_subst_files
1996 do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in
1999 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2000 esac
2001 printf "%s\n" "$ac_var='\''$ac_val'\''"
2002 done | sort
2003 echo
2004 fi
2005
2006 if test -s confdefs.h; then
2007 printf "%s\n" "## ----------- ##
2008 ## confdefs.h. ##
2009 ## ----------- ##"
2010 echo
2011 cat confdefs.h
2012 echo
2013 fi
2014 test "$ac_signal" != 0 &&
2015 printf "%s\n" "$as_me: caught signal $ac_signal"
2016 printf "%s\n" "$as_me: exit $exit_status"
2017 } >&5
2018 rm -f core *.core core.conftest.* &&
2019 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2020 exit $exit_status
2021 ' 0
2022 for ac_signal in 1 2 13 15; do
2023 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2024 done
2025 ac_signal=0
2026
2027 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2028 rm -f -r conftest* confdefs.h
2029
2030 printf "%s\n" "/* confdefs.h */" > confdefs.h
2031
2032 # Predefined preprocessor variables.
2033
2034 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2035
2036 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2037
2038 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2039
2040 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2041
2042 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2043
2044 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2045
2046
2047 # Let the site file select an alternate cache file if it wants to.
2048 # Prefer an explicitly selected file to automatically selected ones.
2049 if test -n "$CONFIG_SITE"; then
2050 ac_site_files="$CONFIG_SITE"
2051 elif test "x$prefix" != xNONE; then
2052 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2053 else
2054 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2055 fi
2056
2057 for ac_site_file in $ac_site_files
2058 do
2059 case $ac_site_file in #(
2060 */*) :
2061 ;; #(
2062 *) :
2063 ac_site_file=./$ac_site_file ;;
2064 esac
2065 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2067 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2068 sed 's/^/| /' "$ac_site_file" >&5
2069 . "$ac_site_file" \
2070 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2071 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2072 as_fn_error $? "failed to load site script $ac_site_file
2073 See 'config.log' for more details" "$LINENO" 5; }
2074 fi
2075 done
2076
2077 if test -r "$cache_file"; then
2078 # Some versions of bash will fail to source /dev/null (special files
2079 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2080 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2082 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2083 case $cache_file in
2084 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2085 *) . "./$cache_file";;
2086 esac
2087 fi
2088 else
2089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2090 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2091 >$cache_file
2092 fi
2093
2094 # Test code for whether the C compiler supports C89 (global declarations)
2095 ac_c_conftest_c89_globals='
2096 /* Does the compiler advertise C89 conformance?
2097 Do not test the value of __STDC__, because some compilers set it to 0
2098 while being otherwise adequately conformant. */
2099 #if !defined __STDC__
2100 # error "Compiler does not advertise C89 conformance"
2101 #endif
2102
2103 #include <stddef.h>
2104 #include <stdarg.h>
2105 struct stat;
2106 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2107 struct buf { int x; };
2108 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2109 static char *e (char **p, int i)
2110 {
2111 return p[i];
2112 }
2113 static char *f (char * (*g) (char **, int), char **p, ...)
2114 {
2115 char *s;
2116 va_list v;
2117 va_start (v,p);
2118 s = g (p, va_arg (v,int));
2119 va_end (v);
2120 return s;
2121 }
2122
2123 /* C89 style stringification. */
2124 #define noexpand_stringify(a) #a
2125 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2126
2127 /* C89 style token pasting. Exercises some of the corner cases that
2128 e.g. old MSVC gets wrong, but not very hard. */
2129 #define noexpand_concat(a,b) a##b
2130 #define expand_concat(a,b) noexpand_concat(a,b)
2131 extern int vA;
2132 extern int vbee;
2133 #define aye A
2134 #define bee B
2135 int *pvA = &expand_concat(v,aye);
2136 int *pvbee = &noexpand_concat(v,bee);
2137
2138 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2139 function prototypes and stuff, but not \xHH hex character constants.
2140 These do not provoke an error unfortunately, instead are silently treated
2141 as an "x". The following induces an error, until -std is added to get
2142 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2143 array size at least. It is necessary to write \x00 == 0 to get something
2144 that is true only with -std. */
2145 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2146
2147 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2148 inside strings and character constants. */
2149 #define FOO(x) '\''x'\''
2150 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2151
2152 int test (int i, double x);
2153 struct s1 {int (*f) (int a);};
2154 struct s2 {int (*f) (double a);};
2155 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2156 int, int);'
2157
2158 # Test code for whether the C compiler supports C89 (body of main).
2159 ac_c_conftest_c89_main='
2160 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2161 '
2162
2163 # Test code for whether the C compiler supports C99 (global declarations)
2164 ac_c_conftest_c99_globals='
2165 /* Does the compiler advertise C99 conformance? */
2166 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2167 # error "Compiler does not advertise C99 conformance"
2168 #endif
2169
2170 // See if C++-style comments work.
2171
2172 #include <stdbool.h>
2173 extern int puts (const char *);
2174 extern int printf (const char *, ...);
2175 extern int dprintf (int, const char *, ...);
2176 extern void *malloc (size_t);
2177 extern void free (void *);
2178
2179 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2180 // dprintf is used instead of fprintf to avoid needing to declare
2181 // FILE and stderr.
2182 #define debug(...) dprintf (2, __VA_ARGS__)
2183 #define showlist(...) puts (#__VA_ARGS__)
2184 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2185 static void
2186 test_varargs_macros (void)
2187 {
2188 int x = 1234;
2189 int y = 5678;
2190 debug ("Flag");
2191 debug ("X = %d\n", x);
2192 showlist (The first, second, and third items.);
2193 report (x>y, "x is %d but y is %d", x, y);
2194 }
2195
2196 // Check long long types.
2197 #define BIG64 18446744073709551615ull
2198 #define BIG32 4294967295ul
2199 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2200 #if !BIG_OK
2201 #error "your preprocessor is broken"
2202 #endif
2203 #if BIG_OK
2204 #else
2205 #error "your preprocessor is broken"
2206 #endif
2207 static long long int bignum = -9223372036854775807LL;
2208 static unsigned long long int ubignum = BIG64;
2209
2210 struct incomplete_array
2211 {
2212 int datasize;
2213 double data[];
2214 };
2215
2216 struct named_init {
2217 int number;
2218 const wchar_t *name;
2219 double average;
2220 };
2221
2222 typedef const char *ccp;
2223
2224 static inline int
2225 test_restrict (ccp restrict text)
2226 {
2227 // Iterate through items via the restricted pointer.
2228 // Also check for declarations in for loops.
2229 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2230 continue;
2231 return 0;
2232 }
2233
2234 // Check varargs and va_copy.
2235 static bool
2236 test_varargs (const char *format, ...)
2237 {
2238 va_list args;
2239 va_start (args, format);
2240 va_list args_copy;
2241 va_copy (args_copy, args);
2242
2243 const char *str = "";
2244 int number = 0;
2245 float fnumber = 0;
2246
2247 while (*format)
2248 {
2249 switch (*format++)
2250 {
2251 case '\''s'\'': // string
2252 str = va_arg (args_copy, const char *);
2253 break;
2254 case '\''d'\'': // int
2255 number = va_arg (args_copy, int);
2256 break;
2257 case '\''f'\'': // float
2258 fnumber = va_arg (args_copy, double);
2259 break;
2260 default:
2261 break;
2262 }
2263 }
2264 va_end (args_copy);
2265 va_end (args);
2266
2267 return *str && number && fnumber;
2268 }
2269 '
2270
2271 # Test code for whether the C compiler supports C99 (body of main).
2272 ac_c_conftest_c99_main='
2273 // Check bool.
2274 _Bool success = false;
2275 success |= (argc != 0);
2276
2277 // Check restrict.
2278 if (test_restrict ("String literal") == 0)
2279 success = true;
2280 char *restrict newvar = "Another string";
2281
2282 // Check varargs.
2283 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2284 test_varargs_macros ();
2285
2286 // Check flexible array members.
2287 struct incomplete_array *ia =
2288 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2289 ia->datasize = 10;
2290 for (int i = 0; i < ia->datasize; ++i)
2291 ia->data[i] = i * 1.234;
2292 // Work around memory leak warnings.
2293 free (ia);
2294
2295 // Check named initializers.
2296 struct named_init ni = {
2297 .number = 34,
2298 .name = L"Test wide string",
2299 .average = 543.34343,
2300 };
2301
2302 ni.number = 58;
2303
2304 int dynamic_array[ni.number];
2305 dynamic_array[0] = argv[0][0];
2306 dynamic_array[ni.number - 1] = 543;
2307
2308 // work around unused variable warnings
2309 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2310 || dynamic_array[ni.number - 1] != 543);
2311 '
2312
2313 # Test code for whether the C compiler supports C11 (global declarations)
2314 ac_c_conftest_c11_globals='
2315 /* Does the compiler advertise C11 conformance? */
2316 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2317 # error "Compiler does not advertise C11 conformance"
2318 #endif
2319
2320 // Check _Alignas.
2321 char _Alignas (double) aligned_as_double;
2322 char _Alignas (0) no_special_alignment;
2323 extern char aligned_as_int;
2324 char _Alignas (0) _Alignas (int) aligned_as_int;
2325
2326 // Check _Alignof.
2327 enum
2328 {
2329 int_alignment = _Alignof (int),
2330 int_array_alignment = _Alignof (int[100]),
2331 char_alignment = _Alignof (char)
2332 };
2333 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2334
2335 // Check _Noreturn.
2336 int _Noreturn does_not_return (void) { for (;;) continue; }
2337
2338 // Check _Static_assert.
2339 struct test_static_assert
2340 {
2341 int x;
2342 _Static_assert (sizeof (int) <= sizeof (long int),
2343 "_Static_assert does not work in struct");
2344 long int y;
2345 };
2346
2347 // Check UTF-8 literals.
2348 #define u8 syntax error!
2349 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2350
2351 // Check duplicate typedefs.
2352 typedef long *long_ptr;
2353 typedef long int *long_ptr;
2354 typedef long_ptr long_ptr;
2355
2356 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2357 struct anonymous
2358 {
2359 union {
2360 struct { int i; int j; };
2361 struct { int k; long int l; } w;
2362 };
2363 int m;
2364 } v1;
2365 '
2366
2367 # Test code for whether the C compiler supports C11 (body of main).
2368 ac_c_conftest_c11_main='
2369 _Static_assert ((offsetof (struct anonymous, i)
2370 == offsetof (struct anonymous, w.k)),
2371 "Anonymous union alignment botch");
2372 v1.i = 2;
2373 v1.w.k = 5;
2374 ok |= v1.i != 5;
2375 '
2376
2377 # Test code for whether the C compiler supports C11 (complete).
2378 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2379 ${ac_c_conftest_c99_globals}
2380 ${ac_c_conftest_c11_globals}
2381
2382 int
2383 main (int argc, char **argv)
2384 {
2385 int ok = 0;
2386 ${ac_c_conftest_c89_main}
2387 ${ac_c_conftest_c99_main}
2388 ${ac_c_conftest_c11_main}
2389 return ok;
2390 }
2391 "
2392
2393 # Test code for whether the C compiler supports C99 (complete).
2394 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2395 ${ac_c_conftest_c99_globals}
2396
2397 int
2398 main (int argc, char **argv)
2399 {
2400 int ok = 0;
2401 ${ac_c_conftest_c89_main}
2402 ${ac_c_conftest_c99_main}
2403 return ok;
2404 }
2405 "
2406
2407 # Test code for whether the C compiler supports C89 (complete).
2408 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2409
2410 int
2411 main (int argc, char **argv)
2412 {
2413 int ok = 0;
2414 ${ac_c_conftest_c89_main}
2415 return ok;
2416 }
2417 "
2418
2419 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2420 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2421 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2422 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2423 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2424 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2425 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2426 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2427 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2428
2429 # Auxiliary files required by this configure script.
2430 ac_aux_files="config.guess config.sub compile missing install-sh"
2431
2432 # Locations in which to look for auxiliary files.
2433 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2434
2435 # Search for a directory containing all of the required auxiliary files,
2436 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2437 # If we don't find one directory that contains all the files we need,
2438 # we report the set of missing files from the *first* directory in
2439 # $ac_aux_dir_candidates and give up.
2440 ac_missing_aux_files=""
2441 ac_first_candidate=:
2442 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 as_found=false
2445 for as_dir in $ac_aux_dir_candidates
2446 do
2447 IFS=$as_save_IFS
2448 case $as_dir in #(((
2449 '') as_dir=./ ;;
2450 */) ;;
2451 *) as_dir=$as_dir/ ;;
2452 esac
2453 as_found=:
2454
2455 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2456 ac_aux_dir_found=yes
2457 ac_install_sh=
2458 for ac_aux in $ac_aux_files
2459 do
2460 # As a special case, if "install-sh" is required, that requirement
2461 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2462 # and $ac_install_sh is set appropriately for whichever one is found.
2463 if test x"$ac_aux" = x"install-sh"
2464 then
2465 if test -f "${as_dir}install-sh"; then
2466 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2467 ac_install_sh="${as_dir}install-sh -c"
2468 elif test -f "${as_dir}install.sh"; then
2469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2470 ac_install_sh="${as_dir}install.sh -c"
2471 elif test -f "${as_dir}shtool"; then
2472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2473 ac_install_sh="${as_dir}shtool install -c"
2474 else
2475 ac_aux_dir_found=no
2476 if $ac_first_candidate; then
2477 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2478 else
2479 break
2480 fi
2481 fi
2482 else
2483 if test -f "${as_dir}${ac_aux}"; then
2484 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2485 else
2486 ac_aux_dir_found=no
2487 if $ac_first_candidate; then
2488 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2489 else
2490 break
2491 fi
2492 fi
2493 fi
2494 done
2495 if test "$ac_aux_dir_found" = yes; then
2496 ac_aux_dir="$as_dir"
2497 break
2498 fi
2499 ac_first_candidate=false
2500
2501 as_found=false
2502 done
2503 IFS=$as_save_IFS
2504 if $as_found
2505 then :
2506
2507 else case e in #(
2508 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2509 esac
2510 fi
2511
2512
2513 # These three variables are undocumented and unsupported,
2514 # and are intended to be withdrawn in a future Autoconf release.
2515 # They can cause serious problems if a builder's source tree is in a directory
2516 # whose full name contains unusual characters.
2517 if test -f "${ac_aux_dir}config.guess"; then
2518 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2519 fi
2520 if test -f "${ac_aux_dir}config.sub"; then
2521 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2522 fi
2523 if test -f "$ac_aux_dir/configure"; then
2524 ac_configure="$SHELL ${ac_aux_dir}configure"
2525 fi
2526
2527 # Check that the precious variables saved in the cache have kept the same
2528 # value.
2529 ac_cache_corrupted=false
2530 for ac_var in $ac_precious_vars; do
2531 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2532 eval ac_new_set=\$ac_env_${ac_var}_set
2533 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2534 eval ac_new_val=\$ac_env_${ac_var}_value
2535 case $ac_old_set,$ac_new_set in
2536 set,)
2537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2538 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2539 ac_cache_corrupted=: ;;
2540 ,set)
2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2542 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2543 ac_cache_corrupted=: ;;
2544 ,);;
2545 *)
2546 if test "x$ac_old_val" != "x$ac_new_val"; then
2547 # differences in whitespace do not lead to failure.
2548 ac_old_val_w=`echo x $ac_old_val`
2549 ac_new_val_w=`echo x $ac_new_val`
2550 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2552 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2553 ac_cache_corrupted=:
2554 else
2555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2556 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2557 eval $ac_var=\$ac_old_val
2558 fi
2559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2560 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2562 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2563 fi;;
2564 esac
2565 # Pass precious variables to config.status.
2566 if test "$ac_new_set" = set; then
2567 case $ac_new_val in
2568 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2569 *) ac_arg=$ac_var=$ac_new_val ;;
2570 esac
2571 case " $ac_configure_args " in
2572 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2573 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2574 esac
2575 fi
2576 done
2577 if $ac_cache_corrupted; then
2578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2579 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2581 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2582 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2583 and start over" "$LINENO" 5
2584 fi
2585 ## -------------------- ##
2586 ## Main body of script. ##
2587 ## -------------------- ##
2588
2589 ac_ext=c
2590 ac_cpp='$CPP $CPPFLAGS'
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594
2595
2596
2597 ac_config_headers="$ac_config_headers config.h"
2598
2599
2600 # Initialize Automake
2601 am__api_version='1.16'
2602
2603
2604
2605 # Find a good install program. We prefer a C program (faster),
2606 # so one script is as good as another. But avoid the broken or
2607 # incompatible versions:
2608 # SysV /etc/install, /usr/sbin/install
2609 # SunOS /usr/etc/install
2610 # IRIX /sbin/install
2611 # AIX /bin/install
2612 # AmigaOS /C/install, which installs bootblocks on floppy discs
2613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2616 # OS/2's system install, which has a completely different semantic
2617 # ./install, which can be erroneously created by make from ./install.sh.
2618 # Reject install programs that cannot install multiple files.
2619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2620 printf %s "checking for a BSD-compatible install... " >&6; }
2621 if test -z "$INSTALL"; then
2622 if test ${ac_cv_path_install+y}
2623 then :
2624 printf %s "(cached) " >&6
2625 else case e in #(
2626 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629 IFS=$as_save_IFS
2630 case $as_dir in #(((
2631 '') as_dir=./ ;;
2632 */) ;;
2633 *) as_dir=$as_dir/ ;;
2634 esac
2635 # Account for fact that we put trailing slashes in our PATH walk.
2636 case $as_dir in #((
2637 ./ | /[cC]/* | \
2638 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2639 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2640 /usr/ucb/* ) ;;
2641 *)
2642 # OSF1 and SCO ODT 3.0 have their own names for install.
2643 # Don't use installbsd from OSF since it installs stuff as root
2644 # by default.
2645 for ac_prog in ginstall scoinst install; do
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2648 if test $ac_prog = install &&
2649 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2650 # AIX install. It has an incompatible calling convention.
2651 :
2652 elif test $ac_prog = install &&
2653 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2654 # program-specific install script used by HP pwplus--don't use.
2655 :
2656 else
2657 rm -rf conftest.one conftest.two conftest.dir
2658 echo one > conftest.one
2659 echo two > conftest.two
2660 mkdir conftest.dir
2661 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2662 test -s conftest.one && test -s conftest.two &&
2663 test -s conftest.dir/conftest.one &&
2664 test -s conftest.dir/conftest.two
2665 then
2666 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2667 break 3
2668 fi
2669 fi
2670 fi
2671 done
2672 done
2673 ;;
2674 esac
2675
2676 done
2677 IFS=$as_save_IFS
2678
2679 rm -rf conftest.one conftest.two conftest.dir
2680 ;;
2681 esac
2682 fi
2683 if test ${ac_cv_path_install+y}; then
2684 INSTALL=$ac_cv_path_install
2685 else
2686 # As a last resort, use the slow shell script. Don't cache a
2687 # value for INSTALL within a source directory, because that will
2688 # break other packages using the cache if that directory is
2689 # removed, or if the value is a relative name.
2690 INSTALL=$ac_install_sh
2691 fi
2692 fi
2693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2694 printf "%s\n" "$INSTALL" >&6; }
2695
2696 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2697 # It thinks the first close brace ends the variable substitution.
2698 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2699
2700 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2701
2702 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2703
2704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2705 printf %s "checking whether build environment is sane... " >&6; }
2706 # Reject unsafe characters in $srcdir or the absolute working directory
2707 # name. Accept space and tab only in the latter.
2708 am_lf='
2709 '
2710 case `pwd` in
2711 *[\\\"\#\$\&\'\`$am_lf]*)
2712 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2713 esac
2714 case $srcdir in
2715 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2716 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2717 esac
2718
2719 # Do 'set' in a subshell so we don't clobber the current shell's
2720 # arguments. Must try -L first in case configure is actually a
2721 # symlink; some systems play weird games with the mod time of symlinks
2722 # (eg FreeBSD returns the mod time of the symlink's containing
2723 # directory).
2724 if (
2725 am_has_slept=no
2726 for am_try in 1 2; do
2727 echo "timestamp, slept: $am_has_slept" > conftest.file
2728 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2729 if test "$*" = "X"; then
2730 # -L didn't work.
2731 set X `ls -t "$srcdir/configure" conftest.file`
2732 fi
2733 if test "$*" != "X $srcdir/configure conftest.file" \
2734 && test "$*" != "X conftest.file $srcdir/configure"; then
2735
2736 # If neither matched, then we have a broken ls. This can happen
2737 # if, for instance, CONFIG_SHELL is bash and it inherits a
2738 # broken ls alias from the environment. This has actually
2739 # happened. Such a system could not be considered "sane".
2740 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2741 alias in your environment" "$LINENO" 5
2742 fi
2743 if test "$2" = conftest.file || test $am_try -eq 2; then
2744 break
2745 fi
2746 # Just in case.
2747 sleep 1
2748 am_has_slept=yes
2749 done
2750 test "$2" = conftest.file
2751 )
2752 then
2753 # Ok.
2754 :
2755 else
2756 as_fn_error $? "newly created file is older than distributed files!
2757 Check your system clock" "$LINENO" 5
2758 fi
2759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2760 printf "%s\n" "yes" >&6; }
2761 # If we didn't sleep, we still need to ensure time stamps of config.status and
2762 # generated files are strictly newer.
2763 am_sleep_pid=
2764 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2765 ( sleep 1 ) &
2766 am_sleep_pid=$!
2767 fi
2768
2769 rm -f conftest.file
2770
2771 test "$program_prefix" != NONE &&
2772 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2773 # Use a double $ so make ignores it.
2774 test "$program_suffix" != NONE &&
2775 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2776 # Double any \ or $.
2777 # By default was 's,x,x', remove it if useless.
2778 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2779 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2780
2781
2782 # Expand $ac_aux_dir to an absolute path.
2783 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2784
2785
2786 if test x"${MISSING+set}" != xset; then
2787 MISSING="\${SHELL} '$am_aux_dir/missing'"
2788 fi
2789 # Use eval to expand $SHELL
2790 if eval "$MISSING --is-lightweight"; then
2791 am_missing_run="$MISSING "
2792 else
2793 am_missing_run=
2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2795 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2796 fi
2797
2798 if test x"${install_sh+set}" != xset; then
2799 case $am_aux_dir in
2800 *\ * | *\ *)
2801 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2802 *)
2803 install_sh="\${SHELL} $am_aux_dir/install-sh"
2804 esac
2805 fi
2806
2807 # Installed binaries are usually stripped using 'strip' when the user
2808 # run "make install-strip". However 'strip' might not be the right
2809 # tool to use in cross-compilation environments, therefore Automake
2810 # will honor the 'STRIP' environment variable to overrule this program.
2811 if test "$cross_compiling" != no; then
2812 if test -n "$ac_tool_prefix"; then
2813 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2814 set dummy ${ac_tool_prefix}strip; ac_word=$2
2815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 printf %s "checking for $ac_word... " >&6; }
2817 if test ${ac_cv_prog_STRIP+y}
2818 then :
2819 printf %s "(cached) " >&6
2820 else case e in #(
2821 e) if test -n "$STRIP"; then
2822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2823 else
2824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827 IFS=$as_save_IFS
2828 case $as_dir in #(((
2829 '') as_dir=./ ;;
2830 */) ;;
2831 *) as_dir=$as_dir/ ;;
2832 esac
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2837 break 2
2838 fi
2839 done
2840 done
2841 IFS=$as_save_IFS
2842
2843 fi ;;
2844 esac
2845 fi
2846 STRIP=$ac_cv_prog_STRIP
2847 if test -n "$STRIP"; then
2848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2849 printf "%s\n" "$STRIP" >&6; }
2850 else
2851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 printf "%s\n" "no" >&6; }
2853 fi
2854
2855
2856 fi
2857 if test -z "$ac_cv_prog_STRIP"; then
2858 ac_ct_STRIP=$STRIP
2859 # Extract the first word of "strip", so it can be a program name with args.
2860 set dummy strip; ac_word=$2
2861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862 printf %s "checking for $ac_word... " >&6; }
2863 if test ${ac_cv_prog_ac_ct_STRIP+y}
2864 then :
2865 printf %s "(cached) " >&6
2866 else case e in #(
2867 e) if test -n "$ac_ct_STRIP"; then
2868 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2869 else
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2871 for as_dir in $PATH
2872 do
2873 IFS=$as_save_IFS
2874 case $as_dir in #(((
2875 '') as_dir=./ ;;
2876 */) ;;
2877 *) as_dir=$as_dir/ ;;
2878 esac
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2881 ac_cv_prog_ac_ct_STRIP="strip"
2882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885 done
2886 done
2887 IFS=$as_save_IFS
2888
2889 fi ;;
2890 esac
2891 fi
2892 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2893 if test -n "$ac_ct_STRIP"; then
2894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2895 printf "%s\n" "$ac_ct_STRIP" >&6; }
2896 else
2897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2898 printf "%s\n" "no" >&6; }
2899 fi
2900
2901 if test "x$ac_ct_STRIP" = x; then
2902 STRIP=":"
2903 else
2904 case $cross_compiling:$ac_tool_warned in
2905 yes:)
2906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2907 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2908 ac_tool_warned=yes ;;
2909 esac
2910 STRIP=$ac_ct_STRIP
2911 fi
2912 else
2913 STRIP="$ac_cv_prog_STRIP"
2914 fi
2915
2916 fi
2917 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2918
2919
2920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2921 printf %s "checking for a race-free mkdir -p... " >&6; }
2922 if test -z "$MKDIR_P"; then
2923 if test ${ac_cv_path_mkdir+y}
2924 then :
2925 printf %s "(cached) " >&6
2926 else case e in #(
2927 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2928 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2929 do
2930 IFS=$as_save_IFS
2931 case $as_dir in #(((
2932 '') as_dir=./ ;;
2933 */) ;;
2934 *) as_dir=$as_dir/ ;;
2935 esac
2936 for ac_prog in mkdir gmkdir; do
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2939 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2940 'mkdir ('*'coreutils) '* | \
2941 *'BusyBox '* | \
2942 'mkdir (fileutils) '4.1*)
2943 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2944 break 3;;
2945 esac
2946 done
2947 done
2948 done
2949 IFS=$as_save_IFS
2950 ;;
2951 esac
2952 fi
2953
2954 test -d ./--version && rmdir ./--version
2955 if test ${ac_cv_path_mkdir+y}; then
2956 MKDIR_P="$ac_cv_path_mkdir -p"
2957 else
2958 # As a last resort, use plain mkdir -p,
2959 # in the hope it doesn't have the bugs of ancient mkdir.
2960 MKDIR_P='mkdir -p'
2961 fi
2962 fi
2963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2964 printf "%s\n" "$MKDIR_P" >&6; }
2965
2966 for ac_prog in gawk mawk nawk awk
2967 do
2968 # Extract the first word of "$ac_prog", so it can be a program name with args.
2969 set dummy $ac_prog; ac_word=$2
2970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 printf %s "checking for $ac_word... " >&6; }
2972 if test ${ac_cv_prog_AWK+y}
2973 then :
2974 printf %s "(cached) " >&6
2975 else case e in #(
2976 e) if test -n "$AWK"; then
2977 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2978 else
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982 IFS=$as_save_IFS
2983 case $as_dir in #(((
2984 '') as_dir=./ ;;
2985 */) ;;
2986 *) as_dir=$as_dir/ ;;
2987 esac
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_AWK="$ac_prog"
2991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 fi ;;
2999 esac
3000 fi
3001 AWK=$ac_cv_prog_AWK
3002 if test -n "$AWK"; then
3003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3004 printf "%s\n" "$AWK" >&6; }
3005 else
3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007 printf "%s\n" "no" >&6; }
3008 fi
3009
3010
3011 test -n "$AWK" && break
3012 done
3013
3014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3015 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3016 set x ${MAKE-make}
3017 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3018 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3019 then :
3020 printf %s "(cached) " >&6
3021 else case e in #(
3022 e) cat >conftest.make <<\_ACEOF
3023 SHELL = /bin/sh
3024 all:
3025 @echo '@@@%%%=$(MAKE)=@@@%%%'
3026 _ACEOF
3027 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3028 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3029 *@@@%%%=?*=@@@%%%*)
3030 eval ac_cv_prog_make_${ac_make}_set=yes;;
3031 *)
3032 eval ac_cv_prog_make_${ac_make}_set=no;;
3033 esac
3034 rm -f conftest.make ;;
3035 esac
3036 fi
3037 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3039 printf "%s\n" "yes" >&6; }
3040 SET_MAKE=
3041 else
3042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 printf "%s\n" "no" >&6; }
3044 SET_MAKE="MAKE=${MAKE-make}"
3045 fi
3046
3047 rm -rf .tst 2>/dev/null
3048 mkdir .tst 2>/dev/null
3049 if test -d .tst; then
3050 am__leading_dot=.
3051 else
3052 am__leading_dot=_
3053 fi
3054 rmdir .tst 2>/dev/null
3055
3056 # Check whether --enable-silent-rules was given.
3057 if test ${enable_silent_rules+y}
3058 then :
3059 enableval=$enable_silent_rules;
3060 fi
3061
3062 case $enable_silent_rules in # (((
3063 yes) AM_DEFAULT_VERBOSITY=0;;
3064 no) AM_DEFAULT_VERBOSITY=1;;
3065 *) AM_DEFAULT_VERBOSITY=1;;
3066 esac
3067 am_make=${MAKE-make}
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3069 printf %s "checking whether $am_make supports nested variables... " >&6; }
3070 if test ${am_cv_make_support_nested_variables+y}
3071 then :
3072 printf %s "(cached) " >&6
3073 else case e in #(
3074 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3075 BAR0=false
3076 BAR1=true
3077 V=1
3078 am__doit:
3079 @$(TRUE)
3080 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3081 am_cv_make_support_nested_variables=yes
3082 else
3083 am_cv_make_support_nested_variables=no
3084 fi ;;
3085 esac
3086 fi
3087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3088 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3089 if test $am_cv_make_support_nested_variables = yes; then
3090 AM_V='$(V)'
3091 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3092 else
3093 AM_V=$AM_DEFAULT_VERBOSITY
3094 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3095 fi
3096 AM_BACKSLASH='\'
3097
3098 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3099 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3100 # is not polluted with repeated "-I."
3101 am__isrc=' -I$(srcdir)'
3102 # test to see if srcdir already configured
3103 if test -f $srcdir/config.status; then
3104 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3105 fi
3106 fi
3107
3108 # test whether we have cygpath
3109 if test -z "$CYGPATH_W"; then
3110 if (cygpath --version) >/dev/null 2>/dev/null; then
3111 CYGPATH_W='cygpath -w'
3112 else
3113 CYGPATH_W=echo
3114 fi
3115 fi
3116
3117
3118 # Define the identity of the package.
3119 PACKAGE='xditview'
3120 VERSION='1.0.7'
3121
3122
3123 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3124
3125
3126 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3127
3128 # Some tools Automake needs.
3129
3130 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3131
3132
3133 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3134
3135
3136 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3137
3138
3139 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3140
3141
3142 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3143
3144 # For better backward compatibility. To be removed once Automake 1.9.x
3145 # dies out for good. For more background, see:
3146 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3147 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3148 mkdir_p='$(MKDIR_P)'
3149
3150 # We need awk for the "check" target (and possibly the TAP driver). The
3151 # system "awk" is bad on some platforms.
3152 # Always define AMTAR for backward compatibility. Yes, it's still used
3153 # in the wild :-( We should find a proper way to deprecate it ...
3154 AMTAR='$${TAR-tar}'
3155
3156
3157 # We'll loop over all known methods to create a tar archive until one works.
3158 _am_tools='gnutar pax cpio none'
3159
3160 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3161
3162
3163
3164
3165
3166 # Variables for tags utilities; see am/tags.am
3167 if test -z "$CTAGS"; then
3168 CTAGS=ctags
3169 fi
3170
3171 if test -z "$ETAGS"; then
3172 ETAGS=etags
3173 fi
3174
3175 if test -z "$CSCOPE"; then
3176 CSCOPE=cscope
3177 fi
3178
3179
3180
3181 # POSIX will say in a future version that running "rm -f" with no argument
3182 # is OK; and we want to be able to make that assumption in our Makefile
3183 # recipes. So use an aggressive probe to check that the usage we want is
3184 # actually supported "in the wild" to an acceptable degree.
3185 # See automake bug#10828.
3186 # To make any issue more visible, cause the running configure to be aborted
3187 # by default if the 'rm' program in use doesn't match our expectations; the
3188 # user can still override this though.
3189 if rm -f && rm -fr && rm -rf; then : OK; else
3190 cat >&2 <<'END'
3191 Oops!
3192
3193 Your 'rm' program seems unable to run without file operands specified
3194 on the command line, even when the '-f' option is present. This is contrary
3195 to the behaviour of most rm programs out there, and not conforming with
3196 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3197
3198 Please tell bug-automake@gnu.org about your system, including the value
3199 of your $PATH and any error possibly output before this message. This
3200 can help us improve future automake versions.
3201
3202 END
3203 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3204 echo 'Configuration will proceed anyway, since you have set the' >&2
3205 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3206 echo >&2
3207 else
3208 cat >&2 <<'END'
3209 Aborting the configuration process, to ensure you take notice of the issue.
3210
3211 You can download and install GNU coreutils to get an 'rm' implementation
3212 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3213
3214 If you want to complete the configuration process using your problematic
3215 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3216 to "yes", and re-run configure.
3217
3218 END
3219 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3220 fi
3221 fi
3222
3223
3224 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245 DEPDIR="${am__leading_dot}deps"
3246
3247 ac_config_commands="$ac_config_commands depfiles"
3248
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3250 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3251 cat > confinc.mk << 'END'
3252 am__doit:
3253 @echo this is the am__doit target >confinc.out
3254 .PHONY: am__doit
3255 END
3256 am__include="#"
3257 am__quote=
3258 # BSD make does it like this.
3259 echo '.include "confinc.mk" # ignored' > confmf.BSD
3260 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3261 echo 'include confinc.mk # ignored' > confmf.GNU
3262 _am_result=no
3263 for s in GNU BSD; do
3264 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3265 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }
3269 case $?:`cat confinc.out 2>/dev/null` in #(
3270 '0:this is the am__doit target') :
3271 case $s in #(
3272 BSD) :
3273 am__include='.include' am__quote='"' ;; #(
3274 *) :
3275 am__include='include' am__quote='' ;;
3276 esac ;; #(
3277 *) :
3278 ;;
3279 esac
3280 if test "$am__include" != "#"; then
3281 _am_result="yes ($s style)"
3282 break
3283 fi
3284 done
3285 rm -f confinc.* confmf.*
3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3287 printf "%s\n" "${_am_result}" >&6; }
3288
3289 # Check whether --enable-dependency-tracking was given.
3290 if test ${enable_dependency_tracking+y}
3291 then :
3292 enableval=$enable_dependency_tracking;
3293 fi
3294
3295 if test "x$enable_dependency_tracking" != xno; then
3296 am_depcomp="$ac_aux_dir/depcomp"
3297 AMDEPBACKSLASH='\'
3298 am__nodep='_no'
3299 fi
3300 if test "x$enable_dependency_tracking" != xno; then
3301 AMDEP_TRUE=
3302 AMDEP_FALSE='#'
3303 else
3304 AMDEP_TRUE='#'
3305 AMDEP_FALSE=
3306 fi
3307
3308
3309 ac_ext=c
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 if test -n "$ac_tool_prefix"; then
3315 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 printf %s "checking for $ac_word... " >&6; }
3319 if test ${ac_cv_prog_CC+y}
3320 then :
3321 printf %s "(cached) " >&6
3322 else case e in #(
3323 e) if test -n "$CC"; then
3324 ac_cv_prog_CC="$CC" # Let the user override the test.
3325 else
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3328 do
3329 IFS=$as_save_IFS
3330 case $as_dir in #(((
3331 '') as_dir=./ ;;
3332 */) ;;
3333 *) as_dir=$as_dir/ ;;
3334 esac
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3339 break 2
3340 fi
3341 done
3342 done
3343 IFS=$as_save_IFS
3344
3345 fi ;;
3346 esac
3347 fi
3348 CC=$ac_cv_prog_CC
3349 if test -n "$CC"; then
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351 printf "%s\n" "$CC" >&6; }
3352 else
3353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354 printf "%s\n" "no" >&6; }
3355 fi
3356
3357
3358 fi
3359 if test -z "$ac_cv_prog_CC"; then
3360 ac_ct_CC=$CC
3361 # Extract the first word of "gcc", so it can be a program name with args.
3362 set dummy gcc; ac_word=$2
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 printf %s "checking for $ac_word... " >&6; }
3365 if test ${ac_cv_prog_ac_ct_CC+y}
3366 then :
3367 printf %s "(cached) " >&6
3368 else case e in #(
3369 e) if test -n "$ac_ct_CC"; then
3370 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3374 do
3375 IFS=$as_save_IFS
3376 case $as_dir in #(((
3377 '') as_dir=./ ;;
3378 */) ;;
3379 *) as_dir=$as_dir/ ;;
3380 esac
3381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3383 ac_cv_prog_ac_ct_CC="gcc"
3384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3385 break 2
3386 fi
3387 done
3388 done
3389 IFS=$as_save_IFS
3390
3391 fi ;;
3392 esac
3393 fi
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 printf "%s\n" "$ac_ct_CC" >&6; }
3398 else
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 printf "%s\n" "no" >&6; }
3401 fi
3402
3403 if test "x$ac_ct_CC" = x; then
3404 CC=""
3405 else
3406 case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412 CC=$ac_ct_CC
3413 fi
3414 else
3415 CC="$ac_cv_prog_CC"
3416 fi
3417
3418 if test -z "$CC"; then
3419 if test -n "$ac_tool_prefix"; then
3420 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}cc; ac_word=$2
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 printf %s "checking for $ac_word... " >&6; }
3424 if test ${ac_cv_prog_CC+y}
3425 then :
3426 printf %s "(cached) " >&6
3427 else case e in #(
3428 e) if test -n "$CC"; then
3429 ac_cv_prog_CC="$CC" # Let the user override the test.
3430 else
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3432 for as_dir in $PATH
3433 do
3434 IFS=$as_save_IFS
3435 case $as_dir in #(((
3436 '') as_dir=./ ;;
3437 */) ;;
3438 *) as_dir=$as_dir/ ;;
3439 esac
3440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3442 ac_cv_prog_CC="${ac_tool_prefix}cc"
3443 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3444 break 2
3445 fi
3446 done
3447 done
3448 IFS=$as_save_IFS
3449
3450 fi ;;
3451 esac
3452 fi
3453 CC=$ac_cv_prog_CC
3454 if test -n "$CC"; then
3455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3456 printf "%s\n" "$CC" >&6; }
3457 else
3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3459 printf "%s\n" "no" >&6; }
3460 fi
3461
3462
3463 fi
3464 fi
3465 if test -z "$CC"; then
3466 # Extract the first word of "cc", so it can be a program name with args.
3467 set dummy cc; ac_word=$2
3468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 printf %s "checking for $ac_word... " >&6; }
3470 if test ${ac_cv_prog_CC+y}
3471 then :
3472 printf %s "(cached) " >&6
3473 else case e in #(
3474 e) if test -n "$CC"; then
3475 ac_cv_prog_CC="$CC" # Let the user override the test.
3476 else
3477 ac_prog_rejected=no
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH
3480 do
3481 IFS=$as_save_IFS
3482 case $as_dir in #(((
3483 '') as_dir=./ ;;
3484 */) ;;
3485 *) as_dir=$as_dir/ ;;
3486 esac
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3489 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3490 ac_prog_rejected=yes
3491 continue
3492 fi
3493 ac_cv_prog_CC="cc"
3494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3495 break 2
3496 fi
3497 done
3498 done
3499 IFS=$as_save_IFS
3500
3501 if test $ac_prog_rejected = yes; then
3502 # We found a bogon in the path, so make sure we never use it.
3503 set dummy $ac_cv_prog_CC
3504 shift
3505 if test $# != 0; then
3506 # We chose a different compiler from the bogus one.
3507 # However, it has the same basename, so the bogon will be chosen
3508 # first if we set CC to just the basename; use the full file name.
3509 shift
3510 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3511 fi
3512 fi
3513 fi ;;
3514 esac
3515 fi
3516 CC=$ac_cv_prog_CC
3517 if test -n "$CC"; then
3518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3519 printf "%s\n" "$CC" >&6; }
3520 else
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 printf "%s\n" "no" >&6; }
3523 fi
3524
3525
3526 fi
3527 if test -z "$CC"; then
3528 if test -n "$ac_tool_prefix"; then
3529 for ac_prog in cl.exe
3530 do
3531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 printf %s "checking for $ac_word... " >&6; }
3535 if test ${ac_cv_prog_CC+y}
3536 then :
3537 printf %s "(cached) " >&6
3538 else case e in #(
3539 e) if test -n "$CC"; then
3540 ac_cv_prog_CC="$CC" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545 IFS=$as_save_IFS
3546 case $as_dir in #(((
3547 '') as_dir=./ ;;
3548 */) ;;
3549 *) as_dir=$as_dir/ ;;
3550 esac
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3555 break 2
3556 fi
3557 done
3558 done
3559 IFS=$as_save_IFS
3560
3561 fi ;;
3562 esac
3563 fi
3564 CC=$ac_cv_prog_CC
3565 if test -n "$CC"; then
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3567 printf "%s\n" "$CC" >&6; }
3568 else
3569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 printf "%s\n" "no" >&6; }
3571 fi
3572
3573
3574 test -n "$CC" && break
3575 done
3576 fi
3577 if test -z "$CC"; then
3578 ac_ct_CC=$CC
3579 for ac_prog in cl.exe
3580 do
3581 # Extract the first word of "$ac_prog", so it can be a program name with args.
3582 set dummy $ac_prog; ac_word=$2
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3584 printf %s "checking for $ac_word... " >&6; }
3585 if test ${ac_cv_prog_ac_ct_CC+y}
3586 then :
3587 printf %s "(cached) " >&6
3588 else case e in #(
3589 e) if test -n "$ac_ct_CC"; then
3590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3594 do
3595 IFS=$as_save_IFS
3596 case $as_dir in #(((
3597 '') as_dir=./ ;;
3598 */) ;;
3599 *) as_dir=$as_dir/ ;;
3600 esac
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3603 ac_cv_prog_ac_ct_CC="$ac_prog"
3604 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3605 break 2
3606 fi
3607 done
3608 done
3609 IFS=$as_save_IFS
3610
3611 fi ;;
3612 esac
3613 fi
3614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3615 if test -n "$ac_ct_CC"; then
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3617 printf "%s\n" "$ac_ct_CC" >&6; }
3618 else
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 printf "%s\n" "no" >&6; }
3621 fi
3622
3623
3624 test -n "$ac_ct_CC" && break
3625 done
3626
3627 if test "x$ac_ct_CC" = x; then
3628 CC=""
3629 else
3630 case $cross_compiling:$ac_tool_warned in
3631 yes:)
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3633 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3634 ac_tool_warned=yes ;;
3635 esac
3636 CC=$ac_ct_CC
3637 fi
3638 fi
3639
3640 fi
3641 if test -z "$CC"; then
3642 if test -n "$ac_tool_prefix"; then
3643 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3644 set dummy ${ac_tool_prefix}clang; ac_word=$2
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3646 printf %s "checking for $ac_word... " >&6; }
3647 if test ${ac_cv_prog_CC+y}
3648 then :
3649 printf %s "(cached) " >&6
3650 else case e in #(
3651 e) if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3656 do
3657 IFS=$as_save_IFS
3658 case $as_dir in #(((
3659 '') as_dir=./ ;;
3660 */) ;;
3661 *) as_dir=$as_dir/ ;;
3662 esac
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3665 ac_cv_prog_CC="${ac_tool_prefix}clang"
3666 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3667 break 2
3668 fi
3669 done
3670 done
3671 IFS=$as_save_IFS
3672
3673 fi ;;
3674 esac
3675 fi
3676 CC=$ac_cv_prog_CC
3677 if test -n "$CC"; then
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3679 printf "%s\n" "$CC" >&6; }
3680 else
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3682 printf "%s\n" "no" >&6; }
3683 fi
3684
3685
3686 fi
3687 if test -z "$ac_cv_prog_CC"; then
3688 ac_ct_CC=$CC
3689 # Extract the first word of "clang", so it can be a program name with args.
3690 set dummy clang; ac_word=$2
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3692 printf %s "checking for $ac_word... " >&6; }
3693 if test ${ac_cv_prog_ac_ct_CC+y}
3694 then :
3695 printf %s "(cached) " >&6
3696 else case e in #(
3697 e) if test -n "$ac_ct_CC"; then
3698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703 IFS=$as_save_IFS
3704 case $as_dir in #(((
3705 '') as_dir=./ ;;
3706 */) ;;
3707 *) as_dir=$as_dir/ ;;
3708 esac
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3711 ac_cv_prog_ac_ct_CC="clang"
3712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3713 break 2
3714 fi
3715 done
3716 done
3717 IFS=$as_save_IFS
3718
3719 fi ;;
3720 esac
3721 fi
3722 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3723 if test -n "$ac_ct_CC"; then
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3725 printf "%s\n" "$ac_ct_CC" >&6; }
3726 else
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 printf "%s\n" "no" >&6; }
3729 fi
3730
3731 if test "x$ac_ct_CC" = x; then
3732 CC=""
3733 else
3734 case $cross_compiling:$ac_tool_warned in
3735 yes:)
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3737 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3738 ac_tool_warned=yes ;;
3739 esac
3740 CC=$ac_ct_CC
3741 fi
3742 else
3743 CC="$ac_cv_prog_CC"
3744 fi
3745
3746 fi
3747
3748
3749 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3750 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3751 as_fn_error $? "no acceptable C compiler found in \$PATH
3752 See 'config.log' for more details" "$LINENO" 5; }
3753
3754 # Provide some information about the compiler.
3755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3756 set X $ac_compile
3757 ac_compiler=$2
3758 for ac_option in --version -v -V -qversion -version; do
3759 { { ac_try="$ac_compiler $ac_option >&5"
3760 case "(($ac_try" in
3761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3762 *) ac_try_echo=$ac_try;;
3763 esac
3764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3765 printf "%s\n" "$ac_try_echo"; } >&5
3766 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3767 ac_status=$?
3768 if test -s conftest.err; then
3769 sed '10a\
3770 ... rest of stderr output deleted ...
3771 10q' conftest.err >conftest.er1
3772 cat conftest.er1 >&5
3773 fi
3774 rm -f conftest.er1 conftest.err
3775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3776 test $ac_status = 0; }
3777 done
3778
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781
3782 int
3783 main (void)
3784 {
3785
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 ac_clean_files_save=$ac_clean_files
3791 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3792 # Try to create an executable without -o first, disregard a.out.
3793 # It will help us diagnose broken compilers, and finding out an intuition
3794 # of exeext.
3795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3796 printf %s "checking whether the C compiler works... " >&6; }
3797 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3798
3799 # The possible output files:
3800 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3801
3802 ac_rmfiles=
3803 for ac_file in $ac_files
3804 do
3805 case $ac_file in
3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3807 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3808 esac
3809 done
3810 rm -f $ac_rmfiles
3811
3812 if { { ac_try="$ac_link_default"
3813 case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816 esac
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 printf "%s\n" "$ac_try_echo"; } >&5
3819 (eval "$ac_link_default") 2>&5
3820 ac_status=$?
3821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3823 then :
3824 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3825 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3826 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3827 # so that the user can short-circuit this test for compilers unknown to
3828 # Autoconf.
3829 for ac_file in $ac_files ''
3830 do
3831 test -f "$ac_file" || continue
3832 case $ac_file in
3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3834 ;;
3835 [ab].out )
3836 # We found the default executable, but exeext='' is most
3837 # certainly right.
3838 break;;
3839 *.* )
3840 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3841 then :; else
3842 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3843 fi
3844 # We set ac_cv_exeext here because the later test for it is not
3845 # safe: cross compilers may not add the suffix if given an '-o'
3846 # argument, so we may need to know it at that point already.
3847 # Even if this section looks crufty: it has the advantage of
3848 # actually working.
3849 break;;
3850 * )
3851 break;;
3852 esac
3853 done
3854 test "$ac_cv_exeext" = no && ac_cv_exeext=
3855
3856 else case e in #(
3857 e) ac_file='' ;;
3858 esac
3859 fi
3860 if test -z "$ac_file"
3861 then :
3862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3863 printf "%s\n" "no" >&6; }
3864 printf "%s\n" "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3866
3867 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3868 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3869 as_fn_error 77 "C compiler cannot create executables
3870 See 'config.log' for more details" "$LINENO" 5; }
3871 else case e in #(
3872 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3873 printf "%s\n" "yes" >&6; } ;;
3874 esac
3875 fi
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3877 printf %s "checking for C compiler default output file name... " >&6; }
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3879 printf "%s\n" "$ac_file" >&6; }
3880 ac_exeext=$ac_cv_exeext
3881
3882 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3883 ac_clean_files=$ac_clean_files_save
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3885 printf %s "checking for suffix of executables... " >&6; }
3886 if { { 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 then :
3898 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3899 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3900 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3901 # 'rm'.
3902 for ac_file in conftest.exe conftest conftest.*; do
3903 test -f "$ac_file" || continue
3904 case $ac_file in
3905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3907 break;;
3908 * ) break;;
3909 esac
3910 done
3911 else case e in #(
3912 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3913 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3914 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3915 See 'config.log' for more details" "$LINENO" 5; } ;;
3916 esac
3917 fi
3918 rm -f conftest conftest$ac_cv_exeext
3919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3920 printf "%s\n" "$ac_cv_exeext" >&6; }
3921
3922 rm -f conftest.$ac_ext
3923 EXEEXT=$ac_cv_exeext
3924 ac_exeext=$EXEEXT
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927 #include <stdio.h>
3928 int
3929 main (void)
3930 {
3931 FILE *f = fopen ("conftest.out", "w");
3932 if (!f)
3933 return 1;
3934 return ferror (f) || fclose (f) != 0;
3935
3936 ;
3937 return 0;
3938 }
3939 _ACEOF
3940 ac_clean_files="$ac_clean_files conftest.out"
3941 # Check that the compiler produces executables we can run. If not, either
3942 # the compiler is broken, or we cross compile.
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3944 printf %s "checking whether we are cross compiling... " >&6; }
3945 if test "$cross_compiling" != yes; then
3946 { { ac_try="$ac_link"
3947 case "(($ac_try" in
3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3949 *) ac_try_echo=$ac_try;;
3950 esac
3951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3952 printf "%s\n" "$ac_try_echo"; } >&5
3953 (eval "$ac_link") 2>&5
3954 ac_status=$?
3955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }
3957 if { ac_try='./conftest$ac_cv_exeext'
3958 { { case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961 esac
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 printf "%s\n" "$ac_try_echo"; } >&5
3964 (eval "$ac_try") 2>&5
3965 ac_status=$?
3966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; }; then
3968 cross_compiling=no
3969 else
3970 if test "$cross_compiling" = maybe; then
3971 cross_compiling=yes
3972 else
3973 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3974 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3975 as_fn_error 77 "cannot run C compiled programs.
3976 If you meant to cross compile, use '--host'.
3977 See 'config.log' for more details" "$LINENO" 5; }
3978 fi
3979 fi
3980 fi
3981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3982 printf "%s\n" "$cross_compiling" >&6; }
3983
3984 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3985 conftest.o conftest.obj conftest.out
3986 ac_clean_files=$ac_clean_files_save
3987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3988 printf %s "checking for suffix of object files... " >&6; }
3989 if test ${ac_cv_objext+y}
3990 then :
3991 printf %s "(cached) " >&6
3992 else case e in #(
3993 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995
3996 int
3997 main (void)
3998 {
3999
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 rm -f conftest.o conftest.obj
4005 if { { ac_try="$ac_compile"
4006 case "(($ac_try" in
4007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008 *) ac_try_echo=$ac_try;;
4009 esac
4010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011 printf "%s\n" "$ac_try_echo"; } >&5
4012 (eval "$ac_compile") 2>&5
4013 ac_status=$?
4014 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }
4016 then :
4017 for ac_file in conftest.o conftest.obj conftest.*; do
4018 test -f "$ac_file" || continue;
4019 case $ac_file in
4020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4021 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4022 break;;
4023 esac
4024 done
4025 else case e in #(
4026 e) printf "%s\n" "$as_me: failed program was:" >&5
4027 sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4030 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4031 as_fn_error $? "cannot compute suffix of object files: cannot compile
4032 See 'config.log' for more details" "$LINENO" 5; } ;;
4033 esac
4034 fi
4035 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4036 esac
4037 fi
4038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 printf "%s\n" "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4041 ac_objext=$OBJEXT
4042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4043 printf %s "checking whether the compiler supports GNU C... " >&6; }
4044 if test ${ac_cv_c_compiler_gnu+y}
4045 then :
4046 printf %s "(cached) " >&6
4047 else case e in #(
4048 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4050
4051 int
4052 main (void)
4053 {
4054 #ifndef __GNUC__
4055 choke me
4056 #endif
4057
4058 ;
4059 return 0;
4060 }
4061 _ACEOF
4062 if ac_fn_c_try_compile "$LINENO"
4063 then :
4064 ac_compiler_gnu=yes
4065 else case e in #(
4066 e) ac_compiler_gnu=no ;;
4067 esac
4068 fi
4069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4070 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4071 ;;
4072 esac
4073 fi
4074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4075 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077
4078 if test $ac_compiler_gnu = yes; then
4079 GCC=yes
4080 else
4081 GCC=
4082 fi
4083 ac_test_CFLAGS=${CFLAGS+y}
4084 ac_save_CFLAGS=$CFLAGS
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4086 printf %s "checking whether $CC accepts -g... " >&6; }
4087 if test ${ac_cv_prog_cc_g+y}
4088 then :
4089 printf %s "(cached) " >&6
4090 else case e in #(
4091 e) ac_save_c_werror_flag=$ac_c_werror_flag
4092 ac_c_werror_flag=yes
4093 ac_cv_prog_cc_g=no
4094 CFLAGS="-g"
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4097
4098 int
4099 main (void)
4100 {
4101
4102 ;
4103 return 0;
4104 }
4105 _ACEOF
4106 if ac_fn_c_try_compile "$LINENO"
4107 then :
4108 ac_cv_prog_cc_g=yes
4109 else case e in #(
4110 e) CFLAGS=""
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4113
4114 int
4115 main (void)
4116 {
4117
4118 ;
4119 return 0;
4120 }
4121 _ACEOF
4122 if ac_fn_c_try_compile "$LINENO"
4123 then :
4124
4125 else case e in #(
4126 e) ac_c_werror_flag=$ac_save_c_werror_flag
4127 CFLAGS="-g"
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129 /* end confdefs.h. */
4130
4131 int
4132 main (void)
4133 {
4134
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 if ac_fn_c_try_compile "$LINENO"
4140 then :
4141 ac_cv_prog_cc_g=yes
4142 fi
4143 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4144 esac
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4147 esac
4148 fi
4149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4150 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4151 esac
4152 fi
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4154 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4155 if test $ac_test_CFLAGS; then
4156 CFLAGS=$ac_save_CFLAGS
4157 elif test $ac_cv_prog_cc_g = yes; then
4158 if test "$GCC" = yes; then
4159 CFLAGS="-g -O2"
4160 else
4161 CFLAGS="-g"
4162 fi
4163 else
4164 if test "$GCC" = yes; then
4165 CFLAGS="-O2"
4166 else
4167 CFLAGS=
4168 fi
4169 fi
4170 ac_prog_cc_stdc=no
4171 if test x$ac_prog_cc_stdc = xno
4172 then :
4173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4174 printf %s "checking for $CC option to enable C11 features... " >&6; }
4175 if test ${ac_cv_prog_cc_c11+y}
4176 then :
4177 printf %s "(cached) " >&6
4178 else case e in #(
4179 e) ac_cv_prog_cc_c11=no
4180 ac_save_CC=$CC
4181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4182 /* end confdefs.h. */
4183 $ac_c_conftest_c11_program
4184 _ACEOF
4185 for ac_arg in '' -std=gnu11
4186 do
4187 CC="$ac_save_CC $ac_arg"
4188 if ac_fn_c_try_compile "$LINENO"
4189 then :
4190 ac_cv_prog_cc_c11=$ac_arg
4191 fi
4192 rm -f core conftest.err conftest.$ac_objext conftest.beam
4193 test "x$ac_cv_prog_cc_c11" != "xno" && break
4194 done
4195 rm -f conftest.$ac_ext
4196 CC=$ac_save_CC ;;
4197 esac
4198 fi
4199
4200 if test "x$ac_cv_prog_cc_c11" = xno
4201 then :
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4203 printf "%s\n" "unsupported" >&6; }
4204 else case e in #(
4205 e) if test "x$ac_cv_prog_cc_c11" = x
4206 then :
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4208 printf "%s\n" "none needed" >&6; }
4209 else case e in #(
4210 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4211 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4212 CC="$CC $ac_cv_prog_cc_c11" ;;
4213 esac
4214 fi
4215 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4216 ac_prog_cc_stdc=c11 ;;
4217 esac
4218 fi
4219 fi
4220 if test x$ac_prog_cc_stdc = xno
4221 then :
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4223 printf %s "checking for $CC option to enable C99 features... " >&6; }
4224 if test ${ac_cv_prog_cc_c99+y}
4225 then :
4226 printf %s "(cached) " >&6
4227 else case e in #(
4228 e) ac_cv_prog_cc_c99=no
4229 ac_save_CC=$CC
4230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231 /* end confdefs.h. */
4232 $ac_c_conftest_c99_program
4233 _ACEOF
4234 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4235 do
4236 CC="$ac_save_CC $ac_arg"
4237 if ac_fn_c_try_compile "$LINENO"
4238 then :
4239 ac_cv_prog_cc_c99=$ac_arg
4240 fi
4241 rm -f core conftest.err conftest.$ac_objext conftest.beam
4242 test "x$ac_cv_prog_cc_c99" != "xno" && break
4243 done
4244 rm -f conftest.$ac_ext
4245 CC=$ac_save_CC ;;
4246 esac
4247 fi
4248
4249 if test "x$ac_cv_prog_cc_c99" = xno
4250 then :
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4252 printf "%s\n" "unsupported" >&6; }
4253 else case e in #(
4254 e) if test "x$ac_cv_prog_cc_c99" = x
4255 then :
4256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4257 printf "%s\n" "none needed" >&6; }
4258 else case e in #(
4259 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4260 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4261 CC="$CC $ac_cv_prog_cc_c99" ;;
4262 esac
4263 fi
4264 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4265 ac_prog_cc_stdc=c99 ;;
4266 esac
4267 fi
4268 fi
4269 if test x$ac_prog_cc_stdc = xno
4270 then :
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4272 printf %s "checking for $CC option to enable C89 features... " >&6; }
4273 if test ${ac_cv_prog_cc_c89+y}
4274 then :
4275 printf %s "(cached) " >&6
4276 else case e in #(
4277 e) ac_cv_prog_cc_c89=no
4278 ac_save_CC=$CC
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4281 $ac_c_conftest_c89_program
4282 _ACEOF
4283 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4284 do
4285 CC="$ac_save_CC $ac_arg"
4286 if ac_fn_c_try_compile "$LINENO"
4287 then :
4288 ac_cv_prog_cc_c89=$ac_arg
4289 fi
4290 rm -f core conftest.err conftest.$ac_objext conftest.beam
4291 test "x$ac_cv_prog_cc_c89" != "xno" && break
4292 done
4293 rm -f conftest.$ac_ext
4294 CC=$ac_save_CC ;;
4295 esac
4296 fi
4297
4298 if test "x$ac_cv_prog_cc_c89" = xno
4299 then :
4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4301 printf "%s\n" "unsupported" >&6; }
4302 else case e in #(
4303 e) if test "x$ac_cv_prog_cc_c89" = x
4304 then :
4305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4306 printf "%s\n" "none needed" >&6; }
4307 else case e in #(
4308 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4309 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4310 CC="$CC $ac_cv_prog_cc_c89" ;;
4311 esac
4312 fi
4313 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4314 ac_prog_cc_stdc=c89 ;;
4315 esac
4316 fi
4317 fi
4318
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324
4325
4326 ac_ext=c
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4332 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4333 if test ${am_cv_prog_cc_c_o+y}
4334 then :
4335 printf %s "(cached) " >&6
4336 else case e in #(
4337 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4339
4340 int
4341 main (void)
4342 {
4343
4344 ;
4345 return 0;
4346 }
4347 _ACEOF
4348 # Make sure it works both with $CC and with simple cc.
4349 # Following AC_PROG_CC_C_O, we do the test twice because some
4350 # compilers refuse to overwrite an existing .o file with -o,
4351 # though they will create one.
4352 am_cv_prog_cc_c_o=yes
4353 for am_i in 1 2; do
4354 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4355 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4356 ac_status=$?
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } \
4359 && test -f conftest2.$ac_objext; then
4360 : OK
4361 else
4362 am_cv_prog_cc_c_o=no
4363 break
4364 fi
4365 done
4366 rm -f core conftest*
4367 unset am_i ;;
4368 esac
4369 fi
4370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4371 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4372 if test "$am_cv_prog_cc_c_o" != yes; then
4373 # Losing compiler, so override with the script.
4374 # FIXME: It is wrong to rewrite CC.
4375 # But if we don't then we get into trouble of one sort or another.
4376 # A longer-term fix would be to have automake use am__CC in this case,
4377 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4378 CC="$am_aux_dir/compile $CC"
4379 fi
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385
4386
4387 depcc="$CC" am_compiler_list=
4388
4389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4390 printf %s "checking dependency style of $depcc... " >&6; }
4391 if test ${am_cv_CC_dependencies_compiler_type+y}
4392 then :
4393 printf %s "(cached) " >&6
4394 else case e in #(
4395 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4396 # We make a subdir and do the tests there. Otherwise we can end up
4397 # making bogus files that we don't know about and never remove. For
4398 # instance it was reported that on HP-UX the gcc test will end up
4399 # making a dummy file named 'D' -- because '-MD' means "put the output
4400 # in D".
4401 rm -rf conftest.dir
4402 mkdir conftest.dir
4403 # Copy depcomp to subdir because otherwise we won't find it if we're
4404 # using a relative directory.
4405 cp "$am_depcomp" conftest.dir
4406 cd conftest.dir
4407 # We will build objects and dependencies in a subdirectory because
4408 # it helps to detect inapplicable dependency modes. For instance
4409 # both Tru64's cc and ICC support -MD to output dependencies as a
4410 # side effect of compilation, but ICC will put the dependencies in
4411 # the current directory while Tru64 will put them in the object
4412 # directory.
4413 mkdir sub
4414
4415 am_cv_CC_dependencies_compiler_type=none
4416 if test "$am_compiler_list" = ""; then
4417 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4418 fi
4419 am__universal=false
4420 case " $depcc " in #(
4421 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4422 esac
4423
4424 for depmode in $am_compiler_list; do
4425 # Setup a source with many dependencies, because some compilers
4426 # like to wrap large dependency lists on column 80 (with \), and
4427 # we should not choose a depcomp mode which is confused by this.
4428 #
4429 # We need to recreate these files for each test, as the compiler may
4430 # overwrite some of them when testing with obscure command lines.
4431 # This happens at least with the AIX C compiler.
4432 : > sub/conftest.c
4433 for i in 1 2 3 4 5 6; do
4434 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4435 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4436 # Solaris 10 /bin/sh.
4437 echo '/* dummy */' > sub/conftst$i.h
4438 done
4439 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4440
4441 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4442 # mode. It turns out that the SunPro C++ compiler does not properly
4443 # handle '-M -o', and we need to detect this. Also, some Intel
4444 # versions had trouble with output in subdirs.
4445 am__obj=sub/conftest.${OBJEXT-o}
4446 am__minus_obj="-o $am__obj"
4447 case $depmode in
4448 gcc)
4449 # This depmode causes a compiler race in universal mode.
4450 test "$am__universal" = false || continue
4451 ;;
4452 nosideeffect)
4453 # After this tag, mechanisms are not by side-effect, so they'll
4454 # only be used when explicitly requested.
4455 if test "x$enable_dependency_tracking" = xyes; then
4456 continue
4457 else
4458 break
4459 fi
4460 ;;
4461 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4462 # This compiler won't grok '-c -o', but also, the minuso test has
4463 # not run yet. These depmodes are late enough in the game, and
4464 # so weak that their functioning should not be impacted.
4465 am__obj=conftest.${OBJEXT-o}
4466 am__minus_obj=
4467 ;;
4468 none) break ;;
4469 esac
4470 if depmode=$depmode \
4471 source=sub/conftest.c object=$am__obj \
4472 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4473 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4474 >/dev/null 2>conftest.err &&
4475 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4476 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4477 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4478 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4479 # icc doesn't choke on unknown options, it will just issue warnings
4480 # or remarks (even with -Werror). So we grep stderr for any message
4481 # that says an option was ignored or not supported.
4482 # When given -MP, icc 7.0 and 7.1 complain thusly:
4483 # icc: Command line warning: ignoring option '-M'; no argument required
4484 # The diagnosis changed in icc 8.0:
4485 # icc: Command line remark: option '-MP' not supported
4486 if (grep 'ignoring option' conftest.err ||
4487 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4488 am_cv_CC_dependencies_compiler_type=$depmode
4489 break
4490 fi
4491 fi
4492 done
4493
4494 cd ..
4495 rm -rf conftest.dir
4496 else
4497 am_cv_CC_dependencies_compiler_type=none
4498 fi
4499 ;;
4500 esac
4501 fi
4502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4503 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4504 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4505
4506 if
4507 test "x$enable_dependency_tracking" != xno \
4508 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4509 am__fastdepCC_TRUE=
4510 am__fastdepCC_FALSE='#'
4511 else
4512 am__fastdepCC_TRUE='#'
4513 am__fastdepCC_FALSE=
4514 fi
4515
4516
4517
4518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4519 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4520 if test ${ac_cv_c_undeclared_builtin_options+y}
4521 then :
4522 printf %s "(cached) " >&6
4523 else case e in #(
4524 e) ac_save_CFLAGS=$CFLAGS
4525 ac_cv_c_undeclared_builtin_options='cannot detect'
4526 for ac_arg in '' -fno-builtin; do
4527 CFLAGS="$ac_save_CFLAGS $ac_arg"
4528 # This test program should *not* compile successfully.
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4531
4532 int
4533 main (void)
4534 {
4535 (void) strchr;
4536 ;
4537 return 0;
4538 }
4539 _ACEOF
4540 if ac_fn_c_try_compile "$LINENO"
4541 then :
4542
4543 else case e in #(
4544 e) # This test program should compile successfully.
4545 # No library function is consistently available on
4546 # freestanding implementations, so test against a dummy
4547 # declaration. Include always-available headers on the
4548 # off chance that they somehow elicit warnings.
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550 /* end confdefs.h. */
4551 #include <float.h>
4552 #include <limits.h>
4553 #include <stdarg.h>
4554 #include <stddef.h>
4555 extern void ac_decl (int, char *);
4556
4557 int
4558 main (void)
4559 {
4560 (void) ac_decl (0, (char *) 0);
4561 (void) ac_decl;
4562
4563 ;
4564 return 0;
4565 }
4566 _ACEOF
4567 if ac_fn_c_try_compile "$LINENO"
4568 then :
4569 if test x"$ac_arg" = x
4570 then :
4571 ac_cv_c_undeclared_builtin_options='none needed'
4572 else case e in #(
4573 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4574 esac
4575 fi
4576 break
4577 fi
4578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4579 esac
4580 fi
4581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4582 done
4583 CFLAGS=$ac_save_CFLAGS
4584 ;;
4585 esac
4586 fi
4587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4588 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4589 case $ac_cv_c_undeclared_builtin_options in #(
4590 'cannot detect') :
4591 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4592 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4593 as_fn_error $? "cannot make $CC report undeclared builtins
4594 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4595 'none needed') :
4596 ac_c_undeclared_builtin_options='' ;; #(
4597 *) :
4598 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4599 esac
4600
4601 ac_header= ac_cache=
4602 for ac_item in $ac_header_c_list
4603 do
4604 if test $ac_cache; then
4605 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4606 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4607 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4608 fi
4609 ac_header= ac_cache=
4610 elif test $ac_header; then
4611 ac_cache=$ac_item
4612 else
4613 ac_header=$ac_item
4614 fi
4615 done
4616
4617
4618
4619
4620
4621
4622
4623
4624 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4625 then :
4626
4627 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4628
4629 fi
4630
4631
4632
4633
4634 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4635 if test "x$ac_cv_have_decl___clang__" = xyes
4636 then :
4637 CLANGCC="yes"
4638 else case e in #(
4639 e) CLANGCC="no" ;;
4640 esac
4641 fi
4642 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4643 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4644 then :
4645 INTELCC="yes"
4646 else case e in #(
4647 e) INTELCC="no" ;;
4648 esac
4649 fi
4650 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4651 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4652 then :
4653 SUNCC="yes"
4654 else case e in #(
4655 e) SUNCC="no" ;;
4656 esac
4657 fi
4658
4659
4660
4661
4662
4663
4664
4665
4666 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4667 if test -n "$ac_tool_prefix"; then
4668 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4669 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 printf %s "checking for $ac_word... " >&6; }
4672 if test ${ac_cv_path_PKG_CONFIG+y}
4673 then :
4674 printf %s "(cached) " >&6
4675 else case e in #(
4676 e) case $PKG_CONFIG in
4677 [\\/]* | ?:[\\/]*)
4678 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4679 ;;
4680 *)
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4683 do
4684 IFS=$as_save_IFS
4685 case $as_dir in #(((
4686 '') as_dir=./ ;;
4687 */) ;;
4688 *) as_dir=$as_dir/ ;;
4689 esac
4690 for ac_exec_ext in '' $ac_executable_extensions; do
4691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4692 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4694 break 2
4695 fi
4696 done
4697 done
4698 IFS=$as_save_IFS
4699
4700 ;;
4701 esac ;;
4702 esac
4703 fi
4704 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4705 if test -n "$PKG_CONFIG"; then
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4707 printf "%s\n" "$PKG_CONFIG" >&6; }
4708 else
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4710 printf "%s\n" "no" >&6; }
4711 fi
4712
4713
4714 fi
4715 if test -z "$ac_cv_path_PKG_CONFIG"; then
4716 ac_pt_PKG_CONFIG=$PKG_CONFIG
4717 # Extract the first word of "pkg-config", so it can be a program name with args.
4718 set dummy pkg-config; ac_word=$2
4719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4720 printf %s "checking for $ac_word... " >&6; }
4721 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4722 then :
4723 printf %s "(cached) " >&6
4724 else case e in #(
4725 e) case $ac_pt_PKG_CONFIG in
4726 [\\/]* | ?:[\\/]*)
4727 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4728 ;;
4729 *)
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH
4732 do
4733 IFS=$as_save_IFS
4734 case $as_dir in #(((
4735 '') as_dir=./ ;;
4736 */) ;;
4737 *) as_dir=$as_dir/ ;;
4738 esac
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4741 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4743 break 2
4744 fi
4745 done
4746 done
4747 IFS=$as_save_IFS
4748
4749 ;;
4750 esac ;;
4751 esac
4752 fi
4753 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4754 if test -n "$ac_pt_PKG_CONFIG"; then
4755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4756 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4757 else
4758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 printf "%s\n" "no" >&6; }
4760 fi
4761
4762 if test "x$ac_pt_PKG_CONFIG" = x; then
4763 PKG_CONFIG=""
4764 else
4765 case $cross_compiling:$ac_tool_warned in
4766 yes:)
4767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4768 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4769 ac_tool_warned=yes ;;
4770 esac
4771 PKG_CONFIG=$ac_pt_PKG_CONFIG
4772 fi
4773 else
4774 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4775 fi
4776
4777 fi
4778 if test -n "$PKG_CONFIG"; then
4779 _pkg_min_version=0.9.0
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4781 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4782 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4784 printf "%s\n" "yes" >&6; }
4785 else
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4787 printf "%s\n" "no" >&6; }
4788 PKG_CONFIG=""
4789 fi
4790 fi
4791
4792
4793 # Make sure we can run config.sub.
4794 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4795 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4796
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4798 printf %s "checking build system type... " >&6; }
4799 if test ${ac_cv_build+y}
4800 then :
4801 printf %s "(cached) " >&6
4802 else case e in #(
4803 e) ac_build_alias=$build_alias
4804 test "x$ac_build_alias" = x &&
4805 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4806 test "x$ac_build_alias" = x &&
4807 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4808 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4809 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4810 ;;
4811 esac
4812 fi
4813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4814 printf "%s\n" "$ac_cv_build" >&6; }
4815 case $ac_cv_build in
4816 *-*-*) ;;
4817 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4818 esac
4819 build=$ac_cv_build
4820 ac_save_IFS=$IFS; IFS='-'
4821 set x $ac_cv_build
4822 shift
4823 build_cpu=$1
4824 build_vendor=$2
4825 shift; shift
4826 # Remember, the first character of IFS is used to create $*,
4827 # except with old shells:
4828 build_os=$*
4829 IFS=$ac_save_IFS
4830 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4831
4832
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4834 printf %s "checking host system type... " >&6; }
4835 if test ${ac_cv_host+y}
4836 then :
4837 printf %s "(cached) " >&6
4838 else case e in #(
4839 e) if test "x$host_alias" = x; then
4840 ac_cv_host=$ac_cv_build
4841 else
4842 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4843 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4844 fi
4845 ;;
4846 esac
4847 fi
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4849 printf "%s\n" "$ac_cv_host" >&6; }
4850 case $ac_cv_host in
4851 *-*-*) ;;
4852 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4853 esac
4854 host=$ac_cv_host
4855 ac_save_IFS=$IFS; IFS='-'
4856 set x $ac_cv_host
4857 shift
4858 host_cpu=$1
4859 host_vendor=$2
4860 shift; shift
4861 # Remember, the first character of IFS is used to create $*,
4862 # except with old shells:
4863 host_os=$*
4864 IFS=$ac_save_IFS
4865 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4866
4867
4868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4869 printf %s "checking for a sed that does not truncate output... " >&6; }
4870 if test ${ac_cv_path_SED+y}
4871 then :
4872 printf %s "(cached) " >&6
4873 else case e in #(
4874 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4875 for ac_i in 1 2 3 4 5 6 7; do
4876 ac_script="$ac_script$as_nl$ac_script"
4877 done
4878 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4879 { ac_script=; unset ac_script;}
4880 if test -z "$SED"; then
4881 ac_path_SED_found=false
4882 # Loop through the user's path and test for each of PROGNAME-LIST
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4885 do
4886 IFS=$as_save_IFS
4887 case $as_dir in #(((
4888 '') as_dir=./ ;;
4889 */) ;;
4890 *) as_dir=$as_dir/ ;;
4891 esac
4892 for ac_prog in sed gsed
4893 do
4894 for ac_exec_ext in '' $ac_executable_extensions; do
4895 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4896 as_fn_executable_p "$ac_path_SED" || continue
4897 # Check for GNU ac_path_SED and select it if it is found.
4898 # Check for GNU $ac_path_SED
4899 case `"$ac_path_SED" --version 2>&1` in #(
4900 *GNU*)
4901 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4902 #(
4903 *)
4904 ac_count=0
4905 printf %s 0123456789 >"conftest.in"
4906 while :
4907 do
4908 cat "conftest.in" "conftest.in" >"conftest.tmp"
4909 mv "conftest.tmp" "conftest.in"
4910 cp "conftest.in" "conftest.nl"
4911 printf "%s\n" '' >> "conftest.nl"
4912 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4914 as_fn_arith $ac_count + 1 && ac_count=$as_val
4915 if test $ac_count -gt ${ac_path_SED_max-0}; then
4916 # Best one so far, save it but keep looking for a better one
4917 ac_cv_path_SED="$ac_path_SED"
4918 ac_path_SED_max=$ac_count
4919 fi
4920 # 10*(2^10) chars as input seems more than enough
4921 test $ac_count -gt 10 && break
4922 done
4923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4924 esac
4925
4926 $ac_path_SED_found && break 3
4927 done
4928 done
4929 done
4930 IFS=$as_save_IFS
4931 if test -z "$ac_cv_path_SED"; then
4932 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4933 fi
4934 else
4935 ac_cv_path_SED=$SED
4936 fi
4937 ;;
4938 esac
4939 fi
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4941 printf "%s\n" "$ac_cv_path_SED" >&6; }
4942 SED="$ac_cv_path_SED"
4943 rm -f conftest.sed
4944
4945
4946
4947
4948
4949
4950 # Check whether --enable-selective-werror was given.
4951 if test ${enable_selective_werror+y}
4952 then :
4953 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4954 else case e in #(
4955 e) SELECTIVE_WERROR=yes ;;
4956 esac
4957 fi
4958
4959
4960
4961
4962
4963 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4964 if test "x$SUNCC" = "xyes"; then
4965 BASE_CFLAGS="-v"
4966 else
4967 BASE_CFLAGS=""
4968 fi
4969
4970 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984 xorg_testset_save_CFLAGS="$CFLAGS"
4985
4986 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4989 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4990 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4991 then :
4992 printf %s "(cached) " >&6
4993 else case e in #(
4994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 int i;
4997 _ACEOF
4998 if ac_fn_c_try_compile "$LINENO"
4999 then :
5000 xorg_cv_cc_flag_unknown_warning_option=yes
5001 else case e in #(
5002 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5003 esac
5004 fi
5005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5006 esac
5007 fi
5008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5009 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5011 CFLAGS="$xorg_testset_save_CFLAGS"
5012 fi
5013
5014 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5017 fi
5018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5020 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5021 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5022 then :
5023 printf %s "(cached) " >&6
5024 else case e in #(
5025 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5026 /* end confdefs.h. */
5027 int i;
5028 _ACEOF
5029 if ac_fn_c_try_compile "$LINENO"
5030 then :
5031 xorg_cv_cc_flag_unused_command_line_argument=yes
5032 else case e in #(
5033 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5034 esac
5035 fi
5036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5037 esac
5038 fi
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5040 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5041 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5042 CFLAGS="$xorg_testset_save_CFLAGS"
5043 fi
5044
5045 found="no"
5046
5047 if test $found = "no" ; then
5048 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5050 fi
5051
5052 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5053 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5054 fi
5055
5056 CFLAGS="$CFLAGS -Wall"
5057
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5059 printf %s "checking if $CC supports -Wall... " >&6; }
5060 cacheid=xorg_cv_cc_flag__Wall
5061 if eval test \${$cacheid+y}
5062 then :
5063 printf %s "(cached) " >&6
5064 else case e in #(
5065 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5066 /* end confdefs.h. */
5067 int i;
5068 int
5069 main (void)
5070 {
5071
5072 ;
5073 return 0;
5074 }
5075 _ACEOF
5076 if ac_fn_c_try_link "$LINENO"
5077 then :
5078 eval $cacheid=yes
5079 else case e in #(
5080 e) eval $cacheid=no ;;
5081 esac
5082 fi
5083 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5084 conftest$ac_exeext conftest.$ac_ext ;;
5085 esac
5086 fi
5087
5088
5089 CFLAGS="$xorg_testset_save_CFLAGS"
5090
5091 eval supported=\$$cacheid
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5093 printf "%s\n" "$supported" >&6; }
5094 if test "$supported" = "yes" ; then
5095 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5096 found="yes"
5097 fi
5098 fi
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114 xorg_testset_save_CFLAGS="$CFLAGS"
5115
5116 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5119 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5120 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5121 then :
5122 printf %s "(cached) " >&6
5123 else case e in #(
5124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126 int i;
5127 _ACEOF
5128 if ac_fn_c_try_compile "$LINENO"
5129 then :
5130 xorg_cv_cc_flag_unknown_warning_option=yes
5131 else case e in #(
5132 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5133 esac
5134 fi
5135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5136 esac
5137 fi
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5139 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5140 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5141 CFLAGS="$xorg_testset_save_CFLAGS"
5142 fi
5143
5144 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5145 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5146 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5147 fi
5148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5150 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5151 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5152 then :
5153 printf %s "(cached) " >&6
5154 else case e in #(
5155 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156 /* end confdefs.h. */
5157 int i;
5158 _ACEOF
5159 if ac_fn_c_try_compile "$LINENO"
5160 then :
5161 xorg_cv_cc_flag_unused_command_line_argument=yes
5162 else case e in #(
5163 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5164 esac
5165 fi
5166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5167 esac
5168 fi
5169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5170 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5171 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5172 CFLAGS="$xorg_testset_save_CFLAGS"
5173 fi
5174
5175 found="no"
5176
5177 if test $found = "no" ; then
5178 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5180 fi
5181
5182 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5183 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5184 fi
5185
5186 CFLAGS="$CFLAGS -Wpointer-arith"
5187
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5189 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5190 cacheid=xorg_cv_cc_flag__Wpointer_arith
5191 if eval test \${$cacheid+y}
5192 then :
5193 printf %s "(cached) " >&6
5194 else case e in #(
5195 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5197 int i;
5198 int
5199 main (void)
5200 {
5201
5202 ;
5203 return 0;
5204 }
5205 _ACEOF
5206 if ac_fn_c_try_link "$LINENO"
5207 then :
5208 eval $cacheid=yes
5209 else case e in #(
5210 e) eval $cacheid=no ;;
5211 esac
5212 fi
5213 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5214 conftest$ac_exeext conftest.$ac_ext ;;
5215 esac
5216 fi
5217
5218
5219 CFLAGS="$xorg_testset_save_CFLAGS"
5220
5221 eval supported=\$$cacheid
5222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5223 printf "%s\n" "$supported" >&6; }
5224 if test "$supported" = "yes" ; then
5225 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5226 found="yes"
5227 fi
5228 fi
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244 xorg_testset_save_CFLAGS="$CFLAGS"
5245
5246 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5249 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5250 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5251 then :
5252 printf %s "(cached) " >&6
5253 else case e in #(
5254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256 int i;
5257 _ACEOF
5258 if ac_fn_c_try_compile "$LINENO"
5259 then :
5260 xorg_cv_cc_flag_unknown_warning_option=yes
5261 else case e in #(
5262 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5263 esac
5264 fi
5265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5266 esac
5267 fi
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5269 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5270 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5271 CFLAGS="$xorg_testset_save_CFLAGS"
5272 fi
5273
5274 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5277 fi
5278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5280 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5281 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5282 then :
5283 printf %s "(cached) " >&6
5284 else case e in #(
5285 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5287 int i;
5288 _ACEOF
5289 if ac_fn_c_try_compile "$LINENO"
5290 then :
5291 xorg_cv_cc_flag_unused_command_line_argument=yes
5292 else case e in #(
5293 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5294 esac
5295 fi
5296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5297 esac
5298 fi
5299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5300 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5302 CFLAGS="$xorg_testset_save_CFLAGS"
5303 fi
5304
5305 found="no"
5306
5307 if test $found = "no" ; then
5308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5310 fi
5311
5312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5314 fi
5315
5316 CFLAGS="$CFLAGS -Wmissing-declarations"
5317
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5319 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5320 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5321 if eval test \${$cacheid+y}
5322 then :
5323 printf %s "(cached) " >&6
5324 else case e in #(
5325 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5327 int i;
5328 int
5329 main (void)
5330 {
5331
5332 ;
5333 return 0;
5334 }
5335 _ACEOF
5336 if ac_fn_c_try_link "$LINENO"
5337 then :
5338 eval $cacheid=yes
5339 else case e in #(
5340 e) eval $cacheid=no ;;
5341 esac
5342 fi
5343 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5344 conftest$ac_exeext conftest.$ac_ext ;;
5345 esac
5346 fi
5347
5348
5349 CFLAGS="$xorg_testset_save_CFLAGS"
5350
5351 eval supported=\$$cacheid
5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5353 printf "%s\n" "$supported" >&6; }
5354 if test "$supported" = "yes" ; then
5355 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5356 found="yes"
5357 fi
5358 fi
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374 xorg_testset_save_CFLAGS="$CFLAGS"
5375
5376 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5377 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5379 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5380 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5381 then :
5382 printf %s "(cached) " >&6
5383 else case e in #(
5384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386 int i;
5387 _ACEOF
5388 if ac_fn_c_try_compile "$LINENO"
5389 then :
5390 xorg_cv_cc_flag_unknown_warning_option=yes
5391 else case e in #(
5392 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5393 esac
5394 fi
5395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5396 esac
5397 fi
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5399 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5400 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5401 CFLAGS="$xorg_testset_save_CFLAGS"
5402 fi
5403
5404 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407 fi
5408 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5410 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5411 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5412 then :
5413 printf %s "(cached) " >&6
5414 else case e in #(
5415 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 int i;
5418 _ACEOF
5419 if ac_fn_c_try_compile "$LINENO"
5420 then :
5421 xorg_cv_cc_flag_unused_command_line_argument=yes
5422 else case e in #(
5423 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5424 esac
5425 fi
5426 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5427 esac
5428 fi
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5430 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5432 CFLAGS="$xorg_testset_save_CFLAGS"
5433 fi
5434
5435 found="no"
5436
5437 if test $found = "no" ; then
5438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5440 fi
5441
5442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5444 fi
5445
5446 CFLAGS="$CFLAGS -Wformat=2"
5447
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5449 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5450 cacheid=xorg_cv_cc_flag__Wformat_2
5451 if eval test \${$cacheid+y}
5452 then :
5453 printf %s "(cached) " >&6
5454 else case e in #(
5455 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5456 /* end confdefs.h. */
5457 int i;
5458 int
5459 main (void)
5460 {
5461
5462 ;
5463 return 0;
5464 }
5465 _ACEOF
5466 if ac_fn_c_try_link "$LINENO"
5467 then :
5468 eval $cacheid=yes
5469 else case e in #(
5470 e) eval $cacheid=no ;;
5471 esac
5472 fi
5473 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5474 conftest$ac_exeext conftest.$ac_ext ;;
5475 esac
5476 fi
5477
5478
5479 CFLAGS="$xorg_testset_save_CFLAGS"
5480
5481 eval supported=\$$cacheid
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5483 printf "%s\n" "$supported" >&6; }
5484 if test "$supported" = "yes" ; then
5485 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5486 found="yes"
5487 fi
5488 fi
5489
5490 if test $found = "no" ; then
5491 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5493 fi
5494
5495 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5497 fi
5498
5499 CFLAGS="$CFLAGS -Wformat"
5500
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5502 printf %s "checking if $CC supports -Wformat... " >&6; }
5503 cacheid=xorg_cv_cc_flag__Wformat
5504 if eval test \${$cacheid+y}
5505 then :
5506 printf %s "(cached) " >&6
5507 else case e in #(
5508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509 /* end confdefs.h. */
5510 int i;
5511 int
5512 main (void)
5513 {
5514
5515 ;
5516 return 0;
5517 }
5518 _ACEOF
5519 if ac_fn_c_try_link "$LINENO"
5520 then :
5521 eval $cacheid=yes
5522 else case e in #(
5523 e) eval $cacheid=no ;;
5524 esac
5525 fi
5526 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5527 conftest$ac_exeext conftest.$ac_ext ;;
5528 esac
5529 fi
5530
5531
5532 CFLAGS="$xorg_testset_save_CFLAGS"
5533
5534 eval supported=\$$cacheid
5535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5536 printf "%s\n" "$supported" >&6; }
5537 if test "$supported" = "yes" ; then
5538 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5539 found="yes"
5540 fi
5541 fi
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559 xorg_testset_save_CFLAGS="$CFLAGS"
5560
5561 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5564 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5565 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5566 then :
5567 printf %s "(cached) " >&6
5568 else case e in #(
5569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 int i;
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"
5574 then :
5575 xorg_cv_cc_flag_unknown_warning_option=yes
5576 else case e in #(
5577 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5578 esac
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5581 esac
5582 fi
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5584 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5586 CFLAGS="$xorg_testset_save_CFLAGS"
5587 fi
5588
5589 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5592 fi
5593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5595 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5596 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5597 then :
5598 printf %s "(cached) " >&6
5599 else case e in #(
5600 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5601 /* end confdefs.h. */
5602 int i;
5603 _ACEOF
5604 if ac_fn_c_try_compile "$LINENO"
5605 then :
5606 xorg_cv_cc_flag_unused_command_line_argument=yes
5607 else case e in #(
5608 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5609 esac
5610 fi
5611 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5612 esac
5613 fi
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5615 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5617 CFLAGS="$xorg_testset_save_CFLAGS"
5618 fi
5619
5620 found="no"
5621
5622 if test $found = "no" ; then
5623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5625 fi
5626
5627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5629 fi
5630
5631 CFLAGS="$CFLAGS -Wstrict-prototypes"
5632
5633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5634 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5635 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5636 if eval test \${$cacheid+y}
5637 then :
5638 printf %s "(cached) " >&6
5639 else case e in #(
5640 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642 int i;
5643 int
5644 main (void)
5645 {
5646
5647 ;
5648 return 0;
5649 }
5650 _ACEOF
5651 if ac_fn_c_try_link "$LINENO"
5652 then :
5653 eval $cacheid=yes
5654 else case e in #(
5655 e) eval $cacheid=no ;;
5656 esac
5657 fi
5658 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5659 conftest$ac_exeext conftest.$ac_ext ;;
5660 esac
5661 fi
5662
5663
5664 CFLAGS="$xorg_testset_save_CFLAGS"
5665
5666 eval supported=\$$cacheid
5667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5668 printf "%s\n" "$supported" >&6; }
5669 if test "$supported" = "yes" ; then
5670 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5671 found="yes"
5672 fi
5673 fi
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689 xorg_testset_save_CFLAGS="$CFLAGS"
5690
5691 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5694 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5695 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5696 then :
5697 printf %s "(cached) " >&6
5698 else case e in #(
5699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 int i;
5702 _ACEOF
5703 if ac_fn_c_try_compile "$LINENO"
5704 then :
5705 xorg_cv_cc_flag_unknown_warning_option=yes
5706 else case e in #(
5707 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5708 esac
5709 fi
5710 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5711 esac
5712 fi
5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5714 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5716 CFLAGS="$xorg_testset_save_CFLAGS"
5717 fi
5718
5719 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5722 fi
5723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5725 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5726 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5727 then :
5728 printf %s "(cached) " >&6
5729 else case e in #(
5730 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5731 /* end confdefs.h. */
5732 int i;
5733 _ACEOF
5734 if ac_fn_c_try_compile "$LINENO"
5735 then :
5736 xorg_cv_cc_flag_unused_command_line_argument=yes
5737 else case e in #(
5738 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5739 esac
5740 fi
5741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5742 esac
5743 fi
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5745 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5746 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5747 CFLAGS="$xorg_testset_save_CFLAGS"
5748 fi
5749
5750 found="no"
5751
5752 if test $found = "no" ; then
5753 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5754 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5755 fi
5756
5757 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5759 fi
5760
5761 CFLAGS="$CFLAGS -Wmissing-prototypes"
5762
5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5764 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5765 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5766 if eval test \${$cacheid+y}
5767 then :
5768 printf %s "(cached) " >&6
5769 else case e in #(
5770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5771 /* end confdefs.h. */
5772 int i;
5773 int
5774 main (void)
5775 {
5776
5777 ;
5778 return 0;
5779 }
5780 _ACEOF
5781 if ac_fn_c_try_link "$LINENO"
5782 then :
5783 eval $cacheid=yes
5784 else case e in #(
5785 e) eval $cacheid=no ;;
5786 esac
5787 fi
5788 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5789 conftest$ac_exeext conftest.$ac_ext ;;
5790 esac
5791 fi
5792
5793
5794 CFLAGS="$xorg_testset_save_CFLAGS"
5795
5796 eval supported=\$$cacheid
5797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5798 printf "%s\n" "$supported" >&6; }
5799 if test "$supported" = "yes" ; then
5800 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5801 found="yes"
5802 fi
5803 fi
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819 xorg_testset_save_CFLAGS="$CFLAGS"
5820
5821 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5824 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5825 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5826 then :
5827 printf %s "(cached) " >&6
5828 else case e in #(
5829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5831 int i;
5832 _ACEOF
5833 if ac_fn_c_try_compile "$LINENO"
5834 then :
5835 xorg_cv_cc_flag_unknown_warning_option=yes
5836 else case e in #(
5837 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5838 esac
5839 fi
5840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5841 esac
5842 fi
5843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5844 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5846 CFLAGS="$xorg_testset_save_CFLAGS"
5847 fi
5848
5849 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5852 fi
5853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5855 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5856 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5857 then :
5858 printf %s "(cached) " >&6
5859 else case e in #(
5860 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862 int i;
5863 _ACEOF
5864 if ac_fn_c_try_compile "$LINENO"
5865 then :
5866 xorg_cv_cc_flag_unused_command_line_argument=yes
5867 else case e in #(
5868 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5869 esac
5870 fi
5871 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5872 esac
5873 fi
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5875 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5876 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5877 CFLAGS="$xorg_testset_save_CFLAGS"
5878 fi
5879
5880 found="no"
5881
5882 if test $found = "no" ; then
5883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5885 fi
5886
5887 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5889 fi
5890
5891 CFLAGS="$CFLAGS -Wnested-externs"
5892
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5894 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5895 cacheid=xorg_cv_cc_flag__Wnested_externs
5896 if eval test \${$cacheid+y}
5897 then :
5898 printf %s "(cached) " >&6
5899 else case e in #(
5900 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5901 /* end confdefs.h. */
5902 int i;
5903 int
5904 main (void)
5905 {
5906
5907 ;
5908 return 0;
5909 }
5910 _ACEOF
5911 if ac_fn_c_try_link "$LINENO"
5912 then :
5913 eval $cacheid=yes
5914 else case e in #(
5915 e) eval $cacheid=no ;;
5916 esac
5917 fi
5918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5919 conftest$ac_exeext conftest.$ac_ext ;;
5920 esac
5921 fi
5922
5923
5924 CFLAGS="$xorg_testset_save_CFLAGS"
5925
5926 eval supported=\$$cacheid
5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5928 printf "%s\n" "$supported" >&6; }
5929 if test "$supported" = "yes" ; then
5930 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5931 found="yes"
5932 fi
5933 fi
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949 xorg_testset_save_CFLAGS="$CFLAGS"
5950
5951 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5954 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5955 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5956 then :
5957 printf %s "(cached) " >&6
5958 else case e in #(
5959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961 int i;
5962 _ACEOF
5963 if ac_fn_c_try_compile "$LINENO"
5964 then :
5965 xorg_cv_cc_flag_unknown_warning_option=yes
5966 else case e in #(
5967 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5968 esac
5969 fi
5970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5971 esac
5972 fi
5973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5974 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5976 CFLAGS="$xorg_testset_save_CFLAGS"
5977 fi
5978
5979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5982 fi
5983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5985 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5986 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5987 then :
5988 printf %s "(cached) " >&6
5989 else case e in #(
5990 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5991 /* end confdefs.h. */
5992 int i;
5993 _ACEOF
5994 if ac_fn_c_try_compile "$LINENO"
5995 then :
5996 xorg_cv_cc_flag_unused_command_line_argument=yes
5997 else case e in #(
5998 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5999 esac
6000 fi
6001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6002 esac
6003 fi
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6005 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6006 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6007 CFLAGS="$xorg_testset_save_CFLAGS"
6008 fi
6009
6010 found="no"
6011
6012 if test $found = "no" ; then
6013 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6015 fi
6016
6017 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6019 fi
6020
6021 CFLAGS="$CFLAGS -Wbad-function-cast"
6022
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6024 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6025 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6026 if eval test \${$cacheid+y}
6027 then :
6028 printf %s "(cached) " >&6
6029 else case e in #(
6030 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6031 /* end confdefs.h. */
6032 int i;
6033 int
6034 main (void)
6035 {
6036
6037 ;
6038 return 0;
6039 }
6040 _ACEOF
6041 if ac_fn_c_try_link "$LINENO"
6042 then :
6043 eval $cacheid=yes
6044 else case e in #(
6045 e) eval $cacheid=no ;;
6046 esac
6047 fi
6048 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6049 conftest$ac_exeext conftest.$ac_ext ;;
6050 esac
6051 fi
6052
6053
6054 CFLAGS="$xorg_testset_save_CFLAGS"
6055
6056 eval supported=\$$cacheid
6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6058 printf "%s\n" "$supported" >&6; }
6059 if test "$supported" = "yes" ; then
6060 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6061 found="yes"
6062 fi
6063 fi
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079 xorg_testset_save_CFLAGS="$CFLAGS"
6080
6081 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6084 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6085 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6086 then :
6087 printf %s "(cached) " >&6
6088 else case e in #(
6089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 int i;
6092 _ACEOF
6093 if ac_fn_c_try_compile "$LINENO"
6094 then :
6095 xorg_cv_cc_flag_unknown_warning_option=yes
6096 else case e in #(
6097 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6098 esac
6099 fi
6100 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6101 esac
6102 fi
6103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6104 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6105 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6106 CFLAGS="$xorg_testset_save_CFLAGS"
6107 fi
6108
6109 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6112 fi
6113 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6115 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6116 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6117 then :
6118 printf %s "(cached) " >&6
6119 else case e in #(
6120 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h. */
6122 int i;
6123 _ACEOF
6124 if ac_fn_c_try_compile "$LINENO"
6125 then :
6126 xorg_cv_cc_flag_unused_command_line_argument=yes
6127 else case e in #(
6128 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6129 esac
6130 fi
6131 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6132 esac
6133 fi
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6135 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6136 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6137 CFLAGS="$xorg_testset_save_CFLAGS"
6138 fi
6139
6140 found="no"
6141
6142 if test $found = "no" ; then
6143 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6145 fi
6146
6147 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6148 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6149 fi
6150
6151 CFLAGS="$CFLAGS -Wold-style-definition"
6152
6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6154 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6155 cacheid=xorg_cv_cc_flag__Wold_style_definition
6156 if eval test \${$cacheid+y}
6157 then :
6158 printf %s "(cached) " >&6
6159 else case e in #(
6160 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6161 /* end confdefs.h. */
6162 int i;
6163 int
6164 main (void)
6165 {
6166
6167 ;
6168 return 0;
6169 }
6170 _ACEOF
6171 if ac_fn_c_try_link "$LINENO"
6172 then :
6173 eval $cacheid=yes
6174 else case e in #(
6175 e) eval $cacheid=no ;;
6176 esac
6177 fi
6178 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6179 conftest$ac_exeext conftest.$ac_ext ;;
6180 esac
6181 fi
6182
6183
6184 CFLAGS="$xorg_testset_save_CFLAGS"
6185
6186 eval supported=\$$cacheid
6187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6188 printf "%s\n" "$supported" >&6; }
6189 if test "$supported" = "yes" ; then
6190 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6191 found="yes"
6192 fi
6193 fi
6194
6195 if test $found = "no" ; then
6196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6198 fi
6199
6200 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6201 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6202 fi
6203
6204 CFLAGS="$CFLAGS -fd"
6205
6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6207 printf %s "checking if $CC supports -fd... " >&6; }
6208 cacheid=xorg_cv_cc_flag__fd
6209 if eval test \${$cacheid+y}
6210 then :
6211 printf %s "(cached) " >&6
6212 else case e in #(
6213 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214 /* end confdefs.h. */
6215 int i;
6216 int
6217 main (void)
6218 {
6219
6220 ;
6221 return 0;
6222 }
6223 _ACEOF
6224 if ac_fn_c_try_link "$LINENO"
6225 then :
6226 eval $cacheid=yes
6227 else case e in #(
6228 e) eval $cacheid=no ;;
6229 esac
6230 fi
6231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6232 conftest$ac_exeext conftest.$ac_ext ;;
6233 esac
6234 fi
6235
6236
6237 CFLAGS="$xorg_testset_save_CFLAGS"
6238
6239 eval supported=\$$cacheid
6240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6241 printf "%s\n" "$supported" >&6; }
6242 if test "$supported" = "yes" ; then
6243 BASE_CFLAGS="$BASE_CFLAGS -fd"
6244 found="yes"
6245 fi
6246 fi
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262 xorg_testset_save_CFLAGS="$CFLAGS"
6263
6264 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6267 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6268 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6269 then :
6270 printf %s "(cached) " >&6
6271 else case e in #(
6272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 int i;
6275 _ACEOF
6276 if ac_fn_c_try_compile "$LINENO"
6277 then :
6278 xorg_cv_cc_flag_unknown_warning_option=yes
6279 else case e in #(
6280 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6281 esac
6282 fi
6283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6284 esac
6285 fi
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6287 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6288 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6289 CFLAGS="$xorg_testset_save_CFLAGS"
6290 fi
6291
6292 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6295 fi
6296 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6298 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6299 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6300 then :
6301 printf %s "(cached) " >&6
6302 else case e in #(
6303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6304 /* end confdefs.h. */
6305 int i;
6306 _ACEOF
6307 if ac_fn_c_try_compile "$LINENO"
6308 then :
6309 xorg_cv_cc_flag_unused_command_line_argument=yes
6310 else case e in #(
6311 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6312 esac
6313 fi
6314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6315 esac
6316 fi
6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6318 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6320 CFLAGS="$xorg_testset_save_CFLAGS"
6321 fi
6322
6323 found="no"
6324
6325 if test $found = "no" ; then
6326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6328 fi
6329
6330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6332 fi
6333
6334 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6335
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6337 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6338 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6339 if eval test \${$cacheid+y}
6340 then :
6341 printf %s "(cached) " >&6
6342 else case e in #(
6343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6344 /* end confdefs.h. */
6345 int i;
6346 int
6347 main (void)
6348 {
6349
6350 ;
6351 return 0;
6352 }
6353 _ACEOF
6354 if ac_fn_c_try_link "$LINENO"
6355 then :
6356 eval $cacheid=yes
6357 else case e in #(
6358 e) eval $cacheid=no ;;
6359 esac
6360 fi
6361 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6362 conftest$ac_exeext conftest.$ac_ext ;;
6363 esac
6364 fi
6365
6366
6367 CFLAGS="$xorg_testset_save_CFLAGS"
6368
6369 eval supported=\$$cacheid
6370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6371 printf "%s\n" "$supported" >&6; }
6372 if test "$supported" = "yes" ; then
6373 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6374 found="yes"
6375 fi
6376 fi
6377
6378
6379
6380
6381
6382 # This chunk adds additional warnings that could catch undesired effects.
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396 xorg_testset_save_CFLAGS="$CFLAGS"
6397
6398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6401 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6402 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6403 then :
6404 printf %s "(cached) " >&6
6405 else case e in #(
6406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408 int i;
6409 _ACEOF
6410 if ac_fn_c_try_compile "$LINENO"
6411 then :
6412 xorg_cv_cc_flag_unknown_warning_option=yes
6413 else case e in #(
6414 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6415 esac
6416 fi
6417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6418 esac
6419 fi
6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6421 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6423 CFLAGS="$xorg_testset_save_CFLAGS"
6424 fi
6425
6426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6429 fi
6430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6432 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6433 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6434 then :
6435 printf %s "(cached) " >&6
6436 else case e in #(
6437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6439 int i;
6440 _ACEOF
6441 if ac_fn_c_try_compile "$LINENO"
6442 then :
6443 xorg_cv_cc_flag_unused_command_line_argument=yes
6444 else case e in #(
6445 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6446 esac
6447 fi
6448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6449 esac
6450 fi
6451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6452 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6454 CFLAGS="$xorg_testset_save_CFLAGS"
6455 fi
6456
6457 found="no"
6458
6459 if test $found = "no" ; then
6460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6462 fi
6463
6464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6466 fi
6467
6468 CFLAGS="$CFLAGS -Wunused"
6469
6470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6471 printf %s "checking if $CC supports -Wunused... " >&6; }
6472 cacheid=xorg_cv_cc_flag__Wunused
6473 if eval test \${$cacheid+y}
6474 then :
6475 printf %s "(cached) " >&6
6476 else case e in #(
6477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6478 /* end confdefs.h. */
6479 int i;
6480 int
6481 main (void)
6482 {
6483
6484 ;
6485 return 0;
6486 }
6487 _ACEOF
6488 if ac_fn_c_try_link "$LINENO"
6489 then :
6490 eval $cacheid=yes
6491 else case e in #(
6492 e) eval $cacheid=no ;;
6493 esac
6494 fi
6495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6496 conftest$ac_exeext conftest.$ac_ext ;;
6497 esac
6498 fi
6499
6500
6501 CFLAGS="$xorg_testset_save_CFLAGS"
6502
6503 eval supported=\$$cacheid
6504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6505 printf "%s\n" "$supported" >&6; }
6506 if test "$supported" = "yes" ; then
6507 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6508 found="yes"
6509 fi
6510 fi
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526 xorg_testset_save_CFLAGS="$CFLAGS"
6527
6528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6531 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6532 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6533 then :
6534 printf %s "(cached) " >&6
6535 else case e in #(
6536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 int i;
6539 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"
6541 then :
6542 xorg_cv_cc_flag_unknown_warning_option=yes
6543 else case e in #(
6544 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6545 esac
6546 fi
6547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6548 esac
6549 fi
6550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6551 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6553 CFLAGS="$xorg_testset_save_CFLAGS"
6554 fi
6555
6556 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6559 fi
6560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6562 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6563 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6564 then :
6565 printf %s "(cached) " >&6
6566 else case e in #(
6567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568 /* end confdefs.h. */
6569 int i;
6570 _ACEOF
6571 if ac_fn_c_try_compile "$LINENO"
6572 then :
6573 xorg_cv_cc_flag_unused_command_line_argument=yes
6574 else case e in #(
6575 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6576 esac
6577 fi
6578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6579 esac
6580 fi
6581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6582 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6584 CFLAGS="$xorg_testset_save_CFLAGS"
6585 fi
6586
6587 found="no"
6588
6589 if test $found = "no" ; then
6590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6592 fi
6593
6594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6596 fi
6597
6598 CFLAGS="$CFLAGS -Wuninitialized"
6599
6600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6601 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6602 cacheid=xorg_cv_cc_flag__Wuninitialized
6603 if eval test \${$cacheid+y}
6604 then :
6605 printf %s "(cached) " >&6
6606 else case e in #(
6607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6608 /* end confdefs.h. */
6609 int i;
6610 int
6611 main (void)
6612 {
6613
6614 ;
6615 return 0;
6616 }
6617 _ACEOF
6618 if ac_fn_c_try_link "$LINENO"
6619 then :
6620 eval $cacheid=yes
6621 else case e in #(
6622 e) eval $cacheid=no ;;
6623 esac
6624 fi
6625 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6626 conftest$ac_exeext conftest.$ac_ext ;;
6627 esac
6628 fi
6629
6630
6631 CFLAGS="$xorg_testset_save_CFLAGS"
6632
6633 eval supported=\$$cacheid
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6635 printf "%s\n" "$supported" >&6; }
6636 if test "$supported" = "yes" ; then
6637 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6638 found="yes"
6639 fi
6640 fi
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656 xorg_testset_save_CFLAGS="$CFLAGS"
6657
6658 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6661 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6662 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6663 then :
6664 printf %s "(cached) " >&6
6665 else case e in #(
6666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6668 int i;
6669 _ACEOF
6670 if ac_fn_c_try_compile "$LINENO"
6671 then :
6672 xorg_cv_cc_flag_unknown_warning_option=yes
6673 else case e in #(
6674 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6675 esac
6676 fi
6677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6678 esac
6679 fi
6680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6681 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6683 CFLAGS="$xorg_testset_save_CFLAGS"
6684 fi
6685
6686 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6689 fi
6690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6692 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6693 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6694 then :
6695 printf %s "(cached) " >&6
6696 else case e in #(
6697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6698 /* end confdefs.h. */
6699 int i;
6700 _ACEOF
6701 if ac_fn_c_try_compile "$LINENO"
6702 then :
6703 xorg_cv_cc_flag_unused_command_line_argument=yes
6704 else case e in #(
6705 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6706 esac
6707 fi
6708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6709 esac
6710 fi
6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6712 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6714 CFLAGS="$xorg_testset_save_CFLAGS"
6715 fi
6716
6717 found="no"
6718
6719 if test $found = "no" ; then
6720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6722 fi
6723
6724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6726 fi
6727
6728 CFLAGS="$CFLAGS -Wshadow"
6729
6730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6731 printf %s "checking if $CC supports -Wshadow... " >&6; }
6732 cacheid=xorg_cv_cc_flag__Wshadow
6733 if eval test \${$cacheid+y}
6734 then :
6735 printf %s "(cached) " >&6
6736 else case e in #(
6737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738 /* end confdefs.h. */
6739 int i;
6740 int
6741 main (void)
6742 {
6743
6744 ;
6745 return 0;
6746 }
6747 _ACEOF
6748 if ac_fn_c_try_link "$LINENO"
6749 then :
6750 eval $cacheid=yes
6751 else case e in #(
6752 e) eval $cacheid=no ;;
6753 esac
6754 fi
6755 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6756 conftest$ac_exeext conftest.$ac_ext ;;
6757 esac
6758 fi
6759
6760
6761 CFLAGS="$xorg_testset_save_CFLAGS"
6762
6763 eval supported=\$$cacheid
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6765 printf "%s\n" "$supported" >&6; }
6766 if test "$supported" = "yes" ; then
6767 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6768 found="yes"
6769 fi
6770 fi
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786 xorg_testset_save_CFLAGS="$CFLAGS"
6787
6788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6791 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6792 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6793 then :
6794 printf %s "(cached) " >&6
6795 else case e in #(
6796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798 int i;
6799 _ACEOF
6800 if ac_fn_c_try_compile "$LINENO"
6801 then :
6802 xorg_cv_cc_flag_unknown_warning_option=yes
6803 else case e in #(
6804 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6805 esac
6806 fi
6807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6808 esac
6809 fi
6810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6811 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6813 CFLAGS="$xorg_testset_save_CFLAGS"
6814 fi
6815
6816 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6819 fi
6820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6822 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6823 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6824 then :
6825 printf %s "(cached) " >&6
6826 else case e in #(
6827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6828 /* end confdefs.h. */
6829 int i;
6830 _ACEOF
6831 if ac_fn_c_try_compile "$LINENO"
6832 then :
6833 xorg_cv_cc_flag_unused_command_line_argument=yes
6834 else case e in #(
6835 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6836 esac
6837 fi
6838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6839 esac
6840 fi
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6842 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6844 CFLAGS="$xorg_testset_save_CFLAGS"
6845 fi
6846
6847 found="no"
6848
6849 if test $found = "no" ; then
6850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6852 fi
6853
6854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6856 fi
6857
6858 CFLAGS="$CFLAGS -Wmissing-noreturn"
6859
6860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6861 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6862 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6863 if eval test \${$cacheid+y}
6864 then :
6865 printf %s "(cached) " >&6
6866 else case e in #(
6867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6869 int i;
6870 int
6871 main (void)
6872 {
6873
6874 ;
6875 return 0;
6876 }
6877 _ACEOF
6878 if ac_fn_c_try_link "$LINENO"
6879 then :
6880 eval $cacheid=yes
6881 else case e in #(
6882 e) eval $cacheid=no ;;
6883 esac
6884 fi
6885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6886 conftest$ac_exeext conftest.$ac_ext ;;
6887 esac
6888 fi
6889
6890
6891 CFLAGS="$xorg_testset_save_CFLAGS"
6892
6893 eval supported=\$$cacheid
6894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6895 printf "%s\n" "$supported" >&6; }
6896 if test "$supported" = "yes" ; then
6897 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6898 found="yes"
6899 fi
6900 fi
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916 xorg_testset_save_CFLAGS="$CFLAGS"
6917
6918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6921 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6922 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6923 then :
6924 printf %s "(cached) " >&6
6925 else case e in #(
6926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928 int i;
6929 _ACEOF
6930 if ac_fn_c_try_compile "$LINENO"
6931 then :
6932 xorg_cv_cc_flag_unknown_warning_option=yes
6933 else case e in #(
6934 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6935 esac
6936 fi
6937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6938 esac
6939 fi
6940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6941 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6943 CFLAGS="$xorg_testset_save_CFLAGS"
6944 fi
6945
6946 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6949 fi
6950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6952 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6953 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6954 then :
6955 printf %s "(cached) " >&6
6956 else case e in #(
6957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h. */
6959 int i;
6960 _ACEOF
6961 if ac_fn_c_try_compile "$LINENO"
6962 then :
6963 xorg_cv_cc_flag_unused_command_line_argument=yes
6964 else case e in #(
6965 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6966 esac
6967 fi
6968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6969 esac
6970 fi
6971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6972 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6974 CFLAGS="$xorg_testset_save_CFLAGS"
6975 fi
6976
6977 found="no"
6978
6979 if test $found = "no" ; then
6980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6982 fi
6983
6984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6986 fi
6987
6988 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6989
6990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6991 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6992 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6993 if eval test \${$cacheid+y}
6994 then :
6995 printf %s "(cached) " >&6
6996 else case e in #(
6997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6998 /* end confdefs.h. */
6999 int i;
7000 int
7001 main (void)
7002 {
7003
7004 ;
7005 return 0;
7006 }
7007 _ACEOF
7008 if ac_fn_c_try_link "$LINENO"
7009 then :
7010 eval $cacheid=yes
7011 else case e in #(
7012 e) eval $cacheid=no ;;
7013 esac
7014 fi
7015 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7016 conftest$ac_exeext conftest.$ac_ext ;;
7017 esac
7018 fi
7019
7020
7021 CFLAGS="$xorg_testset_save_CFLAGS"
7022
7023 eval supported=\$$cacheid
7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7025 printf "%s\n" "$supported" >&6; }
7026 if test "$supported" = "yes" ; then
7027 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7028 found="yes"
7029 fi
7030 fi
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046 xorg_testset_save_CFLAGS="$CFLAGS"
7047
7048 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7051 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7052 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7053 then :
7054 printf %s "(cached) " >&6
7055 else case e in #(
7056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058 int i;
7059 _ACEOF
7060 if ac_fn_c_try_compile "$LINENO"
7061 then :
7062 xorg_cv_cc_flag_unknown_warning_option=yes
7063 else case e in #(
7064 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7065 esac
7066 fi
7067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7068 esac
7069 fi
7070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7071 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7073 CFLAGS="$xorg_testset_save_CFLAGS"
7074 fi
7075
7076 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7079 fi
7080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7082 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7083 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7084 then :
7085 printf %s "(cached) " >&6
7086 else case e in #(
7087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7089 int i;
7090 _ACEOF
7091 if ac_fn_c_try_compile "$LINENO"
7092 then :
7093 xorg_cv_cc_flag_unused_command_line_argument=yes
7094 else case e in #(
7095 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7096 esac
7097 fi
7098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7099 esac
7100 fi
7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7102 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7104 CFLAGS="$xorg_testset_save_CFLAGS"
7105 fi
7106
7107 found="no"
7108
7109 if test $found = "no" ; then
7110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7112 fi
7113
7114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7116 fi
7117
7118 CFLAGS="$CFLAGS -Wredundant-decls"
7119
7120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7121 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7122 cacheid=xorg_cv_cc_flag__Wredundant_decls
7123 if eval test \${$cacheid+y}
7124 then :
7125 printf %s "(cached) " >&6
7126 else case e in #(
7127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7129 int i;
7130 int
7131 main (void)
7132 {
7133
7134 ;
7135 return 0;
7136 }
7137 _ACEOF
7138 if ac_fn_c_try_link "$LINENO"
7139 then :
7140 eval $cacheid=yes
7141 else case e in #(
7142 e) eval $cacheid=no ;;
7143 esac
7144 fi
7145 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7146 conftest$ac_exeext conftest.$ac_ext ;;
7147 esac
7148 fi
7149
7150
7151 CFLAGS="$xorg_testset_save_CFLAGS"
7152
7153 eval supported=\$$cacheid
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7155 printf "%s\n" "$supported" >&6; }
7156 if test "$supported" = "yes" ; then
7157 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7158 found="yes"
7159 fi
7160 fi
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176 xorg_testset_save_CFLAGS="$CFLAGS"
7177
7178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7181 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7182 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7183 then :
7184 printf %s "(cached) " >&6
7185 else case e in #(
7186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7188 int i;
7189 _ACEOF
7190 if ac_fn_c_try_compile "$LINENO"
7191 then :
7192 xorg_cv_cc_flag_unknown_warning_option=yes
7193 else case e in #(
7194 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7195 esac
7196 fi
7197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7198 esac
7199 fi
7200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7201 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7203 CFLAGS="$xorg_testset_save_CFLAGS"
7204 fi
7205
7206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7209 fi
7210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7212 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7213 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7214 then :
7215 printf %s "(cached) " >&6
7216 else case e in #(
7217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7219 int i;
7220 _ACEOF
7221 if ac_fn_c_try_compile "$LINENO"
7222 then :
7223 xorg_cv_cc_flag_unused_command_line_argument=yes
7224 else case e in #(
7225 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7226 esac
7227 fi
7228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7229 esac
7230 fi
7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7232 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7234 CFLAGS="$xorg_testset_save_CFLAGS"
7235 fi
7236
7237 found="no"
7238
7239 if test $found = "no" ; then
7240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7242 fi
7243
7244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7246 fi
7247
7248 CFLAGS="$CFLAGS -Wlogical-op"
7249
7250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7251 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7252 cacheid=xorg_cv_cc_flag__Wlogical_op
7253 if eval test \${$cacheid+y}
7254 then :
7255 printf %s "(cached) " >&6
7256 else case e in #(
7257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259 int i;
7260 int
7261 main (void)
7262 {
7263
7264 ;
7265 return 0;
7266 }
7267 _ACEOF
7268 if ac_fn_c_try_link "$LINENO"
7269 then :
7270 eval $cacheid=yes
7271 else case e in #(
7272 e) eval $cacheid=no ;;
7273 esac
7274 fi
7275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7276 conftest$ac_exeext conftest.$ac_ext ;;
7277 esac
7278 fi
7279
7280
7281 CFLAGS="$xorg_testset_save_CFLAGS"
7282
7283 eval supported=\$$cacheid
7284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7285 printf "%s\n" "$supported" >&6; }
7286 if test "$supported" = "yes" ; then
7287 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7288 found="yes"
7289 fi
7290 fi
7291
7292
7293
7294 # These are currently disabled because they are noisy. They will be enabled
7295 # in the future once the codebase is sufficiently modernized to silence
7296 # them. For now, I don't want them to drown out the other warnings.
7297 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7298 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7299 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7300
7301 # Turn some warnings into errors, so we don't accidentally get successful builds
7302 # when there are problems that should be fixed.
7303
7304 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318 xorg_testset_save_CFLAGS="$CFLAGS"
7319
7320 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7321 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7323 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7324 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7325 then :
7326 printf %s "(cached) " >&6
7327 else case e in #(
7328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330 int i;
7331 _ACEOF
7332 if ac_fn_c_try_compile "$LINENO"
7333 then :
7334 xorg_cv_cc_flag_unknown_warning_option=yes
7335 else case e in #(
7336 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7337 esac
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7340 esac
7341 fi
7342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7343 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7344 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7345 CFLAGS="$xorg_testset_save_CFLAGS"
7346 fi
7347
7348 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7349 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7351 fi
7352 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7354 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7355 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7356 then :
7357 printf %s "(cached) " >&6
7358 else case e in #(
7359 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7361 int i;
7362 _ACEOF
7363 if ac_fn_c_try_compile "$LINENO"
7364 then :
7365 xorg_cv_cc_flag_unused_command_line_argument=yes
7366 else case e in #(
7367 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7368 esac
7369 fi
7370 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7371 esac
7372 fi
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7374 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7376 CFLAGS="$xorg_testset_save_CFLAGS"
7377 fi
7378
7379 found="no"
7380
7381 if test $found = "no" ; then
7382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7383 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7384 fi
7385
7386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7388 fi
7389
7390 CFLAGS="$CFLAGS -Werror=implicit"
7391
7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7393 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7394 cacheid=xorg_cv_cc_flag__Werror_implicit
7395 if eval test \${$cacheid+y}
7396 then :
7397 printf %s "(cached) " >&6
7398 else case e in #(
7399 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400 /* end confdefs.h. */
7401 int i;
7402 int
7403 main (void)
7404 {
7405
7406 ;
7407 return 0;
7408 }
7409 _ACEOF
7410 if ac_fn_c_try_link "$LINENO"
7411 then :
7412 eval $cacheid=yes
7413 else case e in #(
7414 e) eval $cacheid=no ;;
7415 esac
7416 fi
7417 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7418 conftest$ac_exeext conftest.$ac_ext ;;
7419 esac
7420 fi
7421
7422
7423 CFLAGS="$xorg_testset_save_CFLAGS"
7424
7425 eval supported=\$$cacheid
7426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7427 printf "%s\n" "$supported" >&6; }
7428 if test "$supported" = "yes" ; then
7429 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7430 found="yes"
7431 fi
7432 fi
7433
7434 if test $found = "no" ; then
7435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7437 fi
7438
7439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7441 fi
7442
7443 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7444
7445 { 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
7446 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7447 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7448 if eval test \${$cacheid+y}
7449 then :
7450 printf %s "(cached) " >&6
7451 else case e in #(
7452 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 int i;
7455 int
7456 main (void)
7457 {
7458
7459 ;
7460 return 0;
7461 }
7462 _ACEOF
7463 if ac_fn_c_try_link "$LINENO"
7464 then :
7465 eval $cacheid=yes
7466 else case e in #(
7467 e) eval $cacheid=no ;;
7468 esac
7469 fi
7470 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7471 conftest$ac_exeext conftest.$ac_ext ;;
7472 esac
7473 fi
7474
7475
7476 CFLAGS="$xorg_testset_save_CFLAGS"
7477
7478 eval supported=\$$cacheid
7479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7480 printf "%s\n" "$supported" >&6; }
7481 if test "$supported" = "yes" ; then
7482 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7483 found="yes"
7484 fi
7485 fi
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501 xorg_testset_save_CFLAGS="$CFLAGS"
7502
7503 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7504 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7506 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7507 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7508 then :
7509 printf %s "(cached) " >&6
7510 else case e in #(
7511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7513 int i;
7514 _ACEOF
7515 if ac_fn_c_try_compile "$LINENO"
7516 then :
7517 xorg_cv_cc_flag_unknown_warning_option=yes
7518 else case e in #(
7519 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7520 esac
7521 fi
7522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7523 esac
7524 fi
7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7526 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7527 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7528 CFLAGS="$xorg_testset_save_CFLAGS"
7529 fi
7530
7531 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7532 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7534 fi
7535 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7537 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7538 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7539 then :
7540 printf %s "(cached) " >&6
7541 else case e in #(
7542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7543 /* end confdefs.h. */
7544 int i;
7545 _ACEOF
7546 if ac_fn_c_try_compile "$LINENO"
7547 then :
7548 xorg_cv_cc_flag_unused_command_line_argument=yes
7549 else case e in #(
7550 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7551 esac
7552 fi
7553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7554 esac
7555 fi
7556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7557 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7558 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7559 CFLAGS="$xorg_testset_save_CFLAGS"
7560 fi
7561
7562 found="no"
7563
7564 if test $found = "no" ; then
7565 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7567 fi
7568
7569 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7570 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7571 fi
7572
7573 CFLAGS="$CFLAGS -Werror=nonnull"
7574
7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7576 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7577 cacheid=xorg_cv_cc_flag__Werror_nonnull
7578 if eval test \${$cacheid+y}
7579 then :
7580 printf %s "(cached) " >&6
7581 else case e in #(
7582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 /* end confdefs.h. */
7584 int i;
7585 int
7586 main (void)
7587 {
7588
7589 ;
7590 return 0;
7591 }
7592 _ACEOF
7593 if ac_fn_c_try_link "$LINENO"
7594 then :
7595 eval $cacheid=yes
7596 else case e in #(
7597 e) eval $cacheid=no ;;
7598 esac
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7601 conftest$ac_exeext conftest.$ac_ext ;;
7602 esac
7603 fi
7604
7605
7606 CFLAGS="$xorg_testset_save_CFLAGS"
7607
7608 eval supported=\$$cacheid
7609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7610 printf "%s\n" "$supported" >&6; }
7611 if test "$supported" = "yes" ; then
7612 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7613 found="yes"
7614 fi
7615 fi
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631 xorg_testset_save_CFLAGS="$CFLAGS"
7632
7633 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7636 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7637 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7638 then :
7639 printf %s "(cached) " >&6
7640 else case e in #(
7641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7643 int i;
7644 _ACEOF
7645 if ac_fn_c_try_compile "$LINENO"
7646 then :
7647 xorg_cv_cc_flag_unknown_warning_option=yes
7648 else case e in #(
7649 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7650 esac
7651 fi
7652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7653 esac
7654 fi
7655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7656 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7658 CFLAGS="$xorg_testset_save_CFLAGS"
7659 fi
7660
7661 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7664 fi
7665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7667 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7668 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7669 then :
7670 printf %s "(cached) " >&6
7671 else case e in #(
7672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7674 int i;
7675 _ACEOF
7676 if ac_fn_c_try_compile "$LINENO"
7677 then :
7678 xorg_cv_cc_flag_unused_command_line_argument=yes
7679 else case e in #(
7680 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7681 esac
7682 fi
7683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7684 esac
7685 fi
7686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7687 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7689 CFLAGS="$xorg_testset_save_CFLAGS"
7690 fi
7691
7692 found="no"
7693
7694 if test $found = "no" ; then
7695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7697 fi
7698
7699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7701 fi
7702
7703 CFLAGS="$CFLAGS -Werror=init-self"
7704
7705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7706 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7707 cacheid=xorg_cv_cc_flag__Werror_init_self
7708 if eval test \${$cacheid+y}
7709 then :
7710 printf %s "(cached) " >&6
7711 else case e in #(
7712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7714 int i;
7715 int
7716 main (void)
7717 {
7718
7719 ;
7720 return 0;
7721 }
7722 _ACEOF
7723 if ac_fn_c_try_link "$LINENO"
7724 then :
7725 eval $cacheid=yes
7726 else case e in #(
7727 e) eval $cacheid=no ;;
7728 esac
7729 fi
7730 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7731 conftest$ac_exeext conftest.$ac_ext ;;
7732 esac
7733 fi
7734
7735
7736 CFLAGS="$xorg_testset_save_CFLAGS"
7737
7738 eval supported=\$$cacheid
7739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7740 printf "%s\n" "$supported" >&6; }
7741 if test "$supported" = "yes" ; then
7742 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7743 found="yes"
7744 fi
7745 fi
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761 xorg_testset_save_CFLAGS="$CFLAGS"
7762
7763 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7764 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7766 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7767 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7768 then :
7769 printf %s "(cached) " >&6
7770 else case e in #(
7771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773 int i;
7774 _ACEOF
7775 if ac_fn_c_try_compile "$LINENO"
7776 then :
7777 xorg_cv_cc_flag_unknown_warning_option=yes
7778 else case e in #(
7779 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7780 esac
7781 fi
7782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7783 esac
7784 fi
7785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7786 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7787 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7788 CFLAGS="$xorg_testset_save_CFLAGS"
7789 fi
7790
7791 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7792 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7794 fi
7795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7797 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7798 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7799 then :
7800 printf %s "(cached) " >&6
7801 else case e in #(
7802 e) 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_unused_command_line_argument=yes
7809 else case e in #(
7810 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7811 esac
7812 fi
7813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7814 esac
7815 fi
7816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7817 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7818 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7819 CFLAGS="$xorg_testset_save_CFLAGS"
7820 fi
7821
7822 found="no"
7823
7824 if test $found = "no" ; then
7825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7826 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7827 fi
7828
7829 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7831 fi
7832
7833 CFLAGS="$CFLAGS -Werror=main"
7834
7835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7836 printf %s "checking if $CC supports -Werror=main... " >&6; }
7837 cacheid=xorg_cv_cc_flag__Werror_main
7838 if eval test \${$cacheid+y}
7839 then :
7840 printf %s "(cached) " >&6
7841 else case e in #(
7842 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7844 int i;
7845 int
7846 main (void)
7847 {
7848
7849 ;
7850 return 0;
7851 }
7852 _ACEOF
7853 if ac_fn_c_try_link "$LINENO"
7854 then :
7855 eval $cacheid=yes
7856 else case e in #(
7857 e) eval $cacheid=no ;;
7858 esac
7859 fi
7860 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7861 conftest$ac_exeext conftest.$ac_ext ;;
7862 esac
7863 fi
7864
7865
7866 CFLAGS="$xorg_testset_save_CFLAGS"
7867
7868 eval supported=\$$cacheid
7869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7870 printf "%s\n" "$supported" >&6; }
7871 if test "$supported" = "yes" ; then
7872 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7873 found="yes"
7874 fi
7875 fi
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891 xorg_testset_save_CFLAGS="$CFLAGS"
7892
7893 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7896 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7897 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7898 then :
7899 printf %s "(cached) " >&6
7900 else case e in #(
7901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7903 int i;
7904 _ACEOF
7905 if ac_fn_c_try_compile "$LINENO"
7906 then :
7907 xorg_cv_cc_flag_unknown_warning_option=yes
7908 else case e in #(
7909 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7910 esac
7911 fi
7912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7913 esac
7914 fi
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7916 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7918 CFLAGS="$xorg_testset_save_CFLAGS"
7919 fi
7920
7921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7924 fi
7925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7927 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7928 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7929 then :
7930 printf %s "(cached) " >&6
7931 else case e in #(
7932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933 /* end confdefs.h. */
7934 int i;
7935 _ACEOF
7936 if ac_fn_c_try_compile "$LINENO"
7937 then :
7938 xorg_cv_cc_flag_unused_command_line_argument=yes
7939 else case e in #(
7940 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7941 esac
7942 fi
7943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7944 esac
7945 fi
7946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7947 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7948 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7949 CFLAGS="$xorg_testset_save_CFLAGS"
7950 fi
7951
7952 found="no"
7953
7954 if test $found = "no" ; then
7955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957 fi
7958
7959 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7961 fi
7962
7963 CFLAGS="$CFLAGS -Werror=missing-braces"
7964
7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7966 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7967 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7968 if eval test \${$cacheid+y}
7969 then :
7970 printf %s "(cached) " >&6
7971 else case e in #(
7972 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7974 int i;
7975 int
7976 main (void)
7977 {
7978
7979 ;
7980 return 0;
7981 }
7982 _ACEOF
7983 if ac_fn_c_try_link "$LINENO"
7984 then :
7985 eval $cacheid=yes
7986 else case e in #(
7987 e) eval $cacheid=no ;;
7988 esac
7989 fi
7990 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7991 conftest$ac_exeext conftest.$ac_ext ;;
7992 esac
7993 fi
7994
7995
7996 CFLAGS="$xorg_testset_save_CFLAGS"
7997
7998 eval supported=\$$cacheid
7999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8000 printf "%s\n" "$supported" >&6; }
8001 if test "$supported" = "yes" ; then
8002 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8003 found="yes"
8004 fi
8005 fi
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021 xorg_testset_save_CFLAGS="$CFLAGS"
8022
8023 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8026 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8027 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8028 then :
8029 printf %s "(cached) " >&6
8030 else case e in #(
8031 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8033 int i;
8034 _ACEOF
8035 if ac_fn_c_try_compile "$LINENO"
8036 then :
8037 xorg_cv_cc_flag_unknown_warning_option=yes
8038 else case e in #(
8039 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8040 esac
8041 fi
8042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8043 esac
8044 fi
8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8046 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8047 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8048 CFLAGS="$xorg_testset_save_CFLAGS"
8049 fi
8050
8051 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8054 fi
8055 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8057 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8058 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8059 then :
8060 printf %s "(cached) " >&6
8061 else case e in #(
8062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8064 int i;
8065 _ACEOF
8066 if ac_fn_c_try_compile "$LINENO"
8067 then :
8068 xorg_cv_cc_flag_unused_command_line_argument=yes
8069 else case e in #(
8070 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8071 esac
8072 fi
8073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8074 esac
8075 fi
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8077 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8078 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8079 CFLAGS="$xorg_testset_save_CFLAGS"
8080 fi
8081
8082 found="no"
8083
8084 if test $found = "no" ; then
8085 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8087 fi
8088
8089 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8091 fi
8092
8093 CFLAGS="$CFLAGS -Werror=sequence-point"
8094
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8096 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8097 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8098 if eval test \${$cacheid+y}
8099 then :
8100 printf %s "(cached) " >&6
8101 else case e in #(
8102 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8103 /* end confdefs.h. */
8104 int i;
8105 int
8106 main (void)
8107 {
8108
8109 ;
8110 return 0;
8111 }
8112 _ACEOF
8113 if ac_fn_c_try_link "$LINENO"
8114 then :
8115 eval $cacheid=yes
8116 else case e in #(
8117 e) eval $cacheid=no ;;
8118 esac
8119 fi
8120 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8121 conftest$ac_exeext conftest.$ac_ext ;;
8122 esac
8123 fi
8124
8125
8126 CFLAGS="$xorg_testset_save_CFLAGS"
8127
8128 eval supported=\$$cacheid
8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8130 printf "%s\n" "$supported" >&6; }
8131 if test "$supported" = "yes" ; then
8132 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8133 found="yes"
8134 fi
8135 fi
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 xorg_testset_save_CFLAGS="$CFLAGS"
8152
8153 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8156 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8157 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8158 then :
8159 printf %s "(cached) " >&6
8160 else case e in #(
8161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 int i;
8164 _ACEOF
8165 if ac_fn_c_try_compile "$LINENO"
8166 then :
8167 xorg_cv_cc_flag_unknown_warning_option=yes
8168 else case e in #(
8169 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8170 esac
8171 fi
8172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8173 esac
8174 fi
8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8176 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8178 CFLAGS="$xorg_testset_save_CFLAGS"
8179 fi
8180
8181 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8184 fi
8185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8187 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8188 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8189 then :
8190 printf %s "(cached) " >&6
8191 else case e in #(
8192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 int i;
8195 _ACEOF
8196 if ac_fn_c_try_compile "$LINENO"
8197 then :
8198 xorg_cv_cc_flag_unused_command_line_argument=yes
8199 else case e in #(
8200 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8201 esac
8202 fi
8203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8204 esac
8205 fi
8206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8207 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8209 CFLAGS="$xorg_testset_save_CFLAGS"
8210 fi
8211
8212 found="no"
8213
8214 if test $found = "no" ; then
8215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8217 fi
8218
8219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8221 fi
8222
8223 CFLAGS="$CFLAGS -Werror=return-type"
8224
8225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8226 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8227 cacheid=xorg_cv_cc_flag__Werror_return_type
8228 if eval test \${$cacheid+y}
8229 then :
8230 printf %s "(cached) " >&6
8231 else case e in #(
8232 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8234 int i;
8235 int
8236 main (void)
8237 {
8238
8239 ;
8240 return 0;
8241 }
8242 _ACEOF
8243 if ac_fn_c_try_link "$LINENO"
8244 then :
8245 eval $cacheid=yes
8246 else case e in #(
8247 e) eval $cacheid=no ;;
8248 esac
8249 fi
8250 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8251 conftest$ac_exeext conftest.$ac_ext ;;
8252 esac
8253 fi
8254
8255
8256 CFLAGS="$xorg_testset_save_CFLAGS"
8257
8258 eval supported=\$$cacheid
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8260 printf "%s\n" "$supported" >&6; }
8261 if test "$supported" = "yes" ; then
8262 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8263 found="yes"
8264 fi
8265 fi
8266
8267 if test $found = "no" ; then
8268 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8270 fi
8271
8272 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8274 fi
8275
8276 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8277
8278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8279 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8280 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8281 if eval test \${$cacheid+y}
8282 then :
8283 printf %s "(cached) " >&6
8284 else case e in #(
8285 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8286 /* end confdefs.h. */
8287 int i;
8288 int
8289 main (void)
8290 {
8291
8292 ;
8293 return 0;
8294 }
8295 _ACEOF
8296 if ac_fn_c_try_link "$LINENO"
8297 then :
8298 eval $cacheid=yes
8299 else case e in #(
8300 e) eval $cacheid=no ;;
8301 esac
8302 fi
8303 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8304 conftest$ac_exeext conftest.$ac_ext ;;
8305 esac
8306 fi
8307
8308
8309 CFLAGS="$xorg_testset_save_CFLAGS"
8310
8311 eval supported=\$$cacheid
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8313 printf "%s\n" "$supported" >&6; }
8314 if test "$supported" = "yes" ; then
8315 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8316 found="yes"
8317 fi
8318 fi
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334 xorg_testset_save_CFLAGS="$CFLAGS"
8335
8336 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8339 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8340 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8341 then :
8342 printf %s "(cached) " >&6
8343 else case e in #(
8344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h. */
8346 int i;
8347 _ACEOF
8348 if ac_fn_c_try_compile "$LINENO"
8349 then :
8350 xorg_cv_cc_flag_unknown_warning_option=yes
8351 else case e in #(
8352 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8353 esac
8354 fi
8355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8356 esac
8357 fi
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8359 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8360 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8361 CFLAGS="$xorg_testset_save_CFLAGS"
8362 fi
8363
8364 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8365 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8367 fi
8368 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8370 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8371 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8372 then :
8373 printf %s "(cached) " >&6
8374 else case e in #(
8375 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8376 /* end confdefs.h. */
8377 int i;
8378 _ACEOF
8379 if ac_fn_c_try_compile "$LINENO"
8380 then :
8381 xorg_cv_cc_flag_unused_command_line_argument=yes
8382 else case e in #(
8383 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8384 esac
8385 fi
8386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8387 esac
8388 fi
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8390 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8391 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8392 CFLAGS="$xorg_testset_save_CFLAGS"
8393 fi
8394
8395 found="no"
8396
8397 if test $found = "no" ; then
8398 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8400 fi
8401
8402 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8403 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8404 fi
8405
8406 CFLAGS="$CFLAGS -Werror=trigraphs"
8407
8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8409 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8410 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8411 if eval test \${$cacheid+y}
8412 then :
8413 printf %s "(cached) " >&6
8414 else case e in #(
8415 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8416 /* end confdefs.h. */
8417 int i;
8418 int
8419 main (void)
8420 {
8421
8422 ;
8423 return 0;
8424 }
8425 _ACEOF
8426 if ac_fn_c_try_link "$LINENO"
8427 then :
8428 eval $cacheid=yes
8429 else case e in #(
8430 e) eval $cacheid=no ;;
8431 esac
8432 fi
8433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8434 conftest$ac_exeext conftest.$ac_ext ;;
8435 esac
8436 fi
8437
8438
8439 CFLAGS="$xorg_testset_save_CFLAGS"
8440
8441 eval supported=\$$cacheid
8442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8443 printf "%s\n" "$supported" >&6; }
8444 if test "$supported" = "yes" ; then
8445 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8446 found="yes"
8447 fi
8448 fi
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464 xorg_testset_save_CFLAGS="$CFLAGS"
8465
8466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8469 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8470 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8471 then :
8472 printf %s "(cached) " >&6
8473 else case e in #(
8474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 int i;
8477 _ACEOF
8478 if ac_fn_c_try_compile "$LINENO"
8479 then :
8480 xorg_cv_cc_flag_unknown_warning_option=yes
8481 else case e in #(
8482 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8483 esac
8484 fi
8485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8486 esac
8487 fi
8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8489 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8490 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8491 CFLAGS="$xorg_testset_save_CFLAGS"
8492 fi
8493
8494 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8495 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8497 fi
8498 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8500 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8501 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8502 then :
8503 printf %s "(cached) " >&6
8504 else case e in #(
8505 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h. */
8507 int i;
8508 _ACEOF
8509 if ac_fn_c_try_compile "$LINENO"
8510 then :
8511 xorg_cv_cc_flag_unused_command_line_argument=yes
8512 else case e in #(
8513 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8514 esac
8515 fi
8516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8517 esac
8518 fi
8519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8520 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8521 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8522 CFLAGS="$xorg_testset_save_CFLAGS"
8523 fi
8524
8525 found="no"
8526
8527 if test $found = "no" ; then
8528 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8530 fi
8531
8532 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8534 fi
8535
8536 CFLAGS="$CFLAGS -Werror=array-bounds"
8537
8538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8539 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8540 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8541 if eval test \${$cacheid+y}
8542 then :
8543 printf %s "(cached) " >&6
8544 else case e in #(
8545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8546 /* end confdefs.h. */
8547 int i;
8548 int
8549 main (void)
8550 {
8551
8552 ;
8553 return 0;
8554 }
8555 _ACEOF
8556 if ac_fn_c_try_link "$LINENO"
8557 then :
8558 eval $cacheid=yes
8559 else case e in #(
8560 e) eval $cacheid=no ;;
8561 esac
8562 fi
8563 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8564 conftest$ac_exeext conftest.$ac_ext ;;
8565 esac
8566 fi
8567
8568
8569 CFLAGS="$xorg_testset_save_CFLAGS"
8570
8571 eval supported=\$$cacheid
8572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8573 printf "%s\n" "$supported" >&6; }
8574 if test "$supported" = "yes" ; then
8575 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8576 found="yes"
8577 fi
8578 fi
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594 xorg_testset_save_CFLAGS="$CFLAGS"
8595
8596 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8599 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8600 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8601 then :
8602 printf %s "(cached) " >&6
8603 else case e in #(
8604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 int i;
8607 _ACEOF
8608 if ac_fn_c_try_compile "$LINENO"
8609 then :
8610 xorg_cv_cc_flag_unknown_warning_option=yes
8611 else case e in #(
8612 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8613 esac
8614 fi
8615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8616 esac
8617 fi
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8619 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8620 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8621 CFLAGS="$xorg_testset_save_CFLAGS"
8622 fi
8623
8624 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8627 fi
8628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8630 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8631 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8632 then :
8633 printf %s "(cached) " >&6
8634 else case e in #(
8635 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8637 int i;
8638 _ACEOF
8639 if ac_fn_c_try_compile "$LINENO"
8640 then :
8641 xorg_cv_cc_flag_unused_command_line_argument=yes
8642 else case e in #(
8643 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8644 esac
8645 fi
8646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8647 esac
8648 fi
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8650 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8652 CFLAGS="$xorg_testset_save_CFLAGS"
8653 fi
8654
8655 found="no"
8656
8657 if test $found = "no" ; then
8658 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8660 fi
8661
8662 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8664 fi
8665
8666 CFLAGS="$CFLAGS -Werror=write-strings"
8667
8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8669 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8670 cacheid=xorg_cv_cc_flag__Werror_write_strings
8671 if eval test \${$cacheid+y}
8672 then :
8673 printf %s "(cached) " >&6
8674 else case e in #(
8675 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8676 /* end confdefs.h. */
8677 int i;
8678 int
8679 main (void)
8680 {
8681
8682 ;
8683 return 0;
8684 }
8685 _ACEOF
8686 if ac_fn_c_try_link "$LINENO"
8687 then :
8688 eval $cacheid=yes
8689 else case e in #(
8690 e) eval $cacheid=no ;;
8691 esac
8692 fi
8693 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8694 conftest$ac_exeext conftest.$ac_ext ;;
8695 esac
8696 fi
8697
8698
8699 CFLAGS="$xorg_testset_save_CFLAGS"
8700
8701 eval supported=\$$cacheid
8702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8703 printf "%s\n" "$supported" >&6; }
8704 if test "$supported" = "yes" ; then
8705 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8706 found="yes"
8707 fi
8708 fi
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724 xorg_testset_save_CFLAGS="$CFLAGS"
8725
8726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8729 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8730 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8731 then :
8732 printf %s "(cached) " >&6
8733 else case e in #(
8734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8736 int i;
8737 _ACEOF
8738 if ac_fn_c_try_compile "$LINENO"
8739 then :
8740 xorg_cv_cc_flag_unknown_warning_option=yes
8741 else case e in #(
8742 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8743 esac
8744 fi
8745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8746 esac
8747 fi
8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8749 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8750 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8751 CFLAGS="$xorg_testset_save_CFLAGS"
8752 fi
8753
8754 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8755 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8757 fi
8758 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8760 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8761 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8762 then :
8763 printf %s "(cached) " >&6
8764 else case e in #(
8765 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8766 /* end confdefs.h. */
8767 int i;
8768 _ACEOF
8769 if ac_fn_c_try_compile "$LINENO"
8770 then :
8771 xorg_cv_cc_flag_unused_command_line_argument=yes
8772 else case e in #(
8773 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8774 esac
8775 fi
8776 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8777 esac
8778 fi
8779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8780 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8781 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8782 CFLAGS="$xorg_testset_save_CFLAGS"
8783 fi
8784
8785 found="no"
8786
8787 if test $found = "no" ; then
8788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8790 fi
8791
8792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8794 fi
8795
8796 CFLAGS="$CFLAGS -Werror=address"
8797
8798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8799 printf %s "checking if $CC supports -Werror=address... " >&6; }
8800 cacheid=xorg_cv_cc_flag__Werror_address
8801 if eval test \${$cacheid+y}
8802 then :
8803 printf %s "(cached) " >&6
8804 else case e in #(
8805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806 /* end confdefs.h. */
8807 int i;
8808 int
8809 main (void)
8810 {
8811
8812 ;
8813 return 0;
8814 }
8815 _ACEOF
8816 if ac_fn_c_try_link "$LINENO"
8817 then :
8818 eval $cacheid=yes
8819 else case e in #(
8820 e) eval $cacheid=no ;;
8821 esac
8822 fi
8823 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8824 conftest$ac_exeext conftest.$ac_ext ;;
8825 esac
8826 fi
8827
8828
8829 CFLAGS="$xorg_testset_save_CFLAGS"
8830
8831 eval supported=\$$cacheid
8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8833 printf "%s\n" "$supported" >&6; }
8834 if test "$supported" = "yes" ; then
8835 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8836 found="yes"
8837 fi
8838 fi
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854 xorg_testset_save_CFLAGS="$CFLAGS"
8855
8856 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8859 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8860 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8861 then :
8862 printf %s "(cached) " >&6
8863 else case e in #(
8864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866 int i;
8867 _ACEOF
8868 if ac_fn_c_try_compile "$LINENO"
8869 then :
8870 xorg_cv_cc_flag_unknown_warning_option=yes
8871 else case e in #(
8872 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8873 esac
8874 fi
8875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8876 esac
8877 fi
8878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8879 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8881 CFLAGS="$xorg_testset_save_CFLAGS"
8882 fi
8883
8884 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8887 fi
8888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8890 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8891 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8892 then :
8893 printf %s "(cached) " >&6
8894 else case e in #(
8895 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8897 int i;
8898 _ACEOF
8899 if ac_fn_c_try_compile "$LINENO"
8900 then :
8901 xorg_cv_cc_flag_unused_command_line_argument=yes
8902 else case e in #(
8903 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8904 esac
8905 fi
8906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8907 esac
8908 fi
8909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8910 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8911 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8912 CFLAGS="$xorg_testset_save_CFLAGS"
8913 fi
8914
8915 found="no"
8916
8917 if test $found = "no" ; then
8918 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8920 fi
8921
8922 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8923 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8924 fi
8925
8926 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8927
8928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8929 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8930 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8931 if eval test \${$cacheid+y}
8932 then :
8933 printf %s "(cached) " >&6
8934 else case e in #(
8935 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 /* end confdefs.h. */
8937 int i;
8938 int
8939 main (void)
8940 {
8941
8942 ;
8943 return 0;
8944 }
8945 _ACEOF
8946 if ac_fn_c_try_link "$LINENO"
8947 then :
8948 eval $cacheid=yes
8949 else case e in #(
8950 e) eval $cacheid=no ;;
8951 esac
8952 fi
8953 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8954 conftest$ac_exeext conftest.$ac_ext ;;
8955 esac
8956 fi
8957
8958
8959 CFLAGS="$xorg_testset_save_CFLAGS"
8960
8961 eval supported=\$$cacheid
8962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8963 printf "%s\n" "$supported" >&6; }
8964 if test "$supported" = "yes" ; then
8965 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8966 found="yes"
8967 fi
8968 fi
8969
8970 if test $found = "no" ; then
8971 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8972 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8973 fi
8974
8975 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8976 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8977 fi
8978
8979 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8980
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8982 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8983 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8984 if eval test \${$cacheid+y}
8985 then :
8986 printf %s "(cached) " >&6
8987 else case e in #(
8988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989 /* end confdefs.h. */
8990 int i;
8991 int
8992 main (void)
8993 {
8994
8995 ;
8996 return 0;
8997 }
8998 _ACEOF
8999 if ac_fn_c_try_link "$LINENO"
9000 then :
9001 eval $cacheid=yes
9002 else case e in #(
9003 e) eval $cacheid=no ;;
9004 esac
9005 fi
9006 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9007 conftest$ac_exeext conftest.$ac_ext ;;
9008 esac
9009 fi
9010
9011
9012 CFLAGS="$xorg_testset_save_CFLAGS"
9013
9014 eval supported=\$$cacheid
9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9016 printf "%s\n" "$supported" >&6; }
9017 if test "$supported" = "yes" ; then
9018 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9019 found="yes"
9020 fi
9021 fi
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037 xorg_testset_save_CFLAGS="$CFLAGS"
9038
9039 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9042 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9043 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9044 then :
9045 printf %s "(cached) " >&6
9046 else case e in #(
9047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9049 int i;
9050 _ACEOF
9051 if ac_fn_c_try_compile "$LINENO"
9052 then :
9053 xorg_cv_cc_flag_unknown_warning_option=yes
9054 else case e in #(
9055 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9056 esac
9057 fi
9058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9059 esac
9060 fi
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9062 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9063 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9064 CFLAGS="$xorg_testset_save_CFLAGS"
9065 fi
9066
9067 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9068 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9069 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9070 fi
9071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9073 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9074 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9075 then :
9076 printf %s "(cached) " >&6
9077 else case e in #(
9078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9079 /* end confdefs.h. */
9080 int i;
9081 _ACEOF
9082 if ac_fn_c_try_compile "$LINENO"
9083 then :
9084 xorg_cv_cc_flag_unused_command_line_argument=yes
9085 else case e in #(
9086 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9087 esac
9088 fi
9089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9090 esac
9091 fi
9092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9093 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9095 CFLAGS="$xorg_testset_save_CFLAGS"
9096 fi
9097
9098 found="no"
9099
9100 if test $found = "no" ; then
9101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9103 fi
9104
9105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9107 fi
9108
9109 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9110
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9112 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9113 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9114 if eval test \${$cacheid+y}
9115 then :
9116 printf %s "(cached) " >&6
9117 else case e in #(
9118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9120 int i;
9121 int
9122 main (void)
9123 {
9124
9125 ;
9126 return 0;
9127 }
9128 _ACEOF
9129 if ac_fn_c_try_link "$LINENO"
9130 then :
9131 eval $cacheid=yes
9132 else case e in #(
9133 e) eval $cacheid=no ;;
9134 esac
9135 fi
9136 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9137 conftest$ac_exeext conftest.$ac_ext ;;
9138 esac
9139 fi
9140
9141
9142 CFLAGS="$xorg_testset_save_CFLAGS"
9143
9144 eval supported=\$$cacheid
9145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9146 printf "%s\n" "$supported" >&6; }
9147 if test "$supported" = "yes" ; then
9148 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9149 found="yes"
9150 fi
9151 fi
9152
9153 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9154 else
9155 { 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
9156 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;}
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170 xorg_testset_save_CFLAGS="$CFLAGS"
9171
9172 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9175 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9176 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9177 then :
9178 printf %s "(cached) " >&6
9179 else case e in #(
9180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h. */
9182 int i;
9183 _ACEOF
9184 if ac_fn_c_try_compile "$LINENO"
9185 then :
9186 xorg_cv_cc_flag_unknown_warning_option=yes
9187 else case e in #(
9188 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9189 esac
9190 fi
9191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9192 esac
9193 fi
9194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9195 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9197 CFLAGS="$xorg_testset_save_CFLAGS"
9198 fi
9199
9200 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9203 fi
9204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9206 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9207 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9208 then :
9209 printf %s "(cached) " >&6
9210 else case e in #(
9211 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9212 /* end confdefs.h. */
9213 int i;
9214 _ACEOF
9215 if ac_fn_c_try_compile "$LINENO"
9216 then :
9217 xorg_cv_cc_flag_unused_command_line_argument=yes
9218 else case e in #(
9219 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9220 esac
9221 fi
9222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9223 esac
9224 fi
9225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9226 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9227 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9228 CFLAGS="$xorg_testset_save_CFLAGS"
9229 fi
9230
9231 found="no"
9232
9233 if test $found = "no" ; then
9234 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9236 fi
9237
9238 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9239 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9240 fi
9241
9242 CFLAGS="$CFLAGS -Wimplicit"
9243
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9245 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9246 cacheid=xorg_cv_cc_flag__Wimplicit
9247 if eval test \${$cacheid+y}
9248 then :
9249 printf %s "(cached) " >&6
9250 else case e in #(
9251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 int i;
9254 int
9255 main (void)
9256 {
9257
9258 ;
9259 return 0;
9260 }
9261 _ACEOF
9262 if ac_fn_c_try_link "$LINENO"
9263 then :
9264 eval $cacheid=yes
9265 else case e in #(
9266 e) eval $cacheid=no ;;
9267 esac
9268 fi
9269 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9270 conftest$ac_exeext conftest.$ac_ext ;;
9271 esac
9272 fi
9273
9274
9275 CFLAGS="$xorg_testset_save_CFLAGS"
9276
9277 eval supported=\$$cacheid
9278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9279 printf "%s\n" "$supported" >&6; }
9280 if test "$supported" = "yes" ; then
9281 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9282 found="yes"
9283 fi
9284 fi
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300 xorg_testset_save_CFLAGS="$CFLAGS"
9301
9302 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9305 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9306 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9307 then :
9308 printf %s "(cached) " >&6
9309 else case e in #(
9310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311 /* end confdefs.h. */
9312 int i;
9313 _ACEOF
9314 if ac_fn_c_try_compile "$LINENO"
9315 then :
9316 xorg_cv_cc_flag_unknown_warning_option=yes
9317 else case e in #(
9318 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9319 esac
9320 fi
9321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9322 esac
9323 fi
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9325 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9326 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9327 CFLAGS="$xorg_testset_save_CFLAGS"
9328 fi
9329
9330 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9331 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9333 fi
9334 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9336 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9337 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9338 then :
9339 printf %s "(cached) " >&6
9340 else case e in #(
9341 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9342 /* end confdefs.h. */
9343 int i;
9344 _ACEOF
9345 if ac_fn_c_try_compile "$LINENO"
9346 then :
9347 xorg_cv_cc_flag_unused_command_line_argument=yes
9348 else case e in #(
9349 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9350 esac
9351 fi
9352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9353 esac
9354 fi
9355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9356 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9357 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9358 CFLAGS="$xorg_testset_save_CFLAGS"
9359 fi
9360
9361 found="no"
9362
9363 if test $found = "no" ; then
9364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9366 fi
9367
9368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9370 fi
9371
9372 CFLAGS="$CFLAGS -Wnonnull"
9373
9374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9375 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9376 cacheid=xorg_cv_cc_flag__Wnonnull
9377 if eval test \${$cacheid+y}
9378 then :
9379 printf %s "(cached) " >&6
9380 else case e in #(
9381 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382 /* end confdefs.h. */
9383 int i;
9384 int
9385 main (void)
9386 {
9387
9388 ;
9389 return 0;
9390 }
9391 _ACEOF
9392 if ac_fn_c_try_link "$LINENO"
9393 then :
9394 eval $cacheid=yes
9395 else case e in #(
9396 e) eval $cacheid=no ;;
9397 esac
9398 fi
9399 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9400 conftest$ac_exeext conftest.$ac_ext ;;
9401 esac
9402 fi
9403
9404
9405 CFLAGS="$xorg_testset_save_CFLAGS"
9406
9407 eval supported=\$$cacheid
9408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9409 printf "%s\n" "$supported" >&6; }
9410 if test "$supported" = "yes" ; then
9411 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9412 found="yes"
9413 fi
9414 fi
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430 xorg_testset_save_CFLAGS="$CFLAGS"
9431
9432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9435 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9436 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9437 then :
9438 printf %s "(cached) " >&6
9439 else case e in #(
9440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441 /* end confdefs.h. */
9442 int i;
9443 _ACEOF
9444 if ac_fn_c_try_compile "$LINENO"
9445 then :
9446 xorg_cv_cc_flag_unknown_warning_option=yes
9447 else case e in #(
9448 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9449 esac
9450 fi
9451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9452 esac
9453 fi
9454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9455 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9457 CFLAGS="$xorg_testset_save_CFLAGS"
9458 fi
9459
9460 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9463 fi
9464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9466 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9467 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9468 then :
9469 printf %s "(cached) " >&6
9470 else case e in #(
9471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9472 /* end confdefs.h. */
9473 int i;
9474 _ACEOF
9475 if ac_fn_c_try_compile "$LINENO"
9476 then :
9477 xorg_cv_cc_flag_unused_command_line_argument=yes
9478 else case e in #(
9479 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9480 esac
9481 fi
9482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9483 esac
9484 fi
9485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9486 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9488 CFLAGS="$xorg_testset_save_CFLAGS"
9489 fi
9490
9491 found="no"
9492
9493 if test $found = "no" ; then
9494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9496 fi
9497
9498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9500 fi
9501
9502 CFLAGS="$CFLAGS -Winit-self"
9503
9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9505 printf %s "checking if $CC supports -Winit-self... " >&6; }
9506 cacheid=xorg_cv_cc_flag__Winit_self
9507 if eval test \${$cacheid+y}
9508 then :
9509 printf %s "(cached) " >&6
9510 else case e in #(
9511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9512 /* end confdefs.h. */
9513 int i;
9514 int
9515 main (void)
9516 {
9517
9518 ;
9519 return 0;
9520 }
9521 _ACEOF
9522 if ac_fn_c_try_link "$LINENO"
9523 then :
9524 eval $cacheid=yes
9525 else case e in #(
9526 e) eval $cacheid=no ;;
9527 esac
9528 fi
9529 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9530 conftest$ac_exeext conftest.$ac_ext ;;
9531 esac
9532 fi
9533
9534
9535 CFLAGS="$xorg_testset_save_CFLAGS"
9536
9537 eval supported=\$$cacheid
9538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9539 printf "%s\n" "$supported" >&6; }
9540 if test "$supported" = "yes" ; then
9541 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9542 found="yes"
9543 fi
9544 fi
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560 xorg_testset_save_CFLAGS="$CFLAGS"
9561
9562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9565 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9566 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9567 then :
9568 printf %s "(cached) " >&6
9569 else case e in #(
9570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572 int i;
9573 _ACEOF
9574 if ac_fn_c_try_compile "$LINENO"
9575 then :
9576 xorg_cv_cc_flag_unknown_warning_option=yes
9577 else case e in #(
9578 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9579 esac
9580 fi
9581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9582 esac
9583 fi
9584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9585 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9587 CFLAGS="$xorg_testset_save_CFLAGS"
9588 fi
9589
9590 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9593 fi
9594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9596 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9597 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9598 then :
9599 printf %s "(cached) " >&6
9600 else case e in #(
9601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602 /* end confdefs.h. */
9603 int i;
9604 _ACEOF
9605 if ac_fn_c_try_compile "$LINENO"
9606 then :
9607 xorg_cv_cc_flag_unused_command_line_argument=yes
9608 else case e in #(
9609 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9610 esac
9611 fi
9612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9613 esac
9614 fi
9615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9616 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9618 CFLAGS="$xorg_testset_save_CFLAGS"
9619 fi
9620
9621 found="no"
9622
9623 if test $found = "no" ; then
9624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9626 fi
9627
9628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9630 fi
9631
9632 CFLAGS="$CFLAGS -Wmain"
9633
9634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9635 printf %s "checking if $CC supports -Wmain... " >&6; }
9636 cacheid=xorg_cv_cc_flag__Wmain
9637 if eval test \${$cacheid+y}
9638 then :
9639 printf %s "(cached) " >&6
9640 else case e in #(
9641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9643 int i;
9644 int
9645 main (void)
9646 {
9647
9648 ;
9649 return 0;
9650 }
9651 _ACEOF
9652 if ac_fn_c_try_link "$LINENO"
9653 then :
9654 eval $cacheid=yes
9655 else case e in #(
9656 e) eval $cacheid=no ;;
9657 esac
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9660 conftest$ac_exeext conftest.$ac_ext ;;
9661 esac
9662 fi
9663
9664
9665 CFLAGS="$xorg_testset_save_CFLAGS"
9666
9667 eval supported=\$$cacheid
9668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9669 printf "%s\n" "$supported" >&6; }
9670 if test "$supported" = "yes" ; then
9671 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9672 found="yes"
9673 fi
9674 fi
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690 xorg_testset_save_CFLAGS="$CFLAGS"
9691
9692 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9695 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9696 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9697 then :
9698 printf %s "(cached) " >&6
9699 else case e in #(
9700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9702 int i;
9703 _ACEOF
9704 if ac_fn_c_try_compile "$LINENO"
9705 then :
9706 xorg_cv_cc_flag_unknown_warning_option=yes
9707 else case e in #(
9708 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9709 esac
9710 fi
9711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9712 esac
9713 fi
9714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9715 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9717 CFLAGS="$xorg_testset_save_CFLAGS"
9718 fi
9719
9720 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9723 fi
9724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9726 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9727 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9728 then :
9729 printf %s "(cached) " >&6
9730 else case e in #(
9731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732 /* end confdefs.h. */
9733 int i;
9734 _ACEOF
9735 if ac_fn_c_try_compile "$LINENO"
9736 then :
9737 xorg_cv_cc_flag_unused_command_line_argument=yes
9738 else case e in #(
9739 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9740 esac
9741 fi
9742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9743 esac
9744 fi
9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9746 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9748 CFLAGS="$xorg_testset_save_CFLAGS"
9749 fi
9750
9751 found="no"
9752
9753 if test $found = "no" ; then
9754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9756 fi
9757
9758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9760 fi
9761
9762 CFLAGS="$CFLAGS -Wmissing-braces"
9763
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9765 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9766 cacheid=xorg_cv_cc_flag__Wmissing_braces
9767 if eval test \${$cacheid+y}
9768 then :
9769 printf %s "(cached) " >&6
9770 else case e in #(
9771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9772 /* end confdefs.h. */
9773 int i;
9774 int
9775 main (void)
9776 {
9777
9778 ;
9779 return 0;
9780 }
9781 _ACEOF
9782 if ac_fn_c_try_link "$LINENO"
9783 then :
9784 eval $cacheid=yes
9785 else case e in #(
9786 e) eval $cacheid=no ;;
9787 esac
9788 fi
9789 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9790 conftest$ac_exeext conftest.$ac_ext ;;
9791 esac
9792 fi
9793
9794
9795 CFLAGS="$xorg_testset_save_CFLAGS"
9796
9797 eval supported=\$$cacheid
9798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9799 printf "%s\n" "$supported" >&6; }
9800 if test "$supported" = "yes" ; then
9801 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9802 found="yes"
9803 fi
9804 fi
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820 xorg_testset_save_CFLAGS="$CFLAGS"
9821
9822 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9825 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9826 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9827 then :
9828 printf %s "(cached) " >&6
9829 else case e in #(
9830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9832 int i;
9833 _ACEOF
9834 if ac_fn_c_try_compile "$LINENO"
9835 then :
9836 xorg_cv_cc_flag_unknown_warning_option=yes
9837 else case e in #(
9838 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9839 esac
9840 fi
9841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9842 esac
9843 fi
9844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9845 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9847 CFLAGS="$xorg_testset_save_CFLAGS"
9848 fi
9849
9850 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9853 fi
9854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9856 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9857 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9858 then :
9859 printf %s "(cached) " >&6
9860 else case e in #(
9861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862 /* end confdefs.h. */
9863 int i;
9864 _ACEOF
9865 if ac_fn_c_try_compile "$LINENO"
9866 then :
9867 xorg_cv_cc_flag_unused_command_line_argument=yes
9868 else case e in #(
9869 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9870 esac
9871 fi
9872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9873 esac
9874 fi
9875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9876 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9878 CFLAGS="$xorg_testset_save_CFLAGS"
9879 fi
9880
9881 found="no"
9882
9883 if test $found = "no" ; then
9884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9886 fi
9887
9888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9890 fi
9891
9892 CFLAGS="$CFLAGS -Wsequence-point"
9893
9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9895 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9896 cacheid=xorg_cv_cc_flag__Wsequence_point
9897 if eval test \${$cacheid+y}
9898 then :
9899 printf %s "(cached) " >&6
9900 else case e in #(
9901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9902 /* end confdefs.h. */
9903 int i;
9904 int
9905 main (void)
9906 {
9907
9908 ;
9909 return 0;
9910 }
9911 _ACEOF
9912 if ac_fn_c_try_link "$LINENO"
9913 then :
9914 eval $cacheid=yes
9915 else case e in #(
9916 e) eval $cacheid=no ;;
9917 esac
9918 fi
9919 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9920 conftest$ac_exeext conftest.$ac_ext ;;
9921 esac
9922 fi
9923
9924
9925 CFLAGS="$xorg_testset_save_CFLAGS"
9926
9927 eval supported=\$$cacheid
9928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9929 printf "%s\n" "$supported" >&6; }
9930 if test "$supported" = "yes" ; then
9931 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9932 found="yes"
9933 fi
9934 fi
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950 xorg_testset_save_CFLAGS="$CFLAGS"
9951
9952 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9955 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9956 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9957 then :
9958 printf %s "(cached) " >&6
9959 else case e in #(
9960 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961 /* end confdefs.h. */
9962 int i;
9963 _ACEOF
9964 if ac_fn_c_try_compile "$LINENO"
9965 then :
9966 xorg_cv_cc_flag_unknown_warning_option=yes
9967 else case e in #(
9968 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9969 esac
9970 fi
9971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9972 esac
9973 fi
9974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9975 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9977 CFLAGS="$xorg_testset_save_CFLAGS"
9978 fi
9979
9980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9983 fi
9984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9986 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9987 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9988 then :
9989 printf %s "(cached) " >&6
9990 else case e in #(
9991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9992 /* end confdefs.h. */
9993 int i;
9994 _ACEOF
9995 if ac_fn_c_try_compile "$LINENO"
9996 then :
9997 xorg_cv_cc_flag_unused_command_line_argument=yes
9998 else case e in #(
9999 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10000 esac
10001 fi
10002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10003 esac
10004 fi
10005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10006 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10008 CFLAGS="$xorg_testset_save_CFLAGS"
10009 fi
10010
10011 found="no"
10012
10013 if test $found = "no" ; then
10014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10016 fi
10017
10018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10020 fi
10021
10022 CFLAGS="$CFLAGS -Wreturn-type"
10023
10024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10025 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10026 cacheid=xorg_cv_cc_flag__Wreturn_type
10027 if eval test \${$cacheid+y}
10028 then :
10029 printf %s "(cached) " >&6
10030 else case e in #(
10031 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10032 /* end confdefs.h. */
10033 int i;
10034 int
10035 main (void)
10036 {
10037
10038 ;
10039 return 0;
10040 }
10041 _ACEOF
10042 if ac_fn_c_try_link "$LINENO"
10043 then :
10044 eval $cacheid=yes
10045 else case e in #(
10046 e) eval $cacheid=no ;;
10047 esac
10048 fi
10049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10050 conftest$ac_exeext conftest.$ac_ext ;;
10051 esac
10052 fi
10053
10054
10055 CFLAGS="$xorg_testset_save_CFLAGS"
10056
10057 eval supported=\$$cacheid
10058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10059 printf "%s\n" "$supported" >&6; }
10060 if test "$supported" = "yes" ; then
10061 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10062 found="yes"
10063 fi
10064 fi
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080 xorg_testset_save_CFLAGS="$CFLAGS"
10081
10082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10085 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10086 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10087 then :
10088 printf %s "(cached) " >&6
10089 else case e in #(
10090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h. */
10092 int i;
10093 _ACEOF
10094 if ac_fn_c_try_compile "$LINENO"
10095 then :
10096 xorg_cv_cc_flag_unknown_warning_option=yes
10097 else case e in #(
10098 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10099 esac
10100 fi
10101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10102 esac
10103 fi
10104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10105 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10107 CFLAGS="$xorg_testset_save_CFLAGS"
10108 fi
10109
10110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10113 fi
10114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10116 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10117 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10118 then :
10119 printf %s "(cached) " >&6
10120 else case e in #(
10121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10122 /* end confdefs.h. */
10123 int i;
10124 _ACEOF
10125 if ac_fn_c_try_compile "$LINENO"
10126 then :
10127 xorg_cv_cc_flag_unused_command_line_argument=yes
10128 else case e in #(
10129 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10130 esac
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10133 esac
10134 fi
10135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10136 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10138 CFLAGS="$xorg_testset_save_CFLAGS"
10139 fi
10140
10141 found="no"
10142
10143 if test $found = "no" ; then
10144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10146 fi
10147
10148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10150 fi
10151
10152 CFLAGS="$CFLAGS -Wtrigraphs"
10153
10154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10155 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10156 cacheid=xorg_cv_cc_flag__Wtrigraphs
10157 if eval test \${$cacheid+y}
10158 then :
10159 printf %s "(cached) " >&6
10160 else case e in #(
10161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10162 /* end confdefs.h. */
10163 int i;
10164 int
10165 main (void)
10166 {
10167
10168 ;
10169 return 0;
10170 }
10171 _ACEOF
10172 if ac_fn_c_try_link "$LINENO"
10173 then :
10174 eval $cacheid=yes
10175 else case e in #(
10176 e) eval $cacheid=no ;;
10177 esac
10178 fi
10179 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10180 conftest$ac_exeext conftest.$ac_ext ;;
10181 esac
10182 fi
10183
10184
10185 CFLAGS="$xorg_testset_save_CFLAGS"
10186
10187 eval supported=\$$cacheid
10188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10189 printf "%s\n" "$supported" >&6; }
10190 if test "$supported" = "yes" ; then
10191 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10192 found="yes"
10193 fi
10194 fi
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210 xorg_testset_save_CFLAGS="$CFLAGS"
10211
10212 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10213 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10215 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10216 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10217 then :
10218 printf %s "(cached) " >&6
10219 else case e in #(
10220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10222 int i;
10223 _ACEOF
10224 if ac_fn_c_try_compile "$LINENO"
10225 then :
10226 xorg_cv_cc_flag_unknown_warning_option=yes
10227 else case e in #(
10228 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10229 esac
10230 fi
10231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10232 esac
10233 fi
10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10235 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10236 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10237 CFLAGS="$xorg_testset_save_CFLAGS"
10238 fi
10239
10240 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10243 fi
10244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10246 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10247 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10248 then :
10249 printf %s "(cached) " >&6
10250 else case e in #(
10251 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10252 /* end confdefs.h. */
10253 int i;
10254 _ACEOF
10255 if ac_fn_c_try_compile "$LINENO"
10256 then :
10257 xorg_cv_cc_flag_unused_command_line_argument=yes
10258 else case e in #(
10259 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10260 esac
10261 fi
10262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10263 esac
10264 fi
10265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10266 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10267 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10268 CFLAGS="$xorg_testset_save_CFLAGS"
10269 fi
10270
10271 found="no"
10272
10273 if test $found = "no" ; then
10274 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10276 fi
10277
10278 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10280 fi
10281
10282 CFLAGS="$CFLAGS -Warray-bounds"
10283
10284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10285 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10286 cacheid=xorg_cv_cc_flag__Warray_bounds
10287 if eval test \${$cacheid+y}
10288 then :
10289 printf %s "(cached) " >&6
10290 else case e in #(
10291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292 /* end confdefs.h. */
10293 int i;
10294 int
10295 main (void)
10296 {
10297
10298 ;
10299 return 0;
10300 }
10301 _ACEOF
10302 if ac_fn_c_try_link "$LINENO"
10303 then :
10304 eval $cacheid=yes
10305 else case e in #(
10306 e) eval $cacheid=no ;;
10307 esac
10308 fi
10309 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10310 conftest$ac_exeext conftest.$ac_ext ;;
10311 esac
10312 fi
10313
10314
10315 CFLAGS="$xorg_testset_save_CFLAGS"
10316
10317 eval supported=\$$cacheid
10318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10319 printf "%s\n" "$supported" >&6; }
10320 if test "$supported" = "yes" ; then
10321 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10322 found="yes"
10323 fi
10324 fi
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340 xorg_testset_save_CFLAGS="$CFLAGS"
10341
10342 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10345 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10346 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10347 then :
10348 printf %s "(cached) " >&6
10349 else case e in #(
10350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352 int i;
10353 _ACEOF
10354 if ac_fn_c_try_compile "$LINENO"
10355 then :
10356 xorg_cv_cc_flag_unknown_warning_option=yes
10357 else case e in #(
10358 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10359 esac
10360 fi
10361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10362 esac
10363 fi
10364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10365 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10366 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10367 CFLAGS="$xorg_testset_save_CFLAGS"
10368 fi
10369
10370 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10373 fi
10374 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10376 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10377 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10378 then :
10379 printf %s "(cached) " >&6
10380 else case e in #(
10381 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10382 /* end confdefs.h. */
10383 int i;
10384 _ACEOF
10385 if ac_fn_c_try_compile "$LINENO"
10386 then :
10387 xorg_cv_cc_flag_unused_command_line_argument=yes
10388 else case e in #(
10389 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10390 esac
10391 fi
10392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10393 esac
10394 fi
10395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10396 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10397 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10398 CFLAGS="$xorg_testset_save_CFLAGS"
10399 fi
10400
10401 found="no"
10402
10403 if test $found = "no" ; then
10404 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10406 fi
10407
10408 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10410 fi
10411
10412 CFLAGS="$CFLAGS -Wwrite-strings"
10413
10414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10415 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10416 cacheid=xorg_cv_cc_flag__Wwrite_strings
10417 if eval test \${$cacheid+y}
10418 then :
10419 printf %s "(cached) " >&6
10420 else case e in #(
10421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10423 int i;
10424 int
10425 main (void)
10426 {
10427
10428 ;
10429 return 0;
10430 }
10431 _ACEOF
10432 if ac_fn_c_try_link "$LINENO"
10433 then :
10434 eval $cacheid=yes
10435 else case e in #(
10436 e) eval $cacheid=no ;;
10437 esac
10438 fi
10439 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10440 conftest$ac_exeext conftest.$ac_ext ;;
10441 esac
10442 fi
10443
10444
10445 CFLAGS="$xorg_testset_save_CFLAGS"
10446
10447 eval supported=\$$cacheid
10448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10449 printf "%s\n" "$supported" >&6; }
10450 if test "$supported" = "yes" ; then
10451 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10452 found="yes"
10453 fi
10454 fi
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470 xorg_testset_save_CFLAGS="$CFLAGS"
10471
10472 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10473 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10475 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10476 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10477 then :
10478 printf %s "(cached) " >&6
10479 else case e in #(
10480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10482 int i;
10483 _ACEOF
10484 if ac_fn_c_try_compile "$LINENO"
10485 then :
10486 xorg_cv_cc_flag_unknown_warning_option=yes
10487 else case e in #(
10488 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10489 esac
10490 fi
10491 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10492 esac
10493 fi
10494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10495 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10496 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10497 CFLAGS="$xorg_testset_save_CFLAGS"
10498 fi
10499
10500 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10503 fi
10504 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10506 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10507 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10508 then :
10509 printf %s "(cached) " >&6
10510 else case e in #(
10511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10512 /* end confdefs.h. */
10513 int i;
10514 _ACEOF
10515 if ac_fn_c_try_compile "$LINENO"
10516 then :
10517 xorg_cv_cc_flag_unused_command_line_argument=yes
10518 else case e in #(
10519 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10520 esac
10521 fi
10522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10523 esac
10524 fi
10525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10526 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10527 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10528 CFLAGS="$xorg_testset_save_CFLAGS"
10529 fi
10530
10531 found="no"
10532
10533 if test $found = "no" ; then
10534 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10536 fi
10537
10538 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10539 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10540 fi
10541
10542 CFLAGS="$CFLAGS -Waddress"
10543
10544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10545 printf %s "checking if $CC supports -Waddress... " >&6; }
10546 cacheid=xorg_cv_cc_flag__Waddress
10547 if eval test \${$cacheid+y}
10548 then :
10549 printf %s "(cached) " >&6
10550 else case e in #(
10551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h. */
10553 int i;
10554 int
10555 main (void)
10556 {
10557
10558 ;
10559 return 0;
10560 }
10561 _ACEOF
10562 if ac_fn_c_try_link "$LINENO"
10563 then :
10564 eval $cacheid=yes
10565 else case e in #(
10566 e) eval $cacheid=no ;;
10567 esac
10568 fi
10569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10570 conftest$ac_exeext conftest.$ac_ext ;;
10571 esac
10572 fi
10573
10574
10575 CFLAGS="$xorg_testset_save_CFLAGS"
10576
10577 eval supported=\$$cacheid
10578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10579 printf "%s\n" "$supported" >&6; }
10580 if test "$supported" = "yes" ; then
10581 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10582 found="yes"
10583 fi
10584 fi
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600 xorg_testset_save_CFLAGS="$CFLAGS"
10601
10602 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10605 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10606 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10607 then :
10608 printf %s "(cached) " >&6
10609 else case e in #(
10610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h. */
10612 int i;
10613 _ACEOF
10614 if ac_fn_c_try_compile "$LINENO"
10615 then :
10616 xorg_cv_cc_flag_unknown_warning_option=yes
10617 else case e in #(
10618 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10619 esac
10620 fi
10621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10622 esac
10623 fi
10624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10625 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10627 CFLAGS="$xorg_testset_save_CFLAGS"
10628 fi
10629
10630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10633 fi
10634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10636 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10637 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10638 then :
10639 printf %s "(cached) " >&6
10640 else case e in #(
10641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642 /* end confdefs.h. */
10643 int i;
10644 _ACEOF
10645 if ac_fn_c_try_compile "$LINENO"
10646 then :
10647 xorg_cv_cc_flag_unused_command_line_argument=yes
10648 else case e in #(
10649 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10650 esac
10651 fi
10652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10653 esac
10654 fi
10655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10656 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10658 CFLAGS="$xorg_testset_save_CFLAGS"
10659 fi
10660
10661 found="no"
10662
10663 if test $found = "no" ; then
10664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10666 fi
10667
10668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10670 fi
10671
10672 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10673
10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10675 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10676 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10677 if eval test \${$cacheid+y}
10678 then :
10679 printf %s "(cached) " >&6
10680 else case e in #(
10681 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h. */
10683 int i;
10684 int
10685 main (void)
10686 {
10687
10688 ;
10689 return 0;
10690 }
10691 _ACEOF
10692 if ac_fn_c_try_link "$LINENO"
10693 then :
10694 eval $cacheid=yes
10695 else case e in #(
10696 e) eval $cacheid=no ;;
10697 esac
10698 fi
10699 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10700 conftest$ac_exeext conftest.$ac_ext ;;
10701 esac
10702 fi
10703
10704
10705 CFLAGS="$xorg_testset_save_CFLAGS"
10706
10707 eval supported=\$$cacheid
10708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10709 printf "%s\n" "$supported" >&6; }
10710 if test "$supported" = "yes" ; then
10711 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10712 found="yes"
10713 fi
10714 fi
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730 xorg_testset_save_CFLAGS="$CFLAGS"
10731
10732 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10733 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10735 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10736 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10737 then :
10738 printf %s "(cached) " >&6
10739 else case e in #(
10740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 int i;
10743 _ACEOF
10744 if ac_fn_c_try_compile "$LINENO"
10745 then :
10746 xorg_cv_cc_flag_unknown_warning_option=yes
10747 else case e in #(
10748 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10749 esac
10750 fi
10751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10752 esac
10753 fi
10754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10755 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10756 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10757 CFLAGS="$xorg_testset_save_CFLAGS"
10758 fi
10759
10760 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10761 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10762 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10763 fi
10764 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10766 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10767 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10768 then :
10769 printf %s "(cached) " >&6
10770 else case e in #(
10771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10773 int i;
10774 _ACEOF
10775 if ac_fn_c_try_compile "$LINENO"
10776 then :
10777 xorg_cv_cc_flag_unused_command_line_argument=yes
10778 else case e in #(
10779 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10780 esac
10781 fi
10782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10783 esac
10784 fi
10785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10786 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10787 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10788 CFLAGS="$xorg_testset_save_CFLAGS"
10789 fi
10790
10791 found="no"
10792
10793 if test $found = "no" ; then
10794 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10796 fi
10797
10798 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10799 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10800 fi
10801
10802 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10803
10804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10805 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10806 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10807 if eval test \${$cacheid+y}
10808 then :
10809 printf %s "(cached) " >&6
10810 else case e in #(
10811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10812 /* end confdefs.h. */
10813 int i;
10814 int
10815 main (void)
10816 {
10817
10818 ;
10819 return 0;
10820 }
10821 _ACEOF
10822 if ac_fn_c_try_link "$LINENO"
10823 then :
10824 eval $cacheid=yes
10825 else case e in #(
10826 e) eval $cacheid=no ;;
10827 esac
10828 fi
10829 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10830 conftest$ac_exeext conftest.$ac_ext ;;
10831 esac
10832 fi
10833
10834
10835 CFLAGS="$xorg_testset_save_CFLAGS"
10836
10837 eval supported=\$$cacheid
10838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10839 printf "%s\n" "$supported" >&6; }
10840 if test "$supported" = "yes" ; then
10841 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10842 found="yes"
10843 fi
10844 fi
10845
10846
10847 fi
10848
10849
10850
10851
10852
10853
10854
10855 CWARNFLAGS="$BASE_CFLAGS"
10856 if test "x$GCC" = xyes ; then
10857 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10858 fi
10859
10860
10861
10862
10863
10864
10865
10866
10867 # Check whether --enable-strict-compilation was given.
10868 if test ${enable_strict_compilation+y}
10869 then :
10870 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10871 else case e in #(
10872 e) STRICT_COMPILE=no ;;
10873 esac
10874 fi
10875
10876
10877
10878
10879
10880
10881 STRICT_CFLAGS=""
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895 xorg_testset_save_CFLAGS="$CFLAGS"
10896
10897 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10900 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10901 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10902 then :
10903 printf %s "(cached) " >&6
10904 else case e in #(
10905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10907 int i;
10908 _ACEOF
10909 if ac_fn_c_try_compile "$LINENO"
10910 then :
10911 xorg_cv_cc_flag_unknown_warning_option=yes
10912 else case e in #(
10913 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10914 esac
10915 fi
10916 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10917 esac
10918 fi
10919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10920 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10921 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10922 CFLAGS="$xorg_testset_save_CFLAGS"
10923 fi
10924
10925 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10926 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10927 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10928 fi
10929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10931 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10932 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10933 then :
10934 printf %s "(cached) " >&6
10935 else case e in #(
10936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h. */
10938 int i;
10939 _ACEOF
10940 if ac_fn_c_try_compile "$LINENO"
10941 then :
10942 xorg_cv_cc_flag_unused_command_line_argument=yes
10943 else case e in #(
10944 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10945 esac
10946 fi
10947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10948 esac
10949 fi
10950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10951 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10952 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10953 CFLAGS="$xorg_testset_save_CFLAGS"
10954 fi
10955
10956 found="no"
10957
10958 if test $found = "no" ; then
10959 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10960 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10961 fi
10962
10963 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10964 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10965 fi
10966
10967 CFLAGS="$CFLAGS -pedantic"
10968
10969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10970 printf %s "checking if $CC supports -pedantic... " >&6; }
10971 cacheid=xorg_cv_cc_flag__pedantic
10972 if eval test \${$cacheid+y}
10973 then :
10974 printf %s "(cached) " >&6
10975 else case e in #(
10976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10977 /* end confdefs.h. */
10978 int i;
10979 int
10980 main (void)
10981 {
10982
10983 ;
10984 return 0;
10985 }
10986 _ACEOF
10987 if ac_fn_c_try_link "$LINENO"
10988 then :
10989 eval $cacheid=yes
10990 else case e in #(
10991 e) eval $cacheid=no ;;
10992 esac
10993 fi
10994 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10995 conftest$ac_exeext conftest.$ac_ext ;;
10996 esac
10997 fi
10998
10999
11000 CFLAGS="$xorg_testset_save_CFLAGS"
11001
11002 eval supported=\$$cacheid
11003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11004 printf "%s\n" "$supported" >&6; }
11005 if test "$supported" = "yes" ; then
11006 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11007 found="yes"
11008 fi
11009 fi
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025 xorg_testset_save_CFLAGS="$CFLAGS"
11026
11027 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11030 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11031 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11032 then :
11033 printf %s "(cached) " >&6
11034 else case e in #(
11035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11037 int i;
11038 _ACEOF
11039 if ac_fn_c_try_compile "$LINENO"
11040 then :
11041 xorg_cv_cc_flag_unknown_warning_option=yes
11042 else case e in #(
11043 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11044 esac
11045 fi
11046 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11047 esac
11048 fi
11049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11050 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11051 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11052 CFLAGS="$xorg_testset_save_CFLAGS"
11053 fi
11054
11055 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11056 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11057 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11058 fi
11059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11061 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11062 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11063 then :
11064 printf %s "(cached) " >&6
11065 else case e in #(
11066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11068 int i;
11069 _ACEOF
11070 if ac_fn_c_try_compile "$LINENO"
11071 then :
11072 xorg_cv_cc_flag_unused_command_line_argument=yes
11073 else case e in #(
11074 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11075 esac
11076 fi
11077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11078 esac
11079 fi
11080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11081 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11082 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11083 CFLAGS="$xorg_testset_save_CFLAGS"
11084 fi
11085
11086 found="no"
11087
11088 if test $found = "no" ; then
11089 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11090 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11091 fi
11092
11093 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11094 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11095 fi
11096
11097 CFLAGS="$CFLAGS -Werror"
11098
11099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11100 printf %s "checking if $CC supports -Werror... " >&6; }
11101 cacheid=xorg_cv_cc_flag__Werror
11102 if eval test \${$cacheid+y}
11103 then :
11104 printf %s "(cached) " >&6
11105 else case e in #(
11106 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11108 int i;
11109 int
11110 main (void)
11111 {
11112
11113 ;
11114 return 0;
11115 }
11116 _ACEOF
11117 if ac_fn_c_try_link "$LINENO"
11118 then :
11119 eval $cacheid=yes
11120 else case e in #(
11121 e) eval $cacheid=no ;;
11122 esac
11123 fi
11124 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11125 conftest$ac_exeext conftest.$ac_ext ;;
11126 esac
11127 fi
11128
11129
11130 CFLAGS="$xorg_testset_save_CFLAGS"
11131
11132 eval supported=\$$cacheid
11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11134 printf "%s\n" "$supported" >&6; }
11135 if test "$supported" = "yes" ; then
11136 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11137 found="yes"
11138 fi
11139 fi
11140
11141 if test $found = "no" ; then
11142 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11144 fi
11145
11146 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11148 fi
11149
11150 CFLAGS="$CFLAGS -errwarn"
11151
11152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11153 printf %s "checking if $CC supports -errwarn... " >&6; }
11154 cacheid=xorg_cv_cc_flag__errwarn
11155 if eval test \${$cacheid+y}
11156 then :
11157 printf %s "(cached) " >&6
11158 else case e in #(
11159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11161 int i;
11162 int
11163 main (void)
11164 {
11165
11166 ;
11167 return 0;
11168 }
11169 _ACEOF
11170 if ac_fn_c_try_link "$LINENO"
11171 then :
11172 eval $cacheid=yes
11173 else case e in #(
11174 e) eval $cacheid=no ;;
11175 esac
11176 fi
11177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11178 conftest$ac_exeext conftest.$ac_ext ;;
11179 esac
11180 fi
11181
11182
11183 CFLAGS="$xorg_testset_save_CFLAGS"
11184
11185 eval supported=\$$cacheid
11186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11187 printf "%s\n" "$supported" >&6; }
11188 if test "$supported" = "yes" ; then
11189 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11190 found="yes"
11191 fi
11192 fi
11193
11194
11195
11196 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11197 # activate it with -Werror, so we add it here explicitly.
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211 xorg_testset_save_CFLAGS="$CFLAGS"
11212
11213 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11216 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11217 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11218 then :
11219 printf %s "(cached) " >&6
11220 else case e in #(
11221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11223 int i;
11224 _ACEOF
11225 if ac_fn_c_try_compile "$LINENO"
11226 then :
11227 xorg_cv_cc_flag_unknown_warning_option=yes
11228 else case e in #(
11229 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11230 esac
11231 fi
11232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11233 esac
11234 fi
11235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11236 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11238 CFLAGS="$xorg_testset_save_CFLAGS"
11239 fi
11240
11241 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11244 fi
11245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11247 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11248 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11249 then :
11250 printf %s "(cached) " >&6
11251 else case e in #(
11252 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11254 int i;
11255 _ACEOF
11256 if ac_fn_c_try_compile "$LINENO"
11257 then :
11258 xorg_cv_cc_flag_unused_command_line_argument=yes
11259 else case e in #(
11260 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11261 esac
11262 fi
11263 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11264 esac
11265 fi
11266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11267 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11268 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11269 CFLAGS="$xorg_testset_save_CFLAGS"
11270 fi
11271
11272 found="no"
11273
11274 if test $found = "no" ; then
11275 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11276 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11277 fi
11278
11279 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11281 fi
11282
11283 CFLAGS="$CFLAGS -Werror=attributes"
11284
11285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11286 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11287 cacheid=xorg_cv_cc_flag__Werror_attributes
11288 if eval test \${$cacheid+y}
11289 then :
11290 printf %s "(cached) " >&6
11291 else case e in #(
11292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h. */
11294 int i;
11295 int
11296 main (void)
11297 {
11298
11299 ;
11300 return 0;
11301 }
11302 _ACEOF
11303 if ac_fn_c_try_link "$LINENO"
11304 then :
11305 eval $cacheid=yes
11306 else case e in #(
11307 e) eval $cacheid=no ;;
11308 esac
11309 fi
11310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11311 conftest$ac_exeext conftest.$ac_ext ;;
11312 esac
11313 fi
11314
11315
11316 CFLAGS="$xorg_testset_save_CFLAGS"
11317
11318 eval supported=\$$cacheid
11319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11320 printf "%s\n" "$supported" >&6; }
11321 if test "$supported" = "yes" ; then
11322 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11323 found="yes"
11324 fi
11325 fi
11326
11327
11328
11329 if test "x$STRICT_COMPILE" = "xyes"; then
11330 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11331 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11332 fi
11333
11334
11335
11336
11337
11338
11339
11340
11341 cat >>confdefs.h <<_ACEOF
11342 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11343 _ACEOF
11344
11345 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11346 if test "x$PVM" = "x"; then
11347 PVM="0"
11348 fi
11349
11350 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11351
11352 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11353 if test "x$PVP" = "x"; then
11354 PVP="0"
11355 fi
11356
11357 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11358
11359
11360
11361 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11362 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11363 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11364 touch \$(top_srcdir)/ChangeLog; \
11365 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11366
11367
11368
11369
11370 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11371 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11372 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11373 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11374 touch \$(top_srcdir)/INSTALL; \
11375 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11376
11377
11378
11379
11380
11381
11382 case $host_os in
11383 solaris*)
11384 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11385 # check for a man page file found in later versions that use
11386 # traditional section numbers instead
11387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11388 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11389 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11390 then :
11391 printf %s "(cached) " >&6
11392 else case e in #(
11393 e) test "$cross_compiling" = yes &&
11394 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11395 if test -r "/usr/share/man/man7/attributes.7"; then
11396 ac_cv_file__usr_share_man_man7_attributes_7=yes
11397 else
11398 ac_cv_file__usr_share_man_man7_attributes_7=no
11399 fi ;;
11400 esac
11401 fi
11402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11403 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11404 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11405 then :
11406 SYSV_MAN_SECTIONS=false
11407 else case e in #(
11408 e) SYSV_MAN_SECTIONS=true ;;
11409 esac
11410 fi
11411
11412 ;;
11413 *) SYSV_MAN_SECTIONS=false ;;
11414 esac
11415
11416 if test x$APP_MAN_SUFFIX = x ; then
11417 APP_MAN_SUFFIX=1
11418 fi
11419 if test x$APP_MAN_DIR = x ; then
11420 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11421 fi
11422
11423 if test x$LIB_MAN_SUFFIX = x ; then
11424 LIB_MAN_SUFFIX=3
11425 fi
11426 if test x$LIB_MAN_DIR = x ; then
11427 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11428 fi
11429
11430 if test x$FILE_MAN_SUFFIX = x ; then
11431 case $SYSV_MAN_SECTIONS in
11432 true) FILE_MAN_SUFFIX=4 ;;
11433 *) FILE_MAN_SUFFIX=5 ;;
11434 esac
11435 fi
11436 if test x$FILE_MAN_DIR = x ; then
11437 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11438 fi
11439
11440 if test x$MISC_MAN_SUFFIX = x ; then
11441 case $SYSV_MAN_SECTIONS in
11442 true) MISC_MAN_SUFFIX=5 ;;
11443 *) MISC_MAN_SUFFIX=7 ;;
11444 esac
11445 fi
11446 if test x$MISC_MAN_DIR = x ; then
11447 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11448 fi
11449
11450 if test x$DRIVER_MAN_SUFFIX = x ; then
11451 case $SYSV_MAN_SECTIONS in
11452 true) DRIVER_MAN_SUFFIX=7 ;;
11453 *) DRIVER_MAN_SUFFIX=4 ;;
11454 esac
11455 fi
11456 if test x$DRIVER_MAN_DIR = x ; then
11457 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11458 fi
11459
11460 if test x$ADMIN_MAN_SUFFIX = x ; then
11461 case $SYSV_MAN_SECTIONS in
11462 true) ADMIN_MAN_SUFFIX=1m ;;
11463 *) ADMIN_MAN_SUFFIX=8 ;;
11464 esac
11465 fi
11466 if test x$ADMIN_MAN_DIR = x ; then
11467 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11468 fi
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484 XORG_MAN_PAGE="X Version 11"
11485
11486 MAN_SUBSTS="\
11487 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11488 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11489 -e 's|__xservername__|Xorg|g' \
11490 -e 's|__xconfigfile__|xorg.conf|g' \
11491 -e 's|__projectroot__|\$(prefix)|g' \
11492 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11493 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11494 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11495 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11496 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11497 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11498 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11499
11500
11501
11502 # Check whether --enable-silent-rules was given.
11503 if test ${enable_silent_rules+y}
11504 then :
11505 enableval=$enable_silent_rules;
11506 fi
11507
11508 case $enable_silent_rules in # (((
11509 yes) AM_DEFAULT_VERBOSITY=0;;
11510 no) AM_DEFAULT_VERBOSITY=1;;
11511 *) AM_DEFAULT_VERBOSITY=0;;
11512 esac
11513 am_make=${MAKE-make}
11514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11515 printf %s "checking whether $am_make supports nested variables... " >&6; }
11516 if test ${am_cv_make_support_nested_variables+y}
11517 then :
11518 printf %s "(cached) " >&6
11519 else case e in #(
11520 e) if printf "%s\n" 'TRUE=$(BAR$(V))
11521 BAR0=false
11522 BAR1=true
11523 V=1
11524 am__doit:
11525 @$(TRUE)
11526 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11527 am_cv_make_support_nested_variables=yes
11528 else
11529 am_cv_make_support_nested_variables=no
11530 fi ;;
11531 esac
11532 fi
11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11534 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11535 if test $am_cv_make_support_nested_variables = yes; then
11536 AM_V='$(V)'
11537 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11538 else
11539 AM_V=$AM_DEFAULT_VERBOSITY
11540 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11541 fi
11542 AM_BACKSLASH='\'
11543
11544
11545
11546
11547 # Checks for typedefs, structures, and compiler characteristics.
11548 # Check whether --enable-largefile was given.
11549 if test ${enable_largefile+y}
11550 then :
11551 enableval=$enable_largefile;
11552 fi
11553 if test "$enable_largefile,$enable_year2038" != no,no
11554 then :
11555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
11556 printf %s "checking for $CC option to enable large file support... " >&6; }
11557 if test ${ac_cv_sys_largefile_opts+y}
11558 then :
11559 printf %s "(cached) " >&6
11560 else case e in #(
11561 e) ac_save_CC="$CC"
11562 ac_opt_found=no
11563 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
11564 if test x"$ac_opt" != x"none needed"
11565 then :
11566 CC="$ac_save_CC $ac_opt"
11567 fi
11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11570 #include <sys/types.h>
11571 #ifndef FTYPE
11572 # define FTYPE off_t
11573 #endif
11574 /* Check that FTYPE can represent 2**63 - 1 correctly.
11575 We can't simply define LARGE_FTYPE to be 9223372036854775807,
11576 since some C++ compilers masquerading as C compilers
11577 incorrectly reject 9223372036854775807. */
11578 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
11579 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
11580 && LARGE_FTYPE % 2147483647 == 1)
11581 ? 1 : -1];
11582 int
11583 main (void)
11584 {
11585
11586 ;
11587 return 0;
11588 }
11589 _ACEOF
11590 if ac_fn_c_try_compile "$LINENO"
11591 then :
11592 if test x"$ac_opt" = x"none needed"
11593 then :
11594 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
11595 CC="$CC -DFTYPE=ino_t"
11596 if ac_fn_c_try_compile "$LINENO"
11597 then :
11598
11599 else case e in #(
11600 e) CC="$CC -D_FILE_OFFSET_BITS=64"
11601 if ac_fn_c_try_compile "$LINENO"
11602 then :
11603 ac_opt='-D_FILE_OFFSET_BITS=64'
11604 fi
11605 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
11606 esac
11607 fi
11608 rm -f core conftest.err conftest.$ac_objext conftest.beam
11609 fi
11610 ac_cv_sys_largefile_opts=$ac_opt
11611 ac_opt_found=yes
11612 fi
11613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11614 test $ac_opt_found = no || break
11615 done
11616 CC="$ac_save_CC"
11617
11618 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
11619 esac
11620 fi
11621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
11622 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
11623
11624 ac_have_largefile=yes
11625 case $ac_cv_sys_largefile_opts in #(
11626 "none needed") :
11627 ;; #(
11628 "supported through gnulib") :
11629 ;; #(
11630 "support not detected") :
11631 ac_have_largefile=no ;; #(
11632 "-D_FILE_OFFSET_BITS=64") :
11633
11634 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11635 ;; #(
11636 "-D_LARGE_FILES=1") :
11637
11638 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11639 ;; #(
11640 "-n32") :
11641 CC="$CC -n32" ;; #(
11642 *) :
11643 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
11644 esac
11645
11646 if test "$enable_year2038" != no
11647 then :
11648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
11649 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
11650 if test ${ac_cv_sys_year2038_opts+y}
11651 then :
11652 printf %s "(cached) " >&6
11653 else case e in #(
11654 e) ac_save_CPPFLAGS="$CPPFLAGS"
11655 ac_opt_found=no
11656 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
11657 if test x"$ac_opt" != x"none needed"
11658 then :
11659 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
11660 fi
11661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11662 /* end confdefs.h. */
11663
11664 #include <time.h>
11665 /* Check that time_t can represent 2**32 - 1 correctly. */
11666 #define LARGE_TIME_T \\
11667 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
11668 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
11669 && LARGE_TIME_T % 65537 == 0)
11670 ? 1 : -1];
11671
11672 int
11673 main (void)
11674 {
11675
11676 ;
11677 return 0;
11678 }
11679 _ACEOF
11680 if ac_fn_c_try_compile "$LINENO"
11681 then :
11682 ac_cv_sys_year2038_opts="$ac_opt"
11683 ac_opt_found=yes
11684 fi
11685 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11686 test $ac_opt_found = no || break
11687 done
11688 CPPFLAGS="$ac_save_CPPFLAGS"
11689 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
11690 esac
11691 fi
11692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
11693 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
11694
11695 ac_have_year2038=yes
11696 case $ac_cv_sys_year2038_opts in #(
11697 "none needed") :
11698 ;; #(
11699 "support not detected") :
11700 ac_have_year2038=no ;; #(
11701 "-D_TIME_BITS=64") :
11702
11703 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
11704 ;; #(
11705 "-D__MINGW_USE_VC2005_COMPAT") :
11706
11707 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
11708 ;; #(
11709 "-U_USE_32_BIT_TIME_T"*) :
11710 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11711 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11712 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
11713 will stop working after mid-January 2038. Remove
11714 _USE_32BIT_TIME_T from the compiler flags.
11715 See 'config.log' for more details" "$LINENO" 5; } ;; #(
11716 *) :
11717 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
11718 esac
11719
11720 fi
11721
11722 fi
11723
11724 # Checks for library functions.
11725 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp"
11726 if test "x$ac_cv_func_mkstemp" = xyes
11727 then :
11728
11729 printf "%s\n" "#define HAS_MKSTEMP 1" >>confdefs.h
11730
11731 fi
11732
11733
11734 # Checks for pkg-config packages
11735
11736 pkg_failed=no
11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XDITVIEW" >&5
11738 printf %s "checking for XDITVIEW... " >&6; }
11739
11740 if test -n "$XDITVIEW_CFLAGS"; then
11741 pkg_cv_XDITVIEW_CFLAGS="$XDITVIEW_CFLAGS"
11742 elif test -n "$PKG_CONFIG"; then
11743 if test -n "$PKG_CONFIG" && \
11744 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
11745 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
11746 ac_status=$?
11747 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11748 test $ac_status = 0; }; then
11749 pkg_cv_XDITVIEW_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11" 2>/dev/null`
11750 test "x$?" != "x0" && pkg_failed=yes
11751 else
11752 pkg_failed=yes
11753 fi
11754 else
11755 pkg_failed=untried
11756 fi
11757 if test -n "$XDITVIEW_LIBS"; then
11758 pkg_cv_XDITVIEW_LIBS="$XDITVIEW_LIBS"
11759 elif test -n "$PKG_CONFIG"; then
11760 if test -n "$PKG_CONFIG" && \
11761 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11\""; } >&5
11762 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11") 2>&5
11763 ac_status=$?
11764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11765 test $ac_status = 0; }; then
11766 pkg_cv_XDITVIEW_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11" 2>/dev/null`
11767 test "x$?" != "x0" && pkg_failed=yes
11768 else
11769 pkg_failed=yes
11770 fi
11771 else
11772 pkg_failed=untried
11773 fi
11774
11775
11776
11777 if test $pkg_failed = yes; then
11778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11779 printf "%s\n" "no" >&6; }
11780
11781 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11782 _pkg_short_errors_supported=yes
11783 else
11784 _pkg_short_errors_supported=no
11785 fi
11786 if test $_pkg_short_errors_supported = yes; then
11787 XDITVIEW_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11" 2>&1`
11788 else
11789 XDITVIEW_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11" 2>&1`
11790 fi
11791 # Put the nasty error message in config.log where it belongs
11792 echo "$XDITVIEW_PKG_ERRORS" >&5
11793
11794 as_fn_error $? "Package requirements (xaw7 xmu xt x11) were not met:
11795
11796 $XDITVIEW_PKG_ERRORS
11797
11798 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11799 installed software in a non-standard prefix.
11800
11801 Alternatively, you may set the environment variables XDITVIEW_CFLAGS
11802 and XDITVIEW_LIBS to avoid the need to call pkg-config.
11803 See the pkg-config man page for more details." "$LINENO" 5
11804 elif test $pkg_failed = untried; then
11805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11806 printf "%s\n" "no" >&6; }
11807 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11808 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11809 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11810 is in your PATH or set the PKG_CONFIG environment variable to the full
11811 path to pkg-config.
11812
11813 Alternatively, you may set the environment variables XDITVIEW_CFLAGS
11814 and XDITVIEW_LIBS to avoid the need to call pkg-config.
11815 See the pkg-config man page for more details.
11816
11817 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11818 See 'config.log' for more details" "$LINENO" 5; }
11819 else
11820 XDITVIEW_CFLAGS=$pkg_cv_XDITVIEW_CFLAGS
11821 XDITVIEW_LIBS=$pkg_cv_XDITVIEW_LIBS
11822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11823 printf "%s\n" "yes" >&6; }
11824
11825 fi
11826
11827
11828 pkg_failed=no
11829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11830 printf %s "checking for APPDEFS... " >&6; }
11831
11832 if test -n "$APPDEFS_CFLAGS"; then
11833 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11834 elif test -n "$PKG_CONFIG"; then
11835 if test -n "$PKG_CONFIG" && \
11836 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11837 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11838 ac_status=$?
11839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11840 test $ac_status = 0; }; then
11841 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11842 test "x$?" != "x0" && pkg_failed=yes
11843 else
11844 pkg_failed=yes
11845 fi
11846 else
11847 pkg_failed=untried
11848 fi
11849 if test -n "$APPDEFS_LIBS"; then
11850 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11851 elif test -n "$PKG_CONFIG"; then
11852 if test -n "$PKG_CONFIG" && \
11853 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11854 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11855 ac_status=$?
11856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11857 test $ac_status = 0; }; then
11858 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11859 test "x$?" != "x0" && pkg_failed=yes
11860 else
11861 pkg_failed=yes
11862 fi
11863 else
11864 pkg_failed=untried
11865 fi
11866
11867
11868
11869 if test $pkg_failed = yes; then
11870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11871 printf "%s\n" "no" >&6; }
11872
11873 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11874 _pkg_short_errors_supported=yes
11875 else
11876 _pkg_short_errors_supported=no
11877 fi
11878 if test $_pkg_short_errors_supported = yes; then
11879 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11880 else
11881 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11882 fi
11883 # Put the nasty error message in config.log where it belongs
11884 echo "$APPDEFS_PKG_ERRORS" >&5
11885
11886 as_fn_error $? "Package requirements (xt) were not met:
11887
11888 $APPDEFS_PKG_ERRORS
11889
11890 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11891 installed software in a non-standard prefix.
11892
11893 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11894 and APPDEFS_LIBS to avoid the need to call pkg-config.
11895 See the pkg-config man page for more details." "$LINENO" 5
11896 elif test $pkg_failed = untried; then
11897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 printf "%s\n" "no" >&6; }
11899 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11900 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11901 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11902 is in your PATH or set the PKG_CONFIG environment variable to the full
11903 path to pkg-config.
11904
11905 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11906 and APPDEFS_LIBS to avoid the need to call pkg-config.
11907 See the pkg-config man page for more details.
11908
11909 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11910 See 'config.log' for more details" "$LINENO" 5; }
11911 else
11912 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11913 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915 printf "%s\n" "yes" >&6; }
11916
11917 fi
11918 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11919
11920 # Check whether --with-appdefaultdir was given.
11921 if test ${with_appdefaultdir+y}
11922 then :
11923 withval=$with_appdefaultdir; appdefaultdir="$withval"
11924 else case e in #(
11925 e) appdefaultdir="${xt_appdefaultdir}" ;;
11926 esac
11927 fi
11928
11929
11930
11931 # Check whether to use Xft to draw text
11932
11933 # Check whether --with-xft was given.
11934 if test ${with_xft+y}
11935 then :
11936 withval=$with_xft; USE_XFT="$withval"
11937 else case e in #(
11938 e) if test -n "$PKG_CONFIG" && \
11939 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender fontconfig\""; } >&5
11940 ($PKG_CONFIG --exists --print-errors "xft xrender fontconfig") 2>&5
11941 ac_status=$?
11942 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11943 test $ac_status = 0; }; then
11944 USE_XFT="yes"
11945 else
11946 USE_XFT="no"
11947 fi ;;
11948 esac
11949 fi
11950
11951
11952 if test "x$USE_XFT" = "xyes" ; then
11953
11954 pkg_failed=no
11955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5
11956 printf %s "checking for XFT... " >&6; }
11957
11958 if test -n "$XFT_CFLAGS"; then
11959 pkg_cv_XFT_CFLAGS="$XFT_CFLAGS"
11960 elif test -n "$PKG_CONFIG"; then
11961 if test -n "$PKG_CONFIG" && \
11962 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender fontconfig\""; } >&5
11963 ($PKG_CONFIG --exists --print-errors "xft xrender fontconfig") 2>&5
11964 ac_status=$?
11965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11966 test $ac_status = 0; }; then
11967 pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft xrender fontconfig" 2>/dev/null`
11968 test "x$?" != "x0" && pkg_failed=yes
11969 else
11970 pkg_failed=yes
11971 fi
11972 else
11973 pkg_failed=untried
11974 fi
11975 if test -n "$XFT_LIBS"; then
11976 pkg_cv_XFT_LIBS="$XFT_LIBS"
11977 elif test -n "$PKG_CONFIG"; then
11978 if test -n "$PKG_CONFIG" && \
11979 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft xrender fontconfig\""; } >&5
11980 ($PKG_CONFIG --exists --print-errors "xft xrender fontconfig") 2>&5
11981 ac_status=$?
11982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11983 test $ac_status = 0; }; then
11984 pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft xrender fontconfig" 2>/dev/null`
11985 test "x$?" != "x0" && pkg_failed=yes
11986 else
11987 pkg_failed=yes
11988 fi
11989 else
11990 pkg_failed=untried
11991 fi
11992
11993
11994
11995 if test $pkg_failed = yes; then
11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11997 printf "%s\n" "no" >&6; }
11998
11999 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12000 _pkg_short_errors_supported=yes
12001 else
12002 _pkg_short_errors_supported=no
12003 fi
12004 if test $_pkg_short_errors_supported = yes; then
12005 XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xft xrender fontconfig" 2>&1`
12006 else
12007 XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xft xrender fontconfig" 2>&1`
12008 fi
12009 # Put the nasty error message in config.log where it belongs
12010 echo "$XFT_PKG_ERRORS" >&5
12011
12012 as_fn_error $? "Package requirements (xft xrender fontconfig) were not met:
12013
12014 $XFT_PKG_ERRORS
12015
12016 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12017 installed software in a non-standard prefix.
12018
12019 Alternatively, you may set the environment variables XFT_CFLAGS
12020 and XFT_LIBS to avoid the need to call pkg-config.
12021 See the pkg-config man page for more details." "$LINENO" 5
12022 elif test $pkg_failed = untried; then
12023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 printf "%s\n" "no" >&6; }
12025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12026 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12027 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12028 is in your PATH or set the PKG_CONFIG environment variable to the full
12029 path to pkg-config.
12030
12031 Alternatively, you may set the environment variables XFT_CFLAGS
12032 and XFT_LIBS to avoid the need to call pkg-config.
12033 See the pkg-config man page for more details.
12034
12035 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12036 See 'config.log' for more details" "$LINENO" 5; }
12037 else
12038 XFT_CFLAGS=$pkg_cv_XFT_CFLAGS
12039 XFT_LIBS=$pkg_cv_XFT_LIBS
12040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12041 printf "%s\n" "yes" >&6; }
12042
12043 fi
12044
12045 printf "%s\n" "#define USE_XFT 1" >>confdefs.h
12046
12047 fi
12048
12049
12050 ac_config_files="$ac_config_files Makefile man/Makefile"
12051
12052 cat >confcache <<\_ACEOF
12053 # This file is a shell script that caches the results of configure
12054 # tests run on this system so they can be shared between configure
12055 # scripts and configure runs, see configure's option --config-cache.
12056 # It is not useful on other systems. If it contains results you don't
12057 # want to keep, you may remove or edit it.
12058 #
12059 # config.status only pays attention to the cache file if you give it
12060 # the --recheck option to rerun configure.
12061 #
12062 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12063 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12064 # following values.
12065
12066 _ACEOF
12067
12068 # The following way of writing the cache mishandles newlines in values,
12069 # but we know of no workaround that is simple, portable, and efficient.
12070 # So, we kill variables containing newlines.
12071 # Ultrix sh set writes to stderr and can't be redirected directly,
12072 # and sets the high bit in the cache file unless we assign to the vars.
12073 (
12074 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12075 eval ac_val=\$$ac_var
12076 case $ac_val in #(
12077 *${as_nl}*)
12078 case $ac_var in #(
12079 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12080 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12081 esac
12082 case $ac_var in #(
12083 _ | IFS | as_nl) ;; #(
12084 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12085 *) { eval $ac_var=; unset $ac_var;} ;;
12086 esac ;;
12087 esac
12088 done
12089
12090 (set) 2>&1 |
12091 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12092 *${as_nl}ac_space=\ *)
12093 # 'set' does not quote correctly, so add quotes: double-quote
12094 # substitution turns \\\\ into \\, and sed turns \\ into \.
12095 sed -n \
12096 "s/'/'\\\\''/g;
12097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12098 ;; #(
12099 *)
12100 # 'set' quotes correctly as required by POSIX, so do not add quotes.
12101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12102 ;;
12103 esac |
12104 sort
12105 ) |
12106 sed '
12107 /^ac_cv_env_/b end
12108 t clear
12109 :clear
12110 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12111 t end
12112 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12113 :end' >>confcache
12114 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12115 if test -w "$cache_file"; then
12116 if test "x$cache_file" != "x/dev/null"; then
12117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12118 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12119 if test ! -f "$cache_file" || test -h "$cache_file"; then
12120 cat confcache >"$cache_file"
12121 else
12122 case $cache_file in #(
12123 */* | ?:*)
12124 mv -f confcache "$cache_file"$$ &&
12125 mv -f "$cache_file"$$ "$cache_file" ;; #(
12126 *)
12127 mv -f confcache "$cache_file" ;;
12128 esac
12129 fi
12130 fi
12131 else
12132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12133 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12134 fi
12135 fi
12136 rm -f confcache
12137
12138 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12139 # Let make expand exec_prefix.
12140 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12141
12142 DEFS=-DHAVE_CONFIG_H
12143
12144 ac_libobjs=
12145 ac_ltlibobjs=
12146 U=
12147 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12148 # 1. Remove the extension, and $U if already installed.
12149 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12150 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12151 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12152 # will be set to the directory where LIBOBJS objects are built.
12153 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12154 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12155 done
12156 LIBOBJS=$ac_libobjs
12157
12158 LTLIBOBJS=$ac_ltlibobjs
12159
12160
12161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12162 printf %s "checking that generated files are newer than configure... " >&6; }
12163 if test -n "$am_sleep_pid"; then
12164 # Hide warnings about reused PIDs.
12165 wait $am_sleep_pid 2>/dev/null
12166 fi
12167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12168 printf "%s\n" "done" >&6; }
12169 if test -n "$EXEEXT"; then
12170 am__EXEEXT_TRUE=
12171 am__EXEEXT_FALSE='#'
12172 else
12173 am__EXEEXT_TRUE='#'
12174 am__EXEEXT_FALSE=
12175 fi
12176
12177 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12178 as_fn_error $? "conditional \"AMDEP\" was never defined.
12179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12180 fi
12181 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12182 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12184 fi
12185 # Check whether --enable-year2038 was given.
12186 if test ${enable_year2038+y}
12187 then :
12188 enableval=$enable_year2038;
12189 fi
12190
12191
12192 : "${CONFIG_STATUS=./config.status}"
12193 ac_write_fail=0
12194 ac_clean_files_save=$ac_clean_files
12195 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12197 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12198 as_write_fail=0
12199 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12200 #! $SHELL
12201 # Generated by $as_me.
12202 # Run this file to recreate the current configuration.
12203 # Compiler output produced by configure, useful for debugging
12204 # configure, is in config.log if it exists.
12205
12206 debug=false
12207 ac_cs_recheck=false
12208 ac_cs_silent=false
12209
12210 SHELL=\${CONFIG_SHELL-$SHELL}
12211 export SHELL
12212 _ASEOF
12213 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12214 ## -------------------- ##
12215 ## M4sh Initialization. ##
12216 ## -------------------- ##
12217
12218 # Be more Bourne compatible
12219 DUALCASE=1; export DUALCASE # for MKS sh
12220 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12221 then :
12222 emulate sh
12223 NULLCMD=:
12224 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12225 # is contrary to our usage. Disable this feature.
12226 alias -g '${1+"$@"}'='"$@"'
12227 setopt NO_GLOB_SUBST
12228 else case e in #(
12229 e) case `(set -o) 2>/dev/null` in #(
12230 *posix*) :
12231 set -o posix ;; #(
12232 *) :
12233 ;;
12234 esac ;;
12235 esac
12236 fi
12237
12238
12239
12240 # Reset variables that may have inherited troublesome values from
12241 # the environment.
12242
12243 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12244 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12245 # side effect of setting IFS to empty, thus disabling word splitting.)
12246 # Quoting is to prevent editors from complaining about space-tab.
12247 as_nl='
12248 '
12249 export as_nl
12250 IFS=" "" $as_nl"
12251
12252 PS1='$ '
12253 PS2='> '
12254 PS4='+ '
12255
12256 # Ensure predictable behavior from utilities with locale-dependent output.
12257 LC_ALL=C
12258 export LC_ALL
12259 LANGUAGE=C
12260 export LANGUAGE
12261
12262 # We cannot yet rely on "unset" to work, but we need these variables
12263 # to be unset--not just set to an empty or harmless value--now, to
12264 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12265 # also avoids known problems related to "unset" and subshell syntax
12266 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12267 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12268 do eval test \${$as_var+y} \
12269 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12270 done
12271
12272 # Ensure that fds 0, 1, and 2 are open.
12273 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12274 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12275 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12276
12277 # The user is always right.
12278 if ${PATH_SEPARATOR+false} :; then
12279 PATH_SEPARATOR=:
12280 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12281 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12282 PATH_SEPARATOR=';'
12283 }
12284 fi
12285
12286
12287 # Find who we are. Look in the path if we contain no directory separator.
12288 as_myself=
12289 case $0 in #((
12290 *[\\/]* ) as_myself=$0 ;;
12291 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12292 for as_dir in $PATH
12293 do
12294 IFS=$as_save_IFS
12295 case $as_dir in #(((
12296 '') as_dir=./ ;;
12297 */) ;;
12298 *) as_dir=$as_dir/ ;;
12299 esac
12300 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12301 done
12302 IFS=$as_save_IFS
12303
12304 ;;
12305 esac
12306 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12307 # in which case we are not to be found in the path.
12308 if test "x$as_myself" = x; then
12309 as_myself=$0
12310 fi
12311 if test ! -f "$as_myself"; then
12312 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12313 exit 1
12314 fi
12315
12316
12317
12318 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12319 # ----------------------------------------
12320 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12321 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12322 # script with STATUS, using 1 if that was 0.
12323 as_fn_error ()
12324 {
12325 as_status=$1; test $as_status -eq 0 && as_status=1
12326 if test "$4"; then
12327 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12328 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12329 fi
12330 printf "%s\n" "$as_me: error: $2" >&2
12331 as_fn_exit $as_status
12332 } # as_fn_error
12333
12334
12335 # as_fn_set_status STATUS
12336 # -----------------------
12337 # Set $? to STATUS, without forking.
12338 as_fn_set_status ()
12339 {
12340 return $1
12341 } # as_fn_set_status
12342
12343 # as_fn_exit STATUS
12344 # -----------------
12345 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12346 as_fn_exit ()
12347 {
12348 set +e
12349 as_fn_set_status $1
12350 exit $1
12351 } # as_fn_exit
12352
12353 # as_fn_unset VAR
12354 # ---------------
12355 # Portably unset VAR.
12356 as_fn_unset ()
12357 {
12358 { eval $1=; unset $1;}
12359 }
12360 as_unset=as_fn_unset
12361
12362 # as_fn_append VAR VALUE
12363 # ----------------------
12364 # Append the text in VALUE to the end of the definition contained in VAR. Take
12365 # advantage of any shell optimizations that allow amortized linear growth over
12366 # repeated appends, instead of the typical quadratic growth present in naive
12367 # implementations.
12368 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12369 then :
12370 eval 'as_fn_append ()
12371 {
12372 eval $1+=\$2
12373 }'
12374 else case e in #(
12375 e) as_fn_append ()
12376 {
12377 eval $1=\$$1\$2
12378 } ;;
12379 esac
12380 fi # as_fn_append
12381
12382 # as_fn_arith ARG...
12383 # ------------------
12384 # Perform arithmetic evaluation on the ARGs, and store the result in the
12385 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12386 # must be portable across $(()) and expr.
12387 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12388 then :
12389 eval 'as_fn_arith ()
12390 {
12391 as_val=$(( $* ))
12392 }'
12393 else case e in #(
12394 e) as_fn_arith ()
12395 {
12396 as_val=`expr "$@" || test $? -eq 1`
12397 } ;;
12398 esac
12399 fi # as_fn_arith
12400
12401
12402 if expr a : '\(a\)' >/dev/null 2>&1 &&
12403 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12404 as_expr=expr
12405 else
12406 as_expr=false
12407 fi
12408
12409 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12410 as_basename=basename
12411 else
12412 as_basename=false
12413 fi
12414
12415 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12416 as_dirname=dirname
12417 else
12418 as_dirname=false
12419 fi
12420
12421 as_me=`$as_basename -- "$0" ||
12422 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12423 X"$0" : 'X\(//\)$' \| \
12424 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12425 printf "%s\n" X/"$0" |
12426 sed '/^.*\/\([^/][^/]*\)\/*$/{
12427 s//\1/
12428 q
12429 }
12430 /^X\/\(\/\/\)$/{
12431 s//\1/
12432 q
12433 }
12434 /^X\/\(\/\).*/{
12435 s//\1/
12436 q
12437 }
12438 s/.*/./; q'`
12439
12440 # Avoid depending upon Character Ranges.
12441 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12442 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12443 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12444 as_cr_digits='0123456789'
12445 as_cr_alnum=$as_cr_Letters$as_cr_digits
12446
12447
12448 # Determine whether it's possible to make 'echo' print without a newline.
12449 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12450 # for compatibility with existing Makefiles.
12451 ECHO_C= ECHO_N= ECHO_T=
12452 case `echo -n x` in #(((((
12453 -n*)
12454 case `echo 'xy\c'` in
12455 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12456 xy) ECHO_C='\c';;
12457 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12458 ECHO_T=' ';;
12459 esac;;
12460 *)
12461 ECHO_N='-n';;
12462 esac
12463
12464 # For backward compatibility with old third-party macros, we provide
12465 # the shell variables $as_echo and $as_echo_n. New code should use
12466 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12467 as_echo='printf %s\n'
12468 as_echo_n='printf %s'
12469
12470 rm -f conf$$ conf$$.exe conf$$.file
12471 if test -d conf$$.dir; then
12472 rm -f conf$$.dir/conf$$.file
12473 else
12474 rm -f conf$$.dir
12475 mkdir conf$$.dir 2>/dev/null
12476 fi
12477 if (echo >conf$$.file) 2>/dev/null; then
12478 if ln -s conf$$.file conf$$ 2>/dev/null; then
12479 as_ln_s='ln -s'
12480 # ... but there are two gotchas:
12481 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12482 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12483 # In both cases, we have to default to 'cp -pR'.
12484 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12485 as_ln_s='cp -pR'
12486 elif ln conf$$.file conf$$ 2>/dev/null; then
12487 as_ln_s=ln
12488 else
12489 as_ln_s='cp -pR'
12490 fi
12491 else
12492 as_ln_s='cp -pR'
12493 fi
12494 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12495 rmdir conf$$.dir 2>/dev/null
12496
12497
12498 # as_fn_mkdir_p
12499 # -------------
12500 # Create "$as_dir" as a directory, including parents if necessary.
12501 as_fn_mkdir_p ()
12502 {
12503
12504 case $as_dir in #(
12505 -*) as_dir=./$as_dir;;
12506 esac
12507 test -d "$as_dir" || eval $as_mkdir_p || {
12508 as_dirs=
12509 while :; do
12510 case $as_dir in #(
12511 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12512 *) as_qdir=$as_dir;;
12513 esac
12514 as_dirs="'$as_qdir' $as_dirs"
12515 as_dir=`$as_dirname -- "$as_dir" ||
12516 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12517 X"$as_dir" : 'X\(//\)[^/]' \| \
12518 X"$as_dir" : 'X\(//\)$' \| \
12519 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12520 printf "%s\n" X"$as_dir" |
12521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12522 s//\1/
12523 q
12524 }
12525 /^X\(\/\/\)[^/].*/{
12526 s//\1/
12527 q
12528 }
12529 /^X\(\/\/\)$/{
12530 s//\1/
12531 q
12532 }
12533 /^X\(\/\).*/{
12534 s//\1/
12535 q
12536 }
12537 s/.*/./; q'`
12538 test -d "$as_dir" && break
12539 done
12540 test -z "$as_dirs" || eval "mkdir $as_dirs"
12541 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12542
12543
12544 } # as_fn_mkdir_p
12545 if mkdir -p . 2>/dev/null; then
12546 as_mkdir_p='mkdir -p "$as_dir"'
12547 else
12548 test -d ./-p && rmdir ./-p
12549 as_mkdir_p=false
12550 fi
12551
12552
12553 # as_fn_executable_p FILE
12554 # -----------------------
12555 # Test if FILE is an executable regular file.
12556 as_fn_executable_p ()
12557 {
12558 test -f "$1" && test -x "$1"
12559 } # as_fn_executable_p
12560 as_test_x='test -x'
12561 as_executable_p=as_fn_executable_p
12562
12563 # Sed expression to map a string onto a valid CPP name.
12564 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12565 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12566
12567 # Sed expression to map a string onto a valid variable name.
12568 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12569 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12570
12571
12572 exec 6>&1
12573 ## ----------------------------------- ##
12574 ## Main body of $CONFIG_STATUS script. ##
12575 ## ----------------------------------- ##
12576 _ASEOF
12577 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12578
12579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12580 # Save the log message, to keep $0 and so on meaningful, and to
12581 # report actual input values of CONFIG_FILES etc. instead of their
12582 # values after options handling.
12583 ac_log="
12584 This file was extended by xditview $as_me 1.0.7, which was
12585 generated by GNU Autoconf 2.72. Invocation command line was
12586
12587 CONFIG_FILES = $CONFIG_FILES
12588 CONFIG_HEADERS = $CONFIG_HEADERS
12589 CONFIG_LINKS = $CONFIG_LINKS
12590 CONFIG_COMMANDS = $CONFIG_COMMANDS
12591 $ $0 $@
12592
12593 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12594 "
12595
12596 _ACEOF
12597
12598 case $ac_config_files in *"
12599 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12600 esac
12601
12602 case $ac_config_headers in *"
12603 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12604 esac
12605
12606
12607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12608 # Files that config.status was made for.
12609 config_files="$ac_config_files"
12610 config_headers="$ac_config_headers"
12611 config_commands="$ac_config_commands"
12612
12613 _ACEOF
12614
12615 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12616 ac_cs_usage="\
12617 '$as_me' instantiates files and other configuration actions
12618 from templates according to the current configuration. Unless the files
12619 and actions are specified as TAGs, all are instantiated by default.
12620
12621 Usage: $0 [OPTION]... [TAG]...
12622
12623 -h, --help print this help, then exit
12624 -V, --version print version number and configuration settings, then exit
12625 --config print configuration, then exit
12626 -q, --quiet, --silent
12627 do not print progress messages
12628 -d, --debug don't remove temporary files
12629 --recheck update $as_me by reconfiguring in the same conditions
12630 --file=FILE[:TEMPLATE]
12631 instantiate the configuration file FILE
12632 --header=FILE[:TEMPLATE]
12633 instantiate the configuration header FILE
12634
12635 Configuration files:
12636 $config_files
12637
12638 Configuration headers:
12639 $config_headers
12640
12641 Configuration commands:
12642 $config_commands
12643
12644 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xditview/-/issues>."
12645
12646 _ACEOF
12647 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12648 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12650 ac_cs_config='$ac_cs_config_escaped'
12651 ac_cs_version="\\
12652 xditview config.status 1.0.7
12653 configured by $0, generated by GNU Autoconf 2.72,
12654 with options \\"\$ac_cs_config\\"
12655
12656 Copyright (C) 2023 Free Software Foundation, Inc.
12657 This config.status script is free software; the Free Software Foundation
12658 gives unlimited permission to copy, distribute and modify it."
12659
12660 ac_pwd='$ac_pwd'
12661 srcdir='$srcdir'
12662 INSTALL='$INSTALL'
12663 MKDIR_P='$MKDIR_P'
12664 AWK='$AWK'
12665 test -n "\$AWK" || AWK=awk
12666 _ACEOF
12667
12668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12669 # The default lists apply if the user does not specify any file.
12670 ac_need_defaults=:
12671 while test $# != 0
12672 do
12673 case $1 in
12674 --*=?*)
12675 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12676 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12677 ac_shift=:
12678 ;;
12679 --*=)
12680 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12681 ac_optarg=
12682 ac_shift=:
12683 ;;
12684 *)
12685 ac_option=$1
12686 ac_optarg=$2
12687 ac_shift=shift
12688 ;;
12689 esac
12690
12691 case $ac_option in
12692 # Handling of the options.
12693 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12694 ac_cs_recheck=: ;;
12695 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12696 printf "%s\n" "$ac_cs_version"; exit ;;
12697 --config | --confi | --conf | --con | --co | --c )
12698 printf "%s\n" "$ac_cs_config"; exit ;;
12699 --debug | --debu | --deb | --de | --d | -d )
12700 debug=: ;;
12701 --file | --fil | --fi | --f )
12702 $ac_shift
12703 case $ac_optarg in
12704 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12705 '') as_fn_error $? "missing file argument" ;;
12706 esac
12707 as_fn_append CONFIG_FILES " '$ac_optarg'"
12708 ac_need_defaults=false;;
12709 --header | --heade | --head | --hea )
12710 $ac_shift
12711 case $ac_optarg in
12712 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12713 esac
12714 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12715 ac_need_defaults=false;;
12716 --he | --h)
12717 # Conflict between --help and --header
12718 as_fn_error $? "ambiguous option: '$1'
12719 Try '$0 --help' for more information.";;
12720 --help | --hel | -h )
12721 printf "%s\n" "$ac_cs_usage"; exit ;;
12722 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12723 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12724 ac_cs_silent=: ;;
12725
12726 # This is an error.
12727 -*) as_fn_error $? "unrecognized option: '$1'
12728 Try '$0 --help' for more information." ;;
12729
12730 *) as_fn_append ac_config_targets " $1"
12731 ac_need_defaults=false ;;
12732
12733 esac
12734 shift
12735 done
12736
12737 ac_configure_extra_args=
12738
12739 if $ac_cs_silent; then
12740 exec 6>/dev/null
12741 ac_configure_extra_args="$ac_configure_extra_args --silent"
12742 fi
12743
12744 _ACEOF
12745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12746 if \$ac_cs_recheck; then
12747 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12748 shift
12749 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12750 CONFIG_SHELL='$SHELL'
12751 export CONFIG_SHELL
12752 exec "\$@"
12753 fi
12754
12755 _ACEOF
12756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12757 exec 5>>config.log
12758 {
12759 echo
12760 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12761 ## Running $as_me. ##
12762 _ASBOX
12763 printf "%s\n" "$ac_log"
12764 } >&5
12765
12766 _ACEOF
12767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12768 #
12769 # INIT-COMMANDS
12770 #
12771 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12772
12773 _ACEOF
12774
12775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12776
12777 # Handling of arguments.
12778 for ac_config_target in $ac_config_targets
12779 do
12780 case $ac_config_target in
12781 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12782 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12783 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12784 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12785
12786 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12787 esac
12788 done
12789
12790
12791 # If the user did not use the arguments to specify the items to instantiate,
12792 # then the envvar interface is used. Set only those that are not.
12793 # We use the long form for the default assignment because of an extremely
12794 # bizarre bug on SunOS 4.1.3.
12795 if $ac_need_defaults; then
12796 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12797 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12798 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12799 fi
12800
12801 # Have a temporary directory for convenience. Make it in the build tree
12802 # simply because there is no reason against having it here, and in addition,
12803 # creating and moving files from /tmp can sometimes cause problems.
12804 # Hook for its removal unless debugging.
12805 # Note that there is a small window in which the directory will not be cleaned:
12806 # after its creation but before its name has been assigned to '$tmp'.
12807 $debug ||
12808 {
12809 tmp= ac_tmp=
12810 trap 'exit_status=$?
12811 : "${ac_tmp:=$tmp}"
12812 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12813 ' 0
12814 trap 'as_fn_exit 1' 1 2 13 15
12815 }
12816 # Create a (secure) tmp directory for tmp files.
12817
12818 {
12819 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12820 test -d "$tmp"
12821 } ||
12822 {
12823 tmp=./conf$$-$RANDOM
12824 (umask 077 && mkdir "$tmp")
12825 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12826 ac_tmp=$tmp
12827
12828 # Set up the scripts for CONFIG_FILES section.
12829 # No need to generate them if there are no CONFIG_FILES.
12830 # This happens for instance with './config.status config.h'.
12831 if test -n "$CONFIG_FILES"; then
12832
12833
12834 ac_cr=`echo X | tr X '\015'`
12835 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12836 # But we know of no other shell where ac_cr would be empty at this
12837 # point, so we can use a bashism as a fallback.
12838 if test "x$ac_cr" = x; then
12839 eval ac_cr=\$\'\\r\'
12840 fi
12841 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12842 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12843 ac_cs_awk_cr='\\r'
12844 else
12845 ac_cs_awk_cr=$ac_cr
12846 fi
12847
12848 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12849 _ACEOF
12850
12851
12852 {
12853 echo "cat >conf$$subs.awk <<_ACEOF" &&
12854 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12855 echo "_ACEOF"
12856 } >conf$$subs.sh ||
12857 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12858 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12859 ac_delim='%!_!# '
12860 for ac_last_try in false false false false false :; do
12861 . ./conf$$subs.sh ||
12862 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12863
12864 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12865 if test $ac_delim_n = $ac_delim_num; then
12866 break
12867 elif $ac_last_try; then
12868 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12869 else
12870 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12871 fi
12872 done
12873 rm -f conf$$subs.sh
12874
12875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12876 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12877 _ACEOF
12878 sed -n '
12879 h
12880 s/^/S["/; s/!.*/"]=/
12881 p
12882 g
12883 s/^[^!]*!//
12884 :repl
12885 t repl
12886 s/'"$ac_delim"'$//
12887 t delim
12888 :nl
12889 h
12890 s/\(.\{148\}\)..*/\1/
12891 t more1
12892 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12893 p
12894 n
12895 b repl
12896 :more1
12897 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12898 p
12899 g
12900 s/.\{148\}//
12901 t nl
12902 :delim
12903 h
12904 s/\(.\{148\}\)..*/\1/
12905 t more2
12906 s/["\\]/\\&/g; s/^/"/; s/$/"/
12907 p
12908 b
12909 :more2
12910 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12911 p
12912 g
12913 s/.\{148\}//
12914 t delim
12915 ' <conf$$subs.awk | sed '
12916 /^[^""]/{
12917 N
12918 s/\n//
12919 }
12920 ' >>$CONFIG_STATUS || ac_write_fail=1
12921 rm -f conf$$subs.awk
12922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12923 _ACAWK
12924 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12925 for (key in S) S_is_set[key] = 1
12926 FS = ""
12927
12928 }
12929 {
12930 line = $ 0
12931 nfields = split(line, field, "@")
12932 substed = 0
12933 len = length(field[1])
12934 for (i = 2; i < nfields; i++) {
12935 key = field[i]
12936 keylen = length(key)
12937 if (S_is_set[key]) {
12938 value = S[key]
12939 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12940 len += length(value) + length(field[++i])
12941 substed = 1
12942 } else
12943 len += 1 + keylen
12944 }
12945
12946 print line
12947 }
12948
12949 _ACAWK
12950 _ACEOF
12951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12952 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12953 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12954 else
12955 cat
12956 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12957 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12958 _ACEOF
12959
12960 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12961 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12962 # trailing colons and then remove the whole line if VPATH becomes empty
12963 # (actually we leave an empty line to preserve line numbers).
12964 if test "x$srcdir" = x.; then
12965 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12966 h
12967 s///
12968 s/^/:/
12969 s/[ ]*$/:/
12970 s/:\$(srcdir):/:/g
12971 s/:\${srcdir}:/:/g
12972 s/:@srcdir@:/:/g
12973 s/^:*//
12974 s/:*$//
12975 x
12976 s/\(=[ ]*\).*/\1/
12977 G
12978 s/\n//
12979 s/^[^=]*=[ ]*$//
12980 }'
12981 fi
12982
12983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12984 fi # test -n "$CONFIG_FILES"
12985
12986 # Set up the scripts for CONFIG_HEADERS section.
12987 # No need to generate them if there are no CONFIG_HEADERS.
12988 # This happens for instance with './config.status Makefile'.
12989 if test -n "$CONFIG_HEADERS"; then
12990 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12991 BEGIN {
12992 _ACEOF
12993
12994 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12995 # here-document in config.status, that substitutes the proper values into
12996 # config.h.in to produce config.h.
12997
12998 # Create a delimiter string that does not exist in confdefs.h, to ease
12999 # handling of long lines.
13000 ac_delim='%!_!# '
13001 for ac_last_try in false false :; do
13002 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13003 if test -z "$ac_tt"; then
13004 break
13005 elif $ac_last_try; then
13006 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13007 else
13008 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13009 fi
13010 done
13011
13012 # For the awk script, D is an array of macro values keyed by name,
13013 # likewise P contains macro parameters if any. Preserve backslash
13014 # newline sequences.
13015
13016 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13017 sed -n '
13018 s/.\{148\}/&'"$ac_delim"'/g
13019 t rset
13020 :rset
13021 s/^[ ]*#[ ]*define[ ][ ]*/ /
13022 t def
13023 d
13024 :def
13025 s/\\$//
13026 t bsnl
13027 s/["\\]/\\&/g
13028 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13029 D["\1"]=" \3"/p
13030 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13031 d
13032 :bsnl
13033 s/["\\]/\\&/g
13034 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13035 D["\1"]=" \3\\\\\\n"\\/p
13036 t cont
13037 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13038 t cont
13039 d
13040 :cont
13041 n
13042 s/.\{148\}/&'"$ac_delim"'/g
13043 t clear
13044 :clear
13045 s/\\$//
13046 t bsnlc
13047 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13048 d
13049 :bsnlc
13050 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13051 b cont
13052 ' <confdefs.h | sed '
13053 s/'"$ac_delim"'/"\\\
13054 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13055
13056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13057 for (key in D) D_is_set[key] = 1
13058 FS = ""
13059 }
13060 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13061 line = \$ 0
13062 split(line, arg, " ")
13063 if (arg[1] == "#") {
13064 defundef = arg[2]
13065 mac1 = arg[3]
13066 } else {
13067 defundef = substr(arg[1], 2)
13068 mac1 = arg[2]
13069 }
13070 split(mac1, mac2, "(") #)
13071 macro = mac2[1]
13072 prefix = substr(line, 1, index(line, defundef) - 1)
13073 if (D_is_set[macro]) {
13074 # Preserve the white space surrounding the "#".
13075 print prefix "define", macro P[macro] D[macro]
13076 next
13077 } else {
13078 # Replace #undef with comments. This is necessary, for example,
13079 # in the case of _POSIX_SOURCE, which is predefined and required
13080 # on some systems where configure will not decide to define it.
13081 if (defundef == "undef") {
13082 print "/*", prefix defundef, macro, "*/"
13083 next
13084 }
13085 }
13086 }
13087 { print }
13088 _ACAWK
13089 _ACEOF
13090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13091 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13092 fi # test -n "$CONFIG_HEADERS"
13093
13094
13095 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13096 shift
13097 for ac_tag
13098 do
13099 case $ac_tag in
13100 :[FHLC]) ac_mode=$ac_tag; continue;;
13101 esac
13102 case $ac_mode$ac_tag in
13103 :[FHL]*:*);;
13104 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13105 :[FH]-) ac_tag=-:-;;
13106 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13107 esac
13108 ac_save_IFS=$IFS
13109 IFS=:
13110 set x $ac_tag
13111 IFS=$ac_save_IFS
13112 shift
13113 ac_file=$1
13114 shift
13115
13116 case $ac_mode in
13117 :L) ac_source=$1;;
13118 :[FH])
13119 ac_file_inputs=
13120 for ac_f
13121 do
13122 case $ac_f in
13123 -) ac_f="$ac_tmp/stdin";;
13124 *) # Look for the file first in the build tree, then in the source tree
13125 # (if the path is not absolute). The absolute path cannot be DOS-style,
13126 # because $ac_f cannot contain ':'.
13127 test -f "$ac_f" ||
13128 case $ac_f in
13129 [\\/$]*) false;;
13130 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13131 esac ||
13132 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13133 esac
13134 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13135 as_fn_append ac_file_inputs " '$ac_f'"
13136 done
13137
13138 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13139 # use $as_me), people would be surprised to read:
13140 # /* config.h. Generated by config.status. */
13141 configure_input='Generated from '`
13142 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13143 `' by configure.'
13144 if test x"$ac_file" != x-; then
13145 configure_input="$ac_file. $configure_input"
13146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13147 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13148 fi
13149 # Neutralize special characters interpreted by sed in replacement strings.
13150 case $configure_input in #(
13151 *\&* | *\|* | *\\* )
13152 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13153 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13154 *) ac_sed_conf_input=$configure_input;;
13155 esac
13156
13157 case $ac_tag in
13158 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13160 esac
13161 ;;
13162 esac
13163
13164 ac_dir=`$as_dirname -- "$ac_file" ||
13165 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13166 X"$ac_file" : 'X\(//\)[^/]' \| \
13167 X"$ac_file" : 'X\(//\)$' \| \
13168 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13169 printf "%s\n" X"$ac_file" |
13170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13171 s//\1/
13172 q
13173 }
13174 /^X\(\/\/\)[^/].*/{
13175 s//\1/
13176 q
13177 }
13178 /^X\(\/\/\)$/{
13179 s//\1/
13180 q
13181 }
13182 /^X\(\/\).*/{
13183 s//\1/
13184 q
13185 }
13186 s/.*/./; q'`
13187 as_dir="$ac_dir"; as_fn_mkdir_p
13188 ac_builddir=.
13189
13190 case "$ac_dir" in
13191 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13192 *)
13193 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13194 # A ".." for each directory in $ac_dir_suffix.
13195 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13196 case $ac_top_builddir_sub in
13197 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13198 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13199 esac ;;
13200 esac
13201 ac_abs_top_builddir=$ac_pwd
13202 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13203 # for backward compatibility:
13204 ac_top_builddir=$ac_top_build_prefix
13205
13206 case $srcdir in
13207 .) # We are building in place.
13208 ac_srcdir=.
13209 ac_top_srcdir=$ac_top_builddir_sub
13210 ac_abs_top_srcdir=$ac_pwd ;;
13211 [\\/]* | ?:[\\/]* ) # Absolute name.
13212 ac_srcdir=$srcdir$ac_dir_suffix;
13213 ac_top_srcdir=$srcdir
13214 ac_abs_top_srcdir=$srcdir ;;
13215 *) # Relative name.
13216 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13217 ac_top_srcdir=$ac_top_build_prefix$srcdir
13218 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13219 esac
13220 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13221
13222
13223 case $ac_mode in
13224 :F)
13225 #
13226 # CONFIG_FILE
13227 #
13228
13229 case $INSTALL in
13230 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13231 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13232 esac
13233 ac_MKDIR_P=$MKDIR_P
13234 case $MKDIR_P in
13235 [\\/$]* | ?:[\\/]* ) ;;
13236 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13237 esac
13238 _ACEOF
13239
13240 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13241 # If the template does not know about datarootdir, expand it.
13242 # FIXME: This hack should be removed a few years after 2.60.
13243 ac_datarootdir_hack=; ac_datarootdir_seen=
13244 ac_sed_dataroot='
13245 /datarootdir/ {
13246 p
13247 q
13248 }
13249 /@datadir@/p
13250 /@docdir@/p
13251 /@infodir@/p
13252 /@localedir@/p
13253 /@mandir@/p'
13254 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13255 *datarootdir*) ac_datarootdir_seen=yes;;
13256 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13258 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13259 _ACEOF
13260 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13261 ac_datarootdir_hack='
13262 s&@datadir@&$datadir&g
13263 s&@docdir@&$docdir&g
13264 s&@infodir@&$infodir&g
13265 s&@localedir@&$localedir&g
13266 s&@mandir@&$mandir&g
13267 s&\\\${datarootdir}&$datarootdir&g' ;;
13268 esac
13269 _ACEOF
13270
13271 # Neutralize VPATH when '$srcdir' = '.'.
13272 # Shell code in configure.ac might set extrasub.
13273 # FIXME: do we really want to maintain this feature?
13274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13275 ac_sed_extra="$ac_vpsub
13276 $extrasub
13277 _ACEOF
13278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13279 :t
13280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13281 s|@configure_input@|$ac_sed_conf_input|;t t
13282 s&@top_builddir@&$ac_top_builddir_sub&;t t
13283 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13284 s&@srcdir@&$ac_srcdir&;t t
13285 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13286 s&@top_srcdir@&$ac_top_srcdir&;t t
13287 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13288 s&@builddir@&$ac_builddir&;t t
13289 s&@abs_builddir@&$ac_abs_builddir&;t t
13290 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13291 s&@INSTALL@&$ac_INSTALL&;t t
13292 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13293 $ac_datarootdir_hack
13294 "
13295 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13296 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13297
13298 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13299 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13300 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13301 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13303 which seems to be undefined. Please make sure it is defined" >&5
13304 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13305 which seems to be undefined. Please make sure it is defined" >&2;}
13306
13307 rm -f "$ac_tmp/stdin"
13308 case $ac_file in
13309 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13310 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13311 esac \
13312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13313 ;;
13314 :H)
13315 #
13316 # CONFIG_HEADER
13317 #
13318 if test x"$ac_file" != x-; then
13319 {
13320 printf "%s\n" "/* $configure_input */" >&1 \
13321 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13322 } >"$ac_tmp/config.h" \
13323 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13324 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13326 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13327 else
13328 rm -f "$ac_file"
13329 mv "$ac_tmp/config.h" "$ac_file" \
13330 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13331 fi
13332 else
13333 printf "%s\n" "/* $configure_input */" >&1 \
13334 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13335 || as_fn_error $? "could not create -" "$LINENO" 5
13336 fi
13337 # Compute "$ac_file"'s index in $config_headers.
13338 _am_arg="$ac_file"
13339 _am_stamp_count=1
13340 for _am_header in $config_headers :; do
13341 case $_am_header in
13342 $_am_arg | $_am_arg:* )
13343 break ;;
13344 * )
13345 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13346 esac
13347 done
13348 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13349 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13350 X"$_am_arg" : 'X\(//\)[^/]' \| \
13351 X"$_am_arg" : 'X\(//\)$' \| \
13352 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13353 printf "%s\n" X"$_am_arg" |
13354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13355 s//\1/
13356 q
13357 }
13358 /^X\(\/\/\)[^/].*/{
13359 s//\1/
13360 q
13361 }
13362 /^X\(\/\/\)$/{
13363 s//\1/
13364 q
13365 }
13366 /^X\(\/\).*/{
13367 s//\1/
13368 q
13369 }
13370 s/.*/./; q'`/stamp-h$_am_stamp_count
13371 ;;
13372
13373 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13374 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13375 ;;
13376 esac
13377
13378
13379 case $ac_file$ac_mode in
13380 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13381 # Older Autoconf quotes --file arguments for eval, but not when files
13382 # are listed without --file. Let's play safe and only enable the eval
13383 # if we detect the quoting.
13384 # TODO: see whether this extra hack can be removed once we start
13385 # requiring Autoconf 2.70 or later.
13386 case $CONFIG_FILES in #(
13387 *\'*) :
13388 eval set x "$CONFIG_FILES" ;; #(
13389 *) :
13390 set x $CONFIG_FILES ;; #(
13391 *) :
13392 ;;
13393 esac
13394 shift
13395 # Used to flag and report bootstrapping failures.
13396 am_rc=0
13397 for am_mf
13398 do
13399 # Strip MF so we end up with the name of the file.
13400 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13401 # Check whether this is an Automake generated Makefile which includes
13402 # dependency-tracking related rules and includes.
13403 # Grep'ing the whole file directly is not great: AIX grep has a line
13404 # limit of 2048, but all sed's we know have understand at least 4000.
13405 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13406 || continue
13407 am_dirpart=`$as_dirname -- "$am_mf" ||
13408 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13409 X"$am_mf" : 'X\(//\)[^/]' \| \
13410 X"$am_mf" : 'X\(//\)$' \| \
13411 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13412 printf "%s\n" X"$am_mf" |
13413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13414 s//\1/
13415 q
13416 }
13417 /^X\(\/\/\)[^/].*/{
13418 s//\1/
13419 q
13420 }
13421 /^X\(\/\/\)$/{
13422 s//\1/
13423 q
13424 }
13425 /^X\(\/\).*/{
13426 s//\1/
13427 q
13428 }
13429 s/.*/./; q'`
13430 am_filepart=`$as_basename -- "$am_mf" ||
13431 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13432 X"$am_mf" : 'X\(//\)$' \| \
13433 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13434 printf "%s\n" X/"$am_mf" |
13435 sed '/^.*\/\([^/][^/]*\)\/*$/{
13436 s//\1/
13437 q
13438 }
13439 /^X\/\(\/\/\)$/{
13440 s//\1/
13441 q
13442 }
13443 /^X\/\(\/\).*/{
13444 s//\1/
13445 q
13446 }
13447 s/.*/./; q'`
13448 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13449 && sed -e '/# am--include-marker/d' "$am_filepart" \
13450 | $MAKE -f - am--depfiles" >&5
13451 (cd "$am_dirpart" \
13452 && sed -e '/# am--include-marker/d' "$am_filepart" \
13453 | $MAKE -f - am--depfiles) >&5 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); } || am_rc=$?
13457 done
13458 if test $am_rc -ne 0; then
13459 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13460 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13461 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13462 for automatic dependency tracking. If GNU make was not used, consider
13463 re-running the configure script with MAKE=\"gmake\" (or whatever is
13464 necessary). You can also try re-running configure with the
13465 '--disable-dependency-tracking' option to at least be able to build
13466 the package (albeit without support for automatic dependency tracking).
13467 See 'config.log' for more details" "$LINENO" 5; }
13468 fi
13469 { am_dirpart=; unset am_dirpart;}
13470 { am_filepart=; unset am_filepart;}
13471 { am_mf=; unset am_mf;}
13472 { am_rc=; unset am_rc;}
13473 rm -f conftest-deps.mk
13474 }
13475 ;;
13476
13477 esac
13478 done # for ac_tag
13479
13480
13481 as_fn_exit 0
13482 _ACEOF
13483 ac_clean_files=$ac_clean_files_save
13484
13485 test $ac_write_fail = 0 ||
13486 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13487
13488
13489 # configure is writing to config.log, and then calls config.status.
13490 # config.status does its own redirection, appending to config.log.
13491 # Unfortunately, on DOS this fails, as config.log is still kept open
13492 # by configure, so config.status won't be able to write to it; its
13493 # output is simply discarded. So we exec the FD to /dev/null,
13494 # effectively closing config.log, so it can be properly (re)opened and
13495 # appended to by config.status. When coming back to configure, we
13496 # need to make the FD available again.
13497 if test "$no_create" != yes; then
13498 ac_cs_success=:
13499 ac_config_status_args=
13500 test "$silent" = yes &&
13501 ac_config_status_args="$ac_config_status_args --quiet"
13502 exec 5>/dev/null
13503 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13504 exec 5>>config.log
13505 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13506 # would make configure fail if this is the last instruction.
13507 $ac_cs_success || as_fn_exit 1
13508 fi
13509 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13511 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13512 fi
13513
13514
13515 echo ""
13516 echo "$PACKAGE_STRING will be built with the following settings:"
13517 echo " XFT: "$USE_XFT
13518
13519