configure revision 1.1.1.9 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.73 for xlsclients 1.1.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlsclients/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2026 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 # contradicts POSIX and common usage. Disable this.
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 case $# in # ((
135 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
136 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
137 esac
138 # Admittedly, this is quite paranoid, since all the known shells bail
139 # out after a failed 'exec'.
140 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
141 exit 255
142 fi
143 # We don't want this to propagate to other subprocesses.
144 { _as_can_reexec=; unset _as_can_reexec;}
145 if test "x$CONFIG_SHELL" = x; then
146 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
147 then :
148 emulate sh
149 NULLCMD=:
150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
151 # contradicts POSIX and common usage. Disable this.
152 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 setopt NO_GLOB_SUBST
154 else case e in #(
155 e) case \`(set -o) 2>/dev/null\` in #(
156 *posix*) :
157 set -o posix ;; #(
158 *) :
159 ;;
160 esac ;;
161 esac
162 fi
163 "
164 as_required="as_fn_return () { (exit \$1); }
165 as_fn_success () { as_fn_return 0; }
166 as_fn_failure () { as_fn_return 1; }
167 as_fn_ret_success () { return 0; }
168 as_fn_ret_failure () { return 1; }
169
170 exitcode=0
171 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
172 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
173 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
174 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
175 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 then :
177
178 else case e in #(
179 e) exitcode=1; echo positional parameters were not saved. ;;
180 esac
181 fi
182 test x\$exitcode = x0 || exit 1
183 blah=\$(echo \$(echo blah))
184 test x\"\$blah\" = xblah || exit 1
185 test -x / || exit 1"
186 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
187 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
188 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
189 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
190 test \$(( 1 + 1 )) = 2 || exit 1"
191 if (eval "$as_required") 2>/dev/null
192 then :
193 as_have_required=yes
194 else case e in #(
195 e) as_have_required=no ;;
196 esac
197 fi
198 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
199 then :
200
201 else case e in #(
202 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
203 as_found=false
204 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
205 do
206 IFS=$as_save_IFS
207 case $as_dir in #(((
208 '') as_dir=./ ;;
209 */) ;;
210 *) as_dir=$as_dir/ ;;
211 esac
212 as_found=:
213 case $as_dir in #(
214 /*)
215 for as_base in sh bash ksh sh5; do
216 # Try only shells that exist, to save several forks.
217 as_shell=$as_dir$as_base
218 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
219 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
220 then :
221 CONFIG_SHELL=$as_shell as_have_required=yes
222 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
223 then :
224 break 2
225 fi
226 fi
227 done;;
228 esac
229 as_found=false
230 done
231 IFS=$as_save_IFS
232 if $as_found
233 then :
234
235 else case e in #(
236 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
237 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
238 then :
239 CONFIG_SHELL=$SHELL as_have_required=yes
240 fi ;;
241 esac
242 fi
243
244
245 if test "x$CONFIG_SHELL" != x
246 then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 case $# in # ((
262 0) exec $CONFIG_SHELL $as_opts "$as_myself" ;;
263 *) exec $CONFIG_SHELL $as_opts "$as_myself" "$@" ;;
264 esac
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed 'exec'.
267 printf '%s\n' "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno
272 then :
273 printf '%s\n' "$0: This script requires a shell more modern than all"
274 printf '%s\n' "$0: the shells that I found on your system."
275 if test ${ZSH_VERSION+y} ; then
276 printf '%s\n' "$0: In particular, zsh $ZSH_VERSION has bugs and should"
277 printf '%s\n' "$0: be upgraded to zsh 4.3.4 or later."
278 else
279 printf '%s\n' "$0: Please tell bug-autoconf (at] gnu.org and
280 $0: https://gitlab.freedesktop.org/xorg/app/xlsclients/-/issues
281 $0: about your system, including any error possibly output
282 $0: before this message. Then install a modern shell, or
283 $0: manually run the script under such a shell if you do
284 $0: have one."
285 fi
286 exit 1
287 fi ;;
288 esac
289 fi
290 fi
291 SHELL=${CONFIG_SHELL-/bin/sh}
292 export SHELL
293 # Unset more variables known to interfere with behavior of common tools.
294 CLICOLOR_FORCE= GREP_OPTIONS=
295 unset CLICOLOR_FORCE GREP_OPTIONS
296
297 ## --------------------- ##
298 ## M4sh Shell Functions. ##
299 ## --------------------- ##
300 # as_fn_unset VAR
301 # ---------------
302 # Portably unset VAR.
303 as_fn_unset ()
304 {
305 { eval $1=; unset $1;}
306 }
307 as_unset=as_fn_unset
308
309
310 # as_fn_set_status STATUS
311 # -----------------------
312 # Set $? to STATUS, without forking.
313 as_fn_set_status ()
314 {
315 return $1
316 } # as_fn_set_status
317
318 # as_fn_exit STATUS
319 # -----------------
320 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
321 as_fn_exit ()
322 {
323 set +e
324 as_fn_set_status $1
325 exit $1
326 } # as_fn_exit
327
328 # as_fn_mkdir_p
329 # -------------
330 # Create "$as_dir" as a directory, including parents if necessary.
331 as_fn_mkdir_p ()
332 {
333
334 case $as_dir in #(
335 -*) as_dir=./$as_dir;;
336 esac
337 test -d "$as_dir" || eval $as_mkdir_p || {
338 as_dirs=
339 while :; do
340 case $as_dir in #(
341 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
342 *) as_qdir=$as_dir;;
343 esac
344 as_dirs="'$as_qdir' $as_dirs"
345 as_dir=`$as_dirname -- "$as_dir" ||
346 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
347 X"$as_dir" : 'X\(//\)[^/]' \| \
348 X"$as_dir" : 'X\(//\)$' \| \
349 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
350 printf '%s\n' X"$as_dir" |
351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)[^/].*/{
356 s//\1/
357 q
358 }
359 /^X\(\/\/\)$/{
360 s//\1/
361 q
362 }
363 /^X\(\/\).*/{
364 s//\1/
365 q
366 }
367 s/.*/./; q'`
368 test -d "$as_dir" && break
369 done
370 test -z "$as_dirs" || eval "mkdir $as_dirs"
371 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372
373
374 } # as_fn_mkdir_p
375
376 # as_fn_executable_p FILE
377 # -----------------------
378 # Test if FILE is an executable regular file.
379 as_fn_executable_p ()
380 {
381 test -f "$1" && test -x "$1"
382 } # as_fn_executable_p
383 # as_fn_append VAR VALUE
384 # ----------------------
385 # Append the text in VALUE to the end of the definition contained in VAR. Take
386 # advantage of any shell optimizations that allow amortized linear growth over
387 # repeated appends, instead of the typical quadratic growth present in naive
388 # implementations.
389 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
390 then :
391 eval 'as_fn_append ()
392 {
393 eval $1+=\$2
394 }'
395 else case e in #(
396 e) as_fn_append ()
397 {
398 eval $1=\$$1\$2
399 } ;;
400 esac
401 fi # as_fn_append
402
403 # as_fn_arith ARG...
404 # ------------------
405 # Perform arithmetic evaluation on the ARGs, and store the result in the
406 # global $as_val. Take advantage of shells that can avoid forks. The arguments
407 # must be portable across $(()) and expr.
408 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
409 then :
410 eval 'as_fn_arith ()
411 {
412 as_val=$(( $* ))
413 }'
414 else case e in #(
415 e) as_fn_arith ()
416 {
417 as_val=`expr "$@" || test $? -eq 1`
418 } ;;
419 esac
420 fi # as_fn_arith
421
422
423 # as_fn_error STATUS ERROR [LINENO LOG_FD]
424 # ----------------------------------------
425 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
427 # script with STATUS, using 1 if that was 0.
428 as_fn_error ()
429 {
430 as_status=$1; test $as_status -eq 0 && as_status=1
431 if test "$4"; then
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
433 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
434 fi
435 printf '%s\n' "$as_me: error: $2" >&2
436 as_fn_exit $as_status
437 } # as_fn_error
438
439 if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
441 as_expr=expr
442 else
443 as_expr=false
444 fi
445
446 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
447 as_basename=basename
448 else
449 as_basename=false
450 fi
451
452 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453 as_dirname=dirname
454 else
455 as_dirname=false
456 fi
457
458 as_me=`$as_basename -- "$0" ||
459 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
462 printf '%s\n' X/"$0" |
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
464 s//\1/
465 q
466 }
467 /^X\/\(\/\/\)$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\).*/{
472 s//\1/
473 q
474 }
475 s/.*/./; q'`
476
477 # Avoid depending upon Character Ranges.
478 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481 as_cr_digits='0123456789'
482 as_cr_alnum=$as_cr_Letters$as_cr_digits
483
484
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
490 sed -n '
491 p
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 t clear
496 :clear
497 s/[$]LINENO.*/&-/
498 t lineno
499 b
500 :lineno
501 N
502 :loop
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 t loop
505 s/-\n.*//
506 ' >$as_me.lineno &&
507 chmod +x "$as_me.lineno" ||
508 { printf '%s\n' "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
509
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
517 . "./$as_me.lineno"
518 # Exit status is that of the last command.
519 exit
520 }
521
522 rm -f conf$$ conf$$.exe conf$$.file
523 if test -d conf$$.dir; then
524 rm -f conf$$.dir/conf$$.file
525 else
526 rm -f conf$$.dir
527 mkdir conf$$.dir 2>/dev/null
528 fi
529 if (echo >conf$$.file) 2>/dev/null; then
530 if ln -s conf$$.file conf$$ 2>/dev/null; then
531 as_ln_s='ln -s'
532 # ... but there are two gotchas:
533 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
534 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
535 # In both cases, we have to default to 'cp -pR'.
536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537 as_ln_s='cp -pR'
538 elif ln conf$$.file conf$$ 2>/dev/null; then
539 as_ln_s=ln
540 else
541 as_ln_s='cp -pR'
542 fi
543 else
544 as_ln_s='cp -pR'
545 fi
546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
547 rmdir conf$$.dir 2>/dev/null
548
549 if mkdir -p . 2>/dev/null; then
550 as_mkdir_p='mkdir -p "$as_dir"'
551 else
552 test -d ./-p && rmdir ./-p
553 as_mkdir_p=false
554 fi
555
556 as_test_x='test -x'
557 as_executable_p=as_fn_executable_p
558
559 # Sed expression to map a string onto a valid CPP name.
560 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
561 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
562
563 # Sed expression to map a string onto a valid variable name.
564 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
565 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
566
567
568 test -n "$DJDIR" || exec 7<&0 </dev/null
569 exec 6>&1
570
571 # Name of the host.
572 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
573 # so uname gets run too.
574 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
575
576 #
577 # Initializations.
578 #
579 ac_default_prefix=/usr/local
580 ac_clean_CONFIG_STATUS=
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
588
589 # Identity of this package.
590 PACKAGE_NAME='xlsclients'
591 PACKAGE_TARNAME='xlsclients'
592 PACKAGE_VERSION='1.1.6'
593 PACKAGE_STRING='xlsclients 1.1.6'
594 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xlsclients/-/issues'
595 PACKAGE_URL=''
596
597 ac_unique_file="Makefile.am"
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stddef.h>
601 #ifdef HAVE_STDIO_H
602 # include <stdio.h>
603 #endif
604 #ifdef HAVE_STDLIB_H
605 # include <stdlib.h>
606 #endif
607 #ifdef HAVE_STRING_H
608 # include <string.h>
609 #endif
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
612 #endif
613 #ifdef HAVE_STDINT_H
614 # include <stdint.h>
615 #endif
616 #ifdef HAVE_STRINGS_H
617 # include <strings.h>
618 #endif
619 #ifdef HAVE_SYS_TYPES_H
620 # include <sys/types.h>
621 #endif
622 #ifdef HAVE_SYS_STAT_H
623 # include <sys/stat.h>
624 #endif
625 #ifdef HAVE_UNISTD_H
626 # include <unistd.h>
627 #endif"
628
629 ac_header_c_list=
630 ac_subst_vars='am__EXEEXT_FALSE
631 am__EXEEXT_TRUE
632 LTLIBOBJS
633 XLSCLIENTS_LIBS
634 XLSCLIENTS_CFLAGS
635 LIBOBJS
636 MAN_SUBSTS
637 XORG_MAN_PAGE
638 ADMIN_MAN_DIR
639 DRIVER_MAN_DIR
640 MISC_MAN_DIR
641 FILE_MAN_DIR
642 LIB_MAN_DIR
643 APP_MAN_DIR
644 ADMIN_MAN_SUFFIX
645 DRIVER_MAN_SUFFIX
646 MISC_MAN_SUFFIX
647 FILE_MAN_SUFFIX
648 LIB_MAN_SUFFIX
649 APP_MAN_SUFFIX
650 SED
651 host_os
652 host_vendor
653 host_cpu
654 host
655 build_os
656 build_vendor
657 build_cpu
658 build
659 INSTALL_CMD
660 PKG_CONFIG_LIBDIR
661 PKG_CONFIG_PATH
662 PKG_CONFIG
663 CHANGELOG_CMD
664 STRICT_CFLAGS
665 CWARNFLAGS
666 BASE_CFLAGS
667 am__xargs_n
668 am__rm_f_notfound
669 AM_BACKSLASH
670 AM_DEFAULT_VERBOSITY
671 AM_DEFAULT_V
672 AM_V
673 CSCOPE
674 ETAGS
675 CTAGS
676 am__fastdepCC_FALSE
677 am__fastdepCC_TRUE
678 CCDEPMODE
679 am__nodep
680 AMDEPBACKSLASH
681 AMDEP_FALSE
682 AMDEP_TRUE
683 am__include
684 DEPDIR
685 am__untar
686 am__tar
687 AMTAR
688 am__leading_dot
689 SET_MAKE
690 AWK
691 mkdir_p
692 MKDIR_P
693 INSTALL_STRIP_PROGRAM
694 STRIP
695 install_sh
696 MAKEINFO
697 AUTOHEADER
698 AUTOMAKE
699 AUTOCONF
700 ACLOCAL
701 VERSION
702 PACKAGE
703 CYGPATH_W
704 am__isrc
705 INSTALL_DATA
706 INSTALL_SCRIPT
707 INSTALL_PROGRAM
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 ECHO_T
716 ECHO_N
717 ECHO_C
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 DEFS
723 mandir
724 localedir
725 libdir
726 psdir
727 pdfdir
728 dvidir
729 htmldir
730 infodir
731 docdir
732 oldincludedir
733 includedir
734 runstatedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
752 PATH_SEPARATOR
753 SHELL
754 am__quote'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 enable_dependency_tracking
759 enable_silent_rules
760 enable_selective_werror
761 enable_strict_compilation
762 '
763 ac_precious_vars='build_alias
764 host_alias
765 target_alias
766 CC
767 CFLAGS
768 LDFLAGS
769 LIBS
770 CPPFLAGS
771 PKG_CONFIG
772 PKG_CONFIG_PATH
773 PKG_CONFIG_LIBDIR
774 XLSCLIENTS_CFLAGS
775 XLSCLIENTS_LIBS'
776
777
778 # Initialize some variables set by options.
779 ac_init_help=
780 ac_init_version=false
781 ac_unrecognized_opts=
782 ac_unrecognized_sep=
783 # The variables have the same names as the options, with
784 # dashes changed to underlines.
785 cache_file=/dev/null
786 exec_prefix=NONE
787 no_create=
788 no_recursion=
789 prefix=NONE
790 program_prefix=NONE
791 program_suffix=NONE
792 program_transform_name=s,x,x,
793 silent=
794 site=
795 srcdir=
796 verbose=
797 x_includes=NONE
798 x_libraries=NONE
799
800 # Installation directory options.
801 # These are left unexpanded so users can "make install exec_prefix=/foo"
802 # and all the variables that are supposed to be based on exec_prefix
803 # by default will actually change.
804 # Use braces instead of parens because sh, perl, etc. also accept them.
805 # (The list follows the same order as the GNU Coding Standards.)
806 bindir='${exec_prefix}/bin'
807 sbindir='${exec_prefix}/sbin'
808 libexecdir='${exec_prefix}/libexec'
809 datarootdir='${prefix}/share'
810 datadir='${datarootdir}'
811 sysconfdir='${prefix}/etc'
812 sharedstatedir='${prefix}/com'
813 localstatedir='${prefix}/var'
814 runstatedir='${localstatedir}/run'
815 includedir='${prefix}/include'
816 oldincludedir='/usr/include'
817 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
818 infodir='${datarootdir}/info'
819 htmldir='${docdir}'
820 dvidir='${docdir}'
821 pdfdir='${docdir}'
822 psdir='${docdir}'
823 libdir='${exec_prefix}/lib'
824 localedir='${datarootdir}/locale'
825 mandir='${datarootdir}/man'
826
827 ac_prev=
828 ac_dashdash=
829 for ac_option
830 do
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\$ac_option
834 ac_prev=
835 continue
836 fi
837
838 case $ac_option in
839 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 *=) ac_optarg= ;;
841 *) ac_optarg=yes ;;
842 esac
843
844 case $ac_dashdash$ac_option in
845 --)
846 ac_dashdash=yes ;;
847
848 -bindir | --bindir | --bindi | --bind | --bin | --bi)
849 ac_prev=bindir ;;
850 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 bindir=$ac_optarg ;;
852
853 -build | --build | --buil | --bui | --bu)
854 ac_prev=build_alias ;;
855 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
856 build_alias=$ac_optarg ;;
857
858 -cache-file | --cache-file | --cache-fil | --cache-fi \
859 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
860 ac_prev=cache_file ;;
861 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
862 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
863 cache_file=$ac_optarg ;;
864
865 --config-cache | -C)
866 cache_file=config.cache ;;
867
868 -datadir | --datadir | --datadi | --datad)
869 ac_prev=datadir ;;
870 -datadir=* | --datadir=* | --datadi=* | --datad=*)
871 datadir=$ac_optarg ;;
872
873 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
874 | --dataroo | --dataro | --datar)
875 ac_prev=datarootdir ;;
876 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
877 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
878 datarootdir=$ac_optarg ;;
879
880 -disable-* | --disable-*)
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error $? "invalid feature name: '$ac_useropt'"
885 ac_useropt_orig=$ac_useropt
886 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in
888 *"
889 "enable_$ac_useropt"
890 "*) ;;
891 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
892 ac_unrecognized_sep=', ';;
893 esac
894 eval enable_$ac_useropt=no ;;
895
896 -docdir | --docdir | --docdi | --doc | --do)
897 ac_prev=docdir ;;
898 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 docdir=$ac_optarg ;;
900
901 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 ac_prev=dvidir ;;
903 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 dvidir=$ac_optarg ;;
905
906 -enable-* | --enable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=\$ac_optarg ;;
921
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
930
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
933 with_gas=yes ;;
934
935 -help | --help | --hel | --he | -h)
936 ac_init_help=long ;;
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
941
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
946
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
948 ac_prev=htmldir ;;
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
950 | --ht=*)
951 htmldir=$ac_optarg ;;
952
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
959
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
961 ac_prev=infodir ;;
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
964
965 -libdir | --libdir | --libdi | --libd)
966 ac_prev=libdir ;;
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 libdir=$ac_optarg ;;
969
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
976
977 -localedir | --localedir | --localedi | --localed | --locale)
978 ac_prev=localedir ;;
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
981
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
988
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
990 ac_prev=mandir ;;
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 mandir=$ac_optarg ;;
993
994 -nfp | --nfp | --nf)
995 # Obsolete; use --without-fp.
996 with_fp=no ;;
997
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1000 no_create=yes ;;
1001
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 no_recursion=yes ;;
1005
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1014
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1016 ac_prev=prefix ;;
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1019
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1026
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1033
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1050
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1052 ac_prev=pdfdir ;;
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1055
1056 -psdir | --psdir | --psdi | --psd | --ps)
1057 ac_prev=psdir ;;
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 psdir=$ac_optarg ;;
1060
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1063 silent=yes ;;
1064
1065 -runstatedir | --runstatedir | --runstatedi | --runstated \
1066 | --runstate | --runstat | --runsta | --runst | --runs \
1067 | --run | --ru | --r)
1068 ac_prev=runstatedir ;;
1069 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1070 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1071 | --run=* | --ru=* | --r=*)
1072 runstatedir=$ac_optarg ;;
1073
1074 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 ac_prev=sbindir ;;
1076 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 | --sbi=* | --sb=*)
1078 sbindir=$ac_optarg ;;
1079
1080 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1081 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1082 | --sharedst | --shareds | --shared | --share | --shar \
1083 | --sha | --sh)
1084 ac_prev=sharedstatedir ;;
1085 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1086 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1087 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 | --sha=* | --sh=*)
1089 sharedstatedir=$ac_optarg ;;
1090
1091 -site | --site | --sit)
1092 ac_prev=site ;;
1093 -site=* | --site=* | --sit=*)
1094 site=$ac_optarg ;;
1095
1096 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 ac_prev=srcdir ;;
1098 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1099 srcdir=$ac_optarg ;;
1100
1101 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1102 | --syscon | --sysco | --sysc | --sys | --sy)
1103 ac_prev=sysconfdir ;;
1104 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1105 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1106 sysconfdir=$ac_optarg ;;
1107
1108 -target | --target | --targe | --targ | --tar | --ta | --t)
1109 ac_prev=target_alias ;;
1110 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1111 target_alias=$ac_optarg ;;
1112
1113 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1114 verbose=yes ;;
1115
1116 -version | --version | --versio | --versi | --vers | -V)
1117 ac_init_version=: ;;
1118
1119 -with-* | --with-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 as_fn_error $? "invalid package name: '$ac_useropt'"
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1127 *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1132 esac
1133 eval with_$ac_useropt=\$ac_optarg ;;
1134
1135 -without-* | --without-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: '$ac_useropt'"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`printf '%s\n' "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144 "with_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=no ;;
1150
1151 --x)
1152 # Obsolete; use --with-x.
1153 with_x=yes ;;
1154
1155 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1156 | --x-incl | --x-inc | --x-in | --x-i)
1157 ac_prev=x_includes ;;
1158 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1159 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1160 x_includes=$ac_optarg ;;
1161
1162 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1163 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1164 ac_prev=x_libraries ;;
1165 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1166 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1167 x_libraries=$ac_optarg ;;
1168
1169 -*) as_fn_error $? "unrecognized option: '$ac_option'
1170 Try '$0 --help' for more information"
1171 ;;
1172
1173 *=*)
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 case $ac_envvar in #(
1177 '' | [0-9]* | *[!_$as_cr_alnum]* )
1178 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1179 esac
1180 eval $ac_envvar=\$ac_optarg
1181 export $ac_envvar ;;
1182
1183 *)
1184 # FIXME: should be removed in autoconf 3.0.
1185 printf '%s\n' "$as_me: WARNING: you should use --build, --host, --target" >&2
1186 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1187 printf '%s\n' "$as_me: WARNING: invalid host type: $ac_option" >&2
1188 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1189 ;;
1190
1191 esac
1192 done
1193
1194 if test -n "$ac_prev"; then
1195 ac_option=--`printf '%s\n' $ac_prev | sed 's/_/-/g'`
1196 as_fn_error $? "missing argument to $ac_option"
1197 fi
1198
1199 if test -n "$ac_unrecognized_opts"; then
1200 case $enable_option_checking in
1201 no) ;;
1202 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1203 *) printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1204 esac
1205 fi
1206
1207 # Check all directory arguments for consistency.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir runstatedir
1212 do
1213 eval ac_val=\$$ac_var
1214 # Remove trailing slashes.
1215 case $ac_val in
1216 */ )
1217 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1218 eval $ac_var=\$ac_val;;
1219 esac
1220 # Be sure to have absolute directory names.
1221 case $ac_val in
1222 [\\/$]* | ?:[\\/]* ) continue;;
1223 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1224 esac
1225 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1226 done
1227
1228 # There might be people who depend on the old broken behavior: '$host'
1229 # used to hold the argument of --host etc.
1230 # FIXME: To remove some day.
1231 build=$build_alias
1232 host=$host_alias
1233 target=$target_alias
1234
1235 # FIXME: To remove some day.
1236 if test "x$host_alias" != x; then
1237 if test "x$build_alias" = x; then
1238 cross_compiling=maybe
1239 elif test "x$build_alias" != "x$host_alias"; then
1240 cross_compiling=yes
1241 fi
1242 fi
1243
1244 ac_tool_prefix=
1245 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1246
1247 test "$silent" = yes && exec 6>/dev/null
1248
1249
1250 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1251 ac_ls_di=`ls -di .` &&
1252 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1253 as_fn_error $? "working directory cannot be determined"
1254 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1255 as_fn_error $? "pwd does not report name of working directory"
1256
1257
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 printf '%s\n' X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)[^/].*/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\/\)$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\).*/{
1281 s//\1/
1282 q
1283 }
1284 s/.*/./; q'`
1285 srcdir=$ac_confdir
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287 srcdir=..
1288 fi
1289 else
1290 ac_srcdir_defaulted=no
1291 fi
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1295 fi
1296 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1297 ac_abs_confdir=`(
1298 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1299 pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1303 fi
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1316
1317 #
1318 # Report the --help message.
1319 #
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324 'configure' configures xlsclients 1.1.6 to adapt to many kinds of systems.
1325
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1327
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1330
1331 Defaults for the options are specified in brackets.
1332
1333 Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print 'checking ...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for '--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or '..']
1343
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 [PREFIX]
1349
1350 By default, 'make install' will install all the files in
1351 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than '$ac_default_prefix' using '--prefix',
1353 for instance '--prefix=\$HOME'.
1354
1355 For better control, use the options below.
1356
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/xlsclients]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1378 _ACEOF
1379
1380 cat <<\_ACEOF
1381
1382 Program names:
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1386
1387 System types:
1388 --build=BUILD configure for building on BUILD [guessed]
1389 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1390 _ACEOF
1391 fi
1392
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short | recursive ) echo "Configuration of xlsclients 1.1.6:";;
1396 esac
1397 cat <<\_ACEOF
1398
1399 Optional Features:
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-dependency-tracking
1404 do not reject slow dependency extractors
1405 --disable-dependency-tracking
1406 speeds up one-time build
1407 --enable-silent-rules less verbose build output (undo: "make V=1")
1408 --disable-silent-rules verbose build output (undo: "make V=0")
1409 --disable-selective-werror
1410 Turn off selective compiler errors. (default:
1411 enabled)
1412 --enable-strict-compilation
1413 Enable all warnings from compiler and make them
1414 errors (default: disabled)
1415
1416 Some influential environment variables:
1417 CC C compiler command
1418 CFLAGS C compiler flags
1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1420 nonstandard directory <lib dir>
1421 LIBS libraries to pass to the linker, e.g. -l<library>
1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423 you have headers in a nonstandard directory <include dir>
1424 PKG_CONFIG path to pkg-config utility
1425 PKG_CONFIG_PATH
1426 directories to add to pkg-config's search path
1427 PKG_CONFIG_LIBDIR
1428 path overriding pkg-config's built-in search path
1429 XLSCLIENTS_CFLAGS
1430 C compiler flags for XLSCLIENTS, overriding pkg-config
1431 XLSCLIENTS_LIBS
1432 linker flags for XLSCLIENTS, overriding pkg-config
1433
1434 Use these variables to override the choices made by 'configure' or to help
1435 it to find libraries and programs with nonstandard names/locations.
1436
1437 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlsclients/-/issues>.
1438 _ACEOF
1439 ac_status=$?
1440 fi
1441
1442 if test "$ac_init_help" = "recursive"; then
1443 # If there are subdirs, report their specific --help.
1444 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1445 test -d "$ac_dir" ||
1446 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1447 continue
1448 ac_builddir=.
1449
1450 case "$ac_dir" in
1451 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *)
1453 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
1454 # A ".." for each directory in $ac_dir_suffix.
1455 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1456 case $ac_top_builddir_sub in
1457 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1458 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1459 esac ;;
1460 esac
1461 ac_abs_top_builddir=$ac_pwd
1462 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1463 # for backward compatibility:
1464 ac_top_builddir=$ac_top_build_prefix
1465
1466 case $srcdir in
1467 .) # We are building in place.
1468 ac_srcdir=.
1469 ac_top_srcdir=$ac_top_builddir_sub
1470 ac_abs_top_srcdir=$ac_pwd ;;
1471 [\\/]* | ?:[\\/]* ) # Absolute name.
1472 ac_srcdir=$srcdir$ac_dir_suffix;
1473 ac_top_srcdir=$srcdir
1474 ac_abs_top_srcdir=$srcdir ;;
1475 *) # Relative name.
1476 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1477 ac_top_srcdir=$ac_top_build_prefix$srcdir
1478 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479 esac
1480 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481
1482 cd "$ac_dir" || { ac_status=$?; continue; }
1483 # Check for configure.gnu first; this name is used for a wrapper for
1484 # Metaconfig's "Configure" on case-insensitive file systems.
1485 if test -f "$ac_srcdir/configure.gnu"; then
1486 echo &&
1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1488 elif test -f "$ac_srcdir/configure"; then
1489 echo &&
1490 $SHELL "$ac_srcdir/configure" --help=recursive
1491 else
1492 printf '%s\n' "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1493 fi || ac_status=$?
1494 cd "$ac_pwd" || { ac_status=$?; break; }
1495 done
1496 fi
1497
1498 test -n "$ac_init_help" && exit $ac_status
1499 if $ac_init_version; then
1500 cat <<\_ACEOF
1501 xlsclients configure 1.1.6
1502 generated by GNU Autoconf 2.73
1503
1504 Copyright (C) 2026 Free Software Foundation, Inc.
1505 This configure script is free software; the Free Software Foundation
1506 gives unlimited permission to copy, distribute and modify it.
1507 _ACEOF
1508 exit
1509 fi
1510
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1514
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1519 {
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext conftest.beam
1522 if { { ac_try="$ac_compile"
1523 case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526 esac
1527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 printf '%s\n' "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1535 fi
1536 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext
1541 then :
1542 ac_retval=0
1543 else case e in #(
1544 e) printf '%s\n' "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.$ac_ext >&5
1546
1547 ac_retval=1 ;;
1548 esac
1549 fi
1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551 as_fn_set_status $ac_retval
1552
1553 } # ac_fn_c_try_compile
1554
1555 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1556 # -------------------------------------------------------
1557 # Tests whether HEADER exists and can be compiled using the include files in
1558 # INCLUDES, setting the cache variable VAR accordingly.
1559 ac_fn_c_check_header_compile ()
1560 {
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1563 printf %s "checking for $2... " >&6; }
1564 if eval test \${$3+y}
1565 then :
1566 printf %s "(cached) " >&6
1567 else case e in #(
1568 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1569 /* end confdefs.h. */
1570 $4
1571 #include <$2>
1572 _ACEOF
1573 if ac_fn_c_try_compile "$LINENO"
1574 then :
1575 eval "$3=yes"
1576 else case e in #(
1577 e) eval "$3=no" ;;
1578 esac
1579 fi
1580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1581 esac
1582 fi
1583 eval ac_res=\$$3
1584 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1585 printf '%s\n' "$ac_res" >&6; }
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587
1588 } # ac_fn_c_check_header_compile
1589
1590 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1591 # ------------------------------------------------------------------
1592 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1593 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1594 ac_fn_check_decl ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 as_decl_name=`echo $2|sed 's/ *(.*//'`
1598 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1599 printf %s "checking whether $as_decl_name is declared... " >&6; }
1600 if eval test \${$3+y}
1601 then :
1602 printf %s "(cached) " >&6
1603 else case e in #(
1604 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1605 eval ac_save_FLAGS=\$$6
1606 as_fn_append $6 " $5"
1607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1608 /* end confdefs.h. */
1609 $4
1610 int
1611 main (void)
1612 {
1613 #ifndef $as_decl_name
1614 #ifdef __cplusplus
1615 (void) $as_decl_use;
1616 #else
1617 (void) $as_decl_name;
1618 #endif
1619 #endif
1620
1621 ;
1622 return 0;
1623 }
1624 _ACEOF
1625 if ac_fn_c_try_compile "$LINENO"
1626 then :
1627 eval "$3=yes"
1628 else case e in #(
1629 e) eval "$3=no" ;;
1630 esac
1631 fi
1632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1633 eval $6=\$ac_save_FLAGS
1634 ;;
1635 esac
1636 fi
1637 eval ac_res=\$$3
1638 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 printf '%s\n' "$ac_res" >&6; }
1640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641
1642 } # ac_fn_check_decl
1643
1644 # ac_fn_c_try_link LINENO
1645 # -----------------------
1646 # Try to link conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_link ()
1648 {
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1651 if { { ac_try="$ac_link"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 printf '%s\n' "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1664 fi
1665 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest$ac_exeext && {
1670 test "$cross_compiling" = yes ||
1671 test -x conftest$ac_exeext
1672 }
1673 then :
1674 ac_retval=0
1675 else case e in #(
1676 e) printf '%s\n' "$as_me: failed program was:" >&5
1677 sed 's/^/| /' conftest.$ac_ext >&5
1678
1679 ac_retval=1 ;;
1680 esac
1681 fi
1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1684 # interfere with the next link command; also delete a directory that is
1685 # left behind by Apple's compiler. We do this before executing the actions.
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1689
1690 } # ac_fn_c_try_link
1691
1692 # ac_fn_c_try_run LINENO
1693 # ----------------------
1694 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1695 # executables *can* be run.
1696 ac_fn_c_try_run ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 if { { ac_try="$ac_link"
1700 case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 printf '%s\n' "$ac_try_echo"; } >&5
1706 (eval "$ac_link") 2>&5
1707 ac_status=$?
1708 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1710 { { case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 printf '%s\n' "$ac_try_echo"; } >&5
1716 (eval "$ac_try") 2>&5
1717 ac_status=$?
1718 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; }; }
1720 then :
1721 ac_retval=0
1722 else case e in #(
1723 e) printf '%s\n' "$as_me: program exited with status $ac_status" >&5
1724 printf '%s\n' "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1726
1727 ac_retval=$ac_status ;;
1728 esac
1729 fi
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_run
1735 ac_configure_args_raw=
1736 for ac_arg
1737 do
1738 case $ac_arg in
1739 *\'*)
1740 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1741 esac
1742 as_fn_append ac_configure_args_raw " '$ac_arg'"
1743 done
1744
1745 case $ac_configure_args_raw in
1746 *$as_nl*)
1747 ac_safe_unquote= ;;
1748 *)
1749 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1750 ac_unsafe_a="$ac_unsafe_z#~"
1751 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1752 ac_configure_args_raw=` printf '%s\n' "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1753 esac
1754
1755 cat >config.log <<_ACEOF
1756 This file contains any messages produced by compilers while
1757 running configure, to aid debugging if configure makes a mistake.
1758
1759 It was created by xlsclients $as_me 1.1.6, which was
1760 generated by GNU Autoconf 2.73. Invocation command line was
1761
1762 $ $0$ac_configure_args_raw
1763
1764 _ACEOF
1765 exec 5>>config.log
1766 {
1767 cat <<_ASUNAME
1768 ## --------- ##
1769 ## Platform. ##
1770 ## --------- ##
1771
1772 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1773 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1774 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1775 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1776 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1777
1778 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1779 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1780
1781 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1782 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1783 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1784 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1785 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1786 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1787 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1788
1789 _ASUNAME
1790
1791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1792 for as_dir in $PATH
1793 do
1794 IFS=$as_save_IFS
1795 case $as_dir in #(((
1796 '') as_dir=./ ;;
1797 */) ;;
1798 *) as_dir=$as_dir/ ;;
1799 esac
1800 printf '%s\n' "PATH: $as_dir"
1801 done
1802 IFS=$as_save_IFS
1803
1804 } >&5
1805
1806 cat >&5 <<_ACEOF
1807
1808
1809 ## ----------- ##
1810 ## Core tests. ##
1811 ## ----------- ##
1812
1813 _ACEOF
1814
1815
1816 # Keep a trace of the command line.
1817 # Strip out --no-create and --no-recursion so they do not pile up.
1818 # Strip out --silent because we don't want to record it for future runs.
1819 # Also quote any args containing shell meta-characters.
1820 # Make two passes to allow for proper duplicate-argument suppression.
1821 ac_configure_args=
1822 ac_configure_args0=
1823 ac_configure_args1=
1824 ac_must_keep_next=false
1825 for ac_pass in 1 2
1826 do
1827 for ac_arg
1828 do
1829 case $ac_arg in
1830 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1831 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1832 | -silent | --silent | --silen | --sile | --sil)
1833 continue ;;
1834 *\'*)
1835 ac_arg=`printf '%s\n' "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1836 esac
1837 case $ac_pass in
1838 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1839 2)
1840 as_fn_append ac_configure_args1 " '$ac_arg'"
1841 if test $ac_must_keep_next = true; then
1842 ac_must_keep_next=false # Got value, back to normal.
1843 else
1844 case $ac_arg in
1845 *=* | --config-cache | -C | -disable-* | --disable-* \
1846 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1847 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1848 | -with-* | --with-* | -without-* | --without-* | --x)
1849 case "$ac_configure_args0 " in
1850 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1851 esac
1852 ;;
1853 -* ) ac_must_keep_next=true ;;
1854 esac
1855 fi
1856 as_fn_append ac_configure_args " '$ac_arg'"
1857 ;;
1858 esac
1859 done
1860 done
1861 { ac_configure_args0=; unset ac_configure_args0;}
1862 { ac_configure_args1=; unset ac_configure_args1;}
1863
1864 # Dump the cache to stdout. It can be in a pipe (this is a requirement).
1865 ac_cache_dump ()
1866 {
1867 # The following way of writing the cache mishandles newlines in values,
1868 # but we know of no workaround that is simple, portable, and efficient.
1869 # So, we kill variables containing newlines.
1870 # Ultrix sh set writes to stderr and can't be redirected directly,
1871 # and sets the high bit in the cache file unless we assign to the vars.
1872 (
1873 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
1874 eval ac_val=\$$ac_var
1875 case $ac_val in #(
1876 *${as_nl}*)
1877 case $ac_var in #(
1878 *_cv_*) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1879 printf '%s\n' "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1880 esac
1881 case $ac_var in #(
1882 _ | IFS | as_nl) ;; #(
1883 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1884 *) { eval $ac_var=; unset $ac_var;} ;;
1885 esac ;;
1886 esac
1887 done
1888
1889 (set) 2>&1 |
1890 case $as_nl`(ac_space=' '; set) 2>&1` in #(
1891 *${as_nl}ac_space=\ *)
1892 # 'set' does not quote correctly, so add quotes: double-quote
1893 # substitution turns \\\\ into \\, and sed turns \\ into \.
1894 sed -n \
1895 "s/'/'\\\\''/g;
1896 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
1897 ;; #(
1898 *)
1899 # 'set' quotes correctly as required by POSIX, so do not add quotes.
1900 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1901 ;;
1902 esac |
1903 sort
1904 )
1905 }
1906
1907 # Print debugging info to stdout.
1908 ac_dump_debugging_info ()
1909 {
1910 echo
1911
1912 printf '%s\n' "## ---------------- ##
1913 ## Cache variables. ##
1914 ## ---------------- ##"
1915 echo
1916 ac_cache_dump
1917 echo
1918
1919 printf '%s\n' "## ----------------- ##
1920 ## Output variables. ##
1921 ## ----------------- ##"
1922 echo
1923 for ac_var in $ac_subst_vars
1924 do
1925 eval ac_val=\$$ac_var
1926 case $ac_val in
1927 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
1928 esac
1929 printf '%s\n' "$ac_var='$ac_val'"
1930 done | sort
1931 echo
1932
1933 if test -n "$ac_subst_files"; then
1934 printf '%s\n' "## ------------------- ##
1935 ## File substitutions. ##
1936 ## ------------------- ##"
1937 echo
1938 for ac_var in $ac_subst_files
1939 do
1940 eval ac_val=\$$ac_var
1941 case $ac_val in
1942 *\'*) ac_val=`printf '%s\n' "$ac_val" | sed "s/'/'\\\\\\\\''/g"`;;
1943 esac
1944 printf '%s\n' "$ac_var='$ac_val'"
1945 done | sort
1946 echo
1947 fi
1948
1949 if test -s confdefs.h; then
1950 printf '%s\n' "## ----------- ##
1951 ## confdefs.h. ##
1952 ## ----------- ##"
1953 echo
1954 cat confdefs.h
1955 echo
1956 fi
1957 test "$ac_signal" != 0 &&
1958 printf '%s\n' "$as_me: caught signal $ac_signal"
1959 printf '%s\n' "$as_me: exit $exit_status"
1960 }
1961
1962 # When interrupted or exit'd, cleanup temporary files, and complete
1963 # config.log.
1964 ac_exit_trap ()
1965 {
1966 exit_status=
1967 # Sanitize IFS.
1968 IFS=" "" $as_nl"
1969 # Save into config.log some information that might help in debugging.
1970 ac_dump_debugging_info >&5
1971 eval "rm -f $ac_clean_CONFIG_STATUS core *.core core.conftest.*" &&
1972 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1973 exit $exit_status
1974 }
1975
1976 trap 'ac_exit_trap $?' 0
1977 for ac_signal in 1 2 13 15; do
1978 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1979 done
1980 ac_signal=0
1981
1982 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1983 rm -f -r conftest* confdefs.h
1984
1985 printf '%s\n' "/* confdefs.h */" > confdefs.h
1986
1987 # Predefined preprocessor variables.
1988
1989 printf '%s\n' "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1990
1991 printf '%s\n' "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1992
1993 printf '%s\n' "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1994
1995 printf '%s\n' "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1996
1997 printf '%s\n' "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1998
1999 printf '%s\n' "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2000
2001
2002 # Let the site file select an alternate cache file if it wants to.
2003 # Prefer an explicitly selected file to automatically selected ones.
2004 if test -n "$CONFIG_SITE"; then
2005 ac_site_files="$CONFIG_SITE"
2006 elif test "x$prefix" != xNONE; then
2007 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2008 else
2009 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2010 fi
2011
2012 for ac_site_file in $ac_site_files
2013 do
2014 case $ac_site_file in #(
2015 */*) :
2016 ;; #(
2017 *) :
2018 ac_site_file=./$ac_site_file ;;
2019 esac
2020 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2021 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2022 printf '%s\n' "$as_me: loading site script $ac_site_file" >&6;}
2023 sed 's/^/| /' "$ac_site_file" >&5
2024 . "$ac_site_file" \
2025 || { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2026 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2027 as_fn_error $? "failed to load site script $ac_site_file
2028 See 'config.log' for more details" "$LINENO" 5; }
2029 fi
2030 done
2031
2032 if test -r "$cache_file"; then
2033 # Some versions of bash will fail to source /dev/null (special files
2034 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2035 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2036 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2037 printf '%s\n' "$as_me: loading cache $cache_file" >&6;}
2038 case $cache_file in
2039 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2040 *) . "./$cache_file";;
2041 esac
2042 fi
2043 else
2044 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2045 printf '%s\n' "$as_me: creating cache $cache_file" >&6;}
2046 >$cache_file
2047 fi
2048
2049 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2050 # Test code for whether the C compiler supports C23 (global declarations)
2051 ac_c_conftest_c23_globals='
2052 /* Does the compiler advertise conformance to C17 or earlier?
2053 Although GCC 14 does not do that, even with -std=gnu23,
2054 it is close enough, and defines __STDC_VERSION == 202000L. */
2055 #if !defined __STDC_VERSION__ || __STDC_VERSION__ <= 201710L
2056 # error "Compiler advertises conformance to C17 or earlier"
2057 #endif
2058
2059 // Check alignas.
2060 char alignas (double) c23_aligned_as_double;
2061 char alignas (0) c23_no_special_alignment;
2062 extern char c23_aligned_as_int;
2063 char alignas (0) alignas (int) c23_aligned_as_int;
2064
2065 // Check alignof.
2066 enum
2067 {
2068 c23_int_alignment = alignof (int),
2069 c23_int_array_alignment = alignof (int[100]),
2070 c23_char_alignment = alignof (char)
2071 };
2072 static_assert (0 < -alignof (int), "alignof is signed");
2073
2074 int function_with_unnamed_parameter (int) { return 0; }
2075
2076 void c23_noreturn ();
2077
2078 /* Test parsing of string and char UTF-8 literals (including hex escapes).
2079 The parens pacify GCC 15. */
2080 bool use_u8 = (!sizeof u8"\xFF") == (!u8'\''x'\'');
2081
2082 bool check_that_bool_works = true | false | !nullptr;
2083 #if !true
2084 # error "true does not work in #if"
2085 #endif
2086 #if false
2087 #elifdef __STDC_VERSION__
2088 #else
2089 # error "#elifdef does not work"
2090 #endif
2091
2092 #ifndef __has_c_attribute
2093 # error "__has_c_attribute not defined"
2094 #endif
2095
2096 #ifndef __has_include
2097 # error "__has_include not defined"
2098 #endif
2099
2100 #define LPAREN() (
2101 #define FORTY_TWO(x) 42
2102 #define VA_OPT_TEST(r, x, ...) __VA_OPT__ (FORTY_TWO r x))
2103 static_assert (VA_OPT_TEST (LPAREN (), 0, <:-) == 42);
2104
2105 static_assert (0b101010 == 42);
2106 static_assert (0B101010 == 42);
2107 static_assert (0xDEAD'\''BEEF == 3'\''735'\''928'\''559);
2108 static_assert (0.500'\''000'\''000 == 0.5);
2109
2110 enum unsignedish : unsigned int { uione = 1 };
2111 static_assert (0 < -uione);
2112
2113 #include <stddef.h>
2114 constexpr nullptr_t null_pointer = nullptr;
2115
2116 static typeof (1 + 1L) two () { return 2; }
2117 static long int three () { return 3; }
2118 '
2119
2120 # Test code for whether the C compiler supports C23 (body of main).
2121 ac_c_conftest_c23_main='
2122 {
2123 label_before_declaration:
2124 int arr[10] = {};
2125 if (arr[0])
2126 goto label_before_declaration;
2127 if (!arr[0])
2128 goto label_at_end_of_block;
2129 label_at_end_of_block:
2130 }
2131 ok |= !null_pointer;
2132 ok |= two != three;
2133 '
2134
2135 # Test code for whether the C compiler supports C23 (complete).
2136 ac_c_conftest_c23_program="${ac_c_conftest_c23_globals}
2137
2138 int
2139 main (int, char **)
2140 {
2141 int ok = 0;
2142 ${ac_c_conftest_c23_main}
2143 return ok;
2144 }
2145 "
2146
2147 # Test code for whether the C compiler supports C89 (global declarations)
2148 ac_c_conftest_c89_globals='
2149 /* Do not test the value of __STDC__, because some compilers define it to 0
2150 or do not define it, while otherwise adequately conforming. */
2151
2152 #include <stddef.h>
2153 #include <stdarg.h>
2154 struct stat;
2155 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2156 struct buf { int x; };
2157 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2158 static char *e (char **p, int i)
2159 {
2160 return p[i];
2161 }
2162 static char *f (char * (*g) (char **, int), char **p, ...)
2163 {
2164 char *s;
2165 va_list v;
2166 va_start (v,p);
2167 s = g (p, va_arg (v,int));
2168 va_end (v);
2169 return s;
2170 }
2171
2172 /* C89 style stringification. */
2173 #define noexpand_stringify(a) #a
2174 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2175
2176 /* C89 style token pasting. Exercises some of the corner cases that
2177 e.g. old MSVC gets wrong, but not very hard. */
2178 #define noexpand_concat(a,b) a##b
2179 #define expand_concat(a,b) noexpand_concat(a,b)
2180 extern int vA;
2181 extern int vbee;
2182 #define aye A
2183 #define bee B
2184 int *pvA = &expand_concat(v,aye);
2185 int *pvbee = &noexpand_concat(v,bee);
2186
2187 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2188 function prototypes and stuff, but not \xHH hex character constants.
2189 These do not provoke an error unfortunately, instead are silently treated
2190 as an "x". The following induces an error, until -std is added to get
2191 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2192 array size at least. It is necessary to write \x00 == 0 to get something
2193 that is true only with -std. */
2194 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2195
2196 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2197 inside strings and character constants. */
2198 #define FOO(x) '\''x'\''
2199 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2200
2201 int test (int i, double x);
2202 struct s1 {int (*f) (int a);};
2203 struct s2 {int (*f) (double a);};
2204 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2205 int, int);'
2206
2207 # Test code for whether the C compiler supports C89 (body of main).
2208 ac_c_conftest_c89_main='
2209 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2210 '
2211
2212 # Test code for whether the C compiler supports C99 (global declarations)
2213 ac_c_conftest_c99_globals='
2214 /* Does the compiler advertise C99 conformance? */
2215 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2216 # error "Compiler does not advertise C99 conformance"
2217 #endif
2218
2219 // See if C++-style comments work.
2220
2221 #include <stdbool.h>
2222 extern int puts (const char *);
2223 extern int printf (const char *, ...);
2224 extern int dprintf (int, const char *, ...);
2225 extern void *malloc (size_t);
2226 extern void free (void *);
2227
2228 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2229 // dprintf is used instead of fprintf to avoid needing to declare
2230 // FILE and stderr, and "aND" is used instead of "and" to work around
2231 // GCC bug 40564 which is irrelevant here.
2232 #define debug(...) dprintf (2, __VA_ARGS__)
2233 #define showlist(...) puts (#__VA_ARGS__)
2234 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2235 static void
2236 test_varargs_macros (void)
2237 {
2238 int x = 1234;
2239 int y = 5678;
2240 debug ("Flag");
2241 debug ("X = %d\n", x);
2242 showlist (The first, second, aND third items.);
2243 report (x>y, "x is %d but y is %d", x, y);
2244 }
2245
2246 // Check long long types.
2247 #define BIG64 18446744073709551615ull
2248 #define BIG32 4294967295ul
2249 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2250 #if !BIG_OK
2251 #error "your preprocessor is broken"
2252 #endif
2253 #if BIG_OK
2254 #else
2255 #error "your preprocessor is broken"
2256 #endif
2257 static long long int bignum = -9223372036854775807LL;
2258 static unsigned long long int ubignum = BIG64;
2259
2260 struct incomplete_array
2261 {
2262 int datasize;
2263 double data[];
2264 };
2265
2266 struct named_init {
2267 int number;
2268 const wchar_t *name;
2269 double average;
2270 };
2271
2272 typedef const char *ccp;
2273
2274 static inline int
2275 test_restrict (ccp restrict text)
2276 {
2277 // Iterate through items via the restricted pointer.
2278 // Also check for declarations in for loops.
2279 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2280 continue;
2281 return 0;
2282 }
2283
2284 // Check varargs and va_copy.
2285 static bool
2286 test_varargs (const char *format, ...)
2287 {
2288 va_list args;
2289 va_start (args, format);
2290 va_list args_copy;
2291 va_copy (args_copy, args);
2292
2293 const char *str = "";
2294 int number = 0;
2295 float fnumber = 0;
2296
2297 while (*format)
2298 {
2299 switch (*format++)
2300 {
2301 case '\''s'\'': // string
2302 str = va_arg (args_copy, const char *);
2303 break;
2304 case '\''d'\'': // int
2305 number = va_arg (args_copy, int);
2306 break;
2307 case '\''f'\'': // float
2308 fnumber = va_arg (args_copy, double);
2309 break;
2310 default:
2311 break;
2312 }
2313 }
2314 va_end (args_copy);
2315 va_end (args);
2316
2317 return *str && number && fnumber;
2318 }
2319 '
2320
2321 # Test code for whether the C compiler supports C99 (body of main).
2322 ac_c_conftest_c99_main='
2323 // Check bool.
2324 _Bool success = false;
2325 success |= (argc != 0);
2326
2327 // Check restrict.
2328 if (test_restrict ("String literal") == 0)
2329 success = true;
2330 const char *restrict newvar = "Another string";
2331
2332 // Check varargs.
2333 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2334 test_varargs_macros ();
2335
2336 // Check flexible array members.
2337 static struct incomplete_array *volatile incomplete_array_pointer;
2338 struct incomplete_array *ia = incomplete_array_pointer;
2339 ia->datasize = 10;
2340 for (int i = 0; i < ia->datasize; ++i)
2341 ia->data[i] = i * 1.234;
2342 // Work around memory leak warnings.
2343 free (ia);
2344
2345 // Check named initializers.
2346 struct named_init ni = {
2347 .number = 34,
2348 .name = L"Test wide string",
2349 .average = 543.34343,
2350 };
2351
2352 ni.number = 58;
2353
2354 // Do not test for VLAs, as some otherwise-conforming compilers lack them.
2355 // C code should instead use __STDC_NO_VLA__; see Autoconf manual.
2356
2357 // work around unused variable warnings
2358 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2359 || ni.number != 58);
2360 '
2361
2362 # Test code for whether the C compiler supports C11 (global declarations)
2363 ac_c_conftest_c11_globals='
2364 /* Does the compiler advertise C11 conformance? */
2365 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2366 # error "Compiler does not advertise C11 conformance"
2367 #endif
2368
2369 // Check _Alignas.
2370 char _Alignas (double) aligned_as_double;
2371 char _Alignas (0) no_special_alignment;
2372 extern char aligned_as_int;
2373 char _Alignas (0) _Alignas (int) aligned_as_int;
2374
2375 // Check _Alignof.
2376 enum
2377 {
2378 int_alignment = _Alignof (int),
2379 int_array_alignment = _Alignof (int[100]),
2380 char_alignment = _Alignof (char)
2381 };
2382 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2383
2384 // Check _Noreturn.
2385 int _Noreturn does_not_return (void) { for (;;) continue; }
2386
2387 // Check _Static_assert.
2388 struct test_static_assert
2389 {
2390 int x;
2391 _Static_assert (sizeof (int) <= sizeof (long int),
2392 "_Static_assert does not work in struct");
2393 long int y;
2394 };
2395
2396 // Check UTF-8 literals.
2397 #define u8 syntax error!
2398 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2399
2400 // Check duplicate typedefs.
2401 typedef long *long_ptr;
2402 typedef long int *long_ptr;
2403 typedef long_ptr long_ptr;
2404
2405 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2406 struct anonymous
2407 {
2408 union {
2409 struct { int i; int j; };
2410 struct { int k; long int l; } w;
2411 };
2412 int m;
2413 } v1;
2414 '
2415
2416 # Test code for whether the C compiler supports C11 (body of main).
2417 ac_c_conftest_c11_main='
2418 _Static_assert ((offsetof (struct anonymous, i)
2419 == offsetof (struct anonymous, w.k)),
2420 "Anonymous union alignment botch");
2421 v1.i = 2;
2422 v1.w.k = 5;
2423 ok |= v1.i != 5;
2424 '
2425
2426 # Test code for whether the C compiler supports C11 (complete).
2427 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2428 ${ac_c_conftest_c99_globals}
2429 ${ac_c_conftest_c11_globals}
2430
2431 int
2432 main (int argc, char **argv)
2433 {
2434 int ok = 0;
2435 ${ac_c_conftest_c89_main}
2436 ${ac_c_conftest_c99_main}
2437 ${ac_c_conftest_c11_main}
2438 return ok;
2439 }
2440 "
2441
2442 # Test code for whether the C compiler supports C99 (complete).
2443 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2444 ${ac_c_conftest_c99_globals}
2445
2446 int
2447 main (int argc, char **argv)
2448 {
2449 int ok = 0;
2450 ${ac_c_conftest_c89_main}
2451 ${ac_c_conftest_c99_main}
2452 return ok;
2453 }
2454 "
2455
2456 # Test code for whether the C compiler supports C89 (complete).
2457 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2458
2459 int
2460 main (int argc, char **argv)
2461 {
2462 int ok = 0;
2463 ${ac_c_conftest_c89_main}
2464 return ok;
2465 }
2466 "
2467
2468 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2469 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2470 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2471 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2472 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2473 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2474 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2475 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2476 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2477 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2478
2479 # Auxiliary files required by this configure script.
2480 ac_aux_files="config.guess config.sub missing install-sh compile"
2481
2482 # Locations in which to look for auxiliary files.
2483 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2484
2485 # Search for a directory containing all of the required auxiliary files,
2486 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2487 # If we don't find one directory that contains all the files we need,
2488 # we report the set of missing files from the *first* directory in
2489 # $ac_aux_dir_candidates and give up.
2490 ac_missing_aux_files=""
2491 ac_first_candidate=:
2492 printf '%s\n' "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 as_found=false
2495 for as_dir in $ac_aux_dir_candidates
2496 do
2497 IFS=$as_save_IFS
2498 case $as_dir in #(((
2499 '') as_dir=./ ;;
2500 */) ;;
2501 *) as_dir=$as_dir/ ;;
2502 esac
2503 as_found=:
2504
2505 printf '%s\n' "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2506 ac_aux_dir_found=yes
2507 ac_install_sh=
2508 for ac_aux in $ac_aux_files
2509 do
2510 # As a special case, if "install-sh" is required, that requirement
2511 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2512 # and $ac_install_sh is set appropriately for whichever one is found.
2513 if test x"$ac_aux" = x"install-sh"
2514 then
2515 if test -f "${as_dir}install-sh"; then
2516 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2517 ac_install_sh="${as_dir}install-sh -c"
2518 elif test -f "${as_dir}install.sh"; then
2519 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2520 ac_install_sh="${as_dir}install.sh -c"
2521 elif test -f "${as_dir}shtool"; then
2522 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2523 ac_install_sh="${as_dir}shtool install -c"
2524 else
2525 ac_aux_dir_found=no
2526 if $ac_first_candidate; then
2527 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2528 else
2529 break
2530 fi
2531 fi
2532 else
2533 if test -f "${as_dir}${ac_aux}"; then
2534 printf '%s\n' "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2535 else
2536 ac_aux_dir_found=no
2537 if $ac_first_candidate; then
2538 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2539 else
2540 break
2541 fi
2542 fi
2543 fi
2544 done
2545 if test "$ac_aux_dir_found" = yes; then
2546 ac_aux_dir="$as_dir"
2547 break
2548 fi
2549 ac_first_candidate=false
2550
2551 as_found=false
2552 done
2553 IFS=$as_save_IFS
2554 if $as_found
2555 then :
2556
2557 else case e in #(
2558 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2559 esac
2560 fi
2561
2562
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 if test -f "${ac_aux_dir}config.guess"; then
2568 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2569 fi
2570 if test -f "${ac_aux_dir}config.sub"; then
2571 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2572 fi
2573 if test -f "$ac_aux_dir/configure"; then
2574 ac_configure="$SHELL ${ac_aux_dir}configure"
2575 fi
2576
2577 # Check that the precious variables saved in the cache have kept the same
2578 # value.
2579 ac_cache_corrupted=false
2580 for ac_var in $ac_precious_vars; do
2581 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2582 eval ac_new_set=\$ac_env_${ac_var}_set
2583 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2584 eval ac_new_val=\$ac_env_${ac_var}_value
2585 case $ac_old_set,$ac_new_set in
2586 set,)
2587 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2588 printf '%s\n' "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2589 ac_cache_corrupted=: ;;
2590 ,set)
2591 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2592 printf '%s\n' "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2593 ac_cache_corrupted=: ;;
2594 ,);;
2595 *)
2596 if test "x$ac_old_val" != "x$ac_new_val"; then
2597 # differences in whitespace do not lead to failure.
2598 ac_old_val_w=
2599 for ac_val in x $ac_old_val; do
2600 ac_old_val_w="$ac_old_val_w $ac_val"
2601 done
2602 ac_new_val_w=
2603 for ac_val in x $ac_new_val; do
2604 ac_new_val_w="$ac_new_val_w $ac_val"
2605 done
2606 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2607 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2608 printf '%s\n' "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2609 ac_cache_corrupted=:
2610 else
2611 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2612 printf '%s\n' "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2613 eval $ac_var=\$ac_old_val
2614 fi
2615 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2616 printf '%s\n' "$as_me: former value: '$ac_old_val'" >&2;}
2617 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2618 printf '%s\n' "$as_me: current value: '$ac_new_val'" >&2;}
2619 fi;;
2620 esac
2621 # Pass precious variables to config.status.
2622 if test "$ac_new_set" = set; then
2623 case $ac_new_val in
2624 *\'*) ac_arg=$ac_var=`printf '%s\n' "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2625 *) ac_arg=$ac_var=$ac_new_val ;;
2626 esac
2627 case " $ac_configure_args " in
2628 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2629 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2630 esac
2631 fi
2632 done
2633 if $ac_cache_corrupted; then
2634 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2635 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
2636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2637 printf '%s\n' "$as_me: error: changes in the environment can compromise the build" >&2;}
2638 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2639 and start over" "$LINENO" 5
2640 fi
2641 ## -------------------- ##
2642 ## Main body of script. ##
2643 ## -------------------- ##
2644
2645
2646 # Determine whether it's possible to make 'echo' print without a newline.
2647 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
2648 # for compatibility with existing Makefiles.
2649 ECHO_C= ECHO_N= ECHO_T=
2650 case `echo -n x` in #(((((
2651 -n*)
2652 case `echo 'xy\c'` in
2653 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
2654 xy) ECHO_C='\c';;
2655 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
2656 ECHO_T=' ';;
2657 esac;;
2658 *)
2659 ECHO_N='-n';;
2660 esac
2661
2662 ac_ext=c
2663 ac_cpp='$CPP $CPPFLAGS'
2664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2667
2668
2669
2670 ac_config_headers="$ac_config_headers config.h"
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686 # Expand $ac_aux_dir to an absolute path.
2687 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2688
2689 ac_ext=c
2690 ac_cpp='$CPP $CPPFLAGS'
2691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2694 if test -n "$ac_tool_prefix"; then
2695 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2696 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2697 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2698 printf %s "checking for $ac_word... " >&6; }
2699 if test ${ac_cv_prog_CC+y}
2700 then :
2701 printf %s "(cached) " >&6
2702 else case e in #(
2703 e) if test -n "$CC"; then
2704 ac_cv_prog_CC="$CC" # Let the user override the test.
2705 else
2706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 for as_dir in $PATH
2708 do
2709 IFS=$as_save_IFS
2710 case $as_dir in #(((
2711 '') as_dir=./ ;;
2712 */) ;;
2713 *) as_dir=$as_dir/ ;;
2714 esac
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2717 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2718 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2719 break 2
2720 fi
2721 done
2722 done
2723 IFS=$as_save_IFS
2724
2725 fi ;;
2726 esac
2727 fi
2728 CC=$ac_cv_prog_CC
2729 if test -n "$CC"; then
2730 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2731 printf '%s\n' "$CC" >&6; }
2732 else
2733 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 printf '%s\n' "no" >&6; }
2735 fi
2736
2737
2738 fi
2739 if test -z "$ac_cv_prog_CC"; then
2740 ac_ct_CC=$CC
2741 # Extract the first word of "gcc", so it can be a program name with args.
2742 set dummy gcc; ac_word=$2
2743 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2744 printf %s "checking for $ac_word... " >&6; }
2745 if test ${ac_cv_prog_ac_ct_CC+y}
2746 then :
2747 printf %s "(cached) " >&6
2748 else case e in #(
2749 e) if test -n "$ac_ct_CC"; then
2750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2751 else
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 for as_dir in $PATH
2754 do
2755 IFS=$as_save_IFS
2756 case $as_dir in #(((
2757 '') as_dir=./ ;;
2758 */) ;;
2759 *) as_dir=$as_dir/ ;;
2760 esac
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2763 ac_cv_prog_ac_ct_CC="gcc"
2764 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2765 break 2
2766 fi
2767 done
2768 done
2769 IFS=$as_save_IFS
2770
2771 fi ;;
2772 esac
2773 fi
2774 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2775 if test -n "$ac_ct_CC"; then
2776 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2777 printf '%s\n' "$ac_ct_CC" >&6; }
2778 else
2779 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 printf '%s\n' "no" >&6; }
2781 fi
2782
2783 if test "x$ac_ct_CC" = x; then
2784 CC=""
2785 else
2786 case $cross_compiling:$ac_tool_warned in
2787 yes:)
2788 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2789 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2790 ac_tool_warned=yes ;;
2791 esac
2792 CC=$ac_ct_CC
2793 fi
2794 else
2795 CC="$ac_cv_prog_CC"
2796 fi
2797
2798 if test -z "$CC"; then
2799 if test -n "$ac_tool_prefix"; then
2800 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2801 set dummy ${ac_tool_prefix}cc; ac_word=$2
2802 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803 printf %s "checking for $ac_word... " >&6; }
2804 if test ${ac_cv_prog_CC+y}
2805 then :
2806 printf %s "(cached) " >&6
2807 else case e in #(
2808 e) if test -n "$CC"; then
2809 ac_cv_prog_CC="$CC" # Let the user override the test.
2810 else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812 for as_dir in $PATH
2813 do
2814 IFS=$as_save_IFS
2815 case $as_dir in #(((
2816 '') as_dir=./ ;;
2817 */) ;;
2818 *) as_dir=$as_dir/ ;;
2819 esac
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2822 ac_cv_prog_CC="${ac_tool_prefix}cc"
2823 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 fi ;;
2831 esac
2832 fi
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836 printf '%s\n' "$CC" >&6; }
2837 else
2838 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 printf '%s\n' "no" >&6; }
2840 fi
2841
2842
2843 fi
2844 fi
2845 if test -z "$CC"; then
2846 # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc; ac_word=$2
2848 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 printf %s "checking for $ac_word... " >&6; }
2850 if test ${ac_cv_prog_CC+y}
2851 then :
2852 printf %s "(cached) " >&6
2853 else case e in #(
2854 e) if test -n "$CC"; then
2855 ac_cv_prog_CC="$CC" # Let the user override the test.
2856 else
2857 ac_prog_rejected=no
2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2859 for as_dir in $PATH
2860 do
2861 IFS=$as_save_IFS
2862 case $as_dir in #(((
2863 '') as_dir=./ ;;
2864 */) ;;
2865 *) as_dir=$as_dir/ ;;
2866 esac
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2869 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2870 ac_prog_rejected=yes
2871 continue
2872 fi
2873 ac_cv_prog_CC="cc"
2874 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2875 break 2
2876 fi
2877 done
2878 done
2879 IFS=$as_save_IFS
2880
2881 if test $ac_prog_rejected = yes; then
2882 # We found a bogon in the path, so make sure we never use it.
2883 set dummy $ac_cv_prog_CC
2884 shift
2885 if test $# != 0; then
2886 # We chose a different compiler from the bogus one.
2887 # However, it has the same basename, so the bogon will be chosen
2888 # first if we set CC to just the basename; use the full file name.
2889 shift
2890 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2891 fi
2892 fi
2893 fi ;;
2894 esac
2895 fi
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 printf '%s\n' "$CC" >&6; }
2900 else
2901 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 printf '%s\n' "no" >&6; }
2903 fi
2904
2905
2906 fi
2907 if test -z "$CC"; then
2908 if test -n "$ac_tool_prefix"; then
2909 for ac_prog in cl.exe
2910 do
2911 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2912 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 printf %s "checking for $ac_word... " >&6; }
2915 if test ${ac_cv_prog_CC+y}
2916 then :
2917 printf %s "(cached) " >&6
2918 else case e in #(
2919 e) if test -n "$CC"; then
2920 ac_cv_prog_CC="$CC" # Let the user override the test.
2921 else
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 for as_dir in $PATH
2924 do
2925 IFS=$as_save_IFS
2926 case $as_dir in #(((
2927 '') as_dir=./ ;;
2928 */) ;;
2929 *) as_dir=$as_dir/ ;;
2930 esac
2931 for ac_exec_ext in '' $ac_executable_extensions; do
2932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2933 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2934 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2935 break 2
2936 fi
2937 done
2938 done
2939 IFS=$as_save_IFS
2940
2941 fi ;;
2942 esac
2943 fi
2944 CC=$ac_cv_prog_CC
2945 if test -n "$CC"; then
2946 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2947 printf '%s\n' "$CC" >&6; }
2948 else
2949 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 printf '%s\n' "no" >&6; }
2951 fi
2952
2953
2954 test -n "$CC" && break
2955 done
2956 fi
2957 if test -z "$CC"; then
2958 ac_ct_CC=$CC
2959 for ac_prog in cl.exe
2960 do
2961 # Extract the first word of "$ac_prog", so it can be a program name with args.
2962 set dummy $ac_prog; ac_word=$2
2963 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2964 printf %s "checking for $ac_word... " >&6; }
2965 if test ${ac_cv_prog_ac_ct_CC+y}
2966 then :
2967 printf %s "(cached) " >&6
2968 else case e in #(
2969 e) if test -n "$ac_ct_CC"; then
2970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975 IFS=$as_save_IFS
2976 case $as_dir in #(((
2977 '') as_dir=./ ;;
2978 */) ;;
2979 *) as_dir=$as_dir/ ;;
2980 esac
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2983 ac_cv_prog_ac_ct_CC="$ac_prog"
2984 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987 done
2988 done
2989 IFS=$as_save_IFS
2990
2991 fi ;;
2992 esac
2993 fi
2994 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2995 if test -n "$ac_ct_CC"; then
2996 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2997 printf '%s\n' "$ac_ct_CC" >&6; }
2998 else
2999 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 printf '%s\n' "no" >&6; }
3001 fi
3002
3003
3004 test -n "$ac_ct_CC" && break
3005 done
3006
3007 if test "x$ac_ct_CC" = x; then
3008 CC=""
3009 else
3010 case $cross_compiling:$ac_tool_warned in
3011 yes:)
3012 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3013 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3014 ac_tool_warned=yes ;;
3015 esac
3016 CC=$ac_ct_CC
3017 fi
3018 fi
3019
3020 fi
3021 if test -z "$CC"; then
3022 if test -n "$ac_tool_prefix"; then
3023 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3024 set dummy ${ac_tool_prefix}clang; ac_word=$2
3025 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3026 printf %s "checking for $ac_word... " >&6; }
3027 if test ${ac_cv_prog_CC+y}
3028 then :
3029 printf %s "(cached) " >&6
3030 else case e in #(
3031 e) if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033 else
3034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035 for as_dir in $PATH
3036 do
3037 IFS=$as_save_IFS
3038 case $as_dir in #(((
3039 '') as_dir=./ ;;
3040 */) ;;
3041 *) as_dir=$as_dir/ ;;
3042 esac
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3045 ac_cv_prog_CC="${ac_tool_prefix}clang"
3046 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 fi ;;
3054 esac
3055 fi
3056 CC=$ac_cv_prog_CC
3057 if test -n "$CC"; then
3058 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059 printf '%s\n' "$CC" >&6; }
3060 else
3061 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062 printf '%s\n' "no" >&6; }
3063 fi
3064
3065
3066 fi
3067 if test -z "$ac_cv_prog_CC"; then
3068 ac_ct_CC=$CC
3069 # Extract the first word of "clang", so it can be a program name with args.
3070 set dummy clang; ac_word=$2
3071 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072 printf %s "checking for $ac_word... " >&6; }
3073 if test ${ac_cv_prog_ac_ct_CC+y}
3074 then :
3075 printf %s "(cached) " >&6
3076 else case e in #(
3077 e) if test -n "$ac_ct_CC"; then
3078 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3079 else
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 for as_dir in $PATH
3082 do
3083 IFS=$as_save_IFS
3084 case $as_dir in #(((
3085 '') as_dir=./ ;;
3086 */) ;;
3087 *) as_dir=$as_dir/ ;;
3088 esac
3089 for ac_exec_ext in '' $ac_executable_extensions; do
3090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3091 ac_cv_prog_ac_ct_CC="clang"
3092 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3093 break 2
3094 fi
3095 done
3096 done
3097 IFS=$as_save_IFS
3098
3099 fi ;;
3100 esac
3101 fi
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105 printf '%s\n' "$ac_ct_CC" >&6; }
3106 else
3107 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 printf '%s\n' "no" >&6; }
3109 fi
3110
3111 if test "x$ac_ct_CC" = x; then
3112 CC=""
3113 else
3114 case $cross_compiling:$ac_tool_warned in
3115 yes:)
3116 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118 ac_tool_warned=yes ;;
3119 esac
3120 CC=$ac_ct_CC
3121 fi
3122 else
3123 CC="$ac_cv_prog_CC"
3124 fi
3125
3126 fi
3127
3128
3129 test -z "$CC" && { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3130 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3131 as_fn_error $? "no acceptable C compiler found in \$PATH
3132 See 'config.log' for more details" "$LINENO" 5; }
3133
3134 # Provide some information about the compiler.
3135 printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3136 set X $ac_compile
3137 ac_compiler=$2
3138 for ac_option in --version -v -V -qversion -version; do
3139 { { ac_try="$ac_compiler $ac_option >&5"
3140 case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3143 esac
3144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3145 printf '%s\n' "$ac_try_echo"; } >&5
3146 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3147 ac_status=$?
3148 if test -s conftest.err; then
3149 sed '10a\
3150 ... rest of stderr output deleted ...
3151 10q' conftest.err >conftest.er1
3152 cat conftest.er1 >&5
3153 fi
3154 rm -f conftest.er1 conftest.err
3155 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156 test $ac_status = 0; }
3157 done
3158
3159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3160 /* end confdefs.h. */
3161
3162 int
3163 main (void)
3164 {
3165
3166 ;
3167 return 0;
3168 }
3169 _ACEOF
3170 ac_clean_files_save=$ac_clean_files
3171 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3172 # Try to create an executable without -o first, disregard a.out.
3173 # It will help us diagnose broken compilers, and finding out an intuition
3174 # of exeext.
3175 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3176 printf %s "checking whether the C compiler works... " >&6; }
3177 ac_link_default=`printf '%s\n' "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3178
3179 # The possible output files:
3180 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3181
3182 ac_rmfiles=
3183 for ac_file in $ac_files
3184 do
3185 case $ac_file in
3186 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3187 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3188 esac
3189 done
3190 rm -f $ac_rmfiles
3191
3192 if { { ac_try="$ac_link_default"
3193 case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3196 esac
3197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 printf '%s\n' "$ac_try_echo"; } >&5
3199 (eval "$ac_link_default") 2>&5
3200 ac_status=$?
3201 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }
3203 then :
3204 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3205 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3206 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3207 # so that the user can short-circuit this test for compilers unknown to
3208 # Autoconf.
3209 for ac_file in $ac_files ''
3210 do
3211 test -f "$ac_file" || continue
3212 case $ac_file in
3213 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3214 ;;
3215 [ab].out )
3216 # We found the default executable, but exeext='' is most
3217 # certainly right.
3218 break;;
3219 *.* )
3220 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3221 then :; else
3222 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3223 fi
3224 # We set ac_cv_exeext here because the later test for it is not
3225 # safe: cross compilers may not add the suffix if given an '-o'
3226 # argument, so we may need to know it at that point already.
3227 # Even if this section looks crufty: it has the advantage of
3228 # actually working.
3229 break;;
3230 * )
3231 break;;
3232 esac
3233 done
3234 test "$ac_cv_exeext" = no && ac_cv_exeext=
3235
3236 else case e in #(
3237 e) ac_file='' ;;
3238 esac
3239 fi
3240 if test -z "$ac_file"
3241 then :
3242 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 printf '%s\n' "no" >&6; }
3244 printf '%s\n' "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3246
3247 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3248 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3249 as_fn_error 77 "C compiler cannot create executables
3250 See 'config.log' for more details" "$LINENO" 5; }
3251 else case e in #(
3252 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253 printf '%s\n' "yes" >&6; } ;;
3254 esac
3255 fi
3256 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3257 printf %s "checking for C compiler default output file name... " >&6; }
3258 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3259 printf '%s\n' "$ac_file" >&6; }
3260 ac_exeext=$ac_cv_exeext
3261
3262 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3263 ac_clean_files=$ac_clean_files_save
3264 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3265 printf %s "checking for suffix of executables... " >&6; }
3266 if { { ac_try="$ac_link"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 printf '%s\n' "$ac_try_echo"; } >&5
3273 (eval "$ac_link") 2>&5
3274 ac_status=$?
3275 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }
3277 then :
3278 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3279 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3280 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3281 # 'rm'.
3282 for ac_file in conftest.exe conftest conftest.*; do
3283 test -f "$ac_file" || continue
3284 case $ac_file in
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3286 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3287 break;;
3288 * ) break;;
3289 esac
3290 done
3291 else case e in #(
3292 e) { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3293 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3294 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3295 See 'config.log' for more details" "$LINENO" 5; } ;;
3296 esac
3297 fi
3298 rm -f conftest conftest$ac_cv_exeext
3299 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3300 printf '%s\n' "$ac_cv_exeext" >&6; }
3301
3302 rm -f conftest.$ac_ext
3303 EXEEXT=$ac_cv_exeext
3304 ac_exeext=$EXEEXT
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3307 #include <stdio.h>
3308 int
3309 main (void)
3310 {
3311 FILE *f = fopen ("conftest.out", "w");
3312 if (!f)
3313 return 1;
3314 return ferror (f) || fclose (f) != 0;
3315
3316 ;
3317 return 0;
3318 }
3319 _ACEOF
3320 ac_clean_files="$ac_clean_files conftest.out"
3321 # Check that the compiler produces executables we can run. If not, either
3322 # the compiler is broken, or we cross compile.
3323 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3324 printf %s "checking whether we are cross compiling... " >&6; }
3325 if test "$cross_compiling" != yes; then
3326 { { ac_try="$ac_link"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 printf '%s\n' "$ac_try_echo"; } >&5
3333 (eval "$ac_link") 2>&5
3334 ac_status=$?
3335 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }
3337 if { ac_try='./conftest$ac_cv_exeext'
3338 { { case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3343 printf '%s\n' "$ac_try_echo"; } >&5
3344 (eval "$ac_try") 2>&5
3345 ac_status=$?
3346 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3347 test $ac_status = 0; }; }; then
3348 cross_compiling=no
3349 else
3350 if test "$cross_compiling" = maybe; then
3351 cross_compiling=yes
3352 else
3353 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3354 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3355 as_fn_error 77 "cannot run C compiled programs.
3356 If you meant to cross compile, use '--host'.
3357 See 'config.log' for more details" "$LINENO" 5; }
3358 fi
3359 fi
3360 fi
3361 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3362 printf '%s\n' "$cross_compiling" >&6; }
3363
3364 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3365 conftest.o conftest.obj conftest.out
3366 ac_clean_files=$ac_clean_files_save
3367 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3368 printf %s "checking for suffix of object files... " >&6; }
3369 if test ${ac_cv_objext+y}
3370 then :
3371 printf %s "(cached) " >&6
3372 else case e in #(
3373 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374 /* end confdefs.h. */
3375
3376 int
3377 main (void)
3378 {
3379
3380 ;
3381 return 0;
3382 }
3383 _ACEOF
3384 rm -f conftest.o conftest.obj
3385 if { { ac_try="$ac_compile"
3386 case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389 esac
3390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391 printf '%s\n' "$ac_try_echo"; } >&5
3392 (eval "$ac_compile") 2>&5
3393 ac_status=$?
3394 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }
3396 then :
3397 for ac_file in conftest.o conftest.obj conftest.*; do
3398 test -f "$ac_file" || continue;
3399 case $ac_file in
3400 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3401 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3402 break;;
3403 esac
3404 done
3405 else case e in #(
3406 e) printf '%s\n' "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3410 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
3411 as_fn_error $? "cannot compute suffix of object files: cannot compile
3412 See 'config.log' for more details" "$LINENO" 5; } ;;
3413 esac
3414 fi
3415 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3416 esac
3417 fi
3418 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3419 printf '%s\n' "$ac_cv_objext" >&6; }
3420 OBJEXT=$ac_cv_objext
3421 ac_objext=$OBJEXT
3422 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3423 printf %s "checking whether the compiler supports GNU C... " >&6; }
3424 if test ${ac_cv_c_compiler_gnu+y}
3425 then :
3426 printf %s "(cached) " >&6
3427 else case e in #(
3428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3429 /* end confdefs.h. */
3430
3431 int
3432 main (void)
3433 {
3434 #ifndef __GNUC__
3435 choke me
3436 #endif
3437
3438 ;
3439 return 0;
3440 }
3441 _ACEOF
3442 if ac_fn_c_try_compile "$LINENO"
3443 then :
3444 ac_compiler_gnu=yes
3445 else case e in #(
3446 e) ac_compiler_gnu=no ;;
3447 esac
3448 fi
3449 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3451 ;;
3452 esac
3453 fi
3454 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3455 printf '%s\n' "$ac_cv_c_compiler_gnu" >&6; }
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457
3458 if test $ac_compiler_gnu = yes; then
3459 GCC=yes
3460 else
3461 GCC=
3462 fi
3463 ac_test_CFLAGS=${CFLAGS+y}
3464 ac_save_CFLAGS=$CFLAGS
3465 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3466 printf %s "checking whether $CC accepts -g... " >&6; }
3467 if test ${ac_cv_prog_cc_g+y}
3468 then :
3469 printf %s "(cached) " >&6
3470 else case e in #(
3471 e) ac_save_c_werror_flag=$ac_c_werror_flag
3472 ac_c_werror_flag=yes
3473 ac_cv_prog_cc_g=no
3474 CFLAGS="-g"
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476 /* end confdefs.h. */
3477
3478 int
3479 main (void)
3480 {
3481
3482 ;
3483 return 0;
3484 }
3485 _ACEOF
3486 if ac_fn_c_try_compile "$LINENO"
3487 then :
3488 ac_cv_prog_cc_g=yes
3489 else case e in #(
3490 e) CFLAGS=""
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3493
3494 int
3495 main (void)
3496 {
3497
3498 ;
3499 return 0;
3500 }
3501 _ACEOF
3502 if ac_fn_c_try_compile "$LINENO"
3503 then :
3504
3505 else case e in #(
3506 e) ac_c_werror_flag=$ac_save_c_werror_flag
3507 CFLAGS="-g"
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3510
3511 int
3512 main (void)
3513 {
3514
3515 ;
3516 return 0;
3517 }
3518 _ACEOF
3519 if ac_fn_c_try_compile "$LINENO"
3520 then :
3521 ac_cv_prog_cc_g=yes
3522 fi
3523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3524 esac
3525 fi
3526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3527 esac
3528 fi
3529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3530 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3531 esac
3532 fi
3533 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3534 printf '%s\n' "$ac_cv_prog_cc_g" >&6; }
3535 if test $ac_test_CFLAGS; then
3536 CFLAGS=$ac_save_CFLAGS
3537 elif test $ac_cv_prog_cc_g = yes; then
3538 if test "$GCC" = yes; then
3539 CFLAGS="-g -O2"
3540 else
3541 CFLAGS="-g"
3542 fi
3543 else
3544 if test "$GCC" = yes; then
3545 CFLAGS="-O2"
3546 else
3547 CFLAGS=
3548 fi
3549 fi
3550 ac_prog_cc_stdc=no
3551 if test x$ac_prog_cc_stdc = xno
3552 then :
3553 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C23 features" >&5
3554 printf %s "checking for $CC option to enable C23 features... " >&6; }
3555 if test ${ac_cv_prog_cc_c23+y}
3556 then :
3557 printf %s "(cached) " >&6
3558 else case e in #(
3559 e) ac_cv_prog_cc_c23=no
3560 ac_save_CC=$CC
3561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3562 /* end confdefs.h. */
3563 $ac_c_conftest_c23_program
3564 _ACEOF
3565 for ac_arg in '' -std=gnu23
3566 do
3567 CC="$ac_save_CC $ac_arg"
3568 if ac_fn_c_try_compile "$LINENO"
3569 then :
3570 ac_cv_prog_cc_c23=$ac_arg
3571 fi
3572 rm -f core conftest.err conftest.$ac_objext conftest.beam
3573 test "x$ac_cv_prog_cc_c23" != "xno" && break
3574 done
3575 rm -f conftest.$ac_ext
3576 CC=$ac_save_CC ;;
3577 esac
3578 fi
3579
3580 if test "x$ac_cv_prog_cc_c23" = xno
3581 then :
3582 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3583 printf '%s\n' "unsupported" >&6; }
3584 else case e in #(
3585 e) if test "x$ac_cv_prog_cc_c23" = x
3586 then :
3587 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3588 printf '%s\n' "none needed" >&6; }
3589 else case e in #(
3590 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c23" >&5
3591 printf '%s\n' "$ac_cv_prog_cc_c23" >&6; }
3592 CC="$CC $ac_cv_prog_cc_c23" ;;
3593 esac
3594 fi
3595 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c23
3596 ac_prog_cc_stdc=c23 ;;
3597 esac
3598 fi
3599 fi
3600 if test x$ac_prog_cc_stdc = xno
3601 then :
3602 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3603 printf %s "checking for $CC option to enable C11 features... " >&6; }
3604 if test ${ac_cv_prog_cc_c11+y}
3605 then :
3606 printf %s "(cached) " >&6
3607 else case e in #(
3608 e) ac_cv_prog_cc_c11=no
3609 ac_save_CC=$CC
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3612 $ac_c_conftest_c11_program
3613 _ACEOF
3614 for ac_arg in '' -std=gnu11 -std:c11
3615 do
3616 CC="$ac_save_CC $ac_arg"
3617 if ac_fn_c_try_compile "$LINENO"
3618 then :
3619 ac_cv_prog_cc_c11=$ac_arg
3620 fi
3621 rm -f core conftest.err conftest.$ac_objext conftest.beam
3622 test "x$ac_cv_prog_cc_c11" != "xno" && break
3623 done
3624 rm -f conftest.$ac_ext
3625 CC=$ac_save_CC ;;
3626 esac
3627 fi
3628
3629 if test "x$ac_cv_prog_cc_c11" = xno
3630 then :
3631 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3632 printf '%s\n' "unsupported" >&6; }
3633 else case e in #(
3634 e) if test "x$ac_cv_prog_cc_c11" = x
3635 then :
3636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3637 printf '%s\n' "none needed" >&6; }
3638 else case e in #(
3639 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3640 printf '%s\n' "$ac_cv_prog_cc_c11" >&6; }
3641 CC="$CC $ac_cv_prog_cc_c11" ;;
3642 esac
3643 fi
3644 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3645 ac_prog_cc_stdc=c11 ;;
3646 esac
3647 fi
3648 fi
3649 if test x$ac_prog_cc_stdc = xno
3650 then :
3651 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3652 printf %s "checking for $CC option to enable C99 features... " >&6; }
3653 if test ${ac_cv_prog_cc_c99+y}
3654 then :
3655 printf %s "(cached) " >&6
3656 else case e in #(
3657 e) ac_cv_prog_cc_c99=no
3658 ac_save_CC=$CC
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3661 $ac_c_conftest_c99_program
3662 _ACEOF
3663 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3664 do
3665 CC="$ac_save_CC $ac_arg"
3666 if ac_fn_c_try_compile "$LINENO"
3667 then :
3668 ac_cv_prog_cc_c99=$ac_arg
3669 fi
3670 rm -f core conftest.err conftest.$ac_objext conftest.beam
3671 test "x$ac_cv_prog_cc_c99" != "xno" && break
3672 done
3673 rm -f conftest.$ac_ext
3674 CC=$ac_save_CC ;;
3675 esac
3676 fi
3677
3678 if test "x$ac_cv_prog_cc_c99" = xno
3679 then :
3680 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3681 printf '%s\n' "unsupported" >&6; }
3682 else case e in #(
3683 e) if test "x$ac_cv_prog_cc_c99" = x
3684 then :
3685 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3686 printf '%s\n' "none needed" >&6; }
3687 else case e in #(
3688 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3689 printf '%s\n' "$ac_cv_prog_cc_c99" >&6; }
3690 CC="$CC $ac_cv_prog_cc_c99" ;;
3691 esac
3692 fi
3693 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3694 ac_prog_cc_stdc=c99 ;;
3695 esac
3696 fi
3697 fi
3698 if test x$ac_prog_cc_stdc = xno
3699 then :
3700 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3701 printf %s "checking for $CC option to enable C89 features... " >&6; }
3702 if test ${ac_cv_prog_cc_c89+y}
3703 then :
3704 printf %s "(cached) " >&6
3705 else case e in #(
3706 e) ac_cv_prog_cc_c89=no
3707 ac_save_CC=$CC
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710 $ac_c_conftest_c89_program
3711 _ACEOF
3712 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3713 do
3714 CC="$ac_save_CC $ac_arg"
3715 if ac_fn_c_try_compile "$LINENO"
3716 then :
3717 ac_cv_prog_cc_c89=$ac_arg
3718 fi
3719 rm -f core conftest.err conftest.$ac_objext conftest.beam
3720 test "x$ac_cv_prog_cc_c89" != "xno" && break
3721 done
3722 rm -f conftest.$ac_ext
3723 CC=$ac_save_CC ;;
3724 esac
3725 fi
3726
3727 if test "x$ac_cv_prog_cc_c89" = xno
3728 then :
3729 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3730 printf '%s\n' "unsupported" >&6; }
3731 else case e in #(
3732 e) if test "x$ac_cv_prog_cc_c89" = x
3733 then :
3734 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3735 printf '%s\n' "none needed" >&6; }
3736 else case e in #(
3737 e) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3738 printf '%s\n' "$ac_cv_prog_cc_c89" >&6; }
3739 CC="$CC $ac_cv_prog_cc_c89" ;;
3740 esac
3741 fi
3742 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3743 ac_prog_cc_stdc=c89 ;;
3744 esac
3745 fi
3746 fi
3747
3748 ac_ext=c
3749 ac_cpp='$CPP $CPPFLAGS'
3750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753
3754
3755 ac_ext=c
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3760 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3761 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3762 if test ${am_cv_prog_cc_c_o+y}
3763 then :
3764 printf %s "(cached) " >&6
3765 else case e in #(
3766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3768
3769 int
3770 main (void)
3771 {
3772
3773 ;
3774 return 0;
3775 }
3776 _ACEOF
3777 # Make sure it works both with $CC and with simple cc.
3778 # Following AC_PROG_CC_C_O, we do the test twice because some
3779 # compilers refuse to overwrite an existing .o file with -o,
3780 # though they will create one.
3781 am_cv_prog_cc_c_o=yes
3782 for am_i in 1 2; do
3783 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3784 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3785 ac_status=$?
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } \
3788 && test -f conftest2.$ac_objext; then
3789 : OK
3790 else
3791 am_cv_prog_cc_c_o=no
3792 break
3793 fi
3794 done
3795 # aligned with autoconf, so not including core; see bug#72225.
3796 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
3797 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
3798 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
3799 unset am_i ;;
3800 esac
3801 fi
3802 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3803 printf '%s\n' "$am_cv_prog_cc_c_o" >&6; }
3804 if test "$am_cv_prog_cc_c_o" != yes; then
3805 # Losing compiler, so override with the script.
3806 # FIXME: It is wrong to rewrite CC.
3807 # But if we don't then we get into trouble of one sort or another.
3808 # A longer-term fix would be to have automake use am__CC in this case,
3809 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3810 CC="$am_aux_dir/compile $CC"
3811 fi
3812 ac_ext=c
3813 ac_cpp='$CPP $CPPFLAGS'
3814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3817
3818
3819
3820 ac_header= ac_cache=
3821 for ac_item in $ac_header_c_list
3822 do
3823 if test $ac_cache; then
3824 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3825 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3826 printf '%s\n' "#define $ac_item 1" >> confdefs.h
3827 fi
3828 ac_header= ac_cache=
3829 elif test $ac_header; then
3830 ac_cache=$ac_item
3831 else
3832 ac_header=$ac_item
3833 fi
3834 done
3835
3836
3837
3838
3839
3840
3841
3842
3843 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3844 then :
3845
3846 printf '%s\n' "#define STDC_HEADERS 1" >>confdefs.h
3847
3848 fi
3849
3850
3851
3852
3853
3854
3855 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3856 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3857 if test ${ac_cv_safe_to_define___extensions__+y}
3858 then :
3859 printf %s "(cached) " >&6
3860 else case e in #(
3861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3863
3864 # define __EXTENSIONS__ 1
3865 $ac_includes_default
3866 int
3867 main (void)
3868 {
3869
3870 ;
3871 return 0;
3872 }
3873 _ACEOF
3874 if ac_fn_c_try_compile "$LINENO"
3875 then :
3876 ac_cv_safe_to_define___extensions__=yes
3877 else case e in #(
3878 e) ac_cv_safe_to_define___extensions__=no ;;
3879 esac
3880 fi
3881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3882 esac
3883 fi
3884 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3885 printf '%s\n' "$ac_cv_safe_to_define___extensions__" >&6; }
3886
3887 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3888 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3889 if test ${ac_cv_should_define__xopen_source+y}
3890 then :
3891 printf %s "(cached) " >&6
3892 else case e in #(
3893 e) ac_cv_should_define__xopen_source=no
3894 if test $ac_cv_header_wchar_h = yes
3895 then :
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3898
3899 #include <wchar.h>
3900 mbstate_t x;
3901 int
3902 main (void)
3903 {
3904
3905 ;
3906 return 0;
3907 }
3908 _ACEOF
3909 if ac_fn_c_try_compile "$LINENO"
3910 then :
3911
3912 else case e in #(
3913 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3914 /* end confdefs.h. */
3915
3916 #define _XOPEN_SOURCE 500
3917 #include <wchar.h>
3918 mbstate_t x;
3919 int
3920 main (void)
3921 {
3922
3923 ;
3924 return 0;
3925 }
3926 _ACEOF
3927 if ac_fn_c_try_compile "$LINENO"
3928 then :
3929 ac_cv_should_define__xopen_source=yes
3930 fi
3931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3932 esac
3933 fi
3934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3935 fi ;;
3936 esac
3937 fi
3938 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3939 printf '%s\n' "$ac_cv_should_define__xopen_source" >&6; }
3940
3941 printf '%s\n' "#define _ALL_SOURCE 1" >>confdefs.h
3942
3943 printf '%s\n' "#define _COSMO_SOURCE 1" >>confdefs.h
3944
3945 printf '%s\n' "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3946
3947 printf '%s\n' "#define _GNU_SOURCE 1" >>confdefs.h
3948
3949 printf '%s\n' "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3950
3951 printf '%s\n' "#define _NETBSD_SOURCE 1" >>confdefs.h
3952
3953 printf '%s\n' "#define _OPENBSD_SOURCE 1" >>confdefs.h
3954
3955 printf '%s\n' "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3956
3957 printf '%s\n' "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3958
3959 printf '%s\n' "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3960
3961 printf '%s\n' "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3962
3963 printf '%s\n' "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3964
3965 printf '%s\n' "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3966
3967 printf '%s\n' "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3968
3969 printf '%s\n' "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3970
3971 printf '%s\n' "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3972
3973 printf '%s\n' "#define _TANDEM_SOURCE 1" >>confdefs.h
3974
3975 if test $ac_cv_header_minix_config_h = yes
3976 then :
3977 MINIX=yes
3978 printf '%s\n' "#define _MINIX 1" >>confdefs.h
3979
3980 printf '%s\n' "#define _POSIX_SOURCE 1" >>confdefs.h
3981
3982 printf '%s\n' "#define _POSIX_1_SOURCE 2" >>confdefs.h
3983
3984 else case e in #(
3985 e) MINIX= ;;
3986 esac
3987 fi
3988 if test $ac_cv_safe_to_define___extensions__ = yes
3989 then :
3990 printf '%s\n' "#define __EXTENSIONS__ 1" >>confdefs.h
3991
3992 fi
3993 if test $ac_cv_should_define__xopen_source = yes
3994 then :
3995 printf '%s\n' "#define _XOPEN_SOURCE 500" >>confdefs.h
3996
3997 fi
3998
3999
4000 # Initialize Automake
4001 am__api_version='1.18'
4002
4003
4004 # Find a good install program. We prefer a C program (faster),
4005 # so one script is as good as another. But avoid the broken or
4006 # incompatible versions:
4007 # SysV /etc/install, /usr/sbin/install
4008 # SunOS /usr/etc/install
4009 # IRIX /sbin/install
4010 # AIX /bin/install
4011 # AmigaOS /C/install, which installs bootblocks on floppy discs
4012 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4013 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4014 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4015 # OS/2's system install, which has a completely different semantic
4016 # ./install, which can be erroneously created by make from ./install.sh.
4017 # Reject install programs that cannot install multiple files.
4018 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4019 printf %s "checking for a BSD-compatible install... " >&6; }
4020 if test -z "$INSTALL"; then
4021 if test ${ac_cv_path_install+y}
4022 then :
4023 printf %s "(cached) " >&6
4024 else case e in #(
4025 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4027 do
4028 IFS=$as_save_IFS
4029 case $as_dir in #(((
4030 '') as_dir=./ ;;
4031 */) ;;
4032 *) as_dir=$as_dir/ ;;
4033 esac
4034 # Account for fact that we put trailing slashes in our PATH walk.
4035 case $as_dir in #((
4036 ./ | /[cC]/* | \
4037 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4038 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4039 /usr/ucb/* ) ;;
4040 *)
4041 # OSF/1 and SCO ODT 3.0 have their own names for install.
4042 # Don't use installbsd from OSF/1 since it installs stuff as root
4043 # by default.
4044 for ac_prog in ginstall scoinst install; do
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4047 if test $ac_prog = install &&
4048 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4049 # AIX install. It has an incompatible calling convention.
4050 :
4051 elif test $ac_prog = install &&
4052 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4053 # program-specific install script used by HP pwplus--don't use.
4054 :
4055 else
4056 rm -rf conftest.one conftest.two conftest.dir
4057 echo one > conftest.one
4058 echo two > conftest.two
4059 mkdir conftest.dir
4060 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4061 test -s conftest.one && test -s conftest.two &&
4062 test -s conftest.dir/conftest.one &&
4063 test -s conftest.dir/conftest.two
4064 then
4065 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4066 break 3
4067 fi
4068 fi
4069 fi
4070 done
4071 done
4072 ;;
4073 esac
4074
4075 done
4076 IFS=$as_save_IFS
4077
4078 rm -rf conftest.one conftest.two conftest.dir
4079 ;;
4080 esac
4081 fi
4082 if test ${ac_cv_path_install+y}; then
4083 INSTALL=$ac_cv_path_install
4084 else
4085 # As a last resort, use the slow shell script. Don't cache a
4086 # value for INSTALL within a source directory, because that will
4087 # break other packages using the cache if that directory is
4088 # removed, or if the value is a relative name.
4089 INSTALL=$ac_install_sh
4090 fi
4091 fi
4092 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4093 printf '%s\n' "$INSTALL" >&6; }
4094
4095 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4096 # It thinks the first close brace ends the variable substitution.
4097 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4098
4099 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4100
4101 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4102
4103 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4104 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4105 if test ${am_cv_sleep_fractional_seconds+y}
4106 then :
4107 printf %s "(cached) " >&6
4108 else case e in #(
4109 e) if sleep 0.001 2>/dev/null
4110 then :
4111 am_cv_sleep_fractional_seconds=yes
4112 else case e in #(
4113 e) am_cv_sleep_fractional_seconds=no ;;
4114 esac
4115 fi
4116 ;;
4117 esac
4118 fi
4119 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4120 printf '%s\n' "$am_cv_sleep_fractional_seconds" >&6; }
4121
4122 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4123 printf %s "checking filesystem timestamp resolution... " >&6; }
4124 if test ${am_cv_filesystem_timestamp_resolution+y}
4125 then :
4126 printf %s "(cached) " >&6
4127 else case e in #(
4128 e) # Default to the worst case.
4129 am_cv_filesystem_timestamp_resolution=2
4130
4131 # Only try to go finer than 1 sec if sleep can do it.
4132 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4133 # - 1 sec is not much of a win compared to 2 sec, and
4134 # - it takes 2 seconds to perform the test whether 1 sec works.
4135 #
4136 # Instead, just use the default 2s on platforms that have 1s resolution,
4137 # accept the extra 1s delay when using $sleep in the Automake tests, in
4138 # exchange for not incurring the 2s delay for running the test for all
4139 # packages.
4140 #
4141 am_try_resolutions=
4142 if test "$am_cv_sleep_fractional_seconds" = yes; then
4143 # Even a millisecond often causes a bunch of false positives,
4144 # so just try a hundredth of a second. The time saved between .001 and
4145 # .01 is not terribly consequential.
4146 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4147 fi
4148
4149 # In order to catch current-generation FAT out, we must *modify* files
4150 # that already exist; the *creation* timestamp is finer. Use names
4151 # that make ls -t sort them differently when they have equal
4152 # timestamps than when they have distinct timestamps, keeping
4153 # in mind that ls -t prints the *newest* file first.
4154 rm -f conftest.ts?
4155 : > conftest.ts1
4156 : > conftest.ts2
4157 : > conftest.ts3
4158
4159 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4160 # clobber the current shell's arguments. (Outer-level square brackets
4161 # are removed by m4; they're present so that m4 does not expand
4162 # <dollar><star>; be careful, easy to get confused.)
4163 if (
4164 set X `ls -t conftest.ts[12]` &&
4165 {
4166 test "$*" != "X conftest.ts1 conftest.ts2" ||
4167 test "$*" != "X conftest.ts2 conftest.ts1";
4168 }
4169 ); then :; else
4170 # If neither matched, then we have a broken ls. This can happen
4171 # if, for instance, CONFIG_SHELL is bash and it inherits a
4172 # broken ls alias from the environment. This has actually
4173 # happened. Such a system could not be considered "sane".
4174 printf '%s\n' ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4175 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4176 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
4177 as_fn_error $? "ls -t produces unexpected output.
4178 Make sure there is not a broken ls alias in your environment.
4179 See 'config.log' for more details" "$LINENO" 5; }
4180 fi
4181
4182 for am_try_res in $am_try_resolutions; do
4183 # Any one fine-grained sleep might happen to cross the boundary
4184 # between two values of a coarser actual resolution, but if we do
4185 # two fine-grained sleeps in a row, at least one of them will fall
4186 # entirely within a coarse interval.
4187 echo alpha > conftest.ts1
4188 sleep $am_try_res
4189 echo beta > conftest.ts2
4190 sleep $am_try_res
4191 echo gamma > conftest.ts3
4192
4193 # We assume that 'ls -t' will make use of high-resolution
4194 # timestamps if the operating system supports them at all.
4195 if (set X `ls -t conftest.ts?` &&
4196 test "$2" = conftest.ts3 &&
4197 test "$3" = conftest.ts2 &&
4198 test "$4" = conftest.ts1); then
4199 #
4200 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4201 # because we don't need to test make.
4202 make_ok=true
4203 if test $am_try_res != 1; then
4204 # But if we've succeeded so far with a subsecond resolution, we
4205 # have one more thing to check: make. It can happen that
4206 # everything else supports the subsecond mtimes, but make doesn't;
4207 # notably on macOS, which ships make 3.81 from 2006 (the last one
4208 # released under GPLv2). https://bugs.gnu.org/68808
4209 #
4210 # We test $MAKE if it is defined in the environment, else "make".
4211 # It might get overridden later, but our hope is that in practice
4212 # it does not matter: it is the system "make" which is (by far)
4213 # the most likely to be broken, whereas if the user overrides it,
4214 # probably they did so with a better, or at least not worse, make.
4215 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4216 #
4217 # Create a Makefile (real tab character here):
4218 rm -f conftest.mk
4219 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4220 echo ' touch conftest.ts2' >>conftest.mk
4221 #
4222 # Now, running
4223 # touch conftest.ts1; touch conftest.ts2; make
4224 # should touch ts1 because ts2 is newer. This could happen by luck,
4225 # but most often, it will fail if make's support is insufficient. So
4226 # test for several consecutive successes.
4227 #
4228 # (We reuse conftest.ts[12] because we still want to modify existing
4229 # files, not create new ones, per above.)
4230 n=0
4231 make=${MAKE-make}
4232 until test $n -eq 3; do
4233 echo one > conftest.ts1
4234 sleep $am_try_res
4235 echo two > conftest.ts2 # ts2 should now be newer than ts1
4236 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4237 make_ok=false
4238 break # out of $n loop
4239 fi
4240 n=`expr $n + 1`
4241 done
4242 fi
4243 #
4244 if $make_ok; then
4245 # Everything we know to check worked out, so call this resolution good.
4246 am_cv_filesystem_timestamp_resolution=$am_try_res
4247 break # out of $am_try_res loop
4248 fi
4249 # Otherwise, we'll go on to check the next resolution.
4250 fi
4251 done
4252 rm -f conftest.ts?
4253 # (end _am_filesystem_timestamp_resolution)
4254 ;;
4255 esac
4256 fi
4257 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4258 printf '%s\n' "$am_cv_filesystem_timestamp_resolution" >&6; }
4259
4260 # This check should not be cached, as it may vary across builds of
4261 # different projects.
4262 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4263 printf %s "checking whether build environment is sane... " >&6; }
4264 # Reject unsafe characters in $srcdir or the absolute working directory
4265 # name. Accept space and tab only in the latter.
4266 am_lf='
4267 '
4268 case `pwd` in
4269 *[\\\"\#\$\&\'\`$am_lf]*)
4270 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4271 printf '%s\n' "no" >&6; }
4272 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4273 esac
4274 case $srcdir in
4275 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4276 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 printf '%s\n' "no" >&6; }
4278 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4279 esac
4280
4281 # Do 'set' in a subshell so we don't clobber the current shell's
4282 # arguments. Must try -L first in case configure is actually a
4283 # symlink; some systems play weird games with the mod time of symlinks
4284 # (eg FreeBSD returns the mod time of the symlink's containing
4285 # directory).
4286 am_build_env_is_sane=no
4287 am_has_slept=no
4288 rm -f conftest.file
4289 for am_try in 1 2; do
4290 echo "timestamp, slept: $am_has_slept" > conftest.file
4291 if (
4292 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4293 if test "$*" = "X"; then
4294 # -L didn't work.
4295 set X `ls -t "$srcdir/configure" conftest.file`
4296 fi
4297 test "$2" = conftest.file
4298 ); then
4299 am_build_env_is_sane=yes
4300 break
4301 fi
4302 # Just in case.
4303 sleep "$am_cv_filesystem_timestamp_resolution"
4304 am_has_slept=yes
4305 done
4306
4307 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4308 printf '%s\n' "$am_build_env_is_sane" >&6; }
4309 if test "$am_build_env_is_sane" = no; then
4310 as_fn_error $? "newly created file is older than distributed files!
4311 Check your system clock" "$LINENO" 5
4312 fi
4313
4314 # If we didn't sleep, we still need to ensure time stamps of config.status and
4315 # generated files are strictly newer.
4316 am_sleep_pid=
4317 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4318 then :
4319
4320 else case e in #(
4321 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4322 am_sleep_pid=$!
4323 ;;
4324 esac
4325 fi
4326
4327 rm -f conftest.file
4328
4329 test "$program_prefix" != NONE &&
4330 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4331 # Use a double $ so make ignores it.
4332 test "$program_suffix" != NONE &&
4333 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4334 # Double any \ or $.
4335 # By default was 's,x,x', remove it if useless.
4336 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4337 program_transform_name=`printf '%s\n' "$program_transform_name" | sed "$ac_script"`
4338
4339
4340 if test x"${MISSING+set}" != xset; then
4341 MISSING="\${SHELL} '$am_aux_dir/missing'"
4342 fi
4343 # Use eval to expand $SHELL
4344 if eval "$MISSING --is-lightweight"; then
4345 am_missing_run="$MISSING "
4346 else
4347 am_missing_run=
4348 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4349 printf '%s\n' "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4350 fi
4351
4352 if test x"${install_sh+set}" != xset; then
4353 case $am_aux_dir in
4354 *\ * | *\ *)
4355 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4356 *)
4357 install_sh="\${SHELL} $am_aux_dir/install-sh"
4358 esac
4359 fi
4360
4361 # Installed binaries are usually stripped using 'strip' when the user
4362 # run "make install-strip". However 'strip' might not be the right
4363 # tool to use in cross-compilation environments, therefore Automake
4364 # will honor the 'STRIP' environment variable to overrule this program.
4365 if test "$cross_compiling" != no; then
4366 if test -n "$ac_tool_prefix"; then
4367 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4368 set dummy ${ac_tool_prefix}strip; ac_word=$2
4369 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4370 printf %s "checking for $ac_word... " >&6; }
4371 if test ${ac_cv_prog_STRIP+y}
4372 then :
4373 printf %s "(cached) " >&6
4374 else case e in #(
4375 e) if test -n "$STRIP"; then
4376 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4377 else
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 for as_dir in $PATH
4380 do
4381 IFS=$as_save_IFS
4382 case $as_dir in #(((
4383 '') as_dir=./ ;;
4384 */) ;;
4385 *) as_dir=$as_dir/ ;;
4386 esac
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4389 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4390 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4391 break 2
4392 fi
4393 done
4394 done
4395 IFS=$as_save_IFS
4396
4397 fi ;;
4398 esac
4399 fi
4400 STRIP=$ac_cv_prog_STRIP
4401 if test -n "$STRIP"; then
4402 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4403 printf '%s\n' "$STRIP" >&6; }
4404 else
4405 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 printf '%s\n' "no" >&6; }
4407 fi
4408
4409
4410 fi
4411 if test -z "$ac_cv_prog_STRIP"; then
4412 ac_ct_STRIP=$STRIP
4413 # Extract the first word of "strip", so it can be a program name with args.
4414 set dummy strip; ac_word=$2
4415 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4416 printf %s "checking for $ac_word... " >&6; }
4417 if test ${ac_cv_prog_ac_ct_STRIP+y}
4418 then :
4419 printf %s "(cached) " >&6
4420 else case e in #(
4421 e) if test -n "$ac_ct_STRIP"; then
4422 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4426 do
4427 IFS=$as_save_IFS
4428 case $as_dir in #(((
4429 '') as_dir=./ ;;
4430 */) ;;
4431 *) as_dir=$as_dir/ ;;
4432 esac
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4435 ac_cv_prog_ac_ct_STRIP="strip"
4436 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4437 break 2
4438 fi
4439 done
4440 done
4441 IFS=$as_save_IFS
4442
4443 fi ;;
4444 esac
4445 fi
4446 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4447 if test -n "$ac_ct_STRIP"; then
4448 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4449 printf '%s\n' "$ac_ct_STRIP" >&6; }
4450 else
4451 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4452 printf '%s\n' "no" >&6; }
4453 fi
4454
4455 if test "x$ac_ct_STRIP" = x; then
4456 STRIP=":"
4457 else
4458 case $cross_compiling:$ac_tool_warned in
4459 yes:)
4460 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4461 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4462 ac_tool_warned=yes ;;
4463 esac
4464 STRIP=$ac_ct_STRIP
4465 fi
4466 else
4467 STRIP="$ac_cv_prog_STRIP"
4468 fi
4469
4470 fi
4471 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4472
4473
4474 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4475 printf %s "checking for a race-free mkdir -p... " >&6; }
4476 if test -z "$MKDIR_P"; then
4477 if test ${ac_cv_path_mkdir+y}
4478 then :
4479 printf %s "(cached) " >&6
4480 else case e in #(
4481 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4483 do
4484 IFS=$as_save_IFS
4485 case $as_dir in #(((
4486 '') as_dir=./ ;;
4487 */) ;;
4488 *) as_dir=$as_dir/ ;;
4489 esac
4490 for ac_prog in mkdir gmkdir; do
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4493 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4494 'mkdir ('*'coreutils) '* | \
4495 *'BusyBox '* | \
4496 'mkdir (fileutils) '4.1*)
4497 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4498 break 3;;
4499 esac
4500 done
4501 done
4502 done
4503 IFS=$as_save_IFS
4504 ;;
4505 esac
4506 fi
4507
4508 test -d ./--version && rmdir ./--version
4509 if test ${ac_cv_path_mkdir+y}; then
4510 MKDIR_P="$ac_cv_path_mkdir -p"
4511 else
4512 # As a last resort, use plain mkdir -p,
4513 # in the hope it doesn't have the bugs of ancient mkdir.
4514 MKDIR_P='mkdir -p'
4515 fi
4516 fi
4517 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4518 printf '%s\n' "$MKDIR_P" >&6; }
4519
4520 for ac_prog in gawk mawk nawk awk 'busybox awk'
4521 do
4522 # Extract the first word of "$ac_prog", so it can be a program name with args.
4523 set dummy $ac_prog; ac_word=$2
4524 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4525 printf %s "checking for $ac_word... " >&6; }
4526 if test ${ac_cv_prog_AWK+y}
4527 then :
4528 printf %s "(cached) " >&6
4529 else case e in #(
4530 e) if test -n "$AWK"; then
4531 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4535 do
4536 IFS=$as_save_IFS
4537 case $as_dir in #(((
4538 '') as_dir=./ ;;
4539 */) ;;
4540 *) as_dir=$as_dir/ ;;
4541 esac
4542 for ac_exec_ext in '' $ac_executable_extensions; do
4543 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4544 ac_cv_prog_AWK="$ac_prog"
4545 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548 done
4549 done
4550 IFS=$as_save_IFS
4551
4552 fi ;;
4553 esac
4554 fi
4555 AWK=$ac_cv_prog_AWK
4556 if test -n "$AWK"; then
4557 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4558 printf '%s\n' "$AWK" >&6; }
4559 else
4560 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4561 printf '%s\n' "no" >&6; }
4562 fi
4563
4564
4565 test -n "$AWK" && break
4566 done
4567
4568 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4569 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4570 set x ${MAKE-make}
4571 ac_make=`printf '%s\n' "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4572 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4573 then :
4574 printf %s "(cached) " >&6
4575 else case e in #(
4576 e) cat >conftest.make <<\_ACEOF
4577 SHELL = /bin/sh
4578 all:
4579 @printf '%s\n' '@@@%%%=$(MAKE)=@@@%%%'
4580 _ACEOF
4581 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4582 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4583 *@@@%%%=?*=@@@%%%*)
4584 eval ac_cv_prog_make_${ac_make}_set=yes;;
4585 *)
4586 eval ac_cv_prog_make_${ac_make}_set=no;;
4587 esac
4588 rm -f conftest.make ;;
4589 esac
4590 fi
4591 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4592 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4593 printf '%s\n' "yes" >&6; }
4594 SET_MAKE=
4595 else
4596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 printf '%s\n' "no" >&6; }
4598 SET_MAKE="MAKE=${MAKE-make}"
4599 fi
4600
4601 rm -rf .tst 2>/dev/null
4602 mkdir .tst 2>/dev/null
4603 if test -d .tst; then
4604 am__leading_dot=.
4605 else
4606 am__leading_dot=_
4607 fi
4608 rmdir .tst 2>/dev/null
4609
4610 DEPDIR="${am__leading_dot}deps"
4611
4612 ac_config_commands="$ac_config_commands depfiles"
4613
4614 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4615 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4616 cat > confinc.mk << 'END'
4617 am__doit:
4618 @echo this is the am__doit target >confinc.out
4619 .PHONY: am__doit
4620 END
4621 am__include="#"
4622 am__quote=
4623 # BSD make does it like this.
4624 echo '.include "confinc.mk" # ignored' > confmf.BSD
4625 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4626 echo 'include confinc.mk # ignored' > confmf.GNU
4627 _am_result=no
4628 for s in GNU BSD; do
4629 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4630 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }
4634 case $?:`cat confinc.out 2>/dev/null` in #(
4635 '0:this is the am__doit target') :
4636 case $s in #(
4637 BSD) :
4638 am__include='.include' am__quote='"' ;; #(
4639 *) :
4640 am__include='include' am__quote='' ;;
4641 esac ;; #(
4642 *) :
4643 ;;
4644 esac
4645 if test "$am__include" != "#"; then
4646 _am_result="yes ($s style)"
4647 break
4648 fi
4649 done
4650 rm -f confinc.* confmf.*
4651 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4652 printf '%s\n' "${_am_result}" >&6; }
4653
4654 # Check whether --enable-dependency-tracking was given.
4655 if test ${enable_dependency_tracking+y}
4656 then :
4657 enableval=$enable_dependency_tracking;
4658 fi
4659
4660 if test "x$enable_dependency_tracking" != xno; then
4661 am_depcomp="$ac_aux_dir/depcomp"
4662 AMDEPBACKSLASH='\'
4663 am__nodep='_no'
4664 fi
4665 if test "x$enable_dependency_tracking" != xno; then
4666 AMDEP_TRUE=
4667 AMDEP_FALSE='#'
4668 else
4669 AMDEP_TRUE='#'
4670 AMDEP_FALSE=
4671 fi
4672
4673
4674 AM_DEFAULT_VERBOSITY=1
4675 # Check whether --enable-silent-rules was given.
4676 if test ${enable_silent_rules+y}
4677 then :
4678 enableval=$enable_silent_rules;
4679 fi
4680
4681 am_make=${MAKE-make}
4682 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4683 printf %s "checking whether $am_make supports nested variables... " >&6; }
4684 if test ${am_cv_make_support_nested_variables+y}
4685 then :
4686 printf %s "(cached) " >&6
4687 else case e in #(
4688 e) if printf '%s\n' 'TRUE=$(BAR$(V))
4689 BAR0=false
4690 BAR1=true
4691 V=1
4692 am__doit:
4693 @$(TRUE)
4694 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4695 am_cv_make_support_nested_variables=yes
4696 else
4697 am_cv_make_support_nested_variables=no
4698 fi ;;
4699 esac
4700 fi
4701 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4702 printf '%s\n' "$am_cv_make_support_nested_variables" >&6; }
4703 AM_BACKSLASH='\'
4704
4705 am__rm_f_notfound=
4706 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4707 then :
4708
4709 else case e in #(
4710 e) am__rm_f_notfound='""' ;;
4711 esac
4712 fi
4713
4714
4715 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4716 printf %s "checking xargs -n works... " >&6; }
4717 if test ${am_cv_xargs_n_works+y}
4718 then :
4719 printf %s "(cached) " >&6
4720 else case e in #(
4721 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4722 3"
4723 then :
4724 am_cv_xargs_n_works=yes
4725 else case e in #(
4726 e) am_cv_xargs_n_works=no ;;
4727 esac
4728 fi ;;
4729 esac
4730 fi
4731 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4732 printf '%s\n' "$am_cv_xargs_n_works" >&6; }
4733 if test "$am_cv_xargs_n_works" = yes
4734 then :
4735 am__xargs_n='xargs -n'
4736 else case e in #(
4737 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4738 ;;
4739 esac
4740 fi
4741
4742 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4743 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4744 # is not polluted with repeated "-I."
4745 am__isrc=' -I$(srcdir)'
4746 # test to see if srcdir already configured
4747 if test -f $srcdir/config.status; then
4748 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4749 fi
4750 fi
4751
4752 # test whether we have cygpath
4753 if test -z "$CYGPATH_W"; then
4754 if (cygpath --version) >/dev/null 2>/dev/null; then
4755 CYGPATH_W='cygpath -w'
4756 else
4757 CYGPATH_W=echo
4758 fi
4759 fi
4760
4761
4762 # Define the identity of the package.
4763 PACKAGE='xlsclients'
4764 VERSION='1.1.6'
4765
4766
4767 printf '%s\n' "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4768
4769
4770 printf '%s\n' "#define VERSION \"$VERSION\"" >>confdefs.h
4771
4772 # Some tools Automake needs.
4773
4774 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4775
4776
4777 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4778
4779
4780 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4781
4782
4783 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4784
4785
4786 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4787
4788 # For better backward compatibility. To be removed once Automake 1.9.x
4789 # dies out for good. For more background, see:
4790 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4791 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4792 mkdir_p='$(MKDIR_P)'
4793
4794 # We need awk for the "check" target (and possibly the TAP driver). The
4795 # system "awk" is bad on some platforms.
4796 # Always define AMTAR for backward compatibility. Yes, it's still used
4797 # in the wild :-( We should find a proper way to deprecate it ...
4798 AMTAR='$${TAR-tar}'
4799
4800
4801 # We'll loop over all known methods to create a tar archive until one works.
4802 _am_tools='gnutar plaintar pax cpio none'
4803
4804 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4805 # There is notably a 21 bits limit for the UID and the GID. In fact,
4806 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4807 # and bug#13588).
4808 am_max_uid=2097151 # 2^21 - 1
4809 am_max_gid=$am_max_uid
4810 # The $UID and $GID variables are not portable, so we need to resort
4811 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4812 # below are definitely unexpected, so allow the users to see them
4813 # (that is, avoid stderr redirection).
4814 am_uid=`id -u || echo unknown`
4815 am_gid=`id -g || echo unknown`
4816 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4817 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4818 if test x$am_uid = xunknown; then
4819 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4820 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4821 elif test $am_uid -le $am_max_uid; then
4822 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4823 printf '%s\n' "yes" >&6; }
4824 else
4825 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4826 printf '%s\n' "no" >&6; }
4827 _am_tools=none
4828 fi
4829 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4830 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4831 if test x$gm_gid = xunknown; then
4832 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4833 printf '%s\n' "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4834 elif test $am_gid -le $am_max_gid; then
4835 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4836 printf '%s\n' "yes" >&6; }
4837 else
4838 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 printf '%s\n' "no" >&6; }
4840 _am_tools=none
4841 fi
4842
4843 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4844 printf %s "checking how to create a ustar tar archive... " >&6; }
4845
4846 # Go ahead even if we have the value already cached. We do so because we
4847 # need to set the values for the 'am__tar' and 'am__untar' variables.
4848 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4849
4850 for _am_tool in $_am_tools; do
4851 case $_am_tool in
4852 gnutar)
4853 for _am_tar in tar gnutar gtar; do
4854 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4855 ($_am_tar --version) >&5 2>&5
4856 ac_status=$?
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); } && break
4859 done
4860 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4861 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4862 am__untar="$_am_tar -xf -"
4863 ;;
4864 plaintar)
4865 # Must skip GNU tar: if it does not support --format= it doesn't create
4866 # ustar tarball either.
4867 (tar --version) >/dev/null 2>&1 && continue
4868 am__tar='tar chf - "$$tardir"'
4869 am__tar_='tar chf - "$tardir"'
4870 am__untar='tar xf -'
4871 ;;
4872 pax)
4873 am__tar='pax -L -x ustar -w "$$tardir"'
4874 am__tar_='pax -L -x ustar -w "$tardir"'
4875 am__untar='pax -r'
4876 ;;
4877 cpio)
4878 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4879 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4880 am__untar='cpio -i -H ustar -d'
4881 ;;
4882 none)
4883 am__tar=false
4884 am__tar_=false
4885 am__untar=false
4886 ;;
4887 esac
4888
4889 # If the value was cached, stop now. We just wanted to have am__tar
4890 # and am__untar set.
4891 test -n "${am_cv_prog_tar_ustar}" && break
4892
4893 # tar/untar a dummy directory, and stop if the command works.
4894 rm -rf conftest.dir
4895 mkdir conftest.dir
4896 echo GrepMe > conftest.dir/file
4897 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4898 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4899 ac_status=$?
4900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4901 (exit $ac_status); }
4902 rm -rf conftest.dir
4903 if test -s conftest.tar; then
4904 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4905 ($am__untar <conftest.tar) >&5 2>&5
4906 ac_status=$?
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); }
4909 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4910 (cat conftest.dir/file) >&5 2>&5
4911 ac_status=$?
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); }
4914 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4915 fi
4916 done
4917 rm -rf conftest.dir
4918
4919 if test ${am_cv_prog_tar_ustar+y}
4920 then :
4921 printf %s "(cached) " >&6
4922 else case e in #(
4923 e) am_cv_prog_tar_ustar=$_am_tool ;;
4924 esac
4925 fi
4926
4927 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4928 printf '%s\n' "$am_cv_prog_tar_ustar" >&6; }
4929
4930
4931
4932
4933
4934 depcc="$CC" am_compiler_list=
4935
4936 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4937 printf %s "checking dependency style of $depcc... " >&6; }
4938 if test ${am_cv_CC_dependencies_compiler_type+y}
4939 then :
4940 printf %s "(cached) " >&6
4941 else case e in #(
4942 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4943 # We make a subdir and do the tests there. Otherwise we can end up
4944 # making bogus files that we don't know about and never remove. For
4945 # instance it was reported that on HP-UX the gcc test will end up
4946 # making a dummy file named 'D' -- because '-MD' means "put the output
4947 # in D".
4948 rm -rf conftest.dir
4949 mkdir conftest.dir
4950 # Copy depcomp to subdir because otherwise we won't find it if we're
4951 # using a relative directory.
4952 cp "$am_depcomp" conftest.dir
4953 cd conftest.dir
4954 # We will build objects and dependencies in a subdirectory because
4955 # it helps to detect inapplicable dependency modes. For instance
4956 # both Tru64's cc and ICC support -MD to output dependencies as a
4957 # side effect of compilation, but ICC will put the dependencies in
4958 # the current directory while Tru64 will put them in the object
4959 # directory.
4960 mkdir sub
4961
4962 am_cv_CC_dependencies_compiler_type=none
4963 if test "$am_compiler_list" = ""; then
4964 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4965 fi
4966 am__universal=false
4967 case " $depcc " in #(
4968 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4969 esac
4970
4971 for depmode in $am_compiler_list; do
4972 # Setup a source with many dependencies, because some compilers
4973 # like to wrap large dependency lists on column 80 (with \), and
4974 # we should not choose a depcomp mode which is confused by this.
4975 #
4976 # We need to recreate these files for each test, as the compiler may
4977 # overwrite some of them when testing with obscure command lines.
4978 # This happens at least with the AIX C compiler.
4979 : > sub/conftest.c
4980 for i in 1 2 3 4 5 6; do
4981 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4982 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4983 # Solaris 10 /bin/sh.
4984 echo '/* dummy */' > sub/conftst$i.h
4985 done
4986 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4987
4988 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4989 # mode. It turns out that the SunPro C++ compiler does not properly
4990 # handle '-M -o', and we need to detect this. Also, some Intel
4991 # versions had trouble with output in subdirs.
4992 am__obj=sub/conftest.${OBJEXT-o}
4993 am__minus_obj="-o $am__obj"
4994 case $depmode in
4995 gcc)
4996 # This depmode causes a compiler race in universal mode.
4997 test "$am__universal" = false || continue
4998 ;;
4999 nosideeffect)
5000 # After this tag, mechanisms are not by side-effect, so they'll
5001 # only be used when explicitly requested.
5002 if test "x$enable_dependency_tracking" = xyes; then
5003 continue
5004 else
5005 break
5006 fi
5007 ;;
5008 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5009 # This compiler won't grok '-c -o', but also, the minuso test has
5010 # not run yet. These depmodes are late enough in the game, and
5011 # so weak that their functioning should not be impacted.
5012 am__obj=conftest.${OBJEXT-o}
5013 am__minus_obj=
5014 ;;
5015 none) break ;;
5016 esac
5017 if depmode=$depmode \
5018 source=sub/conftest.c object=$am__obj \
5019 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5020 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5021 >/dev/null 2>conftest.err &&
5022 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5023 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5024 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5025 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5026 # icc doesn't choke on unknown options, it will just issue warnings
5027 # or remarks (even with -Werror). So we grep stderr for any message
5028 # that says an option was ignored or not supported.
5029 # When given -MP, icc 7.0 and 7.1 complain thus:
5030 # icc: Command line warning: ignoring option '-M'; no argument required
5031 # The diagnosis changed in icc 8.0:
5032 # icc: Command line remark: option '-MP' not supported
5033 if (grep 'ignoring option' conftest.err ||
5034 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5035 am_cv_CC_dependencies_compiler_type=$depmode
5036 break
5037 fi
5038 fi
5039 done
5040
5041 cd ..
5042 rm -rf conftest.dir
5043 else
5044 am_cv_CC_dependencies_compiler_type=none
5045 fi
5046 ;;
5047 esac
5048 fi
5049 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5050 printf '%s\n' "$am_cv_CC_dependencies_compiler_type" >&6; }
5051 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5052
5053 if
5054 test "x$enable_dependency_tracking" != xno \
5055 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5056 am__fastdepCC_TRUE=
5057 am__fastdepCC_FALSE='#'
5058 else
5059 am__fastdepCC_TRUE='#'
5060 am__fastdepCC_FALSE=
5061 fi
5062
5063
5064 # Variables for tags utilities; see am/tags.am
5065 if test -z "$CTAGS"; then
5066 CTAGS=ctags
5067 fi
5068
5069 if test -z "$ETAGS"; then
5070 ETAGS=etags
5071 fi
5072
5073 if test -z "$CSCOPE"; then
5074 CSCOPE=cscope
5075 fi
5076
5077
5078
5079
5080
5081
5082
5083
5084 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to detect undeclared functions" >&5
5097 printf %s "checking for $CC options to detect undeclared functions... " >&6; }
5098 if test ${ac_cv_c_undeclared_builtin_options+y}
5099 then :
5100 printf %s "(cached) " >&6
5101 else case e in #(
5102 e) ac_save_CFLAGS=$CFLAGS
5103 ac_cv_c_undeclared_builtin_options='cannot detect'
5104 for ac_arg in '' -fno-builtin; do
5105 CFLAGS="$ac_save_CFLAGS $ac_arg"
5106 # This test program should *not* compile successfully.
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h. */
5109
5110 int
5111 main (void)
5112 {
5113 (void) strchr;
5114 ;
5115 return 0;
5116 }
5117 _ACEOF
5118 if ac_fn_c_try_compile "$LINENO"
5119 then :
5120
5121 else case e in #(
5122 e) # This test program should compile successfully.
5123 # No library function is consistently available on
5124 # freestanding implementations, so test against a dummy
5125 # declaration. Include always-available headers on the
5126 # off chance that they somehow elicit warnings.
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5129 #include <float.h>
5130 #include <limits.h>
5131 #include <stdarg.h>
5132 #include <stddef.h>
5133 extern void ac_decl (int, char *);
5134
5135 int
5136 main (void)
5137 {
5138 (void) ac_decl (0, (char *) 0);
5139 (void) ac_decl;
5140
5141 ;
5142 return 0;
5143 }
5144 _ACEOF
5145 if ac_fn_c_try_compile "$LINENO"
5146 then :
5147 if test x"$ac_arg" = x
5148 then :
5149 ac_cv_c_undeclared_builtin_options='none needed'
5150 else case e in #(
5151 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
5152 esac
5153 fi
5154 break
5155 fi
5156 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5157 esac
5158 fi
5159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5160 done
5161 CFLAGS=$ac_save_CFLAGS
5162 ;;
5163 esac
5164 fi
5165 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5166 printf '%s\n' "$ac_cv_c_undeclared_builtin_options" >&6; }
5167 case $ac_cv_c_undeclared_builtin_options in #(
5168 'cannot detect') :
5169 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5170 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
5171 as_fn_error $? "cannot make $CC report undeclared builtins
5172 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5173 'none needed') :
5174 ac_c_undeclared_builtin_options='' ;; #(
5175 *) :
5176 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5177 esac
5178
5179 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $CC options to ignore future-version functions" >&5
5180 printf %s "checking for $CC options to ignore future-version functions... " >&6; }
5181 if test ${ac_cv_c_future_darwin_options+y}
5182 then :
5183 printf %s "(cached) " >&6
5184 else case e in #(
5185 e) ac_compile_saved="$ac_compile"
5186 ac_compile="$ac_compile -Werror=unguarded-availability-new"
5187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5188 /* end confdefs.h. */
5189 #if ! (defined __APPLE__ && defined __MACH__)
5190 #error "-Werror=unguarded-availability-new not needed here"
5191 #endif
5192
5193 int
5194 main (void)
5195 {
5196
5197 ;
5198 return 0;
5199 }
5200 _ACEOF
5201 if ac_fn_c_try_compile "$LINENO"
5202 then :
5203 ac_cv_c_future_darwin_options='-Werror=unguarded-availability-new'
5204 else case e in #(
5205 e) ac_cv_c_future_darwin_options='none needed' ;;
5206 esac
5207 fi
5208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5209 ac_compile="$ac_compile_saved"
5210 ;;
5211 esac
5212 fi
5213 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_future_darwin_options" >&5
5214 printf '%s\n' "$ac_cv_c_future_darwin_options" >&6; }
5215 case $ac_cv_c_future_darwin_options in #(
5216 'none needed') :
5217 ac_c_future_darwin_options='' ;; #(
5218 *) :
5219 ac_c_future_darwin_options=$ac_cv_c_future_darwin_options ;;
5220 esac
5221
5222
5223
5224
5225
5226 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
5227 if test "x$ac_cv_have_decl___clang__" = xyes
5228 then :
5229 CLANGCC="yes"
5230 else case e in #(
5231 e) CLANGCC="no" ;;
5232 esac
5233 fi
5234 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
5235 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
5236 then :
5237 INTELCC="yes"
5238 else case e in #(
5239 e) INTELCC="no" ;;
5240 esac
5241 fi
5242 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options$ac_c_future_darwin_options" "CFLAGS"
5243 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
5244 then :
5245 SUNCC="yes"
5246 else case e in #(
5247 e) SUNCC="no" ;;
5248 esac
5249 fi
5250
5251
5252
5253
5254
5255
5256
5257
5258 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5259 if test -n "$ac_tool_prefix"; then
5260 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5261 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5262 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 printf %s "checking for $ac_word... " >&6; }
5264 if test ${ac_cv_path_PKG_CONFIG+y}
5265 then :
5266 printf %s "(cached) " >&6
5267 else case e in #(
5268 e) case $PKG_CONFIG in
5269 [\\/]* | ?:[\\/]*)
5270 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5271 ;;
5272 *)
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5275 do
5276 IFS=$as_save_IFS
5277 case $as_dir in #(((
5278 '') as_dir=./ ;;
5279 */) ;;
5280 *) as_dir=$as_dir/ ;;
5281 esac
5282 for ac_exec_ext in '' $ac_executable_extensions; do
5283 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5284 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5285 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5286 break 2
5287 fi
5288 done
5289 done
5290 IFS=$as_save_IFS
5291
5292 ;;
5293 esac ;;
5294 esac
5295 fi
5296 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5297 if test -n "$PKG_CONFIG"; then
5298 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5299 printf '%s\n' "$PKG_CONFIG" >&6; }
5300 else
5301 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302 printf '%s\n' "no" >&6; }
5303 fi
5304
5305
5306 fi
5307 if test -z "$ac_cv_path_PKG_CONFIG"; then
5308 ac_pt_PKG_CONFIG=$PKG_CONFIG
5309 # Extract the first word of "pkg-config", so it can be a program name with args.
5310 set dummy pkg-config; ac_word=$2
5311 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 printf %s "checking for $ac_word... " >&6; }
5313 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5314 then :
5315 printf %s "(cached) " >&6
5316 else case e in #(
5317 e) case $ac_pt_PKG_CONFIG in
5318 [\\/]* | ?:[\\/]*)
5319 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5320 ;;
5321 *)
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5323 for as_dir in $PATH
5324 do
5325 IFS=$as_save_IFS
5326 case $as_dir in #(((
5327 '') as_dir=./ ;;
5328 */) ;;
5329 *) as_dir=$as_dir/ ;;
5330 esac
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5333 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5334 printf '%s\n' "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5335 break 2
5336 fi
5337 done
5338 done
5339 IFS=$as_save_IFS
5340
5341 ;;
5342 esac ;;
5343 esac
5344 fi
5345 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5346 if test -n "$ac_pt_PKG_CONFIG"; then
5347 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5348 printf '%s\n' "$ac_pt_PKG_CONFIG" >&6; }
5349 else
5350 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 printf '%s\n' "no" >&6; }
5352 fi
5353
5354 if test "x$ac_pt_PKG_CONFIG" = x; then
5355 PKG_CONFIG=""
5356 else
5357 case $cross_compiling:$ac_tool_warned in
5358 yes:)
5359 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5360 printf '%s\n' "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5361 ac_tool_warned=yes ;;
5362 esac
5363 PKG_CONFIG=$ac_pt_PKG_CONFIG
5364 fi
5365 else
5366 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5367 fi
5368
5369 fi
5370 if test -n "$PKG_CONFIG"; then
5371 _pkg_min_version=0.9.0
5372 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5373 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5374 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5375 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5376 printf '%s\n' "yes" >&6; }
5377 else
5378 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 printf '%s\n' "no" >&6; }
5380 PKG_CONFIG=""
5381 fi
5382 fi
5383
5384
5385 # Make sure we can run config.sub.
5386 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5387 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5388
5389 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5390 printf %s "checking build system type... " >&6; }
5391 if test ${ac_cv_build+y}
5392 then :
5393 printf %s "(cached) " >&6
5394 else case e in #(
5395 e) ac_build_alias=$build_alias
5396 test "x$ac_build_alias" = x &&
5397 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5398 test "x$ac_build_alias" = x &&
5399 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5400 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5401 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5402 ;;
5403 esac
5404 fi
5405 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5406 printf '%s\n' "$ac_cv_build" >&6; }
5407 case $ac_cv_build in
5408 *-*-*) ;;
5409 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5410 esac
5411 build=$ac_cv_build
5412 ac_save_IFS=$IFS; IFS='-'
5413 set x $ac_cv_build
5414 shift
5415 build_cpu=$1
5416 build_vendor=$2
5417 shift; shift
5418 # Remember, the first character of IFS is used to create $*,
5419 # except with old shells:
5420 build_os=$*
5421 IFS=$ac_save_IFS
5422 case $build_os in *\ *) build_os=`printf '%s\n' "$build_os" | sed 's/ /-/g'`;; esac
5423
5424
5425 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5426 printf %s "checking host system type... " >&6; }
5427 if test ${ac_cv_host+y}
5428 then :
5429 printf %s "(cached) " >&6
5430 else case e in #(
5431 e) if test "x$host_alias" = x; then
5432 ac_cv_host=$ac_cv_build
5433 else
5434 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5435 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5436 fi
5437 ;;
5438 esac
5439 fi
5440 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5441 printf '%s\n' "$ac_cv_host" >&6; }
5442 case $ac_cv_host in
5443 *-*-*) ;;
5444 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5445 esac
5446 host=$ac_cv_host
5447 ac_save_IFS=$IFS; IFS='-'
5448 set x $ac_cv_host
5449 shift
5450 host_cpu=$1
5451 host_vendor=$2
5452 shift; shift
5453 # Remember, the first character of IFS is used to create $*,
5454 # except with old shells:
5455 host_os=$*
5456 IFS=$ac_save_IFS
5457 case $host_os in *\ *) host_os=`printf '%s\n' "$host_os" | sed 's/ /-/g'`;; esac
5458
5459
5460 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5461 printf %s "checking for a sed that does not truncate output... " >&6; }
5462 if test ${ac_cv_path_SED+y}
5463 then :
5464 printf %s "(cached) " >&6
5465 else case e in #(
5466 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5467 for ac_i in 1 2 3 4 5 6 7; do
5468 ac_script="$ac_script$as_nl$ac_script"
5469 done
5470 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5471 { ac_script=; unset ac_script;}
5472 if test -z "$SED"; then
5473 ac_path_SED_found=false
5474 # Loop through the user's path and test for each of PROGNAME-LIST
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5477 do
5478 IFS=$as_save_IFS
5479 case $as_dir in #(((
5480 '') as_dir=./ ;;
5481 */) ;;
5482 *) as_dir=$as_dir/ ;;
5483 esac
5484 for ac_prog in sed gsed
5485 do
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5488 as_fn_executable_p "$ac_path_SED" || continue
5489 # Check for GNU ac_path_SED and select it if it is found.
5490 # Check for GNU $ac_path_SED
5491 case `"$ac_path_SED" --version 2>&1` in #(
5492 *GNU*)
5493 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5494 #(
5495 *)
5496 ac_count=0
5497 printf %s 0123456789 >"conftest.in"
5498 while :
5499 do
5500 cat "conftest.in" "conftest.in" >"conftest.tmp"
5501 mv "conftest.tmp" "conftest.in"
5502 cp "conftest.in" "conftest.nl"
5503 printf '%s\n' '' >> "conftest.nl"
5504 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5505 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5506 as_fn_arith $ac_count + 1 && ac_count=$as_val
5507 if test $ac_count -gt ${ac_path_SED_max-0}; then
5508 # Best one so far, save it but keep looking for a better one
5509 ac_cv_path_SED="$ac_path_SED"
5510 ac_path_SED_max=$ac_count
5511 fi
5512 # 10*(2^10) chars as input seems more than enough
5513 test $ac_count -gt 10 && break
5514 done
5515 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5516 esac
5517
5518 $ac_path_SED_found && break 3
5519 done
5520 done
5521 done
5522 IFS=$as_save_IFS
5523 if test -z "$ac_cv_path_SED"; then
5524 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5525 fi
5526 else
5527 ac_cv_path_SED=$SED
5528 fi
5529 ;;
5530 esac
5531 fi
5532 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5533 printf '%s\n' "$ac_cv_path_SED" >&6; }
5534 SED="$ac_cv_path_SED"
5535 rm -f conftest.sed
5536
5537
5538
5539
5540
5541
5542 # Check whether --enable-selective-werror was given.
5543 if test ${enable_selective_werror+y}
5544 then :
5545 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5546 else case e in #(
5547 e) SELECTIVE_WERROR=yes ;;
5548 esac
5549 fi
5550
5551
5552
5553
5554
5555 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5556 if test "x$SUNCC" = "xyes"; then
5557 BASE_CFLAGS="-v"
5558 else
5559 BASE_CFLAGS=""
5560 fi
5561
5562 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576 xorg_testset_save_CFLAGS="$CFLAGS"
5577
5578 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5580 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5581 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5582 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5583 then :
5584 printf %s "(cached) " >&6
5585 else case e in #(
5586 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5587 /* end confdefs.h. */
5588 int i;
5589 _ACEOF
5590 if ac_fn_c_try_compile "$LINENO"
5591 then :
5592 xorg_cv_cc_flag_unknown_warning_option=yes
5593 else case e in #(
5594 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5595 esac
5596 fi
5597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5598 esac
5599 fi
5600 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5601 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5602 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5603 CFLAGS="$xorg_testset_save_CFLAGS"
5604 fi
5605
5606 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5609 fi
5610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5611 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5612 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5613 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5614 then :
5615 printf %s "(cached) " >&6
5616 else case e in #(
5617 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 int i;
5620 _ACEOF
5621 if ac_fn_c_try_compile "$LINENO"
5622 then :
5623 xorg_cv_cc_flag_unused_command_line_argument=yes
5624 else case e in #(
5625 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5626 esac
5627 fi
5628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5629 esac
5630 fi
5631 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5632 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5633 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5634 CFLAGS="$xorg_testset_save_CFLAGS"
5635 fi
5636
5637 found="no"
5638
5639 if test $found = "no" ; then
5640 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5642 fi
5643
5644 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5645 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5646 fi
5647
5648 CFLAGS="$CFLAGS -Wall"
5649
5650 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5651 printf %s "checking if $CC supports -Wall... " >&6; }
5652 cacheid=xorg_cv_cc_flag__Wall
5653 if eval test \${$cacheid+y}
5654 then :
5655 printf %s "(cached) " >&6
5656 else case e in #(
5657 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 int i;
5660 int
5661 main (void)
5662 {
5663
5664 ;
5665 return 0;
5666 }
5667 _ACEOF
5668 if ac_fn_c_try_link "$LINENO"
5669 then :
5670 eval $cacheid=yes
5671 else case e in #(
5672 e) eval $cacheid=no ;;
5673 esac
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5676 conftest$ac_exeext conftest.$ac_ext ;;
5677 esac
5678 fi
5679
5680
5681 CFLAGS="$xorg_testset_save_CFLAGS"
5682
5683 eval supported=\$$cacheid
5684 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5685 printf '%s\n' "$supported" >&6; }
5686 if test "$supported" = "yes" ; then
5687 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5688 found="yes"
5689 fi
5690 fi
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706 xorg_testset_save_CFLAGS="$CFLAGS"
5707
5708 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5709 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5710 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5711 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5712 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5713 then :
5714 printf %s "(cached) " >&6
5715 else case e in #(
5716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5718 int i;
5719 _ACEOF
5720 if ac_fn_c_try_compile "$LINENO"
5721 then :
5722 xorg_cv_cc_flag_unknown_warning_option=yes
5723 else case e in #(
5724 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5725 esac
5726 fi
5727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5728 esac
5729 fi
5730 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5731 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5732 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5733 CFLAGS="$xorg_testset_save_CFLAGS"
5734 fi
5735
5736 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5739 fi
5740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5741 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5742 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5743 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5744 then :
5745 printf %s "(cached) " >&6
5746 else case e in #(
5747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748 /* end confdefs.h. */
5749 int i;
5750 _ACEOF
5751 if ac_fn_c_try_compile "$LINENO"
5752 then :
5753 xorg_cv_cc_flag_unused_command_line_argument=yes
5754 else case e in #(
5755 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5756 esac
5757 fi
5758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5759 esac
5760 fi
5761 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5762 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5763 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5764 CFLAGS="$xorg_testset_save_CFLAGS"
5765 fi
5766
5767 found="no"
5768
5769 if test $found = "no" ; then
5770 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5771 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5772 fi
5773
5774 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5775 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5776 fi
5777
5778 CFLAGS="$CFLAGS -Wpointer-arith"
5779
5780 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5781 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5782 cacheid=xorg_cv_cc_flag__Wpointer_arith
5783 if eval test \${$cacheid+y}
5784 then :
5785 printf %s "(cached) " >&6
5786 else case e in #(
5787 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h. */
5789 int i;
5790 int
5791 main (void)
5792 {
5793
5794 ;
5795 return 0;
5796 }
5797 _ACEOF
5798 if ac_fn_c_try_link "$LINENO"
5799 then :
5800 eval $cacheid=yes
5801 else case e in #(
5802 e) eval $cacheid=no ;;
5803 esac
5804 fi
5805 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5806 conftest$ac_exeext conftest.$ac_ext ;;
5807 esac
5808 fi
5809
5810
5811 CFLAGS="$xorg_testset_save_CFLAGS"
5812
5813 eval supported=\$$cacheid
5814 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5815 printf '%s\n' "$supported" >&6; }
5816 if test "$supported" = "yes" ; then
5817 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5818 found="yes"
5819 fi
5820 fi
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836 xorg_testset_save_CFLAGS="$CFLAGS"
5837
5838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5840 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5841 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5842 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5843 then :
5844 printf %s "(cached) " >&6
5845 else case e in #(
5846 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5847 /* end confdefs.h. */
5848 int i;
5849 _ACEOF
5850 if ac_fn_c_try_compile "$LINENO"
5851 then :
5852 xorg_cv_cc_flag_unknown_warning_option=yes
5853 else case e in #(
5854 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5855 esac
5856 fi
5857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5858 esac
5859 fi
5860 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5861 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5863 CFLAGS="$xorg_testset_save_CFLAGS"
5864 fi
5865
5866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5869 fi
5870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5871 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5872 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5873 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5874 then :
5875 printf %s "(cached) " >&6
5876 else case e in #(
5877 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878 /* end confdefs.h. */
5879 int i;
5880 _ACEOF
5881 if ac_fn_c_try_compile "$LINENO"
5882 then :
5883 xorg_cv_cc_flag_unused_command_line_argument=yes
5884 else case e in #(
5885 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5886 esac
5887 fi
5888 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5889 esac
5890 fi
5891 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5892 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5893 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5894 CFLAGS="$xorg_testset_save_CFLAGS"
5895 fi
5896
5897 found="no"
5898
5899 if test $found = "no" ; then
5900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5902 fi
5903
5904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5906 fi
5907
5908 CFLAGS="$CFLAGS -Wmissing-declarations"
5909
5910 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5911 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5912 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5913 if eval test \${$cacheid+y}
5914 then :
5915 printf %s "(cached) " >&6
5916 else case e in #(
5917 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919 int i;
5920 int
5921 main (void)
5922 {
5923
5924 ;
5925 return 0;
5926 }
5927 _ACEOF
5928 if ac_fn_c_try_link "$LINENO"
5929 then :
5930 eval $cacheid=yes
5931 else case e in #(
5932 e) eval $cacheid=no ;;
5933 esac
5934 fi
5935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5936 conftest$ac_exeext conftest.$ac_ext ;;
5937 esac
5938 fi
5939
5940
5941 CFLAGS="$xorg_testset_save_CFLAGS"
5942
5943 eval supported=\$$cacheid
5944 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5945 printf '%s\n' "$supported" >&6; }
5946 if test "$supported" = "yes" ; then
5947 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5948 found="yes"
5949 fi
5950 fi
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966 xorg_testset_save_CFLAGS="$CFLAGS"
5967
5968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5970 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5971 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5972 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5973 then :
5974 printf %s "(cached) " >&6
5975 else case e in #(
5976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977 /* end confdefs.h. */
5978 int i;
5979 _ACEOF
5980 if ac_fn_c_try_compile "$LINENO"
5981 then :
5982 xorg_cv_cc_flag_unknown_warning_option=yes
5983 else case e in #(
5984 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5985 esac
5986 fi
5987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5988 esac
5989 fi
5990 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5991 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5993 CFLAGS="$xorg_testset_save_CFLAGS"
5994 fi
5995
5996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5999 fi
6000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6001 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6002 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6003 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6004 then :
6005 printf %s "(cached) " >&6
6006 else case e in #(
6007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6009 int i;
6010 _ACEOF
6011 if ac_fn_c_try_compile "$LINENO"
6012 then :
6013 xorg_cv_cc_flag_unused_command_line_argument=yes
6014 else case e in #(
6015 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6016 esac
6017 fi
6018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6019 esac
6020 fi
6021 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6022 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6024 CFLAGS="$xorg_testset_save_CFLAGS"
6025 fi
6026
6027 found="no"
6028
6029 if test $found = "no" ; then
6030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6032 fi
6033
6034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6036 fi
6037
6038 CFLAGS="$CFLAGS -Wformat=2"
6039
6040 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
6041 printf %s "checking if $CC supports -Wformat=2... " >&6; }
6042 cacheid=xorg_cv_cc_flag__Wformat_2
6043 if eval test \${$cacheid+y}
6044 then :
6045 printf %s "(cached) " >&6
6046 else case e in #(
6047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6048 /* end confdefs.h. */
6049 int i;
6050 int
6051 main (void)
6052 {
6053
6054 ;
6055 return 0;
6056 }
6057 _ACEOF
6058 if ac_fn_c_try_link "$LINENO"
6059 then :
6060 eval $cacheid=yes
6061 else case e in #(
6062 e) eval $cacheid=no ;;
6063 esac
6064 fi
6065 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6066 conftest$ac_exeext conftest.$ac_ext ;;
6067 esac
6068 fi
6069
6070
6071 CFLAGS="$xorg_testset_save_CFLAGS"
6072
6073 eval supported=\$$cacheid
6074 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6075 printf '%s\n' "$supported" >&6; }
6076 if test "$supported" = "yes" ; then
6077 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6078 found="yes"
6079 fi
6080 fi
6081
6082 if test $found = "no" ; then
6083 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6085 fi
6086
6087 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6088 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6089 fi
6090
6091 CFLAGS="$CFLAGS -Wformat"
6092
6093 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
6094 printf %s "checking if $CC supports -Wformat... " >&6; }
6095 cacheid=xorg_cv_cc_flag__Wformat
6096 if eval test \${$cacheid+y}
6097 then :
6098 printf %s "(cached) " >&6
6099 else case e in #(
6100 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6101 /* end confdefs.h. */
6102 int i;
6103 int
6104 main (void)
6105 {
6106
6107 ;
6108 return 0;
6109 }
6110 _ACEOF
6111 if ac_fn_c_try_link "$LINENO"
6112 then :
6113 eval $cacheid=yes
6114 else case e in #(
6115 e) eval $cacheid=no ;;
6116 esac
6117 fi
6118 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6119 conftest$ac_exeext conftest.$ac_ext ;;
6120 esac
6121 fi
6122
6123
6124 CFLAGS="$xorg_testset_save_CFLAGS"
6125
6126 eval supported=\$$cacheid
6127 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6128 printf '%s\n' "$supported" >&6; }
6129 if test "$supported" = "yes" ; then
6130 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6131 found="yes"
6132 fi
6133 fi
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151 xorg_testset_save_CFLAGS="$CFLAGS"
6152
6153 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6155 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6156 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6157 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6158 then :
6159 printf %s "(cached) " >&6
6160 else case e in #(
6161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6162 /* end confdefs.h. */
6163 int i;
6164 _ACEOF
6165 if ac_fn_c_try_compile "$LINENO"
6166 then :
6167 xorg_cv_cc_flag_unknown_warning_option=yes
6168 else case e in #(
6169 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6170 esac
6171 fi
6172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6173 esac
6174 fi
6175 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6176 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6177 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6178 CFLAGS="$xorg_testset_save_CFLAGS"
6179 fi
6180
6181 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6184 fi
6185 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6186 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6187 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6188 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6189 then :
6190 printf %s "(cached) " >&6
6191 else case e in #(
6192 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h. */
6194 int i;
6195 _ACEOF
6196 if ac_fn_c_try_compile "$LINENO"
6197 then :
6198 xorg_cv_cc_flag_unused_command_line_argument=yes
6199 else case e in #(
6200 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6201 esac
6202 fi
6203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6204 esac
6205 fi
6206 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6207 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6208 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6209 CFLAGS="$xorg_testset_save_CFLAGS"
6210 fi
6211
6212 found="no"
6213
6214 if test $found = "no" ; then
6215 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6217 fi
6218
6219 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6221 fi
6222
6223 CFLAGS="$CFLAGS -Wstrict-prototypes"
6224
6225 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6226 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
6227 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6228 if eval test \${$cacheid+y}
6229 then :
6230 printf %s "(cached) " >&6
6231 else case e in #(
6232 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 int i;
6235 int
6236 main (void)
6237 {
6238
6239 ;
6240 return 0;
6241 }
6242 _ACEOF
6243 if ac_fn_c_try_link "$LINENO"
6244 then :
6245 eval $cacheid=yes
6246 else case e in #(
6247 e) eval $cacheid=no ;;
6248 esac
6249 fi
6250 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6251 conftest$ac_exeext conftest.$ac_ext ;;
6252 esac
6253 fi
6254
6255
6256 CFLAGS="$xorg_testset_save_CFLAGS"
6257
6258 eval supported=\$$cacheid
6259 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6260 printf '%s\n' "$supported" >&6; }
6261 if test "$supported" = "yes" ; then
6262 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6263 found="yes"
6264 fi
6265 fi
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281 xorg_testset_save_CFLAGS="$CFLAGS"
6282
6283 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6285 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6286 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6287 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6288 then :
6289 printf %s "(cached) " >&6
6290 else case e in #(
6291 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 int i;
6294 _ACEOF
6295 if ac_fn_c_try_compile "$LINENO"
6296 then :
6297 xorg_cv_cc_flag_unknown_warning_option=yes
6298 else case e in #(
6299 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6300 esac
6301 fi
6302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6303 esac
6304 fi
6305 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6306 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6308 CFLAGS="$xorg_testset_save_CFLAGS"
6309 fi
6310
6311 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6314 fi
6315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6316 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6317 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6318 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6319 then :
6320 printf %s "(cached) " >&6
6321 else case e in #(
6322 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h. */
6324 int i;
6325 _ACEOF
6326 if ac_fn_c_try_compile "$LINENO"
6327 then :
6328 xorg_cv_cc_flag_unused_command_line_argument=yes
6329 else case e in #(
6330 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6331 esac
6332 fi
6333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6334 esac
6335 fi
6336 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6337 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6338 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6339 CFLAGS="$xorg_testset_save_CFLAGS"
6340 fi
6341
6342 found="no"
6343
6344 if test $found = "no" ; then
6345 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6346 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6347 fi
6348
6349 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6351 fi
6352
6353 CFLAGS="$CFLAGS -Wmissing-prototypes"
6354
6355 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6356 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6357 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6358 if eval test \${$cacheid+y}
6359 then :
6360 printf %s "(cached) " >&6
6361 else case e in #(
6362 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6364 int i;
6365 int
6366 main (void)
6367 {
6368
6369 ;
6370 return 0;
6371 }
6372 _ACEOF
6373 if ac_fn_c_try_link "$LINENO"
6374 then :
6375 eval $cacheid=yes
6376 else case e in #(
6377 e) eval $cacheid=no ;;
6378 esac
6379 fi
6380 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6381 conftest$ac_exeext conftest.$ac_ext ;;
6382 esac
6383 fi
6384
6385
6386 CFLAGS="$xorg_testset_save_CFLAGS"
6387
6388 eval supported=\$$cacheid
6389 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6390 printf '%s\n' "$supported" >&6; }
6391 if test "$supported" = "yes" ; then
6392 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6393 found="yes"
6394 fi
6395 fi
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411 xorg_testset_save_CFLAGS="$CFLAGS"
6412
6413 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6415 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6416 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6417 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6418 then :
6419 printf %s "(cached) " >&6
6420 else case e in #(
6421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 int i;
6424 _ACEOF
6425 if ac_fn_c_try_compile "$LINENO"
6426 then :
6427 xorg_cv_cc_flag_unknown_warning_option=yes
6428 else case e in #(
6429 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6430 esac
6431 fi
6432 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6433 esac
6434 fi
6435 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6436 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6437 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6438 CFLAGS="$xorg_testset_save_CFLAGS"
6439 fi
6440
6441 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6444 fi
6445 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6446 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6447 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6448 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6449 then :
6450 printf %s "(cached) " >&6
6451 else case e in #(
6452 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6454 int i;
6455 _ACEOF
6456 if ac_fn_c_try_compile "$LINENO"
6457 then :
6458 xorg_cv_cc_flag_unused_command_line_argument=yes
6459 else case e in #(
6460 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6461 esac
6462 fi
6463 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6464 esac
6465 fi
6466 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6467 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6469 CFLAGS="$xorg_testset_save_CFLAGS"
6470 fi
6471
6472 found="no"
6473
6474 if test $found = "no" ; then
6475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6477 fi
6478
6479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6481 fi
6482
6483 CFLAGS="$CFLAGS -Wnested-externs"
6484
6485 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6486 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6487 cacheid=xorg_cv_cc_flag__Wnested_externs
6488 if eval test \${$cacheid+y}
6489 then :
6490 printf %s "(cached) " >&6
6491 else case e in #(
6492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6493 /* end confdefs.h. */
6494 int i;
6495 int
6496 main (void)
6497 {
6498
6499 ;
6500 return 0;
6501 }
6502 _ACEOF
6503 if ac_fn_c_try_link "$LINENO"
6504 then :
6505 eval $cacheid=yes
6506 else case e in #(
6507 e) eval $cacheid=no ;;
6508 esac
6509 fi
6510 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6511 conftest$ac_exeext conftest.$ac_ext ;;
6512 esac
6513 fi
6514
6515
6516 CFLAGS="$xorg_testset_save_CFLAGS"
6517
6518 eval supported=\$$cacheid
6519 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6520 printf '%s\n' "$supported" >&6; }
6521 if test "$supported" = "yes" ; then
6522 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6523 found="yes"
6524 fi
6525 fi
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541 xorg_testset_save_CFLAGS="$CFLAGS"
6542
6543 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6545 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6546 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6547 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6548 then :
6549 printf %s "(cached) " >&6
6550 else case e in #(
6551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6553 int i;
6554 _ACEOF
6555 if ac_fn_c_try_compile "$LINENO"
6556 then :
6557 xorg_cv_cc_flag_unknown_warning_option=yes
6558 else case e in #(
6559 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6560 esac
6561 fi
6562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6563 esac
6564 fi
6565 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6566 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6567 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6568 CFLAGS="$xorg_testset_save_CFLAGS"
6569 fi
6570
6571 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6574 fi
6575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6576 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6577 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6578 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6579 then :
6580 printf %s "(cached) " >&6
6581 else case e in #(
6582 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583 /* end confdefs.h. */
6584 int i;
6585 _ACEOF
6586 if ac_fn_c_try_compile "$LINENO"
6587 then :
6588 xorg_cv_cc_flag_unused_command_line_argument=yes
6589 else case e in #(
6590 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6591 esac
6592 fi
6593 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6594 esac
6595 fi
6596 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6597 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6599 CFLAGS="$xorg_testset_save_CFLAGS"
6600 fi
6601
6602 found="no"
6603
6604 if test $found = "no" ; then
6605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6607 fi
6608
6609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6611 fi
6612
6613 CFLAGS="$CFLAGS -Wbad-function-cast"
6614
6615 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6616 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6617 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6618 if eval test \${$cacheid+y}
6619 then :
6620 printf %s "(cached) " >&6
6621 else case e in #(
6622 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6623 /* end confdefs.h. */
6624 int i;
6625 int
6626 main (void)
6627 {
6628
6629 ;
6630 return 0;
6631 }
6632 _ACEOF
6633 if ac_fn_c_try_link "$LINENO"
6634 then :
6635 eval $cacheid=yes
6636 else case e in #(
6637 e) eval $cacheid=no ;;
6638 esac
6639 fi
6640 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6641 conftest$ac_exeext conftest.$ac_ext ;;
6642 esac
6643 fi
6644
6645
6646 CFLAGS="$xorg_testset_save_CFLAGS"
6647
6648 eval supported=\$$cacheid
6649 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6650 printf '%s\n' "$supported" >&6; }
6651 if test "$supported" = "yes" ; then
6652 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6653 found="yes"
6654 fi
6655 fi
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671 xorg_testset_save_CFLAGS="$CFLAGS"
6672
6673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6675 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6676 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6677 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6678 then :
6679 printf %s "(cached) " >&6
6680 else case e in #(
6681 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6683 int i;
6684 _ACEOF
6685 if ac_fn_c_try_compile "$LINENO"
6686 then :
6687 xorg_cv_cc_flag_unknown_warning_option=yes
6688 else case e in #(
6689 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6690 esac
6691 fi
6692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6693 esac
6694 fi
6695 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6696 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6697 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6698 CFLAGS="$xorg_testset_save_CFLAGS"
6699 fi
6700
6701 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6704 fi
6705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6706 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6707 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6708 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6709 then :
6710 printf %s "(cached) " >&6
6711 else case e in #(
6712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6713 /* end confdefs.h. */
6714 int i;
6715 _ACEOF
6716 if ac_fn_c_try_compile "$LINENO"
6717 then :
6718 xorg_cv_cc_flag_unused_command_line_argument=yes
6719 else case e in #(
6720 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6721 esac
6722 fi
6723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6724 esac
6725 fi
6726 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6727 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6728 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6729 CFLAGS="$xorg_testset_save_CFLAGS"
6730 fi
6731
6732 found="no"
6733
6734 if test $found = "no" ; then
6735 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6736 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6737 fi
6738
6739 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6740 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6741 fi
6742
6743 CFLAGS="$CFLAGS -Wold-style-definition"
6744
6745 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6746 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6747 cacheid=xorg_cv_cc_flag__Wold_style_definition
6748 if eval test \${$cacheid+y}
6749 then :
6750 printf %s "(cached) " >&6
6751 else case e in #(
6752 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6753 /* end confdefs.h. */
6754 int i;
6755 int
6756 main (void)
6757 {
6758
6759 ;
6760 return 0;
6761 }
6762 _ACEOF
6763 if ac_fn_c_try_link "$LINENO"
6764 then :
6765 eval $cacheid=yes
6766 else case e in #(
6767 e) eval $cacheid=no ;;
6768 esac
6769 fi
6770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6771 conftest$ac_exeext conftest.$ac_ext ;;
6772 esac
6773 fi
6774
6775
6776 CFLAGS="$xorg_testset_save_CFLAGS"
6777
6778 eval supported=\$$cacheid
6779 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6780 printf '%s\n' "$supported" >&6; }
6781 if test "$supported" = "yes" ; then
6782 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6783 found="yes"
6784 fi
6785 fi
6786
6787 if test $found = "no" ; then
6788 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6790 fi
6791
6792 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6793 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6794 fi
6795
6796 CFLAGS="$CFLAGS -fd"
6797
6798 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6799 printf %s "checking if $CC supports -fd... " >&6; }
6800 cacheid=xorg_cv_cc_flag__fd
6801 if eval test \${$cacheid+y}
6802 then :
6803 printf %s "(cached) " >&6
6804 else case e in #(
6805 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6807 int i;
6808 int
6809 main (void)
6810 {
6811
6812 ;
6813 return 0;
6814 }
6815 _ACEOF
6816 if ac_fn_c_try_link "$LINENO"
6817 then :
6818 eval $cacheid=yes
6819 else case e in #(
6820 e) eval $cacheid=no ;;
6821 esac
6822 fi
6823 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6824 conftest$ac_exeext conftest.$ac_ext ;;
6825 esac
6826 fi
6827
6828
6829 CFLAGS="$xorg_testset_save_CFLAGS"
6830
6831 eval supported=\$$cacheid
6832 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6833 printf '%s\n' "$supported" >&6; }
6834 if test "$supported" = "yes" ; then
6835 BASE_CFLAGS="$BASE_CFLAGS -fd"
6836 found="yes"
6837 fi
6838 fi
6839
6840
6841
6842
6843
6844 # This chunk adds additional warnings that could catch undesired effects.
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858 xorg_testset_save_CFLAGS="$CFLAGS"
6859
6860 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6862 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6863 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6864 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6865 then :
6866 printf %s "(cached) " >&6
6867 else case e in #(
6868 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6870 int i;
6871 _ACEOF
6872 if ac_fn_c_try_compile "$LINENO"
6873 then :
6874 xorg_cv_cc_flag_unknown_warning_option=yes
6875 else case e in #(
6876 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6877 esac
6878 fi
6879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6880 esac
6881 fi
6882 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6883 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6884 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6885 CFLAGS="$xorg_testset_save_CFLAGS"
6886 fi
6887
6888 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6889 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6890 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6891 fi
6892 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6893 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6894 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6895 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6896 then :
6897 printf %s "(cached) " >&6
6898 else case e in #(
6899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6901 int i;
6902 _ACEOF
6903 if ac_fn_c_try_compile "$LINENO"
6904 then :
6905 xorg_cv_cc_flag_unused_command_line_argument=yes
6906 else case e in #(
6907 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6908 esac
6909 fi
6910 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6911 esac
6912 fi
6913 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6914 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6916 CFLAGS="$xorg_testset_save_CFLAGS"
6917 fi
6918
6919 found="no"
6920
6921 if test $found = "no" ; then
6922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6924 fi
6925
6926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6928 fi
6929
6930 CFLAGS="$CFLAGS -Wunused"
6931
6932 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6933 printf %s "checking if $CC supports -Wunused... " >&6; }
6934 cacheid=xorg_cv_cc_flag__Wunused
6935 if eval test \${$cacheid+y}
6936 then :
6937 printf %s "(cached) " >&6
6938 else case e in #(
6939 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6941 int i;
6942 int
6943 main (void)
6944 {
6945
6946 ;
6947 return 0;
6948 }
6949 _ACEOF
6950 if ac_fn_c_try_link "$LINENO"
6951 then :
6952 eval $cacheid=yes
6953 else case e in #(
6954 e) eval $cacheid=no ;;
6955 esac
6956 fi
6957 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6958 conftest$ac_exeext conftest.$ac_ext ;;
6959 esac
6960 fi
6961
6962
6963 CFLAGS="$xorg_testset_save_CFLAGS"
6964
6965 eval supported=\$$cacheid
6966 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6967 printf '%s\n' "$supported" >&6; }
6968 if test "$supported" = "yes" ; then
6969 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6970 found="yes"
6971 fi
6972 fi
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988 xorg_testset_save_CFLAGS="$CFLAGS"
6989
6990 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6992 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6993 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6994 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6995 then :
6996 printf %s "(cached) " >&6
6997 else case e in #(
6998 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h. */
7000 int i;
7001 _ACEOF
7002 if ac_fn_c_try_compile "$LINENO"
7003 then :
7004 xorg_cv_cc_flag_unknown_warning_option=yes
7005 else case e in #(
7006 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7007 esac
7008 fi
7009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7010 esac
7011 fi
7012 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7013 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7014 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7015 CFLAGS="$xorg_testset_save_CFLAGS"
7016 fi
7017
7018 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7021 fi
7022 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7023 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7024 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7025 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7026 then :
7027 printf %s "(cached) " >&6
7028 else case e in #(
7029 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h. */
7031 int i;
7032 _ACEOF
7033 if ac_fn_c_try_compile "$LINENO"
7034 then :
7035 xorg_cv_cc_flag_unused_command_line_argument=yes
7036 else case e in #(
7037 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7038 esac
7039 fi
7040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7041 esac
7042 fi
7043 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7044 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7045 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7046 CFLAGS="$xorg_testset_save_CFLAGS"
7047 fi
7048
7049 found="no"
7050
7051 if test $found = "no" ; then
7052 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7054 fi
7055
7056 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7057 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7058 fi
7059
7060 CFLAGS="$CFLAGS -Wuninitialized"
7061
7062 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
7063 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
7064 cacheid=xorg_cv_cc_flag__Wuninitialized
7065 if eval test \${$cacheid+y}
7066 then :
7067 printf %s "(cached) " >&6
7068 else case e in #(
7069 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070 /* end confdefs.h. */
7071 int i;
7072 int
7073 main (void)
7074 {
7075
7076 ;
7077 return 0;
7078 }
7079 _ACEOF
7080 if ac_fn_c_try_link "$LINENO"
7081 then :
7082 eval $cacheid=yes
7083 else case e in #(
7084 e) eval $cacheid=no ;;
7085 esac
7086 fi
7087 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7088 conftest$ac_exeext conftest.$ac_ext ;;
7089 esac
7090 fi
7091
7092
7093 CFLAGS="$xorg_testset_save_CFLAGS"
7094
7095 eval supported=\$$cacheid
7096 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7097 printf '%s\n' "$supported" >&6; }
7098 if test "$supported" = "yes" ; then
7099 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
7100 found="yes"
7101 fi
7102 fi
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118 xorg_testset_save_CFLAGS="$CFLAGS"
7119
7120 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7122 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7123 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7124 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7125 then :
7126 printf %s "(cached) " >&6
7127 else case e in #(
7128 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7130 int i;
7131 _ACEOF
7132 if ac_fn_c_try_compile "$LINENO"
7133 then :
7134 xorg_cv_cc_flag_unknown_warning_option=yes
7135 else case e in #(
7136 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7137 esac
7138 fi
7139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7140 esac
7141 fi
7142 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7143 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7144 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7145 CFLAGS="$xorg_testset_save_CFLAGS"
7146 fi
7147
7148 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7151 fi
7152 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7153 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7154 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7155 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7156 then :
7157 printf %s "(cached) " >&6
7158 else case e in #(
7159 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7161 int i;
7162 _ACEOF
7163 if ac_fn_c_try_compile "$LINENO"
7164 then :
7165 xorg_cv_cc_flag_unused_command_line_argument=yes
7166 else case e in #(
7167 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7168 esac
7169 fi
7170 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7171 esac
7172 fi
7173 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7174 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7175 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7176 CFLAGS="$xorg_testset_save_CFLAGS"
7177 fi
7178
7179 found="no"
7180
7181 if test $found = "no" ; then
7182 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7184 fi
7185
7186 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7187 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7188 fi
7189
7190 CFLAGS="$CFLAGS -Wshadow"
7191
7192 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7193 printf %s "checking if $CC supports -Wshadow... " >&6; }
7194 cacheid=xorg_cv_cc_flag__Wshadow
7195 if eval test \${$cacheid+y}
7196 then :
7197 printf %s "(cached) " >&6
7198 else case e in #(
7199 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201 int i;
7202 int
7203 main (void)
7204 {
7205
7206 ;
7207 return 0;
7208 }
7209 _ACEOF
7210 if ac_fn_c_try_link "$LINENO"
7211 then :
7212 eval $cacheid=yes
7213 else case e in #(
7214 e) eval $cacheid=no ;;
7215 esac
7216 fi
7217 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7218 conftest$ac_exeext conftest.$ac_ext ;;
7219 esac
7220 fi
7221
7222
7223 CFLAGS="$xorg_testset_save_CFLAGS"
7224
7225 eval supported=\$$cacheid
7226 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7227 printf '%s\n' "$supported" >&6; }
7228 if test "$supported" = "yes" ; then
7229 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7230 found="yes"
7231 fi
7232 fi
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248 xorg_testset_save_CFLAGS="$CFLAGS"
7249
7250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7252 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7253 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7254 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7255 then :
7256 printf %s "(cached) " >&6
7257 else case e in #(
7258 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7260 int i;
7261 _ACEOF
7262 if ac_fn_c_try_compile "$LINENO"
7263 then :
7264 xorg_cv_cc_flag_unknown_warning_option=yes
7265 else case e in #(
7266 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7267 esac
7268 fi
7269 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7270 esac
7271 fi
7272 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7273 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7275 CFLAGS="$xorg_testset_save_CFLAGS"
7276 fi
7277
7278 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7281 fi
7282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7283 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7284 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7285 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7286 then :
7287 printf %s "(cached) " >&6
7288 else case e in #(
7289 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7291 int i;
7292 _ACEOF
7293 if ac_fn_c_try_compile "$LINENO"
7294 then :
7295 xorg_cv_cc_flag_unused_command_line_argument=yes
7296 else case e in #(
7297 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7298 esac
7299 fi
7300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7301 esac
7302 fi
7303 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7304 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7305 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7306 CFLAGS="$xorg_testset_save_CFLAGS"
7307 fi
7308
7309 found="no"
7310
7311 if test $found = "no" ; then
7312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7314 fi
7315
7316 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7318 fi
7319
7320 CFLAGS="$CFLAGS -Wmissing-noreturn"
7321
7322 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7323 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7324 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7325 if eval test \${$cacheid+y}
7326 then :
7327 printf %s "(cached) " >&6
7328 else case e in #(
7329 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7330 /* end confdefs.h. */
7331 int i;
7332 int
7333 main (void)
7334 {
7335
7336 ;
7337 return 0;
7338 }
7339 _ACEOF
7340 if ac_fn_c_try_link "$LINENO"
7341 then :
7342 eval $cacheid=yes
7343 else case e in #(
7344 e) eval $cacheid=no ;;
7345 esac
7346 fi
7347 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7348 conftest$ac_exeext conftest.$ac_ext ;;
7349 esac
7350 fi
7351
7352
7353 CFLAGS="$xorg_testset_save_CFLAGS"
7354
7355 eval supported=\$$cacheid
7356 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7357 printf '%s\n' "$supported" >&6; }
7358 if test "$supported" = "yes" ; then
7359 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7360 found="yes"
7361 fi
7362 fi
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378 xorg_testset_save_CFLAGS="$CFLAGS"
7379
7380 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7382 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7383 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7384 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7385 then :
7386 printf %s "(cached) " >&6
7387 else case e in #(
7388 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389 /* end confdefs.h. */
7390 int i;
7391 _ACEOF
7392 if ac_fn_c_try_compile "$LINENO"
7393 then :
7394 xorg_cv_cc_flag_unknown_warning_option=yes
7395 else case e in #(
7396 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7397 esac
7398 fi
7399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7400 esac
7401 fi
7402 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7403 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7404 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7405 CFLAGS="$xorg_testset_save_CFLAGS"
7406 fi
7407
7408 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7411 fi
7412 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7413 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7414 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7415 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7416 then :
7417 printf %s "(cached) " >&6
7418 else case e in #(
7419 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7421 int i;
7422 _ACEOF
7423 if ac_fn_c_try_compile "$LINENO"
7424 then :
7425 xorg_cv_cc_flag_unused_command_line_argument=yes
7426 else case e in #(
7427 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7428 esac
7429 fi
7430 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7431 esac
7432 fi
7433 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7434 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7436 CFLAGS="$xorg_testset_save_CFLAGS"
7437 fi
7438
7439 found="no"
7440
7441 if test $found = "no" ; then
7442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7444 fi
7445
7446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7448 fi
7449
7450 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7451
7452 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7453 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7454 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7455 if eval test \${$cacheid+y}
7456 then :
7457 printf %s "(cached) " >&6
7458 else case e in #(
7459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7460 /* end confdefs.h. */
7461 int i;
7462 int
7463 main (void)
7464 {
7465
7466 ;
7467 return 0;
7468 }
7469 _ACEOF
7470 if ac_fn_c_try_link "$LINENO"
7471 then :
7472 eval $cacheid=yes
7473 else case e in #(
7474 e) eval $cacheid=no ;;
7475 esac
7476 fi
7477 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7478 conftest$ac_exeext conftest.$ac_ext ;;
7479 esac
7480 fi
7481
7482
7483 CFLAGS="$xorg_testset_save_CFLAGS"
7484
7485 eval supported=\$$cacheid
7486 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7487 printf '%s\n' "$supported" >&6; }
7488 if test "$supported" = "yes" ; then
7489 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7490 found="yes"
7491 fi
7492 fi
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508 xorg_testset_save_CFLAGS="$CFLAGS"
7509
7510 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7511 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7512 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7513 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7514 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7515 then :
7516 printf %s "(cached) " >&6
7517 else case e in #(
7518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7519 /* end confdefs.h. */
7520 int i;
7521 _ACEOF
7522 if ac_fn_c_try_compile "$LINENO"
7523 then :
7524 xorg_cv_cc_flag_unknown_warning_option=yes
7525 else case e in #(
7526 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7527 esac
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7530 esac
7531 fi
7532 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7533 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7535 CFLAGS="$xorg_testset_save_CFLAGS"
7536 fi
7537
7538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7541 fi
7542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7543 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7544 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7545 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7546 then :
7547 printf %s "(cached) " >&6
7548 else case e in #(
7549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7551 int i;
7552 _ACEOF
7553 if ac_fn_c_try_compile "$LINENO"
7554 then :
7555 xorg_cv_cc_flag_unused_command_line_argument=yes
7556 else case e in #(
7557 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7558 esac
7559 fi
7560 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7561 esac
7562 fi
7563 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7564 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7565 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7566 CFLAGS="$xorg_testset_save_CFLAGS"
7567 fi
7568
7569 found="no"
7570
7571 if test $found = "no" ; then
7572 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7574 fi
7575
7576 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7578 fi
7579
7580 CFLAGS="$CFLAGS -Wredundant-decls"
7581
7582 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7583 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7584 cacheid=xorg_cv_cc_flag__Wredundant_decls
7585 if eval test \${$cacheid+y}
7586 then :
7587 printf %s "(cached) " >&6
7588 else case e in #(
7589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 int i;
7592 int
7593 main (void)
7594 {
7595
7596 ;
7597 return 0;
7598 }
7599 _ACEOF
7600 if ac_fn_c_try_link "$LINENO"
7601 then :
7602 eval $cacheid=yes
7603 else case e in #(
7604 e) eval $cacheid=no ;;
7605 esac
7606 fi
7607 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7608 conftest$ac_exeext conftest.$ac_ext ;;
7609 esac
7610 fi
7611
7612
7613 CFLAGS="$xorg_testset_save_CFLAGS"
7614
7615 eval supported=\$$cacheid
7616 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7617 printf '%s\n' "$supported" >&6; }
7618 if test "$supported" = "yes" ; then
7619 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7620 found="yes"
7621 fi
7622 fi
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638 xorg_testset_save_CFLAGS="$CFLAGS"
7639
7640 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7641 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7642 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7643 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7644 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7645 then :
7646 printf %s "(cached) " >&6
7647 else case e in #(
7648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7650 int i;
7651 _ACEOF
7652 if ac_fn_c_try_compile "$LINENO"
7653 then :
7654 xorg_cv_cc_flag_unknown_warning_option=yes
7655 else case e in #(
7656 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7657 esac
7658 fi
7659 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7660 esac
7661 fi
7662 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7663 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7664 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7665 CFLAGS="$xorg_testset_save_CFLAGS"
7666 fi
7667
7668 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7669 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7670 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7671 fi
7672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7673 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7674 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7675 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7676 then :
7677 printf %s "(cached) " >&6
7678 else case e in #(
7679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 int i;
7682 _ACEOF
7683 if ac_fn_c_try_compile "$LINENO"
7684 then :
7685 xorg_cv_cc_flag_unused_command_line_argument=yes
7686 else case e in #(
7687 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7688 esac
7689 fi
7690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7691 esac
7692 fi
7693 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7694 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7696 CFLAGS="$xorg_testset_save_CFLAGS"
7697 fi
7698
7699 found="no"
7700
7701 if test $found = "no" ; then
7702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7704 fi
7705
7706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7708 fi
7709
7710 CFLAGS="$CFLAGS -Wlogical-op"
7711
7712 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7713 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7714 cacheid=xorg_cv_cc_flag__Wlogical_op
7715 if eval test \${$cacheid+y}
7716 then :
7717 printf %s "(cached) " >&6
7718 else case e in #(
7719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7720 /* end confdefs.h. */
7721 int i;
7722 int
7723 main (void)
7724 {
7725
7726 ;
7727 return 0;
7728 }
7729 _ACEOF
7730 if ac_fn_c_try_link "$LINENO"
7731 then :
7732 eval $cacheid=yes
7733 else case e in #(
7734 e) eval $cacheid=no ;;
7735 esac
7736 fi
7737 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7738 conftest$ac_exeext conftest.$ac_ext ;;
7739 esac
7740 fi
7741
7742
7743 CFLAGS="$xorg_testset_save_CFLAGS"
7744
7745 eval supported=\$$cacheid
7746 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7747 printf '%s\n' "$supported" >&6; }
7748 if test "$supported" = "yes" ; then
7749 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7750 found="yes"
7751 fi
7752 fi
7753
7754
7755
7756 # These are currently disabled because they are noisy. They will be enabled
7757 # in the future once the codebase is sufficiently modernized to silence
7758 # them. For now, I don't want them to drown out the other warnings.
7759 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7760 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7761 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7762
7763 # Turn some warnings into errors, so we don't accidentally get successful builds
7764 # when there are problems that should be fixed.
7765
7766 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780 xorg_testset_save_CFLAGS="$CFLAGS"
7781
7782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7784 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7785 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7786 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7787 then :
7788 printf %s "(cached) " >&6
7789 else case e in #(
7790 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791 /* end confdefs.h. */
7792 int i;
7793 _ACEOF
7794 if ac_fn_c_try_compile "$LINENO"
7795 then :
7796 xorg_cv_cc_flag_unknown_warning_option=yes
7797 else case e in #(
7798 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7799 esac
7800 fi
7801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7802 esac
7803 fi
7804 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7805 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7806 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7807 CFLAGS="$xorg_testset_save_CFLAGS"
7808 fi
7809
7810 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7811 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7813 fi
7814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7815 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7816 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7817 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7818 then :
7819 printf %s "(cached) " >&6
7820 else case e in #(
7821 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7823 int i;
7824 _ACEOF
7825 if ac_fn_c_try_compile "$LINENO"
7826 then :
7827 xorg_cv_cc_flag_unused_command_line_argument=yes
7828 else case e in #(
7829 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7830 esac
7831 fi
7832 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7833 esac
7834 fi
7835 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7836 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7838 CFLAGS="$xorg_testset_save_CFLAGS"
7839 fi
7840
7841 found="no"
7842
7843 if test $found = "no" ; then
7844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7846 fi
7847
7848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7850 fi
7851
7852 CFLAGS="$CFLAGS -Werror=implicit"
7853
7854 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7855 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7856 cacheid=xorg_cv_cc_flag__Werror_implicit
7857 if eval test \${$cacheid+y}
7858 then :
7859 printf %s "(cached) " >&6
7860 else case e in #(
7861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862 /* end confdefs.h. */
7863 int i;
7864 int
7865 main (void)
7866 {
7867
7868 ;
7869 return 0;
7870 }
7871 _ACEOF
7872 if ac_fn_c_try_link "$LINENO"
7873 then :
7874 eval $cacheid=yes
7875 else case e in #(
7876 e) eval $cacheid=no ;;
7877 esac
7878 fi
7879 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7880 conftest$ac_exeext conftest.$ac_ext ;;
7881 esac
7882 fi
7883
7884
7885 CFLAGS="$xorg_testset_save_CFLAGS"
7886
7887 eval supported=\$$cacheid
7888 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7889 printf '%s\n' "$supported" >&6; }
7890 if test "$supported" = "yes" ; then
7891 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7892 found="yes"
7893 fi
7894 fi
7895
7896 if test $found = "no" ; then
7897 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7899 fi
7900
7901 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7902 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7903 fi
7904
7905 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7906
7907 { 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
7908 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7909 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7910 if eval test \${$cacheid+y}
7911 then :
7912 printf %s "(cached) " >&6
7913 else case e in #(
7914 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7915 /* end confdefs.h. */
7916 int i;
7917 int
7918 main (void)
7919 {
7920
7921 ;
7922 return 0;
7923 }
7924 _ACEOF
7925 if ac_fn_c_try_link "$LINENO"
7926 then :
7927 eval $cacheid=yes
7928 else case e in #(
7929 e) eval $cacheid=no ;;
7930 esac
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7933 conftest$ac_exeext conftest.$ac_ext ;;
7934 esac
7935 fi
7936
7937
7938 CFLAGS="$xorg_testset_save_CFLAGS"
7939
7940 eval supported=\$$cacheid
7941 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7942 printf '%s\n' "$supported" >&6; }
7943 if test "$supported" = "yes" ; then
7944 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7945 found="yes"
7946 fi
7947 fi
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963 xorg_testset_save_CFLAGS="$CFLAGS"
7964
7965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7967 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7968 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7969 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7970 then :
7971 printf %s "(cached) " >&6
7972 else case e in #(
7973 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7975 int i;
7976 _ACEOF
7977 if ac_fn_c_try_compile "$LINENO"
7978 then :
7979 xorg_cv_cc_flag_unknown_warning_option=yes
7980 else case e in #(
7981 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7982 esac
7983 fi
7984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7985 esac
7986 fi
7987 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7988 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7990 CFLAGS="$xorg_testset_save_CFLAGS"
7991 fi
7992
7993 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7996 fi
7997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7998 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7999 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8000 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8001 then :
8002 printf %s "(cached) " >&6
8003 else case e in #(
8004 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 int i;
8007 _ACEOF
8008 if ac_fn_c_try_compile "$LINENO"
8009 then :
8010 xorg_cv_cc_flag_unused_command_line_argument=yes
8011 else case e in #(
8012 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8013 esac
8014 fi
8015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8016 esac
8017 fi
8018 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8019 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8020 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8021 CFLAGS="$xorg_testset_save_CFLAGS"
8022 fi
8023
8024 found="no"
8025
8026 if test $found = "no" ; then
8027 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8028 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8029 fi
8030
8031 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8033 fi
8034
8035 CFLAGS="$CFLAGS -Werror=nonnull"
8036
8037 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
8038 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
8039 cacheid=xorg_cv_cc_flag__Werror_nonnull
8040 if eval test \${$cacheid+y}
8041 then :
8042 printf %s "(cached) " >&6
8043 else case e in #(
8044 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8046 int i;
8047 int
8048 main (void)
8049 {
8050
8051 ;
8052 return 0;
8053 }
8054 _ACEOF
8055 if ac_fn_c_try_link "$LINENO"
8056 then :
8057 eval $cacheid=yes
8058 else case e in #(
8059 e) eval $cacheid=no ;;
8060 esac
8061 fi
8062 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8063 conftest$ac_exeext conftest.$ac_ext ;;
8064 esac
8065 fi
8066
8067
8068 CFLAGS="$xorg_testset_save_CFLAGS"
8069
8070 eval supported=\$$cacheid
8071 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8072 printf '%s\n' "$supported" >&6; }
8073 if test "$supported" = "yes" ; then
8074 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8075 found="yes"
8076 fi
8077 fi
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093 xorg_testset_save_CFLAGS="$CFLAGS"
8094
8095 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8096 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8097 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8098 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8099 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8100 then :
8101 printf %s "(cached) " >&6
8102 else case e in #(
8103 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h. */
8105 int i;
8106 _ACEOF
8107 if ac_fn_c_try_compile "$LINENO"
8108 then :
8109 xorg_cv_cc_flag_unknown_warning_option=yes
8110 else case e in #(
8111 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8112 esac
8113 fi
8114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8115 esac
8116 fi
8117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8118 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8119 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8120 CFLAGS="$xorg_testset_save_CFLAGS"
8121 fi
8122
8123 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8124 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8125 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8126 fi
8127 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8128 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8129 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8130 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8131 then :
8132 printf %s "(cached) " >&6
8133 else case e in #(
8134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8135 /* end confdefs.h. */
8136 int i;
8137 _ACEOF
8138 if ac_fn_c_try_compile "$LINENO"
8139 then :
8140 xorg_cv_cc_flag_unused_command_line_argument=yes
8141 else case e in #(
8142 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8143 esac
8144 fi
8145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8146 esac
8147 fi
8148 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8149 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8150 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8151 CFLAGS="$xorg_testset_save_CFLAGS"
8152 fi
8153
8154 found="no"
8155
8156 if test $found = "no" ; then
8157 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8158 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8159 fi
8160
8161 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8163 fi
8164
8165 CFLAGS="$CFLAGS -Werror=init-self"
8166
8167 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
8168 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
8169 cacheid=xorg_cv_cc_flag__Werror_init_self
8170 if eval test \${$cacheid+y}
8171 then :
8172 printf %s "(cached) " >&6
8173 else case e in #(
8174 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8176 int i;
8177 int
8178 main (void)
8179 {
8180
8181 ;
8182 return 0;
8183 }
8184 _ACEOF
8185 if ac_fn_c_try_link "$LINENO"
8186 then :
8187 eval $cacheid=yes
8188 else case e in #(
8189 e) eval $cacheid=no ;;
8190 esac
8191 fi
8192 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8193 conftest$ac_exeext conftest.$ac_ext ;;
8194 esac
8195 fi
8196
8197
8198 CFLAGS="$xorg_testset_save_CFLAGS"
8199
8200 eval supported=\$$cacheid
8201 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8202 printf '%s\n' "$supported" >&6; }
8203 if test "$supported" = "yes" ; then
8204 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8205 found="yes"
8206 fi
8207 fi
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223 xorg_testset_save_CFLAGS="$CFLAGS"
8224
8225 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8227 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8228 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8229 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8230 then :
8231 printf %s "(cached) " >&6
8232 else case e in #(
8233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8234 /* end confdefs.h. */
8235 int i;
8236 _ACEOF
8237 if ac_fn_c_try_compile "$LINENO"
8238 then :
8239 xorg_cv_cc_flag_unknown_warning_option=yes
8240 else case e in #(
8241 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8242 esac
8243 fi
8244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8245 esac
8246 fi
8247 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8248 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8249 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8250 CFLAGS="$xorg_testset_save_CFLAGS"
8251 fi
8252
8253 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8254 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8256 fi
8257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8258 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8259 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8260 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8261 then :
8262 printf %s "(cached) " >&6
8263 else case e in #(
8264 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8265 /* end confdefs.h. */
8266 int i;
8267 _ACEOF
8268 if ac_fn_c_try_compile "$LINENO"
8269 then :
8270 xorg_cv_cc_flag_unused_command_line_argument=yes
8271 else case e in #(
8272 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8273 esac
8274 fi
8275 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8276 esac
8277 fi
8278 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8279 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8280 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8281 CFLAGS="$xorg_testset_save_CFLAGS"
8282 fi
8283
8284 found="no"
8285
8286 if test $found = "no" ; then
8287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8289 fi
8290
8291 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8292 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8293 fi
8294
8295 CFLAGS="$CFLAGS -Werror=main"
8296
8297 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8298 printf %s "checking if $CC supports -Werror=main... " >&6; }
8299 cacheid=xorg_cv_cc_flag__Werror_main
8300 if eval test \${$cacheid+y}
8301 then :
8302 printf %s "(cached) " >&6
8303 else case e in #(
8304 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305 /* end confdefs.h. */
8306 int i;
8307 int
8308 main (void)
8309 {
8310
8311 ;
8312 return 0;
8313 }
8314 _ACEOF
8315 if ac_fn_c_try_link "$LINENO"
8316 then :
8317 eval $cacheid=yes
8318 else case e in #(
8319 e) eval $cacheid=no ;;
8320 esac
8321 fi
8322 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8323 conftest$ac_exeext conftest.$ac_ext ;;
8324 esac
8325 fi
8326
8327
8328 CFLAGS="$xorg_testset_save_CFLAGS"
8329
8330 eval supported=\$$cacheid
8331 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8332 printf '%s\n' "$supported" >&6; }
8333 if test "$supported" = "yes" ; then
8334 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8335 found="yes"
8336 fi
8337 fi
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353 xorg_testset_save_CFLAGS="$CFLAGS"
8354
8355 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8357 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8358 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8359 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8360 then :
8361 printf %s "(cached) " >&6
8362 else case e in #(
8363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8364 /* end confdefs.h. */
8365 int i;
8366 _ACEOF
8367 if ac_fn_c_try_compile "$LINENO"
8368 then :
8369 xorg_cv_cc_flag_unknown_warning_option=yes
8370 else case e in #(
8371 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8372 esac
8373 fi
8374 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8375 esac
8376 fi
8377 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8378 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8380 CFLAGS="$xorg_testset_save_CFLAGS"
8381 fi
8382
8383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8386 fi
8387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8388 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8389 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8390 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8391 then :
8392 printf %s "(cached) " >&6
8393 else case e in #(
8394 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8395 /* end confdefs.h. */
8396 int i;
8397 _ACEOF
8398 if ac_fn_c_try_compile "$LINENO"
8399 then :
8400 xorg_cv_cc_flag_unused_command_line_argument=yes
8401 else case e in #(
8402 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8403 esac
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8406 esac
8407 fi
8408 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8409 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8411 CFLAGS="$xorg_testset_save_CFLAGS"
8412 fi
8413
8414 found="no"
8415
8416 if test $found = "no" ; then
8417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8419 fi
8420
8421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8423 fi
8424
8425 CFLAGS="$CFLAGS -Werror=missing-braces"
8426
8427 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8428 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8429 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8430 if eval test \${$cacheid+y}
8431 then :
8432 printf %s "(cached) " >&6
8433 else case e in #(
8434 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435 /* end confdefs.h. */
8436 int i;
8437 int
8438 main (void)
8439 {
8440
8441 ;
8442 return 0;
8443 }
8444 _ACEOF
8445 if ac_fn_c_try_link "$LINENO"
8446 then :
8447 eval $cacheid=yes
8448 else case e in #(
8449 e) eval $cacheid=no ;;
8450 esac
8451 fi
8452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8453 conftest$ac_exeext conftest.$ac_ext ;;
8454 esac
8455 fi
8456
8457
8458 CFLAGS="$xorg_testset_save_CFLAGS"
8459
8460 eval supported=\$$cacheid
8461 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8462 printf '%s\n' "$supported" >&6; }
8463 if test "$supported" = "yes" ; then
8464 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8465 found="yes"
8466 fi
8467 fi
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483 xorg_testset_save_CFLAGS="$CFLAGS"
8484
8485 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8486 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8487 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8488 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8489 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8490 then :
8491 printf %s "(cached) " >&6
8492 else case e in #(
8493 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8494 /* end confdefs.h. */
8495 int i;
8496 _ACEOF
8497 if ac_fn_c_try_compile "$LINENO"
8498 then :
8499 xorg_cv_cc_flag_unknown_warning_option=yes
8500 else case e in #(
8501 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8502 esac
8503 fi
8504 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8505 esac
8506 fi
8507 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8508 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8509 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8510 CFLAGS="$xorg_testset_save_CFLAGS"
8511 fi
8512
8513 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8514 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8516 fi
8517 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8518 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8519 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8520 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8521 then :
8522 printf %s "(cached) " >&6
8523 else case e in #(
8524 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525 /* end confdefs.h. */
8526 int i;
8527 _ACEOF
8528 if ac_fn_c_try_compile "$LINENO"
8529 then :
8530 xorg_cv_cc_flag_unused_command_line_argument=yes
8531 else case e in #(
8532 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8533 esac
8534 fi
8535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8536 esac
8537 fi
8538 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8539 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8541 CFLAGS="$xorg_testset_save_CFLAGS"
8542 fi
8543
8544 found="no"
8545
8546 if test $found = "no" ; then
8547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8549 fi
8550
8551 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8553 fi
8554
8555 CFLAGS="$CFLAGS -Werror=sequence-point"
8556
8557 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8558 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8559 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8560 if eval test \${$cacheid+y}
8561 then :
8562 printf %s "(cached) " >&6
8563 else case e in #(
8564 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8565 /* end confdefs.h. */
8566 int i;
8567 int
8568 main (void)
8569 {
8570
8571 ;
8572 return 0;
8573 }
8574 _ACEOF
8575 if ac_fn_c_try_link "$LINENO"
8576 then :
8577 eval $cacheid=yes
8578 else case e in #(
8579 e) eval $cacheid=no ;;
8580 esac
8581 fi
8582 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8583 conftest$ac_exeext conftest.$ac_ext ;;
8584 esac
8585 fi
8586
8587
8588 CFLAGS="$xorg_testset_save_CFLAGS"
8589
8590 eval supported=\$$cacheid
8591 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8592 printf '%s\n' "$supported" >&6; }
8593 if test "$supported" = "yes" ; then
8594 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8595 found="yes"
8596 fi
8597 fi
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613 xorg_testset_save_CFLAGS="$CFLAGS"
8614
8615 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8616 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8617 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8618 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8619 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8620 then :
8621 printf %s "(cached) " >&6
8622 else case e in #(
8623 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8625 int i;
8626 _ACEOF
8627 if ac_fn_c_try_compile "$LINENO"
8628 then :
8629 xorg_cv_cc_flag_unknown_warning_option=yes
8630 else case e in #(
8631 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8632 esac
8633 fi
8634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8635 esac
8636 fi
8637 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8638 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8639 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8640 CFLAGS="$xorg_testset_save_CFLAGS"
8641 fi
8642
8643 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8644 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8645 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8646 fi
8647 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8648 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8649 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8650 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8651 then :
8652 printf %s "(cached) " >&6
8653 else case e in #(
8654 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655 /* end confdefs.h. */
8656 int i;
8657 _ACEOF
8658 if ac_fn_c_try_compile "$LINENO"
8659 then :
8660 xorg_cv_cc_flag_unused_command_line_argument=yes
8661 else case e in #(
8662 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8663 esac
8664 fi
8665 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8666 esac
8667 fi
8668 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8669 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8670 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8671 CFLAGS="$xorg_testset_save_CFLAGS"
8672 fi
8673
8674 found="no"
8675
8676 if test $found = "no" ; then
8677 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8678 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8679 fi
8680
8681 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8683 fi
8684
8685 CFLAGS="$CFLAGS -Werror=return-type"
8686
8687 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8688 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8689 cacheid=xorg_cv_cc_flag__Werror_return_type
8690 if eval test \${$cacheid+y}
8691 then :
8692 printf %s "(cached) " >&6
8693 else case e in #(
8694 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8696 int i;
8697 int
8698 main (void)
8699 {
8700
8701 ;
8702 return 0;
8703 }
8704 _ACEOF
8705 if ac_fn_c_try_link "$LINENO"
8706 then :
8707 eval $cacheid=yes
8708 else case e in #(
8709 e) eval $cacheid=no ;;
8710 esac
8711 fi
8712 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8713 conftest$ac_exeext conftest.$ac_ext ;;
8714 esac
8715 fi
8716
8717
8718 CFLAGS="$xorg_testset_save_CFLAGS"
8719
8720 eval supported=\$$cacheid
8721 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8722 printf '%s\n' "$supported" >&6; }
8723 if test "$supported" = "yes" ; then
8724 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8725 found="yes"
8726 fi
8727 fi
8728
8729 if test $found = "no" ; then
8730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8731 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8732 fi
8733
8734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8736 fi
8737
8738 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8739
8740 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8741 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8742 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8743 if eval test \${$cacheid+y}
8744 then :
8745 printf %s "(cached) " >&6
8746 else case e in #(
8747 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748 /* end confdefs.h. */
8749 int i;
8750 int
8751 main (void)
8752 {
8753
8754 ;
8755 return 0;
8756 }
8757 _ACEOF
8758 if ac_fn_c_try_link "$LINENO"
8759 then :
8760 eval $cacheid=yes
8761 else case e in #(
8762 e) eval $cacheid=no ;;
8763 esac
8764 fi
8765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8766 conftest$ac_exeext conftest.$ac_ext ;;
8767 esac
8768 fi
8769
8770
8771 CFLAGS="$xorg_testset_save_CFLAGS"
8772
8773 eval supported=\$$cacheid
8774 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8775 printf '%s\n' "$supported" >&6; }
8776 if test "$supported" = "yes" ; then
8777 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8778 found="yes"
8779 fi
8780 fi
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796 xorg_testset_save_CFLAGS="$CFLAGS"
8797
8798 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8800 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8801 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8802 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8803 then :
8804 printf %s "(cached) " >&6
8805 else case e in #(
8806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807 /* end confdefs.h. */
8808 int i;
8809 _ACEOF
8810 if ac_fn_c_try_compile "$LINENO"
8811 then :
8812 xorg_cv_cc_flag_unknown_warning_option=yes
8813 else case e in #(
8814 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8815 esac
8816 fi
8817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8818 esac
8819 fi
8820 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8821 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8823 CFLAGS="$xorg_testset_save_CFLAGS"
8824 fi
8825
8826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8829 fi
8830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8831 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8832 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8833 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8834 then :
8835 printf %s "(cached) " >&6
8836 else case e in #(
8837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8838 /* end confdefs.h. */
8839 int i;
8840 _ACEOF
8841 if ac_fn_c_try_compile "$LINENO"
8842 then :
8843 xorg_cv_cc_flag_unused_command_line_argument=yes
8844 else case e in #(
8845 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8846 esac
8847 fi
8848 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8849 esac
8850 fi
8851 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8852 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8854 CFLAGS="$xorg_testset_save_CFLAGS"
8855 fi
8856
8857 found="no"
8858
8859 if test $found = "no" ; then
8860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8862 fi
8863
8864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8866 fi
8867
8868 CFLAGS="$CFLAGS -Werror=trigraphs"
8869
8870 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8871 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8872 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8873 if eval test \${$cacheid+y}
8874 then :
8875 printf %s "(cached) " >&6
8876 else case e in #(
8877 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8878 /* end confdefs.h. */
8879 int i;
8880 int
8881 main (void)
8882 {
8883
8884 ;
8885 return 0;
8886 }
8887 _ACEOF
8888 if ac_fn_c_try_link "$LINENO"
8889 then :
8890 eval $cacheid=yes
8891 else case e in #(
8892 e) eval $cacheid=no ;;
8893 esac
8894 fi
8895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8896 conftest$ac_exeext conftest.$ac_ext ;;
8897 esac
8898 fi
8899
8900
8901 CFLAGS="$xorg_testset_save_CFLAGS"
8902
8903 eval supported=\$$cacheid
8904 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8905 printf '%s\n' "$supported" >&6; }
8906 if test "$supported" = "yes" ; then
8907 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8908 found="yes"
8909 fi
8910 fi
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926 xorg_testset_save_CFLAGS="$CFLAGS"
8927
8928 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8930 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8931 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8932 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8933 then :
8934 printf %s "(cached) " >&6
8935 else case e in #(
8936 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h. */
8938 int i;
8939 _ACEOF
8940 if ac_fn_c_try_compile "$LINENO"
8941 then :
8942 xorg_cv_cc_flag_unknown_warning_option=yes
8943 else case e in #(
8944 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8945 esac
8946 fi
8947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8948 esac
8949 fi
8950 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8951 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8952 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8953 CFLAGS="$xorg_testset_save_CFLAGS"
8954 fi
8955
8956 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8957 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8959 fi
8960 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8961 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8962 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8963 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8964 then :
8965 printf %s "(cached) " >&6
8966 else case e in #(
8967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8969 int i;
8970 _ACEOF
8971 if ac_fn_c_try_compile "$LINENO"
8972 then :
8973 xorg_cv_cc_flag_unused_command_line_argument=yes
8974 else case e in #(
8975 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8976 esac
8977 fi
8978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8979 esac
8980 fi
8981 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8982 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8983 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8984 CFLAGS="$xorg_testset_save_CFLAGS"
8985 fi
8986
8987 found="no"
8988
8989 if test $found = "no" ; then
8990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8992 fi
8993
8994 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8995 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8996 fi
8997
8998 CFLAGS="$CFLAGS -Werror=array-bounds"
8999
9000 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
9001 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
9002 cacheid=xorg_cv_cc_flag__Werror_array_bounds
9003 if eval test \${$cacheid+y}
9004 then :
9005 printf %s "(cached) " >&6
9006 else case e in #(
9007 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9009 int i;
9010 int
9011 main (void)
9012 {
9013
9014 ;
9015 return 0;
9016 }
9017 _ACEOF
9018 if ac_fn_c_try_link "$LINENO"
9019 then :
9020 eval $cacheid=yes
9021 else case e in #(
9022 e) eval $cacheid=no ;;
9023 esac
9024 fi
9025 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9026 conftest$ac_exeext conftest.$ac_ext ;;
9027 esac
9028 fi
9029
9030
9031 CFLAGS="$xorg_testset_save_CFLAGS"
9032
9033 eval supported=\$$cacheid
9034 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9035 printf '%s\n' "$supported" >&6; }
9036 if test "$supported" = "yes" ; then
9037 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9038 found="yes"
9039 fi
9040 fi
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056 xorg_testset_save_CFLAGS="$CFLAGS"
9057
9058 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9059 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9060 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9061 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9062 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9063 then :
9064 printf %s "(cached) " >&6
9065 else case e in #(
9066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 int i;
9069 _ACEOF
9070 if ac_fn_c_try_compile "$LINENO"
9071 then :
9072 xorg_cv_cc_flag_unknown_warning_option=yes
9073 else case e in #(
9074 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9075 esac
9076 fi
9077 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9078 esac
9079 fi
9080 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9081 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9082 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9083 CFLAGS="$xorg_testset_save_CFLAGS"
9084 fi
9085
9086 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9087 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9089 fi
9090 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9091 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9092 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9093 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9094 then :
9095 printf %s "(cached) " >&6
9096 else case e in #(
9097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098 /* end confdefs.h. */
9099 int i;
9100 _ACEOF
9101 if ac_fn_c_try_compile "$LINENO"
9102 then :
9103 xorg_cv_cc_flag_unused_command_line_argument=yes
9104 else case e in #(
9105 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9106 esac
9107 fi
9108 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9109 esac
9110 fi
9111 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9112 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9113 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9114 CFLAGS="$xorg_testset_save_CFLAGS"
9115 fi
9116
9117 found="no"
9118
9119 if test $found = "no" ; then
9120 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9121 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9122 fi
9123
9124 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9126 fi
9127
9128 CFLAGS="$CFLAGS -Werror=write-strings"
9129
9130 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9131 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
9132 cacheid=xorg_cv_cc_flag__Werror_write_strings
9133 if eval test \${$cacheid+y}
9134 then :
9135 printf %s "(cached) " >&6
9136 else case e in #(
9137 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9139 int i;
9140 int
9141 main (void)
9142 {
9143
9144 ;
9145 return 0;
9146 }
9147 _ACEOF
9148 if ac_fn_c_try_link "$LINENO"
9149 then :
9150 eval $cacheid=yes
9151 else case e in #(
9152 e) eval $cacheid=no ;;
9153 esac
9154 fi
9155 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9156 conftest$ac_exeext conftest.$ac_ext ;;
9157 esac
9158 fi
9159
9160
9161 CFLAGS="$xorg_testset_save_CFLAGS"
9162
9163 eval supported=\$$cacheid
9164 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9165 printf '%s\n' "$supported" >&6; }
9166 if test "$supported" = "yes" ; then
9167 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9168 found="yes"
9169 fi
9170 fi
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186 xorg_testset_save_CFLAGS="$CFLAGS"
9187
9188 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9189 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9190 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9191 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9192 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9193 then :
9194 printf %s "(cached) " >&6
9195 else case e in #(
9196 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9197 /* end confdefs.h. */
9198 int i;
9199 _ACEOF
9200 if ac_fn_c_try_compile "$LINENO"
9201 then :
9202 xorg_cv_cc_flag_unknown_warning_option=yes
9203 else case e in #(
9204 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9205 esac
9206 fi
9207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9208 esac
9209 fi
9210 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9211 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9212 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9213 CFLAGS="$xorg_testset_save_CFLAGS"
9214 fi
9215
9216 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9217 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9218 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9219 fi
9220 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9221 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9222 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9223 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9224 then :
9225 printf %s "(cached) " >&6
9226 else case e in #(
9227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9228 /* end confdefs.h. */
9229 int i;
9230 _ACEOF
9231 if ac_fn_c_try_compile "$LINENO"
9232 then :
9233 xorg_cv_cc_flag_unused_command_line_argument=yes
9234 else case e in #(
9235 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9236 esac
9237 fi
9238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9239 esac
9240 fi
9241 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9242 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9243 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9244 CFLAGS="$xorg_testset_save_CFLAGS"
9245 fi
9246
9247 found="no"
9248
9249 if test $found = "no" ; then
9250 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9252 fi
9253
9254 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9255 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9256 fi
9257
9258 CFLAGS="$CFLAGS -Werror=address"
9259
9260 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9261 printf %s "checking if $CC supports -Werror=address... " >&6; }
9262 cacheid=xorg_cv_cc_flag__Werror_address
9263 if eval test \${$cacheid+y}
9264 then :
9265 printf %s "(cached) " >&6
9266 else case e in #(
9267 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9268 /* end confdefs.h. */
9269 int i;
9270 int
9271 main (void)
9272 {
9273
9274 ;
9275 return 0;
9276 }
9277 _ACEOF
9278 if ac_fn_c_try_link "$LINENO"
9279 then :
9280 eval $cacheid=yes
9281 else case e in #(
9282 e) eval $cacheid=no ;;
9283 esac
9284 fi
9285 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9286 conftest$ac_exeext conftest.$ac_ext ;;
9287 esac
9288 fi
9289
9290
9291 CFLAGS="$xorg_testset_save_CFLAGS"
9292
9293 eval supported=\$$cacheid
9294 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9295 printf '%s\n' "$supported" >&6; }
9296 if test "$supported" = "yes" ; then
9297 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9298 found="yes"
9299 fi
9300 fi
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316 xorg_testset_save_CFLAGS="$CFLAGS"
9317
9318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9320 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9321 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9322 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9323 then :
9324 printf %s "(cached) " >&6
9325 else case e in #(
9326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327 /* end confdefs.h. */
9328 int i;
9329 _ACEOF
9330 if ac_fn_c_try_compile "$LINENO"
9331 then :
9332 xorg_cv_cc_flag_unknown_warning_option=yes
9333 else case e in #(
9334 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9335 esac
9336 fi
9337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9338 esac
9339 fi
9340 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9341 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9343 CFLAGS="$xorg_testset_save_CFLAGS"
9344 fi
9345
9346 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9349 fi
9350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9351 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9352 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9353 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9354 then :
9355 printf %s "(cached) " >&6
9356 else case e in #(
9357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9358 /* end confdefs.h. */
9359 int i;
9360 _ACEOF
9361 if ac_fn_c_try_compile "$LINENO"
9362 then :
9363 xorg_cv_cc_flag_unused_command_line_argument=yes
9364 else case e in #(
9365 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9366 esac
9367 fi
9368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9369 esac
9370 fi
9371 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9372 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9374 CFLAGS="$xorg_testset_save_CFLAGS"
9375 fi
9376
9377 found="no"
9378
9379 if test $found = "no" ; then
9380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9382 fi
9383
9384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9386 fi
9387
9388 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9389
9390 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9391 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9392 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9393 if eval test \${$cacheid+y}
9394 then :
9395 printf %s "(cached) " >&6
9396 else case e in #(
9397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399 int i;
9400 int
9401 main (void)
9402 {
9403
9404 ;
9405 return 0;
9406 }
9407 _ACEOF
9408 if ac_fn_c_try_link "$LINENO"
9409 then :
9410 eval $cacheid=yes
9411 else case e in #(
9412 e) eval $cacheid=no ;;
9413 esac
9414 fi
9415 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9416 conftest$ac_exeext conftest.$ac_ext ;;
9417 esac
9418 fi
9419
9420
9421 CFLAGS="$xorg_testset_save_CFLAGS"
9422
9423 eval supported=\$$cacheid
9424 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9425 printf '%s\n' "$supported" >&6; }
9426 if test "$supported" = "yes" ; then
9427 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9428 found="yes"
9429 fi
9430 fi
9431
9432 if test $found = "no" ; then
9433 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9434 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9435 fi
9436
9437 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9439 fi
9440
9441 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9442
9443 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9444 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9445 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9446 if eval test \${$cacheid+y}
9447 then :
9448 printf %s "(cached) " >&6
9449 else case e in #(
9450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452 int i;
9453 int
9454 main (void)
9455 {
9456
9457 ;
9458 return 0;
9459 }
9460 _ACEOF
9461 if ac_fn_c_try_link "$LINENO"
9462 then :
9463 eval $cacheid=yes
9464 else case e in #(
9465 e) eval $cacheid=no ;;
9466 esac
9467 fi
9468 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9469 conftest$ac_exeext conftest.$ac_ext ;;
9470 esac
9471 fi
9472
9473
9474 CFLAGS="$xorg_testset_save_CFLAGS"
9475
9476 eval supported=\$$cacheid
9477 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9478 printf '%s\n' "$supported" >&6; }
9479 if test "$supported" = "yes" ; then
9480 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9481 found="yes"
9482 fi
9483 fi
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499 xorg_testset_save_CFLAGS="$CFLAGS"
9500
9501 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9503 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9504 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9505 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9506 then :
9507 printf %s "(cached) " >&6
9508 else case e in #(
9509 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9510 /* end confdefs.h. */
9511 int i;
9512 _ACEOF
9513 if ac_fn_c_try_compile "$LINENO"
9514 then :
9515 xorg_cv_cc_flag_unknown_warning_option=yes
9516 else case e in #(
9517 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9518 esac
9519 fi
9520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9521 esac
9522 fi
9523 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9524 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9525 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9526 CFLAGS="$xorg_testset_save_CFLAGS"
9527 fi
9528
9529 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9530 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9531 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9532 fi
9533 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9534 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9535 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9536 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9537 then :
9538 printf %s "(cached) " >&6
9539 else case e in #(
9540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9541 /* end confdefs.h. */
9542 int i;
9543 _ACEOF
9544 if ac_fn_c_try_compile "$LINENO"
9545 then :
9546 xorg_cv_cc_flag_unused_command_line_argument=yes
9547 else case e in #(
9548 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9549 esac
9550 fi
9551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9552 esac
9553 fi
9554 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9555 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9556 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9557 CFLAGS="$xorg_testset_save_CFLAGS"
9558 fi
9559
9560 found="no"
9561
9562 if test $found = "no" ; then
9563 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9565 fi
9566
9567 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9568 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9569 fi
9570
9571 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9572
9573 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9574 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9575 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9576 if eval test \${$cacheid+y}
9577 then :
9578 printf %s "(cached) " >&6
9579 else case e in #(
9580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9582 int i;
9583 int
9584 main (void)
9585 {
9586
9587 ;
9588 return 0;
9589 }
9590 _ACEOF
9591 if ac_fn_c_try_link "$LINENO"
9592 then :
9593 eval $cacheid=yes
9594 else case e in #(
9595 e) eval $cacheid=no ;;
9596 esac
9597 fi
9598 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9599 conftest$ac_exeext conftest.$ac_ext ;;
9600 esac
9601 fi
9602
9603
9604 CFLAGS="$xorg_testset_save_CFLAGS"
9605
9606 eval supported=\$$cacheid
9607 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9608 printf '%s\n' "$supported" >&6; }
9609 if test "$supported" = "yes" ; then
9610 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9611 found="yes"
9612 fi
9613 fi
9614
9615 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9616 else
9617 { 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
9618 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;}
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632 xorg_testset_save_CFLAGS="$CFLAGS"
9633
9634 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9636 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9637 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9638 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9639 then :
9640 printf %s "(cached) " >&6
9641 else case e in #(
9642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9643 /* end confdefs.h. */
9644 int i;
9645 _ACEOF
9646 if ac_fn_c_try_compile "$LINENO"
9647 then :
9648 xorg_cv_cc_flag_unknown_warning_option=yes
9649 else case e in #(
9650 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9651 esac
9652 fi
9653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9654 esac
9655 fi
9656 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9657 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9659 CFLAGS="$xorg_testset_save_CFLAGS"
9660 fi
9661
9662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9665 fi
9666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9667 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9668 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9669 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9670 then :
9671 printf %s "(cached) " >&6
9672 else case e in #(
9673 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9675 int i;
9676 _ACEOF
9677 if ac_fn_c_try_compile "$LINENO"
9678 then :
9679 xorg_cv_cc_flag_unused_command_line_argument=yes
9680 else case e in #(
9681 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9682 esac
9683 fi
9684 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9685 esac
9686 fi
9687 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9688 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9689 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9690 CFLAGS="$xorg_testset_save_CFLAGS"
9691 fi
9692
9693 found="no"
9694
9695 if test $found = "no" ; then
9696 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9698 fi
9699
9700 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9702 fi
9703
9704 CFLAGS="$CFLAGS -Wimplicit"
9705
9706 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9707 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9708 cacheid=xorg_cv_cc_flag__Wimplicit
9709 if eval test \${$cacheid+y}
9710 then :
9711 printf %s "(cached) " >&6
9712 else case e in #(
9713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9715 int i;
9716 int
9717 main (void)
9718 {
9719
9720 ;
9721 return 0;
9722 }
9723 _ACEOF
9724 if ac_fn_c_try_link "$LINENO"
9725 then :
9726 eval $cacheid=yes
9727 else case e in #(
9728 e) eval $cacheid=no ;;
9729 esac
9730 fi
9731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9732 conftest$ac_exeext conftest.$ac_ext ;;
9733 esac
9734 fi
9735
9736
9737 CFLAGS="$xorg_testset_save_CFLAGS"
9738
9739 eval supported=\$$cacheid
9740 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9741 printf '%s\n' "$supported" >&6; }
9742 if test "$supported" = "yes" ; then
9743 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9744 found="yes"
9745 fi
9746 fi
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762 xorg_testset_save_CFLAGS="$CFLAGS"
9763
9764 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9766 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9767 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9768 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9769 then :
9770 printf %s "(cached) " >&6
9771 else case e in #(
9772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9773 /* end confdefs.h. */
9774 int i;
9775 _ACEOF
9776 if ac_fn_c_try_compile "$LINENO"
9777 then :
9778 xorg_cv_cc_flag_unknown_warning_option=yes
9779 else case e in #(
9780 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9781 esac
9782 fi
9783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9784 esac
9785 fi
9786 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9787 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9789 CFLAGS="$xorg_testset_save_CFLAGS"
9790 fi
9791
9792 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9795 fi
9796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9797 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9798 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9799 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9800 then :
9801 printf %s "(cached) " >&6
9802 else case e in #(
9803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9804 /* end confdefs.h. */
9805 int i;
9806 _ACEOF
9807 if ac_fn_c_try_compile "$LINENO"
9808 then :
9809 xorg_cv_cc_flag_unused_command_line_argument=yes
9810 else case e in #(
9811 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9812 esac
9813 fi
9814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9815 esac
9816 fi
9817 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9818 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9819 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9820 CFLAGS="$xorg_testset_save_CFLAGS"
9821 fi
9822
9823 found="no"
9824
9825 if test $found = "no" ; then
9826 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9828 fi
9829
9830 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9832 fi
9833
9834 CFLAGS="$CFLAGS -Wnonnull"
9835
9836 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9837 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9838 cacheid=xorg_cv_cc_flag__Wnonnull
9839 if eval test \${$cacheid+y}
9840 then :
9841 printf %s "(cached) " >&6
9842 else case e in #(
9843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9844 /* end confdefs.h. */
9845 int i;
9846 int
9847 main (void)
9848 {
9849
9850 ;
9851 return 0;
9852 }
9853 _ACEOF
9854 if ac_fn_c_try_link "$LINENO"
9855 then :
9856 eval $cacheid=yes
9857 else case e in #(
9858 e) eval $cacheid=no ;;
9859 esac
9860 fi
9861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9862 conftest$ac_exeext conftest.$ac_ext ;;
9863 esac
9864 fi
9865
9866
9867 CFLAGS="$xorg_testset_save_CFLAGS"
9868
9869 eval supported=\$$cacheid
9870 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9871 printf '%s\n' "$supported" >&6; }
9872 if test "$supported" = "yes" ; then
9873 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9874 found="yes"
9875 fi
9876 fi
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892 xorg_testset_save_CFLAGS="$CFLAGS"
9893
9894 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9896 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9897 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9898 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9899 then :
9900 printf %s "(cached) " >&6
9901 else case e in #(
9902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9904 int i;
9905 _ACEOF
9906 if ac_fn_c_try_compile "$LINENO"
9907 then :
9908 xorg_cv_cc_flag_unknown_warning_option=yes
9909 else case e in #(
9910 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9911 esac
9912 fi
9913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9914 esac
9915 fi
9916 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9917 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9918 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9919 CFLAGS="$xorg_testset_save_CFLAGS"
9920 fi
9921
9922 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9923 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9924 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9925 fi
9926 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9927 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9928 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9929 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9930 then :
9931 printf %s "(cached) " >&6
9932 else case e in #(
9933 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h. */
9935 int i;
9936 _ACEOF
9937 if ac_fn_c_try_compile "$LINENO"
9938 then :
9939 xorg_cv_cc_flag_unused_command_line_argument=yes
9940 else case e in #(
9941 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9942 esac
9943 fi
9944 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9945 esac
9946 fi
9947 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9948 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9950 CFLAGS="$xorg_testset_save_CFLAGS"
9951 fi
9952
9953 found="no"
9954
9955 if test $found = "no" ; then
9956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9958 fi
9959
9960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9962 fi
9963
9964 CFLAGS="$CFLAGS -Winit-self"
9965
9966 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9967 printf %s "checking if $CC supports -Winit-self... " >&6; }
9968 cacheid=xorg_cv_cc_flag__Winit_self
9969 if eval test \${$cacheid+y}
9970 then :
9971 printf %s "(cached) " >&6
9972 else case e in #(
9973 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9974 /* end confdefs.h. */
9975 int i;
9976 int
9977 main (void)
9978 {
9979
9980 ;
9981 return 0;
9982 }
9983 _ACEOF
9984 if ac_fn_c_try_link "$LINENO"
9985 then :
9986 eval $cacheid=yes
9987 else case e in #(
9988 e) eval $cacheid=no ;;
9989 esac
9990 fi
9991 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9992 conftest$ac_exeext conftest.$ac_ext ;;
9993 esac
9994 fi
9995
9996
9997 CFLAGS="$xorg_testset_save_CFLAGS"
9998
9999 eval supported=\$$cacheid
10000 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10001 printf '%s\n' "$supported" >&6; }
10002 if test "$supported" = "yes" ; then
10003 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10004 found="yes"
10005 fi
10006 fi
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022 xorg_testset_save_CFLAGS="$CFLAGS"
10023
10024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10026 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10027 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10028 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10029 then :
10030 printf %s "(cached) " >&6
10031 else case e in #(
10032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h. */
10034 int i;
10035 _ACEOF
10036 if ac_fn_c_try_compile "$LINENO"
10037 then :
10038 xorg_cv_cc_flag_unknown_warning_option=yes
10039 else case e in #(
10040 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10041 esac
10042 fi
10043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10044 esac
10045 fi
10046 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10047 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10048 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10049 CFLAGS="$xorg_testset_save_CFLAGS"
10050 fi
10051
10052 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10053 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10055 fi
10056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10057 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10058 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10059 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10060 then :
10061 printf %s "(cached) " >&6
10062 else case e in #(
10063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10064 /* end confdefs.h. */
10065 int i;
10066 _ACEOF
10067 if ac_fn_c_try_compile "$LINENO"
10068 then :
10069 xorg_cv_cc_flag_unused_command_line_argument=yes
10070 else case e in #(
10071 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10072 esac
10073 fi
10074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10075 esac
10076 fi
10077 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10078 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10079 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10080 CFLAGS="$xorg_testset_save_CFLAGS"
10081 fi
10082
10083 found="no"
10084
10085 if test $found = "no" ; then
10086 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10087 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10088 fi
10089
10090 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10091 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10092 fi
10093
10094 CFLAGS="$CFLAGS -Wmain"
10095
10096 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
10097 printf %s "checking if $CC supports -Wmain... " >&6; }
10098 cacheid=xorg_cv_cc_flag__Wmain
10099 if eval test \${$cacheid+y}
10100 then :
10101 printf %s "(cached) " >&6
10102 else case e in #(
10103 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h. */
10105 int i;
10106 int
10107 main (void)
10108 {
10109
10110 ;
10111 return 0;
10112 }
10113 _ACEOF
10114 if ac_fn_c_try_link "$LINENO"
10115 then :
10116 eval $cacheid=yes
10117 else case e in #(
10118 e) eval $cacheid=no ;;
10119 esac
10120 fi
10121 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10122 conftest$ac_exeext conftest.$ac_ext ;;
10123 esac
10124 fi
10125
10126
10127 CFLAGS="$xorg_testset_save_CFLAGS"
10128
10129 eval supported=\$$cacheid
10130 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10131 printf '%s\n' "$supported" >&6; }
10132 if test "$supported" = "yes" ; then
10133 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10134 found="yes"
10135 fi
10136 fi
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152 xorg_testset_save_CFLAGS="$CFLAGS"
10153
10154 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10156 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10157 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10158 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10159 then :
10160 printf %s "(cached) " >&6
10161 else case e in #(
10162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10164 int i;
10165 _ACEOF
10166 if ac_fn_c_try_compile "$LINENO"
10167 then :
10168 xorg_cv_cc_flag_unknown_warning_option=yes
10169 else case e in #(
10170 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10171 esac
10172 fi
10173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10174 esac
10175 fi
10176 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10177 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10179 CFLAGS="$xorg_testset_save_CFLAGS"
10180 fi
10181
10182 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10185 fi
10186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10187 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10188 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10189 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10190 then :
10191 printf %s "(cached) " >&6
10192 else case e in #(
10193 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10195 int i;
10196 _ACEOF
10197 if ac_fn_c_try_compile "$LINENO"
10198 then :
10199 xorg_cv_cc_flag_unused_command_line_argument=yes
10200 else case e in #(
10201 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10202 esac
10203 fi
10204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10205 esac
10206 fi
10207 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10208 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10210 CFLAGS="$xorg_testset_save_CFLAGS"
10211 fi
10212
10213 found="no"
10214
10215 if test $found = "no" ; then
10216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10218 fi
10219
10220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10222 fi
10223
10224 CFLAGS="$CFLAGS -Wmissing-braces"
10225
10226 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10227 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10228 cacheid=xorg_cv_cc_flag__Wmissing_braces
10229 if eval test \${$cacheid+y}
10230 then :
10231 printf %s "(cached) " >&6
10232 else case e in #(
10233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10234 /* end confdefs.h. */
10235 int i;
10236 int
10237 main (void)
10238 {
10239
10240 ;
10241 return 0;
10242 }
10243 _ACEOF
10244 if ac_fn_c_try_link "$LINENO"
10245 then :
10246 eval $cacheid=yes
10247 else case e in #(
10248 e) eval $cacheid=no ;;
10249 esac
10250 fi
10251 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10252 conftest$ac_exeext conftest.$ac_ext ;;
10253 esac
10254 fi
10255
10256
10257 CFLAGS="$xorg_testset_save_CFLAGS"
10258
10259 eval supported=\$$cacheid
10260 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10261 printf '%s\n' "$supported" >&6; }
10262 if test "$supported" = "yes" ; then
10263 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10264 found="yes"
10265 fi
10266 fi
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282 xorg_testset_save_CFLAGS="$CFLAGS"
10283
10284 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10286 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10287 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10288 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10289 then :
10290 printf %s "(cached) " >&6
10291 else case e in #(
10292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10293 /* end confdefs.h. */
10294 int i;
10295 _ACEOF
10296 if ac_fn_c_try_compile "$LINENO"
10297 then :
10298 xorg_cv_cc_flag_unknown_warning_option=yes
10299 else case e in #(
10300 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10301 esac
10302 fi
10303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10304 esac
10305 fi
10306 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10307 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10308 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10309 CFLAGS="$xorg_testset_save_CFLAGS"
10310 fi
10311
10312 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10315 fi
10316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10317 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10318 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10319 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10320 then :
10321 printf %s "(cached) " >&6
10322 else case e in #(
10323 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10324 /* end confdefs.h. */
10325 int i;
10326 _ACEOF
10327 if ac_fn_c_try_compile "$LINENO"
10328 then :
10329 xorg_cv_cc_flag_unused_command_line_argument=yes
10330 else case e in #(
10331 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10332 esac
10333 fi
10334 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10335 esac
10336 fi
10337 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10338 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10339 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10340 CFLAGS="$xorg_testset_save_CFLAGS"
10341 fi
10342
10343 found="no"
10344
10345 if test $found = "no" ; then
10346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10348 fi
10349
10350 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10352 fi
10353
10354 CFLAGS="$CFLAGS -Wsequence-point"
10355
10356 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10357 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10358 cacheid=xorg_cv_cc_flag__Wsequence_point
10359 if eval test \${$cacheid+y}
10360 then :
10361 printf %s "(cached) " >&6
10362 else case e in #(
10363 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10365 int i;
10366 int
10367 main (void)
10368 {
10369
10370 ;
10371 return 0;
10372 }
10373 _ACEOF
10374 if ac_fn_c_try_link "$LINENO"
10375 then :
10376 eval $cacheid=yes
10377 else case e in #(
10378 e) eval $cacheid=no ;;
10379 esac
10380 fi
10381 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10382 conftest$ac_exeext conftest.$ac_ext ;;
10383 esac
10384 fi
10385
10386
10387 CFLAGS="$xorg_testset_save_CFLAGS"
10388
10389 eval supported=\$$cacheid
10390 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10391 printf '%s\n' "$supported" >&6; }
10392 if test "$supported" = "yes" ; then
10393 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10394 found="yes"
10395 fi
10396 fi
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412 xorg_testset_save_CFLAGS="$CFLAGS"
10413
10414 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10415 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10416 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10417 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10418 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10419 then :
10420 printf %s "(cached) " >&6
10421 else case e in #(
10422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10424 int i;
10425 _ACEOF
10426 if ac_fn_c_try_compile "$LINENO"
10427 then :
10428 xorg_cv_cc_flag_unknown_warning_option=yes
10429 else case e in #(
10430 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10431 esac
10432 fi
10433 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10434 esac
10435 fi
10436 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10437 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10438 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10439 CFLAGS="$xorg_testset_save_CFLAGS"
10440 fi
10441
10442 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10443 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10445 fi
10446 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10447 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10448 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10449 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10450 then :
10451 printf %s "(cached) " >&6
10452 else case e in #(
10453 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10455 int i;
10456 _ACEOF
10457 if ac_fn_c_try_compile "$LINENO"
10458 then :
10459 xorg_cv_cc_flag_unused_command_line_argument=yes
10460 else case e in #(
10461 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10462 esac
10463 fi
10464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10465 esac
10466 fi
10467 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10468 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10469 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10470 CFLAGS="$xorg_testset_save_CFLAGS"
10471 fi
10472
10473 found="no"
10474
10475 if test $found = "no" ; then
10476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10478 fi
10479
10480 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10481 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10482 fi
10483
10484 CFLAGS="$CFLAGS -Wreturn-type"
10485
10486 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10487 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10488 cacheid=xorg_cv_cc_flag__Wreturn_type
10489 if eval test \${$cacheid+y}
10490 then :
10491 printf %s "(cached) " >&6
10492 else case e in #(
10493 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h. */
10495 int i;
10496 int
10497 main (void)
10498 {
10499
10500 ;
10501 return 0;
10502 }
10503 _ACEOF
10504 if ac_fn_c_try_link "$LINENO"
10505 then :
10506 eval $cacheid=yes
10507 else case e in #(
10508 e) eval $cacheid=no ;;
10509 esac
10510 fi
10511 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10512 conftest$ac_exeext conftest.$ac_ext ;;
10513 esac
10514 fi
10515
10516
10517 CFLAGS="$xorg_testset_save_CFLAGS"
10518
10519 eval supported=\$$cacheid
10520 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10521 printf '%s\n' "$supported" >&6; }
10522 if test "$supported" = "yes" ; then
10523 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10524 found="yes"
10525 fi
10526 fi
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542 xorg_testset_save_CFLAGS="$CFLAGS"
10543
10544 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10545 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10546 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10547 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10548 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10549 then :
10550 printf %s "(cached) " >&6
10551 else case e in #(
10552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* end confdefs.h. */
10554 int i;
10555 _ACEOF
10556 if ac_fn_c_try_compile "$LINENO"
10557 then :
10558 xorg_cv_cc_flag_unknown_warning_option=yes
10559 else case e in #(
10560 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10561 esac
10562 fi
10563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10564 esac
10565 fi
10566 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10567 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10569 CFLAGS="$xorg_testset_save_CFLAGS"
10570 fi
10571
10572 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10575 fi
10576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10577 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10578 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10579 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10580 then :
10581 printf %s "(cached) " >&6
10582 else case e in #(
10583 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 /* end confdefs.h. */
10585 int i;
10586 _ACEOF
10587 if ac_fn_c_try_compile "$LINENO"
10588 then :
10589 xorg_cv_cc_flag_unused_command_line_argument=yes
10590 else case e in #(
10591 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10592 esac
10593 fi
10594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10595 esac
10596 fi
10597 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10598 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10599 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10600 CFLAGS="$xorg_testset_save_CFLAGS"
10601 fi
10602
10603 found="no"
10604
10605 if test $found = "no" ; then
10606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10608 fi
10609
10610 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10611 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10612 fi
10613
10614 CFLAGS="$CFLAGS -Wtrigraphs"
10615
10616 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10617 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10618 cacheid=xorg_cv_cc_flag__Wtrigraphs
10619 if eval test \${$cacheid+y}
10620 then :
10621 printf %s "(cached) " >&6
10622 else case e in #(
10623 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10624 /* end confdefs.h. */
10625 int i;
10626 int
10627 main (void)
10628 {
10629
10630 ;
10631 return 0;
10632 }
10633 _ACEOF
10634 if ac_fn_c_try_link "$LINENO"
10635 then :
10636 eval $cacheid=yes
10637 else case e in #(
10638 e) eval $cacheid=no ;;
10639 esac
10640 fi
10641 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10642 conftest$ac_exeext conftest.$ac_ext ;;
10643 esac
10644 fi
10645
10646
10647 CFLAGS="$xorg_testset_save_CFLAGS"
10648
10649 eval supported=\$$cacheid
10650 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10651 printf '%s\n' "$supported" >&6; }
10652 if test "$supported" = "yes" ; then
10653 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10654 found="yes"
10655 fi
10656 fi
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672 xorg_testset_save_CFLAGS="$CFLAGS"
10673
10674 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10676 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10677 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10678 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10679 then :
10680 printf %s "(cached) " >&6
10681 else case e in #(
10682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10683 /* end confdefs.h. */
10684 int i;
10685 _ACEOF
10686 if ac_fn_c_try_compile "$LINENO"
10687 then :
10688 xorg_cv_cc_flag_unknown_warning_option=yes
10689 else case e in #(
10690 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10691 esac
10692 fi
10693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10694 esac
10695 fi
10696 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10697 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10698 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10699 CFLAGS="$xorg_testset_save_CFLAGS"
10700 fi
10701
10702 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10703 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10704 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10705 fi
10706 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10707 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10708 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10709 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10710 then :
10711 printf %s "(cached) " >&6
10712 else case e in #(
10713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h. */
10715 int i;
10716 _ACEOF
10717 if ac_fn_c_try_compile "$LINENO"
10718 then :
10719 xorg_cv_cc_flag_unused_command_line_argument=yes
10720 else case e in #(
10721 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10722 esac
10723 fi
10724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10725 esac
10726 fi
10727 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10728 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10730 CFLAGS="$xorg_testset_save_CFLAGS"
10731 fi
10732
10733 found="no"
10734
10735 if test $found = "no" ; then
10736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10738 fi
10739
10740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10742 fi
10743
10744 CFLAGS="$CFLAGS -Warray-bounds"
10745
10746 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10747 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10748 cacheid=xorg_cv_cc_flag__Warray_bounds
10749 if eval test \${$cacheid+y}
10750 then :
10751 printf %s "(cached) " >&6
10752 else case e in #(
10753 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10755 int i;
10756 int
10757 main (void)
10758 {
10759
10760 ;
10761 return 0;
10762 }
10763 _ACEOF
10764 if ac_fn_c_try_link "$LINENO"
10765 then :
10766 eval $cacheid=yes
10767 else case e in #(
10768 e) eval $cacheid=no ;;
10769 esac
10770 fi
10771 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10772 conftest$ac_exeext conftest.$ac_ext ;;
10773 esac
10774 fi
10775
10776
10777 CFLAGS="$xorg_testset_save_CFLAGS"
10778
10779 eval supported=\$$cacheid
10780 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10781 printf '%s\n' "$supported" >&6; }
10782 if test "$supported" = "yes" ; then
10783 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10784 found="yes"
10785 fi
10786 fi
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802 xorg_testset_save_CFLAGS="$CFLAGS"
10803
10804 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10806 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10807 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10808 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10809 then :
10810 printf %s "(cached) " >&6
10811 else case e in #(
10812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813 /* end confdefs.h. */
10814 int i;
10815 _ACEOF
10816 if ac_fn_c_try_compile "$LINENO"
10817 then :
10818 xorg_cv_cc_flag_unknown_warning_option=yes
10819 else case e in #(
10820 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10821 esac
10822 fi
10823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10824 esac
10825 fi
10826 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10827 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10829 CFLAGS="$xorg_testset_save_CFLAGS"
10830 fi
10831
10832 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10835 fi
10836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10837 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10838 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10839 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10840 then :
10841 printf %s "(cached) " >&6
10842 else case e in #(
10843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10844 /* end confdefs.h. */
10845 int i;
10846 _ACEOF
10847 if ac_fn_c_try_compile "$LINENO"
10848 then :
10849 xorg_cv_cc_flag_unused_command_line_argument=yes
10850 else case e in #(
10851 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10852 esac
10853 fi
10854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10855 esac
10856 fi
10857 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10858 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10859 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10860 CFLAGS="$xorg_testset_save_CFLAGS"
10861 fi
10862
10863 found="no"
10864
10865 if test $found = "no" ; then
10866 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10867 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10868 fi
10869
10870 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10871 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10872 fi
10873
10874 CFLAGS="$CFLAGS -Wwrite-strings"
10875
10876 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10877 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10878 cacheid=xorg_cv_cc_flag__Wwrite_strings
10879 if eval test \${$cacheid+y}
10880 then :
10881 printf %s "(cached) " >&6
10882 else case e in #(
10883 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884 /* end confdefs.h. */
10885 int i;
10886 int
10887 main (void)
10888 {
10889
10890 ;
10891 return 0;
10892 }
10893 _ACEOF
10894 if ac_fn_c_try_link "$LINENO"
10895 then :
10896 eval $cacheid=yes
10897 else case e in #(
10898 e) eval $cacheid=no ;;
10899 esac
10900 fi
10901 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10902 conftest$ac_exeext conftest.$ac_ext ;;
10903 esac
10904 fi
10905
10906
10907 CFLAGS="$xorg_testset_save_CFLAGS"
10908
10909 eval supported=\$$cacheid
10910 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10911 printf '%s\n' "$supported" >&6; }
10912 if test "$supported" = "yes" ; then
10913 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10914 found="yes"
10915 fi
10916 fi
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932 xorg_testset_save_CFLAGS="$CFLAGS"
10933
10934 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10935 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10936 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10937 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10938 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10939 then :
10940 printf %s "(cached) " >&6
10941 else case e in #(
10942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 /* end confdefs.h. */
10944 int i;
10945 _ACEOF
10946 if ac_fn_c_try_compile "$LINENO"
10947 then :
10948 xorg_cv_cc_flag_unknown_warning_option=yes
10949 else case e in #(
10950 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10951 esac
10952 fi
10953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10954 esac
10955 fi
10956 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10957 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10958 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10959 CFLAGS="$xorg_testset_save_CFLAGS"
10960 fi
10961
10962 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10963 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10964 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10965 fi
10966 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10967 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10968 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10969 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10970 then :
10971 printf %s "(cached) " >&6
10972 else case e in #(
10973 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10974 /* end confdefs.h. */
10975 int i;
10976 _ACEOF
10977 if ac_fn_c_try_compile "$LINENO"
10978 then :
10979 xorg_cv_cc_flag_unused_command_line_argument=yes
10980 else case e in #(
10981 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10982 esac
10983 fi
10984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10985 esac
10986 fi
10987 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10988 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10989 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10990 CFLAGS="$xorg_testset_save_CFLAGS"
10991 fi
10992
10993 found="no"
10994
10995 if test $found = "no" ; then
10996 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10997 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10998 fi
10999
11000 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11001 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11002 fi
11003
11004 CFLAGS="$CFLAGS -Waddress"
11005
11006 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
11007 printf %s "checking if $CC supports -Waddress... " >&6; }
11008 cacheid=xorg_cv_cc_flag__Waddress
11009 if eval test \${$cacheid+y}
11010 then :
11011 printf %s "(cached) " >&6
11012 else case e in #(
11013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11014 /* end confdefs.h. */
11015 int i;
11016 int
11017 main (void)
11018 {
11019
11020 ;
11021 return 0;
11022 }
11023 _ACEOF
11024 if ac_fn_c_try_link "$LINENO"
11025 then :
11026 eval $cacheid=yes
11027 else case e in #(
11028 e) eval $cacheid=no ;;
11029 esac
11030 fi
11031 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11032 conftest$ac_exeext conftest.$ac_ext ;;
11033 esac
11034 fi
11035
11036
11037 CFLAGS="$xorg_testset_save_CFLAGS"
11038
11039 eval supported=\$$cacheid
11040 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11041 printf '%s\n' "$supported" >&6; }
11042 if test "$supported" = "yes" ; then
11043 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11044 found="yes"
11045 fi
11046 fi
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062 xorg_testset_save_CFLAGS="$CFLAGS"
11063
11064 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11065 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11066 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11067 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11068 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11069 then :
11070 printf %s "(cached) " >&6
11071 else case e in #(
11072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11073 /* end confdefs.h. */
11074 int i;
11075 _ACEOF
11076 if ac_fn_c_try_compile "$LINENO"
11077 then :
11078 xorg_cv_cc_flag_unknown_warning_option=yes
11079 else case e in #(
11080 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11081 esac
11082 fi
11083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11084 esac
11085 fi
11086 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11087 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11088 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11089 CFLAGS="$xorg_testset_save_CFLAGS"
11090 fi
11091
11092 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11093 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11094 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11095 fi
11096 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11097 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11098 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11099 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11100 then :
11101 printf %s "(cached) " >&6
11102 else case e in #(
11103 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11104 /* end confdefs.h. */
11105 int i;
11106 _ACEOF
11107 if ac_fn_c_try_compile "$LINENO"
11108 then :
11109 xorg_cv_cc_flag_unused_command_line_argument=yes
11110 else case e in #(
11111 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11112 esac
11113 fi
11114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11115 esac
11116 fi
11117 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11118 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11119 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11120 CFLAGS="$xorg_testset_save_CFLAGS"
11121 fi
11122
11123 found="no"
11124
11125 if test $found = "no" ; then
11126 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11128 fi
11129
11130 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11131 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11132 fi
11133
11134 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11135
11136 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11137 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11138 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11139 if eval test \${$cacheid+y}
11140 then :
11141 printf %s "(cached) " >&6
11142 else case e in #(
11143 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11144 /* end confdefs.h. */
11145 int i;
11146 int
11147 main (void)
11148 {
11149
11150 ;
11151 return 0;
11152 }
11153 _ACEOF
11154 if ac_fn_c_try_link "$LINENO"
11155 then :
11156 eval $cacheid=yes
11157 else case e in #(
11158 e) eval $cacheid=no ;;
11159 esac
11160 fi
11161 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11162 conftest$ac_exeext conftest.$ac_ext ;;
11163 esac
11164 fi
11165
11166
11167 CFLAGS="$xorg_testset_save_CFLAGS"
11168
11169 eval supported=\$$cacheid
11170 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11171 printf '%s\n' "$supported" >&6; }
11172 if test "$supported" = "yes" ; then
11173 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11174 found="yes"
11175 fi
11176 fi
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192 xorg_testset_save_CFLAGS="$CFLAGS"
11193
11194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11196 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11197 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11198 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11199 then :
11200 printf %s "(cached) " >&6
11201 else case e in #(
11202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11203 /* end confdefs.h. */
11204 int i;
11205 _ACEOF
11206 if ac_fn_c_try_compile "$LINENO"
11207 then :
11208 xorg_cv_cc_flag_unknown_warning_option=yes
11209 else case e in #(
11210 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11211 esac
11212 fi
11213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11214 esac
11215 fi
11216 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11217 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11219 CFLAGS="$xorg_testset_save_CFLAGS"
11220 fi
11221
11222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11225 fi
11226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11227 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11228 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11229 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11230 then :
11231 printf %s "(cached) " >&6
11232 else case e in #(
11233 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11234 /* end confdefs.h. */
11235 int i;
11236 _ACEOF
11237 if ac_fn_c_try_compile "$LINENO"
11238 then :
11239 xorg_cv_cc_flag_unused_command_line_argument=yes
11240 else case e in #(
11241 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11242 esac
11243 fi
11244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11245 esac
11246 fi
11247 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11248 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11249 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11250 CFLAGS="$xorg_testset_save_CFLAGS"
11251 fi
11252
11253 found="no"
11254
11255 if test $found = "no" ; then
11256 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11258 fi
11259
11260 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11261 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11262 fi
11263
11264 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11265
11266 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11267 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11268 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11269 if eval test \${$cacheid+y}
11270 then :
11271 printf %s "(cached) " >&6
11272 else case e in #(
11273 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274 /* end confdefs.h. */
11275 int i;
11276 int
11277 main (void)
11278 {
11279
11280 ;
11281 return 0;
11282 }
11283 _ACEOF
11284 if ac_fn_c_try_link "$LINENO"
11285 then :
11286 eval $cacheid=yes
11287 else case e in #(
11288 e) eval $cacheid=no ;;
11289 esac
11290 fi
11291 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11292 conftest$ac_exeext conftest.$ac_ext ;;
11293 esac
11294 fi
11295
11296
11297 CFLAGS="$xorg_testset_save_CFLAGS"
11298
11299 eval supported=\$$cacheid
11300 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11301 printf '%s\n' "$supported" >&6; }
11302 if test "$supported" = "yes" ; then
11303 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11304 found="yes"
11305 fi
11306 fi
11307
11308
11309 fi
11310
11311
11312
11313
11314
11315
11316
11317 CWARNFLAGS="$BASE_CFLAGS"
11318 if test "x$GCC" = xyes ; then
11319 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11320 fi
11321
11322
11323
11324
11325
11326
11327
11328
11329 # Check whether --enable-strict-compilation was given.
11330 if test ${enable_strict_compilation+y}
11331 then :
11332 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11333 else case e in #(
11334 e) STRICT_COMPILE=no ;;
11335 esac
11336 fi
11337
11338
11339
11340
11341
11342
11343 STRICT_CFLAGS=""
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357 xorg_testset_save_CFLAGS="$CFLAGS"
11358
11359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11361 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11362 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11363 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11364 then :
11365 printf %s "(cached) " >&6
11366 else case e in #(
11367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11368 /* end confdefs.h. */
11369 int i;
11370 _ACEOF
11371 if ac_fn_c_try_compile "$LINENO"
11372 then :
11373 xorg_cv_cc_flag_unknown_warning_option=yes
11374 else case e in #(
11375 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11376 esac
11377 fi
11378 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11379 esac
11380 fi
11381 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11382 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11384 CFLAGS="$xorg_testset_save_CFLAGS"
11385 fi
11386
11387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11390 fi
11391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11392 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11393 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11394 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11395 then :
11396 printf %s "(cached) " >&6
11397 else case e in #(
11398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11400 int i;
11401 _ACEOF
11402 if ac_fn_c_try_compile "$LINENO"
11403 then :
11404 xorg_cv_cc_flag_unused_command_line_argument=yes
11405 else case e in #(
11406 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11407 esac
11408 fi
11409 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11410 esac
11411 fi
11412 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11413 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11414 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11415 CFLAGS="$xorg_testset_save_CFLAGS"
11416 fi
11417
11418 found="no"
11419
11420 if test $found = "no" ; then
11421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11423 fi
11424
11425 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11427 fi
11428
11429 CFLAGS="$CFLAGS -pedantic"
11430
11431 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11432 printf %s "checking if $CC supports -pedantic... " >&6; }
11433 cacheid=xorg_cv_cc_flag__pedantic
11434 if eval test \${$cacheid+y}
11435 then :
11436 printf %s "(cached) " >&6
11437 else case e in #(
11438 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439 /* end confdefs.h. */
11440 int i;
11441 int
11442 main (void)
11443 {
11444
11445 ;
11446 return 0;
11447 }
11448 _ACEOF
11449 if ac_fn_c_try_link "$LINENO"
11450 then :
11451 eval $cacheid=yes
11452 else case e in #(
11453 e) eval $cacheid=no ;;
11454 esac
11455 fi
11456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11457 conftest$ac_exeext conftest.$ac_ext ;;
11458 esac
11459 fi
11460
11461
11462 CFLAGS="$xorg_testset_save_CFLAGS"
11463
11464 eval supported=\$$cacheid
11465 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11466 printf '%s\n' "$supported" >&6; }
11467 if test "$supported" = "yes" ; then
11468 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11469 found="yes"
11470 fi
11471 fi
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487 xorg_testset_save_CFLAGS="$CFLAGS"
11488
11489 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11491 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11492 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11493 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11494 then :
11495 printf %s "(cached) " >&6
11496 else case e in #(
11497 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11498 /* end confdefs.h. */
11499 int i;
11500 _ACEOF
11501 if ac_fn_c_try_compile "$LINENO"
11502 then :
11503 xorg_cv_cc_flag_unknown_warning_option=yes
11504 else case e in #(
11505 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11506 esac
11507 fi
11508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11509 esac
11510 fi
11511 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11512 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11514 CFLAGS="$xorg_testset_save_CFLAGS"
11515 fi
11516
11517 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11519 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11520 fi
11521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11522 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11523 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11524 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11525 then :
11526 printf %s "(cached) " >&6
11527 else case e in #(
11528 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11530 int i;
11531 _ACEOF
11532 if ac_fn_c_try_compile "$LINENO"
11533 then :
11534 xorg_cv_cc_flag_unused_command_line_argument=yes
11535 else case e in #(
11536 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11537 esac
11538 fi
11539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11540 esac
11541 fi
11542 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11543 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11544 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11545 CFLAGS="$xorg_testset_save_CFLAGS"
11546 fi
11547
11548 found="no"
11549
11550 if test $found = "no" ; then
11551 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11552 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11553 fi
11554
11555 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11557 fi
11558
11559 CFLAGS="$CFLAGS -Werror"
11560
11561 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11562 printf %s "checking if $CC supports -Werror... " >&6; }
11563 cacheid=xorg_cv_cc_flag__Werror
11564 if eval test \${$cacheid+y}
11565 then :
11566 printf %s "(cached) " >&6
11567 else case e in #(
11568 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h. */
11570 int i;
11571 int
11572 main (void)
11573 {
11574
11575 ;
11576 return 0;
11577 }
11578 _ACEOF
11579 if ac_fn_c_try_link "$LINENO"
11580 then :
11581 eval $cacheid=yes
11582 else case e in #(
11583 e) eval $cacheid=no ;;
11584 esac
11585 fi
11586 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11587 conftest$ac_exeext conftest.$ac_ext ;;
11588 esac
11589 fi
11590
11591
11592 CFLAGS="$xorg_testset_save_CFLAGS"
11593
11594 eval supported=\$$cacheid
11595 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11596 printf '%s\n' "$supported" >&6; }
11597 if test "$supported" = "yes" ; then
11598 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11599 found="yes"
11600 fi
11601 fi
11602
11603 if test $found = "no" ; then
11604 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11606 fi
11607
11608 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11610 fi
11611
11612 CFLAGS="$CFLAGS -errwarn"
11613
11614 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11615 printf %s "checking if $CC supports -errwarn... " >&6; }
11616 cacheid=xorg_cv_cc_flag__errwarn
11617 if eval test \${$cacheid+y}
11618 then :
11619 printf %s "(cached) " >&6
11620 else case e in #(
11621 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622 /* end confdefs.h. */
11623 int i;
11624 int
11625 main (void)
11626 {
11627
11628 ;
11629 return 0;
11630 }
11631 _ACEOF
11632 if ac_fn_c_try_link "$LINENO"
11633 then :
11634 eval $cacheid=yes
11635 else case e in #(
11636 e) eval $cacheid=no ;;
11637 esac
11638 fi
11639 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11640 conftest$ac_exeext conftest.$ac_ext ;;
11641 esac
11642 fi
11643
11644
11645 CFLAGS="$xorg_testset_save_CFLAGS"
11646
11647 eval supported=\$$cacheid
11648 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11649 printf '%s\n' "$supported" >&6; }
11650 if test "$supported" = "yes" ; then
11651 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11652 found="yes"
11653 fi
11654 fi
11655
11656
11657
11658 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11659 # activate it with -Werror, so we add it here explicitly.
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673 xorg_testset_save_CFLAGS="$CFLAGS"
11674
11675 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11676 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11677 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11678 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11679 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11680 then :
11681 printf %s "(cached) " >&6
11682 else case e in #(
11683 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11685 int i;
11686 _ACEOF
11687 if ac_fn_c_try_compile "$LINENO"
11688 then :
11689 xorg_cv_cc_flag_unknown_warning_option=yes
11690 else case e in #(
11691 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11692 esac
11693 fi
11694 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11695 esac
11696 fi
11697 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11698 printf '%s\n' "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11699 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11700 CFLAGS="$xorg_testset_save_CFLAGS"
11701 fi
11702
11703 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11704 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11705 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11706 fi
11707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11708 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11709 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11710 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11711 then :
11712 printf %s "(cached) " >&6
11713 else case e in #(
11714 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11716 int i;
11717 _ACEOF
11718 if ac_fn_c_try_compile "$LINENO"
11719 then :
11720 xorg_cv_cc_flag_unused_command_line_argument=yes
11721 else case e in #(
11722 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11723 esac
11724 fi
11725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11726 esac
11727 fi
11728 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11729 printf '%s\n' "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11730 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11731 CFLAGS="$xorg_testset_save_CFLAGS"
11732 fi
11733
11734 found="no"
11735
11736 if test $found = "no" ; then
11737 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11738 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11739 fi
11740
11741 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11742 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11743 fi
11744
11745 CFLAGS="$CFLAGS -Werror=attributes"
11746
11747 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11748 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11749 cacheid=xorg_cv_cc_flag__Werror_attributes
11750 if eval test \${$cacheid+y}
11751 then :
11752 printf %s "(cached) " >&6
11753 else case e in #(
11754 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11755 /* end confdefs.h. */
11756 int i;
11757 int
11758 main (void)
11759 {
11760
11761 ;
11762 return 0;
11763 }
11764 _ACEOF
11765 if ac_fn_c_try_link "$LINENO"
11766 then :
11767 eval $cacheid=yes
11768 else case e in #(
11769 e) eval $cacheid=no ;;
11770 esac
11771 fi
11772 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11773 conftest$ac_exeext conftest.$ac_ext ;;
11774 esac
11775 fi
11776
11777
11778 CFLAGS="$xorg_testset_save_CFLAGS"
11779
11780 eval supported=\$$cacheid
11781 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11782 printf '%s\n' "$supported" >&6; }
11783 if test "$supported" = "yes" ; then
11784 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11785 found="yes"
11786 fi
11787 fi
11788
11789
11790
11791 if test "x$STRICT_COMPILE" = "xyes"; then
11792 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11793 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11794 fi
11795
11796
11797
11798
11799
11800
11801
11802
11803 cat >>confdefs.h <<_ACEOF
11804 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11805 _ACEOF
11806
11807 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11808 if test "x$PVM" = "x"; then
11809 PVM="0"
11810 fi
11811
11812 printf '%s\n' "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11813
11814 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11815 if test "x$PVP" = "x"; then
11816 PVP="0"
11817 fi
11818
11819 printf '%s\n' "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11820
11821
11822
11823 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11824 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11825 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11826 touch \$(top_srcdir)/ChangeLog; \
11827 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11828
11829
11830
11831
11832 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11833 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11834 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11835 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11836 touch \$(top_srcdir)/INSTALL; \
11837 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11838
11839
11840
11841
11842
11843
11844 case $host_os in
11845 solaris*)
11846 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11847 # check for a man page file found in later versions that use
11848 # traditional section numbers instead
11849 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11850 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11851 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11852 then :
11853 printf %s "(cached) " >&6
11854 else case e in #(
11855 e) test "$cross_compiling" = yes &&
11856 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11857 if test -r "/usr/share/man/man7/attributes.7"; then
11858 ac_cv_file__usr_share_man_man7_attributes_7=yes
11859 else
11860 ac_cv_file__usr_share_man_man7_attributes_7=no
11861 fi ;;
11862 esac
11863 fi
11864 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11865 printf '%s\n' "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11866 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11867 then :
11868 SYSV_MAN_SECTIONS=false
11869 else case e in #(
11870 e) SYSV_MAN_SECTIONS=true ;;
11871 esac
11872 fi
11873
11874 ;;
11875 *) SYSV_MAN_SECTIONS=false ;;
11876 esac
11877
11878 if test x$APP_MAN_SUFFIX = x ; then
11879 APP_MAN_SUFFIX=1
11880 fi
11881 if test x$APP_MAN_DIR = x ; then
11882 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11883 fi
11884
11885 if test x$LIB_MAN_SUFFIX = x ; then
11886 LIB_MAN_SUFFIX=3
11887 fi
11888 if test x$LIB_MAN_DIR = x ; then
11889 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11890 fi
11891
11892 if test x$FILE_MAN_SUFFIX = x ; then
11893 case $SYSV_MAN_SECTIONS in
11894 true) FILE_MAN_SUFFIX=4 ;;
11895 *) FILE_MAN_SUFFIX=5 ;;
11896 esac
11897 fi
11898 if test x$FILE_MAN_DIR = x ; then
11899 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11900 fi
11901
11902 if test x$MISC_MAN_SUFFIX = x ; then
11903 case $SYSV_MAN_SECTIONS in
11904 true) MISC_MAN_SUFFIX=5 ;;
11905 *) MISC_MAN_SUFFIX=7 ;;
11906 esac
11907 fi
11908 if test x$MISC_MAN_DIR = x ; then
11909 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11910 fi
11911
11912 if test x$DRIVER_MAN_SUFFIX = x ; then
11913 case $SYSV_MAN_SECTIONS in
11914 true) DRIVER_MAN_SUFFIX=7 ;;
11915 *) DRIVER_MAN_SUFFIX=4 ;;
11916 esac
11917 fi
11918 if test x$DRIVER_MAN_DIR = x ; then
11919 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11920 fi
11921
11922 if test x$ADMIN_MAN_SUFFIX = x ; then
11923 case $SYSV_MAN_SECTIONS in
11924 true) ADMIN_MAN_SUFFIX=1m ;;
11925 *) ADMIN_MAN_SUFFIX=8 ;;
11926 esac
11927 fi
11928 if test x$ADMIN_MAN_DIR = x ; then
11929 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11930 fi
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946 XORG_MAN_PAGE="X Version 11"
11947
11948 MAN_SUBSTS="\
11949 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11950 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11951 -e 's|__xservername__|Xorg|g' \
11952 -e 's|__xconfigfile__|xorg.conf|g' \
11953 -e 's|__projectroot__|\$(prefix)|g' \
11954 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11955 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11956 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11957 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11958 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11959 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11960 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11961
11962
11963
11964
11965 AM_DEFAULT_VERBOSITY=0
11966
11967
11968
11969
11970
11971 # Use POSIX strnlen or the implementation supplied in this module
11972 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
11973 printf %s "checking for working strnlen... " >&6; }
11974 if test ${ac_cv_func_strnlen_working+y}
11975 then :
11976 printf %s "(cached) " >&6
11977 else case e in #(
11978 e) if test "$cross_compiling" = yes
11979 then :
11980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11981 /* end confdefs.h. */
11982 $ac_includes_default
11983 int
11984 main (void)
11985 {
11986 #if defined _AIX && !defined _AIX51
11987 #error "AIX pre 5.1 is buggy"
11988 #endif
11989 #ifdef __ANDROID__
11990 #include <android/api-level.h>
11991 #if __ANDROID_API__ < 22
11992 #error "Android API < 22 is buggy"
11993 #endif
11994 #endif
11995
11996 ;
11997 return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_compile "$LINENO"
12001 then :
12002 ac_cv_func_strnlen_working=yes
12003 else case e in #(
12004 e) ac_cv_func_strnlen_working=no ;;
12005 esac
12006 fi
12007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12008 else case e in #(
12009 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12011 $ac_includes_default
12012 /* Use pstrnlen to test; 'volatile' prevents the compiler
12013 from optimizing the strnlen calls away. */
12014 size_t (*volatile pstrnlen) (char const *, size_t) = strnlen;
12015 char const s[] = "foobar";
12016 int s_len = sizeof s - 1;
12017
12018 int
12019 main (void)
12020 {
12021
12022 /* AIX 4.3 is buggy: strnlen (S, 1) == 3. */
12023 int i;
12024 for (i = 0; i < s_len + 1; ++i)
12025 {
12026 int expected = i <= s_len ? i : s_len;
12027 if (pstrnlen (s, i) != expected)
12028 return 1;
12029 }
12030
12031 /* Android 5.0 (API 21) strnlen ("", SIZE_MAX) incorrectly crashes. */
12032 if (pstrnlen ("", -1) != 0)
12033 return 1;
12034 ;
12035 return 0;
12036 }
12037 _ACEOF
12038 if ac_fn_c_try_run "$LINENO"
12039 then :
12040 ac_cv_func_strnlen_working=yes
12041 else case e in #(
12042 e) ac_cv_func_strnlen_working=no ;;
12043 esac
12044 fi
12045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12046 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12047 esac
12048 fi
12049 ;;
12050 esac
12051 fi
12052 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
12053 printf '%s\n' "$ac_cv_func_strnlen_working" >&6; }
12054 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
12055 *" strnlen.$ac_objext "* ) ;;
12056 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
12057 ;;
12058 esac
12059
12060
12061 if test "x$ac_cv_func_strnlen_working" = xyes; then
12062
12063 printf '%s\n' "#define HAVE_STRNLEN 1" >>confdefs.h
12064
12065 fi
12066
12067 # Obtain compiler/linker options for xlsclients dependencies
12068
12069 pkg_failed=no
12070 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking for XLSCLIENTS" >&5
12071 printf %s "checking for XLSCLIENTS... " >&6; }
12072
12073 if test -n "$XLSCLIENTS_CFLAGS"; then
12074 pkg_cv_XLSCLIENTS_CFLAGS="$XLSCLIENTS_CFLAGS"
12075 elif test -n "$PKG_CONFIG"; then
12076 if test -n "$PKG_CONFIG" && \
12077 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6\""; } >&5
12078 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6") 2>&5
12079 ac_status=$?
12080 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12081 test $ac_status = 0; }; then
12082 pkg_cv_XLSCLIENTS_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.6" 2>/dev/null`
12083 test "x$?" != "x0" && pkg_failed=yes
12084 else
12085 pkg_failed=yes
12086 fi
12087 else
12088 pkg_failed=untried
12089 fi
12090 if test -n "$XLSCLIENTS_LIBS"; then
12091 pkg_cv_XLSCLIENTS_LIBS="$XLSCLIENTS_LIBS"
12092 elif test -n "$PKG_CONFIG"; then
12093 if test -n "$PKG_CONFIG" && \
12094 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6\""; } >&5
12095 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6") 2>&5
12096 ac_status=$?
12097 printf '%s\n' "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12098 test $ac_status = 0; }; then
12099 pkg_cv_XLSCLIENTS_LIBS=`$PKG_CONFIG --libs "xcb >= 1.6" 2>/dev/null`
12100 test "x$?" != "x0" && pkg_failed=yes
12101 else
12102 pkg_failed=yes
12103 fi
12104 else
12105 pkg_failed=untried
12106 fi
12107
12108
12109
12110 if test $pkg_failed = yes; then
12111 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12112 printf '%s\n' "no" >&6; }
12113
12114 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12115 _pkg_short_errors_supported=yes
12116 else
12117 _pkg_short_errors_supported=no
12118 fi
12119 if test $_pkg_short_errors_supported = yes; then
12120 XLSCLIENTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.6" 2>&1`
12121 else
12122 XLSCLIENTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.6" 2>&1`
12123 fi
12124 # Put the nasty error message in config.log where it belongs
12125 echo "$XLSCLIENTS_PKG_ERRORS" >&5
12126
12127 as_fn_error $? "Package requirements (xcb >= 1.6) were not met:
12128
12129 $XLSCLIENTS_PKG_ERRORS
12130
12131 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12132 installed software in a non-standard prefix.
12133
12134 Alternatively, you may set the environment variables XLSCLIENTS_CFLAGS
12135 and XLSCLIENTS_LIBS to avoid the need to call pkg-config.
12136 See the pkg-config man page for more details." "$LINENO" 5
12137 elif test $pkg_failed = untried; then
12138 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: no" >&5
12139 printf '%s\n' "no" >&6; }
12140 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12141 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
12142 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12143 is in your PATH or set the PKG_CONFIG environment variable to the full
12144 path to pkg-config.
12145
12146 Alternatively, you may set the environment variables XLSCLIENTS_CFLAGS
12147 and XLSCLIENTS_LIBS to avoid the need to call pkg-config.
12148 See the pkg-config man page for more details.
12149
12150 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12151 See 'config.log' for more details" "$LINENO" 5; }
12152 else
12153 XLSCLIENTS_CFLAGS=$pkg_cv_XLSCLIENTS_CFLAGS
12154 XLSCLIENTS_LIBS=$pkg_cv_XLSCLIENTS_LIBS
12155 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12156 printf '%s\n' "yes" >&6; }
12157
12158 fi
12159
12160 ac_config_files="$ac_config_files Makefile man/Makefile"
12161
12162 cat >confcache <<\_ACEOF
12163 # This file is a shell script that caches the results of configure
12164 # tests run on this system so they can be shared between configure
12165 # scripts and configure runs, see configure's option --config-cache.
12166 # It is not useful on other systems. If it contains results you don't
12167 # want to keep, you may remove or edit it.
12168 #
12169 # config.status only pays attention to the cache file if you give it
12170 # the --recheck option to rerun configure.
12171 #
12172 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
12173 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
12174 # following values.
12175
12176 _ACEOF
12177
12178 ac_cache_dump |
12179 sed '
12180 /^ac_cv_env_/b end
12181 t clear
12182 :clear
12183 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12184 t end
12185 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12186 :end' >>confcache
12187 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12188 if test -w "$cache_file"; then
12189 if test "x$cache_file" != "x/dev/null"; then
12190 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12191 printf '%s\n' "$as_me: updating cache $cache_file" >&6;}
12192 if test ! -f "$cache_file" || test -h "$cache_file"; then
12193 cat confcache >"$cache_file"
12194 else
12195 case $cache_file in #(
12196 */* | ?:*)
12197 mv -f confcache "$cache_file"$$ &&
12198 mv -f "$cache_file"$$ "$cache_file" ;; #(
12199 *)
12200 mv -f confcache "$cache_file" ;;
12201 esac
12202 fi
12203 fi
12204 else
12205 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12206 printf '%s\n' "$as_me: not updating unwritable cache $cache_file" >&6;}
12207 fi
12208 fi
12209 rm -f confcache
12210
12211 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12212 # Let make expand exec_prefix.
12213 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12214
12215 DEFS=-DHAVE_CONFIG_H
12216
12217 ac_libobjs=
12218 ac_ltlibobjs=
12219 U=
12220 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12221 # 1. Remove the extension, and $U if already installed.
12222 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12223 ac_i=`printf '%s\n' "$ac_i" | sed "$ac_script"`
12224 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12225 # will be set to the directory where LIBOBJS objects are built.
12226 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12227 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12228 done
12229 LIBOBJS=$ac_libobjs
12230
12231 LTLIBOBJS=$ac_ltlibobjs
12232
12233
12234 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12235 printf %s "checking that generated files are newer than configure... " >&6; }
12236 if test -n "$am_sleep_pid"; then
12237 # Hide warnings about reused PIDs.
12238 wait $am_sleep_pid 2>/dev/null
12239 fi
12240 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: result: done" >&5
12241 printf '%s\n' "done" >&6; }
12242 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12243 as_fn_error $? "conditional \"AMDEP\" was never defined.
12244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12245 fi
12246 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12247 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12249 fi
12250 case $enable_silent_rules in # (((
12251 yes) AM_DEFAULT_VERBOSITY=0;;
12252 no) AM_DEFAULT_VERBOSITY=1;;
12253 esac
12254 if test $am_cv_make_support_nested_variables = yes; then
12255 AM_V='$(V)'
12256 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
12257 else
12258 AM_V=$AM_DEFAULT_VERBOSITY
12259 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
12260 fi
12261
12262 if test -n "$EXEEXT"; then
12263 am__EXEEXT_TRUE=
12264 am__EXEEXT_FALSE='#'
12265 else
12266 am__EXEEXT_TRUE='#'
12267 am__EXEEXT_FALSE=
12268 fi
12269
12270
12271 : "${CONFIG_STATUS=./config.status}"
12272 case $CONFIG_STATUS in #(
12273 -*) :
12274 CONFIG_STATUS=./$CONFIG_STATUS ;; #(
12275 */*) :
12276 ;; #(
12277 *) :
12278 CONFIG_STATUS=./$CONFIG_STATUS ;;
12279 esac
12280
12281 ac_write_fail=0
12282 ac_clean_CONFIG_STATUS='"$CONFIG_STATUS"'
12283 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12284 printf '%s\n' "$as_me: creating $CONFIG_STATUS" >&6;}
12285 as_write_fail=0
12286 cat >"$CONFIG_STATUS" <<_ASEOF || as_write_fail=1
12287 #! $SHELL
12288 # Generated by $as_me.
12289 # Run this file to recreate the current configuration.
12290 # Compiler output produced by configure, useful for debugging
12291 # configure, is in config.log if it exists.
12292
12293 debug=false
12294 ac_cs_recheck=false
12295 ac_cs_silent=false
12296
12297 SHELL=\${CONFIG_SHELL-$SHELL}
12298 export SHELL
12299 _ASEOF
12300 cat >>"$CONFIG_STATUS" <<\_ASEOF || as_write_fail=1
12301 ## -------------------- ##
12302 ## M4sh Initialization. ##
12303 ## -------------------- ##
12304
12305 # Be more Bourne compatible
12306 DUALCASE=1; export DUALCASE # for MKS sh
12307 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12308 then :
12309 emulate sh
12310 NULLCMD=:
12311 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12312 # contradicts POSIX and common usage. Disable this.
12313 alias -g '${1+"$@"}'='"$@"'
12314 setopt NO_GLOB_SUBST
12315 else case e in #(
12316 e) case `(set -o) 2>/dev/null` in #(
12317 *posix*) :
12318 set -o posix ;; #(
12319 *) :
12320 ;;
12321 esac ;;
12322 esac
12323 fi
12324
12325
12326
12327 # Reset variables that may have inherited troublesome values from
12328 # the environment.
12329
12330 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12331 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12332 # side effect of setting IFS to empty, thus disabling word splitting.)
12333 # Quoting is to prevent editors from complaining about space-tab.
12334 as_nl='
12335 '
12336 export as_nl
12337 IFS=" "" $as_nl"
12338
12339 PS1='$ '
12340 PS2='> '
12341 PS4='+ '
12342
12343 # Ensure predictable behavior from utilities with locale-dependent output.
12344 LC_ALL=C
12345 export LC_ALL
12346 LANGUAGE=C
12347 export LANGUAGE
12348
12349 # We cannot yet rely on "unset" to work, but we need these variables
12350 # to be unset--not just set to an empty or harmless value--now, to
12351 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12352 # also avoids known problems related to "unset" and subshell syntax
12353 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12354 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12355 do eval test \${$as_var+y} \
12356 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12357 done
12358
12359 # Ensure that fds 0, 1, and 2 are open.
12360 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12361 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12362 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12363
12364 # The user is always right.
12365 if ${PATH_SEPARATOR+false} :; then
12366 PATH_SEPARATOR=:
12367 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12368 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12369 PATH_SEPARATOR=';'
12370 }
12371 fi
12372
12373
12374 # Find who we are. Look in the path if we contain no directory separator.
12375 as_myself=
12376 case $0 in #((
12377 *[\\/]* ) as_myself=$0 ;;
12378 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12379 for as_dir in $PATH
12380 do
12381 IFS=$as_save_IFS
12382 case $as_dir in #(((
12383 '') as_dir=./ ;;
12384 */) ;;
12385 *) as_dir=$as_dir/ ;;
12386 esac
12387 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12388 done
12389 IFS=$as_save_IFS
12390
12391 ;;
12392 esac
12393 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12394 # in which case we are not to be found in the path.
12395 if test "x$as_myself" = x; then
12396 as_myself=$0
12397 fi
12398 if test ! -f "$as_myself"; then
12399 printf '%s\n' "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12400 exit 1
12401 fi
12402
12403
12404
12405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12406 # ----------------------------------------
12407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12409 # script with STATUS, using 1 if that was 0.
12410 as_fn_error ()
12411 {
12412 as_status=$1; test $as_status -eq 0 && as_status=1
12413 if test "$4"; then
12414 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12415 printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12416 fi
12417 printf '%s\n' "$as_me: error: $2" >&2
12418 as_fn_exit $as_status
12419 } # as_fn_error
12420
12421
12422 # as_fn_set_status STATUS
12423 # -----------------------
12424 # Set $? to STATUS, without forking.
12425 as_fn_set_status ()
12426 {
12427 return $1
12428 } # as_fn_set_status
12429
12430 # as_fn_exit STATUS
12431 # -----------------
12432 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12433 as_fn_exit ()
12434 {
12435 set +e
12436 as_fn_set_status $1
12437 exit $1
12438 } # as_fn_exit
12439
12440 # as_fn_unset VAR
12441 # ---------------
12442 # Portably unset VAR.
12443 as_fn_unset ()
12444 {
12445 { eval $1=; unset $1;}
12446 }
12447 as_unset=as_fn_unset
12448
12449 # as_fn_append VAR VALUE
12450 # ----------------------
12451 # Append the text in VALUE to the end of the definition contained in VAR. Take
12452 # advantage of any shell optimizations that allow amortized linear growth over
12453 # repeated appends, instead of the typical quadratic growth present in naive
12454 # implementations.
12455 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12456 then :
12457 eval 'as_fn_append ()
12458 {
12459 eval $1+=\$2
12460 }'
12461 else case e in #(
12462 e) as_fn_append ()
12463 {
12464 eval $1=\$$1\$2
12465 } ;;
12466 esac
12467 fi # as_fn_append
12468
12469 # as_fn_arith ARG...
12470 # ------------------
12471 # Perform arithmetic evaluation on the ARGs, and store the result in the
12472 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12473 # must be portable across $(()) and expr.
12474 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12475 then :
12476 eval 'as_fn_arith ()
12477 {
12478 as_val=$(( $* ))
12479 }'
12480 else case e in #(
12481 e) as_fn_arith ()
12482 {
12483 as_val=`expr "$@" || test $? -eq 1`
12484 } ;;
12485 esac
12486 fi # as_fn_arith
12487
12488
12489 if expr a : '\(a\)' >/dev/null 2>&1 &&
12490 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12491 as_expr=expr
12492 else
12493 as_expr=false
12494 fi
12495
12496 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12497 as_basename=basename
12498 else
12499 as_basename=false
12500 fi
12501
12502 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12503 as_dirname=dirname
12504 else
12505 as_dirname=false
12506 fi
12507
12508 as_me=`$as_basename -- "$0" ||
12509 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12510 X"$0" : 'X\(//\)$' \| \
12511 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12512 printf '%s\n' X/"$0" |
12513 sed '/^.*\/\([^/][^/]*\)\/*$/{
12514 s//\1/
12515 q
12516 }
12517 /^X\/\(\/\/\)$/{
12518 s//\1/
12519 q
12520 }
12521 /^X\/\(\/\).*/{
12522 s//\1/
12523 q
12524 }
12525 s/.*/./; q'`
12526
12527 # Avoid depending upon Character Ranges.
12528 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12529 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12530 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12531 as_cr_digits='0123456789'
12532 as_cr_alnum=$as_cr_Letters$as_cr_digits
12533
12534 rm -f conf$$ conf$$.exe conf$$.file
12535 if test -d conf$$.dir; then
12536 rm -f conf$$.dir/conf$$.file
12537 else
12538 rm -f conf$$.dir
12539 mkdir conf$$.dir 2>/dev/null
12540 fi
12541 if (echo >conf$$.file) 2>/dev/null; then
12542 if ln -s conf$$.file conf$$ 2>/dev/null; then
12543 as_ln_s='ln -s'
12544 # ... but there are two gotchas:
12545 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12546 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12547 # In both cases, we have to default to 'cp -pR'.
12548 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12549 as_ln_s='cp -pR'
12550 elif ln conf$$.file conf$$ 2>/dev/null; then
12551 as_ln_s=ln
12552 else
12553 as_ln_s='cp -pR'
12554 fi
12555 else
12556 as_ln_s='cp -pR'
12557 fi
12558 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12559 rmdir conf$$.dir 2>/dev/null
12560
12561
12562 # as_fn_mkdir_p
12563 # -------------
12564 # Create "$as_dir" as a directory, including parents if necessary.
12565 as_fn_mkdir_p ()
12566 {
12567
12568 case $as_dir in #(
12569 -*) as_dir=./$as_dir;;
12570 esac
12571 test -d "$as_dir" || eval $as_mkdir_p || {
12572 as_dirs=
12573 while :; do
12574 case $as_dir in #(
12575 *\'*) as_qdir=`printf '%s\n' "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12576 *) as_qdir=$as_dir;;
12577 esac
12578 as_dirs="'$as_qdir' $as_dirs"
12579 as_dir=`$as_dirname -- "$as_dir" ||
12580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12581 X"$as_dir" : 'X\(//\)[^/]' \| \
12582 X"$as_dir" : 'X\(//\)$' \| \
12583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12584 printf '%s\n' X"$as_dir" |
12585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12586 s//\1/
12587 q
12588 }
12589 /^X\(\/\/\)[^/].*/{
12590 s//\1/
12591 q
12592 }
12593 /^X\(\/\/\)$/{
12594 s//\1/
12595 q
12596 }
12597 /^X\(\/\).*/{
12598 s//\1/
12599 q
12600 }
12601 s/.*/./; q'`
12602 test -d "$as_dir" && break
12603 done
12604 test -z "$as_dirs" || eval "mkdir $as_dirs"
12605 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12606
12607
12608 } # as_fn_mkdir_p
12609 if mkdir -p . 2>/dev/null; then
12610 as_mkdir_p='mkdir -p "$as_dir"'
12611 else
12612 test -d ./-p && rmdir ./-p
12613 as_mkdir_p=false
12614 fi
12615
12616
12617 # as_fn_executable_p FILE
12618 # -----------------------
12619 # Test if FILE is an executable regular file.
12620 as_fn_executable_p ()
12621 {
12622 test -f "$1" && test -x "$1"
12623 } # as_fn_executable_p
12624 as_test_x='test -x'
12625 as_executable_p=as_fn_executable_p
12626
12627 # Sed expression to map a string onto a valid CPP name.
12628 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12629 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12630
12631 # Sed expression to map a string onto a valid variable name.
12632 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12633 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12634
12635
12636 exec 6>&1
12637 ## ------------------------------------- ##
12638 ## Main body of "$CONFIG_STATUS" script. ##
12639 ## ------------------------------------- ##
12640 _ASEOF
12641 test $as_write_fail = 0 && chmod +x "$CONFIG_STATUS" || ac_write_fail=1
12642
12643 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12644 # Save the log message, to keep $0 and so on meaningful, and to
12645 # report actual input values of CONFIG_FILES etc. instead of their
12646 # values after options handling.
12647 ac_log="
12648 This file was extended by xlsclients $as_me 1.1.6, which was
12649 generated by GNU Autoconf 2.73. Invocation command line was
12650
12651 CONFIG_FILES = $CONFIG_FILES
12652 CONFIG_HEADERS = $CONFIG_HEADERS
12653 CONFIG_LINKS = $CONFIG_LINKS
12654 CONFIG_COMMANDS = $CONFIG_COMMANDS
12655 $ $0 $@
12656
12657 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12658 "
12659
12660 _ACEOF
12661
12662 case $ac_config_files in *"
12663 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12664 esac
12665
12666 case $ac_config_headers in *"
12667 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12668 esac
12669
12670
12671 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12672 # Files that config.status was made for.
12673 config_files="$ac_config_files"
12674 config_headers="$ac_config_headers"
12675 config_commands="$ac_config_commands"
12676
12677 _ACEOF
12678
12679 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12680 ac_cs_usage="\
12681 '$as_me' instantiates files and other configuration actions
12682 from templates according to the current configuration. Unless the files
12683 and actions are specified as TAGs, all are instantiated by default.
12684
12685 Usage: $0 [OPTION]... [TAG]...
12686
12687 -h, --help print this help, then exit
12688 -V, --version print version number and configuration settings, then exit
12689 --config print configuration, then exit
12690 -q, --quiet, --silent
12691 do not print progress messages
12692 -d, --debug don't remove temporary files
12693 --recheck update $as_me by reconfiguring in the same conditions
12694 --file=FILE[:TEMPLATE]
12695 instantiate the configuration file FILE
12696 --header=FILE[:TEMPLATE]
12697 instantiate the configuration header FILE
12698
12699 Configuration files:
12700 $config_files
12701
12702 Configuration headers:
12703 $config_headers
12704
12705 Configuration commands:
12706 $config_commands
12707
12708 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xlsclients/-/issues>."
12709
12710 _ACEOF
12711 ac_cs_config=`printf '%s\n' "$ac_configure_args" | sed "$ac_safe_unquote"`
12712 ac_cs_config_escaped=`printf '%s\n' "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12713 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12714 ac_cs_config='$ac_cs_config_escaped'
12715 ac_cs_version="\\
12716 xlsclients config.status 1.1.6
12717 configured by $0, generated by GNU Autoconf 2.73,
12718 with options \\"\$ac_cs_config\\"
12719
12720 Copyright (C) 2026 Free Software Foundation, Inc.
12721 This config.status script is free software; the Free Software Foundation
12722 gives unlimited permission to copy, distribute and modify it."
12723
12724 ac_pwd='$ac_pwd'
12725 srcdir='$srcdir'
12726 INSTALL='$INSTALL'
12727 MKDIR_P='$MKDIR_P'
12728 AWK='$AWK'
12729 test -n "\$AWK" || {
12730 awk '' </dev/null ||
12731 as_fn_error \$? "try installing gawk"
12732 AWK=awk
12733 }
12734 _ACEOF
12735
12736 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12737 # The default lists apply if the user does not specify any file.
12738 ac_need_defaults=:
12739 while test $# != 0
12740 do
12741 case $1 in
12742 --*=?*)
12743 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12744 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12745 ac_shift=:
12746 ;;
12747 --*=)
12748 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12749 ac_optarg=
12750 ac_shift=:
12751 ;;
12752 *)
12753 ac_option=$1
12754 ac_optarg=$2
12755 ac_shift=shift
12756 ;;
12757 esac
12758
12759 case $ac_option in
12760 # Handling of the options.
12761 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12762 ac_cs_recheck=: ;;
12763 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12764 printf '%s\n' "$ac_cs_version"; exit ;;
12765 --config | --confi | --conf | --con | --co | --c )
12766 printf '%s\n' "$ac_cs_config"; exit ;;
12767 --debug | --debu | --deb | --de | --d | -d )
12768 debug=: ;;
12769 --file | --fil | --fi | --f )
12770 $ac_shift
12771 case $ac_optarg in
12772 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12773 '') as_fn_error $? "missing file argument" ;;
12774 esac
12775 as_fn_append CONFIG_FILES " '$ac_optarg'"
12776 ac_need_defaults=false;;
12777 --header | --heade | --head | --hea )
12778 $ac_shift
12779 case $ac_optarg in
12780 *\'*) ac_optarg=`printf '%s\n' "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12781 esac
12782 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12783 ac_need_defaults=false;;
12784 --he | --h)
12785 # Conflict between --help and --header
12786 as_fn_error $? "ambiguous option: '$1'
12787 Try '$0 --help' for more information.";;
12788 --help | --hel | -h )
12789 printf '%s\n' "$ac_cs_usage"; exit ;;
12790 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12791 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12792 ac_cs_silent=: ;;
12793
12794 # This is an error.
12795 -*) as_fn_error $? "unrecognized option: '$1'
12796 Try '$0 --help' for more information." ;;
12797
12798 *) as_fn_append ac_config_targets " $1"
12799 ac_need_defaults=false ;;
12800
12801 esac
12802 shift
12803 done
12804
12805 ac_configure_extra_args=
12806
12807 if $ac_cs_silent; then
12808 exec 6>/dev/null
12809 ac_configure_extra_args="$ac_configure_extra_args --silent"
12810 fi
12811
12812 _ACEOF
12813 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12814 if \$ac_cs_recheck; then
12815 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12816 shift
12817 \printf '%s\n' "running CONFIG_SHELL=$SHELL \$*" >&6
12818 CONFIG_SHELL='$SHELL'
12819 export CONFIG_SHELL
12820 exec "\$@"
12821 fi
12822
12823 _ACEOF
12824 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12825 exec 5>>config.log
12826 {
12827 echo
12828 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12829 ## Running $as_me. ##
12830 _ASBOX
12831 printf '%s\n' "$ac_log"
12832 } >&5
12833
12834 _ACEOF
12835 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12836 #
12837 # INIT-COMMANDS
12838 #
12839 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12840
12841 _ACEOF
12842
12843 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
12844
12845 # Handling of arguments.
12846 for ac_config_target in $ac_config_targets
12847 do
12848 case $ac_config_target in
12849 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12850 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12851 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12852 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12853
12854 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12855 esac
12856 done
12857
12858
12859 # If the user did not use the arguments to specify the items to instantiate,
12860 # then the envvar interface is used. Set only those that are not.
12861 # We use the long form for the default assignment because of an extremely
12862 # bizarre bug on SunOS 4.1.3.
12863 if $ac_need_defaults; then
12864 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12865 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12866 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12867 fi
12868
12869 # Have a temporary directory for convenience. Make it in the build tree
12870 # simply because there is no reason against having it here, and in addition,
12871 # creating and moving files from /tmp can sometimes cause problems.
12872 # Hook for its removal unless debugging.
12873 # Note that there is a small window in which the directory will not be cleaned:
12874 # after its creation but before its name has been assigned to '$tmp'.
12875 $debug ||
12876 {
12877 tmp= ac_tmp=
12878 trap 'exit_status=$?
12879 : "${ac_tmp:=$tmp}"
12880 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12881 ' 0
12882 trap 'as_fn_exit 1' 1 2 13 15
12883 }
12884 # Create a (secure) tmp directory for tmp files.
12885
12886 {
12887 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12888 test -d "$tmp"
12889 } ||
12890 {
12891 tmp=./conf$$-$RANDOM
12892 (umask 077 && mkdir "$tmp")
12893 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12894 ac_tmp=$tmp
12895
12896 # Set up the scripts for CONFIG_FILES section.
12897 # No need to generate them if there are no CONFIG_FILES.
12898 # This happens for instance with './config.status config.h'.
12899 if test -n "$CONFIG_FILES"; then
12900
12901
12902 ac_cr=`echo X | tr X '\015'`
12903 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12904 # But we know of no other shell where ac_cr would be empty at this
12905 # point, so we can use a bashism as a fallback.
12906 if test "x$ac_cr" = x; then
12907 eval ac_cr=\$\'\\r\'
12908 fi
12909 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12910 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12911 ac_cs_awk_cr='\\r'
12912 else
12913 ac_cs_awk_cr=$ac_cr
12914 fi
12915
12916 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12917 _ACEOF
12918
12919
12920 {
12921 echo "cat >conf$$subs.awk <<_ACEOF" &&
12922 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12923 echo "_ACEOF"
12924 } >conf$$subs.sh ||
12925 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12926 ac_delim_num=`echo "$ac_subst_vars" | sed -n '$='`
12927 ac_delim='%!_!# '
12928 for ac_last_try in false false false false false :; do
12929 . ./conf$$subs.sh ||
12930 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12931
12932 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | sed -n '$='`
12933 if test $ac_delim_n = $ac_delim_num; then
12934 break
12935 elif $ac_last_try; then
12936 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12937 else
12938 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12939 fi
12940 done
12941 rm -f conf$$subs.sh
12942
12943 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12944 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12945 _ACEOF
12946 sed -n '
12947 h
12948 s/^/S["/; s/!.*/"]=/
12949 p
12950 g
12951 s/^[^!]*!//
12952 :repl
12953 t repl
12954 s/'"$ac_delim"'$//
12955 t delim
12956 :nl
12957 h
12958 s/\(.\{148\}\)..*/\1/
12959 t more1
12960 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12961 p
12962 n
12963 b repl
12964 :more1
12965 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12966 p
12967 g
12968 s/.\{148\}//
12969 t nl
12970 :delim
12971 h
12972 s/\(.\{148\}\)..*/\1/
12973 t more2
12974 s/["\\]/\\&/g; s/^/"/; s/$/"/
12975 p
12976 b
12977 :more2
12978 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12979 p
12980 g
12981 s/.\{148\}//
12982 t delim
12983 ' <conf$$subs.awk | sed '
12984 /^[^""]/{
12985 N
12986 s/\n//
12987 }
12988 ' >>"$CONFIG_STATUS" || ac_write_fail=1
12989 rm -f conf$$subs.awk
12990 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
12991 _ACAWK
12992 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12993 for (key in S) S_is_set[key] = 1
12994 FS = ""
12995
12996 }
12997 {
12998 line = $ 0
12999 nfields = split(line, field, "@")
13000 substed = 0
13001 len = length(field[1])
13002 for (i = 2; i < nfields; i++) {
13003 key = field[i]
13004 keylen = length(key)
13005 if (S_is_set[key]) {
13006 value = S[key]
13007 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13008 len += length(value) + length(field[++i])
13009 substed = 1
13010 } else
13011 len += 1 + keylen
13012 }
13013
13014 print line
13015 }
13016
13017 _ACAWK
13018 _ACEOF
13019 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13020 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13021 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13022 else
13023 cat
13024 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13025 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13026 _ACEOF
13027
13028 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13029 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13030 # trailing colons and then remove the whole line if VPATH becomes empty
13031 # (actually we leave an empty line to preserve line numbers).
13032 if test "x$srcdir" = x.; then
13033 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13034 h
13035 s///
13036 s/^/:/
13037 s/[ ]*$/:/
13038 s/:\$(srcdir):/:/g
13039 s/:\${srcdir}:/:/g
13040 s/:@srcdir@:/:/g
13041 s/^:*//
13042 s/:*$//
13043 x
13044 s/\(=[ ]*\).*/\1/
13045 G
13046 s/\n//
13047 s/^[^=]*=[ ]*$//
13048 }'
13049 fi
13050
13051 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13052 fi # test -n "$CONFIG_FILES"
13053
13054 # Set up the scripts for CONFIG_HEADERS section.
13055 # No need to generate them if there are no CONFIG_HEADERS.
13056 # This happens for instance with './config.status Makefile'.
13057 if test -n "$CONFIG_HEADERS"; then
13058 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13059 BEGIN {
13060 _ACEOF
13061
13062 # Transform confdefs.h into an awk script 'defines.awk', embedded as
13063 # here-document in config.status, that substitutes the proper values into
13064 # config.h.in to produce config.h.
13065
13066 # Create a delimiter string that does not exist in confdefs.h, to ease
13067 # handling of long lines.
13068 ac_delim='%!_!# '
13069 for ac_last_try in false false :; do
13070 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13071 if test -z "$ac_tt"; then
13072 break
13073 elif $ac_last_try; then
13074 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13075 else
13076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13077 fi
13078 done
13079
13080 # For the awk script, D is an array of macro values keyed by name,
13081 # likewise P contains macro parameters if any. Preserve backslash
13082 # newline sequences.
13083
13084 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13085 sed -n '
13086 s/.\{148\}/&'"$ac_delim"'/g
13087 t rset
13088 :rset
13089 s/^[ ]*#[ ]*define[ ][ ]*/ /
13090 t def
13091 d
13092 :def
13093 s/\\$//
13094 t bsnl
13095 s/["\\]/\\&/g
13096 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13097 D["\1"]=" \3"/p
13098 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13099 d
13100 :bsnl
13101 s/["\\]/\\&/g
13102 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13103 D["\1"]=" \3\\\\\\n"\\/p
13104 t cont
13105 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13106 t cont
13107 d
13108 :cont
13109 n
13110 s/.\{148\}/&'"$ac_delim"'/g
13111 t clear
13112 :clear
13113 s/\\$//
13114 t bsnlc
13115 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13116 d
13117 :bsnlc
13118 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13119 b cont
13120 ' <confdefs.h | sed '
13121 s/'"$ac_delim"'/"\\\
13122 "/g' >>"$CONFIG_STATUS" || ac_write_fail=1
13123
13124 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13125 for (key in D) D_is_set[key] = 1
13126 FS = ""
13127 }
13128 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13129 line = \$ 0
13130 split(line, arg, " ")
13131 if (arg[1] == "#") {
13132 defundef = arg[2]
13133 mac1 = arg[3]
13134 } else {
13135 defundef = substr(arg[1], 2)
13136 mac1 = arg[2]
13137 }
13138 split(mac1, mac2, "(") #)
13139 macro = mac2[1]
13140 prefix = substr(line, 1, index(line, defundef) - 1)
13141 if (D_is_set[macro]) {
13142 suffix = P[macro] D[macro]
13143 while (suffix ~ /[\t ]$/) {
13144 suffix = substr(suffix, 1, length(suffix) - 1)
13145 }
13146 # Preserve the white space surrounding the "#".
13147 print prefix "define", macro suffix
13148 next
13149 } else {
13150 # Replace #undef with comments. This is necessary, for example,
13151 # in the case of _POSIX_SOURCE, which is predefined and required
13152 # on some systems where configure will not decide to define it.
13153 if (defundef == "undef") {
13154 print "/*", prefix defundef, macro, "*/"
13155 next
13156 }
13157 }
13158 }
13159 { print }
13160 _ACAWK
13161 _ACEOF
13162 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13163 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13164 fi # test -n "$CONFIG_HEADERS"
13165
13166
13167 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13168 shift
13169 for ac_tag
13170 do
13171 case $ac_tag in
13172 :[FHLC]) ac_mode=$ac_tag; continue;;
13173 esac
13174 case $ac_mode$ac_tag in
13175 :[FHL]*:*);;
13176 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
13177 :[FH]-) ac_tag=-:-;;
13178 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13179 esac
13180 ac_save_IFS=$IFS
13181 IFS=:
13182 set x $ac_tag
13183 IFS=$ac_save_IFS
13184 shift
13185 ac_file=$1
13186 shift
13187
13188 case $ac_mode in
13189 :L) ac_source=$1;;
13190 :[FH])
13191 ac_file_inputs=
13192 for ac_f
13193 do
13194 case $ac_f in
13195 -) ac_f="$ac_tmp/stdin";;
13196 *) # Look for the file first in the build tree, then in the source tree
13197 # (if the path is not absolute). The absolute path cannot be DOS-style,
13198 # because $ac_f cannot contain ':'.
13199 test -f "$ac_f" ||
13200 case $ac_f in
13201 [\\/$]*) false;;
13202 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13203 esac ||
13204 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
13205 esac
13206 case $ac_f in *\'*) ac_f=`printf '%s\n' "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13207 as_fn_append ac_file_inputs " '$ac_f'"
13208 done
13209
13210 # Let's still pretend it is 'configure' which instantiates (i.e., don't
13211 # use $as_me), people would be surprised to read:
13212 # /* config.h. Generated by config.status. */
13213 configure_input='Generated from '`
13214 printf '%s\n' "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13215 `' by configure.'
13216 if test x"$ac_file" != x-; then
13217 configure_input="$ac_file. $configure_input"
13218 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13219 printf '%s\n' "$as_me: creating $ac_file" >&6;}
13220 fi
13221 # Neutralize special characters interpreted by sed in replacement strings.
13222 case $configure_input in #(
13223 *\&* | *\|* | *\\* )
13224 ac_sed_conf_input=`printf '%s\n' "$configure_input" |
13225 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13226 *) ac_sed_conf_input=$configure_input;;
13227 esac
13228
13229 case $ac_tag in
13230 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13231 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13232 esac
13233 ;;
13234 esac
13235
13236 ac_dir=`$as_dirname -- "$ac_file" ||
13237 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13238 X"$ac_file" : 'X\(//\)[^/]' \| \
13239 X"$ac_file" : 'X\(//\)$' \| \
13240 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13241 printf '%s\n' X"$ac_file" |
13242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13243 s//\1/
13244 q
13245 }
13246 /^X\(\/\/\)[^/].*/{
13247 s//\1/
13248 q
13249 }
13250 /^X\(\/\/\)$/{
13251 s//\1/
13252 q
13253 }
13254 /^X\(\/\).*/{
13255 s//\1/
13256 q
13257 }
13258 s/.*/./; q'`
13259 as_dir="$ac_dir"; as_fn_mkdir_p
13260 ac_builddir=.
13261
13262 case "$ac_dir" in
13263 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13264 *)
13265 ac_dir_suffix=/`printf '%s\n' "$ac_dir" | sed 's|^\.[\\/]||'`
13266 # A ".." for each directory in $ac_dir_suffix.
13267 ac_top_builddir_sub=`printf '%s\n' "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13268 case $ac_top_builddir_sub in
13269 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13270 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13271 esac ;;
13272 esac
13273 ac_abs_top_builddir=$ac_pwd
13274 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13275 # for backward compatibility:
13276 ac_top_builddir=$ac_top_build_prefix
13277
13278 case $srcdir in
13279 .) # We are building in place.
13280 ac_srcdir=.
13281 ac_top_srcdir=$ac_top_builddir_sub
13282 ac_abs_top_srcdir=$ac_pwd ;;
13283 [\\/]* | ?:[\\/]* ) # Absolute name.
13284 ac_srcdir=$srcdir$ac_dir_suffix;
13285 ac_top_srcdir=$srcdir
13286 ac_abs_top_srcdir=$srcdir ;;
13287 *) # Relative name.
13288 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13289 ac_top_srcdir=$ac_top_build_prefix$srcdir
13290 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13291 esac
13292 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13293
13294
13295 case $ac_mode in
13296 :F)
13297 #
13298 # CONFIG_FILE
13299 #
13300
13301 case $INSTALL in
13302 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13303 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13304 esac
13305 ac_MKDIR_P=$MKDIR_P
13306 case $MKDIR_P in
13307 [\\/$]* | ?:[\\/]* ) ;;
13308 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13309 esac
13310 _ACEOF
13311
13312 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13313 # If the template does not know about datarootdir, expand it.
13314 # FIXME: This hack should be removed a few years after 2.60.
13315 ac_datarootdir_hack=; ac_datarootdir_seen=
13316 ac_sed_dataroot='
13317 /datarootdir/ {
13318 p
13319 q
13320 }
13321 /@datadir@/p
13322 /@docdir@/p
13323 /@infodir@/p
13324 /@localedir@/p
13325 /@mandir@/p'
13326 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13327 *datarootdir*) ac_datarootdir_seen=yes;;
13328 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13329 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13330 printf '%s\n' "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13331 _ACEOF
13332 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13333 ac_datarootdir_hack='
13334 s&@datadir@&$datadir&g
13335 s&@docdir@&$docdir&g
13336 s&@infodir@&$infodir&g
13337 s&@localedir@&$localedir&g
13338 s&@mandir@&$mandir&g
13339 s&\\\${datarootdir}&$datarootdir&g' ;;
13340 esac
13341 _ACEOF
13342
13343 # Neutralize VPATH when '$srcdir' = '.'.
13344 # Shell code in configure.ac might set extrasub.
13345 # FIXME: do we really want to maintain this feature?
13346 cat >>"$CONFIG_STATUS" <<_ACEOF || ac_write_fail=1
13347 ac_sed_extra="$ac_vpsub
13348 $extrasub
13349 _ACEOF
13350 cat >>"$CONFIG_STATUS" <<\_ACEOF || ac_write_fail=1
13351 :t
13352 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13353 s|@configure_input@|$ac_sed_conf_input|;t t
13354 s&@top_builddir@&$ac_top_builddir_sub&;t t
13355 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13356 s&@srcdir@&$ac_srcdir&;t t
13357 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13358 s&@top_srcdir@&$ac_top_srcdir&;t t
13359 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13360 s&@builddir@&$ac_builddir&;t t
13361 s&@abs_builddir@&$ac_abs_builddir&;t t
13362 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13363 s&@INSTALL@&$ac_INSTALL&;t t
13364 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13365 $ac_datarootdir_hack
13366 "
13367 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13368 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13369
13370 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13371 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13372 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13373 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13374 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13375 which seems to be undefined. Please make sure it is defined" >&5
13376 printf '%s\n' "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13377 which seems to be undefined. Please make sure it is defined" >&2;}
13378
13379 rm -f "$ac_tmp/stdin"
13380 case $ac_file in
13381 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13382 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13383 esac \
13384 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13385 ;;
13386 :H)
13387 #
13388 # CONFIG_HEADER
13389 #
13390 if test x"$ac_file" != x-; then
13391 {
13392 printf '%s\n' "/* $configure_input */" >&1 \
13393 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13394 } >"$ac_tmp/config.h" \
13395 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13396 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13397 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13398 printf '%s\n' "$as_me: $ac_file is unchanged" >&6;}
13399 else
13400 rm -f "$ac_file"
13401 mv "$ac_tmp/config.h" "$ac_file" \
13402 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13403 fi
13404 else
13405 printf '%s\n' "/* $configure_input */" >&1 \
13406 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13407 || as_fn_error $? "could not create -" "$LINENO" 5
13408 fi
13409 # Compute "$ac_file"'s index in $config_headers.
13410 _am_arg="$ac_file"
13411 _am_stamp_count=1
13412 for _am_header in $config_headers :; do
13413 case $_am_header in
13414 $_am_arg | $_am_arg:* )
13415 break ;;
13416 * )
13417 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13418 esac
13419 done
13420 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13421 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13422 X"$_am_arg" : 'X\(//\)[^/]' \| \
13423 X"$_am_arg" : 'X\(//\)$' \| \
13424 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13425 printf '%s\n' X"$_am_arg" |
13426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13427 s//\1/
13428 q
13429 }
13430 /^X\(\/\/\)[^/].*/{
13431 s//\1/
13432 q
13433 }
13434 /^X\(\/\/\)$/{
13435 s//\1/
13436 q
13437 }
13438 /^X\(\/\).*/{
13439 s//\1/
13440 q
13441 }
13442 s/.*/./; q'`/stamp-h$_am_stamp_count
13443 ;;
13444
13445 :C) { printf '%s\n' "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13446 printf '%s\n' "$as_me: executing $ac_file commands" >&6;}
13447 ;;
13448 esac
13449
13450
13451 case $ac_file$ac_mode in
13452 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13453 # Older Autoconf quotes --file arguments for eval, but not when files
13454 # are listed without --file. Let's play safe and only enable the eval
13455 # if we detect the quoting.
13456 # TODO: see whether this extra hack can be removed once we start
13457 # requiring Autoconf 2.70 or later.
13458 case $CONFIG_FILES in #(
13459 *\'*) :
13460 eval set x "$CONFIG_FILES" ;; #(
13461 *) :
13462 set x $CONFIG_FILES ;; #(
13463 *) :
13464 ;;
13465 esac
13466 shift
13467 # Used to flag and report bootstrapping failures.
13468 am_rc=0
13469 for am_mf
13470 do
13471 # Strip MF so we end up with the name of the file.
13472 am_mf=`printf '%s\n' "$am_mf" | sed -e 's/:.*$//'`
13473 # Check whether this is an Automake generated Makefile which includes
13474 # dependency-tracking related rules and includes.
13475 # Grep'ing the whole file directly is not great: AIX grep has a line
13476 # limit of 2048, but all sed's we know have understand at least 4000.
13477 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13478 || continue
13479 am_dirpart=`$as_dirname -- "$am_mf" ||
13480 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13481 X"$am_mf" : 'X\(//\)[^/]' \| \
13482 X"$am_mf" : 'X\(//\)$' \| \
13483 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13484 printf '%s\n' X"$am_mf" |
13485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13486 s//\1/
13487 q
13488 }
13489 /^X\(\/\/\)[^/].*/{
13490 s//\1/
13491 q
13492 }
13493 /^X\(\/\/\)$/{
13494 s//\1/
13495 q
13496 }
13497 /^X\(\/\).*/{
13498 s//\1/
13499 q
13500 }
13501 s/.*/./; q'`
13502 am_filepart=`$as_basename -- "$am_mf" ||
13503 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13504 X"$am_mf" : 'X\(//\)$' \| \
13505 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13506 printf '%s\n' X/"$am_mf" |
13507 sed '/^.*\/\([^/][^/]*\)\/*$/{
13508 s//\1/
13509 q
13510 }
13511 /^X\/\(\/\/\)$/{
13512 s//\1/
13513 q
13514 }
13515 /^X\/\(\/\).*/{
13516 s//\1/
13517 q
13518 }
13519 s/.*/./; q'`
13520 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13521 && sed -e '/# am--include-marker/d' "$am_filepart" \
13522 | $MAKE -f - am--depfiles" >&5
13523 (cd "$am_dirpart" \
13524 && sed -e '/# am--include-marker/d' "$am_filepart" \
13525 | $MAKE -f - am--depfiles) >&5 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } || am_rc=$?
13529 done
13530 if test $am_rc -ne 0; then
13531 { { printf '%s\n' "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13532 printf '%s\n' "$as_me: error: in '$ac_pwd':" >&2;}
13533 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13534 for automatic dependency tracking. If GNU make was not used, consider
13535 re-running the configure script with MAKE=\"gmake\" (or whatever is
13536 necessary). You can also try re-running configure with the
13537 '--disable-dependency-tracking' option to at least be able to build
13538 the package (albeit without support for automatic dependency tracking).
13539 See 'config.log' for more details" "$LINENO" 5; }
13540 fi
13541 { am_dirpart=; unset am_dirpart;}
13542 { am_filepart=; unset am_filepart;}
13543 { am_mf=; unset am_mf;}
13544 { am_rc=; unset am_rc;}
13545 rm -f conftest-deps.mk
13546 }
13547 ;;
13548
13549 esac
13550 done # for ac_tag
13551
13552
13553 as_fn_exit 0
13554 _ACEOF
13555 ac_clean_CONFIG_STATUS=
13556
13557 test $ac_write_fail = 0 ||
13558 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13559
13560
13561 # configure is writing to config.log, and then calls config.status.
13562 # config.status does its own redirection, appending to config.log.
13563 # Unfortunately, on DOS this fails, as config.log is still kept open
13564 # by configure, so config.status won't be able to write to it; its
13565 # output is simply discarded. So we exec the FD to /dev/null,
13566 # effectively closing config.log, so it can be properly (re)opened and
13567 # appended to by config.status. When coming back to configure, we
13568 # need to make the FD available again.
13569 if test "$no_create" != yes; then
13570 ac_cs_success=:
13571 case $CONFIG_STATUS in #(
13572 -*) :
13573 ac_no_opts=-- ;; #(
13574 *) :
13575 ac_no_opts= ;;
13576 esac
13577 ac_config_status_args=
13578 test "$silent" = yes &&
13579 ac_config_status_args="$ac_config_status_args --quiet"
13580 exec 5>/dev/null
13581 $SHELL $ac_no_opts "$CONFIG_STATUS" $ac_config_status_args ||
13582 ac_cs_success=false
13583 exec 5>>config.log
13584 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13585 # would make configure fail if this is the last instruction.
13586 $ac_cs_success || as_fn_exit 1
13587 fi
13588 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13589 { printf '%s\n' "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13590 printf '%s\n' "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13591 fi
13592
13593
13594