configure revision 1.1.1.10 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for sessreg 1.1.4.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/sessreg/-/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/sessreg/-/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='sessreg'
607 PACKAGE_TARNAME='sessreg'
608 PACKAGE_VERSION='1.1.4'
609 PACKAGE_STRING='sessreg 1.1.4'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/sessreg/-/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 SESSREG_LIBS
652 SESSREG_CFLAGS
653 LINT_FALSE
654 LINT_TRUE
655 LINT_FLAGS
656 LINT
657 MAN_SUBSTS
658 XORG_MAN_PAGE
659 ADMIN_MAN_DIR
660 DRIVER_MAN_DIR
661 MISC_MAN_DIR
662 FILE_MAN_DIR
663 LIB_MAN_DIR
664 APP_MAN_DIR
665 ADMIN_MAN_SUFFIX
666 DRIVER_MAN_SUFFIX
667 MISC_MAN_SUFFIX
668 FILE_MAN_SUFFIX
669 LIB_MAN_SUFFIX
670 APP_MAN_SUFFIX
671 SED
672 host_os
673 host_vendor
674 host_cpu
675 host
676 build_os
677 build_vendor
678 build_cpu
679 build
680 INSTALL_CMD
681 PKG_CONFIG_LIBDIR
682 PKG_CONFIG_PATH
683 PKG_CONFIG
684 CHANGELOG_CMD
685 STRICT_CFLAGS
686 CWARNFLAGS
687 BASE_CFLAGS
688 am__xargs_n
689 am__rm_f_notfound
690 AM_BACKSLASH
691 AM_DEFAULT_VERBOSITY
692 AM_DEFAULT_V
693 AM_V
694 CSCOPE
695 ETAGS
696 CTAGS
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__include
705 DEPDIR
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
711 AWK
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 OBJEXT
730 EXEEXT
731 ac_ct_CC
732 CPPFLAGS
733 LDFLAGS
734 CFLAGS
735 CC
736 target_alias
737 host_alias
738 build_alias
739 LIBS
740 ECHO_T
741 ECHO_N
742 ECHO_C
743 DEFS
744 mandir
745 localedir
746 libdir
747 psdir
748 pdfdir
749 dvidir
750 htmldir
751 infodir
752 docdir
753 oldincludedir
754 includedir
755 runstatedir
756 localstatedir
757 sharedstatedir
758 sysconfdir
759 datadir
760 datarootdir
761 libexecdir
762 sbindir
763 bindir
764 program_transform_name
765 prefix
766 exec_prefix
767 PACKAGE_URL
768 PACKAGE_BUGREPORT
769 PACKAGE_STRING
770 PACKAGE_VERSION
771 PACKAGE_TARNAME
772 PACKAGE_NAME
773 PATH_SEPARATOR
774 SHELL
775 am__quote'
776 ac_subst_files=''
777 ac_user_opts='
778 enable_option_checking
779 enable_largefile
780 enable_dependency_tracking
781 enable_silent_rules
782 enable_selective_werror
783 enable_strict_compilation
784 with_lint
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 LINT
799 LINT_FLAGS
800 SESSREG_CFLAGS
801 SESSREG_LIBS'
802
803
804 # Initialize some variables set by options.
805 ac_init_help=
806 ac_init_version=false
807 ac_unrecognized_opts=
808 ac_unrecognized_sep=
809 # The variables have the same names as the options, with
810 # dashes changed to underlines.
811 cache_file=/dev/null
812 exec_prefix=NONE
813 no_create=
814 no_recursion=
815 prefix=NONE
816 program_prefix=NONE
817 program_suffix=NONE
818 program_transform_name=s,x,x,
819 silent=
820 site=
821 srcdir=
822 verbose=
823 x_includes=NONE
824 x_libraries=NONE
825
826 # Installation directory options.
827 # These are left unexpanded so users can "make install exec_prefix=/foo"
828 # and all the variables that are supposed to be based on exec_prefix
829 # by default will actually change.
830 # Use braces instead of parens because sh, perl, etc. also accept them.
831 # (The list follows the same order as the GNU Coding Standards.)
832 bindir='${exec_prefix}/bin'
833 sbindir='${exec_prefix}/sbin'
834 libexecdir='${exec_prefix}/libexec'
835 datarootdir='${prefix}/share'
836 datadir='${datarootdir}'
837 sysconfdir='${prefix}/etc'
838 sharedstatedir='${prefix}/com'
839 localstatedir='${prefix}/var'
840 runstatedir='${localstatedir}/run'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
852
853 ac_prev=
854 ac_dashdash=
855 for ac_option
856 do
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
862 fi
863
864 case $ac_option in
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
868 esac
869
870 case $ac_dashdash$ac_option in
871 --)
872 ac_dashdash=yes ;;
873
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 bindir=$ac_optarg ;;
878
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
883
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
890
891 --config-cache | -C)
892 cache_file=config.cache ;;
893
894 -datadir | --datadir | --datadi | --datad)
895 ac_prev=datadir ;;
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
898
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
905
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: '$ac_useropt'"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
914 *"
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
921
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
926
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
931
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: '$ac_useropt'"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
940 *"
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
947
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
956
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
960
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
967
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
972
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
978
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
985
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
990
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
995
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1002
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1007
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1014
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1019
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1023
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1027
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1031
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1040
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1045
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1052
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1059
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1076
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1081
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1086
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1090
1091 -runstatedir | --runstatedir | --runstatedi | --runstated \
1092 | --runstate | --runstat | --runsta | --runst | --runs \
1093 | --run | --ru | --r)
1094 ac_prev=runstatedir ;;
1095 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1096 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1097 | --run=* | --ru=* | --r=*)
1098 runstatedir=$ac_optarg ;;
1099
1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1101 ac_prev=sbindir ;;
1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1103 | --sbi=* | --sb=*)
1104 sbindir=$ac_optarg ;;
1105
1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1108 | --sharedst | --shareds | --shared | --share | --shar \
1109 | --sha | --sh)
1110 ac_prev=sharedstatedir ;;
1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1114 | --sha=* | --sh=*)
1115 sharedstatedir=$ac_optarg ;;
1116
1117 -site | --site | --sit)
1118 ac_prev=site ;;
1119 -site=* | --site=* | --sit=*)
1120 site=$ac_optarg ;;
1121
1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1123 ac_prev=srcdir ;;
1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1125 srcdir=$ac_optarg ;;
1126
1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1128 | --syscon | --sysco | --sysc | --sys | --sy)
1129 ac_prev=sysconfdir ;;
1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1132 sysconfdir=$ac_optarg ;;
1133
1134 -target | --target | --targe | --targ | --tar | --ta | --t)
1135 ac_prev=target_alias ;;
1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1137 target_alias=$ac_optarg ;;
1138
1139 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 verbose=yes ;;
1141
1142 -version | --version | --versio | --versi | --vers | -V)
1143 ac_init_version=: ;;
1144
1145 -with-* | --with-*)
1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149 as_fn_error $? "invalid package name: '$ac_useropt'"
1150 ac_useropt_orig=$ac_useropt
1151 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1152 case $ac_user_opts in
1153 *"
1154 "with_$ac_useropt"
1155 "*) ;;
1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1157 ac_unrecognized_sep=', ';;
1158 esac
1159 eval with_$ac_useropt=\$ac_optarg ;;
1160
1161 -without-* | --without-*)
1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1163 # Reject names that are not valid shell variable names.
1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1165 as_fn_error $? "invalid package name: '$ac_useropt'"
1166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1169 *"
1170 "with_$ac_useropt"
1171 "*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=no ;;
1176
1177 --x)
1178 # Obsolete; use --with-x.
1179 with_x=yes ;;
1180
1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1182 | --x-incl | --x-inc | --x-in | --x-i)
1183 ac_prev=x_includes ;;
1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1186 x_includes=$ac_optarg ;;
1187
1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1190 ac_prev=x_libraries ;;
1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1193 x_libraries=$ac_optarg ;;
1194
1195 -*) as_fn_error $? "unrecognized option: '$ac_option'
1196 Try '$0 --help' for more information"
1197 ;;
1198
1199 *=*)
1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1201 # Reject names that are not valid shell variable names.
1202 case $ac_envvar in #(
1203 '' | [0-9]* | *[!_$as_cr_alnum]* )
1204 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1205 esac
1206 eval $ac_envvar=\$ac_optarg
1207 export $ac_envvar ;;
1208
1209 *)
1210 # FIXME: should be removed in autoconf 3.0.
1211 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1213 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1215 ;;
1216
1217 esac
1218 done
1219
1220 if test -n "$ac_prev"; then
1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1222 as_fn_error $? "missing argument to $ac_option"
1223 fi
1224
1225 if test -n "$ac_unrecognized_opts"; then
1226 case $enable_option_checking in
1227 no) ;;
1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1229 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 esac
1231 fi
1232
1233 # Check all directory arguments for consistency.
1234 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1235 datadir sysconfdir sharedstatedir localstatedir includedir \
1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1237 libdir localedir mandir runstatedir
1238 do
1239 eval ac_val=\$$ac_var
1240 # Remove trailing slashes.
1241 case $ac_val in
1242 */ )
1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1244 eval $ac_var=\$ac_val;;
1245 esac
1246 # Be sure to have absolute directory names.
1247 case $ac_val in
1248 [\\/$]* | ?:[\\/]* ) continue;;
1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1250 esac
1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1252 done
1253
1254 # There might be people who depend on the old broken behavior: '$host'
1255 # used to hold the argument of --host etc.
1256 # FIXME: To remove some day.
1257 build=$build_alias
1258 host=$host_alias
1259 target=$target_alias
1260
1261 # FIXME: To remove some day.
1262 if test "x$host_alias" != x; then
1263 if test "x$build_alias" = x; then
1264 cross_compiling=maybe
1265 elif test "x$build_alias" != "x$host_alias"; then
1266 cross_compiling=yes
1267 fi
1268 fi
1269
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273 test "$silent" = yes && exec 6>/dev/null
1274
1275
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 as_fn_error $? "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281 as_fn_error $? "pwd does not report name of working directory"
1282
1283
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286 ac_srcdir_defaulted=yes
1287 # Try the directory containing this script, then the parent directory.
1288 ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290 X"$as_myself" : 'X\(//\)[^/]' \| \
1291 X"$as_myself" : 'X\(//\)$' \| \
1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 printf "%s\n" X"$as_myself" |
1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295 s//\1/
1296 q
1297 }
1298 /^X\(\/\/\)[^/].*/{
1299 s//\1/
1300 q
1301 }
1302 /^X\(\/\/\)$/{
1303 s//\1/
1304 q
1305 }
1306 /^X\(\/\).*/{
1307 s//\1/
1308 q
1309 }
1310 s/.*/./; q'`
1311 srcdir=$ac_confdir
1312 if test ! -r "$srcdir/$ac_unique_file"; then
1313 srcdir=..
1314 fi
1315 else
1316 ac_srcdir_defaulted=no
1317 fi
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1321 fi
1322 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1323 ac_abs_confdir=`(
1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1325 pwd)`
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 srcdir=.
1329 fi
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1333 case $srcdir in
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 esac
1336 for ac_var in $ac_precious_vars; do
1337 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_env_${ac_var}_value=\$${ac_var}
1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 done
1342
1343 #
1344 # Report the --help message.
1345 #
1346 if test "$ac_init_help" = "long"; then
1347 # Omit some internal or obsolete options to make the list less imposing.
1348 # This message is too long to be a string in the A/UX 3.1 sh.
1349 cat <<_ACEOF
1350 'configure' configures sessreg 1.1.4 to adapt to many kinds of systems.
1351
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1353
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE. See below for descriptions of some of the useful variables.
1356
1357 Defaults for the options are specified in brackets.
1358
1359 Configuration:
1360 -h, --help display this help and exit
1361 --help=short display options specific to this package
1362 --help=recursive display the short help of all the included packages
1363 -V, --version display version information and exit
1364 -q, --quiet, --silent do not print 'checking ...' messages
1365 --cache-file=FILE cache test results in FILE [disabled]
1366 -C, --config-cache alias for '--cache-file=config.cache'
1367 -n, --no-create do not create output files
1368 --srcdir=DIR find the sources in DIR [configure dir or '..']
1369
1370 Installation directories:
1371 --prefix=PREFIX install architecture-independent files in PREFIX
1372 [$ac_default_prefix]
1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 [PREFIX]
1375
1376 By default, 'make install' will install all the files in
1377 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1378 an installation prefix other than '$ac_default_prefix' using '--prefix',
1379 for instance '--prefix=\$HOME'.
1380
1381 For better control, use the options below.
1382
1383 Fine tuning of the installation directories:
1384 --bindir=DIR user executables [EPREFIX/bin]
1385 --sbindir=DIR system admin executables [EPREFIX/sbin]
1386 --libexecdir=DIR program executables [EPREFIX/libexec]
1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1390 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1391 --libdir=DIR object code libraries [EPREFIX/lib]
1392 --includedir=DIR C header files [PREFIX/include]
1393 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1396 --infodir=DIR info documentation [DATAROOTDIR/info]
1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1398 --mandir=DIR man documentation [DATAROOTDIR/man]
1399 --docdir=DIR documentation root [DATAROOTDIR/doc/sessreg]
1400 --htmldir=DIR html documentation [DOCDIR]
1401 --dvidir=DIR dvi documentation [DOCDIR]
1402 --pdfdir=DIR pdf documentation [DOCDIR]
1403 --psdir=DIR ps documentation [DOCDIR]
1404 _ACEOF
1405
1406 cat <<\_ACEOF
1407
1408 Program names:
1409 --program-prefix=PREFIX prepend PREFIX to installed program names
1410 --program-suffix=SUFFIX append SUFFIX to installed program names
1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1412
1413 System types:
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 _ACEOF
1417 fi
1418
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive ) echo "Configuration of sessreg 1.1.4:";;
1422 esac
1423 cat <<\_ACEOF
1424
1425 Optional Features:
1426 --disable-option-checking ignore unrecognized --enable/--with options
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --disable-largefile omit support for large files
1430 --enable-dependency-tracking
1431 do not reject slow dependency extractors
1432 --disable-dependency-tracking
1433 speeds up one-time build
1434 --enable-silent-rules less verbose build output (undo: "make V=1")
1435 --disable-silent-rules verbose build output (undo: "make V=0")
1436 --disable-selective-werror
1437 Turn off selective compiler errors. (default:
1438 enabled)
1439 --enable-strict-compilation
1440 Enable all warnings from compiler and make them
1441 errors (default: disabled)
1442 --enable-year2038 support timestamps after 2038
1443
1444 Optional Packages:
1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1447 --with-lint Use a lint-style source code checker (default:
1448 disabled)
1449
1450 Some influential environment variables:
1451 CC C compiler command
1452 CFLAGS C compiler flags
1453 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1454 nonstandard directory <lib dir>
1455 LIBS libraries to pass to the linker, e.g. -l<library>
1456 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1457 you have headers in a nonstandard directory <include dir>
1458 PKG_CONFIG path to pkg-config utility
1459 PKG_CONFIG_PATH
1460 directories to add to pkg-config's search path
1461 PKG_CONFIG_LIBDIR
1462 path overriding pkg-config's built-in search path
1463 LINT Path to a lint-style command
1464 LINT_FLAGS Flags for the lint-style command
1465 SESSREG_CFLAGS
1466 C compiler flags for SESSREG, overriding pkg-config
1467 SESSREG_LIBS
1468 linker flags for SESSREG, overriding pkg-config
1469
1470 Use these variables to override the choices made by 'configure' or to help
1471 it to find libraries and programs with nonstandard names/locations.
1472
1473 Report bugs to <https://gitlab.freedesktop.org/xorg/app/sessreg/-/issues>.
1474 _ACEOF
1475 ac_status=$?
1476 fi
1477
1478 if test "$ac_init_help" = "recursive"; then
1479 # If there are subdirs, report their specific --help.
1480 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1481 test -d "$ac_dir" ||
1482 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1483 continue
1484 ac_builddir=.
1485
1486 case "$ac_dir" in
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *)
1489 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1495 esac ;;
1496 esac
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1501
1502 case $srcdir in
1503 .) # We are building in place.
1504 ac_srcdir=.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1511 *) # Relative name.
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1515 esac
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1517
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for configure.gnu first; this name is used for a wrapper for
1520 # Metaconfig's "Configure" on case-insensitive file systems.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1522 echo &&
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1527 else
1528 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 fi || ac_status=$?
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1531 done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536 cat <<\_ACEOF
1537 sessreg configure 1.1.4
1538 generated by GNU Autoconf 2.72
1539
1540 Copyright (C) 2023 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1543 _ACEOF
1544 exit
1545 fi
1546
1547 ## ------------------------ ##
1548 ## Autoconf initialization. ##
1549 ## ------------------------ ##
1550
1551 # ac_fn_c_try_compile LINENO
1552 # --------------------------
1553 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1554 ac_fn_c_try_compile ()
1555 {
1556 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1557 rm -f conftest.$ac_objext conftest.beam
1558 if { { ac_try="$ac_compile"
1559 case "(($ac_try" in
1560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561 *) ac_try_echo=$ac_try;;
1562 esac
1563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564 printf "%s\n" "$ac_try_echo"; } >&5
1565 (eval "$ac_compile") 2>conftest.err
1566 ac_status=$?
1567 if test -s conftest.err; then
1568 grep -v '^ *+' conftest.err >conftest.er1
1569 cat conftest.er1 >&5
1570 mv -f conftest.er1 conftest.err
1571 fi
1572 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573 test $ac_status = 0; } && {
1574 test -z "$ac_c_werror_flag" ||
1575 test ! -s conftest.err
1576 } && test -s conftest.$ac_objext
1577 then :
1578 ac_retval=0
1579 else case e in #(
1580 e) printf "%s\n" "$as_me: failed program was:" >&5
1581 sed 's/^/| /' conftest.$ac_ext >&5
1582
1583 ac_retval=1 ;;
1584 esac
1585 fi
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1588
1589 } # ac_fn_c_try_compile
1590
1591 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1592 # -------------------------------------------------------
1593 # Tests whether HEADER exists and can be compiled using the include files in
1594 # INCLUDES, setting the cache variable VAR accordingly.
1595 ac_fn_c_check_header_compile ()
1596 {
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599 printf %s "checking for $2... " >&6; }
1600 if eval test \${$3+y}
1601 then :
1602 printf %s "(cached) " >&6
1603 else case e in #(
1604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h. */
1606 $4
1607 #include <$2>
1608 _ACEOF
1609 if ac_fn_c_try_compile "$LINENO"
1610 then :
1611 eval "$3=yes"
1612 else case e in #(
1613 e) eval "$3=no" ;;
1614 esac
1615 fi
1616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1617 esac
1618 fi
1619 eval ac_res=\$$3
1620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1621 printf "%s\n" "$ac_res" >&6; }
1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1623
1624 } # ac_fn_c_check_header_compile
1625
1626 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1627 # ------------------------------------------------------------------
1628 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1629 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1630 ac_fn_check_decl ()
1631 {
1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1633 as_decl_name=`echo $2|sed 's/ *(.*//'`
1634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1635 printf %s "checking whether $as_decl_name is declared... " >&6; }
1636 if eval test \${$3+y}
1637 then :
1638 printf %s "(cached) " >&6
1639 else case e in #(
1640 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1641 eval ac_save_FLAGS=\$$6
1642 as_fn_append $6 " $5"
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644 /* end confdefs.h. */
1645 $4
1646 int
1647 main (void)
1648 {
1649 #ifndef $as_decl_name
1650 #ifdef __cplusplus
1651 (void) $as_decl_use;
1652 #else
1653 (void) $as_decl_name;
1654 #endif
1655 #endif
1656
1657 ;
1658 return 0;
1659 }
1660 _ACEOF
1661 if ac_fn_c_try_compile "$LINENO"
1662 then :
1663 eval "$3=yes"
1664 else case e in #(
1665 e) eval "$3=no" ;;
1666 esac
1667 fi
1668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1669 eval $6=\$ac_save_FLAGS
1670 ;;
1671 esac
1672 fi
1673 eval ac_res=\$$3
1674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1675 printf "%s\n" "$ac_res" >&6; }
1676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677
1678 } # ac_fn_check_decl
1679
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_link ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 printf "%s\n" "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1700 fi
1701 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest$ac_exeext && {
1706 test "$cross_compiling" = yes ||
1707 test -x conftest$ac_exeext
1708 }
1709 then :
1710 ac_retval=0
1711 else case e in #(
1712 e) printf "%s\n" "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1 ;;
1716 esac
1717 fi
1718 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720 # interfere with the next link command; also delete a directory that is
1721 # left behind by Apple's compiler. We do this before executing the actions.
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1725
1726 } # ac_fn_c_try_link
1727
1728 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1729 # ----------------------------------------------------
1730 # Tries to find if the field MEMBER exists in type AGGR, after including
1731 # INCLUDES, setting cache variable VAR accordingly.
1732 ac_fn_c_check_member ()
1733 {
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1736 printf %s "checking for $2.$3... " >&6; }
1737 if eval test \${$4+y}
1738 then :
1739 printf %s "(cached) " >&6
1740 else case e in #(
1741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 $5
1744 int
1745 main (void)
1746 {
1747 static $2 ac_aggr;
1748 if (ac_aggr.$3)
1749 return 0;
1750 ;
1751 return 0;
1752 }
1753 _ACEOF
1754 if ac_fn_c_try_compile "$LINENO"
1755 then :
1756 eval "$4=yes"
1757 else case e in #(
1758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h. */
1760 $5
1761 int
1762 main (void)
1763 {
1764 static $2 ac_aggr;
1765 if (sizeof ac_aggr.$3)
1766 return 0;
1767 ;
1768 return 0;
1769 }
1770 _ACEOF
1771 if ac_fn_c_try_compile "$LINENO"
1772 then :
1773 eval "$4=yes"
1774 else case e in #(
1775 e) eval "$4=no" ;;
1776 esac
1777 fi
1778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1779 esac
1780 fi
1781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1782 esac
1783 fi
1784 eval ac_res=\$$4
1785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 printf "%s\n" "$ac_res" >&6; }
1787 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1788
1789 } # ac_fn_c_check_member
1790
1791 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1792 # -------------------------------------------
1793 # Tests whether TYPE exists after having included INCLUDES, setting cache
1794 # variable VAR accordingly.
1795 ac_fn_c_check_type ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 printf %s "checking for $2... " >&6; }
1800 if eval test \${$3+y}
1801 then :
1802 printf %s "(cached) " >&6
1803 else case e in #(
1804 e) eval "$3=no"
1805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806 /* end confdefs.h. */
1807 $4
1808 int
1809 main (void)
1810 {
1811 if (sizeof ($2))
1812 return 0;
1813 ;
1814 return 0;
1815 }
1816 _ACEOF
1817 if ac_fn_c_try_compile "$LINENO"
1818 then :
1819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1820 /* end confdefs.h. */
1821 $4
1822 int
1823 main (void)
1824 {
1825 if (sizeof (($2)))
1826 return 0;
1827 ;
1828 return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"
1832 then :
1833
1834 else case e in #(
1835 e) eval "$3=yes" ;;
1836 esac
1837 fi
1838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1839 fi
1840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1841 esac
1842 fi
1843 eval ac_res=\$$3
1844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1845 printf "%s\n" "$ac_res" >&6; }
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847
1848 } # ac_fn_c_check_type
1849
1850 # ac_fn_c_check_func LINENO FUNC VAR
1851 # ----------------------------------
1852 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1853 ac_fn_c_check_func ()
1854 {
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1857 printf %s "checking for $2... " >&6; }
1858 if eval test \${$3+y}
1859 then :
1860 printf %s "(cached) " >&6
1861 else case e in #(
1862 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1866 #define $2 innocuous_$2
1867
1868 /* System header to define __stub macros and hopefully few prototypes,
1869 which can conflict with char $2 (void); below. */
1870
1871 #include <limits.h>
1872 #undef $2
1873
1874 /* Override any GCC internal prototype to avoid an error.
1875 Use char because int might match the return type of a GCC
1876 builtin and then its argument prototype would still apply. */
1877 #ifdef __cplusplus
1878 extern "C"
1879 #endif
1880 char $2 (void);
1881 /* The GNU C library defines this for functions which it implements
1882 to always fail with ENOSYS. Some functions are actually named
1883 something starting with __ and the normal name is an alias. */
1884 #if defined __stub_$2 || defined __stub___$2
1885 choke me
1886 #endif
1887
1888 int
1889 main (void)
1890 {
1891 return $2 ();
1892 ;
1893 return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_link "$LINENO"
1897 then :
1898 eval "$3=yes"
1899 else case e in #(
1900 e) eval "$3=no" ;;
1901 esac
1902 fi
1903 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1904 conftest$ac_exeext conftest.$ac_ext ;;
1905 esac
1906 fi
1907 eval ac_res=\$$3
1908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 printf "%s\n" "$ac_res" >&6; }
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912 } # ac_fn_c_check_func
1913 ac_configure_args_raw=
1914 for ac_arg
1915 do
1916 case $ac_arg in
1917 *\'*)
1918 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1919 esac
1920 as_fn_append ac_configure_args_raw " '$ac_arg'"
1921 done
1922
1923 case $ac_configure_args_raw in
1924 *$as_nl*)
1925 ac_safe_unquote= ;;
1926 *)
1927 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1928 ac_unsafe_a="$ac_unsafe_z#~"
1929 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1930 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1931 esac
1932
1933 cat >config.log <<_ACEOF
1934 This file contains any messages produced by compilers while
1935 running configure, to aid debugging if configure makes a mistake.
1936
1937 It was created by sessreg $as_me 1.1.4, which was
1938 generated by GNU Autoconf 2.72. Invocation command line was
1939
1940 $ $0$ac_configure_args_raw
1941
1942 _ACEOF
1943 exec 5>>config.log
1944 {
1945 cat <<_ASUNAME
1946 ## --------- ##
1947 ## Platform. ##
1948 ## --------- ##
1949
1950 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1951 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1952 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1953 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1954 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1955
1956 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1957 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1958
1959 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1960 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1961 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1962 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1963 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1964 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1965 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1966
1967 _ASUNAME
1968
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1971 do
1972 IFS=$as_save_IFS
1973 case $as_dir in #(((
1974 '') as_dir=./ ;;
1975 */) ;;
1976 *) as_dir=$as_dir/ ;;
1977 esac
1978 printf "%s\n" "PATH: $as_dir"
1979 done
1980 IFS=$as_save_IFS
1981
1982 } >&5
1983
1984 cat >&5 <<_ACEOF
1985
1986
1987 ## ----------- ##
1988 ## Core tests. ##
1989 ## ----------- ##
1990
1991 _ACEOF
1992
1993
1994 # Keep a trace of the command line.
1995 # Strip out --no-create and --no-recursion so they do not pile up.
1996 # Strip out --silent because we don't want to record it for future runs.
1997 # Also quote any args containing shell meta-characters.
1998 # Make two passes to allow for proper duplicate-argument suppression.
1999 ac_configure_args=
2000 ac_configure_args0=
2001 ac_configure_args1=
2002 ac_must_keep_next=false
2003 for ac_pass in 1 2
2004 do
2005 for ac_arg
2006 do
2007 case $ac_arg in
2008 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2009 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2010 | -silent | --silent | --silen | --sile | --sil)
2011 continue ;;
2012 *\'*)
2013 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2014 esac
2015 case $ac_pass in
2016 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2017 2)
2018 as_fn_append ac_configure_args1 " '$ac_arg'"
2019 if test $ac_must_keep_next = true; then
2020 ac_must_keep_next=false # Got value, back to normal.
2021 else
2022 case $ac_arg in
2023 *=* | --config-cache | -C | -disable-* | --disable-* \
2024 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2025 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2026 | -with-* | --with-* | -without-* | --without-* | --x)
2027 case "$ac_configure_args0 " in
2028 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2029 esac
2030 ;;
2031 -* ) ac_must_keep_next=true ;;
2032 esac
2033 fi
2034 as_fn_append ac_configure_args " '$ac_arg'"
2035 ;;
2036 esac
2037 done
2038 done
2039 { ac_configure_args0=; unset ac_configure_args0;}
2040 { ac_configure_args1=; unset ac_configure_args1;}
2041
2042 # When interrupted or exit'd, cleanup temporary files, and complete
2043 # config.log. We remove comments because anyway the quotes in there
2044 # would cause problems or look ugly.
2045 # WARNING: Use '\'' to represent an apostrophe within the trap.
2046 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2047 trap 'exit_status=$?
2048 # Sanitize IFS.
2049 IFS=" "" $as_nl"
2050 # Save into config.log some information that might help in debugging.
2051 {
2052 echo
2053
2054 printf "%s\n" "## ---------------- ##
2055 ## Cache variables. ##
2056 ## ---------------- ##"
2057 echo
2058 # The following way of writing the cache mishandles newlines in values,
2059 (
2060 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2061 eval ac_val=\$$ac_var
2062 case $ac_val in #(
2063 *${as_nl}*)
2064 case $ac_var in #(
2065 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2066 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2067 esac
2068 case $ac_var in #(
2069 _ | IFS | as_nl) ;; #(
2070 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2071 *) { eval $ac_var=; unset $ac_var;} ;;
2072 esac ;;
2073 esac
2074 done
2075 (set) 2>&1 |
2076 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2077 *${as_nl}ac_space=\ *)
2078 sed -n \
2079 "s/'\''/'\''\\\\'\'''\''/g;
2080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2081 ;; #(
2082 *)
2083 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2084 ;;
2085 esac |
2086 sort
2087 )
2088 echo
2089
2090 printf "%s\n" "## ----------------- ##
2091 ## Output variables. ##
2092 ## ----------------- ##"
2093 echo
2094 for ac_var in $ac_subst_vars
2095 do
2096 eval ac_val=\$$ac_var
2097 case $ac_val in
2098 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2099 esac
2100 printf "%s\n" "$ac_var='\''$ac_val'\''"
2101 done | sort
2102 echo
2103
2104 if test -n "$ac_subst_files"; then
2105 printf "%s\n" "## ------------------- ##
2106 ## File substitutions. ##
2107 ## ------------------- ##"
2108 echo
2109 for ac_var in $ac_subst_files
2110 do
2111 eval ac_val=\$$ac_var
2112 case $ac_val in
2113 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2114 esac
2115 printf "%s\n" "$ac_var='\''$ac_val'\''"
2116 done | sort
2117 echo
2118 fi
2119
2120 if test -s confdefs.h; then
2121 printf "%s\n" "## ----------- ##
2122 ## confdefs.h. ##
2123 ## ----------- ##"
2124 echo
2125 cat confdefs.h
2126 echo
2127 fi
2128 test "$ac_signal" != 0 &&
2129 printf "%s\n" "$as_me: caught signal $ac_signal"
2130 printf "%s\n" "$as_me: exit $exit_status"
2131 } >&5
2132 rm -f core *.core core.conftest.* &&
2133 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2134 exit $exit_status
2135 ' 0
2136 for ac_signal in 1 2 13 15; do
2137 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2138 done
2139 ac_signal=0
2140
2141 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2142 rm -f -r conftest* confdefs.h
2143
2144 printf "%s\n" "/* confdefs.h */" > confdefs.h
2145
2146 # Predefined preprocessor variables.
2147
2148 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2149
2150 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2151
2152 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2153
2154 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2155
2156 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2157
2158 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2159
2160
2161 # Let the site file select an alternate cache file if it wants to.
2162 # Prefer an explicitly selected file to automatically selected ones.
2163 if test -n "$CONFIG_SITE"; then
2164 ac_site_files="$CONFIG_SITE"
2165 elif test "x$prefix" != xNONE; then
2166 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2167 else
2168 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2169 fi
2170
2171 for ac_site_file in $ac_site_files
2172 do
2173 case $ac_site_file in #(
2174 */*) :
2175 ;; #(
2176 *) :
2177 ac_site_file=./$ac_site_file ;;
2178 esac
2179 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2181 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2182 sed 's/^/| /' "$ac_site_file" >&5
2183 . "$ac_site_file" \
2184 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2185 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2186 as_fn_error $? "failed to load site script $ac_site_file
2187 See 'config.log' for more details" "$LINENO" 5; }
2188 fi
2189 done
2190
2191 if test -r "$cache_file"; then
2192 # Some versions of bash will fail to source /dev/null (special files
2193 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2194 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2196 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2197 case $cache_file in
2198 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2199 *) . "./$cache_file";;
2200 esac
2201 fi
2202 else
2203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2204 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2205 >$cache_file
2206 fi
2207
2208 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2209 # Test code for whether the C compiler supports C89 (global declarations)
2210 ac_c_conftest_c89_globals='
2211 /* Does the compiler advertise C89 conformance?
2212 Do not test the value of __STDC__, because some compilers set it to 0
2213 while being otherwise adequately conformant. */
2214 #if !defined __STDC__
2215 # error "Compiler does not advertise C89 conformance"
2216 #endif
2217
2218 #include <stddef.h>
2219 #include <stdarg.h>
2220 struct stat;
2221 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2222 struct buf { int x; };
2223 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2224 static char *e (char **p, int i)
2225 {
2226 return p[i];
2227 }
2228 static char *f (char * (*g) (char **, int), char **p, ...)
2229 {
2230 char *s;
2231 va_list v;
2232 va_start (v,p);
2233 s = g (p, va_arg (v,int));
2234 va_end (v);
2235 return s;
2236 }
2237
2238 /* C89 style stringification. */
2239 #define noexpand_stringify(a) #a
2240 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2241
2242 /* C89 style token pasting. Exercises some of the corner cases that
2243 e.g. old MSVC gets wrong, but not very hard. */
2244 #define noexpand_concat(a,b) a##b
2245 #define expand_concat(a,b) noexpand_concat(a,b)
2246 extern int vA;
2247 extern int vbee;
2248 #define aye A
2249 #define bee B
2250 int *pvA = &expand_concat(v,aye);
2251 int *pvbee = &noexpand_concat(v,bee);
2252
2253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2254 function prototypes and stuff, but not \xHH hex character constants.
2255 These do not provoke an error unfortunately, instead are silently treated
2256 as an "x". The following induces an error, until -std is added to get
2257 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2258 array size at least. It is necessary to write \x00 == 0 to get something
2259 that is true only with -std. */
2260 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2261
2262 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2263 inside strings and character constants. */
2264 #define FOO(x) '\''x'\''
2265 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2266
2267 int test (int i, double x);
2268 struct s1 {int (*f) (int a);};
2269 struct s2 {int (*f) (double a);};
2270 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2271 int, int);'
2272
2273 # Test code for whether the C compiler supports C89 (body of main).
2274 ac_c_conftest_c89_main='
2275 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2276 '
2277
2278 # Test code for whether the C compiler supports C99 (global declarations)
2279 ac_c_conftest_c99_globals='
2280 /* Does the compiler advertise C99 conformance? */
2281 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2282 # error "Compiler does not advertise C99 conformance"
2283 #endif
2284
2285 // See if C++-style comments work.
2286
2287 #include <stdbool.h>
2288 extern int puts (const char *);
2289 extern int printf (const char *, ...);
2290 extern int dprintf (int, const char *, ...);
2291 extern void *malloc (size_t);
2292 extern void free (void *);
2293
2294 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2295 // dprintf is used instead of fprintf to avoid needing to declare
2296 // FILE and stderr.
2297 #define debug(...) dprintf (2, __VA_ARGS__)
2298 #define showlist(...) puts (#__VA_ARGS__)
2299 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2300 static void
2301 test_varargs_macros (void)
2302 {
2303 int x = 1234;
2304 int y = 5678;
2305 debug ("Flag");
2306 debug ("X = %d\n", x);
2307 showlist (The first, second, and third items.);
2308 report (x>y, "x is %d but y is %d", x, y);
2309 }
2310
2311 // Check long long types.
2312 #define BIG64 18446744073709551615ull
2313 #define BIG32 4294967295ul
2314 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2315 #if !BIG_OK
2316 #error "your preprocessor is broken"
2317 #endif
2318 #if BIG_OK
2319 #else
2320 #error "your preprocessor is broken"
2321 #endif
2322 static long long int bignum = -9223372036854775807LL;
2323 static unsigned long long int ubignum = BIG64;
2324
2325 struct incomplete_array
2326 {
2327 int datasize;
2328 double data[];
2329 };
2330
2331 struct named_init {
2332 int number;
2333 const wchar_t *name;
2334 double average;
2335 };
2336
2337 typedef const char *ccp;
2338
2339 static inline int
2340 test_restrict (ccp restrict text)
2341 {
2342 // Iterate through items via the restricted pointer.
2343 // Also check for declarations in for loops.
2344 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2345 continue;
2346 return 0;
2347 }
2348
2349 // Check varargs and va_copy.
2350 static bool
2351 test_varargs (const char *format, ...)
2352 {
2353 va_list args;
2354 va_start (args, format);
2355 va_list args_copy;
2356 va_copy (args_copy, args);
2357
2358 const char *str = "";
2359 int number = 0;
2360 float fnumber = 0;
2361
2362 while (*format)
2363 {
2364 switch (*format++)
2365 {
2366 case '\''s'\'': // string
2367 str = va_arg (args_copy, const char *);
2368 break;
2369 case '\''d'\'': // int
2370 number = va_arg (args_copy, int);
2371 break;
2372 case '\''f'\'': // float
2373 fnumber = va_arg (args_copy, double);
2374 break;
2375 default:
2376 break;
2377 }
2378 }
2379 va_end (args_copy);
2380 va_end (args);
2381
2382 return *str && number && fnumber;
2383 }
2384 '
2385
2386 # Test code for whether the C compiler supports C99 (body of main).
2387 ac_c_conftest_c99_main='
2388 // Check bool.
2389 _Bool success = false;
2390 success |= (argc != 0);
2391
2392 // Check restrict.
2393 if (test_restrict ("String literal") == 0)
2394 success = true;
2395 char *restrict newvar = "Another string";
2396
2397 // Check varargs.
2398 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2399 test_varargs_macros ();
2400
2401 // Check flexible array members.
2402 struct incomplete_array *ia =
2403 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2404 ia->datasize = 10;
2405 for (int i = 0; i < ia->datasize; ++i)
2406 ia->data[i] = i * 1.234;
2407 // Work around memory leak warnings.
2408 free (ia);
2409
2410 // Check named initializers.
2411 struct named_init ni = {
2412 .number = 34,
2413 .name = L"Test wide string",
2414 .average = 543.34343,
2415 };
2416
2417 ni.number = 58;
2418
2419 int dynamic_array[ni.number];
2420 dynamic_array[0] = argv[0][0];
2421 dynamic_array[ni.number - 1] = 543;
2422
2423 // work around unused variable warnings
2424 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2425 || dynamic_array[ni.number - 1] != 543);
2426 '
2427
2428 # Test code for whether the C compiler supports C11 (global declarations)
2429 ac_c_conftest_c11_globals='
2430 /* Does the compiler advertise C11 conformance? */
2431 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2432 # error "Compiler does not advertise C11 conformance"
2433 #endif
2434
2435 // Check _Alignas.
2436 char _Alignas (double) aligned_as_double;
2437 char _Alignas (0) no_special_alignment;
2438 extern char aligned_as_int;
2439 char _Alignas (0) _Alignas (int) aligned_as_int;
2440
2441 // Check _Alignof.
2442 enum
2443 {
2444 int_alignment = _Alignof (int),
2445 int_array_alignment = _Alignof (int[100]),
2446 char_alignment = _Alignof (char)
2447 };
2448 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2449
2450 // Check _Noreturn.
2451 int _Noreturn does_not_return (void) { for (;;) continue; }
2452
2453 // Check _Static_assert.
2454 struct test_static_assert
2455 {
2456 int x;
2457 _Static_assert (sizeof (int) <= sizeof (long int),
2458 "_Static_assert does not work in struct");
2459 long int y;
2460 };
2461
2462 // Check UTF-8 literals.
2463 #define u8 syntax error!
2464 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2465
2466 // Check duplicate typedefs.
2467 typedef long *long_ptr;
2468 typedef long int *long_ptr;
2469 typedef long_ptr long_ptr;
2470
2471 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2472 struct anonymous
2473 {
2474 union {
2475 struct { int i; int j; };
2476 struct { int k; long int l; } w;
2477 };
2478 int m;
2479 } v1;
2480 '
2481
2482 # Test code for whether the C compiler supports C11 (body of main).
2483 ac_c_conftest_c11_main='
2484 _Static_assert ((offsetof (struct anonymous, i)
2485 == offsetof (struct anonymous, w.k)),
2486 "Anonymous union alignment botch");
2487 v1.i = 2;
2488 v1.w.k = 5;
2489 ok |= v1.i != 5;
2490 '
2491
2492 # Test code for whether the C compiler supports C11 (complete).
2493 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2494 ${ac_c_conftest_c99_globals}
2495 ${ac_c_conftest_c11_globals}
2496
2497 int
2498 main (int argc, char **argv)
2499 {
2500 int ok = 0;
2501 ${ac_c_conftest_c89_main}
2502 ${ac_c_conftest_c99_main}
2503 ${ac_c_conftest_c11_main}
2504 return ok;
2505 }
2506 "
2507
2508 # Test code for whether the C compiler supports C99 (complete).
2509 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2510 ${ac_c_conftest_c99_globals}
2511
2512 int
2513 main (int argc, char **argv)
2514 {
2515 int ok = 0;
2516 ${ac_c_conftest_c89_main}
2517 ${ac_c_conftest_c99_main}
2518 return ok;
2519 }
2520 "
2521
2522 # Test code for whether the C compiler supports C89 (complete).
2523 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2524
2525 int
2526 main (int argc, char **argv)
2527 {
2528 int ok = 0;
2529 ${ac_c_conftest_c89_main}
2530 return ok;
2531 }
2532 "
2533
2534 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2535 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2536 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2537 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2538 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2539 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2540 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2541 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2542 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2543 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2544
2545 # Auxiliary files required by this configure script.
2546 ac_aux_files="config.guess config.sub missing install-sh compile"
2547
2548 # Locations in which to look for auxiliary files.
2549 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2550
2551 # Search for a directory containing all of the required auxiliary files,
2552 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2553 # If we don't find one directory that contains all the files we need,
2554 # we report the set of missing files from the *first* directory in
2555 # $ac_aux_dir_candidates and give up.
2556 ac_missing_aux_files=""
2557 ac_first_candidate=:
2558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 as_found=false
2561 for as_dir in $ac_aux_dir_candidates
2562 do
2563 IFS=$as_save_IFS
2564 case $as_dir in #(((
2565 '') as_dir=./ ;;
2566 */) ;;
2567 *) as_dir=$as_dir/ ;;
2568 esac
2569 as_found=:
2570
2571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2572 ac_aux_dir_found=yes
2573 ac_install_sh=
2574 for ac_aux in $ac_aux_files
2575 do
2576 # As a special case, if "install-sh" is required, that requirement
2577 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2578 # and $ac_install_sh is set appropriately for whichever one is found.
2579 if test x"$ac_aux" = x"install-sh"
2580 then
2581 if test -f "${as_dir}install-sh"; then
2582 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2583 ac_install_sh="${as_dir}install-sh -c"
2584 elif test -f "${as_dir}install.sh"; then
2585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2586 ac_install_sh="${as_dir}install.sh -c"
2587 elif test -f "${as_dir}shtool"; then
2588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2589 ac_install_sh="${as_dir}shtool install -c"
2590 else
2591 ac_aux_dir_found=no
2592 if $ac_first_candidate; then
2593 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2594 else
2595 break
2596 fi
2597 fi
2598 else
2599 if test -f "${as_dir}${ac_aux}"; then
2600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2601 else
2602 ac_aux_dir_found=no
2603 if $ac_first_candidate; then
2604 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2605 else
2606 break
2607 fi
2608 fi
2609 fi
2610 done
2611 if test "$ac_aux_dir_found" = yes; then
2612 ac_aux_dir="$as_dir"
2613 break
2614 fi
2615 ac_first_candidate=false
2616
2617 as_found=false
2618 done
2619 IFS=$as_save_IFS
2620 if $as_found
2621 then :
2622
2623 else case e in #(
2624 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2625 esac
2626 fi
2627
2628
2629 # These three variables are undocumented and unsupported,
2630 # and are intended to be withdrawn in a future Autoconf release.
2631 # They can cause serious problems if a builder's source tree is in a directory
2632 # whose full name contains unusual characters.
2633 if test -f "${ac_aux_dir}config.guess"; then
2634 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2635 fi
2636 if test -f "${ac_aux_dir}config.sub"; then
2637 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2638 fi
2639 if test -f "$ac_aux_dir/configure"; then
2640 ac_configure="$SHELL ${ac_aux_dir}configure"
2641 fi
2642
2643 # Check that the precious variables saved in the cache have kept the same
2644 # value.
2645 ac_cache_corrupted=false
2646 for ac_var in $ac_precious_vars; do
2647 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2648 eval ac_new_set=\$ac_env_${ac_var}_set
2649 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2650 eval ac_new_val=\$ac_env_${ac_var}_value
2651 case $ac_old_set,$ac_new_set in
2652 set,)
2653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2654 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2655 ac_cache_corrupted=: ;;
2656 ,set)
2657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2658 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2659 ac_cache_corrupted=: ;;
2660 ,);;
2661 *)
2662 if test "x$ac_old_val" != "x$ac_new_val"; then
2663 # differences in whitespace do not lead to failure.
2664 ac_old_val_w=`echo x $ac_old_val`
2665 ac_new_val_w=`echo x $ac_new_val`
2666 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2668 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2669 ac_cache_corrupted=:
2670 else
2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2672 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2673 eval $ac_var=\$ac_old_val
2674 fi
2675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2676 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2678 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2679 fi;;
2680 esac
2681 # Pass precious variables to config.status.
2682 if test "$ac_new_set" = set; then
2683 case $ac_new_val in
2684 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2685 *) ac_arg=$ac_var=$ac_new_val ;;
2686 esac
2687 case " $ac_configure_args " in
2688 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2689 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2690 esac
2691 fi
2692 done
2693 if $ac_cache_corrupted; then
2694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2695 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2697 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2698 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2699 and start over" "$LINENO" 5
2700 fi
2701 ## -------------------- ##
2702 ## Main body of script. ##
2703 ## -------------------- ##
2704
2705 ac_ext=c
2706 ac_cpp='$CPP $CPPFLAGS'
2707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2710
2711
2712
2713 ac_config_headers="$ac_config_headers config.h"
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726 # Expand $ac_aux_dir to an absolute path.
2727 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2728
2729 ac_ext=c
2730 ac_cpp='$CPP $CPPFLAGS'
2731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2734 if test -n "$ac_tool_prefix"; then
2735 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2736 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 printf %s "checking for $ac_word... " >&6; }
2739 if test ${ac_cv_prog_CC+y}
2740 then :
2741 printf %s "(cached) " >&6
2742 else case e in #(
2743 e) if test -n "$CC"; then
2744 ac_cv_prog_CC="$CC" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749 IFS=$as_save_IFS
2750 case $as_dir in #(((
2751 '') as_dir=./ ;;
2752 */) ;;
2753 *) as_dir=$as_dir/ ;;
2754 esac
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2764
2765 fi ;;
2766 esac
2767 fi
2768 CC=$ac_cv_prog_CC
2769 if test -n "$CC"; then
2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2771 printf "%s\n" "$CC" >&6; }
2772 else
2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774 printf "%s\n" "no" >&6; }
2775 fi
2776
2777
2778 fi
2779 if test -z "$ac_cv_prog_CC"; then
2780 ac_ct_CC=$CC
2781 # Extract the first word of "gcc", so it can be a program name with args.
2782 set dummy gcc; ac_word=$2
2783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2784 printf %s "checking for $ac_word... " >&6; }
2785 if test ${ac_cv_prog_ac_ct_CC+y}
2786 then :
2787 printf %s "(cached) " >&6
2788 else case e in #(
2789 e) if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH
2794 do
2795 IFS=$as_save_IFS
2796 case $as_dir in #(((
2797 '') as_dir=./ ;;
2798 */) ;;
2799 *) as_dir=$as_dir/ ;;
2800 esac
2801 for ac_exec_ext in '' $ac_executable_extensions; do
2802 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2803 ac_cv_prog_ac_ct_CC="gcc"
2804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2805 break 2
2806 fi
2807 done
2808 done
2809 IFS=$as_save_IFS
2810
2811 fi ;;
2812 esac
2813 fi
2814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2815 if test -n "$ac_ct_CC"; then
2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2817 printf "%s\n" "$ac_ct_CC" >&6; }
2818 else
2819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2820 printf "%s\n" "no" >&6; }
2821 fi
2822
2823 if test "x$ac_ct_CC" = x; then
2824 CC=""
2825 else
2826 case $cross_compiling:$ac_tool_warned in
2827 yes:)
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2829 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2830 ac_tool_warned=yes ;;
2831 esac
2832 CC=$ac_ct_CC
2833 fi
2834 else
2835 CC="$ac_cv_prog_CC"
2836 fi
2837
2838 if test -z "$CC"; then
2839 if test -n "$ac_tool_prefix"; then
2840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2841 set dummy ${ac_tool_prefix}cc; ac_word=$2
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 printf %s "checking for $ac_word... " >&6; }
2844 if test ${ac_cv_prog_CC+y}
2845 then :
2846 printf %s "(cached) " >&6
2847 else case e in #(
2848 e) if test -n "$CC"; then
2849 ac_cv_prog_CC="$CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 case $as_dir in #(((
2856 '') as_dir=./ ;;
2857 */) ;;
2858 *) as_dir=$as_dir/ ;;
2859 esac
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2862 ac_cv_prog_CC="${ac_tool_prefix}cc"
2863 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2864 break 2
2865 fi
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi ;;
2871 esac
2872 fi
2873 CC=$ac_cv_prog_CC
2874 if test -n "$CC"; then
2875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2876 printf "%s\n" "$CC" >&6; }
2877 else
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 printf "%s\n" "no" >&6; }
2880 fi
2881
2882
2883 fi
2884 fi
2885 if test -z "$CC"; then
2886 # Extract the first word of "cc", so it can be a program name with args.
2887 set dummy cc; ac_word=$2
2888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 printf %s "checking for $ac_word... " >&6; }
2890 if test ${ac_cv_prog_CC+y}
2891 then :
2892 printf %s "(cached) " >&6
2893 else case e in #(
2894 e) if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2896 else
2897 ac_prog_rejected=no
2898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 for as_dir in $PATH
2900 do
2901 IFS=$as_save_IFS
2902 case $as_dir in #(((
2903 '') as_dir=./ ;;
2904 */) ;;
2905 *) as_dir=$as_dir/ ;;
2906 esac
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2909 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2910 ac_prog_rejected=yes
2911 continue
2912 fi
2913 ac_cv_prog_CC="cc"
2914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2915 break 2
2916 fi
2917 done
2918 done
2919 IFS=$as_save_IFS
2920
2921 if test $ac_prog_rejected = yes; then
2922 # We found a bogon in the path, so make sure we never use it.
2923 set dummy $ac_cv_prog_CC
2924 shift
2925 if test $# != 0; then
2926 # We chose a different compiler from the bogus one.
2927 # However, it has the same basename, so the bogon will be chosen
2928 # first if we set CC to just the basename; use the full file name.
2929 shift
2930 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2931 fi
2932 fi
2933 fi ;;
2934 esac
2935 fi
2936 CC=$ac_cv_prog_CC
2937 if test -n "$CC"; then
2938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939 printf "%s\n" "$CC" >&6; }
2940 else
2941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 printf "%s\n" "no" >&6; }
2943 fi
2944
2945
2946 fi
2947 if test -z "$CC"; then
2948 if test -n "$ac_tool_prefix"; then
2949 for ac_prog in cl.exe
2950 do
2951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 printf %s "checking for $ac_word... " >&6; }
2955 if test ${ac_cv_prog_CC+y}
2956 then :
2957 printf %s "(cached) " >&6
2958 else case e in #(
2959 e) if test -n "$CC"; then
2960 ac_cv_prog_CC="$CC" # Let the user override the test.
2961 else
2962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963 for as_dir in $PATH
2964 do
2965 IFS=$as_save_IFS
2966 case $as_dir in #(((
2967 '') as_dir=./ ;;
2968 */) ;;
2969 *) as_dir=$as_dir/ ;;
2970 esac
2971 for ac_exec_ext in '' $ac_executable_extensions; do
2972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2975 break 2
2976 fi
2977 done
2978 done
2979 IFS=$as_save_IFS
2980
2981 fi ;;
2982 esac
2983 fi
2984 CC=$ac_cv_prog_CC
2985 if test -n "$CC"; then
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2987 printf "%s\n" "$CC" >&6; }
2988 else
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 printf "%s\n" "no" >&6; }
2991 fi
2992
2993
2994 test -n "$CC" && break
2995 done
2996 fi
2997 if test -z "$CC"; then
2998 ac_ct_CC=$CC
2999 for ac_prog in cl.exe
3000 do
3001 # Extract the first word of "$ac_prog", so it can be a program name with args.
3002 set dummy $ac_prog; ac_word=$2
3003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 printf %s "checking for $ac_word... " >&6; }
3005 if test ${ac_cv_prog_ac_ct_CC+y}
3006 then :
3007 printf %s "(cached) " >&6
3008 else case e in #(
3009 e) if test -n "$ac_ct_CC"; then
3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015 IFS=$as_save_IFS
3016 case $as_dir in #(((
3017 '') as_dir=./ ;;
3018 */) ;;
3019 *) as_dir=$as_dir/ ;;
3020 esac
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3023 ac_cv_prog_ac_ct_CC="$ac_prog"
3024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3025 break 2
3026 fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 fi ;;
3032 esac
3033 fi
3034 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3035 if test -n "$ac_ct_CC"; then
3036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3037 printf "%s\n" "$ac_ct_CC" >&6; }
3038 else
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3040 printf "%s\n" "no" >&6; }
3041 fi
3042
3043
3044 test -n "$ac_ct_CC" && break
3045 done
3046
3047 if test "x$ac_ct_CC" = x; then
3048 CC=""
3049 else
3050 case $cross_compiling:$ac_tool_warned in
3051 yes:)
3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3053 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3054 ac_tool_warned=yes ;;
3055 esac
3056 CC=$ac_ct_CC
3057 fi
3058 fi
3059
3060 fi
3061 if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3064 set dummy ${ac_tool_prefix}clang; ac_word=$2
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 printf %s "checking for $ac_word... " >&6; }
3067 if test ${ac_cv_prog_CC+y}
3068 then :
3069 printf %s "(cached) " >&6
3070 else case e in #(
3071 e) if test -n "$CC"; then
3072 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077 IFS=$as_save_IFS
3078 case $as_dir in #(((
3079 '') as_dir=./ ;;
3080 */) ;;
3081 *) as_dir=$as_dir/ ;;
3082 esac
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3085 ac_cv_prog_CC="${ac_tool_prefix}clang"
3086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3087 break 2
3088 fi
3089 done
3090 done
3091 IFS=$as_save_IFS
3092
3093 fi ;;
3094 esac
3095 fi
3096 CC=$ac_cv_prog_CC
3097 if test -n "$CC"; then
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3099 printf "%s\n" "$CC" >&6; }
3100 else
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 printf "%s\n" "no" >&6; }
3103 fi
3104
3105
3106 fi
3107 if test -z "$ac_cv_prog_CC"; then
3108 ac_ct_CC=$CC
3109 # Extract the first word of "clang", so it can be a program name with args.
3110 set dummy clang; ac_word=$2
3111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 printf %s "checking for $ac_word... " >&6; }
3113 if test ${ac_cv_prog_ac_ct_CC+y}
3114 then :
3115 printf %s "(cached) " >&6
3116 else case e in #(
3117 e) if test -n "$ac_ct_CC"; then
3118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3122 do
3123 IFS=$as_save_IFS
3124 case $as_dir in #(((
3125 '') as_dir=./ ;;
3126 */) ;;
3127 *) as_dir=$as_dir/ ;;
3128 esac
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3131 ac_cv_prog_ac_ct_CC="clang"
3132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3133 break 2
3134 fi
3135 done
3136 done
3137 IFS=$as_save_IFS
3138
3139 fi ;;
3140 esac
3141 fi
3142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3143 if test -n "$ac_ct_CC"; then
3144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3145 printf "%s\n" "$ac_ct_CC" >&6; }
3146 else
3147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 printf "%s\n" "no" >&6; }
3149 fi
3150
3151 if test "x$ac_ct_CC" = x; then
3152 CC=""
3153 else
3154 case $cross_compiling:$ac_tool_warned in
3155 yes:)
3156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3157 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3158 ac_tool_warned=yes ;;
3159 esac
3160 CC=$ac_ct_CC
3161 fi
3162 else
3163 CC="$ac_cv_prog_CC"
3164 fi
3165
3166 fi
3167
3168
3169 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3170 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3171 as_fn_error $? "no acceptable C compiler found in \$PATH
3172 See 'config.log' for more details" "$LINENO" 5; }
3173
3174 # Provide some information about the compiler.
3175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3176 set X $ac_compile
3177 ac_compiler=$2
3178 for ac_option in --version -v -V -qversion -version; do
3179 { { ac_try="$ac_compiler $ac_option >&5"
3180 case "(($ac_try" in
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3183 esac
3184 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3185 printf "%s\n" "$ac_try_echo"; } >&5
3186 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3187 ac_status=$?
3188 if test -s conftest.err; then
3189 sed '10a\
3190 ... rest of stderr output deleted ...
3191 10q' conftest.err >conftest.er1
3192 cat conftest.er1 >&5
3193 fi
3194 rm -f conftest.er1 conftest.err
3195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }
3197 done
3198
3199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3200 /* end confdefs.h. */
3201
3202 int
3203 main (void)
3204 {
3205
3206 ;
3207 return 0;
3208 }
3209 _ACEOF
3210 ac_clean_files_save=$ac_clean_files
3211 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3212 # Try to create an executable without -o first, disregard a.out.
3213 # It will help us diagnose broken compilers, and finding out an intuition
3214 # of exeext.
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3216 printf %s "checking whether the C compiler works... " >&6; }
3217 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3218
3219 # The possible output files:
3220 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3221
3222 ac_rmfiles=
3223 for ac_file in $ac_files
3224 do
3225 case $ac_file in
3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3227 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3228 esac
3229 done
3230 rm -f $ac_rmfiles
3231
3232 if { { ac_try="$ac_link_default"
3233 case "(($ac_try" in
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3236 esac
3237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3238 printf "%s\n" "$ac_try_echo"; } >&5
3239 (eval "$ac_link_default") 2>&5
3240 ac_status=$?
3241 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3242 test $ac_status = 0; }
3243 then :
3244 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3245 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3246 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3247 # so that the user can short-circuit this test for compilers unknown to
3248 # Autoconf.
3249 for ac_file in $ac_files ''
3250 do
3251 test -f "$ac_file" || continue
3252 case $ac_file in
3253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3254 ;;
3255 [ab].out )
3256 # We found the default executable, but exeext='' is most
3257 # certainly right.
3258 break;;
3259 *.* )
3260 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3261 then :; else
3262 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3263 fi
3264 # We set ac_cv_exeext here because the later test for it is not
3265 # safe: cross compilers may not add the suffix if given an '-o'
3266 # argument, so we may need to know it at that point already.
3267 # Even if this section looks crufty: it has the advantage of
3268 # actually working.
3269 break;;
3270 * )
3271 break;;
3272 esac
3273 done
3274 test "$ac_cv_exeext" = no && ac_cv_exeext=
3275
3276 else case e in #(
3277 e) ac_file='' ;;
3278 esac
3279 fi
3280 if test -z "$ac_file"
3281 then :
3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 printf "%s\n" "no" >&6; }
3284 printf "%s\n" "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3288 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3289 as_fn_error 77 "C compiler cannot create executables
3290 See 'config.log' for more details" "$LINENO" 5; }
3291 else case e in #(
3292 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3293 printf "%s\n" "yes" >&6; } ;;
3294 esac
3295 fi
3296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3297 printf %s "checking for C compiler default output file name... " >&6; }
3298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3299 printf "%s\n" "$ac_file" >&6; }
3300 ac_exeext=$ac_cv_exeext
3301
3302 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3303 ac_clean_files=$ac_clean_files_save
3304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3305 printf %s "checking for suffix of executables... " >&6; }
3306 if { { ac_try="$ac_link"
3307 case "(($ac_try" in
3308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3309 *) ac_try_echo=$ac_try;;
3310 esac
3311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3312 printf "%s\n" "$ac_try_echo"; } >&5
3313 (eval "$ac_link") 2>&5
3314 ac_status=$?
3315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3316 test $ac_status = 0; }
3317 then :
3318 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3319 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3320 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3321 # 'rm'.
3322 for ac_file in conftest.exe conftest conftest.*; do
3323 test -f "$ac_file" || continue
3324 case $ac_file in
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327 break;;
3328 * ) break;;
3329 esac
3330 done
3331 else case e in #(
3332 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3333 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3334 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3335 See 'config.log' for more details" "$LINENO" 5; } ;;
3336 esac
3337 fi
3338 rm -f conftest conftest$ac_cv_exeext
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3340 printf "%s\n" "$ac_cv_exeext" >&6; }
3341
3342 rm -f conftest.$ac_ext
3343 EXEEXT=$ac_cv_exeext
3344 ac_exeext=$EXEEXT
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3347 #include <stdio.h>
3348 int
3349 main (void)
3350 {
3351 FILE *f = fopen ("conftest.out", "w");
3352 if (!f)
3353 return 1;
3354 return ferror (f) || fclose (f) != 0;
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 ac_clean_files="$ac_clean_files conftest.out"
3361 # Check that the compiler produces executables we can run. If not, either
3362 # the compiler is broken, or we cross compile.
3363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3364 printf %s "checking whether we are cross compiling... " >&6; }
3365 if test "$cross_compiling" != yes; then
3366 { { ac_try="$ac_link"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372 printf "%s\n" "$ac_try_echo"; } >&5
3373 (eval "$ac_link") 2>&5
3374 ac_status=$?
3375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376 test $ac_status = 0; }
3377 if { ac_try='./conftest$ac_cv_exeext'
3378 { { case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 printf "%s\n" "$ac_try_echo"; } >&5
3384 (eval "$ac_try") 2>&5
3385 ac_status=$?
3386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }; }; then
3388 cross_compiling=no
3389 else
3390 if test "$cross_compiling" = maybe; then
3391 cross_compiling=yes
3392 else
3393 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3394 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3395 as_fn_error 77 "cannot run C compiled programs.
3396 If you meant to cross compile, use '--host'.
3397 See 'config.log' for more details" "$LINENO" 5; }
3398 fi
3399 fi
3400 fi
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3402 printf "%s\n" "$cross_compiling" >&6; }
3403
3404 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3405 conftest.o conftest.obj conftest.out
3406 ac_clean_files=$ac_clean_files_save
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3408 printf %s "checking for suffix of object files... " >&6; }
3409 if test ${ac_cv_objext+y}
3410 then :
3411 printf %s "(cached) " >&6
3412 else case e in #(
3413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3414 /* end confdefs.h. */
3415
3416 int
3417 main (void)
3418 {
3419
3420 ;
3421 return 0;
3422 }
3423 _ACEOF
3424 rm -f conftest.o conftest.obj
3425 if { { ac_try="$ac_compile"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 printf "%s\n" "$ac_try_echo"; } >&5
3432 (eval "$ac_compile") 2>&5
3433 ac_status=$?
3434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }
3436 then :
3437 for ac_file in conftest.o conftest.obj conftest.*; do
3438 test -f "$ac_file" || continue;
3439 case $ac_file in
3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3441 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3442 break;;
3443 esac
3444 done
3445 else case e in #(
3446 e) printf "%s\n" "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3448
3449 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3450 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3451 as_fn_error $? "cannot compute suffix of object files: cannot compile
3452 See 'config.log' for more details" "$LINENO" 5; } ;;
3453 esac
3454 fi
3455 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3456 esac
3457 fi
3458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3459 printf "%s\n" "$ac_cv_objext" >&6; }
3460 OBJEXT=$ac_cv_objext
3461 ac_objext=$OBJEXT
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3463 printf %s "checking whether the compiler supports GNU C... " >&6; }
3464 if test ${ac_cv_c_compiler_gnu+y}
3465 then :
3466 printf %s "(cached) " >&6
3467 else case e in #(
3468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470
3471 int
3472 main (void)
3473 {
3474 #ifndef __GNUC__
3475 choke me
3476 #endif
3477
3478 ;
3479 return 0;
3480 }
3481 _ACEOF
3482 if ac_fn_c_try_compile "$LINENO"
3483 then :
3484 ac_compiler_gnu=yes
3485 else case e in #(
3486 e) ac_compiler_gnu=no ;;
3487 esac
3488 fi
3489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3491 ;;
3492 esac
3493 fi
3494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3495 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3497
3498 if test $ac_compiler_gnu = yes; then
3499 GCC=yes
3500 else
3501 GCC=
3502 fi
3503 ac_test_CFLAGS=${CFLAGS+y}
3504 ac_save_CFLAGS=$CFLAGS
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3506 printf %s "checking whether $CC accepts -g... " >&6; }
3507 if test ${ac_cv_prog_cc_g+y}
3508 then :
3509 printf %s "(cached) " >&6
3510 else case e in #(
3511 e) ac_save_c_werror_flag=$ac_c_werror_flag
3512 ac_c_werror_flag=yes
3513 ac_cv_prog_cc_g=no
3514 CFLAGS="-g"
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517
3518 int
3519 main (void)
3520 {
3521
3522 ;
3523 return 0;
3524 }
3525 _ACEOF
3526 if ac_fn_c_try_compile "$LINENO"
3527 then :
3528 ac_cv_prog_cc_g=yes
3529 else case e in #(
3530 e) CFLAGS=""
3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h. */
3533
3534 int
3535 main (void)
3536 {
3537
3538 ;
3539 return 0;
3540 }
3541 _ACEOF
3542 if ac_fn_c_try_compile "$LINENO"
3543 then :
3544
3545 else case e in #(
3546 e) ac_c_werror_flag=$ac_save_c_werror_flag
3547 CFLAGS="-g"
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3550
3551 int
3552 main (void)
3553 {
3554
3555 ;
3556 return 0;
3557 }
3558 _ACEOF
3559 if ac_fn_c_try_compile "$LINENO"
3560 then :
3561 ac_cv_prog_cc_g=yes
3562 fi
3563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3564 esac
3565 fi
3566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3567 esac
3568 fi
3569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3570 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3571 esac
3572 fi
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3574 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3575 if test $ac_test_CFLAGS; then
3576 CFLAGS=$ac_save_CFLAGS
3577 elif test $ac_cv_prog_cc_g = yes; then
3578 if test "$GCC" = yes; then
3579 CFLAGS="-g -O2"
3580 else
3581 CFLAGS="-g"
3582 fi
3583 else
3584 if test "$GCC" = yes; then
3585 CFLAGS="-O2"
3586 else
3587 CFLAGS=
3588 fi
3589 fi
3590 ac_prog_cc_stdc=no
3591 if test x$ac_prog_cc_stdc = xno
3592 then :
3593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3594 printf %s "checking for $CC option to enable C11 features... " >&6; }
3595 if test ${ac_cv_prog_cc_c11+y}
3596 then :
3597 printf %s "(cached) " >&6
3598 else case e in #(
3599 e) ac_cv_prog_cc_c11=no
3600 ac_save_CC=$CC
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3603 $ac_c_conftest_c11_program
3604 _ACEOF
3605 for ac_arg in '' -std=gnu11
3606 do
3607 CC="$ac_save_CC $ac_arg"
3608 if ac_fn_c_try_compile "$LINENO"
3609 then :
3610 ac_cv_prog_cc_c11=$ac_arg
3611 fi
3612 rm -f core conftest.err conftest.$ac_objext conftest.beam
3613 test "x$ac_cv_prog_cc_c11" != "xno" && break
3614 done
3615 rm -f conftest.$ac_ext
3616 CC=$ac_save_CC ;;
3617 esac
3618 fi
3619
3620 if test "x$ac_cv_prog_cc_c11" = xno
3621 then :
3622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3623 printf "%s\n" "unsupported" >&6; }
3624 else case e in #(
3625 e) if test "x$ac_cv_prog_cc_c11" = x
3626 then :
3627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3628 printf "%s\n" "none needed" >&6; }
3629 else case e in #(
3630 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3631 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3632 CC="$CC $ac_cv_prog_cc_c11" ;;
3633 esac
3634 fi
3635 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3636 ac_prog_cc_stdc=c11 ;;
3637 esac
3638 fi
3639 fi
3640 if test x$ac_prog_cc_stdc = xno
3641 then :
3642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3643 printf %s "checking for $CC option to enable C99 features... " >&6; }
3644 if test ${ac_cv_prog_cc_c99+y}
3645 then :
3646 printf %s "(cached) " >&6
3647 else case e in #(
3648 e) ac_cv_prog_cc_c99=no
3649 ac_save_CC=$CC
3650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3651 /* end confdefs.h. */
3652 $ac_c_conftest_c99_program
3653 _ACEOF
3654 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3655 do
3656 CC="$ac_save_CC $ac_arg"
3657 if ac_fn_c_try_compile "$LINENO"
3658 then :
3659 ac_cv_prog_cc_c99=$ac_arg
3660 fi
3661 rm -f core conftest.err conftest.$ac_objext conftest.beam
3662 test "x$ac_cv_prog_cc_c99" != "xno" && break
3663 done
3664 rm -f conftest.$ac_ext
3665 CC=$ac_save_CC ;;
3666 esac
3667 fi
3668
3669 if test "x$ac_cv_prog_cc_c99" = xno
3670 then :
3671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3672 printf "%s\n" "unsupported" >&6; }
3673 else case e in #(
3674 e) if test "x$ac_cv_prog_cc_c99" = x
3675 then :
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3677 printf "%s\n" "none needed" >&6; }
3678 else case e in #(
3679 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3680 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3681 CC="$CC $ac_cv_prog_cc_c99" ;;
3682 esac
3683 fi
3684 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3685 ac_prog_cc_stdc=c99 ;;
3686 esac
3687 fi
3688 fi
3689 if test x$ac_prog_cc_stdc = xno
3690 then :
3691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3692 printf %s "checking for $CC option to enable C89 features... " >&6; }
3693 if test ${ac_cv_prog_cc_c89+y}
3694 then :
3695 printf %s "(cached) " >&6
3696 else case e in #(
3697 e) ac_cv_prog_cc_c89=no
3698 ac_save_CC=$CC
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3701 $ac_c_conftest_c89_program
3702 _ACEOF
3703 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3704 do
3705 CC="$ac_save_CC $ac_arg"
3706 if ac_fn_c_try_compile "$LINENO"
3707 then :
3708 ac_cv_prog_cc_c89=$ac_arg
3709 fi
3710 rm -f core conftest.err conftest.$ac_objext conftest.beam
3711 test "x$ac_cv_prog_cc_c89" != "xno" && break
3712 done
3713 rm -f conftest.$ac_ext
3714 CC=$ac_save_CC ;;
3715 esac
3716 fi
3717
3718 if test "x$ac_cv_prog_cc_c89" = xno
3719 then :
3720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3721 printf "%s\n" "unsupported" >&6; }
3722 else case e in #(
3723 e) if test "x$ac_cv_prog_cc_c89" = x
3724 then :
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3726 printf "%s\n" "none needed" >&6; }
3727 else case e in #(
3728 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3729 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3730 CC="$CC $ac_cv_prog_cc_c89" ;;
3731 esac
3732 fi
3733 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3734 ac_prog_cc_stdc=c89 ;;
3735 esac
3736 fi
3737 fi
3738
3739 ac_ext=c
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3744
3745
3746 ac_ext=c
3747 ac_cpp='$CPP $CPPFLAGS'
3748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3752 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3753 if test ${am_cv_prog_cc_c_o+y}
3754 then :
3755 printf %s "(cached) " >&6
3756 else case e in #(
3757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758 /* end confdefs.h. */
3759
3760 int
3761 main (void)
3762 {
3763
3764 ;
3765 return 0;
3766 }
3767 _ACEOF
3768 # Make sure it works both with $CC and with simple cc.
3769 # Following AC_PROG_CC_C_O, we do the test twice because some
3770 # compilers refuse to overwrite an existing .o file with -o,
3771 # though they will create one.
3772 am_cv_prog_cc_c_o=yes
3773 for am_i in 1 2; do
3774 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3775 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3776 ac_status=$?
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } \
3779 && test -f conftest2.$ac_objext; then
3780 : OK
3781 else
3782 am_cv_prog_cc_c_o=no
3783 break
3784 fi
3785 done
3786 rm -f core conftest*
3787 unset am_i ;;
3788 esac
3789 fi
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3791 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3792 if test "$am_cv_prog_cc_c_o" != yes; then
3793 # Losing compiler, so override with the script.
3794 # FIXME: It is wrong to rewrite CC.
3795 # But if we don't then we get into trouble of one sort or another.
3796 # A longer-term fix would be to have automake use am__CC in this case,
3797 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3798 CC="$am_aux_dir/compile $CC"
3799 fi
3800 ac_ext=c
3801 ac_cpp='$CPP $CPPFLAGS'
3802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3805
3806
3807
3808 ac_header= ac_cache=
3809 for ac_item in $ac_header_c_list
3810 do
3811 if test $ac_cache; then
3812 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3813 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3814 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3815 fi
3816 ac_header= ac_cache=
3817 elif test $ac_header; then
3818 ac_cache=$ac_item
3819 else
3820 ac_header=$ac_item
3821 fi
3822 done
3823
3824
3825
3826
3827
3828
3829
3830
3831 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3832 then :
3833
3834 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3835
3836 fi
3837
3838
3839
3840
3841
3842
3843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3844 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3845 if test ${ac_cv_safe_to_define___extensions__+y}
3846 then :
3847 printf %s "(cached) " >&6
3848 else case e in #(
3849 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3851
3852 # define __EXTENSIONS__ 1
3853 $ac_includes_default
3854 int
3855 main (void)
3856 {
3857
3858 ;
3859 return 0;
3860 }
3861 _ACEOF
3862 if ac_fn_c_try_compile "$LINENO"
3863 then :
3864 ac_cv_safe_to_define___extensions__=yes
3865 else case e in #(
3866 e) ac_cv_safe_to_define___extensions__=no ;;
3867 esac
3868 fi
3869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3870 esac
3871 fi
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3873 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3874
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3876 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3877 if test ${ac_cv_should_define__xopen_source+y}
3878 then :
3879 printf %s "(cached) " >&6
3880 else case e in #(
3881 e) ac_cv_should_define__xopen_source=no
3882 if test $ac_cv_header_wchar_h = yes
3883 then :
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886
3887 #include <wchar.h>
3888 mbstate_t x;
3889 int
3890 main (void)
3891 {
3892
3893 ;
3894 return 0;
3895 }
3896 _ACEOF
3897 if ac_fn_c_try_compile "$LINENO"
3898 then :
3899
3900 else case e in #(
3901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3903
3904 #define _XOPEN_SOURCE 500
3905 #include <wchar.h>
3906 mbstate_t x;
3907 int
3908 main (void)
3909 {
3910
3911 ;
3912 return 0;
3913 }
3914 _ACEOF
3915 if ac_fn_c_try_compile "$LINENO"
3916 then :
3917 ac_cv_should_define__xopen_source=yes
3918 fi
3919 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3920 esac
3921 fi
3922 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3923 fi ;;
3924 esac
3925 fi
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3927 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3928
3929 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3930
3931 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3932
3933 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3934
3935 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3936
3937 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3938
3939 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3940
3941 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3942
3943 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3944
3945 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3946
3947 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3948
3949 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3950
3951 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3952
3953 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3954
3955 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3956
3957 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3958
3959 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3960
3961 if test $ac_cv_header_minix_config_h = yes
3962 then :
3963 MINIX=yes
3964 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3965
3966 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3967
3968 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3969
3970 else case e in #(
3971 e) MINIX= ;;
3972 esac
3973 fi
3974 if test $ac_cv_safe_to_define___extensions__ = yes
3975 then :
3976 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3977
3978 fi
3979 if test $ac_cv_should_define__xopen_source = yes
3980 then :
3981 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3982
3983 fi
3984
3985 # Check whether --enable-largefile was given.
3986 if test ${enable_largefile+y}
3987 then :
3988 enableval=$enable_largefile;
3989 fi
3990 if test "$enable_largefile,$enable_year2038" != no,no
3991 then :
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
3993 printf %s "checking for $CC option to enable large file support... " >&6; }
3994 if test ${ac_cv_sys_largefile_opts+y}
3995 then :
3996 printf %s "(cached) " >&6
3997 else case e in #(
3998 e) ac_save_CC="$CC"
3999 ac_opt_found=no
4000 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
4001 if test x"$ac_opt" != x"none needed"
4002 then :
4003 CC="$ac_save_CC $ac_opt"
4004 fi
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h. */
4007 #include <sys/types.h>
4008 #ifndef FTYPE
4009 # define FTYPE off_t
4010 #endif
4011 /* Check that FTYPE can represent 2**63 - 1 correctly.
4012 We can't simply define LARGE_FTYPE to be 9223372036854775807,
4013 since some C++ compilers masquerading as C compilers
4014 incorrectly reject 9223372036854775807. */
4015 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
4016 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
4017 && LARGE_FTYPE % 2147483647 == 1)
4018 ? 1 : -1];
4019 int
4020 main (void)
4021 {
4022
4023 ;
4024 return 0;
4025 }
4026 _ACEOF
4027 if ac_fn_c_try_compile "$LINENO"
4028 then :
4029 if test x"$ac_opt" = x"none needed"
4030 then :
4031 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
4032 CC="$CC -DFTYPE=ino_t"
4033 if ac_fn_c_try_compile "$LINENO"
4034 then :
4035
4036 else case e in #(
4037 e) CC="$CC -D_FILE_OFFSET_BITS=64"
4038 if ac_fn_c_try_compile "$LINENO"
4039 then :
4040 ac_opt='-D_FILE_OFFSET_BITS=64'
4041 fi
4042 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
4043 esac
4044 fi
4045 rm -f core conftest.err conftest.$ac_objext conftest.beam
4046 fi
4047 ac_cv_sys_largefile_opts=$ac_opt
4048 ac_opt_found=yes
4049 fi
4050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4051 test $ac_opt_found = no || break
4052 done
4053 CC="$ac_save_CC"
4054
4055 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
4056 esac
4057 fi
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
4059 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
4060
4061 ac_have_largefile=yes
4062 case $ac_cv_sys_largefile_opts in #(
4063 "none needed") :
4064 ;; #(
4065 "supported through gnulib") :
4066 ;; #(
4067 "support not detected") :
4068 ac_have_largefile=no ;; #(
4069 "-D_FILE_OFFSET_BITS=64") :
4070
4071 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
4072 ;; #(
4073 "-D_LARGE_FILES=1") :
4074
4075 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
4076 ;; #(
4077 "-n32") :
4078 CC="$CC -n32" ;; #(
4079 *) :
4080 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
4081 esac
4082
4083 if test "$enable_year2038" != no
4084 then :
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
4086 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
4087 if test ${ac_cv_sys_year2038_opts+y}
4088 then :
4089 printf %s "(cached) " >&6
4090 else case e in #(
4091 e) ac_save_CPPFLAGS="$CPPFLAGS"
4092 ac_opt_found=no
4093 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
4094 if test x"$ac_opt" != x"none needed"
4095 then :
4096 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
4097 fi
4098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h. */
4100
4101 #include <time.h>
4102 /* Check that time_t can represent 2**32 - 1 correctly. */
4103 #define LARGE_TIME_T \\
4104 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
4105 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
4106 && LARGE_TIME_T % 65537 == 0)
4107 ? 1 : -1];
4108
4109 int
4110 main (void)
4111 {
4112
4113 ;
4114 return 0;
4115 }
4116 _ACEOF
4117 if ac_fn_c_try_compile "$LINENO"
4118 then :
4119 ac_cv_sys_year2038_opts="$ac_opt"
4120 ac_opt_found=yes
4121 fi
4122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4123 test $ac_opt_found = no || break
4124 done
4125 CPPFLAGS="$ac_save_CPPFLAGS"
4126 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
4127 esac
4128 fi
4129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
4130 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
4131
4132 ac_have_year2038=yes
4133 case $ac_cv_sys_year2038_opts in #(
4134 "none needed") :
4135 ;; #(
4136 "support not detected") :
4137 ac_have_year2038=no ;; #(
4138 "-D_TIME_BITS=64") :
4139
4140 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
4141 ;; #(
4142 "-D__MINGW_USE_VC2005_COMPAT") :
4143
4144 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
4145 ;; #(
4146 "-U_USE_32_BIT_TIME_T"*) :
4147 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4148 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4149 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
4150 will stop working after mid-January 2038. Remove
4151 _USE_32BIT_TIME_T from the compiler flags.
4152 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4153 *) :
4154 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
4155 esac
4156
4157 fi
4158
4159 fi
4160
4161 # Initialize Automake
4162 am__api_version='1.17'
4163
4164
4165 # Find a good install program. We prefer a C program (faster),
4166 # so one script is as good as another. But avoid the broken or
4167 # incompatible versions:
4168 # SysV /etc/install, /usr/sbin/install
4169 # SunOS /usr/etc/install
4170 # IRIX /sbin/install
4171 # AIX /bin/install
4172 # AmigaOS /C/install, which installs bootblocks on floppy discs
4173 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4174 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4175 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4176 # OS/2's system install, which has a completely different semantic
4177 # ./install, which can be erroneously created by make from ./install.sh.
4178 # Reject install programs that cannot install multiple files.
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4180 printf %s "checking for a BSD-compatible install... " >&6; }
4181 if test -z "$INSTALL"; then
4182 if test ${ac_cv_path_install+y}
4183 then :
4184 printf %s "(cached) " >&6
4185 else case e in #(
4186 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189 IFS=$as_save_IFS
4190 case $as_dir in #(((
4191 '') as_dir=./ ;;
4192 */) ;;
4193 *) as_dir=$as_dir/ ;;
4194 esac
4195 # Account for fact that we put trailing slashes in our PATH walk.
4196 case $as_dir in #((
4197 ./ | /[cC]/* | \
4198 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4199 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4200 /usr/ucb/* ) ;;
4201 *)
4202 # OSF1 and SCO ODT 3.0 have their own names for install.
4203 # Don't use installbsd from OSF since it installs stuff as root
4204 # by default.
4205 for ac_prog in ginstall scoinst install; do
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4208 if test $ac_prog = install &&
4209 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4210 # AIX install. It has an incompatible calling convention.
4211 :
4212 elif test $ac_prog = install &&
4213 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4214 # program-specific install script used by HP pwplus--don't use.
4215 :
4216 else
4217 rm -rf conftest.one conftest.two conftest.dir
4218 echo one > conftest.one
4219 echo two > conftest.two
4220 mkdir conftest.dir
4221 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4222 test -s conftest.one && test -s conftest.two &&
4223 test -s conftest.dir/conftest.one &&
4224 test -s conftest.dir/conftest.two
4225 then
4226 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4227 break 3
4228 fi
4229 fi
4230 fi
4231 done
4232 done
4233 ;;
4234 esac
4235
4236 done
4237 IFS=$as_save_IFS
4238
4239 rm -rf conftest.one conftest.two conftest.dir
4240 ;;
4241 esac
4242 fi
4243 if test ${ac_cv_path_install+y}; then
4244 INSTALL=$ac_cv_path_install
4245 else
4246 # As a last resort, use the slow shell script. Don't cache a
4247 # value for INSTALL within a source directory, because that will
4248 # break other packages using the cache if that directory is
4249 # removed, or if the value is a relative name.
4250 INSTALL=$ac_install_sh
4251 fi
4252 fi
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4254 printf "%s\n" "$INSTALL" >&6; }
4255
4256 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4257 # It thinks the first close brace ends the variable substitution.
4258 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4259
4260 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4261
4262 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4263
4264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4265 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4266 if test ${am_cv_sleep_fractional_seconds+y}
4267 then :
4268 printf %s "(cached) " >&6
4269 else case e in #(
4270 e) if sleep 0.001 2>/dev/null
4271 then :
4272 am_cv_sleep_fractional_seconds=yes
4273 else case e in #(
4274 e) am_cv_sleep_fractional_seconds=no ;;
4275 esac
4276 fi
4277 ;;
4278 esac
4279 fi
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4281 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4282
4283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4284 printf %s "checking filesystem timestamp resolution... " >&6; }
4285 if test ${am_cv_filesystem_timestamp_resolution+y}
4286 then :
4287 printf %s "(cached) " >&6
4288 else case e in #(
4289 e) # Default to the worst case.
4290 am_cv_filesystem_timestamp_resolution=2
4291
4292 # Only try to go finer than 1 sec if sleep can do it.
4293 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4294 # - 1 sec is not much of a win compared to 2 sec, and
4295 # - it takes 2 seconds to perform the test whether 1 sec works.
4296 #
4297 # Instead, just use the default 2s on platforms that have 1s resolution,
4298 # accept the extra 1s delay when using $sleep in the Automake tests, in
4299 # exchange for not incurring the 2s delay for running the test for all
4300 # packages.
4301 #
4302 am_try_resolutions=
4303 if test "$am_cv_sleep_fractional_seconds" = yes; then
4304 # Even a millisecond often causes a bunch of false positives,
4305 # so just try a hundredth of a second. The time saved between .001 and
4306 # .01 is not terribly consequential.
4307 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4308 fi
4309
4310 # In order to catch current-generation FAT out, we must *modify* files
4311 # that already exist; the *creation* timestamp is finer. Use names
4312 # that make ls -t sort them differently when they have equal
4313 # timestamps than when they have distinct timestamps, keeping
4314 # in mind that ls -t prints the *newest* file first.
4315 rm -f conftest.ts?
4316 : > conftest.ts1
4317 : > conftest.ts2
4318 : > conftest.ts3
4319
4320 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4321 # clobber the current shell's arguments. (Outer-level square brackets
4322 # are removed by m4; they're present so that m4 does not expand
4323 # <dollar><star>; be careful, easy to get confused.)
4324 if (
4325 set X `ls -t conftest.ts[12]` &&
4326 {
4327 test "$*" != "X conftest.ts1 conftest.ts2" ||
4328 test "$*" != "X conftest.ts2 conftest.ts1";
4329 }
4330 ); then :; else
4331 # If neither matched, then we have a broken ls. This can happen
4332 # if, for instance, CONFIG_SHELL is bash and it inherits a
4333 # broken ls alias from the environment. This has actually
4334 # happened. Such a system could not be considered "sane".
4335 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4337 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4338 as_fn_error $? "ls -t produces unexpected output.
4339 Make sure there is not a broken ls alias in your environment.
4340 See 'config.log' for more details" "$LINENO" 5; }
4341 fi
4342
4343 for am_try_res in $am_try_resolutions; do
4344 # Any one fine-grained sleep might happen to cross the boundary
4345 # between two values of a coarser actual resolution, but if we do
4346 # two fine-grained sleeps in a row, at least one of them will fall
4347 # entirely within a coarse interval.
4348 echo alpha > conftest.ts1
4349 sleep $am_try_res
4350 echo beta > conftest.ts2
4351 sleep $am_try_res
4352 echo gamma > conftest.ts3
4353
4354 # We assume that 'ls -t' will make use of high-resolution
4355 # timestamps if the operating system supports them at all.
4356 if (set X `ls -t conftest.ts?` &&
4357 test "$2" = conftest.ts3 &&
4358 test "$3" = conftest.ts2 &&
4359 test "$4" = conftest.ts1); then
4360 #
4361 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4362 # because we don't need to test make.
4363 make_ok=true
4364 if test $am_try_res != 1; then
4365 # But if we've succeeded so far with a subsecond resolution, we
4366 # have one more thing to check: make. It can happen that
4367 # everything else supports the subsecond mtimes, but make doesn't;
4368 # notably on macOS, which ships make 3.81 from 2006 (the last one
4369 # released under GPLv2). https://bugs.gnu.org/68808
4370 #
4371 # We test $MAKE if it is defined in the environment, else "make".
4372 # It might get overridden later, but our hope is that in practice
4373 # it does not matter: it is the system "make" which is (by far)
4374 # the most likely to be broken, whereas if the user overrides it,
4375 # probably they did so with a better, or at least not worse, make.
4376 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4377 #
4378 # Create a Makefile (real tab character here):
4379 rm -f conftest.mk
4380 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4381 echo ' touch conftest.ts2' >>conftest.mk
4382 #
4383 # Now, running
4384 # touch conftest.ts1; touch conftest.ts2; make
4385 # should touch ts1 because ts2 is newer. This could happen by luck,
4386 # but most often, it will fail if make's support is insufficient. So
4387 # test for several consecutive successes.
4388 #
4389 # (We reuse conftest.ts[12] because we still want to modify existing
4390 # files, not create new ones, per above.)
4391 n=0
4392 make=${MAKE-make}
4393 until test $n -eq 3; do
4394 echo one > conftest.ts1
4395 sleep $am_try_res
4396 echo two > conftest.ts2 # ts2 should now be newer than ts1
4397 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4398 make_ok=false
4399 break # out of $n loop
4400 fi
4401 n=`expr $n + 1`
4402 done
4403 fi
4404 #
4405 if $make_ok; then
4406 # Everything we know to check worked out, so call this resolution good.
4407 am_cv_filesystem_timestamp_resolution=$am_try_res
4408 break # out of $am_try_res loop
4409 fi
4410 # Otherwise, we'll go on to check the next resolution.
4411 fi
4412 done
4413 rm -f conftest.ts?
4414 # (end _am_filesystem_timestamp_resolution)
4415 ;;
4416 esac
4417 fi
4418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4419 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4420
4421 # This check should not be cached, as it may vary across builds of
4422 # different projects.
4423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4424 printf %s "checking whether build environment is sane... " >&6; }
4425 # Reject unsafe characters in $srcdir or the absolute working directory
4426 # name. Accept space and tab only in the latter.
4427 am_lf='
4428 '
4429 case `pwd` in
4430 *[\\\"\#\$\&\'\`$am_lf]*)
4431 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4432 esac
4433 case $srcdir in
4434 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4435 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4436 esac
4437
4438 # Do 'set' in a subshell so we don't clobber the current shell's
4439 # arguments. Must try -L first in case configure is actually a
4440 # symlink; some systems play weird games with the mod time of symlinks
4441 # (eg FreeBSD returns the mod time of the symlink's containing
4442 # directory).
4443 am_build_env_is_sane=no
4444 am_has_slept=no
4445 rm -f conftest.file
4446 for am_try in 1 2; do
4447 echo "timestamp, slept: $am_has_slept" > conftest.file
4448 if (
4449 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4450 if test "$*" = "X"; then
4451 # -L didn't work.
4452 set X `ls -t "$srcdir/configure" conftest.file`
4453 fi
4454 test "$2" = conftest.file
4455 ); then
4456 am_build_env_is_sane=yes
4457 break
4458 fi
4459 # Just in case.
4460 sleep "$am_cv_filesystem_timestamp_resolution"
4461 am_has_slept=yes
4462 done
4463
4464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4465 printf "%s\n" "$am_build_env_is_sane" >&6; }
4466 if test "$am_build_env_is_sane" = no; then
4467 as_fn_error $? "newly created file is older than distributed files!
4468 Check your system clock" "$LINENO" 5
4469 fi
4470
4471 # If we didn't sleep, we still need to ensure time stamps of config.status and
4472 # generated files are strictly newer.
4473 am_sleep_pid=
4474 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4475 then :
4476
4477 else case e in #(
4478 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4479 am_sleep_pid=$!
4480 ;;
4481 esac
4482 fi
4483
4484 rm -f conftest.file
4485
4486 test "$program_prefix" != NONE &&
4487 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4488 # Use a double $ so make ignores it.
4489 test "$program_suffix" != NONE &&
4490 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4491 # Double any \ or $.
4492 # By default was 's,x,x', remove it if useless.
4493 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4494 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4495
4496
4497 if test x"${MISSING+set}" != xset; then
4498 MISSING="\${SHELL} '$am_aux_dir/missing'"
4499 fi
4500 # Use eval to expand $SHELL
4501 if eval "$MISSING --is-lightweight"; then
4502 am_missing_run="$MISSING "
4503 else
4504 am_missing_run=
4505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4506 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4507 fi
4508
4509 if test x"${install_sh+set}" != xset; then
4510 case $am_aux_dir in
4511 *\ * | *\ *)
4512 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4513 *)
4514 install_sh="\${SHELL} $am_aux_dir/install-sh"
4515 esac
4516 fi
4517
4518 # Installed binaries are usually stripped using 'strip' when the user
4519 # run "make install-strip". However 'strip' might not be the right
4520 # tool to use in cross-compilation environments, therefore Automake
4521 # will honor the 'STRIP' environment variable to overrule this program.
4522 if test "$cross_compiling" != no; then
4523 if test -n "$ac_tool_prefix"; then
4524 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4525 set dummy ${ac_tool_prefix}strip; ac_word=$2
4526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4527 printf %s "checking for $ac_word... " >&6; }
4528 if test ${ac_cv_prog_STRIP+y}
4529 then :
4530 printf %s "(cached) " >&6
4531 else case e in #(
4532 e) if test -n "$STRIP"; then
4533 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538 IFS=$as_save_IFS
4539 case $as_dir in #(((
4540 '') as_dir=./ ;;
4541 */) ;;
4542 *) as_dir=$as_dir/ ;;
4543 esac
4544 for ac_exec_ext in '' $ac_executable_extensions; do
4545 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4546 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4548 break 2
4549 fi
4550 done
4551 done
4552 IFS=$as_save_IFS
4553
4554 fi ;;
4555 esac
4556 fi
4557 STRIP=$ac_cv_prog_STRIP
4558 if test -n "$STRIP"; then
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4560 printf "%s\n" "$STRIP" >&6; }
4561 else
4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 printf "%s\n" "no" >&6; }
4564 fi
4565
4566
4567 fi
4568 if test -z "$ac_cv_prog_STRIP"; then
4569 ac_ct_STRIP=$STRIP
4570 # Extract the first word of "strip", so it can be a program name with args.
4571 set dummy strip; ac_word=$2
4572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 printf %s "checking for $ac_word... " >&6; }
4574 if test ${ac_cv_prog_ac_ct_STRIP+y}
4575 then :
4576 printf %s "(cached) " >&6
4577 else case e in #(
4578 e) if test -n "$ac_ct_STRIP"; then
4579 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4580 else
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4583 do
4584 IFS=$as_save_IFS
4585 case $as_dir in #(((
4586 '') as_dir=./ ;;
4587 */) ;;
4588 *) as_dir=$as_dir/ ;;
4589 esac
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4592 ac_cv_prog_ac_ct_STRIP="strip"
4593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4594 break 2
4595 fi
4596 done
4597 done
4598 IFS=$as_save_IFS
4599
4600 fi ;;
4601 esac
4602 fi
4603 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4604 if test -n "$ac_ct_STRIP"; then
4605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4606 printf "%s\n" "$ac_ct_STRIP" >&6; }
4607 else
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 printf "%s\n" "no" >&6; }
4610 fi
4611
4612 if test "x$ac_ct_STRIP" = x; then
4613 STRIP=":"
4614 else
4615 case $cross_compiling:$ac_tool_warned in
4616 yes:)
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4618 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4619 ac_tool_warned=yes ;;
4620 esac
4621 STRIP=$ac_ct_STRIP
4622 fi
4623 else
4624 STRIP="$ac_cv_prog_STRIP"
4625 fi
4626
4627 fi
4628 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4629
4630
4631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4632 printf %s "checking for a race-free mkdir -p... " >&6; }
4633 if test -z "$MKDIR_P"; then
4634 if test ${ac_cv_path_mkdir+y}
4635 then :
4636 printf %s "(cached) " >&6
4637 else case e in #(
4638 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4640 do
4641 IFS=$as_save_IFS
4642 case $as_dir in #(((
4643 '') as_dir=./ ;;
4644 */) ;;
4645 *) as_dir=$as_dir/ ;;
4646 esac
4647 for ac_prog in mkdir gmkdir; do
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4650 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4651 'mkdir ('*'coreutils) '* | \
4652 *'BusyBox '* | \
4653 'mkdir (fileutils) '4.1*)
4654 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4655 break 3;;
4656 esac
4657 done
4658 done
4659 done
4660 IFS=$as_save_IFS
4661 ;;
4662 esac
4663 fi
4664
4665 test -d ./--version && rmdir ./--version
4666 if test ${ac_cv_path_mkdir+y}; then
4667 MKDIR_P="$ac_cv_path_mkdir -p"
4668 else
4669 # As a last resort, use plain mkdir -p,
4670 # in the hope it doesn't have the bugs of ancient mkdir.
4671 MKDIR_P='mkdir -p'
4672 fi
4673 fi
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4675 printf "%s\n" "$MKDIR_P" >&6; }
4676
4677 for ac_prog in gawk mawk nawk awk
4678 do
4679 # Extract the first word of "$ac_prog", so it can be a program name with args.
4680 set dummy $ac_prog; ac_word=$2
4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682 printf %s "checking for $ac_word... " >&6; }
4683 if test ${ac_cv_prog_AWK+y}
4684 then :
4685 printf %s "(cached) " >&6
4686 else case e in #(
4687 e) if test -n "$AWK"; then
4688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4689 else
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691 for as_dir in $PATH
4692 do
4693 IFS=$as_save_IFS
4694 case $as_dir in #(((
4695 '') as_dir=./ ;;
4696 */) ;;
4697 *) as_dir=$as_dir/ ;;
4698 esac
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4701 ac_cv_prog_AWK="$ac_prog"
4702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4703 break 2
4704 fi
4705 done
4706 done
4707 IFS=$as_save_IFS
4708
4709 fi ;;
4710 esac
4711 fi
4712 AWK=$ac_cv_prog_AWK
4713 if test -n "$AWK"; then
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4715 printf "%s\n" "$AWK" >&6; }
4716 else
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 printf "%s\n" "no" >&6; }
4719 fi
4720
4721
4722 test -n "$AWK" && break
4723 done
4724
4725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4726 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4727 set x ${MAKE-make}
4728 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4729 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4730 then :
4731 printf %s "(cached) " >&6
4732 else case e in #(
4733 e) cat >conftest.make <<\_ACEOF
4734 SHELL = /bin/sh
4735 all:
4736 @echo '@@@%%%=$(MAKE)=@@@%%%'
4737 _ACEOF
4738 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4739 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4740 *@@@%%%=?*=@@@%%%*)
4741 eval ac_cv_prog_make_${ac_make}_set=yes;;
4742 *)
4743 eval ac_cv_prog_make_${ac_make}_set=no;;
4744 esac
4745 rm -f conftest.make ;;
4746 esac
4747 fi
4748 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4750 printf "%s\n" "yes" >&6; }
4751 SET_MAKE=
4752 else
4753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 printf "%s\n" "no" >&6; }
4755 SET_MAKE="MAKE=${MAKE-make}"
4756 fi
4757
4758 rm -rf .tst 2>/dev/null
4759 mkdir .tst 2>/dev/null
4760 if test -d .tst; then
4761 am__leading_dot=.
4762 else
4763 am__leading_dot=_
4764 fi
4765 rmdir .tst 2>/dev/null
4766
4767 DEPDIR="${am__leading_dot}deps"
4768
4769 ac_config_commands="$ac_config_commands depfiles"
4770
4771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4772 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4773 cat > confinc.mk << 'END'
4774 am__doit:
4775 @echo this is the am__doit target >confinc.out
4776 .PHONY: am__doit
4777 END
4778 am__include="#"
4779 am__quote=
4780 # BSD make does it like this.
4781 echo '.include "confinc.mk" # ignored' > confmf.BSD
4782 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4783 echo 'include confinc.mk # ignored' > confmf.GNU
4784 _am_result=no
4785 for s in GNU BSD; do
4786 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4787 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4788 ac_status=$?
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }
4791 case $?:`cat confinc.out 2>/dev/null` in #(
4792 '0:this is the am__doit target') :
4793 case $s in #(
4794 BSD) :
4795 am__include='.include' am__quote='"' ;; #(
4796 *) :
4797 am__include='include' am__quote='' ;;
4798 esac ;; #(
4799 *) :
4800 ;;
4801 esac
4802 if test "$am__include" != "#"; then
4803 _am_result="yes ($s style)"
4804 break
4805 fi
4806 done
4807 rm -f confinc.* confmf.*
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4809 printf "%s\n" "${_am_result}" >&6; }
4810
4811 # Check whether --enable-dependency-tracking was given.
4812 if test ${enable_dependency_tracking+y}
4813 then :
4814 enableval=$enable_dependency_tracking;
4815 fi
4816
4817 if test "x$enable_dependency_tracking" != xno; then
4818 am_depcomp="$ac_aux_dir/depcomp"
4819 AMDEPBACKSLASH='\'
4820 am__nodep='_no'
4821 fi
4822 if test "x$enable_dependency_tracking" != xno; then
4823 AMDEP_TRUE=
4824 AMDEP_FALSE='#'
4825 else
4826 AMDEP_TRUE='#'
4827 AMDEP_FALSE=
4828 fi
4829
4830
4831 AM_DEFAULT_VERBOSITY=1
4832 # Check whether --enable-silent-rules was given.
4833 if test ${enable_silent_rules+y}
4834 then :
4835 enableval=$enable_silent_rules;
4836 fi
4837
4838 am_make=${MAKE-make}
4839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4840 printf %s "checking whether $am_make supports nested variables... " >&6; }
4841 if test ${am_cv_make_support_nested_variables+y}
4842 then :
4843 printf %s "(cached) " >&6
4844 else case e in #(
4845 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4846 BAR0=false
4847 BAR1=true
4848 V=1
4849 am__doit:
4850 @$(TRUE)
4851 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4852 am_cv_make_support_nested_variables=yes
4853 else
4854 am_cv_make_support_nested_variables=no
4855 fi ;;
4856 esac
4857 fi
4858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4859 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4860 AM_BACKSLASH='\'
4861
4862 am__rm_f_notfound=
4863 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4864 then :
4865
4866 else case e in #(
4867 e) am__rm_f_notfound='""' ;;
4868 esac
4869 fi
4870
4871
4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4873 printf %s "checking xargs -n works... " >&6; }
4874 if test ${am_cv_xargs_n_works+y}
4875 then :
4876 printf %s "(cached) " >&6
4877 else case e in #(
4878 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4879 3"
4880 then :
4881 am_cv_xargs_n_works=yes
4882 else case e in #(
4883 e) am_cv_xargs_n_works=no ;;
4884 esac
4885 fi ;;
4886 esac
4887 fi
4888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4889 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4890 if test "$am_cv_xargs_n_works" = yes
4891 then :
4892 am__xargs_n='xargs -n'
4893 else case e in #(
4894 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4895 ;;
4896 esac
4897 fi
4898
4899 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4900 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4901 # is not polluted with repeated "-I."
4902 am__isrc=' -I$(srcdir)'
4903 # test to see if srcdir already configured
4904 if test -f $srcdir/config.status; then
4905 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4906 fi
4907 fi
4908
4909 # test whether we have cygpath
4910 if test -z "$CYGPATH_W"; then
4911 if (cygpath --version) >/dev/null 2>/dev/null; then
4912 CYGPATH_W='cygpath -w'
4913 else
4914 CYGPATH_W=echo
4915 fi
4916 fi
4917
4918
4919 # Define the identity of the package.
4920 PACKAGE='sessreg'
4921 VERSION='1.1.4'
4922
4923
4924 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4925
4926
4927 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4928
4929 # Some tools Automake needs.
4930
4931 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4932
4933
4934 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4935
4936
4937 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4938
4939
4940 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4941
4942
4943 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4944
4945 # For better backward compatibility. To be removed once Automake 1.9.x
4946 # dies out for good. For more background, see:
4947 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4948 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4949 mkdir_p='$(MKDIR_P)'
4950
4951 # We need awk for the "check" target (and possibly the TAP driver). The
4952 # system "awk" is bad on some platforms.
4953 # Always define AMTAR for backward compatibility. Yes, it's still used
4954 # in the wild :-( We should find a proper way to deprecate it ...
4955 AMTAR='$${TAR-tar}'
4956
4957
4958 # We'll loop over all known methods to create a tar archive until one works.
4959 _am_tools='gnutar pax cpio none'
4960
4961 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4962
4963
4964
4965
4966
4967 depcc="$CC" am_compiler_list=
4968
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4970 printf %s "checking dependency style of $depcc... " >&6; }
4971 if test ${am_cv_CC_dependencies_compiler_type+y}
4972 then :
4973 printf %s "(cached) " >&6
4974 else case e in #(
4975 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4976 # We make a subdir and do the tests there. Otherwise we can end up
4977 # making bogus files that we don't know about and never remove. For
4978 # instance it was reported that on HP-UX the gcc test will end up
4979 # making a dummy file named 'D' -- because '-MD' means "put the output
4980 # in D".
4981 rm -rf conftest.dir
4982 mkdir conftest.dir
4983 # Copy depcomp to subdir because otherwise we won't find it if we're
4984 # using a relative directory.
4985 cp "$am_depcomp" conftest.dir
4986 cd conftest.dir
4987 # We will build objects and dependencies in a subdirectory because
4988 # it helps to detect inapplicable dependency modes. For instance
4989 # both Tru64's cc and ICC support -MD to output dependencies as a
4990 # side effect of compilation, but ICC will put the dependencies in
4991 # the current directory while Tru64 will put them in the object
4992 # directory.
4993 mkdir sub
4994
4995 am_cv_CC_dependencies_compiler_type=none
4996 if test "$am_compiler_list" = ""; then
4997 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4998 fi
4999 am__universal=false
5000 case " $depcc " in #(
5001 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5002 esac
5003
5004 for depmode in $am_compiler_list; do
5005 # Setup a source with many dependencies, because some compilers
5006 # like to wrap large dependency lists on column 80 (with \), and
5007 # we should not choose a depcomp mode which is confused by this.
5008 #
5009 # We need to recreate these files for each test, as the compiler may
5010 # overwrite some of them when testing with obscure command lines.
5011 # This happens at least with the AIX C compiler.
5012 : > sub/conftest.c
5013 for i in 1 2 3 4 5 6; do
5014 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5015 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5016 # Solaris 10 /bin/sh.
5017 echo '/* dummy */' > sub/conftst$i.h
5018 done
5019 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5020
5021 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5022 # mode. It turns out that the SunPro C++ compiler does not properly
5023 # handle '-M -o', and we need to detect this. Also, some Intel
5024 # versions had trouble with output in subdirs.
5025 am__obj=sub/conftest.${OBJEXT-o}
5026 am__minus_obj="-o $am__obj"
5027 case $depmode in
5028 gcc)
5029 # This depmode causes a compiler race in universal mode.
5030 test "$am__universal" = false || continue
5031 ;;
5032 nosideeffect)
5033 # After this tag, mechanisms are not by side-effect, so they'll
5034 # only be used when explicitly requested.
5035 if test "x$enable_dependency_tracking" = xyes; then
5036 continue
5037 else
5038 break
5039 fi
5040 ;;
5041 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5042 # This compiler won't grok '-c -o', but also, the minuso test has
5043 # not run yet. These depmodes are late enough in the game, and
5044 # so weak that their functioning should not be impacted.
5045 am__obj=conftest.${OBJEXT-o}
5046 am__minus_obj=
5047 ;;
5048 none) break ;;
5049 esac
5050 if depmode=$depmode \
5051 source=sub/conftest.c object=$am__obj \
5052 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5053 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5054 >/dev/null 2>conftest.err &&
5055 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5056 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5057 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5058 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5059 # icc doesn't choke on unknown options, it will just issue warnings
5060 # or remarks (even with -Werror). So we grep stderr for any message
5061 # that says an option was ignored or not supported.
5062 # When given -MP, icc 7.0 and 7.1 complain thus:
5063 # icc: Command line warning: ignoring option '-M'; no argument required
5064 # The diagnosis changed in icc 8.0:
5065 # icc: Command line remark: option '-MP' not supported
5066 if (grep 'ignoring option' conftest.err ||
5067 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5068 am_cv_CC_dependencies_compiler_type=$depmode
5069 break
5070 fi
5071 fi
5072 done
5073
5074 cd ..
5075 rm -rf conftest.dir
5076 else
5077 am_cv_CC_dependencies_compiler_type=none
5078 fi
5079 ;;
5080 esac
5081 fi
5082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5083 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5084 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5085
5086 if
5087 test "x$enable_dependency_tracking" != xno \
5088 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5089 am__fastdepCC_TRUE=
5090 am__fastdepCC_FALSE='#'
5091 else
5092 am__fastdepCC_TRUE='#'
5093 am__fastdepCC_FALSE=
5094 fi
5095
5096
5097 # Variables for tags utilities; see am/tags.am
5098 if test -z "$CTAGS"; then
5099 CTAGS=ctags
5100 fi
5101
5102 if test -z "$ETAGS"; then
5103 ETAGS=etags
5104 fi
5105
5106 if test -z "$CSCOPE"; then
5107 CSCOPE=cscope
5108 fi
5109
5110
5111
5112
5113
5114
5115
5116
5117 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5130 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5131 if test ${ac_cv_c_undeclared_builtin_options+y}
5132 then :
5133 printf %s "(cached) " >&6
5134 else case e in #(
5135 e) ac_save_CFLAGS=$CFLAGS
5136 ac_cv_c_undeclared_builtin_options='cannot detect'
5137 for ac_arg in '' -fno-builtin; do
5138 CFLAGS="$ac_save_CFLAGS $ac_arg"
5139 # This test program should *not* compile successfully.
5140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5141 /* end confdefs.h. */
5142
5143 int
5144 main (void)
5145 {
5146 (void) strchr;
5147 ;
5148 return 0;
5149 }
5150 _ACEOF
5151 if ac_fn_c_try_compile "$LINENO"
5152 then :
5153
5154 else case e in #(
5155 e) # This test program should compile successfully.
5156 # No library function is consistently available on
5157 # freestanding implementations, so test against a dummy
5158 # declaration. Include always-available headers on the
5159 # off chance that they somehow elicit warnings.
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161 /* end confdefs.h. */
5162 #include <float.h>
5163 #include <limits.h>
5164 #include <stdarg.h>
5165 #include <stddef.h>
5166 extern void ac_decl (int, char *);
5167
5168 int
5169 main (void)
5170 {
5171 (void) ac_decl (0, (char *) 0);
5172 (void) ac_decl;
5173
5174 ;
5175 return 0;
5176 }
5177 _ACEOF
5178 if ac_fn_c_try_compile "$LINENO"
5179 then :
5180 if test x"$ac_arg" = x
5181 then :
5182 ac_cv_c_undeclared_builtin_options='none needed'
5183 else case e in #(
5184 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
5185 esac
5186 fi
5187 break
5188 fi
5189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5190 esac
5191 fi
5192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5193 done
5194 CFLAGS=$ac_save_CFLAGS
5195 ;;
5196 esac
5197 fi
5198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5199 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5200 case $ac_cv_c_undeclared_builtin_options in #(
5201 'cannot detect') :
5202 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5203 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5204 as_fn_error $? "cannot make $CC report undeclared builtins
5205 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5206 'none needed') :
5207 ac_c_undeclared_builtin_options='' ;; #(
5208 *) :
5209 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5210 esac
5211
5212
5213
5214
5215
5216 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5217 if test "x$ac_cv_have_decl___clang__" = xyes
5218 then :
5219 CLANGCC="yes"
5220 else case e in #(
5221 e) CLANGCC="no" ;;
5222 esac
5223 fi
5224 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5225 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
5226 then :
5227 INTELCC="yes"
5228 else case e in #(
5229 e) INTELCC="no" ;;
5230 esac
5231 fi
5232 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5233 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
5234 then :
5235 SUNCC="yes"
5236 else case e in #(
5237 e) SUNCC="no" ;;
5238 esac
5239 fi
5240
5241
5242
5243
5244
5245
5246
5247
5248 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5249 if test -n "$ac_tool_prefix"; then
5250 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5251 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253 printf %s "checking for $ac_word... " >&6; }
5254 if test ${ac_cv_path_PKG_CONFIG+y}
5255 then :
5256 printf %s "(cached) " >&6
5257 else case e in #(
5258 e) case $PKG_CONFIG in
5259 [\\/]* | ?:[\\/]*)
5260 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5261 ;;
5262 *)
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266 IFS=$as_save_IFS
5267 case $as_dir in #(((
5268 '') as_dir=./ ;;
5269 */) ;;
5270 *) as_dir=$as_dir/ ;;
5271 esac
5272 for ac_exec_ext in '' $ac_executable_extensions; do
5273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5274 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5276 break 2
5277 fi
5278 done
5279 done
5280 IFS=$as_save_IFS
5281
5282 ;;
5283 esac ;;
5284 esac
5285 fi
5286 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5287 if test -n "$PKG_CONFIG"; then
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5289 printf "%s\n" "$PKG_CONFIG" >&6; }
5290 else
5291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292 printf "%s\n" "no" >&6; }
5293 fi
5294
5295
5296 fi
5297 if test -z "$ac_cv_path_PKG_CONFIG"; then
5298 ac_pt_PKG_CONFIG=$PKG_CONFIG
5299 # Extract the first word of "pkg-config", so it can be a program name with args.
5300 set dummy pkg-config; ac_word=$2
5301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 printf %s "checking for $ac_word... " >&6; }
5303 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5304 then :
5305 printf %s "(cached) " >&6
5306 else case e in #(
5307 e) case $ac_pt_PKG_CONFIG in
5308 [\\/]* | ?:[\\/]*)
5309 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5310 ;;
5311 *)
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315 IFS=$as_save_IFS
5316 case $as_dir in #(((
5317 '') as_dir=./ ;;
5318 */) ;;
5319 *) as_dir=$as_dir/ ;;
5320 esac
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5323 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5325 break 2
5326 fi
5327 done
5328 done
5329 IFS=$as_save_IFS
5330
5331 ;;
5332 esac ;;
5333 esac
5334 fi
5335 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5336 if test -n "$ac_pt_PKG_CONFIG"; then
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5338 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5339 else
5340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5341 printf "%s\n" "no" >&6; }
5342 fi
5343
5344 if test "x$ac_pt_PKG_CONFIG" = x; then
5345 PKG_CONFIG=""
5346 else
5347 case $cross_compiling:$ac_tool_warned in
5348 yes:)
5349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5350 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5351 ac_tool_warned=yes ;;
5352 esac
5353 PKG_CONFIG=$ac_pt_PKG_CONFIG
5354 fi
5355 else
5356 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5357 fi
5358
5359 fi
5360 if test -n "$PKG_CONFIG"; then
5361 _pkg_min_version=0.9.0
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5363 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5364 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5366 printf "%s\n" "yes" >&6; }
5367 else
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 printf "%s\n" "no" >&6; }
5370 PKG_CONFIG=""
5371 fi
5372 fi
5373
5374
5375 # Make sure we can run config.sub.
5376 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5377 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5378
5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5380 printf %s "checking build system type... " >&6; }
5381 if test ${ac_cv_build+y}
5382 then :
5383 printf %s "(cached) " >&6
5384 else case e in #(
5385 e) ac_build_alias=$build_alias
5386 test "x$ac_build_alias" = x &&
5387 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5388 test "x$ac_build_alias" = x &&
5389 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5390 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5391 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5392 ;;
5393 esac
5394 fi
5395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5396 printf "%s\n" "$ac_cv_build" >&6; }
5397 case $ac_cv_build in
5398 *-*-*) ;;
5399 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5400 esac
5401 build=$ac_cv_build
5402 ac_save_IFS=$IFS; IFS='-'
5403 set x $ac_cv_build
5404 shift
5405 build_cpu=$1
5406 build_vendor=$2
5407 shift; shift
5408 # Remember, the first character of IFS is used to create $*,
5409 # except with old shells:
5410 build_os=$*
5411 IFS=$ac_save_IFS
5412 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5413
5414
5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5416 printf %s "checking host system type... " >&6; }
5417 if test ${ac_cv_host+y}
5418 then :
5419 printf %s "(cached) " >&6
5420 else case e in #(
5421 e) if test "x$host_alias" = x; then
5422 ac_cv_host=$ac_cv_build
5423 else
5424 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5425 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5426 fi
5427 ;;
5428 esac
5429 fi
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5431 printf "%s\n" "$ac_cv_host" >&6; }
5432 case $ac_cv_host in
5433 *-*-*) ;;
5434 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5435 esac
5436 host=$ac_cv_host
5437 ac_save_IFS=$IFS; IFS='-'
5438 set x $ac_cv_host
5439 shift
5440 host_cpu=$1
5441 host_vendor=$2
5442 shift; shift
5443 # Remember, the first character of IFS is used to create $*,
5444 # except with old shells:
5445 host_os=$*
5446 IFS=$ac_save_IFS
5447 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5448
5449
5450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5451 printf %s "checking for a sed that does not truncate output... " >&6; }
5452 if test ${ac_cv_path_SED+y}
5453 then :
5454 printf %s "(cached) " >&6
5455 else case e in #(
5456 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5457 for ac_i in 1 2 3 4 5 6 7; do
5458 ac_script="$ac_script$as_nl$ac_script"
5459 done
5460 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5461 { ac_script=; unset ac_script;}
5462 if test -z "$SED"; then
5463 ac_path_SED_found=false
5464 # Loop through the user's path and test for each of PROGNAME-LIST
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468 IFS=$as_save_IFS
5469 case $as_dir in #(((
5470 '') as_dir=./ ;;
5471 */) ;;
5472 *) as_dir=$as_dir/ ;;
5473 esac
5474 for ac_prog in sed gsed
5475 do
5476 for ac_exec_ext in '' $ac_executable_extensions; do
5477 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5478 as_fn_executable_p "$ac_path_SED" || continue
5479 # Check for GNU ac_path_SED and select it if it is found.
5480 # Check for GNU $ac_path_SED
5481 case `"$ac_path_SED" --version 2>&1` in #(
5482 *GNU*)
5483 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5484 #(
5485 *)
5486 ac_count=0
5487 printf %s 0123456789 >"conftest.in"
5488 while :
5489 do
5490 cat "conftest.in" "conftest.in" >"conftest.tmp"
5491 mv "conftest.tmp" "conftest.in"
5492 cp "conftest.in" "conftest.nl"
5493 printf "%s\n" '' >> "conftest.nl"
5494 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5496 as_fn_arith $ac_count + 1 && ac_count=$as_val
5497 if test $ac_count -gt ${ac_path_SED_max-0}; then
5498 # Best one so far, save it but keep looking for a better one
5499 ac_cv_path_SED="$ac_path_SED"
5500 ac_path_SED_max=$ac_count
5501 fi
5502 # 10*(2^10) chars as input seems more than enough
5503 test $ac_count -gt 10 && break
5504 done
5505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5506 esac
5507
5508 $ac_path_SED_found && break 3
5509 done
5510 done
5511 done
5512 IFS=$as_save_IFS
5513 if test -z "$ac_cv_path_SED"; then
5514 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5515 fi
5516 else
5517 ac_cv_path_SED=$SED
5518 fi
5519 ;;
5520 esac
5521 fi
5522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5523 printf "%s\n" "$ac_cv_path_SED" >&6; }
5524 SED="$ac_cv_path_SED"
5525 rm -f conftest.sed
5526
5527
5528
5529
5530
5531
5532 # Check whether --enable-selective-werror was given.
5533 if test ${enable_selective_werror+y}
5534 then :
5535 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5536 else case e in #(
5537 e) SELECTIVE_WERROR=yes ;;
5538 esac
5539 fi
5540
5541
5542
5543
5544
5545 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5546 if test "x$SUNCC" = "xyes"; then
5547 BASE_CFLAGS="-v"
5548 else
5549 BASE_CFLAGS=""
5550 fi
5551
5552 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566 xorg_testset_save_CFLAGS="$CFLAGS"
5567
5568 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5571 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5572 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5573 then :
5574 printf %s "(cached) " >&6
5575 else case e in #(
5576 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5577 /* end confdefs.h. */
5578 int i;
5579 _ACEOF
5580 if ac_fn_c_try_compile "$LINENO"
5581 then :
5582 xorg_cv_cc_flag_unknown_warning_option=yes
5583 else case e in #(
5584 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5585 esac
5586 fi
5587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5588 esac
5589 fi
5590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5591 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5593 CFLAGS="$xorg_testset_save_CFLAGS"
5594 fi
5595
5596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5599 fi
5600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5602 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5603 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5604 then :
5605 printf %s "(cached) " >&6
5606 else case e in #(
5607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 int i;
5610 _ACEOF
5611 if ac_fn_c_try_compile "$LINENO"
5612 then :
5613 xorg_cv_cc_flag_unused_command_line_argument=yes
5614 else case e in #(
5615 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5616 esac
5617 fi
5618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5619 esac
5620 fi
5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5622 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5623 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5624 CFLAGS="$xorg_testset_save_CFLAGS"
5625 fi
5626
5627 found="no"
5628
5629 if test $found = "no" ; then
5630 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5632 fi
5633
5634 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5636 fi
5637
5638 CFLAGS="$CFLAGS -Wall"
5639
5640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5641 printf %s "checking if $CC supports -Wall... " >&6; }
5642 cacheid=xorg_cv_cc_flag__Wall
5643 if eval test \${$cacheid+y}
5644 then :
5645 printf %s "(cached) " >&6
5646 else case e in #(
5647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5648 /* end confdefs.h. */
5649 int i;
5650 int
5651 main (void)
5652 {
5653
5654 ;
5655 return 0;
5656 }
5657 _ACEOF
5658 if ac_fn_c_try_link "$LINENO"
5659 then :
5660 eval $cacheid=yes
5661 else case e in #(
5662 e) eval $cacheid=no ;;
5663 esac
5664 fi
5665 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5666 conftest$ac_exeext conftest.$ac_ext ;;
5667 esac
5668 fi
5669
5670
5671 CFLAGS="$xorg_testset_save_CFLAGS"
5672
5673 eval supported=\$$cacheid
5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5675 printf "%s\n" "$supported" >&6; }
5676 if test "$supported" = "yes" ; then
5677 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5678 found="yes"
5679 fi
5680 fi
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696 xorg_testset_save_CFLAGS="$CFLAGS"
5697
5698 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5701 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5702 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5703 then :
5704 printf %s "(cached) " >&6
5705 else case e in #(
5706 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 int i;
5709 _ACEOF
5710 if ac_fn_c_try_compile "$LINENO"
5711 then :
5712 xorg_cv_cc_flag_unknown_warning_option=yes
5713 else case e in #(
5714 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5715 esac
5716 fi
5717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5718 esac
5719 fi
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5721 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5722 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5723 CFLAGS="$xorg_testset_save_CFLAGS"
5724 fi
5725
5726 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5729 fi
5730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5732 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5733 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5734 then :
5735 printf %s "(cached) " >&6
5736 else case e in #(
5737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h. */
5739 int i;
5740 _ACEOF
5741 if ac_fn_c_try_compile "$LINENO"
5742 then :
5743 xorg_cv_cc_flag_unused_command_line_argument=yes
5744 else case e in #(
5745 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5746 esac
5747 fi
5748 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5749 esac
5750 fi
5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5752 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5753 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5754 CFLAGS="$xorg_testset_save_CFLAGS"
5755 fi
5756
5757 found="no"
5758
5759 if test $found = "no" ; then
5760 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5762 fi
5763
5764 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5766 fi
5767
5768 CFLAGS="$CFLAGS -Wpointer-arith"
5769
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5771 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5772 cacheid=xorg_cv_cc_flag__Wpointer_arith
5773 if eval test \${$cacheid+y}
5774 then :
5775 printf %s "(cached) " >&6
5776 else case e in #(
5777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5778 /* end confdefs.h. */
5779 int i;
5780 int
5781 main (void)
5782 {
5783
5784 ;
5785 return 0;
5786 }
5787 _ACEOF
5788 if ac_fn_c_try_link "$LINENO"
5789 then :
5790 eval $cacheid=yes
5791 else case e in #(
5792 e) eval $cacheid=no ;;
5793 esac
5794 fi
5795 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5796 conftest$ac_exeext conftest.$ac_ext ;;
5797 esac
5798 fi
5799
5800
5801 CFLAGS="$xorg_testset_save_CFLAGS"
5802
5803 eval supported=\$$cacheid
5804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5805 printf "%s\n" "$supported" >&6; }
5806 if test "$supported" = "yes" ; then
5807 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5808 found="yes"
5809 fi
5810 fi
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826 xorg_testset_save_CFLAGS="$CFLAGS"
5827
5828 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5829 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5831 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5832 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5833 then :
5834 printf %s "(cached) " >&6
5835 else case e in #(
5836 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837 /* end confdefs.h. */
5838 int i;
5839 _ACEOF
5840 if ac_fn_c_try_compile "$LINENO"
5841 then :
5842 xorg_cv_cc_flag_unknown_warning_option=yes
5843 else case e in #(
5844 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5845 esac
5846 fi
5847 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5848 esac
5849 fi
5850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5851 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5852 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5853 CFLAGS="$xorg_testset_save_CFLAGS"
5854 fi
5855
5856 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5858 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5859 fi
5860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5862 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5863 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5864 then :
5865 printf %s "(cached) " >&6
5866 else case e in #(
5867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 int i;
5870 _ACEOF
5871 if ac_fn_c_try_compile "$LINENO"
5872 then :
5873 xorg_cv_cc_flag_unused_command_line_argument=yes
5874 else case e in #(
5875 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5876 esac
5877 fi
5878 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5879 esac
5880 fi
5881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5882 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5883 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5884 CFLAGS="$xorg_testset_save_CFLAGS"
5885 fi
5886
5887 found="no"
5888
5889 if test $found = "no" ; then
5890 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5891 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5892 fi
5893
5894 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5896 fi
5897
5898 CFLAGS="$CFLAGS -Wmissing-declarations"
5899
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5901 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5902 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5903 if eval test \${$cacheid+y}
5904 then :
5905 printf %s "(cached) " >&6
5906 else case e in #(
5907 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5909 int i;
5910 int
5911 main (void)
5912 {
5913
5914 ;
5915 return 0;
5916 }
5917 _ACEOF
5918 if ac_fn_c_try_link "$LINENO"
5919 then :
5920 eval $cacheid=yes
5921 else case e in #(
5922 e) eval $cacheid=no ;;
5923 esac
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5926 conftest$ac_exeext conftest.$ac_ext ;;
5927 esac
5928 fi
5929
5930
5931 CFLAGS="$xorg_testset_save_CFLAGS"
5932
5933 eval supported=\$$cacheid
5934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5935 printf "%s\n" "$supported" >&6; }
5936 if test "$supported" = "yes" ; then
5937 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5938 found="yes"
5939 fi
5940 fi
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956 xorg_testset_save_CFLAGS="$CFLAGS"
5957
5958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5961 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5962 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5963 then :
5964 printf %s "(cached) " >&6
5965 else case e in #(
5966 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5968 int i;
5969 _ACEOF
5970 if ac_fn_c_try_compile "$LINENO"
5971 then :
5972 xorg_cv_cc_flag_unknown_warning_option=yes
5973 else case e in #(
5974 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5975 esac
5976 fi
5977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5978 esac
5979 fi
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5981 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5983 CFLAGS="$xorg_testset_save_CFLAGS"
5984 fi
5985
5986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5989 fi
5990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5992 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5993 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5994 then :
5995 printf %s "(cached) " >&6
5996 else case e in #(
5997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
5999 int i;
6000 _ACEOF
6001 if ac_fn_c_try_compile "$LINENO"
6002 then :
6003 xorg_cv_cc_flag_unused_command_line_argument=yes
6004 else case e in #(
6005 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6006 esac
6007 fi
6008 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6009 esac
6010 fi
6011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6012 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6013 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6014 CFLAGS="$xorg_testset_save_CFLAGS"
6015 fi
6016
6017 found="no"
6018
6019 if test $found = "no" ; then
6020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6022 fi
6023
6024 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6026 fi
6027
6028 CFLAGS="$CFLAGS -Wformat=2"
6029
6030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
6031 printf %s "checking if $CC supports -Wformat=2... " >&6; }
6032 cacheid=xorg_cv_cc_flag__Wformat_2
6033 if eval test \${$cacheid+y}
6034 then :
6035 printf %s "(cached) " >&6
6036 else case e in #(
6037 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6039 int i;
6040 int
6041 main (void)
6042 {
6043
6044 ;
6045 return 0;
6046 }
6047 _ACEOF
6048 if ac_fn_c_try_link "$LINENO"
6049 then :
6050 eval $cacheid=yes
6051 else case e in #(
6052 e) eval $cacheid=no ;;
6053 esac
6054 fi
6055 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6056 conftest$ac_exeext conftest.$ac_ext ;;
6057 esac
6058 fi
6059
6060
6061 CFLAGS="$xorg_testset_save_CFLAGS"
6062
6063 eval supported=\$$cacheid
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6065 printf "%s\n" "$supported" >&6; }
6066 if test "$supported" = "yes" ; then
6067 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6068 found="yes"
6069 fi
6070 fi
6071
6072 if test $found = "no" ; then
6073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6075 fi
6076
6077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6079 fi
6080
6081 CFLAGS="$CFLAGS -Wformat"
6082
6083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
6084 printf %s "checking if $CC supports -Wformat... " >&6; }
6085 cacheid=xorg_cv_cc_flag__Wformat
6086 if eval test \${$cacheid+y}
6087 then :
6088 printf %s "(cached) " >&6
6089 else case e in #(
6090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6091 /* end confdefs.h. */
6092 int i;
6093 int
6094 main (void)
6095 {
6096
6097 ;
6098 return 0;
6099 }
6100 _ACEOF
6101 if ac_fn_c_try_link "$LINENO"
6102 then :
6103 eval $cacheid=yes
6104 else case e in #(
6105 e) eval $cacheid=no ;;
6106 esac
6107 fi
6108 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6109 conftest$ac_exeext conftest.$ac_ext ;;
6110 esac
6111 fi
6112
6113
6114 CFLAGS="$xorg_testset_save_CFLAGS"
6115
6116 eval supported=\$$cacheid
6117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6118 printf "%s\n" "$supported" >&6; }
6119 if test "$supported" = "yes" ; then
6120 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6121 found="yes"
6122 fi
6123 fi
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141 xorg_testset_save_CFLAGS="$CFLAGS"
6142
6143 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6144 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6146 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6147 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6148 then :
6149 printf %s "(cached) " >&6
6150 else case e in #(
6151 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153 int i;
6154 _ACEOF
6155 if ac_fn_c_try_compile "$LINENO"
6156 then :
6157 xorg_cv_cc_flag_unknown_warning_option=yes
6158 else case e in #(
6159 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6160 esac
6161 fi
6162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6163 esac
6164 fi
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6166 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6167 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6168 CFLAGS="$xorg_testset_save_CFLAGS"
6169 fi
6170
6171 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6174 fi
6175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6177 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6178 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6179 then :
6180 printf %s "(cached) " >&6
6181 else case e in #(
6182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6184 int i;
6185 _ACEOF
6186 if ac_fn_c_try_compile "$LINENO"
6187 then :
6188 xorg_cv_cc_flag_unused_command_line_argument=yes
6189 else case e in #(
6190 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6191 esac
6192 fi
6193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6194 esac
6195 fi
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6197 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6198 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6199 CFLAGS="$xorg_testset_save_CFLAGS"
6200 fi
6201
6202 found="no"
6203
6204 if test $found = "no" ; then
6205 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6207 fi
6208
6209 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6211 fi
6212
6213 CFLAGS="$CFLAGS -Wstrict-prototypes"
6214
6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6216 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
6217 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6218 if eval test \${$cacheid+y}
6219 then :
6220 printf %s "(cached) " >&6
6221 else case e in #(
6222 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6223 /* end confdefs.h. */
6224 int i;
6225 int
6226 main (void)
6227 {
6228
6229 ;
6230 return 0;
6231 }
6232 _ACEOF
6233 if ac_fn_c_try_link "$LINENO"
6234 then :
6235 eval $cacheid=yes
6236 else case e in #(
6237 e) eval $cacheid=no ;;
6238 esac
6239 fi
6240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6241 conftest$ac_exeext conftest.$ac_ext ;;
6242 esac
6243 fi
6244
6245
6246 CFLAGS="$xorg_testset_save_CFLAGS"
6247
6248 eval supported=\$$cacheid
6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6250 printf "%s\n" "$supported" >&6; }
6251 if test "$supported" = "yes" ; then
6252 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6253 found="yes"
6254 fi
6255 fi
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271 xorg_testset_save_CFLAGS="$CFLAGS"
6272
6273 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6276 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6277 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6278 then :
6279 printf %s "(cached) " >&6
6280 else case e in #(
6281 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6283 int i;
6284 _ACEOF
6285 if ac_fn_c_try_compile "$LINENO"
6286 then :
6287 xorg_cv_cc_flag_unknown_warning_option=yes
6288 else case e in #(
6289 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6290 esac
6291 fi
6292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6293 esac
6294 fi
6295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6296 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6297 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6298 CFLAGS="$xorg_testset_save_CFLAGS"
6299 fi
6300
6301 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6304 fi
6305 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6307 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6308 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6309 then :
6310 printf %s "(cached) " >&6
6311 else case e in #(
6312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6314 int i;
6315 _ACEOF
6316 if ac_fn_c_try_compile "$LINENO"
6317 then :
6318 xorg_cv_cc_flag_unused_command_line_argument=yes
6319 else case e in #(
6320 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6321 esac
6322 fi
6323 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6324 esac
6325 fi
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6327 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6328 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6329 CFLAGS="$xorg_testset_save_CFLAGS"
6330 fi
6331
6332 found="no"
6333
6334 if test $found = "no" ; then
6335 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6336 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6337 fi
6338
6339 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6341 fi
6342
6343 CFLAGS="$CFLAGS -Wmissing-prototypes"
6344
6345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6346 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6347 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6348 if eval test \${$cacheid+y}
6349 then :
6350 printf %s "(cached) " >&6
6351 else case e in #(
6352 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6353 /* end confdefs.h. */
6354 int i;
6355 int
6356 main (void)
6357 {
6358
6359 ;
6360 return 0;
6361 }
6362 _ACEOF
6363 if ac_fn_c_try_link "$LINENO"
6364 then :
6365 eval $cacheid=yes
6366 else case e in #(
6367 e) eval $cacheid=no ;;
6368 esac
6369 fi
6370 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6371 conftest$ac_exeext conftest.$ac_ext ;;
6372 esac
6373 fi
6374
6375
6376 CFLAGS="$xorg_testset_save_CFLAGS"
6377
6378 eval supported=\$$cacheid
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6380 printf "%s\n" "$supported" >&6; }
6381 if test "$supported" = "yes" ; then
6382 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6383 found="yes"
6384 fi
6385 fi
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401 xorg_testset_save_CFLAGS="$CFLAGS"
6402
6403 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6404 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6406 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6407 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6408 then :
6409 printf %s "(cached) " >&6
6410 else case e in #(
6411 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6413 int i;
6414 _ACEOF
6415 if ac_fn_c_try_compile "$LINENO"
6416 then :
6417 xorg_cv_cc_flag_unknown_warning_option=yes
6418 else case e in #(
6419 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6420 esac
6421 fi
6422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6423 esac
6424 fi
6425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6426 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6428 CFLAGS="$xorg_testset_save_CFLAGS"
6429 fi
6430
6431 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6434 fi
6435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6437 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6438 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6439 then :
6440 printf %s "(cached) " >&6
6441 else case e in #(
6442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444 int i;
6445 _ACEOF
6446 if ac_fn_c_try_compile "$LINENO"
6447 then :
6448 xorg_cv_cc_flag_unused_command_line_argument=yes
6449 else case e in #(
6450 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6451 esac
6452 fi
6453 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6454 esac
6455 fi
6456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6457 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6458 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6459 CFLAGS="$xorg_testset_save_CFLAGS"
6460 fi
6461
6462 found="no"
6463
6464 if test $found = "no" ; then
6465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6467 fi
6468
6469 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6470 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6471 fi
6472
6473 CFLAGS="$CFLAGS -Wnested-externs"
6474
6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6476 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6477 cacheid=xorg_cv_cc_flag__Wnested_externs
6478 if eval test \${$cacheid+y}
6479 then :
6480 printf %s "(cached) " >&6
6481 else case e in #(
6482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484 int i;
6485 int
6486 main (void)
6487 {
6488
6489 ;
6490 return 0;
6491 }
6492 _ACEOF
6493 if ac_fn_c_try_link "$LINENO"
6494 then :
6495 eval $cacheid=yes
6496 else case e in #(
6497 e) eval $cacheid=no ;;
6498 esac
6499 fi
6500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6501 conftest$ac_exeext conftest.$ac_ext ;;
6502 esac
6503 fi
6504
6505
6506 CFLAGS="$xorg_testset_save_CFLAGS"
6507
6508 eval supported=\$$cacheid
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6510 printf "%s\n" "$supported" >&6; }
6511 if test "$supported" = "yes" ; then
6512 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6513 found="yes"
6514 fi
6515 fi
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531 xorg_testset_save_CFLAGS="$CFLAGS"
6532
6533 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6536 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6537 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6538 then :
6539 printf %s "(cached) " >&6
6540 else case e in #(
6541 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6543 int i;
6544 _ACEOF
6545 if ac_fn_c_try_compile "$LINENO"
6546 then :
6547 xorg_cv_cc_flag_unknown_warning_option=yes
6548 else case e in #(
6549 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6550 esac
6551 fi
6552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6553 esac
6554 fi
6555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6556 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6558 CFLAGS="$xorg_testset_save_CFLAGS"
6559 fi
6560
6561 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6564 fi
6565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6567 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6568 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6569 then :
6570 printf %s "(cached) " >&6
6571 else case e in #(
6572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 int i;
6575 _ACEOF
6576 if ac_fn_c_try_compile "$LINENO"
6577 then :
6578 xorg_cv_cc_flag_unused_command_line_argument=yes
6579 else case e in #(
6580 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6581 esac
6582 fi
6583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6584 esac
6585 fi
6586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6587 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6589 CFLAGS="$xorg_testset_save_CFLAGS"
6590 fi
6591
6592 found="no"
6593
6594 if test $found = "no" ; then
6595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6597 fi
6598
6599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6601 fi
6602
6603 CFLAGS="$CFLAGS -Wbad-function-cast"
6604
6605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6606 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6607 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6608 if eval test \${$cacheid+y}
6609 then :
6610 printf %s "(cached) " >&6
6611 else case e in #(
6612 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* end confdefs.h. */
6614 int i;
6615 int
6616 main (void)
6617 {
6618
6619 ;
6620 return 0;
6621 }
6622 _ACEOF
6623 if ac_fn_c_try_link "$LINENO"
6624 then :
6625 eval $cacheid=yes
6626 else case e in #(
6627 e) eval $cacheid=no ;;
6628 esac
6629 fi
6630 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6631 conftest$ac_exeext conftest.$ac_ext ;;
6632 esac
6633 fi
6634
6635
6636 CFLAGS="$xorg_testset_save_CFLAGS"
6637
6638 eval supported=\$$cacheid
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6640 printf "%s\n" "$supported" >&6; }
6641 if test "$supported" = "yes" ; then
6642 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6643 found="yes"
6644 fi
6645 fi
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661 xorg_testset_save_CFLAGS="$CFLAGS"
6662
6663 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6666 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6667 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6668 then :
6669 printf %s "(cached) " >&6
6670 else case e in #(
6671 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6672 /* end confdefs.h. */
6673 int i;
6674 _ACEOF
6675 if ac_fn_c_try_compile "$LINENO"
6676 then :
6677 xorg_cv_cc_flag_unknown_warning_option=yes
6678 else case e in #(
6679 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6680 esac
6681 fi
6682 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6683 esac
6684 fi
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6686 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6687 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6688 CFLAGS="$xorg_testset_save_CFLAGS"
6689 fi
6690
6691 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6694 fi
6695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6697 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6698 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6699 then :
6700 printf %s "(cached) " >&6
6701 else case e in #(
6702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 int i;
6705 _ACEOF
6706 if ac_fn_c_try_compile "$LINENO"
6707 then :
6708 xorg_cv_cc_flag_unused_command_line_argument=yes
6709 else case e in #(
6710 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6711 esac
6712 fi
6713 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6714 esac
6715 fi
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6717 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6718 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6719 CFLAGS="$xorg_testset_save_CFLAGS"
6720 fi
6721
6722 found="no"
6723
6724 if test $found = "no" ; then
6725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6727 fi
6728
6729 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6730 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6731 fi
6732
6733 CFLAGS="$CFLAGS -Wold-style-definition"
6734
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6736 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6737 cacheid=xorg_cv_cc_flag__Wold_style_definition
6738 if eval test \${$cacheid+y}
6739 then :
6740 printf %s "(cached) " >&6
6741 else case e in #(
6742 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6744 int i;
6745 int
6746 main (void)
6747 {
6748
6749 ;
6750 return 0;
6751 }
6752 _ACEOF
6753 if ac_fn_c_try_link "$LINENO"
6754 then :
6755 eval $cacheid=yes
6756 else case e in #(
6757 e) eval $cacheid=no ;;
6758 esac
6759 fi
6760 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6761 conftest$ac_exeext conftest.$ac_ext ;;
6762 esac
6763 fi
6764
6765
6766 CFLAGS="$xorg_testset_save_CFLAGS"
6767
6768 eval supported=\$$cacheid
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6770 printf "%s\n" "$supported" >&6; }
6771 if test "$supported" = "yes" ; then
6772 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6773 found="yes"
6774 fi
6775 fi
6776
6777 if test $found = "no" ; then
6778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6780 fi
6781
6782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6784 fi
6785
6786 CFLAGS="$CFLAGS -fd"
6787
6788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6789 printf %s "checking if $CC supports -fd... " >&6; }
6790 cacheid=xorg_cv_cc_flag__fd
6791 if eval test \${$cacheid+y}
6792 then :
6793 printf %s "(cached) " >&6
6794 else case e in #(
6795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6797 int i;
6798 int
6799 main (void)
6800 {
6801
6802 ;
6803 return 0;
6804 }
6805 _ACEOF
6806 if ac_fn_c_try_link "$LINENO"
6807 then :
6808 eval $cacheid=yes
6809 else case e in #(
6810 e) eval $cacheid=no ;;
6811 esac
6812 fi
6813 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6814 conftest$ac_exeext conftest.$ac_ext ;;
6815 esac
6816 fi
6817
6818
6819 CFLAGS="$xorg_testset_save_CFLAGS"
6820
6821 eval supported=\$$cacheid
6822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6823 printf "%s\n" "$supported" >&6; }
6824 if test "$supported" = "yes" ; then
6825 BASE_CFLAGS="$BASE_CFLAGS -fd"
6826 found="yes"
6827 fi
6828 fi
6829
6830
6831
6832
6833
6834 # This chunk adds additional warnings that could catch undesired effects.
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848 xorg_testset_save_CFLAGS="$CFLAGS"
6849
6850 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6853 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6854 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6855 then :
6856 printf %s "(cached) " >&6
6857 else case e in #(
6858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6859 /* end confdefs.h. */
6860 int i;
6861 _ACEOF
6862 if ac_fn_c_try_compile "$LINENO"
6863 then :
6864 xorg_cv_cc_flag_unknown_warning_option=yes
6865 else case e in #(
6866 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6867 esac
6868 fi
6869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6870 esac
6871 fi
6872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6873 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6875 CFLAGS="$xorg_testset_save_CFLAGS"
6876 fi
6877
6878 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6881 fi
6882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6884 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6885 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6886 then :
6887 printf %s "(cached) " >&6
6888 else case e in #(
6889 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6891 int i;
6892 _ACEOF
6893 if ac_fn_c_try_compile "$LINENO"
6894 then :
6895 xorg_cv_cc_flag_unused_command_line_argument=yes
6896 else case e in #(
6897 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6898 esac
6899 fi
6900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6901 esac
6902 fi
6903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6904 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6905 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6906 CFLAGS="$xorg_testset_save_CFLAGS"
6907 fi
6908
6909 found="no"
6910
6911 if test $found = "no" ; then
6912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6914 fi
6915
6916 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6917 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6918 fi
6919
6920 CFLAGS="$CFLAGS -Wunused"
6921
6922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6923 printf %s "checking if $CC supports -Wunused... " >&6; }
6924 cacheid=xorg_cv_cc_flag__Wunused
6925 if eval test \${$cacheid+y}
6926 then :
6927 printf %s "(cached) " >&6
6928 else case e in #(
6929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6930 /* end confdefs.h. */
6931 int i;
6932 int
6933 main (void)
6934 {
6935
6936 ;
6937 return 0;
6938 }
6939 _ACEOF
6940 if ac_fn_c_try_link "$LINENO"
6941 then :
6942 eval $cacheid=yes
6943 else case e in #(
6944 e) eval $cacheid=no ;;
6945 esac
6946 fi
6947 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6948 conftest$ac_exeext conftest.$ac_ext ;;
6949 esac
6950 fi
6951
6952
6953 CFLAGS="$xorg_testset_save_CFLAGS"
6954
6955 eval supported=\$$cacheid
6956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6957 printf "%s\n" "$supported" >&6; }
6958 if test "$supported" = "yes" ; then
6959 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6960 found="yes"
6961 fi
6962 fi
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978 xorg_testset_save_CFLAGS="$CFLAGS"
6979
6980 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6983 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6984 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6985 then :
6986 printf %s "(cached) " >&6
6987 else case e in #(
6988 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6989 /* end confdefs.h. */
6990 int i;
6991 _ACEOF
6992 if ac_fn_c_try_compile "$LINENO"
6993 then :
6994 xorg_cv_cc_flag_unknown_warning_option=yes
6995 else case e in #(
6996 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6997 esac
6998 fi
6999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7000 esac
7001 fi
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7003 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7004 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7005 CFLAGS="$xorg_testset_save_CFLAGS"
7006 fi
7007
7008 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7011 fi
7012 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7014 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7015 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7016 then :
7017 printf %s "(cached) " >&6
7018 else case e in #(
7019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7021 int i;
7022 _ACEOF
7023 if ac_fn_c_try_compile "$LINENO"
7024 then :
7025 xorg_cv_cc_flag_unused_command_line_argument=yes
7026 else case e in #(
7027 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7028 esac
7029 fi
7030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7031 esac
7032 fi
7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7034 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7035 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7036 CFLAGS="$xorg_testset_save_CFLAGS"
7037 fi
7038
7039 found="no"
7040
7041 if test $found = "no" ; then
7042 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7044 fi
7045
7046 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7048 fi
7049
7050 CFLAGS="$CFLAGS -Wuninitialized"
7051
7052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
7053 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
7054 cacheid=xorg_cv_cc_flag__Wuninitialized
7055 if eval test \${$cacheid+y}
7056 then :
7057 printf %s "(cached) " >&6
7058 else case e in #(
7059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7061 int i;
7062 int
7063 main (void)
7064 {
7065
7066 ;
7067 return 0;
7068 }
7069 _ACEOF
7070 if ac_fn_c_try_link "$LINENO"
7071 then :
7072 eval $cacheid=yes
7073 else case e in #(
7074 e) eval $cacheid=no ;;
7075 esac
7076 fi
7077 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7078 conftest$ac_exeext conftest.$ac_ext ;;
7079 esac
7080 fi
7081
7082
7083 CFLAGS="$xorg_testset_save_CFLAGS"
7084
7085 eval supported=\$$cacheid
7086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7087 printf "%s\n" "$supported" >&6; }
7088 if test "$supported" = "yes" ; then
7089 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
7090 found="yes"
7091 fi
7092 fi
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108 xorg_testset_save_CFLAGS="$CFLAGS"
7109
7110 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7113 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7114 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7115 then :
7116 printf %s "(cached) " >&6
7117 else case e in #(
7118 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119 /* end confdefs.h. */
7120 int i;
7121 _ACEOF
7122 if ac_fn_c_try_compile "$LINENO"
7123 then :
7124 xorg_cv_cc_flag_unknown_warning_option=yes
7125 else case e in #(
7126 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7127 esac
7128 fi
7129 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7130 esac
7131 fi
7132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7133 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7135 CFLAGS="$xorg_testset_save_CFLAGS"
7136 fi
7137
7138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7141 fi
7142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7144 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7145 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7146 then :
7147 printf %s "(cached) " >&6
7148 else case e in #(
7149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151 int i;
7152 _ACEOF
7153 if ac_fn_c_try_compile "$LINENO"
7154 then :
7155 xorg_cv_cc_flag_unused_command_line_argument=yes
7156 else case e in #(
7157 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7158 esac
7159 fi
7160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7161 esac
7162 fi
7163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7164 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7165 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7166 CFLAGS="$xorg_testset_save_CFLAGS"
7167 fi
7168
7169 found="no"
7170
7171 if test $found = "no" ; then
7172 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7173 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7174 fi
7175
7176 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7177 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7178 fi
7179
7180 CFLAGS="$CFLAGS -Wshadow"
7181
7182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7183 printf %s "checking if $CC supports -Wshadow... " >&6; }
7184 cacheid=xorg_cv_cc_flag__Wshadow
7185 if eval test \${$cacheid+y}
7186 then :
7187 printf %s "(cached) " >&6
7188 else case e in #(
7189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7191 int i;
7192 int
7193 main (void)
7194 {
7195
7196 ;
7197 return 0;
7198 }
7199 _ACEOF
7200 if ac_fn_c_try_link "$LINENO"
7201 then :
7202 eval $cacheid=yes
7203 else case e in #(
7204 e) eval $cacheid=no ;;
7205 esac
7206 fi
7207 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7208 conftest$ac_exeext conftest.$ac_ext ;;
7209 esac
7210 fi
7211
7212
7213 CFLAGS="$xorg_testset_save_CFLAGS"
7214
7215 eval supported=\$$cacheid
7216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7217 printf "%s\n" "$supported" >&6; }
7218 if test "$supported" = "yes" ; then
7219 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7220 found="yes"
7221 fi
7222 fi
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238 xorg_testset_save_CFLAGS="$CFLAGS"
7239
7240 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7243 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7244 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7245 then :
7246 printf %s "(cached) " >&6
7247 else case e in #(
7248 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7249 /* end confdefs.h. */
7250 int i;
7251 _ACEOF
7252 if ac_fn_c_try_compile "$LINENO"
7253 then :
7254 xorg_cv_cc_flag_unknown_warning_option=yes
7255 else case e in #(
7256 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7257 esac
7258 fi
7259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7260 esac
7261 fi
7262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7263 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7264 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7265 CFLAGS="$xorg_testset_save_CFLAGS"
7266 fi
7267
7268 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7270 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7271 fi
7272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7274 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7275 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7276 then :
7277 printf %s "(cached) " >&6
7278 else case e in #(
7279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7281 int i;
7282 _ACEOF
7283 if ac_fn_c_try_compile "$LINENO"
7284 then :
7285 xorg_cv_cc_flag_unused_command_line_argument=yes
7286 else case e in #(
7287 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7288 esac
7289 fi
7290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7291 esac
7292 fi
7293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7294 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7295 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7296 CFLAGS="$xorg_testset_save_CFLAGS"
7297 fi
7298
7299 found="no"
7300
7301 if test $found = "no" ; then
7302 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7303 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7304 fi
7305
7306 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7307 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7308 fi
7309
7310 CFLAGS="$CFLAGS -Wmissing-noreturn"
7311
7312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7313 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7314 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7315 if eval test \${$cacheid+y}
7316 then :
7317 printf %s "(cached) " >&6
7318 else case e in #(
7319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7321 int i;
7322 int
7323 main (void)
7324 {
7325
7326 ;
7327 return 0;
7328 }
7329 _ACEOF
7330 if ac_fn_c_try_link "$LINENO"
7331 then :
7332 eval $cacheid=yes
7333 else case e in #(
7334 e) eval $cacheid=no ;;
7335 esac
7336 fi
7337 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7338 conftest$ac_exeext conftest.$ac_ext ;;
7339 esac
7340 fi
7341
7342
7343 CFLAGS="$xorg_testset_save_CFLAGS"
7344
7345 eval supported=\$$cacheid
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7347 printf "%s\n" "$supported" >&6; }
7348 if test "$supported" = "yes" ; then
7349 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7350 found="yes"
7351 fi
7352 fi
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368 xorg_testset_save_CFLAGS="$CFLAGS"
7369
7370 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7373 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7374 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7375 then :
7376 printf %s "(cached) " >&6
7377 else case e in #(
7378 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379 /* end confdefs.h. */
7380 int i;
7381 _ACEOF
7382 if ac_fn_c_try_compile "$LINENO"
7383 then :
7384 xorg_cv_cc_flag_unknown_warning_option=yes
7385 else case e in #(
7386 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7387 esac
7388 fi
7389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7390 esac
7391 fi
7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7393 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7395 CFLAGS="$xorg_testset_save_CFLAGS"
7396 fi
7397
7398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7401 fi
7402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7404 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7405 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7406 then :
7407 printf %s "(cached) " >&6
7408 else case e in #(
7409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7411 int i;
7412 _ACEOF
7413 if ac_fn_c_try_compile "$LINENO"
7414 then :
7415 xorg_cv_cc_flag_unused_command_line_argument=yes
7416 else case e in #(
7417 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7418 esac
7419 fi
7420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7421 esac
7422 fi
7423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7424 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7426 CFLAGS="$xorg_testset_save_CFLAGS"
7427 fi
7428
7429 found="no"
7430
7431 if test $found = "no" ; then
7432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7434 fi
7435
7436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7438 fi
7439
7440 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7441
7442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7443 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7444 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7445 if eval test \${$cacheid+y}
7446 then :
7447 printf %s "(cached) " >&6
7448 else case e in #(
7449 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7450 /* end confdefs.h. */
7451 int i;
7452 int
7453 main (void)
7454 {
7455
7456 ;
7457 return 0;
7458 }
7459 _ACEOF
7460 if ac_fn_c_try_link "$LINENO"
7461 then :
7462 eval $cacheid=yes
7463 else case e in #(
7464 e) eval $cacheid=no ;;
7465 esac
7466 fi
7467 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7468 conftest$ac_exeext conftest.$ac_ext ;;
7469 esac
7470 fi
7471
7472
7473 CFLAGS="$xorg_testset_save_CFLAGS"
7474
7475 eval supported=\$$cacheid
7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7477 printf "%s\n" "$supported" >&6; }
7478 if test "$supported" = "yes" ; then
7479 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7480 found="yes"
7481 fi
7482 fi
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498 xorg_testset_save_CFLAGS="$CFLAGS"
7499
7500 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7501 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7503 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7504 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7505 then :
7506 printf %s "(cached) " >&6
7507 else case e in #(
7508 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7509 /* end confdefs.h. */
7510 int i;
7511 _ACEOF
7512 if ac_fn_c_try_compile "$LINENO"
7513 then :
7514 xorg_cv_cc_flag_unknown_warning_option=yes
7515 else case e in #(
7516 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7517 esac
7518 fi
7519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7520 esac
7521 fi
7522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7523 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7524 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7525 CFLAGS="$xorg_testset_save_CFLAGS"
7526 fi
7527
7528 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7531 fi
7532 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7534 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7535 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7536 then :
7537 printf %s "(cached) " >&6
7538 else case e in #(
7539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7541 int i;
7542 _ACEOF
7543 if ac_fn_c_try_compile "$LINENO"
7544 then :
7545 xorg_cv_cc_flag_unused_command_line_argument=yes
7546 else case e in #(
7547 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7548 esac
7549 fi
7550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7551 esac
7552 fi
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7554 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7556 CFLAGS="$xorg_testset_save_CFLAGS"
7557 fi
7558
7559 found="no"
7560
7561 if test $found = "no" ; then
7562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7564 fi
7565
7566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7568 fi
7569
7570 CFLAGS="$CFLAGS -Wredundant-decls"
7571
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7573 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7574 cacheid=xorg_cv_cc_flag__Wredundant_decls
7575 if eval test \${$cacheid+y}
7576 then :
7577 printf %s "(cached) " >&6
7578 else case e in #(
7579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 int i;
7582 int
7583 main (void)
7584 {
7585
7586 ;
7587 return 0;
7588 }
7589 _ACEOF
7590 if ac_fn_c_try_link "$LINENO"
7591 then :
7592 eval $cacheid=yes
7593 else case e in #(
7594 e) eval $cacheid=no ;;
7595 esac
7596 fi
7597 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7598 conftest$ac_exeext conftest.$ac_ext ;;
7599 esac
7600 fi
7601
7602
7603 CFLAGS="$xorg_testset_save_CFLAGS"
7604
7605 eval supported=\$$cacheid
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7607 printf "%s\n" "$supported" >&6; }
7608 if test "$supported" = "yes" ; then
7609 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7610 found="yes"
7611 fi
7612 fi
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628 xorg_testset_save_CFLAGS="$CFLAGS"
7629
7630 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7631 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7633 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7634 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7635 then :
7636 printf %s "(cached) " >&6
7637 else case e in #(
7638 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640 int i;
7641 _ACEOF
7642 if ac_fn_c_try_compile "$LINENO"
7643 then :
7644 xorg_cv_cc_flag_unknown_warning_option=yes
7645 else case e in #(
7646 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7647 esac
7648 fi
7649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7650 esac
7651 fi
7652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7653 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7655 CFLAGS="$xorg_testset_save_CFLAGS"
7656 fi
7657
7658 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7661 fi
7662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7664 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7665 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7666 then :
7667 printf %s "(cached) " >&6
7668 else case e in #(
7669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7671 int i;
7672 _ACEOF
7673 if ac_fn_c_try_compile "$LINENO"
7674 then :
7675 xorg_cv_cc_flag_unused_command_line_argument=yes
7676 else case e in #(
7677 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7678 esac
7679 fi
7680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7681 esac
7682 fi
7683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7684 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7686 CFLAGS="$xorg_testset_save_CFLAGS"
7687 fi
7688
7689 found="no"
7690
7691 if test $found = "no" ; then
7692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7694 fi
7695
7696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7698 fi
7699
7700 CFLAGS="$CFLAGS -Wlogical-op"
7701
7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7703 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7704 cacheid=xorg_cv_cc_flag__Wlogical_op
7705 if eval test \${$cacheid+y}
7706 then :
7707 printf %s "(cached) " >&6
7708 else case e in #(
7709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711 int i;
7712 int
7713 main (void)
7714 {
7715
7716 ;
7717 return 0;
7718 }
7719 _ACEOF
7720 if ac_fn_c_try_link "$LINENO"
7721 then :
7722 eval $cacheid=yes
7723 else case e in #(
7724 e) eval $cacheid=no ;;
7725 esac
7726 fi
7727 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7728 conftest$ac_exeext conftest.$ac_ext ;;
7729 esac
7730 fi
7731
7732
7733 CFLAGS="$xorg_testset_save_CFLAGS"
7734
7735 eval supported=\$$cacheid
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7737 printf "%s\n" "$supported" >&6; }
7738 if test "$supported" = "yes" ; then
7739 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7740 found="yes"
7741 fi
7742 fi
7743
7744
7745
7746 # These are currently disabled because they are noisy. They will be enabled
7747 # in the future once the codebase is sufficiently modernized to silence
7748 # them. For now, I don't want them to drown out the other warnings.
7749 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7750 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7751 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7752
7753 # Turn some warnings into errors, so we don't accidentally get successful builds
7754 # when there are problems that should be fixed.
7755
7756 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770 xorg_testset_save_CFLAGS="$CFLAGS"
7771
7772 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7775 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7776 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7777 then :
7778 printf %s "(cached) " >&6
7779 else case e in #(
7780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7782 int i;
7783 _ACEOF
7784 if ac_fn_c_try_compile "$LINENO"
7785 then :
7786 xorg_cv_cc_flag_unknown_warning_option=yes
7787 else case e in #(
7788 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7789 esac
7790 fi
7791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7792 esac
7793 fi
7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7795 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7796 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7797 CFLAGS="$xorg_testset_save_CFLAGS"
7798 fi
7799
7800 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7801 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7802 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7803 fi
7804 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7806 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7807 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7808 then :
7809 printf %s "(cached) " >&6
7810 else case e in #(
7811 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812 /* end confdefs.h. */
7813 int i;
7814 _ACEOF
7815 if ac_fn_c_try_compile "$LINENO"
7816 then :
7817 xorg_cv_cc_flag_unused_command_line_argument=yes
7818 else case e in #(
7819 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7820 esac
7821 fi
7822 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7823 esac
7824 fi
7825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7826 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7828 CFLAGS="$xorg_testset_save_CFLAGS"
7829 fi
7830
7831 found="no"
7832
7833 if test $found = "no" ; then
7834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7836 fi
7837
7838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7840 fi
7841
7842 CFLAGS="$CFLAGS -Werror=implicit"
7843
7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7845 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7846 cacheid=xorg_cv_cc_flag__Werror_implicit
7847 if eval test \${$cacheid+y}
7848 then :
7849 printf %s "(cached) " >&6
7850 else case e in #(
7851 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 int i;
7854 int
7855 main (void)
7856 {
7857
7858 ;
7859 return 0;
7860 }
7861 _ACEOF
7862 if ac_fn_c_try_link "$LINENO"
7863 then :
7864 eval $cacheid=yes
7865 else case e in #(
7866 e) eval $cacheid=no ;;
7867 esac
7868 fi
7869 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7870 conftest$ac_exeext conftest.$ac_ext ;;
7871 esac
7872 fi
7873
7874
7875 CFLAGS="$xorg_testset_save_CFLAGS"
7876
7877 eval supported=\$$cacheid
7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7879 printf "%s\n" "$supported" >&6; }
7880 if test "$supported" = "yes" ; then
7881 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7882 found="yes"
7883 fi
7884 fi
7885
7886 if test $found = "no" ; then
7887 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7888 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7889 fi
7890
7891 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7893 fi
7894
7895 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7896
7897 { 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
7898 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7899 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7900 if eval test \${$cacheid+y}
7901 then :
7902 printf %s "(cached) " >&6
7903 else case e in #(
7904 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 int i;
7907 int
7908 main (void)
7909 {
7910
7911 ;
7912 return 0;
7913 }
7914 _ACEOF
7915 if ac_fn_c_try_link "$LINENO"
7916 then :
7917 eval $cacheid=yes
7918 else case e in #(
7919 e) eval $cacheid=no ;;
7920 esac
7921 fi
7922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7923 conftest$ac_exeext conftest.$ac_ext ;;
7924 esac
7925 fi
7926
7927
7928 CFLAGS="$xorg_testset_save_CFLAGS"
7929
7930 eval supported=\$$cacheid
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7932 printf "%s\n" "$supported" >&6; }
7933 if test "$supported" = "yes" ; then
7934 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7935 found="yes"
7936 fi
7937 fi
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953 xorg_testset_save_CFLAGS="$CFLAGS"
7954
7955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7958 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7959 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7960 then :
7961 printf %s "(cached) " >&6
7962 else case e in #(
7963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7965 int i;
7966 _ACEOF
7967 if ac_fn_c_try_compile "$LINENO"
7968 then :
7969 xorg_cv_cc_flag_unknown_warning_option=yes
7970 else case e in #(
7971 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7972 esac
7973 fi
7974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7975 esac
7976 fi
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7978 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7980 CFLAGS="$xorg_testset_save_CFLAGS"
7981 fi
7982
7983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7986 fi
7987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7989 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7990 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7991 then :
7992 printf %s "(cached) " >&6
7993 else case e in #(
7994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7996 int i;
7997 _ACEOF
7998 if ac_fn_c_try_compile "$LINENO"
7999 then :
8000 xorg_cv_cc_flag_unused_command_line_argument=yes
8001 else case e in #(
8002 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8003 esac
8004 fi
8005 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8006 esac
8007 fi
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8009 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8010 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8011 CFLAGS="$xorg_testset_save_CFLAGS"
8012 fi
8013
8014 found="no"
8015
8016 if test $found = "no" ; then
8017 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8018 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8019 fi
8020
8021 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8023 fi
8024
8025 CFLAGS="$CFLAGS -Werror=nonnull"
8026
8027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
8028 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
8029 cacheid=xorg_cv_cc_flag__Werror_nonnull
8030 if eval test \${$cacheid+y}
8031 then :
8032 printf %s "(cached) " >&6
8033 else case e in #(
8034 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8035 /* end confdefs.h. */
8036 int i;
8037 int
8038 main (void)
8039 {
8040
8041 ;
8042 return 0;
8043 }
8044 _ACEOF
8045 if ac_fn_c_try_link "$LINENO"
8046 then :
8047 eval $cacheid=yes
8048 else case e in #(
8049 e) eval $cacheid=no ;;
8050 esac
8051 fi
8052 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8053 conftest$ac_exeext conftest.$ac_ext ;;
8054 esac
8055 fi
8056
8057
8058 CFLAGS="$xorg_testset_save_CFLAGS"
8059
8060 eval supported=\$$cacheid
8061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8062 printf "%s\n" "$supported" >&6; }
8063 if test "$supported" = "yes" ; then
8064 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8065 found="yes"
8066 fi
8067 fi
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083 xorg_testset_save_CFLAGS="$CFLAGS"
8084
8085 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8086 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8088 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8089 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8090 then :
8091 printf %s "(cached) " >&6
8092 else case e in #(
8093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8095 int i;
8096 _ACEOF
8097 if ac_fn_c_try_compile "$LINENO"
8098 then :
8099 xorg_cv_cc_flag_unknown_warning_option=yes
8100 else case e in #(
8101 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8102 esac
8103 fi
8104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8105 esac
8106 fi
8107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8108 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8109 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8110 CFLAGS="$xorg_testset_save_CFLAGS"
8111 fi
8112
8113 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8116 fi
8117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8119 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8120 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8121 then :
8122 printf %s "(cached) " >&6
8123 else case e in #(
8124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8126 int i;
8127 _ACEOF
8128 if ac_fn_c_try_compile "$LINENO"
8129 then :
8130 xorg_cv_cc_flag_unused_command_line_argument=yes
8131 else case e in #(
8132 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8133 esac
8134 fi
8135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8136 esac
8137 fi
8138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8139 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8140 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8141 CFLAGS="$xorg_testset_save_CFLAGS"
8142 fi
8143
8144 found="no"
8145
8146 if test $found = "no" ; then
8147 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8148 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8149 fi
8150
8151 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8153 fi
8154
8155 CFLAGS="$CFLAGS -Werror=init-self"
8156
8157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
8158 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
8159 cacheid=xorg_cv_cc_flag__Werror_init_self
8160 if eval test \${$cacheid+y}
8161 then :
8162 printf %s "(cached) " >&6
8163 else case e in #(
8164 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8166 int i;
8167 int
8168 main (void)
8169 {
8170
8171 ;
8172 return 0;
8173 }
8174 _ACEOF
8175 if ac_fn_c_try_link "$LINENO"
8176 then :
8177 eval $cacheid=yes
8178 else case e in #(
8179 e) eval $cacheid=no ;;
8180 esac
8181 fi
8182 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8183 conftest$ac_exeext conftest.$ac_ext ;;
8184 esac
8185 fi
8186
8187
8188 CFLAGS="$xorg_testset_save_CFLAGS"
8189
8190 eval supported=\$$cacheid
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8192 printf "%s\n" "$supported" >&6; }
8193 if test "$supported" = "yes" ; then
8194 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8195 found="yes"
8196 fi
8197 fi
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213 xorg_testset_save_CFLAGS="$CFLAGS"
8214
8215 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8218 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8219 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8220 then :
8221 printf %s "(cached) " >&6
8222 else case e in #(
8223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8224 /* end confdefs.h. */
8225 int i;
8226 _ACEOF
8227 if ac_fn_c_try_compile "$LINENO"
8228 then :
8229 xorg_cv_cc_flag_unknown_warning_option=yes
8230 else case e in #(
8231 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8232 esac
8233 fi
8234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8235 esac
8236 fi
8237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8238 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8239 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8240 CFLAGS="$xorg_testset_save_CFLAGS"
8241 fi
8242
8243 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8246 fi
8247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8249 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8250 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8251 then :
8252 printf %s "(cached) " >&6
8253 else case e in #(
8254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8256 int i;
8257 _ACEOF
8258 if ac_fn_c_try_compile "$LINENO"
8259 then :
8260 xorg_cv_cc_flag_unused_command_line_argument=yes
8261 else case e in #(
8262 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8263 esac
8264 fi
8265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8266 esac
8267 fi
8268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8269 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8270 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8271 CFLAGS="$xorg_testset_save_CFLAGS"
8272 fi
8273
8274 found="no"
8275
8276 if test $found = "no" ; then
8277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8279 fi
8280
8281 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8283 fi
8284
8285 CFLAGS="$CFLAGS -Werror=main"
8286
8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8288 printf %s "checking if $CC supports -Werror=main... " >&6; }
8289 cacheid=xorg_cv_cc_flag__Werror_main
8290 if eval test \${$cacheid+y}
8291 then :
8292 printf %s "(cached) " >&6
8293 else case e in #(
8294 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8295 /* end confdefs.h. */
8296 int i;
8297 int
8298 main (void)
8299 {
8300
8301 ;
8302 return 0;
8303 }
8304 _ACEOF
8305 if ac_fn_c_try_link "$LINENO"
8306 then :
8307 eval $cacheid=yes
8308 else case e in #(
8309 e) eval $cacheid=no ;;
8310 esac
8311 fi
8312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8313 conftest$ac_exeext conftest.$ac_ext ;;
8314 esac
8315 fi
8316
8317
8318 CFLAGS="$xorg_testset_save_CFLAGS"
8319
8320 eval supported=\$$cacheid
8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8322 printf "%s\n" "$supported" >&6; }
8323 if test "$supported" = "yes" ; then
8324 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8325 found="yes"
8326 fi
8327 fi
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343 xorg_testset_save_CFLAGS="$CFLAGS"
8344
8345 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8348 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8349 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8350 then :
8351 printf %s "(cached) " >&6
8352 else case e in #(
8353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8355 int i;
8356 _ACEOF
8357 if ac_fn_c_try_compile "$LINENO"
8358 then :
8359 xorg_cv_cc_flag_unknown_warning_option=yes
8360 else case e in #(
8361 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8362 esac
8363 fi
8364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8365 esac
8366 fi
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8368 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8370 CFLAGS="$xorg_testset_save_CFLAGS"
8371 fi
8372
8373 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8376 fi
8377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8379 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8380 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8381 then :
8382 printf %s "(cached) " >&6
8383 else case e in #(
8384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386 int i;
8387 _ACEOF
8388 if ac_fn_c_try_compile "$LINENO"
8389 then :
8390 xorg_cv_cc_flag_unused_command_line_argument=yes
8391 else case e in #(
8392 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8393 esac
8394 fi
8395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8396 esac
8397 fi
8398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8399 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8400 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8401 CFLAGS="$xorg_testset_save_CFLAGS"
8402 fi
8403
8404 found="no"
8405
8406 if test $found = "no" ; then
8407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8409 fi
8410
8411 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8413 fi
8414
8415 CFLAGS="$CFLAGS -Werror=missing-braces"
8416
8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8418 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8419 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8420 if eval test \${$cacheid+y}
8421 then :
8422 printf %s "(cached) " >&6
8423 else case e in #(
8424 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8425 /* end confdefs.h. */
8426 int i;
8427 int
8428 main (void)
8429 {
8430
8431 ;
8432 return 0;
8433 }
8434 _ACEOF
8435 if ac_fn_c_try_link "$LINENO"
8436 then :
8437 eval $cacheid=yes
8438 else case e in #(
8439 e) eval $cacheid=no ;;
8440 esac
8441 fi
8442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8443 conftest$ac_exeext conftest.$ac_ext ;;
8444 esac
8445 fi
8446
8447
8448 CFLAGS="$xorg_testset_save_CFLAGS"
8449
8450 eval supported=\$$cacheid
8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8452 printf "%s\n" "$supported" >&6; }
8453 if test "$supported" = "yes" ; then
8454 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8455 found="yes"
8456 fi
8457 fi
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473 xorg_testset_save_CFLAGS="$CFLAGS"
8474
8475 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8478 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8479 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8480 then :
8481 printf %s "(cached) " >&6
8482 else case e in #(
8483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484 /* end confdefs.h. */
8485 int i;
8486 _ACEOF
8487 if ac_fn_c_try_compile "$LINENO"
8488 then :
8489 xorg_cv_cc_flag_unknown_warning_option=yes
8490 else case e in #(
8491 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8492 esac
8493 fi
8494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8495 esac
8496 fi
8497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8498 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8499 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8500 CFLAGS="$xorg_testset_save_CFLAGS"
8501 fi
8502
8503 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8506 fi
8507 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8509 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8510 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8511 then :
8512 printf %s "(cached) " >&6
8513 else case e in #(
8514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 int i;
8517 _ACEOF
8518 if ac_fn_c_try_compile "$LINENO"
8519 then :
8520 xorg_cv_cc_flag_unused_command_line_argument=yes
8521 else case e in #(
8522 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8523 esac
8524 fi
8525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8526 esac
8527 fi
8528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8529 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8531 CFLAGS="$xorg_testset_save_CFLAGS"
8532 fi
8533
8534 found="no"
8535
8536 if test $found = "no" ; then
8537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8539 fi
8540
8541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8543 fi
8544
8545 CFLAGS="$CFLAGS -Werror=sequence-point"
8546
8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8548 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8549 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8550 if eval test \${$cacheid+y}
8551 then :
8552 printf %s "(cached) " >&6
8553 else case e in #(
8554 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h. */
8556 int i;
8557 int
8558 main (void)
8559 {
8560
8561 ;
8562 return 0;
8563 }
8564 _ACEOF
8565 if ac_fn_c_try_link "$LINENO"
8566 then :
8567 eval $cacheid=yes
8568 else case e in #(
8569 e) eval $cacheid=no ;;
8570 esac
8571 fi
8572 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8573 conftest$ac_exeext conftest.$ac_ext ;;
8574 esac
8575 fi
8576
8577
8578 CFLAGS="$xorg_testset_save_CFLAGS"
8579
8580 eval supported=\$$cacheid
8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8582 printf "%s\n" "$supported" >&6; }
8583 if test "$supported" = "yes" ; then
8584 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8585 found="yes"
8586 fi
8587 fi
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603 xorg_testset_save_CFLAGS="$CFLAGS"
8604
8605 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8608 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8609 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8610 then :
8611 printf %s "(cached) " >&6
8612 else case e in #(
8613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8614 /* end confdefs.h. */
8615 int i;
8616 _ACEOF
8617 if ac_fn_c_try_compile "$LINENO"
8618 then :
8619 xorg_cv_cc_flag_unknown_warning_option=yes
8620 else case e in #(
8621 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8622 esac
8623 fi
8624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8625 esac
8626 fi
8627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8628 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8629 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8630 CFLAGS="$xorg_testset_save_CFLAGS"
8631 fi
8632
8633 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8636 fi
8637 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8639 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8640 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8641 then :
8642 printf %s "(cached) " >&6
8643 else case e in #(
8644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h. */
8646 int i;
8647 _ACEOF
8648 if ac_fn_c_try_compile "$LINENO"
8649 then :
8650 xorg_cv_cc_flag_unused_command_line_argument=yes
8651 else case e in #(
8652 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8653 esac
8654 fi
8655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8656 esac
8657 fi
8658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8659 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8661 CFLAGS="$xorg_testset_save_CFLAGS"
8662 fi
8663
8664 found="no"
8665
8666 if test $found = "no" ; then
8667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8669 fi
8670
8671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8673 fi
8674
8675 CFLAGS="$CFLAGS -Werror=return-type"
8676
8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8678 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8679 cacheid=xorg_cv_cc_flag__Werror_return_type
8680 if eval test \${$cacheid+y}
8681 then :
8682 printf %s "(cached) " >&6
8683 else case e in #(
8684 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685 /* end confdefs.h. */
8686 int i;
8687 int
8688 main (void)
8689 {
8690
8691 ;
8692 return 0;
8693 }
8694 _ACEOF
8695 if ac_fn_c_try_link "$LINENO"
8696 then :
8697 eval $cacheid=yes
8698 else case e in #(
8699 e) eval $cacheid=no ;;
8700 esac
8701 fi
8702 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8703 conftest$ac_exeext conftest.$ac_ext ;;
8704 esac
8705 fi
8706
8707
8708 CFLAGS="$xorg_testset_save_CFLAGS"
8709
8710 eval supported=\$$cacheid
8711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8712 printf "%s\n" "$supported" >&6; }
8713 if test "$supported" = "yes" ; then
8714 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8715 found="yes"
8716 fi
8717 fi
8718
8719 if test $found = "no" ; then
8720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8722 fi
8723
8724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8726 fi
8727
8728 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8729
8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8731 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8732 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8733 if eval test \${$cacheid+y}
8734 then :
8735 printf %s "(cached) " >&6
8736 else case e in #(
8737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 int i;
8740 int
8741 main (void)
8742 {
8743
8744 ;
8745 return 0;
8746 }
8747 _ACEOF
8748 if ac_fn_c_try_link "$LINENO"
8749 then :
8750 eval $cacheid=yes
8751 else case e in #(
8752 e) eval $cacheid=no ;;
8753 esac
8754 fi
8755 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8756 conftest$ac_exeext conftest.$ac_ext ;;
8757 esac
8758 fi
8759
8760
8761 CFLAGS="$xorg_testset_save_CFLAGS"
8762
8763 eval supported=\$$cacheid
8764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8765 printf "%s\n" "$supported" >&6; }
8766 if test "$supported" = "yes" ; then
8767 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8768 found="yes"
8769 fi
8770 fi
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786 xorg_testset_save_CFLAGS="$CFLAGS"
8787
8788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8791 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8792 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8793 then :
8794 printf %s "(cached) " >&6
8795 else case e in #(
8796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8798 int i;
8799 _ACEOF
8800 if ac_fn_c_try_compile "$LINENO"
8801 then :
8802 xorg_cv_cc_flag_unknown_warning_option=yes
8803 else case e in #(
8804 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8805 esac
8806 fi
8807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8808 esac
8809 fi
8810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8811 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8813 CFLAGS="$xorg_testset_save_CFLAGS"
8814 fi
8815
8816 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8819 fi
8820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8822 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8823 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8824 then :
8825 printf %s "(cached) " >&6
8826 else case e in #(
8827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8829 int i;
8830 _ACEOF
8831 if ac_fn_c_try_compile "$LINENO"
8832 then :
8833 xorg_cv_cc_flag_unused_command_line_argument=yes
8834 else case e in #(
8835 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8836 esac
8837 fi
8838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8839 esac
8840 fi
8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8842 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8844 CFLAGS="$xorg_testset_save_CFLAGS"
8845 fi
8846
8847 found="no"
8848
8849 if test $found = "no" ; then
8850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8852 fi
8853
8854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8856 fi
8857
8858 CFLAGS="$CFLAGS -Werror=trigraphs"
8859
8860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8861 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8862 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8863 if eval test \${$cacheid+y}
8864 then :
8865 printf %s "(cached) " >&6
8866 else case e in #(
8867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8869 int i;
8870 int
8871 main (void)
8872 {
8873
8874 ;
8875 return 0;
8876 }
8877 _ACEOF
8878 if ac_fn_c_try_link "$LINENO"
8879 then :
8880 eval $cacheid=yes
8881 else case e in #(
8882 e) eval $cacheid=no ;;
8883 esac
8884 fi
8885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8886 conftest$ac_exeext conftest.$ac_ext ;;
8887 esac
8888 fi
8889
8890
8891 CFLAGS="$xorg_testset_save_CFLAGS"
8892
8893 eval supported=\$$cacheid
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8895 printf "%s\n" "$supported" >&6; }
8896 if test "$supported" = "yes" ; then
8897 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8898 found="yes"
8899 fi
8900 fi
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916 xorg_testset_save_CFLAGS="$CFLAGS"
8917
8918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8921 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8922 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8923 then :
8924 printf %s "(cached) " >&6
8925 else case e in #(
8926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h. */
8928 int i;
8929 _ACEOF
8930 if ac_fn_c_try_compile "$LINENO"
8931 then :
8932 xorg_cv_cc_flag_unknown_warning_option=yes
8933 else case e in #(
8934 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8935 esac
8936 fi
8937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8938 esac
8939 fi
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8941 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8943 CFLAGS="$xorg_testset_save_CFLAGS"
8944 fi
8945
8946 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8949 fi
8950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8952 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8953 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8954 then :
8955 printf %s "(cached) " >&6
8956 else case e in #(
8957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8959 int i;
8960 _ACEOF
8961 if ac_fn_c_try_compile "$LINENO"
8962 then :
8963 xorg_cv_cc_flag_unused_command_line_argument=yes
8964 else case e in #(
8965 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8966 esac
8967 fi
8968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8969 esac
8970 fi
8971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8972 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8974 CFLAGS="$xorg_testset_save_CFLAGS"
8975 fi
8976
8977 found="no"
8978
8979 if test $found = "no" ; then
8980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8982 fi
8983
8984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8986 fi
8987
8988 CFLAGS="$CFLAGS -Werror=array-bounds"
8989
8990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8991 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8992 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8993 if eval test \${$cacheid+y}
8994 then :
8995 printf %s "(cached) " >&6
8996 else case e in #(
8997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8998 /* end confdefs.h. */
8999 int i;
9000 int
9001 main (void)
9002 {
9003
9004 ;
9005 return 0;
9006 }
9007 _ACEOF
9008 if ac_fn_c_try_link "$LINENO"
9009 then :
9010 eval $cacheid=yes
9011 else case e in #(
9012 e) eval $cacheid=no ;;
9013 esac
9014 fi
9015 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9016 conftest$ac_exeext conftest.$ac_ext ;;
9017 esac
9018 fi
9019
9020
9021 CFLAGS="$xorg_testset_save_CFLAGS"
9022
9023 eval supported=\$$cacheid
9024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9025 printf "%s\n" "$supported" >&6; }
9026 if test "$supported" = "yes" ; then
9027 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9028 found="yes"
9029 fi
9030 fi
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046 xorg_testset_save_CFLAGS="$CFLAGS"
9047
9048 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9051 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9052 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9053 then :
9054 printf %s "(cached) " >&6
9055 else case e in #(
9056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9058 int i;
9059 _ACEOF
9060 if ac_fn_c_try_compile "$LINENO"
9061 then :
9062 xorg_cv_cc_flag_unknown_warning_option=yes
9063 else case e in #(
9064 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9065 esac
9066 fi
9067 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9068 esac
9069 fi
9070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9071 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9072 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9073 CFLAGS="$xorg_testset_save_CFLAGS"
9074 fi
9075
9076 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9077 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9078 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9079 fi
9080 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9082 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9083 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9084 then :
9085 printf %s "(cached) " >&6
9086 else case e in #(
9087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 int i;
9090 _ACEOF
9091 if ac_fn_c_try_compile "$LINENO"
9092 then :
9093 xorg_cv_cc_flag_unused_command_line_argument=yes
9094 else case e in #(
9095 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9096 esac
9097 fi
9098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9099 esac
9100 fi
9101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9102 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9103 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9104 CFLAGS="$xorg_testset_save_CFLAGS"
9105 fi
9106
9107 found="no"
9108
9109 if test $found = "no" ; then
9110 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9112 fi
9113
9114 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9116 fi
9117
9118 CFLAGS="$CFLAGS -Werror=write-strings"
9119
9120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9121 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
9122 cacheid=xorg_cv_cc_flag__Werror_write_strings
9123 if eval test \${$cacheid+y}
9124 then :
9125 printf %s "(cached) " >&6
9126 else case e in #(
9127 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9128 /* end confdefs.h. */
9129 int i;
9130 int
9131 main (void)
9132 {
9133
9134 ;
9135 return 0;
9136 }
9137 _ACEOF
9138 if ac_fn_c_try_link "$LINENO"
9139 then :
9140 eval $cacheid=yes
9141 else case e in #(
9142 e) eval $cacheid=no ;;
9143 esac
9144 fi
9145 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9146 conftest$ac_exeext conftest.$ac_ext ;;
9147 esac
9148 fi
9149
9150
9151 CFLAGS="$xorg_testset_save_CFLAGS"
9152
9153 eval supported=\$$cacheid
9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9155 printf "%s\n" "$supported" >&6; }
9156 if test "$supported" = "yes" ; then
9157 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9158 found="yes"
9159 fi
9160 fi
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176 xorg_testset_save_CFLAGS="$CFLAGS"
9177
9178 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9179 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9181 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9182 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9183 then :
9184 printf %s "(cached) " >&6
9185 else case e in #(
9186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 int i;
9189 _ACEOF
9190 if ac_fn_c_try_compile "$LINENO"
9191 then :
9192 xorg_cv_cc_flag_unknown_warning_option=yes
9193 else case e in #(
9194 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9195 esac
9196 fi
9197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9198 esac
9199 fi
9200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9201 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9202 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9203 CFLAGS="$xorg_testset_save_CFLAGS"
9204 fi
9205
9206 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9207 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9208 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9209 fi
9210 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9212 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9213 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9214 then :
9215 printf %s "(cached) " >&6
9216 else case e in #(
9217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219 int i;
9220 _ACEOF
9221 if ac_fn_c_try_compile "$LINENO"
9222 then :
9223 xorg_cv_cc_flag_unused_command_line_argument=yes
9224 else case e in #(
9225 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9226 esac
9227 fi
9228 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9229 esac
9230 fi
9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9232 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9233 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9234 CFLAGS="$xorg_testset_save_CFLAGS"
9235 fi
9236
9237 found="no"
9238
9239 if test $found = "no" ; then
9240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9242 fi
9243
9244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9246 fi
9247
9248 CFLAGS="$CFLAGS -Werror=address"
9249
9250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9251 printf %s "checking if $CC supports -Werror=address... " >&6; }
9252 cacheid=xorg_cv_cc_flag__Werror_address
9253 if eval test \${$cacheid+y}
9254 then :
9255 printf %s "(cached) " >&6
9256 else case e in #(
9257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9259 int i;
9260 int
9261 main (void)
9262 {
9263
9264 ;
9265 return 0;
9266 }
9267 _ACEOF
9268 if ac_fn_c_try_link "$LINENO"
9269 then :
9270 eval $cacheid=yes
9271 else case e in #(
9272 e) eval $cacheid=no ;;
9273 esac
9274 fi
9275 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9276 conftest$ac_exeext conftest.$ac_ext ;;
9277 esac
9278 fi
9279
9280
9281 CFLAGS="$xorg_testset_save_CFLAGS"
9282
9283 eval supported=\$$cacheid
9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9285 printf "%s\n" "$supported" >&6; }
9286 if test "$supported" = "yes" ; then
9287 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9288 found="yes"
9289 fi
9290 fi
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306 xorg_testset_save_CFLAGS="$CFLAGS"
9307
9308 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9311 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9312 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9313 then :
9314 printf %s "(cached) " >&6
9315 else case e in #(
9316 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318 int i;
9319 _ACEOF
9320 if ac_fn_c_try_compile "$LINENO"
9321 then :
9322 xorg_cv_cc_flag_unknown_warning_option=yes
9323 else case e in #(
9324 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9325 esac
9326 fi
9327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9328 esac
9329 fi
9330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9331 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9333 CFLAGS="$xorg_testset_save_CFLAGS"
9334 fi
9335
9336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9339 fi
9340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9342 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9343 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9344 then :
9345 printf %s "(cached) " >&6
9346 else case e in #(
9347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9349 int i;
9350 _ACEOF
9351 if ac_fn_c_try_compile "$LINENO"
9352 then :
9353 xorg_cv_cc_flag_unused_command_line_argument=yes
9354 else case e in #(
9355 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9356 esac
9357 fi
9358 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9359 esac
9360 fi
9361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9362 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9363 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9364 CFLAGS="$xorg_testset_save_CFLAGS"
9365 fi
9366
9367 found="no"
9368
9369 if test $found = "no" ; then
9370 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9372 fi
9373
9374 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9375 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9376 fi
9377
9378 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9379
9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9381 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9382 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9383 if eval test \${$cacheid+y}
9384 then :
9385 printf %s "(cached) " >&6
9386 else case e in #(
9387 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9389 int i;
9390 int
9391 main (void)
9392 {
9393
9394 ;
9395 return 0;
9396 }
9397 _ACEOF
9398 if ac_fn_c_try_link "$LINENO"
9399 then :
9400 eval $cacheid=yes
9401 else case e in #(
9402 e) eval $cacheid=no ;;
9403 esac
9404 fi
9405 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9406 conftest$ac_exeext conftest.$ac_ext ;;
9407 esac
9408 fi
9409
9410
9411 CFLAGS="$xorg_testset_save_CFLAGS"
9412
9413 eval supported=\$$cacheid
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9415 printf "%s\n" "$supported" >&6; }
9416 if test "$supported" = "yes" ; then
9417 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9418 found="yes"
9419 fi
9420 fi
9421
9422 if test $found = "no" ; then
9423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9425 fi
9426
9427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9429 fi
9430
9431 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9432
9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9434 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9435 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9436 if eval test \${$cacheid+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 int
9444 main (void)
9445 {
9446
9447 ;
9448 return 0;
9449 }
9450 _ACEOF
9451 if ac_fn_c_try_link "$LINENO"
9452 then :
9453 eval $cacheid=yes
9454 else case e in #(
9455 e) eval $cacheid=no ;;
9456 esac
9457 fi
9458 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9459 conftest$ac_exeext conftest.$ac_ext ;;
9460 esac
9461 fi
9462
9463
9464 CFLAGS="$xorg_testset_save_CFLAGS"
9465
9466 eval supported=\$$cacheid
9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9468 printf "%s\n" "$supported" >&6; }
9469 if test "$supported" = "yes" ; then
9470 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9471 found="yes"
9472 fi
9473 fi
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489 xorg_testset_save_CFLAGS="$CFLAGS"
9490
9491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9494 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9495 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9496 then :
9497 printf %s "(cached) " >&6
9498 else case e in #(
9499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501 int i;
9502 _ACEOF
9503 if ac_fn_c_try_compile "$LINENO"
9504 then :
9505 xorg_cv_cc_flag_unknown_warning_option=yes
9506 else case e in #(
9507 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9508 esac
9509 fi
9510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9511 esac
9512 fi
9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9514 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9516 CFLAGS="$xorg_testset_save_CFLAGS"
9517 fi
9518
9519 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9522 fi
9523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9525 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9526 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9527 then :
9528 printf %s "(cached) " >&6
9529 else case e in #(
9530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h. */
9532 int i;
9533 _ACEOF
9534 if ac_fn_c_try_compile "$LINENO"
9535 then :
9536 xorg_cv_cc_flag_unused_command_line_argument=yes
9537 else case e in #(
9538 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9539 esac
9540 fi
9541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9542 esac
9543 fi
9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9545 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9547 CFLAGS="$xorg_testset_save_CFLAGS"
9548 fi
9549
9550 found="no"
9551
9552 if test $found = "no" ; then
9553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9555 fi
9556
9557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9559 fi
9560
9561 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9562
9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9564 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9565 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9566 if eval test \${$cacheid+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 int
9574 main (void)
9575 {
9576
9577 ;
9578 return 0;
9579 }
9580 _ACEOF
9581 if ac_fn_c_try_link "$LINENO"
9582 then :
9583 eval $cacheid=yes
9584 else case e in #(
9585 e) eval $cacheid=no ;;
9586 esac
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9589 conftest$ac_exeext conftest.$ac_ext ;;
9590 esac
9591 fi
9592
9593
9594 CFLAGS="$xorg_testset_save_CFLAGS"
9595
9596 eval supported=\$$cacheid
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9598 printf "%s\n" "$supported" >&6; }
9599 if test "$supported" = "yes" ; then
9600 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9601 found="yes"
9602 fi
9603 fi
9604
9605 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9606 else
9607 { 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
9608 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;}
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622 xorg_testset_save_CFLAGS="$CFLAGS"
9623
9624 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9627 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9628 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9629 then :
9630 printf %s "(cached) " >&6
9631 else case e in #(
9632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9633 /* end confdefs.h. */
9634 int i;
9635 _ACEOF
9636 if ac_fn_c_try_compile "$LINENO"
9637 then :
9638 xorg_cv_cc_flag_unknown_warning_option=yes
9639 else case e in #(
9640 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9641 esac
9642 fi
9643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9644 esac
9645 fi
9646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9647 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9649 CFLAGS="$xorg_testset_save_CFLAGS"
9650 fi
9651
9652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9655 fi
9656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9658 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9659 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9660 then :
9661 printf %s "(cached) " >&6
9662 else case e in #(
9663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664 /* end confdefs.h. */
9665 int i;
9666 _ACEOF
9667 if ac_fn_c_try_compile "$LINENO"
9668 then :
9669 xorg_cv_cc_flag_unused_command_line_argument=yes
9670 else case e in #(
9671 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9672 esac
9673 fi
9674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9675 esac
9676 fi
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9678 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9680 CFLAGS="$xorg_testset_save_CFLAGS"
9681 fi
9682
9683 found="no"
9684
9685 if test $found = "no" ; then
9686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9688 fi
9689
9690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9692 fi
9693
9694 CFLAGS="$CFLAGS -Wimplicit"
9695
9696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9697 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9698 cacheid=xorg_cv_cc_flag__Wimplicit
9699 if eval test \${$cacheid+y}
9700 then :
9701 printf %s "(cached) " >&6
9702 else case e in #(
9703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h. */
9705 int i;
9706 int
9707 main (void)
9708 {
9709
9710 ;
9711 return 0;
9712 }
9713 _ACEOF
9714 if ac_fn_c_try_link "$LINENO"
9715 then :
9716 eval $cacheid=yes
9717 else case e in #(
9718 e) eval $cacheid=no ;;
9719 esac
9720 fi
9721 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9722 conftest$ac_exeext conftest.$ac_ext ;;
9723 esac
9724 fi
9725
9726
9727 CFLAGS="$xorg_testset_save_CFLAGS"
9728
9729 eval supported=\$$cacheid
9730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9731 printf "%s\n" "$supported" >&6; }
9732 if test "$supported" = "yes" ; then
9733 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9734 found="yes"
9735 fi
9736 fi
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752 xorg_testset_save_CFLAGS="$CFLAGS"
9753
9754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9757 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9758 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9759 then :
9760 printf %s "(cached) " >&6
9761 else case e in #(
9762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9764 int i;
9765 _ACEOF
9766 if ac_fn_c_try_compile "$LINENO"
9767 then :
9768 xorg_cv_cc_flag_unknown_warning_option=yes
9769 else case e in #(
9770 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9771 esac
9772 fi
9773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9774 esac
9775 fi
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9777 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9779 CFLAGS="$xorg_testset_save_CFLAGS"
9780 fi
9781
9782 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9785 fi
9786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9788 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9789 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9790 then :
9791 printf %s "(cached) " >&6
9792 else case e in #(
9793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794 /* end confdefs.h. */
9795 int i;
9796 _ACEOF
9797 if ac_fn_c_try_compile "$LINENO"
9798 then :
9799 xorg_cv_cc_flag_unused_command_line_argument=yes
9800 else case e in #(
9801 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9802 esac
9803 fi
9804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9805 esac
9806 fi
9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9808 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9810 CFLAGS="$xorg_testset_save_CFLAGS"
9811 fi
9812
9813 found="no"
9814
9815 if test $found = "no" ; then
9816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9818 fi
9819
9820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9822 fi
9823
9824 CFLAGS="$CFLAGS -Wnonnull"
9825
9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9827 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9828 cacheid=xorg_cv_cc_flag__Wnonnull
9829 if eval test \${$cacheid+y}
9830 then :
9831 printf %s "(cached) " >&6
9832 else case e in #(
9833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* end confdefs.h. */
9835 int i;
9836 int
9837 main (void)
9838 {
9839
9840 ;
9841 return 0;
9842 }
9843 _ACEOF
9844 if ac_fn_c_try_link "$LINENO"
9845 then :
9846 eval $cacheid=yes
9847 else case e in #(
9848 e) eval $cacheid=no ;;
9849 esac
9850 fi
9851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9852 conftest$ac_exeext conftest.$ac_ext ;;
9853 esac
9854 fi
9855
9856
9857 CFLAGS="$xorg_testset_save_CFLAGS"
9858
9859 eval supported=\$$cacheid
9860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9861 printf "%s\n" "$supported" >&6; }
9862 if test "$supported" = "yes" ; then
9863 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9864 found="yes"
9865 fi
9866 fi
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882 xorg_testset_save_CFLAGS="$CFLAGS"
9883
9884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9887 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9888 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9889 then :
9890 printf %s "(cached) " >&6
9891 else case e in #(
9892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893 /* end confdefs.h. */
9894 int i;
9895 _ACEOF
9896 if ac_fn_c_try_compile "$LINENO"
9897 then :
9898 xorg_cv_cc_flag_unknown_warning_option=yes
9899 else case e in #(
9900 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9901 esac
9902 fi
9903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9904 esac
9905 fi
9906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9907 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9909 CFLAGS="$xorg_testset_save_CFLAGS"
9910 fi
9911
9912 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9915 fi
9916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9918 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9919 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9920 then :
9921 printf %s "(cached) " >&6
9922 else case e in #(
9923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9925 int i;
9926 _ACEOF
9927 if ac_fn_c_try_compile "$LINENO"
9928 then :
9929 xorg_cv_cc_flag_unused_command_line_argument=yes
9930 else case e in #(
9931 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9932 esac
9933 fi
9934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9935 esac
9936 fi
9937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9938 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9940 CFLAGS="$xorg_testset_save_CFLAGS"
9941 fi
9942
9943 found="no"
9944
9945 if test $found = "no" ; then
9946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9948 fi
9949
9950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9952 fi
9953
9954 CFLAGS="$CFLAGS -Winit-self"
9955
9956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9957 printf %s "checking if $CC supports -Winit-self... " >&6; }
9958 cacheid=xorg_cv_cc_flag__Winit_self
9959 if eval test \${$cacheid+y}
9960 then :
9961 printf %s "(cached) " >&6
9962 else case e in #(
9963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9965 int i;
9966 int
9967 main (void)
9968 {
9969
9970 ;
9971 return 0;
9972 }
9973 _ACEOF
9974 if ac_fn_c_try_link "$LINENO"
9975 then :
9976 eval $cacheid=yes
9977 else case e in #(
9978 e) eval $cacheid=no ;;
9979 esac
9980 fi
9981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9982 conftest$ac_exeext conftest.$ac_ext ;;
9983 esac
9984 fi
9985
9986
9987 CFLAGS="$xorg_testset_save_CFLAGS"
9988
9989 eval supported=\$$cacheid
9990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9991 printf "%s\n" "$supported" >&6; }
9992 if test "$supported" = "yes" ; then
9993 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9994 found="yes"
9995 fi
9996 fi
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012 xorg_testset_save_CFLAGS="$CFLAGS"
10013
10014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10017 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10018 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10019 then :
10020 printf %s "(cached) " >&6
10021 else case e in #(
10022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10023 /* end confdefs.h. */
10024 int i;
10025 _ACEOF
10026 if ac_fn_c_try_compile "$LINENO"
10027 then :
10028 xorg_cv_cc_flag_unknown_warning_option=yes
10029 else case e in #(
10030 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10031 esac
10032 fi
10033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10034 esac
10035 fi
10036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10037 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10039 CFLAGS="$xorg_testset_save_CFLAGS"
10040 fi
10041
10042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10045 fi
10046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10048 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10049 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10050 then :
10051 printf %s "(cached) " >&6
10052 else case e in #(
10053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054 /* end confdefs.h. */
10055 int i;
10056 _ACEOF
10057 if ac_fn_c_try_compile "$LINENO"
10058 then :
10059 xorg_cv_cc_flag_unused_command_line_argument=yes
10060 else case e in #(
10061 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10062 esac
10063 fi
10064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10065 esac
10066 fi
10067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10068 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10070 CFLAGS="$xorg_testset_save_CFLAGS"
10071 fi
10072
10073 found="no"
10074
10075 if test $found = "no" ; then
10076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10078 fi
10079
10080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10082 fi
10083
10084 CFLAGS="$CFLAGS -Wmain"
10085
10086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
10087 printf %s "checking if $CC supports -Wmain... " >&6; }
10088 cacheid=xorg_cv_cc_flag__Wmain
10089 if eval test \${$cacheid+y}
10090 then :
10091 printf %s "(cached) " >&6
10092 else case e in #(
10093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10094 /* end confdefs.h. */
10095 int i;
10096 int
10097 main (void)
10098 {
10099
10100 ;
10101 return 0;
10102 }
10103 _ACEOF
10104 if ac_fn_c_try_link "$LINENO"
10105 then :
10106 eval $cacheid=yes
10107 else case e in #(
10108 e) eval $cacheid=no ;;
10109 esac
10110 fi
10111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10112 conftest$ac_exeext conftest.$ac_ext ;;
10113 esac
10114 fi
10115
10116
10117 CFLAGS="$xorg_testset_save_CFLAGS"
10118
10119 eval supported=\$$cacheid
10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10121 printf "%s\n" "$supported" >&6; }
10122 if test "$supported" = "yes" ; then
10123 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10124 found="yes"
10125 fi
10126 fi
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142 xorg_testset_save_CFLAGS="$CFLAGS"
10143
10144 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10147 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10148 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10149 then :
10150 printf %s "(cached) " >&6
10151 else case e in #(
10152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10153 /* end confdefs.h. */
10154 int i;
10155 _ACEOF
10156 if ac_fn_c_try_compile "$LINENO"
10157 then :
10158 xorg_cv_cc_flag_unknown_warning_option=yes
10159 else case e in #(
10160 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10161 esac
10162 fi
10163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10164 esac
10165 fi
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10167 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10169 CFLAGS="$xorg_testset_save_CFLAGS"
10170 fi
10171
10172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10175 fi
10176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10178 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10179 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10180 then :
10181 printf %s "(cached) " >&6
10182 else case e in #(
10183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10185 int i;
10186 _ACEOF
10187 if ac_fn_c_try_compile "$LINENO"
10188 then :
10189 xorg_cv_cc_flag_unused_command_line_argument=yes
10190 else case e in #(
10191 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10192 esac
10193 fi
10194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10195 esac
10196 fi
10197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10198 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10200 CFLAGS="$xorg_testset_save_CFLAGS"
10201 fi
10202
10203 found="no"
10204
10205 if test $found = "no" ; then
10206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10208 fi
10209
10210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10212 fi
10213
10214 CFLAGS="$CFLAGS -Wmissing-braces"
10215
10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10217 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10218 cacheid=xorg_cv_cc_flag__Wmissing_braces
10219 if eval test \${$cacheid+y}
10220 then :
10221 printf %s "(cached) " >&6
10222 else case e in #(
10223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225 int i;
10226 int
10227 main (void)
10228 {
10229
10230 ;
10231 return 0;
10232 }
10233 _ACEOF
10234 if ac_fn_c_try_link "$LINENO"
10235 then :
10236 eval $cacheid=yes
10237 else case e in #(
10238 e) eval $cacheid=no ;;
10239 esac
10240 fi
10241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10242 conftest$ac_exeext conftest.$ac_ext ;;
10243 esac
10244 fi
10245
10246
10247 CFLAGS="$xorg_testset_save_CFLAGS"
10248
10249 eval supported=\$$cacheid
10250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10251 printf "%s\n" "$supported" >&6; }
10252 if test "$supported" = "yes" ; then
10253 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10254 found="yes"
10255 fi
10256 fi
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272 xorg_testset_save_CFLAGS="$CFLAGS"
10273
10274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10277 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10278 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10279 then :
10280 printf %s "(cached) " >&6
10281 else case e in #(
10282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10283 /* end confdefs.h. */
10284 int i;
10285 _ACEOF
10286 if ac_fn_c_try_compile "$LINENO"
10287 then :
10288 xorg_cv_cc_flag_unknown_warning_option=yes
10289 else case e in #(
10290 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10291 esac
10292 fi
10293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10294 esac
10295 fi
10296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10297 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10299 CFLAGS="$xorg_testset_save_CFLAGS"
10300 fi
10301
10302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10305 fi
10306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10308 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10309 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10310 then :
10311 printf %s "(cached) " >&6
10312 else case e in #(
10313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10314 /* end confdefs.h. */
10315 int i;
10316 _ACEOF
10317 if ac_fn_c_try_compile "$LINENO"
10318 then :
10319 xorg_cv_cc_flag_unused_command_line_argument=yes
10320 else case e in #(
10321 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10322 esac
10323 fi
10324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10325 esac
10326 fi
10327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10328 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10330 CFLAGS="$xorg_testset_save_CFLAGS"
10331 fi
10332
10333 found="no"
10334
10335 if test $found = "no" ; then
10336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10338 fi
10339
10340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10342 fi
10343
10344 CFLAGS="$CFLAGS -Wsequence-point"
10345
10346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10347 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10348 cacheid=xorg_cv_cc_flag__Wsequence_point
10349 if eval test \${$cacheid+y}
10350 then :
10351 printf %s "(cached) " >&6
10352 else case e in #(
10353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10354 /* end confdefs.h. */
10355 int i;
10356 int
10357 main (void)
10358 {
10359
10360 ;
10361 return 0;
10362 }
10363 _ACEOF
10364 if ac_fn_c_try_link "$LINENO"
10365 then :
10366 eval $cacheid=yes
10367 else case e in #(
10368 e) eval $cacheid=no ;;
10369 esac
10370 fi
10371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10372 conftest$ac_exeext conftest.$ac_ext ;;
10373 esac
10374 fi
10375
10376
10377 CFLAGS="$xorg_testset_save_CFLAGS"
10378
10379 eval supported=\$$cacheid
10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10381 printf "%s\n" "$supported" >&6; }
10382 if test "$supported" = "yes" ; then
10383 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10384 found="yes"
10385 fi
10386 fi
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402 xorg_testset_save_CFLAGS="$CFLAGS"
10403
10404 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10407 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10408 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10409 then :
10410 printf %s "(cached) " >&6
10411 else case e in #(
10412 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10413 /* end confdefs.h. */
10414 int i;
10415 _ACEOF
10416 if ac_fn_c_try_compile "$LINENO"
10417 then :
10418 xorg_cv_cc_flag_unknown_warning_option=yes
10419 else case e in #(
10420 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10421 esac
10422 fi
10423 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10424 esac
10425 fi
10426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10427 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10428 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10429 CFLAGS="$xorg_testset_save_CFLAGS"
10430 fi
10431
10432 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10435 fi
10436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10438 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10439 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10440 then :
10441 printf %s "(cached) " >&6
10442 else case e in #(
10443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10445 int i;
10446 _ACEOF
10447 if ac_fn_c_try_compile "$LINENO"
10448 then :
10449 xorg_cv_cc_flag_unused_command_line_argument=yes
10450 else case e in #(
10451 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10452 esac
10453 fi
10454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10455 esac
10456 fi
10457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10458 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10460 CFLAGS="$xorg_testset_save_CFLAGS"
10461 fi
10462
10463 found="no"
10464
10465 if test $found = "no" ; then
10466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10468 fi
10469
10470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10472 fi
10473
10474 CFLAGS="$CFLAGS -Wreturn-type"
10475
10476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10477 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10478 cacheid=xorg_cv_cc_flag__Wreturn_type
10479 if eval test \${$cacheid+y}
10480 then :
10481 printf %s "(cached) " >&6
10482 else case e in #(
10483 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10484 /* end confdefs.h. */
10485 int i;
10486 int
10487 main (void)
10488 {
10489
10490 ;
10491 return 0;
10492 }
10493 _ACEOF
10494 if ac_fn_c_try_link "$LINENO"
10495 then :
10496 eval $cacheid=yes
10497 else case e in #(
10498 e) eval $cacheid=no ;;
10499 esac
10500 fi
10501 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10502 conftest$ac_exeext conftest.$ac_ext ;;
10503 esac
10504 fi
10505
10506
10507 CFLAGS="$xorg_testset_save_CFLAGS"
10508
10509 eval supported=\$$cacheid
10510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10511 printf "%s\n" "$supported" >&6; }
10512 if test "$supported" = "yes" ; then
10513 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10514 found="yes"
10515 fi
10516 fi
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532 xorg_testset_save_CFLAGS="$CFLAGS"
10533
10534 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10535 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10537 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10538 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10539 then :
10540 printf %s "(cached) " >&6
10541 else case e in #(
10542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10543 /* end confdefs.h. */
10544 int i;
10545 _ACEOF
10546 if ac_fn_c_try_compile "$LINENO"
10547 then :
10548 xorg_cv_cc_flag_unknown_warning_option=yes
10549 else case e in #(
10550 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10551 esac
10552 fi
10553 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10554 esac
10555 fi
10556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10557 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10558 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10559 CFLAGS="$xorg_testset_save_CFLAGS"
10560 fi
10561
10562 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10565 fi
10566 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10568 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10569 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10570 then :
10571 printf %s "(cached) " >&6
10572 else case e in #(
10573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h. */
10575 int i;
10576 _ACEOF
10577 if ac_fn_c_try_compile "$LINENO"
10578 then :
10579 xorg_cv_cc_flag_unused_command_line_argument=yes
10580 else case e in #(
10581 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10582 esac
10583 fi
10584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10585 esac
10586 fi
10587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10588 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10589 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10590 CFLAGS="$xorg_testset_save_CFLAGS"
10591 fi
10592
10593 found="no"
10594
10595 if test $found = "no" ; then
10596 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10597 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10598 fi
10599
10600 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10602 fi
10603
10604 CFLAGS="$CFLAGS -Wtrigraphs"
10605
10606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10607 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10608 cacheid=xorg_cv_cc_flag__Wtrigraphs
10609 if eval test \${$cacheid+y}
10610 then :
10611 printf %s "(cached) " >&6
10612 else case e in #(
10613 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10614 /* end confdefs.h. */
10615 int i;
10616 int
10617 main (void)
10618 {
10619
10620 ;
10621 return 0;
10622 }
10623 _ACEOF
10624 if ac_fn_c_try_link "$LINENO"
10625 then :
10626 eval $cacheid=yes
10627 else case e in #(
10628 e) eval $cacheid=no ;;
10629 esac
10630 fi
10631 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10632 conftest$ac_exeext conftest.$ac_ext ;;
10633 esac
10634 fi
10635
10636
10637 CFLAGS="$xorg_testset_save_CFLAGS"
10638
10639 eval supported=\$$cacheid
10640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10641 printf "%s\n" "$supported" >&6; }
10642 if test "$supported" = "yes" ; then
10643 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10644 found="yes"
10645 fi
10646 fi
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662 xorg_testset_save_CFLAGS="$CFLAGS"
10663
10664 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10667 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10668 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10669 then :
10670 printf %s "(cached) " >&6
10671 else case e in #(
10672 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10673 /* end confdefs.h. */
10674 int i;
10675 _ACEOF
10676 if ac_fn_c_try_compile "$LINENO"
10677 then :
10678 xorg_cv_cc_flag_unknown_warning_option=yes
10679 else case e in #(
10680 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10681 esac
10682 fi
10683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10684 esac
10685 fi
10686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10687 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10688 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10689 CFLAGS="$xorg_testset_save_CFLAGS"
10690 fi
10691
10692 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10693 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10695 fi
10696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10698 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10699 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10700 then :
10701 printf %s "(cached) " >&6
10702 else case e in #(
10703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10705 int i;
10706 _ACEOF
10707 if ac_fn_c_try_compile "$LINENO"
10708 then :
10709 xorg_cv_cc_flag_unused_command_line_argument=yes
10710 else case e in #(
10711 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10712 esac
10713 fi
10714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10715 esac
10716 fi
10717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10718 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10720 CFLAGS="$xorg_testset_save_CFLAGS"
10721 fi
10722
10723 found="no"
10724
10725 if test $found = "no" ; then
10726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10728 fi
10729
10730 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10732 fi
10733
10734 CFLAGS="$CFLAGS -Warray-bounds"
10735
10736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10737 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10738 cacheid=xorg_cv_cc_flag__Warray_bounds
10739 if eval test \${$cacheid+y}
10740 then :
10741 printf %s "(cached) " >&6
10742 else case e in #(
10743 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10744 /* end confdefs.h. */
10745 int i;
10746 int
10747 main (void)
10748 {
10749
10750 ;
10751 return 0;
10752 }
10753 _ACEOF
10754 if ac_fn_c_try_link "$LINENO"
10755 then :
10756 eval $cacheid=yes
10757 else case e in #(
10758 e) eval $cacheid=no ;;
10759 esac
10760 fi
10761 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10762 conftest$ac_exeext conftest.$ac_ext ;;
10763 esac
10764 fi
10765
10766
10767 CFLAGS="$xorg_testset_save_CFLAGS"
10768
10769 eval supported=\$$cacheid
10770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10771 printf "%s\n" "$supported" >&6; }
10772 if test "$supported" = "yes" ; then
10773 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10774 found="yes"
10775 fi
10776 fi
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792 xorg_testset_save_CFLAGS="$CFLAGS"
10793
10794 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10795 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10797 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10798 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10799 then :
10800 printf %s "(cached) " >&6
10801 else case e in #(
10802 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804 int i;
10805 _ACEOF
10806 if ac_fn_c_try_compile "$LINENO"
10807 then :
10808 xorg_cv_cc_flag_unknown_warning_option=yes
10809 else case e in #(
10810 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10811 esac
10812 fi
10813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10814 esac
10815 fi
10816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10817 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10818 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10819 CFLAGS="$xorg_testset_save_CFLAGS"
10820 fi
10821
10822 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10823 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10825 fi
10826 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10828 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10829 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10830 then :
10831 printf %s "(cached) " >&6
10832 else case e in #(
10833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10835 int i;
10836 _ACEOF
10837 if ac_fn_c_try_compile "$LINENO"
10838 then :
10839 xorg_cv_cc_flag_unused_command_line_argument=yes
10840 else case e in #(
10841 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10842 esac
10843 fi
10844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10845 esac
10846 fi
10847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10848 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10850 CFLAGS="$xorg_testset_save_CFLAGS"
10851 fi
10852
10853 found="no"
10854
10855 if test $found = "no" ; then
10856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10858 fi
10859
10860 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10862 fi
10863
10864 CFLAGS="$CFLAGS -Wwrite-strings"
10865
10866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10867 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10868 cacheid=xorg_cv_cc_flag__Wwrite_strings
10869 if eval test \${$cacheid+y}
10870 then :
10871 printf %s "(cached) " >&6
10872 else case e in #(
10873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10874 /* end confdefs.h. */
10875 int i;
10876 int
10877 main (void)
10878 {
10879
10880 ;
10881 return 0;
10882 }
10883 _ACEOF
10884 if ac_fn_c_try_link "$LINENO"
10885 then :
10886 eval $cacheid=yes
10887 else case e in #(
10888 e) eval $cacheid=no ;;
10889 esac
10890 fi
10891 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10892 conftest$ac_exeext conftest.$ac_ext ;;
10893 esac
10894 fi
10895
10896
10897 CFLAGS="$xorg_testset_save_CFLAGS"
10898
10899 eval supported=\$$cacheid
10900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10901 printf "%s\n" "$supported" >&6; }
10902 if test "$supported" = "yes" ; then
10903 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10904 found="yes"
10905 fi
10906 fi
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922 xorg_testset_save_CFLAGS="$CFLAGS"
10923
10924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10927 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10928 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10929 then :
10930 printf %s "(cached) " >&6
10931 else case e in #(
10932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933 /* end confdefs.h. */
10934 int i;
10935 _ACEOF
10936 if ac_fn_c_try_compile "$LINENO"
10937 then :
10938 xorg_cv_cc_flag_unknown_warning_option=yes
10939 else case e in #(
10940 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10941 esac
10942 fi
10943 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10944 esac
10945 fi
10946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10947 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10949 CFLAGS="$xorg_testset_save_CFLAGS"
10950 fi
10951
10952 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10955 fi
10956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10958 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10959 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10960 then :
10961 printf %s "(cached) " >&6
10962 else case e in #(
10963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10965 int i;
10966 _ACEOF
10967 if ac_fn_c_try_compile "$LINENO"
10968 then :
10969 xorg_cv_cc_flag_unused_command_line_argument=yes
10970 else case e in #(
10971 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10972 esac
10973 fi
10974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10975 esac
10976 fi
10977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10978 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10979 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10980 CFLAGS="$xorg_testset_save_CFLAGS"
10981 fi
10982
10983 found="no"
10984
10985 if test $found = "no" ; then
10986 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10987 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10988 fi
10989
10990 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10991 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10992 fi
10993
10994 CFLAGS="$CFLAGS -Waddress"
10995
10996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10997 printf %s "checking if $CC supports -Waddress... " >&6; }
10998 cacheid=xorg_cv_cc_flag__Waddress
10999 if eval test \${$cacheid+y}
11000 then :
11001 printf %s "(cached) " >&6
11002 else case e in #(
11003 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11004 /* end confdefs.h. */
11005 int i;
11006 int
11007 main (void)
11008 {
11009
11010 ;
11011 return 0;
11012 }
11013 _ACEOF
11014 if ac_fn_c_try_link "$LINENO"
11015 then :
11016 eval $cacheid=yes
11017 else case e in #(
11018 e) eval $cacheid=no ;;
11019 esac
11020 fi
11021 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11022 conftest$ac_exeext conftest.$ac_ext ;;
11023 esac
11024 fi
11025
11026
11027 CFLAGS="$xorg_testset_save_CFLAGS"
11028
11029 eval supported=\$$cacheid
11030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11031 printf "%s\n" "$supported" >&6; }
11032 if test "$supported" = "yes" ; then
11033 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11034 found="yes"
11035 fi
11036 fi
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052 xorg_testset_save_CFLAGS="$CFLAGS"
11053
11054 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11057 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11058 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11059 then :
11060 printf %s "(cached) " >&6
11061 else case e in #(
11062 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11063 /* end confdefs.h. */
11064 int i;
11065 _ACEOF
11066 if ac_fn_c_try_compile "$LINENO"
11067 then :
11068 xorg_cv_cc_flag_unknown_warning_option=yes
11069 else case e in #(
11070 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11071 esac
11072 fi
11073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11074 esac
11075 fi
11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11077 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11078 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11079 CFLAGS="$xorg_testset_save_CFLAGS"
11080 fi
11081
11082 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11085 fi
11086 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11088 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11089 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11090 then :
11091 printf %s "(cached) " >&6
11092 else case e in #(
11093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11095 int i;
11096 _ACEOF
11097 if ac_fn_c_try_compile "$LINENO"
11098 then :
11099 xorg_cv_cc_flag_unused_command_line_argument=yes
11100 else case e in #(
11101 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11102 esac
11103 fi
11104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11105 esac
11106 fi
11107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11108 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11109 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11110 CFLAGS="$xorg_testset_save_CFLAGS"
11111 fi
11112
11113 found="no"
11114
11115 if test $found = "no" ; then
11116 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11117 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11118 fi
11119
11120 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11122 fi
11123
11124 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11125
11126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11127 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11128 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11129 if eval test \${$cacheid+y}
11130 then :
11131 printf %s "(cached) " >&6
11132 else case e in #(
11133 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11134 /* end confdefs.h. */
11135 int i;
11136 int
11137 main (void)
11138 {
11139
11140 ;
11141 return 0;
11142 }
11143 _ACEOF
11144 if ac_fn_c_try_link "$LINENO"
11145 then :
11146 eval $cacheid=yes
11147 else case e in #(
11148 e) eval $cacheid=no ;;
11149 esac
11150 fi
11151 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11152 conftest$ac_exeext conftest.$ac_ext ;;
11153 esac
11154 fi
11155
11156
11157 CFLAGS="$xorg_testset_save_CFLAGS"
11158
11159 eval supported=\$$cacheid
11160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11161 printf "%s\n" "$supported" >&6; }
11162 if test "$supported" = "yes" ; then
11163 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11164 found="yes"
11165 fi
11166 fi
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182 xorg_testset_save_CFLAGS="$CFLAGS"
11183
11184 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11187 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11188 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11189 then :
11190 printf %s "(cached) " >&6
11191 else case e in #(
11192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11193 /* end confdefs.h. */
11194 int i;
11195 _ACEOF
11196 if ac_fn_c_try_compile "$LINENO"
11197 then :
11198 xorg_cv_cc_flag_unknown_warning_option=yes
11199 else case e in #(
11200 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11201 esac
11202 fi
11203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11204 esac
11205 fi
11206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11207 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11208 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11209 CFLAGS="$xorg_testset_save_CFLAGS"
11210 fi
11211
11212 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11213 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11214 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11215 fi
11216 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11218 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11219 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11220 then :
11221 printf %s "(cached) " >&6
11222 else case e in #(
11223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11225 int i;
11226 _ACEOF
11227 if ac_fn_c_try_compile "$LINENO"
11228 then :
11229 xorg_cv_cc_flag_unused_command_line_argument=yes
11230 else case e in #(
11231 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11232 esac
11233 fi
11234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11235 esac
11236 fi
11237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11238 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11239 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11240 CFLAGS="$xorg_testset_save_CFLAGS"
11241 fi
11242
11243 found="no"
11244
11245 if test $found = "no" ; then
11246 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11247 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11248 fi
11249
11250 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11251 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11252 fi
11253
11254 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11255
11256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11257 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11258 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11259 if eval test \${$cacheid+y}
11260 then :
11261 printf %s "(cached) " >&6
11262 else case e in #(
11263 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11265 int i;
11266 int
11267 main (void)
11268 {
11269
11270 ;
11271 return 0;
11272 }
11273 _ACEOF
11274 if ac_fn_c_try_link "$LINENO"
11275 then :
11276 eval $cacheid=yes
11277 else case e in #(
11278 e) eval $cacheid=no ;;
11279 esac
11280 fi
11281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11282 conftest$ac_exeext conftest.$ac_ext ;;
11283 esac
11284 fi
11285
11286
11287 CFLAGS="$xorg_testset_save_CFLAGS"
11288
11289 eval supported=\$$cacheid
11290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11291 printf "%s\n" "$supported" >&6; }
11292 if test "$supported" = "yes" ; then
11293 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11294 found="yes"
11295 fi
11296 fi
11297
11298
11299 fi
11300
11301
11302
11303
11304
11305
11306
11307 CWARNFLAGS="$BASE_CFLAGS"
11308 if test "x$GCC" = xyes ; then
11309 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11310 fi
11311
11312
11313
11314
11315
11316
11317
11318
11319 # Check whether --enable-strict-compilation was given.
11320 if test ${enable_strict_compilation+y}
11321 then :
11322 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11323 else case e in #(
11324 e) STRICT_COMPILE=no ;;
11325 esac
11326 fi
11327
11328
11329
11330
11331
11332
11333 STRICT_CFLAGS=""
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347 xorg_testset_save_CFLAGS="$CFLAGS"
11348
11349 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11350 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11352 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11353 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11354 then :
11355 printf %s "(cached) " >&6
11356 else case e in #(
11357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h. */
11359 int i;
11360 _ACEOF
11361 if ac_fn_c_try_compile "$LINENO"
11362 then :
11363 xorg_cv_cc_flag_unknown_warning_option=yes
11364 else case e in #(
11365 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11366 esac
11367 fi
11368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11369 esac
11370 fi
11371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11372 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11374 CFLAGS="$xorg_testset_save_CFLAGS"
11375 fi
11376
11377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11380 fi
11381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11383 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11384 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11385 then :
11386 printf %s "(cached) " >&6
11387 else case e in #(
11388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 /* end confdefs.h. */
11390 int i;
11391 _ACEOF
11392 if ac_fn_c_try_compile "$LINENO"
11393 then :
11394 xorg_cv_cc_flag_unused_command_line_argument=yes
11395 else case e in #(
11396 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11397 esac
11398 fi
11399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11400 esac
11401 fi
11402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11403 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11404 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11405 CFLAGS="$xorg_testset_save_CFLAGS"
11406 fi
11407
11408 found="no"
11409
11410 if test $found = "no" ; then
11411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11413 fi
11414
11415 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11416 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11417 fi
11418
11419 CFLAGS="$CFLAGS -pedantic"
11420
11421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11422 printf %s "checking if $CC supports -pedantic... " >&6; }
11423 cacheid=xorg_cv_cc_flag__pedantic
11424 if eval test \${$cacheid+y}
11425 then :
11426 printf %s "(cached) " >&6
11427 else case e in #(
11428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429 /* end confdefs.h. */
11430 int i;
11431 int
11432 main (void)
11433 {
11434
11435 ;
11436 return 0;
11437 }
11438 _ACEOF
11439 if ac_fn_c_try_link "$LINENO"
11440 then :
11441 eval $cacheid=yes
11442 else case e in #(
11443 e) eval $cacheid=no ;;
11444 esac
11445 fi
11446 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11447 conftest$ac_exeext conftest.$ac_ext ;;
11448 esac
11449 fi
11450
11451
11452 CFLAGS="$xorg_testset_save_CFLAGS"
11453
11454 eval supported=\$$cacheid
11455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11456 printf "%s\n" "$supported" >&6; }
11457 if test "$supported" = "yes" ; then
11458 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11459 found="yes"
11460 fi
11461 fi
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477 xorg_testset_save_CFLAGS="$CFLAGS"
11478
11479 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11480 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11482 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11483 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11484 then :
11485 printf %s "(cached) " >&6
11486 else case e in #(
11487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11488 /* end confdefs.h. */
11489 int i;
11490 _ACEOF
11491 if ac_fn_c_try_compile "$LINENO"
11492 then :
11493 xorg_cv_cc_flag_unknown_warning_option=yes
11494 else case e in #(
11495 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11496 esac
11497 fi
11498 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11499 esac
11500 fi
11501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11502 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11504 CFLAGS="$xorg_testset_save_CFLAGS"
11505 fi
11506
11507 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11510 fi
11511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11513 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11514 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11515 then :
11516 printf %s "(cached) " >&6
11517 else case e in #(
11518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11520 int i;
11521 _ACEOF
11522 if ac_fn_c_try_compile "$LINENO"
11523 then :
11524 xorg_cv_cc_flag_unused_command_line_argument=yes
11525 else case e in #(
11526 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11527 esac
11528 fi
11529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11530 esac
11531 fi
11532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11533 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11534 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11535 CFLAGS="$xorg_testset_save_CFLAGS"
11536 fi
11537
11538 found="no"
11539
11540 if test $found = "no" ; then
11541 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11543 fi
11544
11545 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11547 fi
11548
11549 CFLAGS="$CFLAGS -Werror"
11550
11551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11552 printf %s "checking if $CC supports -Werror... " >&6; }
11553 cacheid=xorg_cv_cc_flag__Werror
11554 if eval test \${$cacheid+y}
11555 then :
11556 printf %s "(cached) " >&6
11557 else case e in #(
11558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11560 int i;
11561 int
11562 main (void)
11563 {
11564
11565 ;
11566 return 0;
11567 }
11568 _ACEOF
11569 if ac_fn_c_try_link "$LINENO"
11570 then :
11571 eval $cacheid=yes
11572 else case e in #(
11573 e) eval $cacheid=no ;;
11574 esac
11575 fi
11576 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11577 conftest$ac_exeext conftest.$ac_ext ;;
11578 esac
11579 fi
11580
11581
11582 CFLAGS="$xorg_testset_save_CFLAGS"
11583
11584 eval supported=\$$cacheid
11585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11586 printf "%s\n" "$supported" >&6; }
11587 if test "$supported" = "yes" ; then
11588 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11589 found="yes"
11590 fi
11591 fi
11592
11593 if test $found = "no" ; then
11594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11596 fi
11597
11598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11600 fi
11601
11602 CFLAGS="$CFLAGS -errwarn"
11603
11604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11605 printf %s "checking if $CC supports -errwarn... " >&6; }
11606 cacheid=xorg_cv_cc_flag__errwarn
11607 if eval test \${$cacheid+y}
11608 then :
11609 printf %s "(cached) " >&6
11610 else case e in #(
11611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11612 /* end confdefs.h. */
11613 int i;
11614 int
11615 main (void)
11616 {
11617
11618 ;
11619 return 0;
11620 }
11621 _ACEOF
11622 if ac_fn_c_try_link "$LINENO"
11623 then :
11624 eval $cacheid=yes
11625 else case e in #(
11626 e) eval $cacheid=no ;;
11627 esac
11628 fi
11629 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11630 conftest$ac_exeext conftest.$ac_ext ;;
11631 esac
11632 fi
11633
11634
11635 CFLAGS="$xorg_testset_save_CFLAGS"
11636
11637 eval supported=\$$cacheid
11638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11639 printf "%s\n" "$supported" >&6; }
11640 if test "$supported" = "yes" ; then
11641 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11642 found="yes"
11643 fi
11644 fi
11645
11646
11647
11648 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11649 # activate it with -Werror, so we add it here explicitly.
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663 xorg_testset_save_CFLAGS="$CFLAGS"
11664
11665 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11668 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11669 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11670 then :
11671 printf %s "(cached) " >&6
11672 else case e in #(
11673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11675 int i;
11676 _ACEOF
11677 if ac_fn_c_try_compile "$LINENO"
11678 then :
11679 xorg_cv_cc_flag_unknown_warning_option=yes
11680 else case e in #(
11681 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11682 esac
11683 fi
11684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11685 esac
11686 fi
11687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11688 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11689 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11690 CFLAGS="$xorg_testset_save_CFLAGS"
11691 fi
11692
11693 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11696 fi
11697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11699 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11700 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11701 then :
11702 printf %s "(cached) " >&6
11703 else case e in #(
11704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11705 /* end confdefs.h. */
11706 int i;
11707 _ACEOF
11708 if ac_fn_c_try_compile "$LINENO"
11709 then :
11710 xorg_cv_cc_flag_unused_command_line_argument=yes
11711 else case e in #(
11712 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11713 esac
11714 fi
11715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11716 esac
11717 fi
11718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11719 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11720 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11721 CFLAGS="$xorg_testset_save_CFLAGS"
11722 fi
11723
11724 found="no"
11725
11726 if test $found = "no" ; then
11727 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11728 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11729 fi
11730
11731 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11732 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11733 fi
11734
11735 CFLAGS="$CFLAGS -Werror=attributes"
11736
11737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11738 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11739 cacheid=xorg_cv_cc_flag__Werror_attributes
11740 if eval test \${$cacheid+y}
11741 then :
11742 printf %s "(cached) " >&6
11743 else case e in #(
11744 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11746 int i;
11747 int
11748 main (void)
11749 {
11750
11751 ;
11752 return 0;
11753 }
11754 _ACEOF
11755 if ac_fn_c_try_link "$LINENO"
11756 then :
11757 eval $cacheid=yes
11758 else case e in #(
11759 e) eval $cacheid=no ;;
11760 esac
11761 fi
11762 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11763 conftest$ac_exeext conftest.$ac_ext ;;
11764 esac
11765 fi
11766
11767
11768 CFLAGS="$xorg_testset_save_CFLAGS"
11769
11770 eval supported=\$$cacheid
11771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11772 printf "%s\n" "$supported" >&6; }
11773 if test "$supported" = "yes" ; then
11774 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11775 found="yes"
11776 fi
11777 fi
11778
11779
11780
11781 if test "x$STRICT_COMPILE" = "xyes"; then
11782 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11783 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11784 fi
11785
11786
11787
11788
11789
11790
11791
11792
11793 cat >>confdefs.h <<_ACEOF
11794 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11795 _ACEOF
11796
11797 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11798 if test "x$PVM" = "x"; then
11799 PVM="0"
11800 fi
11801
11802 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11803
11804 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11805 if test "x$PVP" = "x"; then
11806 PVP="0"
11807 fi
11808
11809 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11810
11811
11812
11813 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11814 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11815 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11816 touch \$(top_srcdir)/ChangeLog; \
11817 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11818
11819
11820
11821
11822 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11823 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11824 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11825 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11826 touch \$(top_srcdir)/INSTALL; \
11827 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11828
11829
11830
11831
11832
11833
11834 case $host_os in
11835 solaris*)
11836 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11837 # check for a man page file found in later versions that use
11838 # traditional section numbers instead
11839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11840 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11841 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11842 then :
11843 printf %s "(cached) " >&6
11844 else case e in #(
11845 e) test "$cross_compiling" = yes &&
11846 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11847 if test -r "/usr/share/man/man7/attributes.7"; then
11848 ac_cv_file__usr_share_man_man7_attributes_7=yes
11849 else
11850 ac_cv_file__usr_share_man_man7_attributes_7=no
11851 fi ;;
11852 esac
11853 fi
11854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11855 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11856 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11857 then :
11858 SYSV_MAN_SECTIONS=false
11859 else case e in #(
11860 e) SYSV_MAN_SECTIONS=true ;;
11861 esac
11862 fi
11863
11864 ;;
11865 *) SYSV_MAN_SECTIONS=false ;;
11866 esac
11867
11868 if test x$APP_MAN_SUFFIX = x ; then
11869 APP_MAN_SUFFIX=1
11870 fi
11871 if test x$APP_MAN_DIR = x ; then
11872 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11873 fi
11874
11875 if test x$LIB_MAN_SUFFIX = x ; then
11876 LIB_MAN_SUFFIX=3
11877 fi
11878 if test x$LIB_MAN_DIR = x ; then
11879 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11880 fi
11881
11882 if test x$FILE_MAN_SUFFIX = x ; then
11883 case $SYSV_MAN_SECTIONS in
11884 true) FILE_MAN_SUFFIX=4 ;;
11885 *) FILE_MAN_SUFFIX=5 ;;
11886 esac
11887 fi
11888 if test x$FILE_MAN_DIR = x ; then
11889 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11890 fi
11891
11892 if test x$MISC_MAN_SUFFIX = x ; then
11893 case $SYSV_MAN_SECTIONS in
11894 true) MISC_MAN_SUFFIX=5 ;;
11895 *) MISC_MAN_SUFFIX=7 ;;
11896 esac
11897 fi
11898 if test x$MISC_MAN_DIR = x ; then
11899 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11900 fi
11901
11902 if test x$DRIVER_MAN_SUFFIX = x ; then
11903 case $SYSV_MAN_SECTIONS in
11904 true) DRIVER_MAN_SUFFIX=7 ;;
11905 *) DRIVER_MAN_SUFFIX=4 ;;
11906 esac
11907 fi
11908 if test x$DRIVER_MAN_DIR = x ; then
11909 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11910 fi
11911
11912 if test x$ADMIN_MAN_SUFFIX = x ; then
11913 case $SYSV_MAN_SECTIONS in
11914 true) ADMIN_MAN_SUFFIX=1m ;;
11915 *) ADMIN_MAN_SUFFIX=8 ;;
11916 esac
11917 fi
11918 if test x$ADMIN_MAN_DIR = x ; then
11919 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11920 fi
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936 XORG_MAN_PAGE="X Version 11"
11937
11938 MAN_SUBSTS="\
11939 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11940 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11941 -e 's|__xservername__|Xorg|g' \
11942 -e 's|__xconfigfile__|xorg.conf|g' \
11943 -e 's|__projectroot__|\$(prefix)|g' \
11944 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11945 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11946 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11947 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11948 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11949 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11950 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11951
11952
11953
11954
11955 AM_DEFAULT_VERBOSITY=0
11956
11957
11958
11959
11960
11961
11962
11963 # Check whether --with-lint was given.
11964 if test ${with_lint+y}
11965 then :
11966 withval=$with_lint; use_lint=$withval
11967 else case e in #(
11968 e) use_lint=no ;;
11969 esac
11970 fi
11971
11972
11973 # Obtain platform specific info like program name and options
11974 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
11975 case $host_os in
11976 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
11977 lint_name=splint
11978 lint_options="-badflag"
11979 ;;
11980 *freebsd* | *netbsd*)
11981 lint_name=lint
11982 lint_options="-u -b"
11983 ;;
11984 *solaris*)
11985 lint_name=lint
11986 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
11987 ;;
11988 esac
11989
11990 # Test for the presence of the program (either guessed by the code or spelled out by the user)
11991 if test "x$use_lint" = x"yes" ; then
11992 # Extract the first word of "$lint_name", so it can be a program name with args.
11993 set dummy $lint_name; ac_word=$2
11994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995 printf %s "checking for $ac_word... " >&6; }
11996 if test ${ac_cv_path_LINT+y}
11997 then :
11998 printf %s "(cached) " >&6
11999 else case e in #(
12000 e) case $LINT in
12001 [\\/]* | ?:[\\/]*)
12002 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12003 ;;
12004 *)
12005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006 for as_dir in $PATH
12007 do
12008 IFS=$as_save_IFS
12009 case $as_dir in #(((
12010 '') as_dir=./ ;;
12011 */) ;;
12012 *) as_dir=$as_dir/ ;;
12013 esac
12014 for ac_exec_ext in '' $ac_executable_extensions; do
12015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12016 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
12017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12018 break 2
12019 fi
12020 done
12021 done
12022 IFS=$as_save_IFS
12023
12024 ;;
12025 esac ;;
12026 esac
12027 fi
12028 LINT=$ac_cv_path_LINT
12029 if test -n "$LINT"; then
12030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12031 printf "%s\n" "$LINT" >&6; }
12032 else
12033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034 printf "%s\n" "no" >&6; }
12035 fi
12036
12037
12038 if test "x$LINT" = "x"; then
12039 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12040 fi
12041 elif test "x$use_lint" = x"no" ; then
12042 if test "x$LINT" != "x"; then
12043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12044 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12045 fi
12046 else
12047 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12048 fi
12049
12050 # User supplied flags override default flags
12051 if test "x$LINT_FLAGS" != "x"; then
12052 lint_options=$LINT_FLAGS
12053 fi
12054
12055 LINT_FLAGS=$lint_options
12056
12057 if test "x$LINT" != x; then
12058 LINT_TRUE=
12059 LINT_FALSE='#'
12060 else
12061 LINT_TRUE='#'
12062 LINT_FALSE=
12063 fi
12064
12065
12066
12067
12068 # Checks for header files.
12069 ac_fn_c_check_header_compile "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
12070 if test "x$ac_cv_header_lastlog_h" = xyes
12071 then :
12072 printf "%s\n" "#define HAVE_LASTLOG_H 1" >>confdefs.h
12073
12074 fi
12075 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
12076 if test "x$ac_cv_header_pwd_h" = xyes
12077 then :
12078 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
12079
12080 fi
12081 ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
12082 if test "x$ac_cv_header_utmp_h" = xyes
12083 then :
12084 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
12085
12086 fi
12087 ac_fn_c_check_header_compile "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
12088 if test "x$ac_cv_header_utmpx_h" = xyes
12089 then :
12090 printf "%s\n" "#define HAVE_UTMPX_H 1" >>confdefs.h
12091
12092 fi
12093 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
12094 if test "x$ac_cv_header_sys_param_h" = xyes
12095 then :
12096 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
12097
12098 fi
12099
12100
12101 # Checks for typedefs, structures, and compiler characteristics.
12102 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
12103 #include <sys/types.h>
12104 #include <utmp.h>
12105
12106 "
12107 if test "x$ac_cv_member_struct_utmp_ut_host" = xyes
12108 then :
12109
12110 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_HOST 1" >>confdefs.h
12111
12112
12113 fi
12114 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_id" "ac_cv_member_struct_utmp_ut_id" "
12115 #include <sys/types.h>
12116 #include <utmp.h>
12117
12118 "
12119 if test "x$ac_cv_member_struct_utmp_ut_id" = xyes
12120 then :
12121
12122 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_ID 1" >>confdefs.h
12123
12124
12125 fi
12126 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
12127 #include <sys/types.h>
12128 #include <utmp.h>
12129
12130 "
12131 if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes
12132 then :
12133
12134 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_PID 1" >>confdefs.h
12135
12136
12137 fi
12138 ac_fn_c_check_member "$LINENO" "struct utmp" "ut_type" "ac_cv_member_struct_utmp_ut_type" "
12139 #include <sys/types.h>
12140 #include <utmp.h>
12141
12142 "
12143 if test "x$ac_cv_member_struct_utmp_ut_type" = xyes
12144 then :
12145
12146 printf "%s\n" "#define HAVE_STRUCT_UTMP_UT_TYPE 1" >>confdefs.h
12147
12148
12149 fi
12150
12151 ac_fn_c_check_member "$LINENO" "struct utmpx" "ut_syslen" "ac_cv_member_struct_utmpx_ut_syslen" "#include <utmpx.h>
12152 "
12153 if test "x$ac_cv_member_struct_utmpx_ut_syslen" = xyes
12154 then :
12155
12156 printf "%s\n" "#define HAVE_STRUCT_UTMPX_UT_SYSLEN 1" >>confdefs.h
12157
12158
12159 fi
12160
12161 ac_fn_c_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
12162 #include <sys/types.h>
12163 #ifdef HAVE_UTMP_H
12164 #include <utmp.h>
12165 #endif
12166 #ifdef HAVE_LASTLOG_H
12167 #include <lastlog.h>
12168 #endif
12169
12170 "
12171 if test "x$ac_cv_type_struct_lastlog" = xyes
12172 then :
12173
12174 printf "%s\n" "#define HAVE_STRUCT_LASTLOG 1" >>confdefs.h
12175
12176
12177 fi
12178
12179
12180 # Checks for library functions.
12181 ac_fn_c_check_func "$LINENO" "pututline" "ac_cv_func_pututline"
12182 if test "x$ac_cv_func_pututline" = xyes
12183 then :
12184 printf "%s\n" "#define HAVE_PUTUTLINE 1" >>confdefs.h
12185
12186 fi
12187 ac_fn_c_check_func "$LINENO" "updwtmpx" "ac_cv_func_updwtmpx"
12188 if test "x$ac_cv_func_updwtmpx" = xyes
12189 then :
12190 printf "%s\n" "#define HAVE_UPDWTMPX 1" >>confdefs.h
12191
12192 fi
12193 ac_fn_c_check_func "$LINENO" "utmpxname" "ac_cv_func_utmpxname"
12194 if test "x$ac_cv_func_utmpxname" = xyes
12195 then :
12196 printf "%s\n" "#define HAVE_UTMPXNAME 1" >>confdefs.h
12197
12198 fi
12199
12200
12201 # Obtain compiler/linker options for dependencies
12202
12203 pkg_failed=no
12204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SESSREG" >&5
12205 printf %s "checking for SESSREG... " >&6; }
12206
12207 if test -n "$SESSREG_CFLAGS"; then
12208 pkg_cv_SESSREG_CFLAGS="$SESSREG_CFLAGS"
12209 elif test -n "$PKG_CONFIG"; then
12210 if test -n "$PKG_CONFIG" && \
12211 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
12212 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
12213 ac_status=$?
12214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12215 test $ac_status = 0; }; then
12216 pkg_cv_SESSREG_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25" 2>/dev/null`
12217 test "x$?" != "x0" && pkg_failed=yes
12218 else
12219 pkg_failed=yes
12220 fi
12221 else
12222 pkg_failed=untried
12223 fi
12224 if test -n "$SESSREG_LIBS"; then
12225 pkg_cv_SESSREG_LIBS="$SESSREG_LIBS"
12226 elif test -n "$PKG_CONFIG"; then
12227 if test -n "$PKG_CONFIG" && \
12228 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25\""; } >&5
12229 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25") 2>&5
12230 ac_status=$?
12231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12232 test $ac_status = 0; }; then
12233 pkg_cv_SESSREG_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25" 2>/dev/null`
12234 test "x$?" != "x0" && pkg_failed=yes
12235 else
12236 pkg_failed=yes
12237 fi
12238 else
12239 pkg_failed=untried
12240 fi
12241
12242
12243
12244 if test $pkg_failed = yes; then
12245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12246 printf "%s\n" "no" >&6; }
12247
12248 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12249 _pkg_short_errors_supported=yes
12250 else
12251 _pkg_short_errors_supported=no
12252 fi
12253 if test $_pkg_short_errors_supported = yes; then
12254 SESSREG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
12255 else
12256 SESSREG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25" 2>&1`
12257 fi
12258 # Put the nasty error message in config.log where it belongs
12259 echo "$SESSREG_PKG_ERRORS" >&5
12260
12261 as_fn_error $? "Package requirements (xproto >= 7.0.25) were not met:
12262
12263 $SESSREG_PKG_ERRORS
12264
12265 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12266 installed software in a non-standard prefix.
12267
12268 Alternatively, you may set the environment variables SESSREG_CFLAGS
12269 and SESSREG_LIBS to avoid the need to call pkg-config.
12270 See the pkg-config man page for more details." "$LINENO" 5
12271 elif test $pkg_failed = untried; then
12272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273 printf "%s\n" "no" >&6; }
12274 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12275 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12276 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12277 is in your PATH or set the PKG_CONFIG environment variable to the full
12278 path to pkg-config.
12279
12280 Alternatively, you may set the environment variables SESSREG_CFLAGS
12281 and SESSREG_LIBS to avoid the need to call pkg-config.
12282 See the pkg-config man page for more details.
12283
12284 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12285 See 'config.log' for more details" "$LINENO" 5; }
12286 else
12287 SESSREG_CFLAGS=$pkg_cv_SESSREG_CFLAGS
12288 SESSREG_LIBS=$pkg_cv_SESSREG_LIBS
12289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12290 printf "%s\n" "yes" >&6; }
12291
12292 fi
12293
12294 ac_config_files="$ac_config_files Makefile man/Makefile"
12295
12296 cat >confcache <<\_ACEOF
12297 # This file is a shell script that caches the results of configure
12298 # tests run on this system so they can be shared between configure
12299 # scripts and configure runs, see configure's option --config-cache.
12300 # It is not useful on other systems. If it contains results you don't
12301 # want to keep, you may remove or edit it.
12302 #
12303 # config.status only pays attention to the cache file if you give it
12304 # the --recheck option to rerun configure.
12305 #
12306 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12307 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12308 # following values.
12309
12310 _ACEOF
12311
12312 # The following way of writing the cache mishandles newlines in values,
12313 # but we know of no workaround that is simple, portable, and efficient.
12314 # So, we kill variables containing newlines.
12315 # Ultrix sh set writes to stderr and can't be redirected directly,
12316 # and sets the high bit in the cache file unless we assign to the vars.
12317 (
12318 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12319 eval ac_val=\$$ac_var
12320 case $ac_val in #(
12321 *${as_nl}*)
12322 case $ac_var in #(
12323 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12324 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12325 esac
12326 case $ac_var in #(
12327 _ | IFS | as_nl) ;; #(
12328 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12329 *) { eval $ac_var=; unset $ac_var;} ;;
12330 esac ;;
12331 esac
12332 done
12333
12334 (set) 2>&1 |
12335 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12336 *${as_nl}ac_space=\ *)
12337 # 'set' does not quote correctly, so add quotes: double-quote
12338 # substitution turns \\\\ into \\, and sed turns \\ into \.
12339 sed -n \
12340 "s/'/'\\\\''/g;
12341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12342 ;; #(
12343 *)
12344 # 'set' quotes correctly as required by POSIX, so do not add quotes.
12345 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12346 ;;
12347 esac |
12348 sort
12349 ) |
12350 sed '
12351 /^ac_cv_env_/b end
12352 t clear
12353 :clear
12354 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12355 t end
12356 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12357 :end' >>confcache
12358 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12359 if test -w "$cache_file"; then
12360 if test "x$cache_file" != "x/dev/null"; then
12361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12362 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12363 if test ! -f "$cache_file" || test -h "$cache_file"; then
12364 cat confcache >"$cache_file"
12365 else
12366 case $cache_file in #(
12367 */* | ?:*)
12368 mv -f confcache "$cache_file"$$ &&
12369 mv -f "$cache_file"$$ "$cache_file" ;; #(
12370 *)
12371 mv -f confcache "$cache_file" ;;
12372 esac
12373 fi
12374 fi
12375 else
12376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12377 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12378 fi
12379 fi
12380 rm -f confcache
12381
12382 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12383 # Let make expand exec_prefix.
12384 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12385
12386 DEFS=-DHAVE_CONFIG_H
12387
12388 ac_libobjs=
12389 ac_ltlibobjs=
12390 U=
12391 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12392 # 1. Remove the extension, and $U if already installed.
12393 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12394 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12395 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12396 # will be set to the directory where LIBOBJS objects are built.
12397 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12398 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12399 done
12400 LIBOBJS=$ac_libobjs
12401
12402 LTLIBOBJS=$ac_ltlibobjs
12403
12404
12405 # Check whether --enable-year2038 was given.
12406 if test ${enable_year2038+y}
12407 then :
12408 enableval=$enable_year2038;
12409 fi
12410
12411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12412 printf %s "checking that generated files are newer than configure... " >&6; }
12413 if test -n "$am_sleep_pid"; then
12414 # Hide warnings about reused PIDs.
12415 wait $am_sleep_pid 2>/dev/null
12416 fi
12417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
12418 printf "%s\n" "done" >&6; }
12419 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12420 as_fn_error $? "conditional \"AMDEP\" was never defined.
12421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12422 fi
12423 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12424 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12426 fi
12427 case $enable_silent_rules in # (((
12428 yes) AM_DEFAULT_VERBOSITY=0;;
12429 no) AM_DEFAULT_VERBOSITY=1;;
12430 esac
12431 if test $am_cv_make_support_nested_variables = yes; then
12432 AM_V='$(V)'
12433 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12434 else
12435 AM_V=$AM_DEFAULT_VERBOSITY
12436 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12437 fi
12438
12439 if test -n "$EXEEXT"; then
12440 am__EXEEXT_TRUE=
12441 am__EXEEXT_FALSE='#'
12442 else
12443 am__EXEEXT_TRUE='#'
12444 am__EXEEXT_FALSE=
12445 fi
12446
12447 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
12448 as_fn_error $? "conditional \"LINT\" was never defined.
12449 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12450 fi
12451
12452 : "${CONFIG_STATUS=./config.status}"
12453 ac_write_fail=0
12454 ac_clean_files_save=$ac_clean_files
12455 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12457 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12458 as_write_fail=0
12459 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12460 #! $SHELL
12461 # Generated by $as_me.
12462 # Run this file to recreate the current configuration.
12463 # Compiler output produced by configure, useful for debugging
12464 # configure, is in config.log if it exists.
12465
12466 debug=false
12467 ac_cs_recheck=false
12468 ac_cs_silent=false
12469
12470 SHELL=\${CONFIG_SHELL-$SHELL}
12471 export SHELL
12472 _ASEOF
12473 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12474 ## -------------------- ##
12475 ## M4sh Initialization. ##
12476 ## -------------------- ##
12477
12478 # Be more Bourne compatible
12479 DUALCASE=1; export DUALCASE # for MKS sh
12480 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12481 then :
12482 emulate sh
12483 NULLCMD=:
12484 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12485 # is contrary to our usage. Disable this feature.
12486 alias -g '${1+"$@"}'='"$@"'
12487 setopt NO_GLOB_SUBST
12488 else case e in #(
12489 e) case `(set -o) 2>/dev/null` in #(
12490 *posix*) :
12491 set -o posix ;; #(
12492 *) :
12493 ;;
12494 esac ;;
12495 esac
12496 fi
12497
12498
12499
12500 # Reset variables that may have inherited troublesome values from
12501 # the environment.
12502
12503 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12504 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12505 # side effect of setting IFS to empty, thus disabling word splitting.)
12506 # Quoting is to prevent editors from complaining about space-tab.
12507 as_nl='
12508 '
12509 export as_nl
12510 IFS=" "" $as_nl"
12511
12512 PS1='$ '
12513 PS2='> '
12514 PS4='+ '
12515
12516 # Ensure predictable behavior from utilities with locale-dependent output.
12517 LC_ALL=C
12518 export LC_ALL
12519 LANGUAGE=C
12520 export LANGUAGE
12521
12522 # We cannot yet rely on "unset" to work, but we need these variables
12523 # to be unset--not just set to an empty or harmless value--now, to
12524 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12525 # also avoids known problems related to "unset" and subshell syntax
12526 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12527 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12528 do eval test \${$as_var+y} \
12529 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12530 done
12531
12532 # Ensure that fds 0, 1, and 2 are open.
12533 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12534 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12535 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12536
12537 # The user is always right.
12538 if ${PATH_SEPARATOR+false} :; then
12539 PATH_SEPARATOR=:
12540 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12541 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12542 PATH_SEPARATOR=';'
12543 }
12544 fi
12545
12546
12547 # Find who we are. Look in the path if we contain no directory separator.
12548 as_myself=
12549 case $0 in #((
12550 *[\\/]* ) as_myself=$0 ;;
12551 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 for as_dir in $PATH
12553 do
12554 IFS=$as_save_IFS
12555 case $as_dir in #(((
12556 '') as_dir=./ ;;
12557 */) ;;
12558 *) as_dir=$as_dir/ ;;
12559 esac
12560 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12561 done
12562 IFS=$as_save_IFS
12563
12564 ;;
12565 esac
12566 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12567 # in which case we are not to be found in the path.
12568 if test "x$as_myself" = x; then
12569 as_myself=$0
12570 fi
12571 if test ! -f "$as_myself"; then
12572 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12573 exit 1
12574 fi
12575
12576
12577
12578 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12579 # ----------------------------------------
12580 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12581 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12582 # script with STATUS, using 1 if that was 0.
12583 as_fn_error ()
12584 {
12585 as_status=$1; test $as_status -eq 0 && as_status=1
12586 if test "$4"; then
12587 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12588 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12589 fi
12590 printf "%s\n" "$as_me: error: $2" >&2
12591 as_fn_exit $as_status
12592 } # as_fn_error
12593
12594
12595 # as_fn_set_status STATUS
12596 # -----------------------
12597 # Set $? to STATUS, without forking.
12598 as_fn_set_status ()
12599 {
12600 return $1
12601 } # as_fn_set_status
12602
12603 # as_fn_exit STATUS
12604 # -----------------
12605 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12606 as_fn_exit ()
12607 {
12608 set +e
12609 as_fn_set_status $1
12610 exit $1
12611 } # as_fn_exit
12612
12613 # as_fn_unset VAR
12614 # ---------------
12615 # Portably unset VAR.
12616 as_fn_unset ()
12617 {
12618 { eval $1=; unset $1;}
12619 }
12620 as_unset=as_fn_unset
12621
12622 # as_fn_append VAR VALUE
12623 # ----------------------
12624 # Append the text in VALUE to the end of the definition contained in VAR. Take
12625 # advantage of any shell optimizations that allow amortized linear growth over
12626 # repeated appends, instead of the typical quadratic growth present in naive
12627 # implementations.
12628 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12629 then :
12630 eval 'as_fn_append ()
12631 {
12632 eval $1+=\$2
12633 }'
12634 else case e in #(
12635 e) as_fn_append ()
12636 {
12637 eval $1=\$$1\$2
12638 } ;;
12639 esac
12640 fi # as_fn_append
12641
12642 # as_fn_arith ARG...
12643 # ------------------
12644 # Perform arithmetic evaluation on the ARGs, and store the result in the
12645 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12646 # must be portable across $(()) and expr.
12647 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12648 then :
12649 eval 'as_fn_arith ()
12650 {
12651 as_val=$(( $* ))
12652 }'
12653 else case e in #(
12654 e) as_fn_arith ()
12655 {
12656 as_val=`expr "$@" || test $? -eq 1`
12657 } ;;
12658 esac
12659 fi # as_fn_arith
12660
12661
12662 if expr a : '\(a\)' >/dev/null 2>&1 &&
12663 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12664 as_expr=expr
12665 else
12666 as_expr=false
12667 fi
12668
12669 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12670 as_basename=basename
12671 else
12672 as_basename=false
12673 fi
12674
12675 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12676 as_dirname=dirname
12677 else
12678 as_dirname=false
12679 fi
12680
12681 as_me=`$as_basename -- "$0" ||
12682 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12683 X"$0" : 'X\(//\)$' \| \
12684 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12685 printf "%s\n" X/"$0" |
12686 sed '/^.*\/\([^/][^/]*\)\/*$/{
12687 s//\1/
12688 q
12689 }
12690 /^X\/\(\/\/\)$/{
12691 s//\1/
12692 q
12693 }
12694 /^X\/\(\/\).*/{
12695 s//\1/
12696 q
12697 }
12698 s/.*/./; q'`
12699
12700 # Avoid depending upon Character Ranges.
12701 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12702 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12703 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12704 as_cr_digits='0123456789'
12705 as_cr_alnum=$as_cr_Letters$as_cr_digits
12706
12707
12708 # Determine whether it's possible to make 'echo' print without a newline.
12709 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12710 # for compatibility with existing Makefiles.
12711 ECHO_C= ECHO_N= ECHO_T=
12712 case `echo -n x` in #(((((
12713 -n*)
12714 case `echo 'xy\c'` in
12715 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12716 xy) ECHO_C='\c';;
12717 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12718 ECHO_T=' ';;
12719 esac;;
12720 *)
12721 ECHO_N='-n';;
12722 esac
12723
12724 # For backward compatibility with old third-party macros, we provide
12725 # the shell variables $as_echo and $as_echo_n. New code should use
12726 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12727 as_echo='printf %s\n'
12728 as_echo_n='printf %s'
12729
12730 rm -f conf$$ conf$$.exe conf$$.file
12731 if test -d conf$$.dir; then
12732 rm -f conf$$.dir/conf$$.file
12733 else
12734 rm -f conf$$.dir
12735 mkdir conf$$.dir 2>/dev/null
12736 fi
12737 if (echo >conf$$.file) 2>/dev/null; then
12738 if ln -s conf$$.file conf$$ 2>/dev/null; then
12739 as_ln_s='ln -s'
12740 # ... but there are two gotchas:
12741 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12742 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12743 # In both cases, we have to default to 'cp -pR'.
12744 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12745 as_ln_s='cp -pR'
12746 elif ln conf$$.file conf$$ 2>/dev/null; then
12747 as_ln_s=ln
12748 else
12749 as_ln_s='cp -pR'
12750 fi
12751 else
12752 as_ln_s='cp -pR'
12753 fi
12754 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12755 rmdir conf$$.dir 2>/dev/null
12756
12757
12758 # as_fn_mkdir_p
12759 # -------------
12760 # Create "$as_dir" as a directory, including parents if necessary.
12761 as_fn_mkdir_p ()
12762 {
12763
12764 case $as_dir in #(
12765 -*) as_dir=./$as_dir;;
12766 esac
12767 test -d "$as_dir" || eval $as_mkdir_p || {
12768 as_dirs=
12769 while :; do
12770 case $as_dir in #(
12771 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12772 *) as_qdir=$as_dir;;
12773 esac
12774 as_dirs="'$as_qdir' $as_dirs"
12775 as_dir=`$as_dirname -- "$as_dir" ||
12776 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12777 X"$as_dir" : 'X\(//\)[^/]' \| \
12778 X"$as_dir" : 'X\(//\)$' \| \
12779 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12780 printf "%s\n" X"$as_dir" |
12781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12782 s//\1/
12783 q
12784 }
12785 /^X\(\/\/\)[^/].*/{
12786 s//\1/
12787 q
12788 }
12789 /^X\(\/\/\)$/{
12790 s//\1/
12791 q
12792 }
12793 /^X\(\/\).*/{
12794 s//\1/
12795 q
12796 }
12797 s/.*/./; q'`
12798 test -d "$as_dir" && break
12799 done
12800 test -z "$as_dirs" || eval "mkdir $as_dirs"
12801 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12802
12803
12804 } # as_fn_mkdir_p
12805 if mkdir -p . 2>/dev/null; then
12806 as_mkdir_p='mkdir -p "$as_dir"'
12807 else
12808 test -d ./-p && rmdir ./-p
12809 as_mkdir_p=false
12810 fi
12811
12812
12813 # as_fn_executable_p FILE
12814 # -----------------------
12815 # Test if FILE is an executable regular file.
12816 as_fn_executable_p ()
12817 {
12818 test -f "$1" && test -x "$1"
12819 } # as_fn_executable_p
12820 as_test_x='test -x'
12821 as_executable_p=as_fn_executable_p
12822
12823 # Sed expression to map a string onto a valid CPP name.
12824 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12825 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12826
12827 # Sed expression to map a string onto a valid variable name.
12828 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12829 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12830
12831
12832 exec 6>&1
12833 ## ----------------------------------- ##
12834 ## Main body of $CONFIG_STATUS script. ##
12835 ## ----------------------------------- ##
12836 _ASEOF
12837 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12838
12839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12840 # Save the log message, to keep $0 and so on meaningful, and to
12841 # report actual input values of CONFIG_FILES etc. instead of their
12842 # values after options handling.
12843 ac_log="
12844 This file was extended by sessreg $as_me 1.1.4, which was
12845 generated by GNU Autoconf 2.72. Invocation command line was
12846
12847 CONFIG_FILES = $CONFIG_FILES
12848 CONFIG_HEADERS = $CONFIG_HEADERS
12849 CONFIG_LINKS = $CONFIG_LINKS
12850 CONFIG_COMMANDS = $CONFIG_COMMANDS
12851 $ $0 $@
12852
12853 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12854 "
12855
12856 _ACEOF
12857
12858 case $ac_config_files in *"
12859 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12860 esac
12861
12862 case $ac_config_headers in *"
12863 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12864 esac
12865
12866
12867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12868 # Files that config.status was made for.
12869 config_files="$ac_config_files"
12870 config_headers="$ac_config_headers"
12871 config_commands="$ac_config_commands"
12872
12873 _ACEOF
12874
12875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12876 ac_cs_usage="\
12877 '$as_me' instantiates files and other configuration actions
12878 from templates according to the current configuration. Unless the files
12879 and actions are specified as TAGs, all are instantiated by default.
12880
12881 Usage: $0 [OPTION]... [TAG]...
12882
12883 -h, --help print this help, then exit
12884 -V, --version print version number and configuration settings, then exit
12885 --config print configuration, then exit
12886 -q, --quiet, --silent
12887 do not print progress messages
12888 -d, --debug don't remove temporary files
12889 --recheck update $as_me by reconfiguring in the same conditions
12890 --file=FILE[:TEMPLATE]
12891 instantiate the configuration file FILE
12892 --header=FILE[:TEMPLATE]
12893 instantiate the configuration header FILE
12894
12895 Configuration files:
12896 $config_files
12897
12898 Configuration headers:
12899 $config_headers
12900
12901 Configuration commands:
12902 $config_commands
12903
12904 Report bugs to <https://gitlab.freedesktop.org/xorg/app/sessreg/-/issues>."
12905
12906 _ACEOF
12907 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12908 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12910 ac_cs_config='$ac_cs_config_escaped'
12911 ac_cs_version="\\
12912 sessreg config.status 1.1.4
12913 configured by $0, generated by GNU Autoconf 2.72,
12914 with options \\"\$ac_cs_config\\"
12915
12916 Copyright (C) 2023 Free Software Foundation, Inc.
12917 This config.status script is free software; the Free Software Foundation
12918 gives unlimited permission to copy, distribute and modify it."
12919
12920 ac_pwd='$ac_pwd'
12921 srcdir='$srcdir'
12922 INSTALL='$INSTALL'
12923 MKDIR_P='$MKDIR_P'
12924 AWK='$AWK'
12925 test -n "\$AWK" || AWK=awk
12926 _ACEOF
12927
12928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12929 # The default lists apply if the user does not specify any file.
12930 ac_need_defaults=:
12931 while test $# != 0
12932 do
12933 case $1 in
12934 --*=?*)
12935 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12936 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12937 ac_shift=:
12938 ;;
12939 --*=)
12940 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12941 ac_optarg=
12942 ac_shift=:
12943 ;;
12944 *)
12945 ac_option=$1
12946 ac_optarg=$2
12947 ac_shift=shift
12948 ;;
12949 esac
12950
12951 case $ac_option in
12952 # Handling of the options.
12953 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12954 ac_cs_recheck=: ;;
12955 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12956 printf "%s\n" "$ac_cs_version"; exit ;;
12957 --config | --confi | --conf | --con | --co | --c )
12958 printf "%s\n" "$ac_cs_config"; exit ;;
12959 --debug | --debu | --deb | --de | --d | -d )
12960 debug=: ;;
12961 --file | --fil | --fi | --f )
12962 $ac_shift
12963 case $ac_optarg in
12964 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12965 '') as_fn_error $? "missing file argument" ;;
12966 esac
12967 as_fn_append CONFIG_FILES " '$ac_optarg'"
12968 ac_need_defaults=false;;
12969 --header | --heade | --head | --hea )
12970 $ac_shift
12971 case $ac_optarg in
12972 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12973 esac
12974 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12975 ac_need_defaults=false;;
12976 --he | --h)
12977 # Conflict between --help and --header
12978 as_fn_error $? "ambiguous option: '$1'
12979 Try '$0 --help' for more information.";;
12980 --help | --hel | -h )
12981 printf "%s\n" "$ac_cs_usage"; exit ;;
12982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12983 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12984 ac_cs_silent=: ;;
12985
12986 # This is an error.
12987 -*) as_fn_error $? "unrecognized option: '$1'
12988 Try '$0 --help' for more information." ;;
12989
12990 *) as_fn_append ac_config_targets " $1"
12991 ac_need_defaults=false ;;
12992
12993 esac
12994 shift
12995 done
12996
12997 ac_configure_extra_args=
12998
12999 if $ac_cs_silent; then
13000 exec 6>/dev/null
13001 ac_configure_extra_args="$ac_configure_extra_args --silent"
13002 fi
13003
13004 _ACEOF
13005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13006 if \$ac_cs_recheck; then
13007 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13008 shift
13009 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
13010 CONFIG_SHELL='$SHELL'
13011 export CONFIG_SHELL
13012 exec "\$@"
13013 fi
13014
13015 _ACEOF
13016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13017 exec 5>>config.log
13018 {
13019 echo
13020 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13021 ## Running $as_me. ##
13022 _ASBOX
13023 printf "%s\n" "$ac_log"
13024 } >&5
13025
13026 _ACEOF
13027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13028 #
13029 # INIT-COMMANDS
13030 #
13031 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
13032
13033 _ACEOF
13034
13035 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13036
13037 # Handling of arguments.
13038 for ac_config_target in $ac_config_targets
13039 do
13040 case $ac_config_target in
13041 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13042 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13043 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13044 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13045
13046 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
13047 esac
13048 done
13049
13050
13051 # If the user did not use the arguments to specify the items to instantiate,
13052 # then the envvar interface is used. Set only those that are not.
13053 # We use the long form for the default assignment because of an extremely
13054 # bizarre bug on SunOS 4.1.3.
13055 if $ac_need_defaults; then
13056 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
13057 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
13058 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
13059 fi
13060
13061 # Have a temporary directory for convenience. Make it in the build tree
13062 # simply because there is no reason against having it here, and in addition,
13063 # creating and moving files from /tmp can sometimes cause problems.
13064 # Hook for its removal unless debugging.
13065 # Note that there is a small window in which the directory will not be cleaned:
13066 # after its creation but before its name has been assigned to '$tmp'.
13067 $debug ||
13068 {
13069 tmp= ac_tmp=
13070 trap 'exit_status=$?
13071 : "${ac_tmp:=$tmp}"
13072 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13073 ' 0
13074 trap 'as_fn_exit 1' 1 2 13 15
13075 }
13076 # Create a (secure) tmp directory for tmp files.
13077
13078 {
13079 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13080 test -d "$tmp"
13081 } ||
13082 {
13083 tmp=./conf$$-$RANDOM
13084 (umask 077 && mkdir "$tmp")
13085 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13086 ac_tmp=$tmp
13087
13088 # Set up the scripts for CONFIG_FILES section.
13089 # No need to generate them if there are no CONFIG_FILES.
13090 # This happens for instance with './config.status config.h'.
13091 if test -n "$CONFIG_FILES"; then
13092
13093
13094 ac_cr=`echo X | tr X '\015'`
13095 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13096 # But we know of no other shell where ac_cr would be empty at this
13097 # point, so we can use a bashism as a fallback.
13098 if test "x$ac_cr" = x; then
13099 eval ac_cr=\$\'\\r\'
13100 fi
13101 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13102 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13103 ac_cs_awk_cr='\\r'
13104 else
13105 ac_cs_awk_cr=$ac_cr
13106 fi
13107
13108 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13109 _ACEOF
13110
13111
13112 {
13113 echo "cat >conf$$subs.awk <<_ACEOF" &&
13114 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13115 echo "_ACEOF"
13116 } >conf$$subs.sh ||
13117 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13118 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13119 ac_delim='%!_!# '
13120 for ac_last_try in false false false false false :; do
13121 . ./conf$$subs.sh ||
13122 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13123
13124 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13125 if test $ac_delim_n = $ac_delim_num; then
13126 break
13127 elif $ac_last_try; then
13128 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13129 else
13130 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13131 fi
13132 done
13133 rm -f conf$$subs.sh
13134
13135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13136 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13137 _ACEOF
13138 sed -n '
13139 h
13140 s/^/S["/; s/!.*/"]=/
13141 p
13142 g
13143 s/^[^!]*!//
13144 :repl
13145 t repl
13146 s/'"$ac_delim"'$//
13147 t delim
13148 :nl
13149 h
13150 s/\(.\{148\}\)..*/\1/
13151 t more1
13152 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13153 p
13154 n
13155 b repl
13156 :more1
13157 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13158 p
13159 g
13160 s/.\{148\}//
13161 t nl
13162 :delim
13163 h
13164 s/\(.\{148\}\)..*/\1/
13165 t more2
13166 s/["\\]/\\&/g; s/^/"/; s/$/"/
13167 p
13168 b
13169 :more2
13170 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13171 p
13172 g
13173 s/.\{148\}//
13174 t delim
13175 ' <conf$$subs.awk | sed '
13176 /^[^""]/{
13177 N
13178 s/\n//
13179 }
13180 ' >>$CONFIG_STATUS || ac_write_fail=1
13181 rm -f conf$$subs.awk
13182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13183 _ACAWK
13184 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13185 for (key in S) S_is_set[key] = 1
13186 FS = ""
13187
13188 }
13189 {
13190 line = $ 0
13191 nfields = split(line, field, "@")
13192 substed = 0
13193 len = length(field[1])
13194 for (i = 2; i < nfields; i++) {
13195 key = field[i]
13196 keylen = length(key)
13197 if (S_is_set[key]) {
13198 value = S[key]
13199 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13200 len += length(value) + length(field[++i])
13201 substed = 1
13202 } else
13203 len += 1 + keylen
13204 }
13205
13206 print line
13207 }
13208
13209 _ACAWK
13210 _ACEOF
13211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13212 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13213 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13214 else
13215 cat
13216 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13217 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13218 _ACEOF
13219
13220 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13221 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13222 # trailing colons and then remove the whole line if VPATH becomes empty
13223 # (actually we leave an empty line to preserve line numbers).
13224 if test "x$srcdir" = x.; then
13225 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13226 h
13227 s///
13228 s/^/:/
13229 s/[ ]*$/:/
13230 s/:\$(srcdir):/:/g
13231 s/:\${srcdir}:/:/g
13232 s/:@srcdir@:/:/g
13233 s/^:*//
13234 s/:*$//
13235 x
13236 s/\(=[ ]*\).*/\1/
13237 G
13238 s/\n//
13239 s/^[^=]*=[ ]*$//
13240 }'
13241 fi
13242
13243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13244 fi # test -n "$CONFIG_FILES"
13245
13246 # Set up the scripts for CONFIG_HEADERS section.
13247 # No need to generate them if there are no CONFIG_HEADERS.
13248 # This happens for instance with './config.status Makefile'.
13249 if test -n "$CONFIG_HEADERS"; then
13250 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13251 BEGIN {
13252 _ACEOF
13253
13254 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13255 # here-document in config.status, that substitutes the proper values into
13256 # config.h.in to produce config.h.
13257
13258 # Create a delimiter string that does not exist in confdefs.h, to ease
13259 # handling of long lines.
13260 ac_delim='%!_!# '
13261 for ac_last_try in false false :; do
13262 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13263 if test -z "$ac_tt"; then
13264 break
13265 elif $ac_last_try; then
13266 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13267 else
13268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13269 fi
13270 done
13271
13272 # For the awk script, D is an array of macro values keyed by name,
13273 # likewise P contains macro parameters if any. Preserve backslash
13274 # newline sequences.
13275
13276 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13277 sed -n '
13278 s/.\{148\}/&'"$ac_delim"'/g
13279 t rset
13280 :rset
13281 s/^[ ]*#[ ]*define[ ][ ]*/ /
13282 t def
13283 d
13284 :def
13285 s/\\$//
13286 t bsnl
13287 s/["\\]/\\&/g
13288 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13289 D["\1"]=" \3"/p
13290 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13291 d
13292 :bsnl
13293 s/["\\]/\\&/g
13294 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13295 D["\1"]=" \3\\\\\\n"\\/p
13296 t cont
13297 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13298 t cont
13299 d
13300 :cont
13301 n
13302 s/.\{148\}/&'"$ac_delim"'/g
13303 t clear
13304 :clear
13305 s/\\$//
13306 t bsnlc
13307 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13308 d
13309 :bsnlc
13310 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13311 b cont
13312 ' <confdefs.h | sed '
13313 s/'"$ac_delim"'/"\\\
13314 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13315
13316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13317 for (key in D) D_is_set[key] = 1
13318 FS = ""
13319 }
13320 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13321 line = \$ 0
13322 split(line, arg, " ")
13323 if (arg[1] == "#") {
13324 defundef = arg[2]
13325 mac1 = arg[3]
13326 } else {
13327 defundef = substr(arg[1], 2)
13328 mac1 = arg[2]
13329 }
13330 split(mac1, mac2, "(") #)
13331 macro = mac2[1]
13332 prefix = substr(line, 1, index(line, defundef) - 1)
13333 if (D_is_set[macro]) {
13334 # Preserve the white space surrounding the "#".
13335 print prefix "define", macro P[macro] D[macro]
13336 next
13337 } else {
13338 # Replace #undef with comments. This is necessary, for example,
13339 # in the case of _POSIX_SOURCE, which is predefined and required
13340 # on some systems where configure will not decide to define it.
13341 if (defundef == "undef") {
13342 print "/*", prefix defundef, macro, "*/"
13343 next
13344 }
13345 }
13346 }
13347 { print }
13348 _ACAWK
13349 _ACEOF
13350 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13351 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13352 fi # test -n "$CONFIG_HEADERS"
13353
13354
13355 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13356 shift
13357 for ac_tag
13358 do
13359 case $ac_tag in
13360 :[FHLC]) ac_mode=$ac_tag; continue;;
13361 esac
13362 case $ac_mode$ac_tag in
13363 :[FHL]*:*);;
13364 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13365 :[FH]-) ac_tag=-:-;;
13366 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13367 esac
13368 ac_save_IFS=$IFS
13369 IFS=:
13370 set x $ac_tag
13371 IFS=$ac_save_IFS
13372 shift
13373 ac_file=$1
13374 shift
13375
13376 case $ac_mode in
13377 :L) ac_source=$1;;
13378 :[FH])
13379 ac_file_inputs=
13380 for ac_f
13381 do
13382 case $ac_f in
13383 -) ac_f="$ac_tmp/stdin";;
13384 *) # Look for the file first in the build tree, then in the source tree
13385 # (if the path is not absolute). The absolute path cannot be DOS-style,
13386 # because $ac_f cannot contain ':'.
13387 test -f "$ac_f" ||
13388 case $ac_f in
13389 [\\/$]*) false;;
13390 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13391 esac ||
13392 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13393 esac
13394 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13395 as_fn_append ac_file_inputs " '$ac_f'"
13396 done
13397
13398 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13399 # use $as_me), people would be surprised to read:
13400 # /* config.h. Generated by config.status. */
13401 configure_input='Generated from '`
13402 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13403 `' by configure.'
13404 if test x"$ac_file" != x-; then
13405 configure_input="$ac_file. $configure_input"
13406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13407 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13408 fi
13409 # Neutralize special characters interpreted by sed in replacement strings.
13410 case $configure_input in #(
13411 *\&* | *\|* | *\\* )
13412 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13413 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13414 *) ac_sed_conf_input=$configure_input;;
13415 esac
13416
13417 case $ac_tag in
13418 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13419 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13420 esac
13421 ;;
13422 esac
13423
13424 ac_dir=`$as_dirname -- "$ac_file" ||
13425 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13426 X"$ac_file" : 'X\(//\)[^/]' \| \
13427 X"$ac_file" : 'X\(//\)$' \| \
13428 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13429 printf "%s\n" X"$ac_file" |
13430 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13431 s//\1/
13432 q
13433 }
13434 /^X\(\/\/\)[^/].*/{
13435 s//\1/
13436 q
13437 }
13438 /^X\(\/\/\)$/{
13439 s//\1/
13440 q
13441 }
13442 /^X\(\/\).*/{
13443 s//\1/
13444 q
13445 }
13446 s/.*/./; q'`
13447 as_dir="$ac_dir"; as_fn_mkdir_p
13448 ac_builddir=.
13449
13450 case "$ac_dir" in
13451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13452 *)
13453 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13454 # A ".." for each directory in $ac_dir_suffix.
13455 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13456 case $ac_top_builddir_sub in
13457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13459 esac ;;
13460 esac
13461 ac_abs_top_builddir=$ac_pwd
13462 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13463 # for backward compatibility:
13464 ac_top_builddir=$ac_top_build_prefix
13465
13466 case $srcdir in
13467 .) # We are building in place.
13468 ac_srcdir=.
13469 ac_top_srcdir=$ac_top_builddir_sub
13470 ac_abs_top_srcdir=$ac_pwd ;;
13471 [\\/]* | ?:[\\/]* ) # Absolute name.
13472 ac_srcdir=$srcdir$ac_dir_suffix;
13473 ac_top_srcdir=$srcdir
13474 ac_abs_top_srcdir=$srcdir ;;
13475 *) # Relative name.
13476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13477 ac_top_srcdir=$ac_top_build_prefix$srcdir
13478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13479 esac
13480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13481
13482
13483 case $ac_mode in
13484 :F)
13485 #
13486 # CONFIG_FILE
13487 #
13488
13489 case $INSTALL in
13490 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13491 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13492 esac
13493 ac_MKDIR_P=$MKDIR_P
13494 case $MKDIR_P in
13495 [\\/$]* | ?:[\\/]* ) ;;
13496 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13497 esac
13498 _ACEOF
13499
13500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13501 # If the template does not know about datarootdir, expand it.
13502 # FIXME: This hack should be removed a few years after 2.60.
13503 ac_datarootdir_hack=; ac_datarootdir_seen=
13504 ac_sed_dataroot='
13505 /datarootdir/ {
13506 p
13507 q
13508 }
13509 /@datadir@/p
13510 /@docdir@/p
13511 /@infodir@/p
13512 /@localedir@/p
13513 /@mandir@/p'
13514 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13515 *datarootdir*) ac_datarootdir_seen=yes;;
13516 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13518 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13519 _ACEOF
13520 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13521 ac_datarootdir_hack='
13522 s&@datadir@&$datadir&g
13523 s&@docdir@&$docdir&g
13524 s&@infodir@&$infodir&g
13525 s&@localedir@&$localedir&g
13526 s&@mandir@&$mandir&g
13527 s&\\\${datarootdir}&$datarootdir&g' ;;
13528 esac
13529 _ACEOF
13530
13531 # Neutralize VPATH when '$srcdir' = '.'.
13532 # Shell code in configure.ac might set extrasub.
13533 # FIXME: do we really want to maintain this feature?
13534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13535 ac_sed_extra="$ac_vpsub
13536 $extrasub
13537 _ACEOF
13538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13539 :t
13540 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13541 s|@configure_input@|$ac_sed_conf_input|;t t
13542 s&@top_builddir@&$ac_top_builddir_sub&;t t
13543 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13544 s&@srcdir@&$ac_srcdir&;t t
13545 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13546 s&@top_srcdir@&$ac_top_srcdir&;t t
13547 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13548 s&@builddir@&$ac_builddir&;t t
13549 s&@abs_builddir@&$ac_abs_builddir&;t t
13550 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13551 s&@INSTALL@&$ac_INSTALL&;t t
13552 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13553 $ac_datarootdir_hack
13554 "
13555 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13556 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13557
13558 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13559 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13560 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13561 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13563 which seems to be undefined. Please make sure it is defined" >&5
13564 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13565 which seems to be undefined. Please make sure it is defined" >&2;}
13566
13567 rm -f "$ac_tmp/stdin"
13568 case $ac_file in
13569 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13570 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13571 esac \
13572 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13573 ;;
13574 :H)
13575 #
13576 # CONFIG_HEADER
13577 #
13578 if test x"$ac_file" != x-; then
13579 {
13580 printf "%s\n" "/* $configure_input */" >&1 \
13581 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13582 } >"$ac_tmp/config.h" \
13583 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13584 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13586 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13587 else
13588 rm -f "$ac_file"
13589 mv "$ac_tmp/config.h" "$ac_file" \
13590 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13591 fi
13592 else
13593 printf "%s\n" "/* $configure_input */" >&1 \
13594 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13595 || as_fn_error $? "could not create -" "$LINENO" 5
13596 fi
13597 # Compute "$ac_file"'s index in $config_headers.
13598 _am_arg="$ac_file"
13599 _am_stamp_count=1
13600 for _am_header in $config_headers :; do
13601 case $_am_header in
13602 $_am_arg | $_am_arg:* )
13603 break ;;
13604 * )
13605 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13606 esac
13607 done
13608 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13609 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13610 X"$_am_arg" : 'X\(//\)[^/]' \| \
13611 X"$_am_arg" : 'X\(//\)$' \| \
13612 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13613 printf "%s\n" X"$_am_arg" |
13614 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13615 s//\1/
13616 q
13617 }
13618 /^X\(\/\/\)[^/].*/{
13619 s//\1/
13620 q
13621 }
13622 /^X\(\/\/\)$/{
13623 s//\1/
13624 q
13625 }
13626 /^X\(\/\).*/{
13627 s//\1/
13628 q
13629 }
13630 s/.*/./; q'`/stamp-h$_am_stamp_count
13631 ;;
13632
13633 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13634 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13635 ;;
13636 esac
13637
13638
13639 case $ac_file$ac_mode in
13640 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13641 # Older Autoconf quotes --file arguments for eval, but not when files
13642 # are listed without --file. Let's play safe and only enable the eval
13643 # if we detect the quoting.
13644 # TODO: see whether this extra hack can be removed once we start
13645 # requiring Autoconf 2.70 or later.
13646 case $CONFIG_FILES in #(
13647 *\'*) :
13648 eval set x "$CONFIG_FILES" ;; #(
13649 *) :
13650 set x $CONFIG_FILES ;; #(
13651 *) :
13652 ;;
13653 esac
13654 shift
13655 # Used to flag and report bootstrapping failures.
13656 am_rc=0
13657 for am_mf
13658 do
13659 # Strip MF so we end up with the name of the file.
13660 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13661 # Check whether this is an Automake generated Makefile which includes
13662 # dependency-tracking related rules and includes.
13663 # Grep'ing the whole file directly is not great: AIX grep has a line
13664 # limit of 2048, but all sed's we know have understand at least 4000.
13665 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13666 || continue
13667 am_dirpart=`$as_dirname -- "$am_mf" ||
13668 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13669 X"$am_mf" : 'X\(//\)[^/]' \| \
13670 X"$am_mf" : 'X\(//\)$' \| \
13671 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13672 printf "%s\n" X"$am_mf" |
13673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13674 s//\1/
13675 q
13676 }
13677 /^X\(\/\/\)[^/].*/{
13678 s//\1/
13679 q
13680 }
13681 /^X\(\/\/\)$/{
13682 s//\1/
13683 q
13684 }
13685 /^X\(\/\).*/{
13686 s//\1/
13687 q
13688 }
13689 s/.*/./; q'`
13690 am_filepart=`$as_basename -- "$am_mf" ||
13691 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13692 X"$am_mf" : 'X\(//\)$' \| \
13693 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13694 printf "%s\n" X/"$am_mf" |
13695 sed '/^.*\/\([^/][^/]*\)\/*$/{
13696 s//\1/
13697 q
13698 }
13699 /^X\/\(\/\/\)$/{
13700 s//\1/
13701 q
13702 }
13703 /^X\/\(\/\).*/{
13704 s//\1/
13705 q
13706 }
13707 s/.*/./; q'`
13708 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13709 && sed -e '/# am--include-marker/d' "$am_filepart" \
13710 | $MAKE -f - am--depfiles" >&5
13711 (cd "$am_dirpart" \
13712 && sed -e '/# am--include-marker/d' "$am_filepart" \
13713 | $MAKE -f - am--depfiles) >&5 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); } || am_rc=$?
13717 done
13718 if test $am_rc -ne 0; then
13719 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13720 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13721 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13722 for automatic dependency tracking. If GNU make was not used, consider
13723 re-running the configure script with MAKE=\"gmake\" (or whatever is
13724 necessary). You can also try re-running configure with the
13725 '--disable-dependency-tracking' option to at least be able to build
13726 the package (albeit without support for automatic dependency tracking).
13727 See 'config.log' for more details" "$LINENO" 5; }
13728 fi
13729 { am_dirpart=; unset am_dirpart;}
13730 { am_filepart=; unset am_filepart;}
13731 { am_mf=; unset am_mf;}
13732 { am_rc=; unset am_rc;}
13733 rm -f conftest-deps.mk
13734 }
13735 ;;
13736
13737 esac
13738 done # for ac_tag
13739
13740
13741 as_fn_exit 0
13742 _ACEOF
13743 ac_clean_files=$ac_clean_files_save
13744
13745 test $ac_write_fail = 0 ||
13746 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13747
13748
13749 # configure is writing to config.log, and then calls config.status.
13750 # config.status does its own redirection, appending to config.log.
13751 # Unfortunately, on DOS this fails, as config.log is still kept open
13752 # by configure, so config.status won't be able to write to it; its
13753 # output is simply discarded. So we exec the FD to /dev/null,
13754 # effectively closing config.log, so it can be properly (re)opened and
13755 # appended to by config.status. When coming back to configure, we
13756 # need to make the FD available again.
13757 if test "$no_create" != yes; then
13758 ac_cs_success=:
13759 ac_config_status_args=
13760 test "$silent" = yes &&
13761 ac_config_status_args="$ac_config_status_args --quiet"
13762 exec 5>/dev/null
13763 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13764 exec 5>>config.log
13765 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13766 # would make configure fail if this is the last instruction.
13767 $ac_cs_success || as_fn_exit 1
13768 fi
13769 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13771 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13772 fi
13773
13774
13775