configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for xfontsel 1.1.1.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfontsel/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21 then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else case e in #(
29 e) case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as 'sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed 'exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
144 then :
145 emulate sh
146 NULLCMD=:
147 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
148 # is contrary to our usage. Disable this feature.
149 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 setopt NO_GLOB_SUBST
151 else case e in #(
152 e) case \`(set -o) 2>/dev/null\` in #(
153 *posix*) :
154 set -o posix ;; #(
155 *) :
156 ;;
157 esac ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else case e in #(
176 e) exitcode=1; echo positional parameters were not saved. ;;
177 esac
178 fi
179 test x\$exitcode = x0 || exit 1
180 blah=\$(echo \$(echo blah))
181 test x\"\$blah\" = xblah || exit 1
182 test -x / || exit 1"
183 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
184 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
185 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
186 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
187 test \$(( 1 + 1 )) = 2 || exit 1"
188 if (eval "$as_required") 2>/dev/null
189 then :
190 as_have_required=yes
191 else case e in #(
192 e) as_have_required=no ;;
193 esac
194 fi
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
196 then :
197
198 else case e in #(
199 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
200 as_found=false
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
202 do
203 IFS=$as_save_IFS
204 case $as_dir in #(((
205 '') as_dir=./ ;;
206 */) ;;
207 *) as_dir=$as_dir/ ;;
208 esac
209 as_found=:
210 case $as_dir in #(
211 /*)
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
217 then :
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
220 then :
221 break 2
222 fi
223 fi
224 done;;
225 esac
226 as_found=false
227 done
228 IFS=$as_save_IFS
229 if $as_found
230 then :
231
232 else case e in #(
233 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
235 then :
236 CONFIG_SHELL=$SHELL as_have_required=yes
237 fi ;;
238 esac
239 fi
240
241
242 if test "x$CONFIG_SHELL" != x
243 then :
244 export CONFIG_SHELL
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
249 BASH_ENV=/dev/null
250 ENV=/dev/null
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 case $- in # ((((
253 *v*x* | *x*v* ) as_opts=-vx ;;
254 *v* ) as_opts=-v ;;
255 *x* ) as_opts=-x ;;
256 * ) as_opts= ;;
257 esac
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed 'exec'.
261 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 exit 255
263 fi
264
265 if test x$as_have_required = xno
266 then :
267 printf "%s\n" "$0: This script requires a shell more modern than all"
268 printf "%s\n" "$0: the shells that I found on your system."
269 if test ${ZSH_VERSION+y} ; then
270 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
271 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 else
273 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
274 $0: https://gitlab.freedesktop.org/xorg/app/xfontsel/-/issues
275 $0: about your system, including any error possibly output
276 $0: before this message. Then install a modern shell, or
277 $0: manually run the script under such a shell if you do
278 $0: have one."
279 fi
280 exit 1
281 fi ;;
282 esac
283 fi
284 fi
285 SHELL=${CONFIG_SHELL-/bin/sh}
286 export SHELL
287 # Unset more variables known to interfere with behavior of common tools.
288 CLICOLOR_FORCE= GREP_OPTIONS=
289 unset CLICOLOR_FORCE GREP_OPTIONS
290
291 ## --------------------- ##
292 ## M4sh Shell Functions. ##
293 ## --------------------- ##
294 # as_fn_unset VAR
295 # ---------------
296 # Portably unset VAR.
297 as_fn_unset ()
298 {
299 { eval $1=; unset $1;}
300 }
301 as_unset=as_fn_unset
302
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 printf "%s\n" X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384 then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else case e in #(
390 e) as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 } ;;
394 esac
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
403 then :
404 eval 'as_fn_arith ()
405 {
406 as_val=$(( $* ))
407 }'
408 else case e in #(
409 e) as_fn_arith ()
410 {
411 as_val=`expr "$@" || test $? -eq 1`
412 } ;;
413 esac
414 fi # as_fn_arith
415
416
417 # as_fn_error STATUS ERROR [LINENO LOG_FD]
418 # ----------------------------------------
419 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
420 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
421 # script with STATUS, using 1 if that was 0.
422 as_fn_error ()
423 {
424 as_status=$1; test $as_status -eq 0 && as_status=1
425 if test "$4"; then
426 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
427 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
428 fi
429 printf "%s\n" "$as_me: error: $2" >&2
430 as_fn_exit $as_status
431 } # as_fn_error
432
433 if expr a : '\(a\)' >/dev/null 2>&1 &&
434 test "X`expr 00001 : '.*\(...\)'`" = X001; then
435 as_expr=expr
436 else
437 as_expr=false
438 fi
439
440 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
441 as_basename=basename
442 else
443 as_basename=false
444 fi
445
446 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
447 as_dirname=dirname
448 else
449 as_dirname=false
450 fi
451
452 as_me=`$as_basename -- "$0" ||
453 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
454 X"$0" : 'X\(//\)$' \| \
455 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
456 printf "%s\n" X/"$0" |
457 sed '/^.*\/\([^/][^/]*\)\/*$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\/\)$/{
462 s//\1/
463 q
464 }
465 /^X\/\(\/\).*/{
466 s//\1/
467 q
468 }
469 s/.*/./; q'`
470
471 # Avoid depending upon Character Ranges.
472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
475 as_cr_digits='0123456789'
476 as_cr_alnum=$as_cr_Letters$as_cr_digits
477
478
479 as_lineno_1=$LINENO as_lineno_1a=$LINENO
480 as_lineno_2=$LINENO as_lineno_2a=$LINENO
481 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
482 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
483 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 sed -n '
485 p
486 /[$]LINENO/=
487 ' <$as_myself |
488 sed '
489 t clear
490 :clear
491 s/[$]LINENO.*/&-/
492 t lineno
493 b
494 :lineno
495 N
496 :loop
497 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
498 t loop
499 s/-\n.*//
500 ' >$as_me.lineno &&
501 chmod +x "$as_me.lineno" ||
502 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
503
504 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
505 # already done that, so ensure we don't try to do so again and fall
506 # in an infinite loop. This has already happened in practice.
507 _as_can_reexec=no; export _as_can_reexec
508 # Don't try to exec as it changes $[0], causing all sort of problems
509 # (the dirname of $[0] is not the place where we might find the
510 # original and so on. Autoconf is especially sensitive to this).
511 . "./$as_me.lineno"
512 # Exit status is that of the last command.
513 exit
514 }
515
516
517 # Determine whether it's possible to make 'echo' print without a newline.
518 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
519 # for compatibility with existing Makefiles.
520 ECHO_C= ECHO_N= ECHO_T=
521 case `echo -n x` in #(((((
522 -n*)
523 case `echo 'xy\c'` in
524 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
525 xy) ECHO_C='\c';;
526 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
527 ECHO_T=' ';;
528 esac;;
529 *)
530 ECHO_N='-n';;
531 esac
532
533 # For backward compatibility with old third-party macros, we provide
534 # the shell variables $as_echo and $as_echo_n. New code should use
535 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
536 as_echo='printf %s\n'
537 as_echo_n='printf %s'
538
539 rm -f conf$$ conf$$.exe conf$$.file
540 if test -d conf$$.dir; then
541 rm -f conf$$.dir/conf$$.file
542 else
543 rm -f conf$$.dir
544 mkdir conf$$.dir 2>/dev/null
545 fi
546 if (echo >conf$$.file) 2>/dev/null; then
547 if ln -s conf$$.file conf$$ 2>/dev/null; then
548 as_ln_s='ln -s'
549 # ... but there are two gotchas:
550 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
551 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
552 # In both cases, we have to default to 'cp -pR'.
553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
554 as_ln_s='cp -pR'
555 elif ln conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s=ln
557 else
558 as_ln_s='cp -pR'
559 fi
560 else
561 as_ln_s='cp -pR'
562 fi
563 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
564 rmdir conf$$.dir 2>/dev/null
565
566 if mkdir -p . 2>/dev/null; then
567 as_mkdir_p='mkdir -p "$as_dir"'
568 else
569 test -d ./-p && rmdir ./-p
570 as_mkdir_p=false
571 fi
572
573 as_test_x='test -x'
574 as_executable_p=as_fn_executable_p
575
576 # Sed expression to map a string onto a valid CPP name.
577 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
579
580 # Sed expression to map a string onto a valid variable name.
581 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
582 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
583
584
585 test -n "$DJDIR" || exec 7<&0 </dev/null
586 exec 6>&1
587
588 # Name of the host.
589 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
590 # so uname gets run too.
591 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
592
593 #
594 # Initializations.
595 #
596 ac_default_prefix=/usr/local
597 ac_clean_files=
598 ac_config_libobj_dir=.
599 LIBOBJS=
600 cross_compiling=no
601 subdirs=
602 MFLAGS=
603 MAKEFLAGS=
604
605 # Identity of this package.
606 PACKAGE_NAME='xfontsel'
607 PACKAGE_TARNAME='xfontsel'
608 PACKAGE_VERSION='1.1.1'
609 PACKAGE_STRING='xfontsel 1.1.1'
610 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xfontsel/-/issues'
611 PACKAGE_URL=''
612
613 ac_unique_file="Makefile.am"
614 # Factoring default headers for most tests.
615 ac_includes_default="\
616 #include <stddef.h>
617 #ifdef HAVE_STDIO_H
618 # include <stdio.h>
619 #endif
620 #ifdef HAVE_STDLIB_H
621 # include <stdlib.h>
622 #endif
623 #ifdef HAVE_STRING_H
624 # include <string.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_STRINGS_H
633 # include <strings.h>
634 #endif
635 #ifdef HAVE_SYS_TYPES_H
636 # include <sys/types.h>
637 #endif
638 #ifdef HAVE_SYS_STAT_H
639 # include <sys/stat.h>
640 #endif
641 #ifdef HAVE_UNISTD_H
642 # include <unistd.h>
643 #endif"
644
645 ac_header_c_list=
646 ac_subst_vars='am__EXEEXT_FALSE
647 am__EXEEXT_TRUE
648 LTLIBOBJS
649 LIBOBJS
650 USE_GETTEXT_FALSE
651 USE_GETTEXT_TRUE
652 LOCALEDIR
653 appdefaultdir
654 APPDEFS_LIBS
655 APPDEFS_CFLAGS
656 XFONTSEL_LIBS
657 XFONTSEL_CFLAGS
658 MAN_SUBSTS
659 XORG_MAN_PAGE
660 ADMIN_MAN_DIR
661 DRIVER_MAN_DIR
662 MISC_MAN_DIR
663 FILE_MAN_DIR
664 LIB_MAN_DIR
665 APP_MAN_DIR
666 ADMIN_MAN_SUFFIX
667 DRIVER_MAN_SUFFIX
668 MISC_MAN_SUFFIX
669 FILE_MAN_SUFFIX
670 LIB_MAN_SUFFIX
671 APP_MAN_SUFFIX
672 SED
673 host_os
674 host_vendor
675 host_cpu
676 host
677 build_os
678 build_vendor
679 build_cpu
680 build
681 INSTALL_CMD
682 PKG_CONFIG_LIBDIR
683 PKG_CONFIG_PATH
684 PKG_CONFIG
685 CHANGELOG_CMD
686 STRICT_CFLAGS
687 CWARNFLAGS
688 BASE_CFLAGS
689 am__fastdepCC_FALSE
690 am__fastdepCC_TRUE
691 CCDEPMODE
692 am__nodep
693 AMDEPBACKSLASH
694 AMDEP_FALSE
695 AMDEP_TRUE
696 am__include
697 DEPDIR
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
704 CC
705 AM_BACKSLASH
706 AM_DEFAULT_VERBOSITY
707 AM_DEFAULT_V
708 AM_V
709 CSCOPE
710 ETAGS
711 CTAGS
712 am__untar
713 am__tar
714 AMTAR
715 am__leading_dot
716 SET_MAKE
717 AWK
718 mkdir_p
719 MKDIR_P
720 INSTALL_STRIP_PROGRAM
721 STRIP
722 install_sh
723 MAKEINFO
724 AUTOHEADER
725 AUTOMAKE
726 AUTOCONF
727 ACLOCAL
728 VERSION
729 PACKAGE
730 CYGPATH_W
731 am__isrc
732 INSTALL_DATA
733 INSTALL_SCRIPT
734 INSTALL_PROGRAM
735 target_alias
736 host_alias
737 build_alias
738 LIBS
739 ECHO_T
740 ECHO_N
741 ECHO_C
742 DEFS
743 mandir
744 localedir
745 libdir
746 psdir
747 pdfdir
748 dvidir
749 htmldir
750 infodir
751 docdir
752 oldincludedir
753 includedir
754 runstatedir
755 localstatedir
756 sharedstatedir
757 sysconfdir
758 datadir
759 datarootdir
760 libexecdir
761 sbindir
762 bindir
763 program_transform_name
764 prefix
765 exec_prefix
766 PACKAGE_URL
767 PACKAGE_BUGREPORT
768 PACKAGE_STRING
769 PACKAGE_VERSION
770 PACKAGE_TARNAME
771 PACKAGE_NAME
772 PATH_SEPARATOR
773 SHELL
774 am__quote'
775 ac_subst_files=''
776 ac_user_opts='
777 enable_option_checking
778 enable_silent_rules
779 enable_dependency_tracking
780 enable_selective_werror
781 enable_strict_compilation
782 with_appdefaultdir
783 with_localedir
784 '
785 ac_precious_vars='build_alias
786 host_alias
787 target_alias
788 CC
789 CFLAGS
790 LDFLAGS
791 LIBS
792 CPPFLAGS
793 PKG_CONFIG
794 PKG_CONFIG_PATH
795 PKG_CONFIG_LIBDIR
796 XFONTSEL_CFLAGS
797 XFONTSEL_LIBS
798 APPDEFS_CFLAGS
799 APPDEFS_LIBS'
800
801
802 # Initialize some variables set by options.
803 ac_init_help=
804 ac_init_version=false
805 ac_unrecognized_opts=
806 ac_unrecognized_sep=
807 # The variables have the same names as the options, with
808 # dashes changed to underlines.
809 cache_file=/dev/null
810 exec_prefix=NONE
811 no_create=
812 no_recursion=
813 prefix=NONE
814 program_prefix=NONE
815 program_suffix=NONE
816 program_transform_name=s,x,x,
817 silent=
818 site=
819 srcdir=
820 verbose=
821 x_includes=NONE
822 x_libraries=NONE
823
824 # Installation directory options.
825 # These are left unexpanded so users can "make install exec_prefix=/foo"
826 # and all the variables that are supposed to be based on exec_prefix
827 # by default will actually change.
828 # Use braces instead of parens because sh, perl, etc. also accept them.
829 # (The list follows the same order as the GNU Coding Standards.)
830 bindir='${exec_prefix}/bin'
831 sbindir='${exec_prefix}/sbin'
832 libexecdir='${exec_prefix}/libexec'
833 datarootdir='${prefix}/share'
834 datadir='${datarootdir}'
835 sysconfdir='${prefix}/etc'
836 sharedstatedir='${prefix}/com'
837 localstatedir='${prefix}/var'
838 runstatedir='${localstatedir}/run'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
850
851 ac_prev=
852 ac_dashdash=
853 for ac_option
854 do
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
858 ac_prev=
859 continue
860 fi
861
862 case $ac_option in
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
866 esac
867
868 case $ac_dashdash$ac_option in
869 --)
870 ac_dashdash=yes ;;
871
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
876
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
881
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
888
889 --config-cache | -C)
890 cache_file=config.cache ;;
891
892 -datadir | --datadir | --datadi | --datad)
893 ac_prev=datadir ;;
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
896
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
903
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: '$ac_useropt'"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
912 *"
913 "enable_$ac_useropt"
914 "*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=no ;;
919
920 -docdir | --docdir | --docdi | --doc | --do)
921 ac_prev=docdir ;;
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 docdir=$ac_optarg ;;
924
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 ac_prev=dvidir ;;
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 dvidir=$ac_optarg ;;
929
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: '$ac_useropt'"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=\$ac_optarg ;;
945
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
954
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
958
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
965
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
970
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
976
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
983
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
988
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
993
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1000
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1005
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1012
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1017
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1021
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1025
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1029
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1038
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1043
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1050
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1057
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1074
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1079
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1084
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1088
1089 -runstatedir | --runstatedir | --runstatedi | --runstated \
1090 | --runstate | --runstat | --runsta | --runst | --runs \
1091 | --run | --ru | --r)
1092 ac_prev=runstatedir ;;
1093 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1094 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1095 | --run=* | --ru=* | --r=*)
1096 runstatedir=$ac_optarg ;;
1097
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 ac_prev=sbindir ;;
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 | --sbi=* | --sb=*)
1102 sbindir=$ac_optarg ;;
1103
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1107 | --sha | --sh)
1108 ac_prev=sharedstatedir ;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 | --sha=* | --sh=*)
1113 sharedstatedir=$ac_optarg ;;
1114
1115 -site | --site | --sit)
1116 ac_prev=site ;;
1117 -site=* | --site=* | --sit=*)
1118 site=$ac_optarg ;;
1119
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 ac_prev=srcdir ;;
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir=$ac_optarg ;;
1124
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev=sysconfdir ;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir=$ac_optarg ;;
1131
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev=target_alias ;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias=$ac_optarg ;;
1136
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138 verbose=yes ;;
1139
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version=: ;;
1142
1143 -with-* | --with-*)
1144 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147 as_fn_error $? "invalid package name: '$ac_useropt'"
1148 ac_useropt_orig=$ac_useropt
1149 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1151 *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep=', ';;
1156 esac
1157 eval with_$ac_useropt=\$ac_optarg ;;
1158
1159 -without-* | --without-*)
1160 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163 as_fn_error $? "invalid package name: '$ac_useropt'"
1164 ac_useropt_orig=$ac_useropt
1165 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1167 *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep=', ';;
1172 esac
1173 eval with_$ac_useropt=no ;;
1174
1175 --x)
1176 # Obsolete; use --with-x.
1177 with_x=yes ;;
1178
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev=x_includes ;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes=$ac_optarg ;;
1185
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev=x_libraries ;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries=$ac_optarg ;;
1192
1193 -*) as_fn_error $? "unrecognized option: '$ac_option'
1194 Try '$0 --help' for more information"
1195 ;;
1196
1197 *=*)
1198 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1203 esac
1204 eval $ac_envvar=\$ac_optarg
1205 export $ac_envvar ;;
1206
1207 *)
1208 # FIXME: should be removed in autoconf 3.0.
1209 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213 ;;
1214
1215 esac
1216 done
1217
1218 if test -n "$ac_prev"; then
1219 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220 as_fn_error $? "missing argument to $ac_option"
1221 fi
1222
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1225 no) ;;
1226 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1227 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228 esac
1229 fi
1230
1231 # Check all directory arguments for consistency.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir runstatedir
1236 do
1237 eval ac_val=\$$ac_var
1238 # Remove trailing slashes.
1239 case $ac_val in
1240 */ )
1241 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\$ac_val;;
1243 esac
1244 # Be sure to have absolute directory names.
1245 case $ac_val in
1246 [\\/$]* | ?:[\\/]* ) continue;;
1247 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 esac
1249 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1251
1252 # There might be people who depend on the old broken behavior: '$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 elif test "x$build_alias" != "x$host_alias"; then
1264 cross_compiling=yes
1265 fi
1266 fi
1267
1268 ac_tool_prefix=
1269 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270
1271 test "$silent" = yes && exec 6>/dev/null
1272
1273
1274 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di=`ls -di .` &&
1276 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error $? "working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error $? "pwd does not report name of working directory"
1280
1281
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 printf "%s\n" X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\/\)[^/].*/{
1297 s//\1/
1298 q
1299 }
1300 /^X\(\/\/\)$/{
1301 s//\1/
1302 q
1303 }
1304 /^X\(\/\).*/{
1305 s//\1/
1306 q
1307 }
1308 s/.*/./; q'`
1309 srcdir=$ac_confdir
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1311 srcdir=..
1312 fi
1313 else
1314 ac_srcdir_defaulted=no
1315 fi
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1318 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319 fi
1320 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1321 ac_abs_confdir=`(
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323 pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 srcdir=.
1327 fi
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1340
1341 #
1342 # Report the --help message.
1343 #
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1347 cat <<_ACEOF
1348 'configure' configures xfontsel 1.1.1 to adapt to many kinds of systems.
1349
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1351
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1354
1355 Defaults for the options are specified in brackets.
1356
1357 Configuration:
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print 'checking ...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for '--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or '..']
1367
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 [PREFIX]
1373
1374 By default, 'make install' will install all the files in
1375 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than '$ac_default_prefix' using '--prefix',
1377 for instance '--prefix=\$HOME'.
1378
1379 For better control, use the options below.
1380
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1389 --libdir=DIR object code libraries [EPREFIX/lib]
1390 --includedir=DIR C header files [PREFIX/include]
1391 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1392 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1393 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1394 --infodir=DIR info documentation [DATAROOTDIR/info]
1395 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1396 --mandir=DIR man documentation [DATAROOTDIR/man]
1397 --docdir=DIR documentation root [DATAROOTDIR/doc/xfontsel]
1398 --htmldir=DIR html documentation [DOCDIR]
1399 --dvidir=DIR dvi documentation [DOCDIR]
1400 --pdfdir=DIR pdf documentation [DOCDIR]
1401 --psdir=DIR ps documentation [DOCDIR]
1402 _ACEOF
1403
1404 cat <<\_ACEOF
1405
1406 Program names:
1407 --program-prefix=PREFIX prepend PREFIX to installed program names
1408 --program-suffix=SUFFIX append SUFFIX to installed program names
1409 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1410
1411 System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 _ACEOF
1415 fi
1416
1417 if test -n "$ac_init_help"; then
1418 case $ac_init_help in
1419 short | recursive ) echo "Configuration of xfontsel 1.1.1:";;
1420 esac
1421 cat <<\_ACEOF
1422
1423 Optional Features:
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --enable-silent-rules less verbose build output (undo: "make V=1")
1428 --disable-silent-rules verbose build output (undo: "make V=0")
1429 --enable-dependency-tracking
1430 do not reject slow dependency extractors
1431 --disable-dependency-tracking
1432 speeds up one-time build
1433 --disable-selective-werror
1434 Turn off selective compiler errors. (default:
1435 enabled)
1436 --enable-strict-compilation
1437 Enable all warnings from compiler and make them
1438 errors (default: disabled)
1439
1440 Optional Packages:
1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1443 --with-appdefaultdir=<pathname>
1444 specify directory for app-defaults files (default is
1445 autodetected)
1446 --with-localedir=<path> Path to install message files in (default:
1447 datadir/locale)
1448
1449 Some influential environment variables:
1450 CC C compiler command
1451 CFLAGS C compiler flags
1452 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1453 nonstandard directory <lib dir>
1454 LIBS libraries to pass to the linker, e.g. -l<library>
1455 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1456 you have headers in a nonstandard directory <include dir>
1457 PKG_CONFIG path to pkg-config utility
1458 PKG_CONFIG_PATH
1459 directories to add to pkg-config's search path
1460 PKG_CONFIG_LIBDIR
1461 path overriding pkg-config's built-in search path
1462 XFONTSEL_CFLAGS
1463 C compiler flags for XFONTSEL, overriding pkg-config
1464 XFONTSEL_LIBS
1465 linker flags for XFONTSEL, overriding pkg-config
1466 APPDEFS_CFLAGS
1467 C compiler flags for APPDEFS, overriding pkg-config
1468 APPDEFS_LIBS
1469 linker flags for APPDEFS, overriding pkg-config
1470
1471 Use these variables to override the choices made by 'configure' or to help
1472 it to find libraries and programs with nonstandard names/locations.
1473
1474 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfontsel/-/issues>.
1475 _ACEOF
1476 ac_status=$?
1477 fi
1478
1479 if test "$ac_init_help" = "recursive"; then
1480 # If there are subdirs, report their specific --help.
1481 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1482 test -d "$ac_dir" ||
1483 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1484 continue
1485 ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496 esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504 .) # We are building in place.
1505 ac_srcdir=.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1512 *) # Relative name.
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for configure.gnu first; this name is used for a wrapper for
1521 # Metaconfig's "Configure" on case-insensitive file systems.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1526 echo &&
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1528 else
1529 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 fi || ac_status=$?
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1532 done
1533 fi
1534
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1537 cat <<\_ACEOF
1538 xfontsel configure 1.1.1
1539 generated by GNU Autoconf 2.72
1540
1541 Copyright (C) 2023 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544 _ACEOF
1545 exit
1546 fi
1547
1548 ## ------------------------ ##
1549 ## Autoconf initialization. ##
1550 ## ------------------------ ##
1551
1552 # ac_fn_c_try_compile LINENO
1553 # --------------------------
1554 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1555 ac_fn_c_try_compile ()
1556 {
1557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558 rm -f conftest.$ac_objext conftest.beam
1559 if { { ac_try="$ac_compile"
1560 case "(($ac_try" in
1561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1562 *) ac_try_echo=$ac_try;;
1563 esac
1564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1565 printf "%s\n" "$ac_try_echo"; } >&5
1566 (eval "$ac_compile") 2>conftest.err
1567 ac_status=$?
1568 if test -s conftest.err; then
1569 grep -v '^ *+' conftest.err >conftest.er1
1570 cat conftest.er1 >&5
1571 mv -f conftest.er1 conftest.err
1572 fi
1573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1574 test $ac_status = 0; } && {
1575 test -z "$ac_c_werror_flag" ||
1576 test ! -s conftest.err
1577 } && test -s conftest.$ac_objext
1578 then :
1579 ac_retval=0
1580 else case e in #(
1581 e) printf "%s\n" "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1 ;;
1585 esac
1586 fi
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1589
1590 } # ac_fn_c_try_compile
1591
1592 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1593 # ------------------------------------------------------------------
1594 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1595 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1596 ac_fn_check_decl ()
1597 {
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 as_decl_name=`echo $2|sed 's/ *(.*//'`
1600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1601 printf %s "checking whether $as_decl_name is declared... " >&6; }
1602 if eval test \${$3+y}
1603 then :
1604 printf %s "(cached) " >&6
1605 else case e in #(
1606 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1607 eval ac_save_FLAGS=\$$6
1608 as_fn_append $6 " $5"
1609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1610 /* end confdefs.h. */
1611 $4
1612 int
1613 main (void)
1614 {
1615 #ifndef $as_decl_name
1616 #ifdef __cplusplus
1617 (void) $as_decl_use;
1618 #else
1619 (void) $as_decl_name;
1620 #endif
1621 #endif
1622
1623 ;
1624 return 0;
1625 }
1626 _ACEOF
1627 if ac_fn_c_try_compile "$LINENO"
1628 then :
1629 eval "$3=yes"
1630 else case e in #(
1631 e) eval "$3=no" ;;
1632 esac
1633 fi
1634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1635 eval $6=\$ac_save_FLAGS
1636 ;;
1637 esac
1638 fi
1639 eval ac_res=\$$3
1640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1641 printf "%s\n" "$ac_res" >&6; }
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643
1644 } # ac_fn_check_decl
1645
1646 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1647 # -------------------------------------------------------
1648 # Tests whether HEADER exists and can be compiled using the include files in
1649 # INCLUDES, setting the cache variable VAR accordingly.
1650 ac_fn_c_check_header_compile ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 printf %s "checking for $2... " >&6; }
1655 if eval test \${$3+y}
1656 then :
1657 printf %s "(cached) " >&6
1658 else case e in #(
1659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1660 /* end confdefs.h. */
1661 $4
1662 #include <$2>
1663 _ACEOF
1664 if ac_fn_c_try_compile "$LINENO"
1665 then :
1666 eval "$3=yes"
1667 else case e in #(
1668 e) eval "$3=no" ;;
1669 esac
1670 fi
1671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1672 esac
1673 fi
1674 eval ac_res=\$$3
1675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1676 printf "%s\n" "$ac_res" >&6; }
1677 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
1679 } # ac_fn_c_check_header_compile
1680
1681 # ac_fn_c_try_link LINENO
1682 # -----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_link ()
1685 {
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 printf "%s\n" "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 test -x conftest$ac_exeext
1709 }
1710 then :
1711 ac_retval=0
1712 else case e in #(
1713 e) printf "%s\n" "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1 ;;
1717 esac
1718 fi
1719 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721 # interfere with the next link command; also delete a directory that is
1722 # left behind by Apple's compiler. We do this before executing the actions.
1723 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_link
1728 ac_configure_args_raw=
1729 for ac_arg
1730 do
1731 case $ac_arg in
1732 *\'*)
1733 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1734 esac
1735 as_fn_append ac_configure_args_raw " '$ac_arg'"
1736 done
1737
1738 case $ac_configure_args_raw in
1739 *$as_nl*)
1740 ac_safe_unquote= ;;
1741 *)
1742 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1743 ac_unsafe_a="$ac_unsafe_z#~"
1744 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1745 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1746 esac
1747
1748 cat >config.log <<_ACEOF
1749 This file contains any messages produced by compilers while
1750 running configure, to aid debugging if configure makes a mistake.
1751
1752 It was created by xfontsel $as_me 1.1.1, which was
1753 generated by GNU Autoconf 2.72. Invocation command line was
1754
1755 $ $0$ac_configure_args_raw
1756
1757 _ACEOF
1758 exec 5>>config.log
1759 {
1760 cat <<_ASUNAME
1761 ## --------- ##
1762 ## Platform. ##
1763 ## --------- ##
1764
1765 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1766 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1767 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1768 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1769 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1770
1771 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1772 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1773
1774 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1775 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1776 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1777 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1778 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1779 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1780 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1781
1782 _ASUNAME
1783
1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1785 for as_dir in $PATH
1786 do
1787 IFS=$as_save_IFS
1788 case $as_dir in #(((
1789 '') as_dir=./ ;;
1790 */) ;;
1791 *) as_dir=$as_dir/ ;;
1792 esac
1793 printf "%s\n" "PATH: $as_dir"
1794 done
1795 IFS=$as_save_IFS
1796
1797 } >&5
1798
1799 cat >&5 <<_ACEOF
1800
1801
1802 ## ----------- ##
1803 ## Core tests. ##
1804 ## ----------- ##
1805
1806 _ACEOF
1807
1808
1809 # Keep a trace of the command line.
1810 # Strip out --no-create and --no-recursion so they do not pile up.
1811 # Strip out --silent because we don't want to record it for future runs.
1812 # Also quote any args containing shell meta-characters.
1813 # Make two passes to allow for proper duplicate-argument suppression.
1814 ac_configure_args=
1815 ac_configure_args0=
1816 ac_configure_args1=
1817 ac_must_keep_next=false
1818 for ac_pass in 1 2
1819 do
1820 for ac_arg
1821 do
1822 case $ac_arg in
1823 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1824 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1825 | -silent | --silent | --silen | --sile | --sil)
1826 continue ;;
1827 *\'*)
1828 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1829 esac
1830 case $ac_pass in
1831 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1832 2)
1833 as_fn_append ac_configure_args1 " '$ac_arg'"
1834 if test $ac_must_keep_next = true; then
1835 ac_must_keep_next=false # Got value, back to normal.
1836 else
1837 case $ac_arg in
1838 *=* | --config-cache | -C | -disable-* | --disable-* \
1839 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1840 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1841 | -with-* | --with-* | -without-* | --without-* | --x)
1842 case "$ac_configure_args0 " in
1843 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1844 esac
1845 ;;
1846 -* ) ac_must_keep_next=true ;;
1847 esac
1848 fi
1849 as_fn_append ac_configure_args " '$ac_arg'"
1850 ;;
1851 esac
1852 done
1853 done
1854 { ac_configure_args0=; unset ac_configure_args0;}
1855 { ac_configure_args1=; unset ac_configure_args1;}
1856
1857 # When interrupted or exit'd, cleanup temporary files, and complete
1858 # config.log. We remove comments because anyway the quotes in there
1859 # would cause problems or look ugly.
1860 # WARNING: Use '\'' to represent an apostrophe within the trap.
1861 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1862 trap 'exit_status=$?
1863 # Sanitize IFS.
1864 IFS=" "" $as_nl"
1865 # Save into config.log some information that might help in debugging.
1866 {
1867 echo
1868
1869 printf "%s\n" "## ---------------- ##
1870 ## Cache variables. ##
1871 ## ---------------- ##"
1872 echo
1873 # The following way of writing the cache mishandles newlines in values,
1874 (
1875 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1876 eval ac_val=\$$ac_var
1877 case $ac_val in #(
1878 *${as_nl}*)
1879 case $ac_var in #(
1880 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1881 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1882 esac
1883 case $ac_var in #(
1884 _ | IFS | as_nl) ;; #(
1885 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1886 *) { eval $ac_var=; unset $ac_var;} ;;
1887 esac ;;
1888 esac
1889 done
1890 (set) 2>&1 |
1891 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1892 *${as_nl}ac_space=\ *)
1893 sed -n \
1894 "s/'\''/'\''\\\\'\'''\''/g;
1895 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1896 ;; #(
1897 *)
1898 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1899 ;;
1900 esac |
1901 sort
1902 )
1903 echo
1904
1905 printf "%s\n" "## ----------------- ##
1906 ## Output variables. ##
1907 ## ----------------- ##"
1908 echo
1909 for ac_var in $ac_subst_vars
1910 do
1911 eval ac_val=\$$ac_var
1912 case $ac_val in
1913 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1914 esac
1915 printf "%s\n" "$ac_var='\''$ac_val'\''"
1916 done | sort
1917 echo
1918
1919 if test -n "$ac_subst_files"; then
1920 printf "%s\n" "## ------------------- ##
1921 ## File substitutions. ##
1922 ## ------------------- ##"
1923 echo
1924 for ac_var in $ac_subst_files
1925 do
1926 eval ac_val=\$$ac_var
1927 case $ac_val in
1928 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1929 esac
1930 printf "%s\n" "$ac_var='\''$ac_val'\''"
1931 done | sort
1932 echo
1933 fi
1934
1935 if test -s confdefs.h; then
1936 printf "%s\n" "## ----------- ##
1937 ## confdefs.h. ##
1938 ## ----------- ##"
1939 echo
1940 cat confdefs.h
1941 echo
1942 fi
1943 test "$ac_signal" != 0 &&
1944 printf "%s\n" "$as_me: caught signal $ac_signal"
1945 printf "%s\n" "$as_me: exit $exit_status"
1946 } >&5
1947 rm -f core *.core core.conftest.* &&
1948 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1949 exit $exit_status
1950 ' 0
1951 for ac_signal in 1 2 13 15; do
1952 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1953 done
1954 ac_signal=0
1955
1956 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1957 rm -f -r conftest* confdefs.h
1958
1959 printf "%s\n" "/* confdefs.h */" > confdefs.h
1960
1961 # Predefined preprocessor variables.
1962
1963 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
1964
1965 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
1966
1967 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
1968
1969 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
1970
1971 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
1972
1973 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
1974
1975
1976 # Let the site file select an alternate cache file if it wants to.
1977 # Prefer an explicitly selected file to automatically selected ones.
1978 if test -n "$CONFIG_SITE"; then
1979 ac_site_files="$CONFIG_SITE"
1980 elif test "x$prefix" != xNONE; then
1981 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
1982 else
1983 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1984 fi
1985
1986 for ac_site_file in $ac_site_files
1987 do
1988 case $ac_site_file in #(
1989 */*) :
1990 ;; #(
1991 *) :
1992 ac_site_file=./$ac_site_file ;;
1993 esac
1994 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
1995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1996 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
1997 sed 's/^/| /' "$ac_site_file" >&5
1998 . "$ac_site_file" \
1999 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2000 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2001 as_fn_error $? "failed to load site script $ac_site_file
2002 See 'config.log' for more details" "$LINENO" 5; }
2003 fi
2004 done
2005
2006 if test -r "$cache_file"; then
2007 # Some versions of bash will fail to source /dev/null (special files
2008 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2009 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2011 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2012 case $cache_file in
2013 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2014 *) . "./$cache_file";;
2015 esac
2016 fi
2017 else
2018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2019 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2020 >$cache_file
2021 fi
2022
2023 # Test code for whether the C compiler supports C89 (global declarations)
2024 ac_c_conftest_c89_globals='
2025 /* Does the compiler advertise C89 conformance?
2026 Do not test the value of __STDC__, because some compilers set it to 0
2027 while being otherwise adequately conformant. */
2028 #if !defined __STDC__
2029 # error "Compiler does not advertise C89 conformance"
2030 #endif
2031
2032 #include <stddef.h>
2033 #include <stdarg.h>
2034 struct stat;
2035 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2036 struct buf { int x; };
2037 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2038 static char *e (char **p, int i)
2039 {
2040 return p[i];
2041 }
2042 static char *f (char * (*g) (char **, int), char **p, ...)
2043 {
2044 char *s;
2045 va_list v;
2046 va_start (v,p);
2047 s = g (p, va_arg (v,int));
2048 va_end (v);
2049 return s;
2050 }
2051
2052 /* C89 style stringification. */
2053 #define noexpand_stringify(a) #a
2054 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2055
2056 /* C89 style token pasting. Exercises some of the corner cases that
2057 e.g. old MSVC gets wrong, but not very hard. */
2058 #define noexpand_concat(a,b) a##b
2059 #define expand_concat(a,b) noexpand_concat(a,b)
2060 extern int vA;
2061 extern int vbee;
2062 #define aye A
2063 #define bee B
2064 int *pvA = &expand_concat(v,aye);
2065 int *pvbee = &noexpand_concat(v,bee);
2066
2067 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2068 function prototypes and stuff, but not \xHH hex character constants.
2069 These do not provoke an error unfortunately, instead are silently treated
2070 as an "x". The following induces an error, until -std is added to get
2071 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2072 array size at least. It is necessary to write \x00 == 0 to get something
2073 that is true only with -std. */
2074 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2075
2076 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2077 inside strings and character constants. */
2078 #define FOO(x) '\''x'\''
2079 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2080
2081 int test (int i, double x);
2082 struct s1 {int (*f) (int a);};
2083 struct s2 {int (*f) (double a);};
2084 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2085 int, int);'
2086
2087 # Test code for whether the C compiler supports C89 (body of main).
2088 ac_c_conftest_c89_main='
2089 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2090 '
2091
2092 # Test code for whether the C compiler supports C99 (global declarations)
2093 ac_c_conftest_c99_globals='
2094 /* Does the compiler advertise C99 conformance? */
2095 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2096 # error "Compiler does not advertise C99 conformance"
2097 #endif
2098
2099 // See if C++-style comments work.
2100
2101 #include <stdbool.h>
2102 extern int puts (const char *);
2103 extern int printf (const char *, ...);
2104 extern int dprintf (int, const char *, ...);
2105 extern void *malloc (size_t);
2106 extern void free (void *);
2107
2108 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2109 // dprintf is used instead of fprintf to avoid needing to declare
2110 // FILE and stderr.
2111 #define debug(...) dprintf (2, __VA_ARGS__)
2112 #define showlist(...) puts (#__VA_ARGS__)
2113 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2114 static void
2115 test_varargs_macros (void)
2116 {
2117 int x = 1234;
2118 int y = 5678;
2119 debug ("Flag");
2120 debug ("X = %d\n", x);
2121 showlist (The first, second, and third items.);
2122 report (x>y, "x is %d but y is %d", x, y);
2123 }
2124
2125 // Check long long types.
2126 #define BIG64 18446744073709551615ull
2127 #define BIG32 4294967295ul
2128 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2129 #if !BIG_OK
2130 #error "your preprocessor is broken"
2131 #endif
2132 #if BIG_OK
2133 #else
2134 #error "your preprocessor is broken"
2135 #endif
2136 static long long int bignum = -9223372036854775807LL;
2137 static unsigned long long int ubignum = BIG64;
2138
2139 struct incomplete_array
2140 {
2141 int datasize;
2142 double data[];
2143 };
2144
2145 struct named_init {
2146 int number;
2147 const wchar_t *name;
2148 double average;
2149 };
2150
2151 typedef const char *ccp;
2152
2153 static inline int
2154 test_restrict (ccp restrict text)
2155 {
2156 // Iterate through items via the restricted pointer.
2157 // Also check for declarations in for loops.
2158 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2159 continue;
2160 return 0;
2161 }
2162
2163 // Check varargs and va_copy.
2164 static bool
2165 test_varargs (const char *format, ...)
2166 {
2167 va_list args;
2168 va_start (args, format);
2169 va_list args_copy;
2170 va_copy (args_copy, args);
2171
2172 const char *str = "";
2173 int number = 0;
2174 float fnumber = 0;
2175
2176 while (*format)
2177 {
2178 switch (*format++)
2179 {
2180 case '\''s'\'': // string
2181 str = va_arg (args_copy, const char *);
2182 break;
2183 case '\''d'\'': // int
2184 number = va_arg (args_copy, int);
2185 break;
2186 case '\''f'\'': // float
2187 fnumber = va_arg (args_copy, double);
2188 break;
2189 default:
2190 break;
2191 }
2192 }
2193 va_end (args_copy);
2194 va_end (args);
2195
2196 return *str && number && fnumber;
2197 }
2198 '
2199
2200 # Test code for whether the C compiler supports C99 (body of main).
2201 ac_c_conftest_c99_main='
2202 // Check bool.
2203 _Bool success = false;
2204 success |= (argc != 0);
2205
2206 // Check restrict.
2207 if (test_restrict ("String literal") == 0)
2208 success = true;
2209 char *restrict newvar = "Another string";
2210
2211 // Check varargs.
2212 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2213 test_varargs_macros ();
2214
2215 // Check flexible array members.
2216 struct incomplete_array *ia =
2217 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2218 ia->datasize = 10;
2219 for (int i = 0; i < ia->datasize; ++i)
2220 ia->data[i] = i * 1.234;
2221 // Work around memory leak warnings.
2222 free (ia);
2223
2224 // Check named initializers.
2225 struct named_init ni = {
2226 .number = 34,
2227 .name = L"Test wide string",
2228 .average = 543.34343,
2229 };
2230
2231 ni.number = 58;
2232
2233 int dynamic_array[ni.number];
2234 dynamic_array[0] = argv[0][0];
2235 dynamic_array[ni.number - 1] = 543;
2236
2237 // work around unused variable warnings
2238 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2239 || dynamic_array[ni.number - 1] != 543);
2240 '
2241
2242 # Test code for whether the C compiler supports C11 (global declarations)
2243 ac_c_conftest_c11_globals='
2244 /* Does the compiler advertise C11 conformance? */
2245 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2246 # error "Compiler does not advertise C11 conformance"
2247 #endif
2248
2249 // Check _Alignas.
2250 char _Alignas (double) aligned_as_double;
2251 char _Alignas (0) no_special_alignment;
2252 extern char aligned_as_int;
2253 char _Alignas (0) _Alignas (int) aligned_as_int;
2254
2255 // Check _Alignof.
2256 enum
2257 {
2258 int_alignment = _Alignof (int),
2259 int_array_alignment = _Alignof (int[100]),
2260 char_alignment = _Alignof (char)
2261 };
2262 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2263
2264 // Check _Noreturn.
2265 int _Noreturn does_not_return (void) { for (;;) continue; }
2266
2267 // Check _Static_assert.
2268 struct test_static_assert
2269 {
2270 int x;
2271 _Static_assert (sizeof (int) <= sizeof (long int),
2272 "_Static_assert does not work in struct");
2273 long int y;
2274 };
2275
2276 // Check UTF-8 literals.
2277 #define u8 syntax error!
2278 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2279
2280 // Check duplicate typedefs.
2281 typedef long *long_ptr;
2282 typedef long int *long_ptr;
2283 typedef long_ptr long_ptr;
2284
2285 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2286 struct anonymous
2287 {
2288 union {
2289 struct { int i; int j; };
2290 struct { int k; long int l; } w;
2291 };
2292 int m;
2293 } v1;
2294 '
2295
2296 # Test code for whether the C compiler supports C11 (body of main).
2297 ac_c_conftest_c11_main='
2298 _Static_assert ((offsetof (struct anonymous, i)
2299 == offsetof (struct anonymous, w.k)),
2300 "Anonymous union alignment botch");
2301 v1.i = 2;
2302 v1.w.k = 5;
2303 ok |= v1.i != 5;
2304 '
2305
2306 # Test code for whether the C compiler supports C11 (complete).
2307 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2308 ${ac_c_conftest_c99_globals}
2309 ${ac_c_conftest_c11_globals}
2310
2311 int
2312 main (int argc, char **argv)
2313 {
2314 int ok = 0;
2315 ${ac_c_conftest_c89_main}
2316 ${ac_c_conftest_c99_main}
2317 ${ac_c_conftest_c11_main}
2318 return ok;
2319 }
2320 "
2321
2322 # Test code for whether the C compiler supports C99 (complete).
2323 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2324 ${ac_c_conftest_c99_globals}
2325
2326 int
2327 main (int argc, char **argv)
2328 {
2329 int ok = 0;
2330 ${ac_c_conftest_c89_main}
2331 ${ac_c_conftest_c99_main}
2332 return ok;
2333 }
2334 "
2335
2336 # Test code for whether the C compiler supports C89 (complete).
2337 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2338
2339 int
2340 main (int argc, char **argv)
2341 {
2342 int ok = 0;
2343 ${ac_c_conftest_c89_main}
2344 return ok;
2345 }
2346 "
2347
2348 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2349 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2350 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2351 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2352 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2353 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2354 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2355 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2356 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2357
2358 # Auxiliary files required by this configure script.
2359 ac_aux_files="config.guess config.sub compile missing install-sh"
2360
2361 # Locations in which to look for auxiliary files.
2362 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2363
2364 # Search for a directory containing all of the required auxiliary files,
2365 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2366 # If we don't find one directory that contains all the files we need,
2367 # we report the set of missing files from the *first* directory in
2368 # $ac_aux_dir_candidates and give up.
2369 ac_missing_aux_files=""
2370 ac_first_candidate=:
2371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2373 as_found=false
2374 for as_dir in $ac_aux_dir_candidates
2375 do
2376 IFS=$as_save_IFS
2377 case $as_dir in #(((
2378 '') as_dir=./ ;;
2379 */) ;;
2380 *) as_dir=$as_dir/ ;;
2381 esac
2382 as_found=:
2383
2384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2385 ac_aux_dir_found=yes
2386 ac_install_sh=
2387 for ac_aux in $ac_aux_files
2388 do
2389 # As a special case, if "install-sh" is required, that requirement
2390 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2391 # and $ac_install_sh is set appropriately for whichever one is found.
2392 if test x"$ac_aux" = x"install-sh"
2393 then
2394 if test -f "${as_dir}install-sh"; then
2395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2396 ac_install_sh="${as_dir}install-sh -c"
2397 elif test -f "${as_dir}install.sh"; then
2398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2399 ac_install_sh="${as_dir}install.sh -c"
2400 elif test -f "${as_dir}shtool"; then
2401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2402 ac_install_sh="${as_dir}shtool install -c"
2403 else
2404 ac_aux_dir_found=no
2405 if $ac_first_candidate; then
2406 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2407 else
2408 break
2409 fi
2410 fi
2411 else
2412 if test -f "${as_dir}${ac_aux}"; then
2413 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2414 else
2415 ac_aux_dir_found=no
2416 if $ac_first_candidate; then
2417 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2418 else
2419 break
2420 fi
2421 fi
2422 fi
2423 done
2424 if test "$ac_aux_dir_found" = yes; then
2425 ac_aux_dir="$as_dir"
2426 break
2427 fi
2428 ac_first_candidate=false
2429
2430 as_found=false
2431 done
2432 IFS=$as_save_IFS
2433 if $as_found
2434 then :
2435
2436 else case e in #(
2437 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2438 esac
2439 fi
2440
2441
2442 # These three variables are undocumented and unsupported,
2443 # and are intended to be withdrawn in a future Autoconf release.
2444 # They can cause serious problems if a builder's source tree is in a directory
2445 # whose full name contains unusual characters.
2446 if test -f "${ac_aux_dir}config.guess"; then
2447 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2448 fi
2449 if test -f "${ac_aux_dir}config.sub"; then
2450 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2451 fi
2452 if test -f "$ac_aux_dir/configure"; then
2453 ac_configure="$SHELL ${ac_aux_dir}configure"
2454 fi
2455
2456 # Check that the precious variables saved in the cache have kept the same
2457 # value.
2458 ac_cache_corrupted=false
2459 for ac_var in $ac_precious_vars; do
2460 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2461 eval ac_new_set=\$ac_env_${ac_var}_set
2462 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2463 eval ac_new_val=\$ac_env_${ac_var}_value
2464 case $ac_old_set,$ac_new_set in
2465 set,)
2466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2467 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2468 ac_cache_corrupted=: ;;
2469 ,set)
2470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2471 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2472 ac_cache_corrupted=: ;;
2473 ,);;
2474 *)
2475 if test "x$ac_old_val" != "x$ac_new_val"; then
2476 # differences in whitespace do not lead to failure.
2477 ac_old_val_w=`echo x $ac_old_val`
2478 ac_new_val_w=`echo x $ac_new_val`
2479 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2481 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2482 ac_cache_corrupted=:
2483 else
2484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2485 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2486 eval $ac_var=\$ac_old_val
2487 fi
2488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2489 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2491 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2492 fi;;
2493 esac
2494 # Pass precious variables to config.status.
2495 if test "$ac_new_set" = set; then
2496 case $ac_new_val in
2497 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2498 *) ac_arg=$ac_var=$ac_new_val ;;
2499 esac
2500 case " $ac_configure_args " in
2501 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2502 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2503 esac
2504 fi
2505 done
2506 if $ac_cache_corrupted; then
2507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2508 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2510 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2511 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2512 and start over" "$LINENO" 5
2513 fi
2514 ## -------------------- ##
2515 ## Main body of script. ##
2516 ## -------------------- ##
2517
2518 ac_ext=c
2519 ac_cpp='$CPP $CPPFLAGS'
2520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523
2524
2525
2526 ac_config_headers="$ac_config_headers config.h"
2527
2528
2529 # Initialize Automake
2530 am__api_version='1.16'
2531
2532
2533
2534 # Find a good install program. We prefer a C program (faster),
2535 # so one script is as good as another. But avoid the broken or
2536 # incompatible versions:
2537 # SysV /etc/install, /usr/sbin/install
2538 # SunOS /usr/etc/install
2539 # IRIX /sbin/install
2540 # AIX /bin/install
2541 # AmigaOS /C/install, which installs bootblocks on floppy discs
2542 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2543 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2544 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2545 # OS/2's system install, which has a completely different semantic
2546 # ./install, which can be erroneously created by make from ./install.sh.
2547 # Reject install programs that cannot install multiple files.
2548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2549 printf %s "checking for a BSD-compatible install... " >&6; }
2550 if test -z "$INSTALL"; then
2551 if test ${ac_cv_path_install+y}
2552 then :
2553 printf %s "(cached) " >&6
2554 else case e in #(
2555 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 for as_dir in $PATH
2557 do
2558 IFS=$as_save_IFS
2559 case $as_dir in #(((
2560 '') as_dir=./ ;;
2561 */) ;;
2562 *) as_dir=$as_dir/ ;;
2563 esac
2564 # Account for fact that we put trailing slashes in our PATH walk.
2565 case $as_dir in #((
2566 ./ | /[cC]/* | \
2567 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2568 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2569 /usr/ucb/* ) ;;
2570 *)
2571 # OSF1 and SCO ODT 3.0 have their own names for install.
2572 # Don't use installbsd from OSF since it installs stuff as root
2573 # by default.
2574 for ac_prog in ginstall scoinst install; do
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2577 if test $ac_prog = install &&
2578 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2579 # AIX install. It has an incompatible calling convention.
2580 :
2581 elif test $ac_prog = install &&
2582 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2583 # program-specific install script used by HP pwplus--don't use.
2584 :
2585 else
2586 rm -rf conftest.one conftest.two conftest.dir
2587 echo one > conftest.one
2588 echo two > conftest.two
2589 mkdir conftest.dir
2590 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2591 test -s conftest.one && test -s conftest.two &&
2592 test -s conftest.dir/conftest.one &&
2593 test -s conftest.dir/conftest.two
2594 then
2595 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2596 break 3
2597 fi
2598 fi
2599 fi
2600 done
2601 done
2602 ;;
2603 esac
2604
2605 done
2606 IFS=$as_save_IFS
2607
2608 rm -rf conftest.one conftest.two conftest.dir
2609 ;;
2610 esac
2611 fi
2612 if test ${ac_cv_path_install+y}; then
2613 INSTALL=$ac_cv_path_install
2614 else
2615 # As a last resort, use the slow shell script. Don't cache a
2616 # value for INSTALL within a source directory, because that will
2617 # break other packages using the cache if that directory is
2618 # removed, or if the value is a relative name.
2619 INSTALL=$ac_install_sh
2620 fi
2621 fi
2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2623 printf "%s\n" "$INSTALL" >&6; }
2624
2625 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2626 # It thinks the first close brace ends the variable substitution.
2627 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2628
2629 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2630
2631 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2632
2633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2634 printf %s "checking whether build environment is sane... " >&6; }
2635 # Reject unsafe characters in $srcdir or the absolute working directory
2636 # name. Accept space and tab only in the latter.
2637 am_lf='
2638 '
2639 case `pwd` in
2640 *[\\\"\#\$\&\'\`$am_lf]*)
2641 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2642 esac
2643 case $srcdir in
2644 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2645 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2646 esac
2647
2648 # Do 'set' in a subshell so we don't clobber the current shell's
2649 # arguments. Must try -L first in case configure is actually a
2650 # symlink; some systems play weird games with the mod time of symlinks
2651 # (eg FreeBSD returns the mod time of the symlink's containing
2652 # directory).
2653 if (
2654 am_has_slept=no
2655 for am_try in 1 2; do
2656 echo "timestamp, slept: $am_has_slept" > conftest.file
2657 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2658 if test "$*" = "X"; then
2659 # -L didn't work.
2660 set X `ls -t "$srcdir/configure" conftest.file`
2661 fi
2662 if test "$*" != "X $srcdir/configure conftest.file" \
2663 && test "$*" != "X conftest.file $srcdir/configure"; then
2664
2665 # If neither matched, then we have a broken ls. This can happen
2666 # if, for instance, CONFIG_SHELL is bash and it inherits a
2667 # broken ls alias from the environment. This has actually
2668 # happened. Such a system could not be considered "sane".
2669 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2670 alias in your environment" "$LINENO" 5
2671 fi
2672 if test "$2" = conftest.file || test $am_try -eq 2; then
2673 break
2674 fi
2675 # Just in case.
2676 sleep 1
2677 am_has_slept=yes
2678 done
2679 test "$2" = conftest.file
2680 )
2681 then
2682 # Ok.
2683 :
2684 else
2685 as_fn_error $? "newly created file is older than distributed files!
2686 Check your system clock" "$LINENO" 5
2687 fi
2688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2689 printf "%s\n" "yes" >&6; }
2690 # If we didn't sleep, we still need to ensure time stamps of config.status and
2691 # generated files are strictly newer.
2692 am_sleep_pid=
2693 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2694 ( sleep 1 ) &
2695 am_sleep_pid=$!
2696 fi
2697
2698 rm -f conftest.file
2699
2700 test "$program_prefix" != NONE &&
2701 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2702 # Use a double $ so make ignores it.
2703 test "$program_suffix" != NONE &&
2704 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2705 # Double any \ or $.
2706 # By default was 's,x,x', remove it if useless.
2707 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2708 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2709
2710
2711 # Expand $ac_aux_dir to an absolute path.
2712 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2713
2714
2715 if test x"${MISSING+set}" != xset; then
2716 MISSING="\${SHELL} '$am_aux_dir/missing'"
2717 fi
2718 # Use eval to expand $SHELL
2719 if eval "$MISSING --is-lightweight"; then
2720 am_missing_run="$MISSING "
2721 else
2722 am_missing_run=
2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2724 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2725 fi
2726
2727 if test x"${install_sh+set}" != xset; then
2728 case $am_aux_dir in
2729 *\ * | *\ *)
2730 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2731 *)
2732 install_sh="\${SHELL} $am_aux_dir/install-sh"
2733 esac
2734 fi
2735
2736 # Installed binaries are usually stripped using 'strip' when the user
2737 # run "make install-strip". However 'strip' might not be the right
2738 # tool to use in cross-compilation environments, therefore Automake
2739 # will honor the 'STRIP' environment variable to overrule this program.
2740 if test "$cross_compiling" != no; then
2741 if test -n "$ac_tool_prefix"; then
2742 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2743 set dummy ${ac_tool_prefix}strip; ac_word=$2
2744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2745 printf %s "checking for $ac_word... " >&6; }
2746 if test ${ac_cv_prog_STRIP+y}
2747 then :
2748 printf %s "(cached) " >&6
2749 else case e in #(
2750 e) if test -n "$STRIP"; then
2751 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2752 else
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 for as_dir in $PATH
2755 do
2756 IFS=$as_save_IFS
2757 case $as_dir in #(((
2758 '') as_dir=./ ;;
2759 */) ;;
2760 *) as_dir=$as_dir/ ;;
2761 esac
2762 for ac_exec_ext in '' $ac_executable_extensions; do
2763 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2764 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2765 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2766 break 2
2767 fi
2768 done
2769 done
2770 IFS=$as_save_IFS
2771
2772 fi ;;
2773 esac
2774 fi
2775 STRIP=$ac_cv_prog_STRIP
2776 if test -n "$STRIP"; then
2777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2778 printf "%s\n" "$STRIP" >&6; }
2779 else
2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 printf "%s\n" "no" >&6; }
2782 fi
2783
2784
2785 fi
2786 if test -z "$ac_cv_prog_STRIP"; then
2787 ac_ct_STRIP=$STRIP
2788 # Extract the first word of "strip", so it can be a program name with args.
2789 set dummy strip; ac_word=$2
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2791 printf %s "checking for $ac_word... " >&6; }
2792 if test ${ac_cv_prog_ac_ct_STRIP+y}
2793 then :
2794 printf %s "(cached) " >&6
2795 else case e in #(
2796 e) if test -n "$ac_ct_STRIP"; then
2797 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2798 else
2799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 for as_dir in $PATH
2801 do
2802 IFS=$as_save_IFS
2803 case $as_dir in #(((
2804 '') as_dir=./ ;;
2805 */) ;;
2806 *) as_dir=$as_dir/ ;;
2807 esac
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2810 ac_cv_prog_ac_ct_STRIP="strip"
2811 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2812 break 2
2813 fi
2814 done
2815 done
2816 IFS=$as_save_IFS
2817
2818 fi ;;
2819 esac
2820 fi
2821 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2822 if test -n "$ac_ct_STRIP"; then
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2824 printf "%s\n" "$ac_ct_STRIP" >&6; }
2825 else
2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 printf "%s\n" "no" >&6; }
2828 fi
2829
2830 if test "x$ac_ct_STRIP" = x; then
2831 STRIP=":"
2832 else
2833 case $cross_compiling:$ac_tool_warned in
2834 yes:)
2835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2836 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2837 ac_tool_warned=yes ;;
2838 esac
2839 STRIP=$ac_ct_STRIP
2840 fi
2841 else
2842 STRIP="$ac_cv_prog_STRIP"
2843 fi
2844
2845 fi
2846 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2847
2848
2849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2850 printf %s "checking for a race-free mkdir -p... " >&6; }
2851 if test -z "$MKDIR_P"; then
2852 if test ${ac_cv_path_mkdir+y}
2853 then :
2854 printf %s "(cached) " >&6
2855 else case e in #(
2856 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2858 do
2859 IFS=$as_save_IFS
2860 case $as_dir in #(((
2861 '') as_dir=./ ;;
2862 */) ;;
2863 *) as_dir=$as_dir/ ;;
2864 esac
2865 for ac_prog in mkdir gmkdir; do
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2868 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2869 'mkdir ('*'coreutils) '* | \
2870 *'BusyBox '* | \
2871 'mkdir (fileutils) '4.1*)
2872 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2873 break 3;;
2874 esac
2875 done
2876 done
2877 done
2878 IFS=$as_save_IFS
2879 ;;
2880 esac
2881 fi
2882
2883 test -d ./--version && rmdir ./--version
2884 if test ${ac_cv_path_mkdir+y}; then
2885 MKDIR_P="$ac_cv_path_mkdir -p"
2886 else
2887 # As a last resort, use plain mkdir -p,
2888 # in the hope it doesn't have the bugs of ancient mkdir.
2889 MKDIR_P='mkdir -p'
2890 fi
2891 fi
2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2893 printf "%s\n" "$MKDIR_P" >&6; }
2894
2895 for ac_prog in gawk mawk nawk awk
2896 do
2897 # Extract the first word of "$ac_prog", so it can be a program name with args.
2898 set dummy $ac_prog; ac_word=$2
2899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 printf %s "checking for $ac_word... " >&6; }
2901 if test ${ac_cv_prog_AWK+y}
2902 then :
2903 printf %s "(cached) " >&6
2904 else case e in #(
2905 e) if test -n "$AWK"; then
2906 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2907 else
2908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909 for as_dir in $PATH
2910 do
2911 IFS=$as_save_IFS
2912 case $as_dir in #(((
2913 '') as_dir=./ ;;
2914 */) ;;
2915 *) as_dir=$as_dir/ ;;
2916 esac
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2919 ac_cv_prog_AWK="$ac_prog"
2920 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2921 break 2
2922 fi
2923 done
2924 done
2925 IFS=$as_save_IFS
2926
2927 fi ;;
2928 esac
2929 fi
2930 AWK=$ac_cv_prog_AWK
2931 if test -n "$AWK"; then
2932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2933 printf "%s\n" "$AWK" >&6; }
2934 else
2935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936 printf "%s\n" "no" >&6; }
2937 fi
2938
2939
2940 test -n "$AWK" && break
2941 done
2942
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2944 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2945 set x ${MAKE-make}
2946 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2947 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2948 then :
2949 printf %s "(cached) " >&6
2950 else case e in #(
2951 e) cat >conftest.make <<\_ACEOF
2952 SHELL = /bin/sh
2953 all:
2954 @echo '@@@%%%=$(MAKE)=@@@%%%'
2955 _ACEOF
2956 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2957 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2958 *@@@%%%=?*=@@@%%%*)
2959 eval ac_cv_prog_make_${ac_make}_set=yes;;
2960 *)
2961 eval ac_cv_prog_make_${ac_make}_set=no;;
2962 esac
2963 rm -f conftest.make ;;
2964 esac
2965 fi
2966 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2968 printf "%s\n" "yes" >&6; }
2969 SET_MAKE=
2970 else
2971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 printf "%s\n" "no" >&6; }
2973 SET_MAKE="MAKE=${MAKE-make}"
2974 fi
2975
2976 rm -rf .tst 2>/dev/null
2977 mkdir .tst 2>/dev/null
2978 if test -d .tst; then
2979 am__leading_dot=.
2980 else
2981 am__leading_dot=_
2982 fi
2983 rmdir .tst 2>/dev/null
2984
2985 # Check whether --enable-silent-rules was given.
2986 if test ${enable_silent_rules+y}
2987 then :
2988 enableval=$enable_silent_rules;
2989 fi
2990
2991 case $enable_silent_rules in # (((
2992 yes) AM_DEFAULT_VERBOSITY=0;;
2993 no) AM_DEFAULT_VERBOSITY=1;;
2994 *) AM_DEFAULT_VERBOSITY=1;;
2995 esac
2996 am_make=${MAKE-make}
2997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2998 printf %s "checking whether $am_make supports nested variables... " >&6; }
2999 if test ${am_cv_make_support_nested_variables+y}
3000 then :
3001 printf %s "(cached) " >&6
3002 else case e in #(
3003 e) if printf "%s\n" 'TRUE=$(BAR$(V))
3004 BAR0=false
3005 BAR1=true
3006 V=1
3007 am__doit:
3008 @$(TRUE)
3009 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3010 am_cv_make_support_nested_variables=yes
3011 else
3012 am_cv_make_support_nested_variables=no
3013 fi ;;
3014 esac
3015 fi
3016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3017 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3018 if test $am_cv_make_support_nested_variables = yes; then
3019 AM_V='$(V)'
3020 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3021 else
3022 AM_V=$AM_DEFAULT_VERBOSITY
3023 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3024 fi
3025 AM_BACKSLASH='\'
3026
3027 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3028 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3029 # is not polluted with repeated "-I."
3030 am__isrc=' -I$(srcdir)'
3031 # test to see if srcdir already configured
3032 if test -f $srcdir/config.status; then
3033 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3034 fi
3035 fi
3036
3037 # test whether we have cygpath
3038 if test -z "$CYGPATH_W"; then
3039 if (cygpath --version) >/dev/null 2>/dev/null; then
3040 CYGPATH_W='cygpath -w'
3041 else
3042 CYGPATH_W=echo
3043 fi
3044 fi
3045
3046
3047 # Define the identity of the package.
3048 PACKAGE='xfontsel'
3049 VERSION='1.1.1'
3050
3051
3052 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3053
3054
3055 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3056
3057 # Some tools Automake needs.
3058
3059 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3060
3061
3062 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3063
3064
3065 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3066
3067
3068 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3069
3070
3071 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3072
3073 # For better backward compatibility. To be removed once Automake 1.9.x
3074 # dies out for good. For more background, see:
3075 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3076 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3077 mkdir_p='$(MKDIR_P)'
3078
3079 # We need awk for the "check" target (and possibly the TAP driver). The
3080 # system "awk" is bad on some platforms.
3081 # Always define AMTAR for backward compatibility. Yes, it's still used
3082 # in the wild :-( We should find a proper way to deprecate it ...
3083 AMTAR='$${TAR-tar}'
3084
3085
3086 # We'll loop over all known methods to create a tar archive until one works.
3087 _am_tools='gnutar pax cpio none'
3088
3089 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3090
3091
3092
3093
3094
3095 # Variables for tags utilities; see am/tags.am
3096 if test -z "$CTAGS"; then
3097 CTAGS=ctags
3098 fi
3099
3100 if test -z "$ETAGS"; then
3101 ETAGS=etags
3102 fi
3103
3104 if test -z "$CSCOPE"; then
3105 CSCOPE=cscope
3106 fi
3107
3108
3109
3110 # POSIX will say in a future version that running "rm -f" with no argument
3111 # is OK; and we want to be able to make that assumption in our Makefile
3112 # recipes. So use an aggressive probe to check that the usage we want is
3113 # actually supported "in the wild" to an acceptable degree.
3114 # See automake bug#10828.
3115 # To make any issue more visible, cause the running configure to be aborted
3116 # by default if the 'rm' program in use doesn't match our expectations; the
3117 # user can still override this though.
3118 if rm -f && rm -fr && rm -rf; then : OK; else
3119 cat >&2 <<'END'
3120 Oops!
3121
3122 Your 'rm' program seems unable to run without file operands specified
3123 on the command line, even when the '-f' option is present. This is contrary
3124 to the behaviour of most rm programs out there, and not conforming with
3125 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3126
3127 Please tell bug-automake@gnu.org about your system, including the value
3128 of your $PATH and any error possibly output before this message. This
3129 can help us improve future automake versions.
3130
3131 END
3132 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3133 echo 'Configuration will proceed anyway, since you have set the' >&2
3134 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3135 echo >&2
3136 else
3137 cat >&2 <<'END'
3138 Aborting the configuration process, to ensure you take notice of the issue.
3139
3140 You can download and install GNU coreutils to get an 'rm' implementation
3141 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3142
3143 If you want to complete the configuration process using your problematic
3144 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3145 to "yes", and re-run configure.
3146
3147 END
3148 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3149 fi
3150 fi
3151
3152
3153 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174 DEPDIR="${am__leading_dot}deps"
3175
3176 ac_config_commands="$ac_config_commands depfiles"
3177
3178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3179 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3180 cat > confinc.mk << 'END'
3181 am__doit:
3182 @echo this is the am__doit target >confinc.out
3183 .PHONY: am__doit
3184 END
3185 am__include="#"
3186 am__quote=
3187 # BSD make does it like this.
3188 echo '.include "confinc.mk" # ignored' > confmf.BSD
3189 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3190 echo 'include confinc.mk # ignored' > confmf.GNU
3191 _am_result=no
3192 for s in GNU BSD; do
3193 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3194 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3195 ac_status=$?
3196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); }
3198 case $?:`cat confinc.out 2>/dev/null` in #(
3199 '0:this is the am__doit target') :
3200 case $s in #(
3201 BSD) :
3202 am__include='.include' am__quote='"' ;; #(
3203 *) :
3204 am__include='include' am__quote='' ;;
3205 esac ;; #(
3206 *) :
3207 ;;
3208 esac
3209 if test "$am__include" != "#"; then
3210 _am_result="yes ($s style)"
3211 break
3212 fi
3213 done
3214 rm -f confinc.* confmf.*
3215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3216 printf "%s\n" "${_am_result}" >&6; }
3217
3218 # Check whether --enable-dependency-tracking was given.
3219 if test ${enable_dependency_tracking+y}
3220 then :
3221 enableval=$enable_dependency_tracking;
3222 fi
3223
3224 if test "x$enable_dependency_tracking" != xno; then
3225 am_depcomp="$ac_aux_dir/depcomp"
3226 AMDEPBACKSLASH='\'
3227 am__nodep='_no'
3228 fi
3229 if test "x$enable_dependency_tracking" != xno; then
3230 AMDEP_TRUE=
3231 AMDEP_FALSE='#'
3232 else
3233 AMDEP_TRUE='#'
3234 AMDEP_FALSE=
3235 fi
3236
3237
3238 ac_ext=c
3239 ac_cpp='$CPP $CPPFLAGS'
3240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 if test -n "$ac_tool_prefix"; then
3244 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3245 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3247 printf %s "checking for $ac_word... " >&6; }
3248 if test ${ac_cv_prog_CC+y}
3249 then :
3250 printf %s "(cached) " >&6
3251 else case e in #(
3252 e) if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH
3257 do
3258 IFS=$as_save_IFS
3259 case $as_dir in #(((
3260 '') as_dir=./ ;;
3261 */) ;;
3262 *) as_dir=$as_dir/ ;;
3263 esac
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272 IFS=$as_save_IFS
3273
3274 fi ;;
3275 esac
3276 fi
3277 CC=$ac_cv_prog_CC
3278 if test -n "$CC"; then
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3280 printf "%s\n" "$CC" >&6; }
3281 else
3282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 printf "%s\n" "no" >&6; }
3284 fi
3285
3286
3287 fi
3288 if test -z "$ac_cv_prog_CC"; then
3289 ac_ct_CC=$CC
3290 # Extract the first word of "gcc", so it can be a program name with args.
3291 set dummy gcc; ac_word=$2
3292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293 printf %s "checking for $ac_word... " >&6; }
3294 if test ${ac_cv_prog_ac_ct_CC+y}
3295 then :
3296 printf %s "(cached) " >&6
3297 else case e in #(
3298 e) if test -n "$ac_ct_CC"; then
3299 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3300 else
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304 IFS=$as_save_IFS
3305 case $as_dir in #(((
3306 '') as_dir=./ ;;
3307 */) ;;
3308 *) as_dir=$as_dir/ ;;
3309 esac
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3312 ac_cv_prog_ac_ct_CC="gcc"
3313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3314 break 2
3315 fi
3316 done
3317 done
3318 IFS=$as_save_IFS
3319
3320 fi ;;
3321 esac
3322 fi
3323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3324 if test -n "$ac_ct_CC"; then
3325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3326 printf "%s\n" "$ac_ct_CC" >&6; }
3327 else
3328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 printf "%s\n" "no" >&6; }
3330 fi
3331
3332 if test "x$ac_ct_CC" = x; then
3333 CC=""
3334 else
3335 case $cross_compiling:$ac_tool_warned in
3336 yes:)
3337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3338 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3339 ac_tool_warned=yes ;;
3340 esac
3341 CC=$ac_ct_CC
3342 fi
3343 else
3344 CC="$ac_cv_prog_CC"
3345 fi
3346
3347 if test -z "$CC"; then
3348 if test -n "$ac_tool_prefix"; then
3349 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3350 set dummy ${ac_tool_prefix}cc; ac_word=$2
3351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 printf %s "checking for $ac_word... " >&6; }
3353 if test ${ac_cv_prog_CC+y}
3354 then :
3355 printf %s "(cached) " >&6
3356 else case e in #(
3357 e) if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363 IFS=$as_save_IFS
3364 case $as_dir in #(((
3365 '') as_dir=./ ;;
3366 */) ;;
3367 *) as_dir=$as_dir/ ;;
3368 esac
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3371 ac_cv_prog_CC="${ac_tool_prefix}cc"
3372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3373 break 2
3374 fi
3375 done
3376 done
3377 IFS=$as_save_IFS
3378
3379 fi ;;
3380 esac
3381 fi
3382 CC=$ac_cv_prog_CC
3383 if test -n "$CC"; then
3384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385 printf "%s\n" "$CC" >&6; }
3386 else
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 printf "%s\n" "no" >&6; }
3389 fi
3390
3391
3392 fi
3393 fi
3394 if test -z "$CC"; then
3395 # Extract the first word of "cc", so it can be a program name with args.
3396 set dummy cc; ac_word=$2
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398 printf %s "checking for $ac_word... " >&6; }
3399 if test ${ac_cv_prog_CC+y}
3400 then :
3401 printf %s "(cached) " >&6
3402 else case e in #(
3403 e) if test -n "$CC"; then
3404 ac_cv_prog_CC="$CC" # Let the user override the test.
3405 else
3406 ac_prog_rejected=no
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3409 do
3410 IFS=$as_save_IFS
3411 case $as_dir in #(((
3412 '') as_dir=./ ;;
3413 */) ;;
3414 *) as_dir=$as_dir/ ;;
3415 esac
3416 for ac_exec_ext in '' $ac_executable_extensions; do
3417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3418 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3419 ac_prog_rejected=yes
3420 continue
3421 fi
3422 ac_cv_prog_CC="cc"
3423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3424 break 2
3425 fi
3426 done
3427 done
3428 IFS=$as_save_IFS
3429
3430 if test $ac_prog_rejected = yes; then
3431 # We found a bogon in the path, so make sure we never use it.
3432 set dummy $ac_cv_prog_CC
3433 shift
3434 if test $# != 0; then
3435 # We chose a different compiler from the bogus one.
3436 # However, it has the same basename, so the bogon will be chosen
3437 # first if we set CC to just the basename; use the full file name.
3438 shift
3439 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3440 fi
3441 fi
3442 fi ;;
3443 esac
3444 fi
3445 CC=$ac_cv_prog_CC
3446 if test -n "$CC"; then
3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3448 printf "%s\n" "$CC" >&6; }
3449 else
3450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3451 printf "%s\n" "no" >&6; }
3452 fi
3453
3454
3455 fi
3456 if test -z "$CC"; then
3457 if test -n "$ac_tool_prefix"; then
3458 for ac_prog in cl.exe
3459 do
3460 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3461 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 printf %s "checking for $ac_word... " >&6; }
3464 if test ${ac_cv_prog_CC+y}
3465 then :
3466 printf %s "(cached) " >&6
3467 else case e in #(
3468 e) if test -n "$CC"; then
3469 ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474 IFS=$as_save_IFS
3475 case $as_dir in #(((
3476 '') as_dir=./ ;;
3477 */) ;;
3478 *) as_dir=$as_dir/ ;;
3479 esac
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3482 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3484 break 2
3485 fi
3486 done
3487 done
3488 IFS=$as_save_IFS
3489
3490 fi ;;
3491 esac
3492 fi
3493 CC=$ac_cv_prog_CC
3494 if test -n "$CC"; then
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3496 printf "%s\n" "$CC" >&6; }
3497 else
3498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 printf "%s\n" "no" >&6; }
3500 fi
3501
3502
3503 test -n "$CC" && break
3504 done
3505 fi
3506 if test -z "$CC"; then
3507 ac_ct_CC=$CC
3508 for ac_prog in cl.exe
3509 do
3510 # Extract the first word of "$ac_prog", so it can be a program name with args.
3511 set dummy $ac_prog; ac_word=$2
3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 printf %s "checking for $ac_word... " >&6; }
3514 if test ${ac_cv_prog_ac_ct_CC+y}
3515 then :
3516 printf %s "(cached) " >&6
3517 else case e in #(
3518 e) if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3520 else
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524 IFS=$as_save_IFS
3525 case $as_dir in #(((
3526 '') as_dir=./ ;;
3527 */) ;;
3528 *) as_dir=$as_dir/ ;;
3529 esac
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3532 ac_cv_prog_ac_ct_CC="$ac_prog"
3533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3534 break 2
3535 fi
3536 done
3537 done
3538 IFS=$as_save_IFS
3539
3540 fi ;;
3541 esac
3542 fi
3543 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3544 if test -n "$ac_ct_CC"; then
3545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3546 printf "%s\n" "$ac_ct_CC" >&6; }
3547 else
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3549 printf "%s\n" "no" >&6; }
3550 fi
3551
3552
3553 test -n "$ac_ct_CC" && break
3554 done
3555
3556 if test "x$ac_ct_CC" = x; then
3557 CC=""
3558 else
3559 case $cross_compiling:$ac_tool_warned in
3560 yes:)
3561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3562 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3563 ac_tool_warned=yes ;;
3564 esac
3565 CC=$ac_ct_CC
3566 fi
3567 fi
3568
3569 fi
3570 if test -z "$CC"; then
3571 if test -n "$ac_tool_prefix"; then
3572 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3573 set dummy ${ac_tool_prefix}clang; ac_word=$2
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 printf %s "checking for $ac_word... " >&6; }
3576 if test ${ac_cv_prog_CC+y}
3577 then :
3578 printf %s "(cached) " >&6
3579 else case e in #(
3580 e) if test -n "$CC"; then
3581 ac_cv_prog_CC="$CC" # Let the user override the test.
3582 else
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3585 do
3586 IFS=$as_save_IFS
3587 case $as_dir in #(((
3588 '') as_dir=./ ;;
3589 */) ;;
3590 *) as_dir=$as_dir/ ;;
3591 esac
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3594 ac_cv_prog_CC="${ac_tool_prefix}clang"
3595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3596 break 2
3597 fi
3598 done
3599 done
3600 IFS=$as_save_IFS
3601
3602 fi ;;
3603 esac
3604 fi
3605 CC=$ac_cv_prog_CC
3606 if test -n "$CC"; then
3607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3608 printf "%s\n" "$CC" >&6; }
3609 else
3610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 printf "%s\n" "no" >&6; }
3612 fi
3613
3614
3615 fi
3616 if test -z "$ac_cv_prog_CC"; then
3617 ac_ct_CC=$CC
3618 # Extract the first word of "clang", so it can be a program name with args.
3619 set dummy clang; ac_word=$2
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 printf %s "checking for $ac_word... " >&6; }
3622 if test ${ac_cv_prog_ac_ct_CC+y}
3623 then :
3624 printf %s "(cached) " >&6
3625 else case e in #(
3626 e) if test -n "$ac_ct_CC"; then
3627 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3628 else
3629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3630 for as_dir in $PATH
3631 do
3632 IFS=$as_save_IFS
3633 case $as_dir in #(((
3634 '') as_dir=./ ;;
3635 */) ;;
3636 *) as_dir=$as_dir/ ;;
3637 esac
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3640 ac_cv_prog_ac_ct_CC="clang"
3641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3642 break 2
3643 fi
3644 done
3645 done
3646 IFS=$as_save_IFS
3647
3648 fi ;;
3649 esac
3650 fi
3651 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3652 if test -n "$ac_ct_CC"; then
3653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3654 printf "%s\n" "$ac_ct_CC" >&6; }
3655 else
3656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 printf "%s\n" "no" >&6; }
3658 fi
3659
3660 if test "x$ac_ct_CC" = x; then
3661 CC=""
3662 else
3663 case $cross_compiling:$ac_tool_warned in
3664 yes:)
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3666 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3667 ac_tool_warned=yes ;;
3668 esac
3669 CC=$ac_ct_CC
3670 fi
3671 else
3672 CC="$ac_cv_prog_CC"
3673 fi
3674
3675 fi
3676
3677
3678 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3679 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3680 as_fn_error $? "no acceptable C compiler found in \$PATH
3681 See 'config.log' for more details" "$LINENO" 5; }
3682
3683 # Provide some information about the compiler.
3684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3685 set X $ac_compile
3686 ac_compiler=$2
3687 for ac_option in --version -v -V -qversion -version; do
3688 { { ac_try="$ac_compiler $ac_option >&5"
3689 case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3692 esac
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 printf "%s\n" "$ac_try_echo"; } >&5
3695 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3696 ac_status=$?
3697 if test -s conftest.err; then
3698 sed '10a\
3699 ... rest of stderr output deleted ...
3700 10q' conftest.err >conftest.er1
3701 cat conftest.er1 >&5
3702 fi
3703 rm -f conftest.er1 conftest.err
3704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3705 test $ac_status = 0; }
3706 done
3707
3708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 /* end confdefs.h. */
3710
3711 int
3712 main (void)
3713 {
3714
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 ac_clean_files_save=$ac_clean_files
3720 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3721 # Try to create an executable without -o first, disregard a.out.
3722 # It will help us diagnose broken compilers, and finding out an intuition
3723 # of exeext.
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3725 printf %s "checking whether the C compiler works... " >&6; }
3726 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3727
3728 # The possible output files:
3729 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3730
3731 ac_rmfiles=
3732 for ac_file in $ac_files
3733 do
3734 case $ac_file in
3735 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3736 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3737 esac
3738 done
3739 rm -f $ac_rmfiles
3740
3741 if { { ac_try="$ac_link_default"
3742 case "(($ac_try" in
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3745 esac
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 printf "%s\n" "$ac_try_echo"; } >&5
3748 (eval "$ac_link_default") 2>&5
3749 ac_status=$?
3750 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3751 test $ac_status = 0; }
3752 then :
3753 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3754 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3755 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3756 # so that the user can short-circuit this test for compilers unknown to
3757 # Autoconf.
3758 for ac_file in $ac_files ''
3759 do
3760 test -f "$ac_file" || continue
3761 case $ac_file in
3762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3763 ;;
3764 [ab].out )
3765 # We found the default executable, but exeext='' is most
3766 # certainly right.
3767 break;;
3768 *.* )
3769 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3770 then :; else
3771 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3772 fi
3773 # We set ac_cv_exeext here because the later test for it is not
3774 # safe: cross compilers may not add the suffix if given an '-o'
3775 # argument, so we may need to know it at that point already.
3776 # Even if this section looks crufty: it has the advantage of
3777 # actually working.
3778 break;;
3779 * )
3780 break;;
3781 esac
3782 done
3783 test "$ac_cv_exeext" = no && ac_cv_exeext=
3784
3785 else case e in #(
3786 e) ac_file='' ;;
3787 esac
3788 fi
3789 if test -z "$ac_file"
3790 then :
3791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792 printf "%s\n" "no" >&6; }
3793 printf "%s\n" "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3795
3796 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3797 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3798 as_fn_error 77 "C compiler cannot create executables
3799 See 'config.log' for more details" "$LINENO" 5; }
3800 else case e in #(
3801 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3802 printf "%s\n" "yes" >&6; } ;;
3803 esac
3804 fi
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3806 printf %s "checking for C compiler default output file name... " >&6; }
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3808 printf "%s\n" "$ac_file" >&6; }
3809 ac_exeext=$ac_cv_exeext
3810
3811 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3812 ac_clean_files=$ac_clean_files_save
3813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3814 printf %s "checking for suffix of executables... " >&6; }
3815 if { { ac_try="$ac_link"
3816 case "(($ac_try" in
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3819 esac
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 printf "%s\n" "$ac_try_echo"; } >&5
3822 (eval "$ac_link") 2>&5
3823 ac_status=$?
3824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }
3826 then :
3827 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3828 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3829 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3830 # 'rm'.
3831 for ac_file in conftest.exe conftest conftest.*; do
3832 test -f "$ac_file" || continue
3833 case $ac_file in
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3836 break;;
3837 * ) break;;
3838 esac
3839 done
3840 else case e in #(
3841 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3842 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3843 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3844 See 'config.log' for more details" "$LINENO" 5; } ;;
3845 esac
3846 fi
3847 rm -f conftest conftest$ac_cv_exeext
3848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3849 printf "%s\n" "$ac_cv_exeext" >&6; }
3850
3851 rm -f conftest.$ac_ext
3852 EXEEXT=$ac_cv_exeext
3853 ac_exeext=$EXEEXT
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #include <stdio.h>
3857 int
3858 main (void)
3859 {
3860 FILE *f = fopen ("conftest.out", "w");
3861 if (!f)
3862 return 1;
3863 return ferror (f) || fclose (f) != 0;
3864
3865 ;
3866 return 0;
3867 }
3868 _ACEOF
3869 ac_clean_files="$ac_clean_files conftest.out"
3870 # Check that the compiler produces executables we can run. If not, either
3871 # the compiler is broken, or we cross compile.
3872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3873 printf %s "checking whether we are cross compiling... " >&6; }
3874 if test "$cross_compiling" != yes; then
3875 { { ac_try="$ac_link"
3876 case "(($ac_try" in
3877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3878 *) ac_try_echo=$ac_try;;
3879 esac
3880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3881 printf "%s\n" "$ac_try_echo"; } >&5
3882 (eval "$ac_link") 2>&5
3883 ac_status=$?
3884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3885 test $ac_status = 0; }
3886 if { ac_try='./conftest$ac_cv_exeext'
3887 { { case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892 printf "%s\n" "$ac_try_echo"; } >&5
3893 (eval "$ac_try") 2>&5
3894 ac_status=$?
3895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 test $ac_status = 0; }; }; then
3897 cross_compiling=no
3898 else
3899 if test "$cross_compiling" = maybe; then
3900 cross_compiling=yes
3901 else
3902 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3903 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3904 as_fn_error 77 "cannot run C compiled programs.
3905 If you meant to cross compile, use '--host'.
3906 See 'config.log' for more details" "$LINENO" 5; }
3907 fi
3908 fi
3909 fi
3910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3911 printf "%s\n" "$cross_compiling" >&6; }
3912
3913 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3914 conftest.o conftest.obj conftest.out
3915 ac_clean_files=$ac_clean_files_save
3916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3917 printf %s "checking for suffix of object files... " >&6; }
3918 if test ${ac_cv_objext+y}
3919 then :
3920 printf %s "(cached) " >&6
3921 else case e in #(
3922 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3924
3925 int
3926 main (void)
3927 {
3928
3929 ;
3930 return 0;
3931 }
3932 _ACEOF
3933 rm -f conftest.o conftest.obj
3934 if { { ac_try="$ac_compile"
3935 case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938 esac
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 printf "%s\n" "$ac_try_echo"; } >&5
3941 (eval "$ac_compile") 2>&5
3942 ac_status=$?
3943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }
3945 then :
3946 for ac_file in conftest.o conftest.obj conftest.*; do
3947 test -f "$ac_file" || continue;
3948 case $ac_file in
3949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3951 break;;
3952 esac
3953 done
3954 else case e in #(
3955 e) printf "%s\n" "$as_me: failed program was:" >&5
3956 sed 's/^/| /' conftest.$ac_ext >&5
3957
3958 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3959 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3960 as_fn_error $? "cannot compute suffix of object files: cannot compile
3961 See 'config.log' for more details" "$LINENO" 5; } ;;
3962 esac
3963 fi
3964 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3965 esac
3966 fi
3967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3968 printf "%s\n" "$ac_cv_objext" >&6; }
3969 OBJEXT=$ac_cv_objext
3970 ac_objext=$OBJEXT
3971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3972 printf %s "checking whether the compiler supports GNU C... " >&6; }
3973 if test ${ac_cv_c_compiler_gnu+y}
3974 then :
3975 printf %s "(cached) " >&6
3976 else case e in #(
3977 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3979
3980 int
3981 main (void)
3982 {
3983 #ifndef __GNUC__
3984 choke me
3985 #endif
3986
3987 ;
3988 return 0;
3989 }
3990 _ACEOF
3991 if ac_fn_c_try_compile "$LINENO"
3992 then :
3993 ac_compiler_gnu=yes
3994 else case e in #(
3995 e) ac_compiler_gnu=no ;;
3996 esac
3997 fi
3998 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3999 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4000 ;;
4001 esac
4002 fi
4003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4004 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4006
4007 if test $ac_compiler_gnu = yes; then
4008 GCC=yes
4009 else
4010 GCC=
4011 fi
4012 ac_test_CFLAGS=${CFLAGS+y}
4013 ac_save_CFLAGS=$CFLAGS
4014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4015 printf %s "checking whether $CC accepts -g... " >&6; }
4016 if test ${ac_cv_prog_cc_g+y}
4017 then :
4018 printf %s "(cached) " >&6
4019 else case e in #(
4020 e) ac_save_c_werror_flag=$ac_c_werror_flag
4021 ac_c_werror_flag=yes
4022 ac_cv_prog_cc_g=no
4023 CFLAGS="-g"
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4026
4027 int
4028 main (void)
4029 {
4030
4031 ;
4032 return 0;
4033 }
4034 _ACEOF
4035 if ac_fn_c_try_compile "$LINENO"
4036 then :
4037 ac_cv_prog_cc_g=yes
4038 else case e in #(
4039 e) CFLAGS=""
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h. */
4042
4043 int
4044 main (void)
4045 {
4046
4047 ;
4048 return 0;
4049 }
4050 _ACEOF
4051 if ac_fn_c_try_compile "$LINENO"
4052 then :
4053
4054 else case e in #(
4055 e) ac_c_werror_flag=$ac_save_c_werror_flag
4056 CFLAGS="-g"
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h. */
4059
4060 int
4061 main (void)
4062 {
4063
4064 ;
4065 return 0;
4066 }
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"
4069 then :
4070 ac_cv_prog_cc_g=yes
4071 fi
4072 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4073 esac
4074 fi
4075 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4076 esac
4077 fi
4078 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4079 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4080 esac
4081 fi
4082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4083 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4084 if test $ac_test_CFLAGS; then
4085 CFLAGS=$ac_save_CFLAGS
4086 elif test $ac_cv_prog_cc_g = yes; then
4087 if test "$GCC" = yes; then
4088 CFLAGS="-g -O2"
4089 else
4090 CFLAGS="-g"
4091 fi
4092 else
4093 if test "$GCC" = yes; then
4094 CFLAGS="-O2"
4095 else
4096 CFLAGS=
4097 fi
4098 fi
4099 ac_prog_cc_stdc=no
4100 if test x$ac_prog_cc_stdc = xno
4101 then :
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4103 printf %s "checking for $CC option to enable C11 features... " >&6; }
4104 if test ${ac_cv_prog_cc_c11+y}
4105 then :
4106 printf %s "(cached) " >&6
4107 else case e in #(
4108 e) ac_cv_prog_cc_c11=no
4109 ac_save_CC=$CC
4110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4111 /* end confdefs.h. */
4112 $ac_c_conftest_c11_program
4113 _ACEOF
4114 for ac_arg in '' -std=gnu11
4115 do
4116 CC="$ac_save_CC $ac_arg"
4117 if ac_fn_c_try_compile "$LINENO"
4118 then :
4119 ac_cv_prog_cc_c11=$ac_arg
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext conftest.beam
4122 test "x$ac_cv_prog_cc_c11" != "xno" && break
4123 done
4124 rm -f conftest.$ac_ext
4125 CC=$ac_save_CC ;;
4126 esac
4127 fi
4128
4129 if test "x$ac_cv_prog_cc_c11" = xno
4130 then :
4131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4132 printf "%s\n" "unsupported" >&6; }
4133 else case e in #(
4134 e) if test "x$ac_cv_prog_cc_c11" = x
4135 then :
4136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4137 printf "%s\n" "none needed" >&6; }
4138 else case e in #(
4139 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4140 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4141 CC="$CC $ac_cv_prog_cc_c11" ;;
4142 esac
4143 fi
4144 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4145 ac_prog_cc_stdc=c11 ;;
4146 esac
4147 fi
4148 fi
4149 if test x$ac_prog_cc_stdc = xno
4150 then :
4151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4152 printf %s "checking for $CC option to enable C99 features... " >&6; }
4153 if test ${ac_cv_prog_cc_c99+y}
4154 then :
4155 printf %s "(cached) " >&6
4156 else case e in #(
4157 e) ac_cv_prog_cc_c99=no
4158 ac_save_CC=$CC
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160 /* end confdefs.h. */
4161 $ac_c_conftest_c99_program
4162 _ACEOF
4163 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4164 do
4165 CC="$ac_save_CC $ac_arg"
4166 if ac_fn_c_try_compile "$LINENO"
4167 then :
4168 ac_cv_prog_cc_c99=$ac_arg
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.beam
4171 test "x$ac_cv_prog_cc_c99" != "xno" && break
4172 done
4173 rm -f conftest.$ac_ext
4174 CC=$ac_save_CC ;;
4175 esac
4176 fi
4177
4178 if test "x$ac_cv_prog_cc_c99" = xno
4179 then :
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4181 printf "%s\n" "unsupported" >&6; }
4182 else case e in #(
4183 e) if test "x$ac_cv_prog_cc_c99" = x
4184 then :
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4186 printf "%s\n" "none needed" >&6; }
4187 else case e in #(
4188 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4189 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4190 CC="$CC $ac_cv_prog_cc_c99" ;;
4191 esac
4192 fi
4193 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4194 ac_prog_cc_stdc=c99 ;;
4195 esac
4196 fi
4197 fi
4198 if test x$ac_prog_cc_stdc = xno
4199 then :
4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4201 printf %s "checking for $CC option to enable C89 features... " >&6; }
4202 if test ${ac_cv_prog_cc_c89+y}
4203 then :
4204 printf %s "(cached) " >&6
4205 else case e in #(
4206 e) ac_cv_prog_cc_c89=no
4207 ac_save_CC=$CC
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210 $ac_c_conftest_c89_program
4211 _ACEOF
4212 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4213 do
4214 CC="$ac_save_CC $ac_arg"
4215 if ac_fn_c_try_compile "$LINENO"
4216 then :
4217 ac_cv_prog_cc_c89=$ac_arg
4218 fi
4219 rm -f core conftest.err conftest.$ac_objext conftest.beam
4220 test "x$ac_cv_prog_cc_c89" != "xno" && break
4221 done
4222 rm -f conftest.$ac_ext
4223 CC=$ac_save_CC ;;
4224 esac
4225 fi
4226
4227 if test "x$ac_cv_prog_cc_c89" = xno
4228 then :
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4230 printf "%s\n" "unsupported" >&6; }
4231 else case e in #(
4232 e) if test "x$ac_cv_prog_cc_c89" = x
4233 then :
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 printf "%s\n" "none needed" >&6; }
4236 else case e in #(
4237 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4238 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4239 CC="$CC $ac_cv_prog_cc_c89" ;;
4240 esac
4241 fi
4242 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4243 ac_prog_cc_stdc=c89 ;;
4244 esac
4245 fi
4246 fi
4247
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253
4254
4255 ac_ext=c
4256 ac_cpp='$CPP $CPPFLAGS'
4257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4261 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4262 if test ${am_cv_prog_cc_c_o+y}
4263 then :
4264 printf %s "(cached) " >&6
4265 else case e in #(
4266 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h. */
4268
4269 int
4270 main (void)
4271 {
4272
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 # Make sure it works both with $CC and with simple cc.
4278 # Following AC_PROG_CC_C_O, we do the test twice because some
4279 # compilers refuse to overwrite an existing .o file with -o,
4280 # though they will create one.
4281 am_cv_prog_cc_c_o=yes
4282 for am_i in 1 2; do
4283 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4284 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); } \
4288 && test -f conftest2.$ac_objext; then
4289 : OK
4290 else
4291 am_cv_prog_cc_c_o=no
4292 break
4293 fi
4294 done
4295 rm -f core conftest*
4296 unset am_i ;;
4297 esac
4298 fi
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4300 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4301 if test "$am_cv_prog_cc_c_o" != yes; then
4302 # Losing compiler, so override with the script.
4303 # FIXME: It is wrong to rewrite CC.
4304 # But if we don't then we get into trouble of one sort or another.
4305 # A longer-term fix would be to have automake use am__CC in this case,
4306 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4307 CC="$am_aux_dir/compile $CC"
4308 fi
4309 ac_ext=c
4310 ac_cpp='$CPP $CPPFLAGS'
4311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4314
4315
4316 depcc="$CC" am_compiler_list=
4317
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4319 printf %s "checking dependency style of $depcc... " >&6; }
4320 if test ${am_cv_CC_dependencies_compiler_type+y}
4321 then :
4322 printf %s "(cached) " >&6
4323 else case e in #(
4324 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4325 # We make a subdir and do the tests there. Otherwise we can end up
4326 # making bogus files that we don't know about and never remove. For
4327 # instance it was reported that on HP-UX the gcc test will end up
4328 # making a dummy file named 'D' -- because '-MD' means "put the output
4329 # in D".
4330 rm -rf conftest.dir
4331 mkdir conftest.dir
4332 # Copy depcomp to subdir because otherwise we won't find it if we're
4333 # using a relative directory.
4334 cp "$am_depcomp" conftest.dir
4335 cd conftest.dir
4336 # We will build objects and dependencies in a subdirectory because
4337 # it helps to detect inapplicable dependency modes. For instance
4338 # both Tru64's cc and ICC support -MD to output dependencies as a
4339 # side effect of compilation, but ICC will put the dependencies in
4340 # the current directory while Tru64 will put them in the object
4341 # directory.
4342 mkdir sub
4343
4344 am_cv_CC_dependencies_compiler_type=none
4345 if test "$am_compiler_list" = ""; then
4346 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4347 fi
4348 am__universal=false
4349 case " $depcc " in #(
4350 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4351 esac
4352
4353 for depmode in $am_compiler_list; do
4354 # Setup a source with many dependencies, because some compilers
4355 # like to wrap large dependency lists on column 80 (with \), and
4356 # we should not choose a depcomp mode which is confused by this.
4357 #
4358 # We need to recreate these files for each test, as the compiler may
4359 # overwrite some of them when testing with obscure command lines.
4360 # This happens at least with the AIX C compiler.
4361 : > sub/conftest.c
4362 for i in 1 2 3 4 5 6; do
4363 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4364 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4365 # Solaris 10 /bin/sh.
4366 echo '/* dummy */' > sub/conftst$i.h
4367 done
4368 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4369
4370 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4371 # mode. It turns out that the SunPro C++ compiler does not properly
4372 # handle '-M -o', and we need to detect this. Also, some Intel
4373 # versions had trouble with output in subdirs.
4374 am__obj=sub/conftest.${OBJEXT-o}
4375 am__minus_obj="-o $am__obj"
4376 case $depmode in
4377 gcc)
4378 # This depmode causes a compiler race in universal mode.
4379 test "$am__universal" = false || continue
4380 ;;
4381 nosideeffect)
4382 # After this tag, mechanisms are not by side-effect, so they'll
4383 # only be used when explicitly requested.
4384 if test "x$enable_dependency_tracking" = xyes; then
4385 continue
4386 else
4387 break
4388 fi
4389 ;;
4390 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4391 # This compiler won't grok '-c -o', but also, the minuso test has
4392 # not run yet. These depmodes are late enough in the game, and
4393 # so weak that their functioning should not be impacted.
4394 am__obj=conftest.${OBJEXT-o}
4395 am__minus_obj=
4396 ;;
4397 none) break ;;
4398 esac
4399 if depmode=$depmode \
4400 source=sub/conftest.c object=$am__obj \
4401 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4402 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4403 >/dev/null 2>conftest.err &&
4404 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4405 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4406 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4407 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4408 # icc doesn't choke on unknown options, it will just issue warnings
4409 # or remarks (even with -Werror). So we grep stderr for any message
4410 # that says an option was ignored or not supported.
4411 # When given -MP, icc 7.0 and 7.1 complain thusly:
4412 # icc: Command line warning: ignoring option '-M'; no argument required
4413 # The diagnosis changed in icc 8.0:
4414 # icc: Command line remark: option '-MP' not supported
4415 if (grep 'ignoring option' conftest.err ||
4416 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4417 am_cv_CC_dependencies_compiler_type=$depmode
4418 break
4419 fi
4420 fi
4421 done
4422
4423 cd ..
4424 rm -rf conftest.dir
4425 else
4426 am_cv_CC_dependencies_compiler_type=none
4427 fi
4428 ;;
4429 esac
4430 fi
4431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4432 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4433 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4434
4435 if
4436 test "x$enable_dependency_tracking" != xno \
4437 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4438 am__fastdepCC_TRUE=
4439 am__fastdepCC_FALSE='#'
4440 else
4441 am__fastdepCC_TRUE='#'
4442 am__fastdepCC_FALSE=
4443 fi
4444
4445
4446
4447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4448 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4449 if test ${ac_cv_c_undeclared_builtin_options+y}
4450 then :
4451 printf %s "(cached) " >&6
4452 else case e in #(
4453 e) ac_save_CFLAGS=$CFLAGS
4454 ac_cv_c_undeclared_builtin_options='cannot detect'
4455 for ac_arg in '' -fno-builtin; do
4456 CFLAGS="$ac_save_CFLAGS $ac_arg"
4457 # This test program should *not* compile successfully.
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4460
4461 int
4462 main (void)
4463 {
4464 (void) strchr;
4465 ;
4466 return 0;
4467 }
4468 _ACEOF
4469 if ac_fn_c_try_compile "$LINENO"
4470 then :
4471
4472 else case e in #(
4473 e) # This test program should compile successfully.
4474 # No library function is consistently available on
4475 # freestanding implementations, so test against a dummy
4476 # declaration. Include always-available headers on the
4477 # off chance that they somehow elicit warnings.
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4480 #include <float.h>
4481 #include <limits.h>
4482 #include <stdarg.h>
4483 #include <stddef.h>
4484 extern void ac_decl (int, char *);
4485
4486 int
4487 main (void)
4488 {
4489 (void) ac_decl (0, (char *) 0);
4490 (void) ac_decl;
4491
4492 ;
4493 return 0;
4494 }
4495 _ACEOF
4496 if ac_fn_c_try_compile "$LINENO"
4497 then :
4498 if test x"$ac_arg" = x
4499 then :
4500 ac_cv_c_undeclared_builtin_options='none needed'
4501 else case e in #(
4502 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
4503 esac
4504 fi
4505 break
4506 fi
4507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4508 esac
4509 fi
4510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4511 done
4512 CFLAGS=$ac_save_CFLAGS
4513 ;;
4514 esac
4515 fi
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4517 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4518 case $ac_cv_c_undeclared_builtin_options in #(
4519 'cannot detect') :
4520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4521 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4522 as_fn_error $? "cannot make $CC report undeclared builtins
4523 See 'config.log' for more details" "$LINENO" 5; } ;; #(
4524 'none needed') :
4525 ac_c_undeclared_builtin_options='' ;; #(
4526 *) :
4527 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4528 esac
4529
4530 ac_header= ac_cache=
4531 for ac_item in $ac_header_c_list
4532 do
4533 if test $ac_cache; then
4534 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4535 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4536 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4537 fi
4538 ac_header= ac_cache=
4539 elif test $ac_header; then
4540 ac_cache=$ac_item
4541 else
4542 ac_header=$ac_item
4543 fi
4544 done
4545
4546
4547
4548
4549
4550
4551
4552
4553 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4554 then :
4555
4556 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4557
4558 fi
4559
4560
4561
4562
4563 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4564 if test "x$ac_cv_have_decl___clang__" = xyes
4565 then :
4566 CLANGCC="yes"
4567 else case e in #(
4568 e) CLANGCC="no" ;;
4569 esac
4570 fi
4571 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4572 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4573 then :
4574 INTELCC="yes"
4575 else case e in #(
4576 e) INTELCC="no" ;;
4577 esac
4578 fi
4579 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4580 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4581 then :
4582 SUNCC="yes"
4583 else case e in #(
4584 e) SUNCC="no" ;;
4585 esac
4586 fi
4587
4588
4589
4590
4591
4592
4593
4594
4595 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4596 if test -n "$ac_tool_prefix"; then
4597 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4598 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4600 printf %s "checking for $ac_word... " >&6; }
4601 if test ${ac_cv_path_PKG_CONFIG+y}
4602 then :
4603 printf %s "(cached) " >&6
4604 else case e in #(
4605 e) case $PKG_CONFIG in
4606 [\\/]* | ?:[\\/]*)
4607 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4608 ;;
4609 *)
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4612 do
4613 IFS=$as_save_IFS
4614 case $as_dir in #(((
4615 '') as_dir=./ ;;
4616 */) ;;
4617 *) as_dir=$as_dir/ ;;
4618 esac
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4621 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4622 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4623 break 2
4624 fi
4625 done
4626 done
4627 IFS=$as_save_IFS
4628
4629 ;;
4630 esac ;;
4631 esac
4632 fi
4633 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4634 if test -n "$PKG_CONFIG"; then
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4636 printf "%s\n" "$PKG_CONFIG" >&6; }
4637 else
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 printf "%s\n" "no" >&6; }
4640 fi
4641
4642
4643 fi
4644 if test -z "$ac_cv_path_PKG_CONFIG"; then
4645 ac_pt_PKG_CONFIG=$PKG_CONFIG
4646 # Extract the first word of "pkg-config", so it can be a program name with args.
4647 set dummy pkg-config; ac_word=$2
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 printf %s "checking for $ac_word... " >&6; }
4650 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4651 then :
4652 printf %s "(cached) " >&6
4653 else case e in #(
4654 e) case $ac_pt_PKG_CONFIG in
4655 [\\/]* | ?:[\\/]*)
4656 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4657 ;;
4658 *)
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4661 do
4662 IFS=$as_save_IFS
4663 case $as_dir in #(((
4664 '') as_dir=./ ;;
4665 */) ;;
4666 *) as_dir=$as_dir/ ;;
4667 esac
4668 for ac_exec_ext in '' $ac_executable_extensions; do
4669 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4670 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4672 break 2
4673 fi
4674 done
4675 done
4676 IFS=$as_save_IFS
4677
4678 ;;
4679 esac ;;
4680 esac
4681 fi
4682 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4683 if test -n "$ac_pt_PKG_CONFIG"; then
4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4685 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4686 else
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 printf "%s\n" "no" >&6; }
4689 fi
4690
4691 if test "x$ac_pt_PKG_CONFIG" = x; then
4692 PKG_CONFIG=""
4693 else
4694 case $cross_compiling:$ac_tool_warned in
4695 yes:)
4696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4697 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4698 ac_tool_warned=yes ;;
4699 esac
4700 PKG_CONFIG=$ac_pt_PKG_CONFIG
4701 fi
4702 else
4703 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4704 fi
4705
4706 fi
4707 if test -n "$PKG_CONFIG"; then
4708 _pkg_min_version=0.9.0
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4710 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4711 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4713 printf "%s\n" "yes" >&6; }
4714 else
4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4716 printf "%s\n" "no" >&6; }
4717 PKG_CONFIG=""
4718 fi
4719 fi
4720
4721
4722 # Make sure we can run config.sub.
4723 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4724 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4725
4726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4727 printf %s "checking build system type... " >&6; }
4728 if test ${ac_cv_build+y}
4729 then :
4730 printf %s "(cached) " >&6
4731 else case e in #(
4732 e) ac_build_alias=$build_alias
4733 test "x$ac_build_alias" = x &&
4734 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4735 test "x$ac_build_alias" = x &&
4736 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4737 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4738 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4739 ;;
4740 esac
4741 fi
4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4743 printf "%s\n" "$ac_cv_build" >&6; }
4744 case $ac_cv_build in
4745 *-*-*) ;;
4746 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4747 esac
4748 build=$ac_cv_build
4749 ac_save_IFS=$IFS; IFS='-'
4750 set x $ac_cv_build
4751 shift
4752 build_cpu=$1
4753 build_vendor=$2
4754 shift; shift
4755 # Remember, the first character of IFS is used to create $*,
4756 # except with old shells:
4757 build_os=$*
4758 IFS=$ac_save_IFS
4759 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4760
4761
4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4763 printf %s "checking host system type... " >&6; }
4764 if test ${ac_cv_host+y}
4765 then :
4766 printf %s "(cached) " >&6
4767 else case e in #(
4768 e) if test "x$host_alias" = x; then
4769 ac_cv_host=$ac_cv_build
4770 else
4771 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4772 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4773 fi
4774 ;;
4775 esac
4776 fi
4777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4778 printf "%s\n" "$ac_cv_host" >&6; }
4779 case $ac_cv_host in
4780 *-*-*) ;;
4781 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4782 esac
4783 host=$ac_cv_host
4784 ac_save_IFS=$IFS; IFS='-'
4785 set x $ac_cv_host
4786 shift
4787 host_cpu=$1
4788 host_vendor=$2
4789 shift; shift
4790 # Remember, the first character of IFS is used to create $*,
4791 # except with old shells:
4792 host_os=$*
4793 IFS=$ac_save_IFS
4794 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4795
4796
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4798 printf %s "checking for a sed that does not truncate output... " >&6; }
4799 if test ${ac_cv_path_SED+y}
4800 then :
4801 printf %s "(cached) " >&6
4802 else case e in #(
4803 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4804 for ac_i in 1 2 3 4 5 6 7; do
4805 ac_script="$ac_script$as_nl$ac_script"
4806 done
4807 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4808 { ac_script=; unset ac_script;}
4809 if test -z "$SED"; then
4810 ac_path_SED_found=false
4811 # Loop through the user's path and test for each of PROGNAME-LIST
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815 IFS=$as_save_IFS
4816 case $as_dir in #(((
4817 '') as_dir=./ ;;
4818 */) ;;
4819 *) as_dir=$as_dir/ ;;
4820 esac
4821 for ac_prog in sed gsed
4822 do
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4825 as_fn_executable_p "$ac_path_SED" || continue
4826 # Check for GNU ac_path_SED and select it if it is found.
4827 # Check for GNU $ac_path_SED
4828 case `"$ac_path_SED" --version 2>&1` in #(
4829 *GNU*)
4830 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4831 #(
4832 *)
4833 ac_count=0
4834 printf %s 0123456789 >"conftest.in"
4835 while :
4836 do
4837 cat "conftest.in" "conftest.in" >"conftest.tmp"
4838 mv "conftest.tmp" "conftest.in"
4839 cp "conftest.in" "conftest.nl"
4840 printf "%s\n" '' >> "conftest.nl"
4841 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4843 as_fn_arith $ac_count + 1 && ac_count=$as_val
4844 if test $ac_count -gt ${ac_path_SED_max-0}; then
4845 # Best one so far, save it but keep looking for a better one
4846 ac_cv_path_SED="$ac_path_SED"
4847 ac_path_SED_max=$ac_count
4848 fi
4849 # 10*(2^10) chars as input seems more than enough
4850 test $ac_count -gt 10 && break
4851 done
4852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4853 esac
4854
4855 $ac_path_SED_found && break 3
4856 done
4857 done
4858 done
4859 IFS=$as_save_IFS
4860 if test -z "$ac_cv_path_SED"; then
4861 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4862 fi
4863 else
4864 ac_cv_path_SED=$SED
4865 fi
4866 ;;
4867 esac
4868 fi
4869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4870 printf "%s\n" "$ac_cv_path_SED" >&6; }
4871 SED="$ac_cv_path_SED"
4872 rm -f conftest.sed
4873
4874
4875
4876
4877
4878
4879 # Check whether --enable-selective-werror was given.
4880 if test ${enable_selective_werror+y}
4881 then :
4882 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4883 else case e in #(
4884 e) SELECTIVE_WERROR=yes ;;
4885 esac
4886 fi
4887
4888
4889
4890
4891
4892 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4893 if test "x$SUNCC" = "xyes"; then
4894 BASE_CFLAGS="-v"
4895 else
4896 BASE_CFLAGS=""
4897 fi
4898
4899 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913 xorg_testset_save_CFLAGS="$CFLAGS"
4914
4915 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4916 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4918 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4919 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4920 then :
4921 printf %s "(cached) " >&6
4922 else case e in #(
4923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4925 int i;
4926 _ACEOF
4927 if ac_fn_c_try_compile "$LINENO"
4928 then :
4929 xorg_cv_cc_flag_unknown_warning_option=yes
4930 else case e in #(
4931 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
4932 esac
4933 fi
4934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4935 esac
4936 fi
4937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4938 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4939 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4940 CFLAGS="$xorg_testset_save_CFLAGS"
4941 fi
4942
4943 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4944 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4946 fi
4947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4949 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4950 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4951 then :
4952 printf %s "(cached) " >&6
4953 else case e in #(
4954 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4956 int i;
4957 _ACEOF
4958 if ac_fn_c_try_compile "$LINENO"
4959 then :
4960 xorg_cv_cc_flag_unused_command_line_argument=yes
4961 else case e in #(
4962 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
4963 esac
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4966 esac
4967 fi
4968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4969 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4971 CFLAGS="$xorg_testset_save_CFLAGS"
4972 fi
4973
4974 found="no"
4975
4976 if test $found = "no" ; then
4977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4979 fi
4980
4981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4983 fi
4984
4985 CFLAGS="$CFLAGS -Wall"
4986
4987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4988 printf %s "checking if $CC supports -Wall... " >&6; }
4989 cacheid=xorg_cv_cc_flag__Wall
4990 if eval test \${$cacheid+y}
4991 then :
4992 printf %s "(cached) " >&6
4993 else case e in #(
4994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4996 int i;
4997 int
4998 main (void)
4999 {
5000
5001 ;
5002 return 0;
5003 }
5004 _ACEOF
5005 if ac_fn_c_try_link "$LINENO"
5006 then :
5007 eval $cacheid=yes
5008 else case e in #(
5009 e) eval $cacheid=no ;;
5010 esac
5011 fi
5012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5013 conftest$ac_exeext conftest.$ac_ext ;;
5014 esac
5015 fi
5016
5017
5018 CFLAGS="$xorg_testset_save_CFLAGS"
5019
5020 eval supported=\$$cacheid
5021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5022 printf "%s\n" "$supported" >&6; }
5023 if test "$supported" = "yes" ; then
5024 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5025 found="yes"
5026 fi
5027 fi
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043 xorg_testset_save_CFLAGS="$CFLAGS"
5044
5045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5048 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5049 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5050 then :
5051 printf %s "(cached) " >&6
5052 else case e in #(
5053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5054 /* end confdefs.h. */
5055 int i;
5056 _ACEOF
5057 if ac_fn_c_try_compile "$LINENO"
5058 then :
5059 xorg_cv_cc_flag_unknown_warning_option=yes
5060 else case e in #(
5061 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5062 esac
5063 fi
5064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5065 esac
5066 fi
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5068 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5070 CFLAGS="$xorg_testset_save_CFLAGS"
5071 fi
5072
5073 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5076 fi
5077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5079 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5080 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5081 then :
5082 printf %s "(cached) " >&6
5083 else case e in #(
5084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5086 int i;
5087 _ACEOF
5088 if ac_fn_c_try_compile "$LINENO"
5089 then :
5090 xorg_cv_cc_flag_unused_command_line_argument=yes
5091 else case e in #(
5092 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5093 esac
5094 fi
5095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5096 esac
5097 fi
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5099 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5101 CFLAGS="$xorg_testset_save_CFLAGS"
5102 fi
5103
5104 found="no"
5105
5106 if test $found = "no" ; then
5107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5109 fi
5110
5111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5113 fi
5114
5115 CFLAGS="$CFLAGS -Wpointer-arith"
5116
5117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5118 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5119 cacheid=xorg_cv_cc_flag__Wpointer_arith
5120 if eval test \${$cacheid+y}
5121 then :
5122 printf %s "(cached) " >&6
5123 else case e in #(
5124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5126 int i;
5127 int
5128 main (void)
5129 {
5130
5131 ;
5132 return 0;
5133 }
5134 _ACEOF
5135 if ac_fn_c_try_link "$LINENO"
5136 then :
5137 eval $cacheid=yes
5138 else case e in #(
5139 e) eval $cacheid=no ;;
5140 esac
5141 fi
5142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5143 conftest$ac_exeext conftest.$ac_ext ;;
5144 esac
5145 fi
5146
5147
5148 CFLAGS="$xorg_testset_save_CFLAGS"
5149
5150 eval supported=\$$cacheid
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5152 printf "%s\n" "$supported" >&6; }
5153 if test "$supported" = "yes" ; then
5154 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5155 found="yes"
5156 fi
5157 fi
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173 xorg_testset_save_CFLAGS="$CFLAGS"
5174
5175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5178 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5179 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5180 then :
5181 printf %s "(cached) " >&6
5182 else case e in #(
5183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185 int i;
5186 _ACEOF
5187 if ac_fn_c_try_compile "$LINENO"
5188 then :
5189 xorg_cv_cc_flag_unknown_warning_option=yes
5190 else case e in #(
5191 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5192 esac
5193 fi
5194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5195 esac
5196 fi
5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5198 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5200 CFLAGS="$xorg_testset_save_CFLAGS"
5201 fi
5202
5203 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5206 fi
5207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5209 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5210 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5211 then :
5212 printf %s "(cached) " >&6
5213 else case e in #(
5214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215 /* end confdefs.h. */
5216 int i;
5217 _ACEOF
5218 if ac_fn_c_try_compile "$LINENO"
5219 then :
5220 xorg_cv_cc_flag_unused_command_line_argument=yes
5221 else case e in #(
5222 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5223 esac
5224 fi
5225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5226 esac
5227 fi
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5229 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5231 CFLAGS="$xorg_testset_save_CFLAGS"
5232 fi
5233
5234 found="no"
5235
5236 if test $found = "no" ; then
5237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5239 fi
5240
5241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5243 fi
5244
5245 CFLAGS="$CFLAGS -Wmissing-declarations"
5246
5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5248 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5249 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5250 if eval test \${$cacheid+y}
5251 then :
5252 printf %s "(cached) " >&6
5253 else case e in #(
5254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5255 /* end confdefs.h. */
5256 int i;
5257 int
5258 main (void)
5259 {
5260
5261 ;
5262 return 0;
5263 }
5264 _ACEOF
5265 if ac_fn_c_try_link "$LINENO"
5266 then :
5267 eval $cacheid=yes
5268 else case e in #(
5269 e) eval $cacheid=no ;;
5270 esac
5271 fi
5272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5273 conftest$ac_exeext conftest.$ac_ext ;;
5274 esac
5275 fi
5276
5277
5278 CFLAGS="$xorg_testset_save_CFLAGS"
5279
5280 eval supported=\$$cacheid
5281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5282 printf "%s\n" "$supported" >&6; }
5283 if test "$supported" = "yes" ; then
5284 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5285 found="yes"
5286 fi
5287 fi
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303 xorg_testset_save_CFLAGS="$CFLAGS"
5304
5305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5308 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5309 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5310 then :
5311 printf %s "(cached) " >&6
5312 else case e in #(
5313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5315 int i;
5316 _ACEOF
5317 if ac_fn_c_try_compile "$LINENO"
5318 then :
5319 xorg_cv_cc_flag_unknown_warning_option=yes
5320 else case e in #(
5321 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5322 esac
5323 fi
5324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5325 esac
5326 fi
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5328 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5330 CFLAGS="$xorg_testset_save_CFLAGS"
5331 fi
5332
5333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5336 fi
5337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5339 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5340 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5341 then :
5342 printf %s "(cached) " >&6
5343 else case e in #(
5344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 int i;
5347 _ACEOF
5348 if ac_fn_c_try_compile "$LINENO"
5349 then :
5350 xorg_cv_cc_flag_unused_command_line_argument=yes
5351 else case e in #(
5352 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5353 esac
5354 fi
5355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5356 esac
5357 fi
5358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5359 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5361 CFLAGS="$xorg_testset_save_CFLAGS"
5362 fi
5363
5364 found="no"
5365
5366 if test $found = "no" ; then
5367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5369 fi
5370
5371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5373 fi
5374
5375 CFLAGS="$CFLAGS -Wformat=2"
5376
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5378 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5379 cacheid=xorg_cv_cc_flag__Wformat_2
5380 if eval test \${$cacheid+y}
5381 then :
5382 printf %s "(cached) " >&6
5383 else case e in #(
5384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385 /* end confdefs.h. */
5386 int i;
5387 int
5388 main (void)
5389 {
5390
5391 ;
5392 return 0;
5393 }
5394 _ACEOF
5395 if ac_fn_c_try_link "$LINENO"
5396 then :
5397 eval $cacheid=yes
5398 else case e in #(
5399 e) eval $cacheid=no ;;
5400 esac
5401 fi
5402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5403 conftest$ac_exeext conftest.$ac_ext ;;
5404 esac
5405 fi
5406
5407
5408 CFLAGS="$xorg_testset_save_CFLAGS"
5409
5410 eval supported=\$$cacheid
5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5412 printf "%s\n" "$supported" >&6; }
5413 if test "$supported" = "yes" ; then
5414 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5415 found="yes"
5416 fi
5417 fi
5418
5419 if test $found = "no" ; then
5420 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5422 fi
5423
5424 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5425 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5426 fi
5427
5428 CFLAGS="$CFLAGS -Wformat"
5429
5430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5431 printf %s "checking if $CC supports -Wformat... " >&6; }
5432 cacheid=xorg_cv_cc_flag__Wformat
5433 if eval test \${$cacheid+y}
5434 then :
5435 printf %s "(cached) " >&6
5436 else case e in #(
5437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438 /* end confdefs.h. */
5439 int i;
5440 int
5441 main (void)
5442 {
5443
5444 ;
5445 return 0;
5446 }
5447 _ACEOF
5448 if ac_fn_c_try_link "$LINENO"
5449 then :
5450 eval $cacheid=yes
5451 else case e in #(
5452 e) eval $cacheid=no ;;
5453 esac
5454 fi
5455 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5456 conftest$ac_exeext conftest.$ac_ext ;;
5457 esac
5458 fi
5459
5460
5461 CFLAGS="$xorg_testset_save_CFLAGS"
5462
5463 eval supported=\$$cacheid
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5465 printf "%s\n" "$supported" >&6; }
5466 if test "$supported" = "yes" ; then
5467 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5468 found="yes"
5469 fi
5470 fi
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488 xorg_testset_save_CFLAGS="$CFLAGS"
5489
5490 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5493 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5494 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5495 then :
5496 printf %s "(cached) " >&6
5497 else case e in #(
5498 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 int i;
5501 _ACEOF
5502 if ac_fn_c_try_compile "$LINENO"
5503 then :
5504 xorg_cv_cc_flag_unknown_warning_option=yes
5505 else case e in #(
5506 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5507 esac
5508 fi
5509 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5510 esac
5511 fi
5512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5513 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5515 CFLAGS="$xorg_testset_save_CFLAGS"
5516 fi
5517
5518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5521 fi
5522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5524 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5525 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5526 then :
5527 printf %s "(cached) " >&6
5528 else case e in #(
5529 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531 int i;
5532 _ACEOF
5533 if ac_fn_c_try_compile "$LINENO"
5534 then :
5535 xorg_cv_cc_flag_unused_command_line_argument=yes
5536 else case e in #(
5537 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5538 esac
5539 fi
5540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5541 esac
5542 fi
5543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5544 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5545 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5546 CFLAGS="$xorg_testset_save_CFLAGS"
5547 fi
5548
5549 found="no"
5550
5551 if test $found = "no" ; then
5552 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5553 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5554 fi
5555
5556 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5558 fi
5559
5560 CFLAGS="$CFLAGS -Wstrict-prototypes"
5561
5562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5563 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5564 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5565 if eval test \${$cacheid+y}
5566 then :
5567 printf %s "(cached) " >&6
5568 else case e in #(
5569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570 /* end confdefs.h. */
5571 int i;
5572 int
5573 main (void)
5574 {
5575
5576 ;
5577 return 0;
5578 }
5579 _ACEOF
5580 if ac_fn_c_try_link "$LINENO"
5581 then :
5582 eval $cacheid=yes
5583 else case e in #(
5584 e) eval $cacheid=no ;;
5585 esac
5586 fi
5587 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5588 conftest$ac_exeext conftest.$ac_ext ;;
5589 esac
5590 fi
5591
5592
5593 CFLAGS="$xorg_testset_save_CFLAGS"
5594
5595 eval supported=\$$cacheid
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5597 printf "%s\n" "$supported" >&6; }
5598 if test "$supported" = "yes" ; then
5599 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5600 found="yes"
5601 fi
5602 fi
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618 xorg_testset_save_CFLAGS="$CFLAGS"
5619
5620 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5623 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5624 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5625 then :
5626 printf %s "(cached) " >&6
5627 else case e in #(
5628 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5629 /* end confdefs.h. */
5630 int i;
5631 _ACEOF
5632 if ac_fn_c_try_compile "$LINENO"
5633 then :
5634 xorg_cv_cc_flag_unknown_warning_option=yes
5635 else case e in #(
5636 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5637 esac
5638 fi
5639 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5640 esac
5641 fi
5642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5643 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5644 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5645 CFLAGS="$xorg_testset_save_CFLAGS"
5646 fi
5647
5648 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5651 fi
5652 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5654 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5655 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5656 then :
5657 printf %s "(cached) " >&6
5658 else case e in #(
5659 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5661 int i;
5662 _ACEOF
5663 if ac_fn_c_try_compile "$LINENO"
5664 then :
5665 xorg_cv_cc_flag_unused_command_line_argument=yes
5666 else case e in #(
5667 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5668 esac
5669 fi
5670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5671 esac
5672 fi
5673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5674 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5675 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5676 CFLAGS="$xorg_testset_save_CFLAGS"
5677 fi
5678
5679 found="no"
5680
5681 if test $found = "no" ; then
5682 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5683 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5684 fi
5685
5686 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5688 fi
5689
5690 CFLAGS="$CFLAGS -Wmissing-prototypes"
5691
5692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5693 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5694 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5695 if eval test \${$cacheid+y}
5696 then :
5697 printf %s "(cached) " >&6
5698 else case e in #(
5699 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5700 /* end confdefs.h. */
5701 int i;
5702 int
5703 main (void)
5704 {
5705
5706 ;
5707 return 0;
5708 }
5709 _ACEOF
5710 if ac_fn_c_try_link "$LINENO"
5711 then :
5712 eval $cacheid=yes
5713 else case e in #(
5714 e) eval $cacheid=no ;;
5715 esac
5716 fi
5717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5718 conftest$ac_exeext conftest.$ac_ext ;;
5719 esac
5720 fi
5721
5722
5723 CFLAGS="$xorg_testset_save_CFLAGS"
5724
5725 eval supported=\$$cacheid
5726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5727 printf "%s\n" "$supported" >&6; }
5728 if test "$supported" = "yes" ; then
5729 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5730 found="yes"
5731 fi
5732 fi
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748 xorg_testset_save_CFLAGS="$CFLAGS"
5749
5750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5753 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5754 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5755 then :
5756 printf %s "(cached) " >&6
5757 else case e in #(
5758 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5759 /* end confdefs.h. */
5760 int i;
5761 _ACEOF
5762 if ac_fn_c_try_compile "$LINENO"
5763 then :
5764 xorg_cv_cc_flag_unknown_warning_option=yes
5765 else case e in #(
5766 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5767 esac
5768 fi
5769 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5770 esac
5771 fi
5772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5773 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5774 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5775 CFLAGS="$xorg_testset_save_CFLAGS"
5776 fi
5777
5778 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5781 fi
5782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5784 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5785 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5786 then :
5787 printf %s "(cached) " >&6
5788 else case e in #(
5789 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790 /* end confdefs.h. */
5791 int i;
5792 _ACEOF
5793 if ac_fn_c_try_compile "$LINENO"
5794 then :
5795 xorg_cv_cc_flag_unused_command_line_argument=yes
5796 else case e in #(
5797 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5798 esac
5799 fi
5800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5801 esac
5802 fi
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5804 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5806 CFLAGS="$xorg_testset_save_CFLAGS"
5807 fi
5808
5809 found="no"
5810
5811 if test $found = "no" ; then
5812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5814 fi
5815
5816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5818 fi
5819
5820 CFLAGS="$CFLAGS -Wnested-externs"
5821
5822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5823 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5824 cacheid=xorg_cv_cc_flag__Wnested_externs
5825 if eval test \${$cacheid+y}
5826 then :
5827 printf %s "(cached) " >&6
5828 else case e in #(
5829 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5831 int i;
5832 int
5833 main (void)
5834 {
5835
5836 ;
5837 return 0;
5838 }
5839 _ACEOF
5840 if ac_fn_c_try_link "$LINENO"
5841 then :
5842 eval $cacheid=yes
5843 else case e in #(
5844 e) eval $cacheid=no ;;
5845 esac
5846 fi
5847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5848 conftest$ac_exeext conftest.$ac_ext ;;
5849 esac
5850 fi
5851
5852
5853 CFLAGS="$xorg_testset_save_CFLAGS"
5854
5855 eval supported=\$$cacheid
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5857 printf "%s\n" "$supported" >&6; }
5858 if test "$supported" = "yes" ; then
5859 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5860 found="yes"
5861 fi
5862 fi
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878 xorg_testset_save_CFLAGS="$CFLAGS"
5879
5880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5884 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5885 then :
5886 printf %s "(cached) " >&6
5887 else case e in #(
5888 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5889 /* end confdefs.h. */
5890 int i;
5891 _ACEOF
5892 if ac_fn_c_try_compile "$LINENO"
5893 then :
5894 xorg_cv_cc_flag_unknown_warning_option=yes
5895 else case e in #(
5896 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5897 esac
5898 fi
5899 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5900 esac
5901 fi
5902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5903 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5905 CFLAGS="$xorg_testset_save_CFLAGS"
5906 fi
5907
5908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5911 fi
5912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5914 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5915 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5916 then :
5917 printf %s "(cached) " >&6
5918 else case e in #(
5919 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5921 int i;
5922 _ACEOF
5923 if ac_fn_c_try_compile "$LINENO"
5924 then :
5925 xorg_cv_cc_flag_unused_command_line_argument=yes
5926 else case e in #(
5927 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5928 esac
5929 fi
5930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5931 esac
5932 fi
5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5934 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5936 CFLAGS="$xorg_testset_save_CFLAGS"
5937 fi
5938
5939 found="no"
5940
5941 if test $found = "no" ; then
5942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5944 fi
5945
5946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5948 fi
5949
5950 CFLAGS="$CFLAGS -Wbad-function-cast"
5951
5952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5953 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5954 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5955 if eval test \${$cacheid+y}
5956 then :
5957 printf %s "(cached) " >&6
5958 else case e in #(
5959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5960 /* end confdefs.h. */
5961 int i;
5962 int
5963 main (void)
5964 {
5965
5966 ;
5967 return 0;
5968 }
5969 _ACEOF
5970 if ac_fn_c_try_link "$LINENO"
5971 then :
5972 eval $cacheid=yes
5973 else case e in #(
5974 e) eval $cacheid=no ;;
5975 esac
5976 fi
5977 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5978 conftest$ac_exeext conftest.$ac_ext ;;
5979 esac
5980 fi
5981
5982
5983 CFLAGS="$xorg_testset_save_CFLAGS"
5984
5985 eval supported=\$$cacheid
5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5987 printf "%s\n" "$supported" >&6; }
5988 if test "$supported" = "yes" ; then
5989 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5990 found="yes"
5991 fi
5992 fi
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008 xorg_testset_save_CFLAGS="$CFLAGS"
6009
6010 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6011 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6013 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6014 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6015 then :
6016 printf %s "(cached) " >&6
6017 else case e in #(
6018 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6019 /* end confdefs.h. */
6020 int i;
6021 _ACEOF
6022 if ac_fn_c_try_compile "$LINENO"
6023 then :
6024 xorg_cv_cc_flag_unknown_warning_option=yes
6025 else case e in #(
6026 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6027 esac
6028 fi
6029 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6030 esac
6031 fi
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6033 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6034 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6035 CFLAGS="$xorg_testset_save_CFLAGS"
6036 fi
6037
6038 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6041 fi
6042 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6044 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6045 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6046 then :
6047 printf %s "(cached) " >&6
6048 else case e in #(
6049 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 int i;
6052 _ACEOF
6053 if ac_fn_c_try_compile "$LINENO"
6054 then :
6055 xorg_cv_cc_flag_unused_command_line_argument=yes
6056 else case e in #(
6057 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6058 esac
6059 fi
6060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6061 esac
6062 fi
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6064 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6066 CFLAGS="$xorg_testset_save_CFLAGS"
6067 fi
6068
6069 found="no"
6070
6071 if test $found = "no" ; then
6072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6074 fi
6075
6076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6078 fi
6079
6080 CFLAGS="$CFLAGS -Wold-style-definition"
6081
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6083 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6084 cacheid=xorg_cv_cc_flag__Wold_style_definition
6085 if eval test \${$cacheid+y}
6086 then :
6087 printf %s "(cached) " >&6
6088 else case e in #(
6089 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6090 /* end confdefs.h. */
6091 int i;
6092 int
6093 main (void)
6094 {
6095
6096 ;
6097 return 0;
6098 }
6099 _ACEOF
6100 if ac_fn_c_try_link "$LINENO"
6101 then :
6102 eval $cacheid=yes
6103 else case e in #(
6104 e) eval $cacheid=no ;;
6105 esac
6106 fi
6107 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6108 conftest$ac_exeext conftest.$ac_ext ;;
6109 esac
6110 fi
6111
6112
6113 CFLAGS="$xorg_testset_save_CFLAGS"
6114
6115 eval supported=\$$cacheid
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6117 printf "%s\n" "$supported" >&6; }
6118 if test "$supported" = "yes" ; then
6119 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6120 found="yes"
6121 fi
6122 fi
6123
6124 if test $found = "no" ; then
6125 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6126 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6127 fi
6128
6129 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6130 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6131 fi
6132
6133 CFLAGS="$CFLAGS -fd"
6134
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6136 printf %s "checking if $CC supports -fd... " >&6; }
6137 cacheid=xorg_cv_cc_flag__fd
6138 if eval test \${$cacheid+y}
6139 then :
6140 printf %s "(cached) " >&6
6141 else case e in #(
6142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6144 int i;
6145 int
6146 main (void)
6147 {
6148
6149 ;
6150 return 0;
6151 }
6152 _ACEOF
6153 if ac_fn_c_try_link "$LINENO"
6154 then :
6155 eval $cacheid=yes
6156 else case e in #(
6157 e) eval $cacheid=no ;;
6158 esac
6159 fi
6160 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6161 conftest$ac_exeext conftest.$ac_ext ;;
6162 esac
6163 fi
6164
6165
6166 CFLAGS="$xorg_testset_save_CFLAGS"
6167
6168 eval supported=\$$cacheid
6169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6170 printf "%s\n" "$supported" >&6; }
6171 if test "$supported" = "yes" ; then
6172 BASE_CFLAGS="$BASE_CFLAGS -fd"
6173 found="yes"
6174 fi
6175 fi
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191 xorg_testset_save_CFLAGS="$CFLAGS"
6192
6193 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6194 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6196 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6197 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6198 then :
6199 printf %s "(cached) " >&6
6200 else case e in #(
6201 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202 /* end confdefs.h. */
6203 int i;
6204 _ACEOF
6205 if ac_fn_c_try_compile "$LINENO"
6206 then :
6207 xorg_cv_cc_flag_unknown_warning_option=yes
6208 else case e in #(
6209 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6210 esac
6211 fi
6212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6213 esac
6214 fi
6215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6216 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6218 CFLAGS="$xorg_testset_save_CFLAGS"
6219 fi
6220
6221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6224 fi
6225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6227 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6228 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
6236 if ac_fn_c_try_compile "$LINENO"
6237 then :
6238 xorg_cv_cc_flag_unused_command_line_argument=yes
6239 else case e in #(
6240 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6241 esac
6242 fi
6243 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6244 esac
6245 fi
6246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6247 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6248 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6249 CFLAGS="$xorg_testset_save_CFLAGS"
6250 fi
6251
6252 found="no"
6253
6254 if test $found = "no" ; then
6255 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6256 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6257 fi
6258
6259 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6260 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6261 fi
6262
6263 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6264
6265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6266 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6267 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6268 if eval test \${$cacheid+y}
6269 then :
6270 printf %s "(cached) " >&6
6271 else case e in #(
6272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 int i;
6275 int
6276 main (void)
6277 {
6278
6279 ;
6280 return 0;
6281 }
6282 _ACEOF
6283 if ac_fn_c_try_link "$LINENO"
6284 then :
6285 eval $cacheid=yes
6286 else case e in #(
6287 e) eval $cacheid=no ;;
6288 esac
6289 fi
6290 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6291 conftest$ac_exeext conftest.$ac_ext ;;
6292 esac
6293 fi
6294
6295
6296 CFLAGS="$xorg_testset_save_CFLAGS"
6297
6298 eval supported=\$$cacheid
6299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6300 printf "%s\n" "$supported" >&6; }
6301 if test "$supported" = "yes" ; then
6302 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6303 found="yes"
6304 fi
6305 fi
6306
6307
6308
6309
6310
6311 # This chunk adds additional warnings that could catch undesired effects.
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325 xorg_testset_save_CFLAGS="$CFLAGS"
6326
6327 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6330 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6331 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6332 then :
6333 printf %s "(cached) " >&6
6334 else case e in #(
6335 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6337 int i;
6338 _ACEOF
6339 if ac_fn_c_try_compile "$LINENO"
6340 then :
6341 xorg_cv_cc_flag_unknown_warning_option=yes
6342 else case e in #(
6343 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6344 esac
6345 fi
6346 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6347 esac
6348 fi
6349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6350 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6352 CFLAGS="$xorg_testset_save_CFLAGS"
6353 fi
6354
6355 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6358 fi
6359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6361 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6362 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6363 then :
6364 printf %s "(cached) " >&6
6365 else case e in #(
6366 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6367 /* end confdefs.h. */
6368 int i;
6369 _ACEOF
6370 if ac_fn_c_try_compile "$LINENO"
6371 then :
6372 xorg_cv_cc_flag_unused_command_line_argument=yes
6373 else case e in #(
6374 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6375 esac
6376 fi
6377 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6378 esac
6379 fi
6380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6381 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6382 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6383 CFLAGS="$xorg_testset_save_CFLAGS"
6384 fi
6385
6386 found="no"
6387
6388 if test $found = "no" ; then
6389 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6390 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6391 fi
6392
6393 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6395 fi
6396
6397 CFLAGS="$CFLAGS -Wunused"
6398
6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6400 printf %s "checking if $CC supports -Wunused... " >&6; }
6401 cacheid=xorg_cv_cc_flag__Wunused
6402 if eval test \${$cacheid+y}
6403 then :
6404 printf %s "(cached) " >&6
6405 else case e in #(
6406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h. */
6408 int i;
6409 int
6410 main (void)
6411 {
6412
6413 ;
6414 return 0;
6415 }
6416 _ACEOF
6417 if ac_fn_c_try_link "$LINENO"
6418 then :
6419 eval $cacheid=yes
6420 else case e in #(
6421 e) eval $cacheid=no ;;
6422 esac
6423 fi
6424 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6425 conftest$ac_exeext conftest.$ac_ext ;;
6426 esac
6427 fi
6428
6429
6430 CFLAGS="$xorg_testset_save_CFLAGS"
6431
6432 eval supported=\$$cacheid
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6434 printf "%s\n" "$supported" >&6; }
6435 if test "$supported" = "yes" ; then
6436 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6437 found="yes"
6438 fi
6439 fi
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455 xorg_testset_save_CFLAGS="$CFLAGS"
6456
6457 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6460 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6461 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6462 then :
6463 printf %s "(cached) " >&6
6464 else case e in #(
6465 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6466 /* end confdefs.h. */
6467 int i;
6468 _ACEOF
6469 if ac_fn_c_try_compile "$LINENO"
6470 then :
6471 xorg_cv_cc_flag_unknown_warning_option=yes
6472 else case e in #(
6473 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6474 esac
6475 fi
6476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6477 esac
6478 fi
6479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6480 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6481 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6482 CFLAGS="$xorg_testset_save_CFLAGS"
6483 fi
6484
6485 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6486 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6488 fi
6489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6491 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6492 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6493 then :
6494 printf %s "(cached) " >&6
6495 else case e in #(
6496 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6498 int i;
6499 _ACEOF
6500 if ac_fn_c_try_compile "$LINENO"
6501 then :
6502 xorg_cv_cc_flag_unused_command_line_argument=yes
6503 else case e in #(
6504 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6505 esac
6506 fi
6507 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6508 esac
6509 fi
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6511 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6513 CFLAGS="$xorg_testset_save_CFLAGS"
6514 fi
6515
6516 found="no"
6517
6518 if test $found = "no" ; then
6519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6521 fi
6522
6523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6525 fi
6526
6527 CFLAGS="$CFLAGS -Wuninitialized"
6528
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6530 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6531 cacheid=xorg_cv_cc_flag__Wuninitialized
6532 if eval test \${$cacheid+y}
6533 then :
6534 printf %s "(cached) " >&6
6535 else case e in #(
6536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538 int i;
6539 int
6540 main (void)
6541 {
6542
6543 ;
6544 return 0;
6545 }
6546 _ACEOF
6547 if ac_fn_c_try_link "$LINENO"
6548 then :
6549 eval $cacheid=yes
6550 else case e in #(
6551 e) eval $cacheid=no ;;
6552 esac
6553 fi
6554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6555 conftest$ac_exeext conftest.$ac_ext ;;
6556 esac
6557 fi
6558
6559
6560 CFLAGS="$xorg_testset_save_CFLAGS"
6561
6562 eval supported=\$$cacheid
6563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6564 printf "%s\n" "$supported" >&6; }
6565 if test "$supported" = "yes" ; then
6566 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6567 found="yes"
6568 fi
6569 fi
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585 xorg_testset_save_CFLAGS="$CFLAGS"
6586
6587 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6590 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6591 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6592 then :
6593 printf %s "(cached) " >&6
6594 else case e in #(
6595 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6597 int i;
6598 _ACEOF
6599 if ac_fn_c_try_compile "$LINENO"
6600 then :
6601 xorg_cv_cc_flag_unknown_warning_option=yes
6602 else case e in #(
6603 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6604 esac
6605 fi
6606 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6607 esac
6608 fi
6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6610 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6611 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6612 CFLAGS="$xorg_testset_save_CFLAGS"
6613 fi
6614
6615 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6616 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6618 fi
6619 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6621 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6622 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6623 then :
6624 printf %s "(cached) " >&6
6625 else case e in #(
6626 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6627 /* end confdefs.h. */
6628 int i;
6629 _ACEOF
6630 if ac_fn_c_try_compile "$LINENO"
6631 then :
6632 xorg_cv_cc_flag_unused_command_line_argument=yes
6633 else case e in #(
6634 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6635 esac
6636 fi
6637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6638 esac
6639 fi
6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6641 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6643 CFLAGS="$xorg_testset_save_CFLAGS"
6644 fi
6645
6646 found="no"
6647
6648 if test $found = "no" ; then
6649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6651 fi
6652
6653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6655 fi
6656
6657 CFLAGS="$CFLAGS -Wshadow"
6658
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6660 printf %s "checking if $CC supports -Wshadow... " >&6; }
6661 cacheid=xorg_cv_cc_flag__Wshadow
6662 if eval test \${$cacheid+y}
6663 then :
6664 printf %s "(cached) " >&6
6665 else case e in #(
6666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6667 /* end confdefs.h. */
6668 int i;
6669 int
6670 main (void)
6671 {
6672
6673 ;
6674 return 0;
6675 }
6676 _ACEOF
6677 if ac_fn_c_try_link "$LINENO"
6678 then :
6679 eval $cacheid=yes
6680 else case e in #(
6681 e) eval $cacheid=no ;;
6682 esac
6683 fi
6684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6685 conftest$ac_exeext conftest.$ac_ext ;;
6686 esac
6687 fi
6688
6689
6690 CFLAGS="$xorg_testset_save_CFLAGS"
6691
6692 eval supported=\$$cacheid
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6694 printf "%s\n" "$supported" >&6; }
6695 if test "$supported" = "yes" ; then
6696 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6697 found="yes"
6698 fi
6699 fi
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715 xorg_testset_save_CFLAGS="$CFLAGS"
6716
6717 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6720 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6721 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6722 then :
6723 printf %s "(cached) " >&6
6724 else case e in #(
6725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6727 int i;
6728 _ACEOF
6729 if ac_fn_c_try_compile "$LINENO"
6730 then :
6731 xorg_cv_cc_flag_unknown_warning_option=yes
6732 else case e in #(
6733 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6734 esac
6735 fi
6736 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6737 esac
6738 fi
6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6740 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6742 CFLAGS="$xorg_testset_save_CFLAGS"
6743 fi
6744
6745 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6748 fi
6749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6751 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6752 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6753 then :
6754 printf %s "(cached) " >&6
6755 else case e in #(
6756 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757 /* end confdefs.h. */
6758 int i;
6759 _ACEOF
6760 if ac_fn_c_try_compile "$LINENO"
6761 then :
6762 xorg_cv_cc_flag_unused_command_line_argument=yes
6763 else case e in #(
6764 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6765 esac
6766 fi
6767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6768 esac
6769 fi
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6771 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6772 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6773 CFLAGS="$xorg_testset_save_CFLAGS"
6774 fi
6775
6776 found="no"
6777
6778 if test $found = "no" ; then
6779 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6781 fi
6782
6783 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6785 fi
6786
6787 CFLAGS="$CFLAGS -Wmissing-noreturn"
6788
6789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6790 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6791 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6792 if eval test \${$cacheid+y}
6793 then :
6794 printf %s "(cached) " >&6
6795 else case e in #(
6796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6798 int i;
6799 int
6800 main (void)
6801 {
6802
6803 ;
6804 return 0;
6805 }
6806 _ACEOF
6807 if ac_fn_c_try_link "$LINENO"
6808 then :
6809 eval $cacheid=yes
6810 else case e in #(
6811 e) eval $cacheid=no ;;
6812 esac
6813 fi
6814 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6815 conftest$ac_exeext conftest.$ac_ext ;;
6816 esac
6817 fi
6818
6819
6820 CFLAGS="$xorg_testset_save_CFLAGS"
6821
6822 eval supported=\$$cacheid
6823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6824 printf "%s\n" "$supported" >&6; }
6825 if test "$supported" = "yes" ; then
6826 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6827 found="yes"
6828 fi
6829 fi
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845 xorg_testset_save_CFLAGS="$CFLAGS"
6846
6847 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6850 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6851 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6852 then :
6853 printf %s "(cached) " >&6
6854 else case e in #(
6855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6857 int i;
6858 _ACEOF
6859 if ac_fn_c_try_compile "$LINENO"
6860 then :
6861 xorg_cv_cc_flag_unknown_warning_option=yes
6862 else case e in #(
6863 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6864 esac
6865 fi
6866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6867 esac
6868 fi
6869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6870 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6871 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6872 CFLAGS="$xorg_testset_save_CFLAGS"
6873 fi
6874
6875 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6876 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6877 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6878 fi
6879 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6881 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6882 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6883 then :
6884 printf %s "(cached) " >&6
6885 else case e in #(
6886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 int i;
6889 _ACEOF
6890 if ac_fn_c_try_compile "$LINENO"
6891 then :
6892 xorg_cv_cc_flag_unused_command_line_argument=yes
6893 else case e in #(
6894 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6895 esac
6896 fi
6897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6898 esac
6899 fi
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6901 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6902 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6903 CFLAGS="$xorg_testset_save_CFLAGS"
6904 fi
6905
6906 found="no"
6907
6908 if test $found = "no" ; then
6909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6911 fi
6912
6913 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6915 fi
6916
6917 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6918
6919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6920 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6921 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6922 if eval test \${$cacheid+y}
6923 then :
6924 printf %s "(cached) " >&6
6925 else case e in #(
6926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6928 int i;
6929 int
6930 main (void)
6931 {
6932
6933 ;
6934 return 0;
6935 }
6936 _ACEOF
6937 if ac_fn_c_try_link "$LINENO"
6938 then :
6939 eval $cacheid=yes
6940 else case e in #(
6941 e) eval $cacheid=no ;;
6942 esac
6943 fi
6944 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6945 conftest$ac_exeext conftest.$ac_ext ;;
6946 esac
6947 fi
6948
6949
6950 CFLAGS="$xorg_testset_save_CFLAGS"
6951
6952 eval supported=\$$cacheid
6953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6954 printf "%s\n" "$supported" >&6; }
6955 if test "$supported" = "yes" ; then
6956 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6957 found="yes"
6958 fi
6959 fi
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975 xorg_testset_save_CFLAGS="$CFLAGS"
6976
6977 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6980 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6981 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6982 then :
6983 printf %s "(cached) " >&6
6984 else case e in #(
6985 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6986 /* end confdefs.h. */
6987 int i;
6988 _ACEOF
6989 if ac_fn_c_try_compile "$LINENO"
6990 then :
6991 xorg_cv_cc_flag_unknown_warning_option=yes
6992 else case e in #(
6993 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6994 esac
6995 fi
6996 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6997 esac
6998 fi
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7000 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7001 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7002 CFLAGS="$xorg_testset_save_CFLAGS"
7003 fi
7004
7005 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7006 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7007 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7008 fi
7009 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7011 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7012 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7013 then :
7014 printf %s "(cached) " >&6
7015 else case e in #(
7016 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* end confdefs.h. */
7018 int i;
7019 _ACEOF
7020 if ac_fn_c_try_compile "$LINENO"
7021 then :
7022 xorg_cv_cc_flag_unused_command_line_argument=yes
7023 else case e in #(
7024 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7025 esac
7026 fi
7027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7028 esac
7029 fi
7030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7031 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7032 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7033 CFLAGS="$xorg_testset_save_CFLAGS"
7034 fi
7035
7036 found="no"
7037
7038 if test $found = "no" ; then
7039 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7040 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7041 fi
7042
7043 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7044 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7045 fi
7046
7047 CFLAGS="$CFLAGS -Wredundant-decls"
7048
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7050 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7051 cacheid=xorg_cv_cc_flag__Wredundant_decls
7052 if eval test \${$cacheid+y}
7053 then :
7054 printf %s "(cached) " >&6
7055 else case e in #(
7056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7058 int i;
7059 int
7060 main (void)
7061 {
7062
7063 ;
7064 return 0;
7065 }
7066 _ACEOF
7067 if ac_fn_c_try_link "$LINENO"
7068 then :
7069 eval $cacheid=yes
7070 else case e in #(
7071 e) eval $cacheid=no ;;
7072 esac
7073 fi
7074 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7075 conftest$ac_exeext conftest.$ac_ext ;;
7076 esac
7077 fi
7078
7079
7080 CFLAGS="$xorg_testset_save_CFLAGS"
7081
7082 eval supported=\$$cacheid
7083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7084 printf "%s\n" "$supported" >&6; }
7085 if test "$supported" = "yes" ; then
7086 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7087 found="yes"
7088 fi
7089 fi
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105 xorg_testset_save_CFLAGS="$CFLAGS"
7106
7107 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7110 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7111 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7112 then :
7113 printf %s "(cached) " >&6
7114 else case e in #(
7115 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h. */
7117 int i;
7118 _ACEOF
7119 if ac_fn_c_try_compile "$LINENO"
7120 then :
7121 xorg_cv_cc_flag_unknown_warning_option=yes
7122 else case e in #(
7123 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7124 esac
7125 fi
7126 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7127 esac
7128 fi
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7130 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7131 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7132 CFLAGS="$xorg_testset_save_CFLAGS"
7133 fi
7134
7135 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7136 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7138 fi
7139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7141 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7142 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7143 then :
7144 printf %s "(cached) " >&6
7145 else case e in #(
7146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7147 /* end confdefs.h. */
7148 int i;
7149 _ACEOF
7150 if ac_fn_c_try_compile "$LINENO"
7151 then :
7152 xorg_cv_cc_flag_unused_command_line_argument=yes
7153 else case e in #(
7154 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7155 esac
7156 fi
7157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7158 esac
7159 fi
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7161 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7162 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7163 CFLAGS="$xorg_testset_save_CFLAGS"
7164 fi
7165
7166 found="no"
7167
7168 if test $found = "no" ; then
7169 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7171 fi
7172
7173 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7175 fi
7176
7177 CFLAGS="$CFLAGS -Wlogical-op"
7178
7179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7180 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7181 cacheid=xorg_cv_cc_flag__Wlogical_op
7182 if eval test \${$cacheid+y}
7183 then :
7184 printf %s "(cached) " >&6
7185 else case e in #(
7186 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7188 int i;
7189 int
7190 main (void)
7191 {
7192
7193 ;
7194 return 0;
7195 }
7196 _ACEOF
7197 if ac_fn_c_try_link "$LINENO"
7198 then :
7199 eval $cacheid=yes
7200 else case e in #(
7201 e) eval $cacheid=no ;;
7202 esac
7203 fi
7204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7205 conftest$ac_exeext conftest.$ac_ext ;;
7206 esac
7207 fi
7208
7209
7210 CFLAGS="$xorg_testset_save_CFLAGS"
7211
7212 eval supported=\$$cacheid
7213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7214 printf "%s\n" "$supported" >&6; }
7215 if test "$supported" = "yes" ; then
7216 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7217 found="yes"
7218 fi
7219 fi
7220
7221
7222
7223 # These are currently disabled because they are noisy. They will be enabled
7224 # in the future once the codebase is sufficiently modernized to silence
7225 # them. For now, I don't want them to drown out the other warnings.
7226 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7227 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7228 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7229
7230 # Turn some warnings into errors, so we don't accidentally get successful builds
7231 # when there are problems that should be fixed.
7232
7233 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247 xorg_testset_save_CFLAGS="$CFLAGS"
7248
7249 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7252 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7253 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7254 then :
7255 printf %s "(cached) " >&6
7256 else case e in #(
7257 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259 int i;
7260 _ACEOF
7261 if ac_fn_c_try_compile "$LINENO"
7262 then :
7263 xorg_cv_cc_flag_unknown_warning_option=yes
7264 else case e in #(
7265 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7266 esac
7267 fi
7268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7269 esac
7270 fi
7271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7272 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7273 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7274 CFLAGS="$xorg_testset_save_CFLAGS"
7275 fi
7276
7277 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7280 fi
7281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7283 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7284 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7285 then :
7286 printf %s "(cached) " >&6
7287 else case e in #(
7288 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7289 /* end confdefs.h. */
7290 int i;
7291 _ACEOF
7292 if ac_fn_c_try_compile "$LINENO"
7293 then :
7294 xorg_cv_cc_flag_unused_command_line_argument=yes
7295 else case e in #(
7296 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7297 esac
7298 fi
7299 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7300 esac
7301 fi
7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7303 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7304 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7305 CFLAGS="$xorg_testset_save_CFLAGS"
7306 fi
7307
7308 found="no"
7309
7310 if test $found = "no" ; then
7311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7313 fi
7314
7315 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7316 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7317 fi
7318
7319 CFLAGS="$CFLAGS -Werror=implicit"
7320
7321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7322 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7323 cacheid=xorg_cv_cc_flag__Werror_implicit
7324 if eval test \${$cacheid+y}
7325 then :
7326 printf %s "(cached) " >&6
7327 else case e in #(
7328 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7329 /* end confdefs.h. */
7330 int i;
7331 int
7332 main (void)
7333 {
7334
7335 ;
7336 return 0;
7337 }
7338 _ACEOF
7339 if ac_fn_c_try_link "$LINENO"
7340 then :
7341 eval $cacheid=yes
7342 else case e in #(
7343 e) eval $cacheid=no ;;
7344 esac
7345 fi
7346 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7347 conftest$ac_exeext conftest.$ac_ext ;;
7348 esac
7349 fi
7350
7351
7352 CFLAGS="$xorg_testset_save_CFLAGS"
7353
7354 eval supported=\$$cacheid
7355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7356 printf "%s\n" "$supported" >&6; }
7357 if test "$supported" = "yes" ; then
7358 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7359 found="yes"
7360 fi
7361 fi
7362
7363 if test $found = "no" ; then
7364 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7366 fi
7367
7368 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7370 fi
7371
7372 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7373
7374 { 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
7375 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7376 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7377 if eval test \${$cacheid+y}
7378 then :
7379 printf %s "(cached) " >&6
7380 else case e in #(
7381 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h. */
7383 int i;
7384 int
7385 main (void)
7386 {
7387
7388 ;
7389 return 0;
7390 }
7391 _ACEOF
7392 if ac_fn_c_try_link "$LINENO"
7393 then :
7394 eval $cacheid=yes
7395 else case e in #(
7396 e) eval $cacheid=no ;;
7397 esac
7398 fi
7399 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7400 conftest$ac_exeext conftest.$ac_ext ;;
7401 esac
7402 fi
7403
7404
7405 CFLAGS="$xorg_testset_save_CFLAGS"
7406
7407 eval supported=\$$cacheid
7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7409 printf "%s\n" "$supported" >&6; }
7410 if test "$supported" = "yes" ; then
7411 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7412 found="yes"
7413 fi
7414 fi
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430 xorg_testset_save_CFLAGS="$CFLAGS"
7431
7432 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7435 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7436 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7437 then :
7438 printf %s "(cached) " >&6
7439 else case e in #(
7440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h. */
7442 int i;
7443 _ACEOF
7444 if ac_fn_c_try_compile "$LINENO"
7445 then :
7446 xorg_cv_cc_flag_unknown_warning_option=yes
7447 else case e in #(
7448 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7449 esac
7450 fi
7451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7452 esac
7453 fi
7454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7455 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7457 CFLAGS="$xorg_testset_save_CFLAGS"
7458 fi
7459
7460 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7463 fi
7464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7466 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7467 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7468 then :
7469 printf %s "(cached) " >&6
7470 else case e in #(
7471 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7473 int i;
7474 _ACEOF
7475 if ac_fn_c_try_compile "$LINENO"
7476 then :
7477 xorg_cv_cc_flag_unused_command_line_argument=yes
7478 else case e in #(
7479 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7480 esac
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7483 esac
7484 fi
7485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7486 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7488 CFLAGS="$xorg_testset_save_CFLAGS"
7489 fi
7490
7491 found="no"
7492
7493 if test $found = "no" ; then
7494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7496 fi
7497
7498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7500 fi
7501
7502 CFLAGS="$CFLAGS -Werror=nonnull"
7503
7504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7505 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7506 cacheid=xorg_cv_cc_flag__Werror_nonnull
7507 if eval test \${$cacheid+y}
7508 then :
7509 printf %s "(cached) " >&6
7510 else case e in #(
7511 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7513 int i;
7514 int
7515 main (void)
7516 {
7517
7518 ;
7519 return 0;
7520 }
7521 _ACEOF
7522 if ac_fn_c_try_link "$LINENO"
7523 then :
7524 eval $cacheid=yes
7525 else case e in #(
7526 e) eval $cacheid=no ;;
7527 esac
7528 fi
7529 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7530 conftest$ac_exeext conftest.$ac_ext ;;
7531 esac
7532 fi
7533
7534
7535 CFLAGS="$xorg_testset_save_CFLAGS"
7536
7537 eval supported=\$$cacheid
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7539 printf "%s\n" "$supported" >&6; }
7540 if test "$supported" = "yes" ; then
7541 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7542 found="yes"
7543 fi
7544 fi
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560 xorg_testset_save_CFLAGS="$CFLAGS"
7561
7562 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7565 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7566 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7567 then :
7568 printf %s "(cached) " >&6
7569 else case e in #(
7570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7572 int i;
7573 _ACEOF
7574 if ac_fn_c_try_compile "$LINENO"
7575 then :
7576 xorg_cv_cc_flag_unknown_warning_option=yes
7577 else case e in #(
7578 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7579 esac
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7582 esac
7583 fi
7584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7585 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7586 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7587 CFLAGS="$xorg_testset_save_CFLAGS"
7588 fi
7589
7590 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7593 fi
7594 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7596 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7597 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7598 then :
7599 printf %s "(cached) " >&6
7600 else case e in #(
7601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7602 /* end confdefs.h. */
7603 int i;
7604 _ACEOF
7605 if ac_fn_c_try_compile "$LINENO"
7606 then :
7607 xorg_cv_cc_flag_unused_command_line_argument=yes
7608 else case e in #(
7609 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7610 esac
7611 fi
7612 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7613 esac
7614 fi
7615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7616 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7618 CFLAGS="$xorg_testset_save_CFLAGS"
7619 fi
7620
7621 found="no"
7622
7623 if test $found = "no" ; then
7624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7626 fi
7627
7628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7630 fi
7631
7632 CFLAGS="$CFLAGS -Werror=init-self"
7633
7634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7635 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7636 cacheid=xorg_cv_cc_flag__Werror_init_self
7637 if eval test \${$cacheid+y}
7638 then :
7639 printf %s "(cached) " >&6
7640 else case e in #(
7641 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7643 int i;
7644 int
7645 main (void)
7646 {
7647
7648 ;
7649 return 0;
7650 }
7651 _ACEOF
7652 if ac_fn_c_try_link "$LINENO"
7653 then :
7654 eval $cacheid=yes
7655 else case e in #(
7656 e) eval $cacheid=no ;;
7657 esac
7658 fi
7659 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7660 conftest$ac_exeext conftest.$ac_ext ;;
7661 esac
7662 fi
7663
7664
7665 CFLAGS="$xorg_testset_save_CFLAGS"
7666
7667 eval supported=\$$cacheid
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7669 printf "%s\n" "$supported" >&6; }
7670 if test "$supported" = "yes" ; then
7671 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7672 found="yes"
7673 fi
7674 fi
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690 xorg_testset_save_CFLAGS="$CFLAGS"
7691
7692 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7695 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7696 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7697 then :
7698 printf %s "(cached) " >&6
7699 else case e in #(
7700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7701 /* end confdefs.h. */
7702 int i;
7703 _ACEOF
7704 if ac_fn_c_try_compile "$LINENO"
7705 then :
7706 xorg_cv_cc_flag_unknown_warning_option=yes
7707 else case e in #(
7708 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7709 esac
7710 fi
7711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7712 esac
7713 fi
7714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7715 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7716 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7717 CFLAGS="$xorg_testset_save_CFLAGS"
7718 fi
7719
7720 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7723 fi
7724 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7726 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7727 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7728 then :
7729 printf %s "(cached) " >&6
7730 else case e in #(
7731 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7733 int i;
7734 _ACEOF
7735 if ac_fn_c_try_compile "$LINENO"
7736 then :
7737 xorg_cv_cc_flag_unused_command_line_argument=yes
7738 else case e in #(
7739 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7740 esac
7741 fi
7742 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7743 esac
7744 fi
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7746 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7747 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7748 CFLAGS="$xorg_testset_save_CFLAGS"
7749 fi
7750
7751 found="no"
7752
7753 if test $found = "no" ; then
7754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7756 fi
7757
7758 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7759 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7760 fi
7761
7762 CFLAGS="$CFLAGS -Werror=main"
7763
7764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7765 printf %s "checking if $CC supports -Werror=main... " >&6; }
7766 cacheid=xorg_cv_cc_flag__Werror_main
7767 if eval test \${$cacheid+y}
7768 then :
7769 printf %s "(cached) " >&6
7770 else case e in #(
7771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772 /* end confdefs.h. */
7773 int i;
7774 int
7775 main (void)
7776 {
7777
7778 ;
7779 return 0;
7780 }
7781 _ACEOF
7782 if ac_fn_c_try_link "$LINENO"
7783 then :
7784 eval $cacheid=yes
7785 else case e in #(
7786 e) eval $cacheid=no ;;
7787 esac
7788 fi
7789 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7790 conftest$ac_exeext conftest.$ac_ext ;;
7791 esac
7792 fi
7793
7794
7795 CFLAGS="$xorg_testset_save_CFLAGS"
7796
7797 eval supported=\$$cacheid
7798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7799 printf "%s\n" "$supported" >&6; }
7800 if test "$supported" = "yes" ; then
7801 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7802 found="yes"
7803 fi
7804 fi
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820 xorg_testset_save_CFLAGS="$CFLAGS"
7821
7822 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7825 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7826 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7827 then :
7828 printf %s "(cached) " >&6
7829 else case e in #(
7830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7832 int i;
7833 _ACEOF
7834 if ac_fn_c_try_compile "$LINENO"
7835 then :
7836 xorg_cv_cc_flag_unknown_warning_option=yes
7837 else case e in #(
7838 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7839 esac
7840 fi
7841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7842 esac
7843 fi
7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7845 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7846 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7847 CFLAGS="$xorg_testset_save_CFLAGS"
7848 fi
7849
7850 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7851 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7852 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7853 fi
7854 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7856 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7857 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
7865 if ac_fn_c_try_compile "$LINENO"
7866 then :
7867 xorg_cv_cc_flag_unused_command_line_argument=yes
7868 else case e in #(
7869 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7870 esac
7871 fi
7872 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7873 esac
7874 fi
7875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7876 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7877 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7878 CFLAGS="$xorg_testset_save_CFLAGS"
7879 fi
7880
7881 found="no"
7882
7883 if test $found = "no" ; then
7884 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7886 fi
7887
7888 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7889 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7890 fi
7891
7892 CFLAGS="$CFLAGS -Werror=missing-braces"
7893
7894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7895 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7896 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7897 if eval test \${$cacheid+y}
7898 then :
7899 printf %s "(cached) " >&6
7900 else case e in #(
7901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7903 int i;
7904 int
7905 main (void)
7906 {
7907
7908 ;
7909 return 0;
7910 }
7911 _ACEOF
7912 if ac_fn_c_try_link "$LINENO"
7913 then :
7914 eval $cacheid=yes
7915 else case e in #(
7916 e) eval $cacheid=no ;;
7917 esac
7918 fi
7919 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7920 conftest$ac_exeext conftest.$ac_ext ;;
7921 esac
7922 fi
7923
7924
7925 CFLAGS="$xorg_testset_save_CFLAGS"
7926
7927 eval supported=\$$cacheid
7928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7929 printf "%s\n" "$supported" >&6; }
7930 if test "$supported" = "yes" ; then
7931 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7932 found="yes"
7933 fi
7934 fi
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950 xorg_testset_save_CFLAGS="$CFLAGS"
7951
7952 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7953 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7955 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7956 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7957 then :
7958 printf %s "(cached) " >&6
7959 else case e in #(
7960 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961 /* end confdefs.h. */
7962 int i;
7963 _ACEOF
7964 if ac_fn_c_try_compile "$LINENO"
7965 then :
7966 xorg_cv_cc_flag_unknown_warning_option=yes
7967 else case e in #(
7968 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7969 esac
7970 fi
7971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7972 esac
7973 fi
7974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7975 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7976 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7977 CFLAGS="$xorg_testset_save_CFLAGS"
7978 fi
7979
7980 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7981 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7982 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7983 fi
7984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7986 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7987 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7988 then :
7989 printf %s "(cached) " >&6
7990 else case e in #(
7991 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7993 int i;
7994 _ACEOF
7995 if ac_fn_c_try_compile "$LINENO"
7996 then :
7997 xorg_cv_cc_flag_unused_command_line_argument=yes
7998 else case e in #(
7999 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8000 esac
8001 fi
8002 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8003 esac
8004 fi
8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8006 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8008 CFLAGS="$xorg_testset_save_CFLAGS"
8009 fi
8010
8011 found="no"
8012
8013 if test $found = "no" ; then
8014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8016 fi
8017
8018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8020 fi
8021
8022 CFLAGS="$CFLAGS -Werror=sequence-point"
8023
8024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8025 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8026 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8027 if eval test \${$cacheid+y}
8028 then :
8029 printf %s "(cached) " >&6
8030 else case e in #(
8031 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8033 int i;
8034 int
8035 main (void)
8036 {
8037
8038 ;
8039 return 0;
8040 }
8041 _ACEOF
8042 if ac_fn_c_try_link "$LINENO"
8043 then :
8044 eval $cacheid=yes
8045 else case e in #(
8046 e) eval $cacheid=no ;;
8047 esac
8048 fi
8049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8050 conftest$ac_exeext conftest.$ac_ext ;;
8051 esac
8052 fi
8053
8054
8055 CFLAGS="$xorg_testset_save_CFLAGS"
8056
8057 eval supported=\$$cacheid
8058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8059 printf "%s\n" "$supported" >&6; }
8060 if test "$supported" = "yes" ; then
8061 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8062 found="yes"
8063 fi
8064 fi
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080 xorg_testset_save_CFLAGS="$CFLAGS"
8081
8082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8085 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8086 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8087 then :
8088 printf %s "(cached) " >&6
8089 else case e in #(
8090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8092 int i;
8093 _ACEOF
8094 if ac_fn_c_try_compile "$LINENO"
8095 then :
8096 xorg_cv_cc_flag_unknown_warning_option=yes
8097 else case e in #(
8098 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8099 esac
8100 fi
8101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8102 esac
8103 fi
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8105 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8107 CFLAGS="$xorg_testset_save_CFLAGS"
8108 fi
8109
8110 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8112 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8113 fi
8114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8116 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8117 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8118 then :
8119 printf %s "(cached) " >&6
8120 else case e in #(
8121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122 /* end confdefs.h. */
8123 int i;
8124 _ACEOF
8125 if ac_fn_c_try_compile "$LINENO"
8126 then :
8127 xorg_cv_cc_flag_unused_command_line_argument=yes
8128 else case e in #(
8129 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8130 esac
8131 fi
8132 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8133 esac
8134 fi
8135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8136 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8138 CFLAGS="$xorg_testset_save_CFLAGS"
8139 fi
8140
8141 found="no"
8142
8143 if test $found = "no" ; then
8144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8146 fi
8147
8148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8150 fi
8151
8152 CFLAGS="$CFLAGS -Werror=return-type"
8153
8154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8155 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8156 cacheid=xorg_cv_cc_flag__Werror_return_type
8157 if eval test \${$cacheid+y}
8158 then :
8159 printf %s "(cached) " >&6
8160 else case e in #(
8161 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8162 /* end confdefs.h. */
8163 int i;
8164 int
8165 main (void)
8166 {
8167
8168 ;
8169 return 0;
8170 }
8171 _ACEOF
8172 if ac_fn_c_try_link "$LINENO"
8173 then :
8174 eval $cacheid=yes
8175 else case e in #(
8176 e) eval $cacheid=no ;;
8177 esac
8178 fi
8179 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8180 conftest$ac_exeext conftest.$ac_ext ;;
8181 esac
8182 fi
8183
8184
8185 CFLAGS="$xorg_testset_save_CFLAGS"
8186
8187 eval supported=\$$cacheid
8188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8189 printf "%s\n" "$supported" >&6; }
8190 if test "$supported" = "yes" ; then
8191 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8192 found="yes"
8193 fi
8194 fi
8195
8196 if test $found = "no" ; then
8197 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8198 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8199 fi
8200
8201 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8202 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8203 fi
8204
8205 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8206
8207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8208 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8209 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8210 if eval test \${$cacheid+y}
8211 then :
8212 printf %s "(cached) " >&6
8213 else case e in #(
8214 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8215 /* end confdefs.h. */
8216 int i;
8217 int
8218 main (void)
8219 {
8220
8221 ;
8222 return 0;
8223 }
8224 _ACEOF
8225 if ac_fn_c_try_link "$LINENO"
8226 then :
8227 eval $cacheid=yes
8228 else case e in #(
8229 e) eval $cacheid=no ;;
8230 esac
8231 fi
8232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8233 conftest$ac_exeext conftest.$ac_ext ;;
8234 esac
8235 fi
8236
8237
8238 CFLAGS="$xorg_testset_save_CFLAGS"
8239
8240 eval supported=\$$cacheid
8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8242 printf "%s\n" "$supported" >&6; }
8243 if test "$supported" = "yes" ; then
8244 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8245 found="yes"
8246 fi
8247 fi
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263 xorg_testset_save_CFLAGS="$CFLAGS"
8264
8265 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8266 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8268 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8269 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8270 then :
8271 printf %s "(cached) " >&6
8272 else case e in #(
8273 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h. */
8275 int i;
8276 _ACEOF
8277 if ac_fn_c_try_compile "$LINENO"
8278 then :
8279 xorg_cv_cc_flag_unknown_warning_option=yes
8280 else case e in #(
8281 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8282 esac
8283 fi
8284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8285 esac
8286 fi
8287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8288 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8289 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8290 CFLAGS="$xorg_testset_save_CFLAGS"
8291 fi
8292
8293 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8296 fi
8297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8299 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8300 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8308 if ac_fn_c_try_compile "$LINENO"
8309 then :
8310 xorg_cv_cc_flag_unused_command_line_argument=yes
8311 else case e in #(
8312 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8313 esac
8314 fi
8315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8316 esac
8317 fi
8318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8319 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8320 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8321 CFLAGS="$xorg_testset_save_CFLAGS"
8322 fi
8323
8324 found="no"
8325
8326 if test $found = "no" ; then
8327 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8328 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8329 fi
8330
8331 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8332 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8333 fi
8334
8335 CFLAGS="$CFLAGS -Werror=trigraphs"
8336
8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8338 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8339 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8340 if eval test \${$cacheid+y}
8341 then :
8342 printf %s "(cached) " >&6
8343 else case e in #(
8344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h. */
8346 int i;
8347 int
8348 main (void)
8349 {
8350
8351 ;
8352 return 0;
8353 }
8354 _ACEOF
8355 if ac_fn_c_try_link "$LINENO"
8356 then :
8357 eval $cacheid=yes
8358 else case e in #(
8359 e) eval $cacheid=no ;;
8360 esac
8361 fi
8362 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8363 conftest$ac_exeext conftest.$ac_ext ;;
8364 esac
8365 fi
8366
8367
8368 CFLAGS="$xorg_testset_save_CFLAGS"
8369
8370 eval supported=\$$cacheid
8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8372 printf "%s\n" "$supported" >&6; }
8373 if test "$supported" = "yes" ; then
8374 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8375 found="yes"
8376 fi
8377 fi
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393 xorg_testset_save_CFLAGS="$CFLAGS"
8394
8395 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8398 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8399 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8400 then :
8401 printf %s "(cached) " >&6
8402 else case e in #(
8403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8404 /* end confdefs.h. */
8405 int i;
8406 _ACEOF
8407 if ac_fn_c_try_compile "$LINENO"
8408 then :
8409 xorg_cv_cc_flag_unknown_warning_option=yes
8410 else case e in #(
8411 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8412 esac
8413 fi
8414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8415 esac
8416 fi
8417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8418 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8419 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8420 CFLAGS="$xorg_testset_save_CFLAGS"
8421 fi
8422
8423 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8426 fi
8427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8429 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8430 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8438 if ac_fn_c_try_compile "$LINENO"
8439 then :
8440 xorg_cv_cc_flag_unused_command_line_argument=yes
8441 else case e in #(
8442 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8443 esac
8444 fi
8445 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8446 esac
8447 fi
8448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8449 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8450 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8451 CFLAGS="$xorg_testset_save_CFLAGS"
8452 fi
8453
8454 found="no"
8455
8456 if test $found = "no" ; then
8457 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8458 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8459 fi
8460
8461 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8462 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8463 fi
8464
8465 CFLAGS="$CFLAGS -Werror=array-bounds"
8466
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8468 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8469 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8470 if eval test \${$cacheid+y}
8471 then :
8472 printf %s "(cached) " >&6
8473 else case e in #(
8474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 int i;
8477 int
8478 main (void)
8479 {
8480
8481 ;
8482 return 0;
8483 }
8484 _ACEOF
8485 if ac_fn_c_try_link "$LINENO"
8486 then :
8487 eval $cacheid=yes
8488 else case e in #(
8489 e) eval $cacheid=no ;;
8490 esac
8491 fi
8492 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8493 conftest$ac_exeext conftest.$ac_ext ;;
8494 esac
8495 fi
8496
8497
8498 CFLAGS="$xorg_testset_save_CFLAGS"
8499
8500 eval supported=\$$cacheid
8501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8502 printf "%s\n" "$supported" >&6; }
8503 if test "$supported" = "yes" ; then
8504 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8505 found="yes"
8506 fi
8507 fi
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523 xorg_testset_save_CFLAGS="$CFLAGS"
8524
8525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8528 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8529 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8530 then :
8531 printf %s "(cached) " >&6
8532 else case e in #(
8533 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8535 int i;
8536 _ACEOF
8537 if ac_fn_c_try_compile "$LINENO"
8538 then :
8539 xorg_cv_cc_flag_unknown_warning_option=yes
8540 else case e in #(
8541 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8542 esac
8543 fi
8544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8545 esac
8546 fi
8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8548 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8549 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8550 CFLAGS="$xorg_testset_save_CFLAGS"
8551 fi
8552
8553 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8554 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8556 fi
8557 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8559 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8560 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8568 if ac_fn_c_try_compile "$LINENO"
8569 then :
8570 xorg_cv_cc_flag_unused_command_line_argument=yes
8571 else case e in #(
8572 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8573 esac
8574 fi
8575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8576 esac
8577 fi
8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8579 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8580 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8581 CFLAGS="$xorg_testset_save_CFLAGS"
8582 fi
8583
8584 found="no"
8585
8586 if test $found = "no" ; then
8587 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8589 fi
8590
8591 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8593 fi
8594
8595 CFLAGS="$CFLAGS -Werror=write-strings"
8596
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8598 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8599 cacheid=xorg_cv_cc_flag__Werror_write_strings
8600 if eval test \${$cacheid+y}
8601 then :
8602 printf %s "(cached) " >&6
8603 else case e in #(
8604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 int i;
8607 int
8608 main (void)
8609 {
8610
8611 ;
8612 return 0;
8613 }
8614 _ACEOF
8615 if ac_fn_c_try_link "$LINENO"
8616 then :
8617 eval $cacheid=yes
8618 else case e in #(
8619 e) eval $cacheid=no ;;
8620 esac
8621 fi
8622 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8623 conftest$ac_exeext conftest.$ac_ext ;;
8624 esac
8625 fi
8626
8627
8628 CFLAGS="$xorg_testset_save_CFLAGS"
8629
8630 eval supported=\$$cacheid
8631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8632 printf "%s\n" "$supported" >&6; }
8633 if test "$supported" = "yes" ; then
8634 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8635 found="yes"
8636 fi
8637 fi
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653 xorg_testset_save_CFLAGS="$CFLAGS"
8654
8655 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8658 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8659 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8660 then :
8661 printf %s "(cached) " >&6
8662 else case e in #(
8663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8665 int i;
8666 _ACEOF
8667 if ac_fn_c_try_compile "$LINENO"
8668 then :
8669 xorg_cv_cc_flag_unknown_warning_option=yes
8670 else case e in #(
8671 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8672 esac
8673 fi
8674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8675 esac
8676 fi
8677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8678 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8680 CFLAGS="$xorg_testset_save_CFLAGS"
8681 fi
8682
8683 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8686 fi
8687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8689 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8690 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8698 if ac_fn_c_try_compile "$LINENO"
8699 then :
8700 xorg_cv_cc_flag_unused_command_line_argument=yes
8701 else case e in #(
8702 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8703 esac
8704 fi
8705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8706 esac
8707 fi
8708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8709 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8710 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8711 CFLAGS="$xorg_testset_save_CFLAGS"
8712 fi
8713
8714 found="no"
8715
8716 if test $found = "no" ; then
8717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8719 fi
8720
8721 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8722 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8723 fi
8724
8725 CFLAGS="$CFLAGS -Werror=address"
8726
8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8728 printf %s "checking if $CC supports -Werror=address... " >&6; }
8729 cacheid=xorg_cv_cc_flag__Werror_address
8730 if eval test \${$cacheid+y}
8731 then :
8732 printf %s "(cached) " >&6
8733 else case e in #(
8734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8736 int i;
8737 int
8738 main (void)
8739 {
8740
8741 ;
8742 return 0;
8743 }
8744 _ACEOF
8745 if ac_fn_c_try_link "$LINENO"
8746 then :
8747 eval $cacheid=yes
8748 else case e in #(
8749 e) eval $cacheid=no ;;
8750 esac
8751 fi
8752 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8753 conftest$ac_exeext conftest.$ac_ext ;;
8754 esac
8755 fi
8756
8757
8758 CFLAGS="$xorg_testset_save_CFLAGS"
8759
8760 eval supported=\$$cacheid
8761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8762 printf "%s\n" "$supported" >&6; }
8763 if test "$supported" = "yes" ; then
8764 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8765 found="yes"
8766 fi
8767 fi
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783 xorg_testset_save_CFLAGS="$CFLAGS"
8784
8785 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8786 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8788 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8789 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8790 then :
8791 printf %s "(cached) " >&6
8792 else case e in #(
8793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794 /* end confdefs.h. */
8795 int i;
8796 _ACEOF
8797 if ac_fn_c_try_compile "$LINENO"
8798 then :
8799 xorg_cv_cc_flag_unknown_warning_option=yes
8800 else case e in #(
8801 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8802 esac
8803 fi
8804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8805 esac
8806 fi
8807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8808 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8809 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8810 CFLAGS="$xorg_testset_save_CFLAGS"
8811 fi
8812
8813 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8816 fi
8817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8819 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8820 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8821 then :
8822 printf %s "(cached) " >&6
8823 else case e in #(
8824 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8825 /* end confdefs.h. */
8826 int i;
8827 _ACEOF
8828 if ac_fn_c_try_compile "$LINENO"
8829 then :
8830 xorg_cv_cc_flag_unused_command_line_argument=yes
8831 else case e in #(
8832 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8833 esac
8834 fi
8835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8836 esac
8837 fi
8838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8839 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8840 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8841 CFLAGS="$xorg_testset_save_CFLAGS"
8842 fi
8843
8844 found="no"
8845
8846 if test $found = "no" ; then
8847 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8849 fi
8850
8851 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8852 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8853 fi
8854
8855 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8856
8857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8858 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8859 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8860 if eval test \${$cacheid+y}
8861 then :
8862 printf %s "(cached) " >&6
8863 else case e in #(
8864 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865 /* end confdefs.h. */
8866 int i;
8867 int
8868 main (void)
8869 {
8870
8871 ;
8872 return 0;
8873 }
8874 _ACEOF
8875 if ac_fn_c_try_link "$LINENO"
8876 then :
8877 eval $cacheid=yes
8878 else case e in #(
8879 e) eval $cacheid=no ;;
8880 esac
8881 fi
8882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8883 conftest$ac_exeext conftest.$ac_ext ;;
8884 esac
8885 fi
8886
8887
8888 CFLAGS="$xorg_testset_save_CFLAGS"
8889
8890 eval supported=\$$cacheid
8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8892 printf "%s\n" "$supported" >&6; }
8893 if test "$supported" = "yes" ; then
8894 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8895 found="yes"
8896 fi
8897 fi
8898
8899 if test $found = "no" ; then
8900 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8902 fi
8903
8904 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8905 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8906 fi
8907
8908 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8909
8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8911 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8912 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8913 if eval test \${$cacheid+y}
8914 then :
8915 printf %s "(cached) " >&6
8916 else case e in #(
8917 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8918 /* end confdefs.h. */
8919 int i;
8920 int
8921 main (void)
8922 {
8923
8924 ;
8925 return 0;
8926 }
8927 _ACEOF
8928 if ac_fn_c_try_link "$LINENO"
8929 then :
8930 eval $cacheid=yes
8931 else case e in #(
8932 e) eval $cacheid=no ;;
8933 esac
8934 fi
8935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8936 conftest$ac_exeext conftest.$ac_ext ;;
8937 esac
8938 fi
8939
8940
8941 CFLAGS="$xorg_testset_save_CFLAGS"
8942
8943 eval supported=\$$cacheid
8944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8945 printf "%s\n" "$supported" >&6; }
8946 if test "$supported" = "yes" ; then
8947 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8948 found="yes"
8949 fi
8950 fi
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966 xorg_testset_save_CFLAGS="$CFLAGS"
8967
8968 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8971 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8972 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8973 then :
8974 printf %s "(cached) " >&6
8975 else case e in #(
8976 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978 int i;
8979 _ACEOF
8980 if ac_fn_c_try_compile "$LINENO"
8981 then :
8982 xorg_cv_cc_flag_unknown_warning_option=yes
8983 else case e in #(
8984 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8985 esac
8986 fi
8987 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8988 esac
8989 fi
8990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8991 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8993 CFLAGS="$xorg_testset_save_CFLAGS"
8994 fi
8995
8996 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8999 fi
9000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9002 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9003 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
9011 if ac_fn_c_try_compile "$LINENO"
9012 then :
9013 xorg_cv_cc_flag_unused_command_line_argument=yes
9014 else case e in #(
9015 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9016 esac
9017 fi
9018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9019 esac
9020 fi
9021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9022 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9023 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9024 CFLAGS="$xorg_testset_save_CFLAGS"
9025 fi
9026
9027 found="no"
9028
9029 if test $found = "no" ; then
9030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9032 fi
9033
9034 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9035 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9036 fi
9037
9038 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9039
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9041 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9042 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9043 if eval test \${$cacheid+y}
9044 then :
9045 printf %s "(cached) " >&6
9046 else case e in #(
9047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9049 int i;
9050 int
9051 main (void)
9052 {
9053
9054 ;
9055 return 0;
9056 }
9057 _ACEOF
9058 if ac_fn_c_try_link "$LINENO"
9059 then :
9060 eval $cacheid=yes
9061 else case e in #(
9062 e) eval $cacheid=no ;;
9063 esac
9064 fi
9065 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9066 conftest$ac_exeext conftest.$ac_ext ;;
9067 esac
9068 fi
9069
9070
9071 CFLAGS="$xorg_testset_save_CFLAGS"
9072
9073 eval supported=\$$cacheid
9074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9075 printf "%s\n" "$supported" >&6; }
9076 if test "$supported" = "yes" ; then
9077 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9078 found="yes"
9079 fi
9080 fi
9081
9082 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9083 else
9084 { 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
9085 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;}
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099 xorg_testset_save_CFLAGS="$CFLAGS"
9100
9101 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9104 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9105 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9106 then :
9107 printf %s "(cached) " >&6
9108 else case e in #(
9109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9111 int i;
9112 _ACEOF
9113 if ac_fn_c_try_compile "$LINENO"
9114 then :
9115 xorg_cv_cc_flag_unknown_warning_option=yes
9116 else case e in #(
9117 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9118 esac
9119 fi
9120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9121 esac
9122 fi
9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9124 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9125 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9126 CFLAGS="$xorg_testset_save_CFLAGS"
9127 fi
9128
9129 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9132 fi
9133 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9135 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9136 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9137 then :
9138 printf %s "(cached) " >&6
9139 else case e in #(
9140 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9142 int i;
9143 _ACEOF
9144 if ac_fn_c_try_compile "$LINENO"
9145 then :
9146 xorg_cv_cc_flag_unused_command_line_argument=yes
9147 else case e in #(
9148 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9149 esac
9150 fi
9151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9152 esac
9153 fi
9154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9155 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9157 CFLAGS="$xorg_testset_save_CFLAGS"
9158 fi
9159
9160 found="no"
9161
9162 if test $found = "no" ; then
9163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9165 fi
9166
9167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9169 fi
9170
9171 CFLAGS="$CFLAGS -Wimplicit"
9172
9173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9174 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9175 cacheid=xorg_cv_cc_flag__Wimplicit
9176 if eval test \${$cacheid+y}
9177 then :
9178 printf %s "(cached) " >&6
9179 else case e in #(
9180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9181 /* end confdefs.h. */
9182 int i;
9183 int
9184 main (void)
9185 {
9186
9187 ;
9188 return 0;
9189 }
9190 _ACEOF
9191 if ac_fn_c_try_link "$LINENO"
9192 then :
9193 eval $cacheid=yes
9194 else case e in #(
9195 e) eval $cacheid=no ;;
9196 esac
9197 fi
9198 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9199 conftest$ac_exeext conftest.$ac_ext ;;
9200 esac
9201 fi
9202
9203
9204 CFLAGS="$xorg_testset_save_CFLAGS"
9205
9206 eval supported=\$$cacheid
9207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9208 printf "%s\n" "$supported" >&6; }
9209 if test "$supported" = "yes" ; then
9210 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9211 found="yes"
9212 fi
9213 fi
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229 xorg_testset_save_CFLAGS="$CFLAGS"
9230
9231 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9232 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9234 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9235 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9236 then :
9237 printf %s "(cached) " >&6
9238 else case e in #(
9239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240 /* end confdefs.h. */
9241 int i;
9242 _ACEOF
9243 if ac_fn_c_try_compile "$LINENO"
9244 then :
9245 xorg_cv_cc_flag_unknown_warning_option=yes
9246 else case e in #(
9247 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9248 esac
9249 fi
9250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9251 esac
9252 fi
9253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9254 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9255 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9256 CFLAGS="$xorg_testset_save_CFLAGS"
9257 fi
9258
9259 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9260 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9262 fi
9263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9265 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9266 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9267 then :
9268 printf %s "(cached) " >&6
9269 else case e in #(
9270 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h. */
9272 int i;
9273 _ACEOF
9274 if ac_fn_c_try_compile "$LINENO"
9275 then :
9276 xorg_cv_cc_flag_unused_command_line_argument=yes
9277 else case e in #(
9278 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9279 esac
9280 fi
9281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9282 esac
9283 fi
9284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9285 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9286 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9287 CFLAGS="$xorg_testset_save_CFLAGS"
9288 fi
9289
9290 found="no"
9291
9292 if test $found = "no" ; then
9293 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9294 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9295 fi
9296
9297 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9299 fi
9300
9301 CFLAGS="$CFLAGS -Wnonnull"
9302
9303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9304 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9305 cacheid=xorg_cv_cc_flag__Wnonnull
9306 if eval test \${$cacheid+y}
9307 then :
9308 printf %s "(cached) " >&6
9309 else case e in #(
9310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311 /* end confdefs.h. */
9312 int i;
9313 int
9314 main (void)
9315 {
9316
9317 ;
9318 return 0;
9319 }
9320 _ACEOF
9321 if ac_fn_c_try_link "$LINENO"
9322 then :
9323 eval $cacheid=yes
9324 else case e in #(
9325 e) eval $cacheid=no ;;
9326 esac
9327 fi
9328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9329 conftest$ac_exeext conftest.$ac_ext ;;
9330 esac
9331 fi
9332
9333
9334 CFLAGS="$xorg_testset_save_CFLAGS"
9335
9336 eval supported=\$$cacheid
9337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9338 printf "%s\n" "$supported" >&6; }
9339 if test "$supported" = "yes" ; then
9340 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9341 found="yes"
9342 fi
9343 fi
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359 xorg_testset_save_CFLAGS="$CFLAGS"
9360
9361 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9364 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9365 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9366 then :
9367 printf %s "(cached) " >&6
9368 else case e in #(
9369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9370 /* end confdefs.h. */
9371 int i;
9372 _ACEOF
9373 if ac_fn_c_try_compile "$LINENO"
9374 then :
9375 xorg_cv_cc_flag_unknown_warning_option=yes
9376 else case e in #(
9377 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9378 esac
9379 fi
9380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9381 esac
9382 fi
9383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9384 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9386 CFLAGS="$xorg_testset_save_CFLAGS"
9387 fi
9388
9389 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9392 fi
9393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9395 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9396 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9397 then :
9398 printf %s "(cached) " >&6
9399 else case e in #(
9400 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401 /* end confdefs.h. */
9402 int i;
9403 _ACEOF
9404 if ac_fn_c_try_compile "$LINENO"
9405 then :
9406 xorg_cv_cc_flag_unused_command_line_argument=yes
9407 else case e in #(
9408 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9409 esac
9410 fi
9411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9412 esac
9413 fi
9414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9415 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9416 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9417 CFLAGS="$xorg_testset_save_CFLAGS"
9418 fi
9419
9420 found="no"
9421
9422 if test $found = "no" ; then
9423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9425 fi
9426
9427 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9428 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9429 fi
9430
9431 CFLAGS="$CFLAGS -Winit-self"
9432
9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9434 printf %s "checking if $CC supports -Winit-self... " >&6; }
9435 cacheid=xorg_cv_cc_flag__Winit_self
9436 if eval test \${$cacheid+y}
9437 then :
9438 printf %s "(cached) " >&6
9439 else case e in #(
9440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9441 /* end confdefs.h. */
9442 int i;
9443 int
9444 main (void)
9445 {
9446
9447 ;
9448 return 0;
9449 }
9450 _ACEOF
9451 if ac_fn_c_try_link "$LINENO"
9452 then :
9453 eval $cacheid=yes
9454 else case e in #(
9455 e) eval $cacheid=no ;;
9456 esac
9457 fi
9458 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9459 conftest$ac_exeext conftest.$ac_ext ;;
9460 esac
9461 fi
9462
9463
9464 CFLAGS="$xorg_testset_save_CFLAGS"
9465
9466 eval supported=\$$cacheid
9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9468 printf "%s\n" "$supported" >&6; }
9469 if test "$supported" = "yes" ; then
9470 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9471 found="yes"
9472 fi
9473 fi
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489 xorg_testset_save_CFLAGS="$CFLAGS"
9490
9491 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9492 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9494 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9495 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9496 then :
9497 printf %s "(cached) " >&6
9498 else case e in #(
9499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9500 /* end confdefs.h. */
9501 int i;
9502 _ACEOF
9503 if ac_fn_c_try_compile "$LINENO"
9504 then :
9505 xorg_cv_cc_flag_unknown_warning_option=yes
9506 else case e in #(
9507 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9508 esac
9509 fi
9510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9511 esac
9512 fi
9513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9514 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9516 CFLAGS="$xorg_testset_save_CFLAGS"
9517 fi
9518
9519 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9522 fi
9523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9525 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9526 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9527 then :
9528 printf %s "(cached) " >&6
9529 else case e in #(
9530 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h. */
9532 int i;
9533 _ACEOF
9534 if ac_fn_c_try_compile "$LINENO"
9535 then :
9536 xorg_cv_cc_flag_unused_command_line_argument=yes
9537 else case e in #(
9538 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9539 esac
9540 fi
9541 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9542 esac
9543 fi
9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9545 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9546 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9547 CFLAGS="$xorg_testset_save_CFLAGS"
9548 fi
9549
9550 found="no"
9551
9552 if test $found = "no" ; then
9553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9555 fi
9556
9557 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9559 fi
9560
9561 CFLAGS="$CFLAGS -Wmain"
9562
9563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9564 printf %s "checking if $CC supports -Wmain... " >&6; }
9565 cacheid=xorg_cv_cc_flag__Wmain
9566 if eval test \${$cacheid+y}
9567 then :
9568 printf %s "(cached) " >&6
9569 else case e in #(
9570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572 int i;
9573 int
9574 main (void)
9575 {
9576
9577 ;
9578 return 0;
9579 }
9580 _ACEOF
9581 if ac_fn_c_try_link "$LINENO"
9582 then :
9583 eval $cacheid=yes
9584 else case e in #(
9585 e) eval $cacheid=no ;;
9586 esac
9587 fi
9588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9589 conftest$ac_exeext conftest.$ac_ext ;;
9590 esac
9591 fi
9592
9593
9594 CFLAGS="$xorg_testset_save_CFLAGS"
9595
9596 eval supported=\$$cacheid
9597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9598 printf "%s\n" "$supported" >&6; }
9599 if test "$supported" = "yes" ; then
9600 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9601 found="yes"
9602 fi
9603 fi
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619 xorg_testset_save_CFLAGS="$CFLAGS"
9620
9621 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9624 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9625 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9626 then :
9627 printf %s "(cached) " >&6
9628 else case e in #(
9629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9630 /* end confdefs.h. */
9631 int i;
9632 _ACEOF
9633 if ac_fn_c_try_compile "$LINENO"
9634 then :
9635 xorg_cv_cc_flag_unknown_warning_option=yes
9636 else case e in #(
9637 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9638 esac
9639 fi
9640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9641 esac
9642 fi
9643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9644 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9645 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9646 CFLAGS="$xorg_testset_save_CFLAGS"
9647 fi
9648
9649 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9650 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9651 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9652 fi
9653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9655 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9656 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9657 then :
9658 printf %s "(cached) " >&6
9659 else case e in #(
9660 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 int i;
9663 _ACEOF
9664 if ac_fn_c_try_compile "$LINENO"
9665 then :
9666 xorg_cv_cc_flag_unused_command_line_argument=yes
9667 else case e in #(
9668 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9669 esac
9670 fi
9671 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9672 esac
9673 fi
9674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9675 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9676 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9677 CFLAGS="$xorg_testset_save_CFLAGS"
9678 fi
9679
9680 found="no"
9681
9682 if test $found = "no" ; then
9683 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9684 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9685 fi
9686
9687 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9688 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9689 fi
9690
9691 CFLAGS="$CFLAGS -Wmissing-braces"
9692
9693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9694 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9695 cacheid=xorg_cv_cc_flag__Wmissing_braces
9696 if eval test \${$cacheid+y}
9697 then :
9698 printf %s "(cached) " >&6
9699 else case e in #(
9700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9701 /* end confdefs.h. */
9702 int i;
9703 int
9704 main (void)
9705 {
9706
9707 ;
9708 return 0;
9709 }
9710 _ACEOF
9711 if ac_fn_c_try_link "$LINENO"
9712 then :
9713 eval $cacheid=yes
9714 else case e in #(
9715 e) eval $cacheid=no ;;
9716 esac
9717 fi
9718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9719 conftest$ac_exeext conftest.$ac_ext ;;
9720 esac
9721 fi
9722
9723
9724 CFLAGS="$xorg_testset_save_CFLAGS"
9725
9726 eval supported=\$$cacheid
9727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9728 printf "%s\n" "$supported" >&6; }
9729 if test "$supported" = "yes" ; then
9730 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9731 found="yes"
9732 fi
9733 fi
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749 xorg_testset_save_CFLAGS="$CFLAGS"
9750
9751 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9754 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9755 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9756 then :
9757 printf %s "(cached) " >&6
9758 else case e in #(
9759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9761 int i;
9762 _ACEOF
9763 if ac_fn_c_try_compile "$LINENO"
9764 then :
9765 xorg_cv_cc_flag_unknown_warning_option=yes
9766 else case e in #(
9767 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9768 esac
9769 fi
9770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9771 esac
9772 fi
9773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9774 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9776 CFLAGS="$xorg_testset_save_CFLAGS"
9777 fi
9778
9779 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9782 fi
9783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9785 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9786 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9787 then :
9788 printf %s "(cached) " >&6
9789 else case e in #(
9790 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792 int i;
9793 _ACEOF
9794 if ac_fn_c_try_compile "$LINENO"
9795 then :
9796 xorg_cv_cc_flag_unused_command_line_argument=yes
9797 else case e in #(
9798 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9799 esac
9800 fi
9801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9802 esac
9803 fi
9804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9805 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9806 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9807 CFLAGS="$xorg_testset_save_CFLAGS"
9808 fi
9809
9810 found="no"
9811
9812 if test $found = "no" ; then
9813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9815 fi
9816
9817 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9818 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9819 fi
9820
9821 CFLAGS="$CFLAGS -Wsequence-point"
9822
9823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9824 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9825 cacheid=xorg_cv_cc_flag__Wsequence_point
9826 if eval test \${$cacheid+y}
9827 then :
9828 printf %s "(cached) " >&6
9829 else case e in #(
9830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9831 /* end confdefs.h. */
9832 int i;
9833 int
9834 main (void)
9835 {
9836
9837 ;
9838 return 0;
9839 }
9840 _ACEOF
9841 if ac_fn_c_try_link "$LINENO"
9842 then :
9843 eval $cacheid=yes
9844 else case e in #(
9845 e) eval $cacheid=no ;;
9846 esac
9847 fi
9848 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9849 conftest$ac_exeext conftest.$ac_ext ;;
9850 esac
9851 fi
9852
9853
9854 CFLAGS="$xorg_testset_save_CFLAGS"
9855
9856 eval supported=\$$cacheid
9857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9858 printf "%s\n" "$supported" >&6; }
9859 if test "$supported" = "yes" ; then
9860 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9861 found="yes"
9862 fi
9863 fi
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879 xorg_testset_save_CFLAGS="$CFLAGS"
9880
9881 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9884 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9885 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9886 then :
9887 printf %s "(cached) " >&6
9888 else case e in #(
9889 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890 /* end confdefs.h. */
9891 int i;
9892 _ACEOF
9893 if ac_fn_c_try_compile "$LINENO"
9894 then :
9895 xorg_cv_cc_flag_unknown_warning_option=yes
9896 else case e in #(
9897 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9898 esac
9899 fi
9900 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9901 esac
9902 fi
9903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9904 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9905 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9906 CFLAGS="$xorg_testset_save_CFLAGS"
9907 fi
9908
9909 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9910 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9912 fi
9913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9915 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9916 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9917 then :
9918 printf %s "(cached) " >&6
9919 else case e in #(
9920 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 int i;
9923 _ACEOF
9924 if ac_fn_c_try_compile "$LINENO"
9925 then :
9926 xorg_cv_cc_flag_unused_command_line_argument=yes
9927 else case e in #(
9928 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9929 esac
9930 fi
9931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9932 esac
9933 fi
9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9935 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9936 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9937 CFLAGS="$xorg_testset_save_CFLAGS"
9938 fi
9939
9940 found="no"
9941
9942 if test $found = "no" ; then
9943 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9944 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9945 fi
9946
9947 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9949 fi
9950
9951 CFLAGS="$CFLAGS -Wreturn-type"
9952
9953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9954 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9955 cacheid=xorg_cv_cc_flag__Wreturn_type
9956 if eval test \${$cacheid+y}
9957 then :
9958 printf %s "(cached) " >&6
9959 else case e in #(
9960 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9961 /* end confdefs.h. */
9962 int i;
9963 int
9964 main (void)
9965 {
9966
9967 ;
9968 return 0;
9969 }
9970 _ACEOF
9971 if ac_fn_c_try_link "$LINENO"
9972 then :
9973 eval $cacheid=yes
9974 else case e in #(
9975 e) eval $cacheid=no ;;
9976 esac
9977 fi
9978 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9979 conftest$ac_exeext conftest.$ac_ext ;;
9980 esac
9981 fi
9982
9983
9984 CFLAGS="$xorg_testset_save_CFLAGS"
9985
9986 eval supported=\$$cacheid
9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9988 printf "%s\n" "$supported" >&6; }
9989 if test "$supported" = "yes" ; then
9990 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9991 found="yes"
9992 fi
9993 fi
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009 xorg_testset_save_CFLAGS="$CFLAGS"
10010
10011 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10012 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10014 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10015 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10016 then :
10017 printf %s "(cached) " >&6
10018 else case e in #(
10019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10020 /* end confdefs.h. */
10021 int i;
10022 _ACEOF
10023 if ac_fn_c_try_compile "$LINENO"
10024 then :
10025 xorg_cv_cc_flag_unknown_warning_option=yes
10026 else case e in #(
10027 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10028 esac
10029 fi
10030 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10031 esac
10032 fi
10033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10034 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10036 CFLAGS="$xorg_testset_save_CFLAGS"
10037 fi
10038
10039 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10042 fi
10043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10045 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10046 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10047 then :
10048 printf %s "(cached) " >&6
10049 else case e in #(
10050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051 /* end confdefs.h. */
10052 int i;
10053 _ACEOF
10054 if ac_fn_c_try_compile "$LINENO"
10055 then :
10056 xorg_cv_cc_flag_unused_command_line_argument=yes
10057 else case e in #(
10058 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10059 esac
10060 fi
10061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10062 esac
10063 fi
10064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10065 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10067 CFLAGS="$xorg_testset_save_CFLAGS"
10068 fi
10069
10070 found="no"
10071
10072 if test $found = "no" ; then
10073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10075 fi
10076
10077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10079 fi
10080
10081 CFLAGS="$CFLAGS -Wtrigraphs"
10082
10083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10084 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10085 cacheid=xorg_cv_cc_flag__Wtrigraphs
10086 if eval test \${$cacheid+y}
10087 then :
10088 printf %s "(cached) " >&6
10089 else case e in #(
10090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h. */
10092 int i;
10093 int
10094 main (void)
10095 {
10096
10097 ;
10098 return 0;
10099 }
10100 _ACEOF
10101 if ac_fn_c_try_link "$LINENO"
10102 then :
10103 eval $cacheid=yes
10104 else case e in #(
10105 e) eval $cacheid=no ;;
10106 esac
10107 fi
10108 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10109 conftest$ac_exeext conftest.$ac_ext ;;
10110 esac
10111 fi
10112
10113
10114 CFLAGS="$xorg_testset_save_CFLAGS"
10115
10116 eval supported=\$$cacheid
10117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10118 printf "%s\n" "$supported" >&6; }
10119 if test "$supported" = "yes" ; then
10120 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10121 found="yes"
10122 fi
10123 fi
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139 xorg_testset_save_CFLAGS="$CFLAGS"
10140
10141 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10144 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10145 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10146 then :
10147 printf %s "(cached) " >&6
10148 else case e in #(
10149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10151 int i;
10152 _ACEOF
10153 if ac_fn_c_try_compile "$LINENO"
10154 then :
10155 xorg_cv_cc_flag_unknown_warning_option=yes
10156 else case e in #(
10157 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10158 esac
10159 fi
10160 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10161 esac
10162 fi
10163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10164 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10165 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10166 CFLAGS="$xorg_testset_save_CFLAGS"
10167 fi
10168
10169 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10172 fi
10173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10175 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10176 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10177 then :
10178 printf %s "(cached) " >&6
10179 else case e in #(
10180 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10181 /* end confdefs.h. */
10182 int i;
10183 _ACEOF
10184 if ac_fn_c_try_compile "$LINENO"
10185 then :
10186 xorg_cv_cc_flag_unused_command_line_argument=yes
10187 else case e in #(
10188 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10189 esac
10190 fi
10191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10192 esac
10193 fi
10194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10195 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10196 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10197 CFLAGS="$xorg_testset_save_CFLAGS"
10198 fi
10199
10200 found="no"
10201
10202 if test $found = "no" ; then
10203 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10204 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10205 fi
10206
10207 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10208 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10209 fi
10210
10211 CFLAGS="$CFLAGS -Warray-bounds"
10212
10213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10214 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10215 cacheid=xorg_cv_cc_flag__Warray_bounds
10216 if eval test \${$cacheid+y}
10217 then :
10218 printf %s "(cached) " >&6
10219 else case e in #(
10220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10221 /* end confdefs.h. */
10222 int i;
10223 int
10224 main (void)
10225 {
10226
10227 ;
10228 return 0;
10229 }
10230 _ACEOF
10231 if ac_fn_c_try_link "$LINENO"
10232 then :
10233 eval $cacheid=yes
10234 else case e in #(
10235 e) eval $cacheid=no ;;
10236 esac
10237 fi
10238 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10239 conftest$ac_exeext conftest.$ac_ext ;;
10240 esac
10241 fi
10242
10243
10244 CFLAGS="$xorg_testset_save_CFLAGS"
10245
10246 eval supported=\$$cacheid
10247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10248 printf "%s\n" "$supported" >&6; }
10249 if test "$supported" = "yes" ; then
10250 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10251 found="yes"
10252 fi
10253 fi
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269 xorg_testset_save_CFLAGS="$CFLAGS"
10270
10271 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10272 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10274 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10275 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10276 then :
10277 printf %s "(cached) " >&6
10278 else case e in #(
10279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10280 /* end confdefs.h. */
10281 int i;
10282 _ACEOF
10283 if ac_fn_c_try_compile "$LINENO"
10284 then :
10285 xorg_cv_cc_flag_unknown_warning_option=yes
10286 else case e in #(
10287 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10288 esac
10289 fi
10290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10291 esac
10292 fi
10293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10294 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10295 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10296 CFLAGS="$xorg_testset_save_CFLAGS"
10297 fi
10298
10299 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10300 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10301 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10302 fi
10303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10305 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10306 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10307 then :
10308 printf %s "(cached) " >&6
10309 else case e in #(
10310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10311 /* end confdefs.h. */
10312 int i;
10313 _ACEOF
10314 if ac_fn_c_try_compile "$LINENO"
10315 then :
10316 xorg_cv_cc_flag_unused_command_line_argument=yes
10317 else case e in #(
10318 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10319 esac
10320 fi
10321 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10322 esac
10323 fi
10324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10325 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10326 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10327 CFLAGS="$xorg_testset_save_CFLAGS"
10328 fi
10329
10330 found="no"
10331
10332 if test $found = "no" ; then
10333 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10334 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10335 fi
10336
10337 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10338 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10339 fi
10340
10341 CFLAGS="$CFLAGS -Wwrite-strings"
10342
10343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10344 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10345 cacheid=xorg_cv_cc_flag__Wwrite_strings
10346 if eval test \${$cacheid+y}
10347 then :
10348 printf %s "(cached) " >&6
10349 else case e in #(
10350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10351 /* end confdefs.h. */
10352 int i;
10353 int
10354 main (void)
10355 {
10356
10357 ;
10358 return 0;
10359 }
10360 _ACEOF
10361 if ac_fn_c_try_link "$LINENO"
10362 then :
10363 eval $cacheid=yes
10364 else case e in #(
10365 e) eval $cacheid=no ;;
10366 esac
10367 fi
10368 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10369 conftest$ac_exeext conftest.$ac_ext ;;
10370 esac
10371 fi
10372
10373
10374 CFLAGS="$xorg_testset_save_CFLAGS"
10375
10376 eval supported=\$$cacheid
10377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10378 printf "%s\n" "$supported" >&6; }
10379 if test "$supported" = "yes" ; then
10380 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10381 found="yes"
10382 fi
10383 fi
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399 xorg_testset_save_CFLAGS="$CFLAGS"
10400
10401 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10404 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10405 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10406 then :
10407 printf %s "(cached) " >&6
10408 else case e in #(
10409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10411 int i;
10412 _ACEOF
10413 if ac_fn_c_try_compile "$LINENO"
10414 then :
10415 xorg_cv_cc_flag_unknown_warning_option=yes
10416 else case e in #(
10417 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10418 esac
10419 fi
10420 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10421 esac
10422 fi
10423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10424 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10426 CFLAGS="$xorg_testset_save_CFLAGS"
10427 fi
10428
10429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10432 fi
10433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10435 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10436 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10437 then :
10438 printf %s "(cached) " >&6
10439 else case e in #(
10440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10441 /* end confdefs.h. */
10442 int i;
10443 _ACEOF
10444 if ac_fn_c_try_compile "$LINENO"
10445 then :
10446 xorg_cv_cc_flag_unused_command_line_argument=yes
10447 else case e in #(
10448 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10449 esac
10450 fi
10451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10452 esac
10453 fi
10454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10455 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10456 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10457 CFLAGS="$xorg_testset_save_CFLAGS"
10458 fi
10459
10460 found="no"
10461
10462 if test $found = "no" ; then
10463 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10465 fi
10466
10467 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10469 fi
10470
10471 CFLAGS="$CFLAGS -Waddress"
10472
10473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10474 printf %s "checking if $CC supports -Waddress... " >&6; }
10475 cacheid=xorg_cv_cc_flag__Waddress
10476 if eval test \${$cacheid+y}
10477 then :
10478 printf %s "(cached) " >&6
10479 else case e in #(
10480 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10481 /* end confdefs.h. */
10482 int i;
10483 int
10484 main (void)
10485 {
10486
10487 ;
10488 return 0;
10489 }
10490 _ACEOF
10491 if ac_fn_c_try_link "$LINENO"
10492 then :
10493 eval $cacheid=yes
10494 else case e in #(
10495 e) eval $cacheid=no ;;
10496 esac
10497 fi
10498 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10499 conftest$ac_exeext conftest.$ac_ext ;;
10500 esac
10501 fi
10502
10503
10504 CFLAGS="$xorg_testset_save_CFLAGS"
10505
10506 eval supported=\$$cacheid
10507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10508 printf "%s\n" "$supported" >&6; }
10509 if test "$supported" = "yes" ; then
10510 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10511 found="yes"
10512 fi
10513 fi
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529 xorg_testset_save_CFLAGS="$CFLAGS"
10530
10531 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10534 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10535 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10536 then :
10537 printf %s "(cached) " >&6
10538 else case e in #(
10539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540 /* end confdefs.h. */
10541 int i;
10542 _ACEOF
10543 if ac_fn_c_try_compile "$LINENO"
10544 then :
10545 xorg_cv_cc_flag_unknown_warning_option=yes
10546 else case e in #(
10547 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10548 esac
10549 fi
10550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10551 esac
10552 fi
10553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10554 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10555 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10556 CFLAGS="$xorg_testset_save_CFLAGS"
10557 fi
10558
10559 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10562 fi
10563 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10565 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10566 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10567 then :
10568 printf %s "(cached) " >&6
10569 else case e in #(
10570 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10571 /* end confdefs.h. */
10572 int i;
10573 _ACEOF
10574 if ac_fn_c_try_compile "$LINENO"
10575 then :
10576 xorg_cv_cc_flag_unused_command_line_argument=yes
10577 else case e in #(
10578 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10579 esac
10580 fi
10581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10582 esac
10583 fi
10584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10585 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10586 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10587 CFLAGS="$xorg_testset_save_CFLAGS"
10588 fi
10589
10590 found="no"
10591
10592 if test $found = "no" ; then
10593 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10594 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10595 fi
10596
10597 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10599 fi
10600
10601 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10602
10603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10604 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10605 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10606 if eval test \${$cacheid+y}
10607 then :
10608 printf %s "(cached) " >&6
10609 else case e in #(
10610 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h. */
10612 int i;
10613 int
10614 main (void)
10615 {
10616
10617 ;
10618 return 0;
10619 }
10620 _ACEOF
10621 if ac_fn_c_try_link "$LINENO"
10622 then :
10623 eval $cacheid=yes
10624 else case e in #(
10625 e) eval $cacheid=no ;;
10626 esac
10627 fi
10628 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10629 conftest$ac_exeext conftest.$ac_ext ;;
10630 esac
10631 fi
10632
10633
10634 CFLAGS="$xorg_testset_save_CFLAGS"
10635
10636 eval supported=\$$cacheid
10637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10638 printf "%s\n" "$supported" >&6; }
10639 if test "$supported" = "yes" ; then
10640 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10641 found="yes"
10642 fi
10643 fi
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659 xorg_testset_save_CFLAGS="$CFLAGS"
10660
10661 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10664 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10665 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10666 then :
10667 printf %s "(cached) " >&6
10668 else case e in #(
10669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10670 /* end confdefs.h. */
10671 int i;
10672 _ACEOF
10673 if ac_fn_c_try_compile "$LINENO"
10674 then :
10675 xorg_cv_cc_flag_unknown_warning_option=yes
10676 else case e in #(
10677 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10678 esac
10679 fi
10680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10681 esac
10682 fi
10683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10684 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10685 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10686 CFLAGS="$xorg_testset_save_CFLAGS"
10687 fi
10688
10689 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10692 fi
10693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10695 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10696 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10697 then :
10698 printf %s "(cached) " >&6
10699 else case e in #(
10700 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h. */
10702 int i;
10703 _ACEOF
10704 if ac_fn_c_try_compile "$LINENO"
10705 then :
10706 xorg_cv_cc_flag_unused_command_line_argument=yes
10707 else case e in #(
10708 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10709 esac
10710 fi
10711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10712 esac
10713 fi
10714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10715 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10716 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10717 CFLAGS="$xorg_testset_save_CFLAGS"
10718 fi
10719
10720 found="no"
10721
10722 if test $found = "no" ; then
10723 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10725 fi
10726
10727 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10729 fi
10730
10731 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10732
10733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10734 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10735 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10736 if eval test \${$cacheid+y}
10737 then :
10738 printf %s "(cached) " >&6
10739 else case e in #(
10740 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 int i;
10743 int
10744 main (void)
10745 {
10746
10747 ;
10748 return 0;
10749 }
10750 _ACEOF
10751 if ac_fn_c_try_link "$LINENO"
10752 then :
10753 eval $cacheid=yes
10754 else case e in #(
10755 e) eval $cacheid=no ;;
10756 esac
10757 fi
10758 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10759 conftest$ac_exeext conftest.$ac_ext ;;
10760 esac
10761 fi
10762
10763
10764 CFLAGS="$xorg_testset_save_CFLAGS"
10765
10766 eval supported=\$$cacheid
10767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10768 printf "%s\n" "$supported" >&6; }
10769 if test "$supported" = "yes" ; then
10770 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10771 found="yes"
10772 fi
10773 fi
10774
10775
10776 fi
10777
10778
10779
10780
10781
10782
10783
10784 CWARNFLAGS="$BASE_CFLAGS"
10785 if test "x$GCC" = xyes ; then
10786 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10787 fi
10788
10789
10790
10791
10792
10793
10794
10795
10796 # Check whether --enable-strict-compilation was given.
10797 if test ${enable_strict_compilation+y}
10798 then :
10799 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10800 else case e in #(
10801 e) STRICT_COMPILE=no ;;
10802 esac
10803 fi
10804
10805
10806
10807
10808
10809
10810 STRICT_CFLAGS=""
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824 xorg_testset_save_CFLAGS="$CFLAGS"
10825
10826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10829 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10830 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10831 then :
10832 printf %s "(cached) " >&6
10833 else case e in #(
10834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10835 /* end confdefs.h. */
10836 int i;
10837 _ACEOF
10838 if ac_fn_c_try_compile "$LINENO"
10839 then :
10840 xorg_cv_cc_flag_unknown_warning_option=yes
10841 else case e in #(
10842 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10843 esac
10844 fi
10845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10846 esac
10847 fi
10848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10849 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10851 CFLAGS="$xorg_testset_save_CFLAGS"
10852 fi
10853
10854 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10857 fi
10858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10860 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10861 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10862 then :
10863 printf %s "(cached) " >&6
10864 else case e in #(
10865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10866 /* end confdefs.h. */
10867 int i;
10868 _ACEOF
10869 if ac_fn_c_try_compile "$LINENO"
10870 then :
10871 xorg_cv_cc_flag_unused_command_line_argument=yes
10872 else case e in #(
10873 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10874 esac
10875 fi
10876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10877 esac
10878 fi
10879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10880 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10882 CFLAGS="$xorg_testset_save_CFLAGS"
10883 fi
10884
10885 found="no"
10886
10887 if test $found = "no" ; then
10888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10890 fi
10891
10892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10894 fi
10895
10896 CFLAGS="$CFLAGS -pedantic"
10897
10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10899 printf %s "checking if $CC supports -pedantic... " >&6; }
10900 cacheid=xorg_cv_cc_flag__pedantic
10901 if eval test \${$cacheid+y}
10902 then :
10903 printf %s "(cached) " >&6
10904 else case e in #(
10905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10907 int i;
10908 int
10909 main (void)
10910 {
10911
10912 ;
10913 return 0;
10914 }
10915 _ACEOF
10916 if ac_fn_c_try_link "$LINENO"
10917 then :
10918 eval $cacheid=yes
10919 else case e in #(
10920 e) eval $cacheid=no ;;
10921 esac
10922 fi
10923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10924 conftest$ac_exeext conftest.$ac_ext ;;
10925 esac
10926 fi
10927
10928
10929 CFLAGS="$xorg_testset_save_CFLAGS"
10930
10931 eval supported=\$$cacheid
10932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10933 printf "%s\n" "$supported" >&6; }
10934 if test "$supported" = "yes" ; then
10935 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10936 found="yes"
10937 fi
10938 fi
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954 xorg_testset_save_CFLAGS="$CFLAGS"
10955
10956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10959 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10960 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10961 then :
10962 printf %s "(cached) " >&6
10963 else case e in #(
10964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10965 /* end confdefs.h. */
10966 int i;
10967 _ACEOF
10968 if ac_fn_c_try_compile "$LINENO"
10969 then :
10970 xorg_cv_cc_flag_unknown_warning_option=yes
10971 else case e in #(
10972 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10973 esac
10974 fi
10975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10976 esac
10977 fi
10978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10979 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10981 CFLAGS="$xorg_testset_save_CFLAGS"
10982 fi
10983
10984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10987 fi
10988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10990 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10991 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10992 then :
10993 printf %s "(cached) " >&6
10994 else case e in #(
10995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10996 /* end confdefs.h. */
10997 int i;
10998 _ACEOF
10999 if ac_fn_c_try_compile "$LINENO"
11000 then :
11001 xorg_cv_cc_flag_unused_command_line_argument=yes
11002 else case e in #(
11003 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11004 esac
11005 fi
11006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11007 esac
11008 fi
11009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11010 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11012 CFLAGS="$xorg_testset_save_CFLAGS"
11013 fi
11014
11015 found="no"
11016
11017 if test $found = "no" ; then
11018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11020 fi
11021
11022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11024 fi
11025
11026 CFLAGS="$CFLAGS -Werror"
11027
11028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11029 printf %s "checking if $CC supports -Werror... " >&6; }
11030 cacheid=xorg_cv_cc_flag__Werror
11031 if eval test \${$cacheid+y}
11032 then :
11033 printf %s "(cached) " >&6
11034 else case e in #(
11035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11036 /* end confdefs.h. */
11037 int i;
11038 int
11039 main (void)
11040 {
11041
11042 ;
11043 return 0;
11044 }
11045 _ACEOF
11046 if ac_fn_c_try_link "$LINENO"
11047 then :
11048 eval $cacheid=yes
11049 else case e in #(
11050 e) eval $cacheid=no ;;
11051 esac
11052 fi
11053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11054 conftest$ac_exeext conftest.$ac_ext ;;
11055 esac
11056 fi
11057
11058
11059 CFLAGS="$xorg_testset_save_CFLAGS"
11060
11061 eval supported=\$$cacheid
11062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11063 printf "%s\n" "$supported" >&6; }
11064 if test "$supported" = "yes" ; then
11065 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11066 found="yes"
11067 fi
11068 fi
11069
11070 if test $found = "no" ; then
11071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11073 fi
11074
11075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11077 fi
11078
11079 CFLAGS="$CFLAGS -errwarn"
11080
11081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11082 printf %s "checking if $CC supports -errwarn... " >&6; }
11083 cacheid=xorg_cv_cc_flag__errwarn
11084 if eval test \${$cacheid+y}
11085 then :
11086 printf %s "(cached) " >&6
11087 else case e in #(
11088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11089 /* end confdefs.h. */
11090 int i;
11091 int
11092 main (void)
11093 {
11094
11095 ;
11096 return 0;
11097 }
11098 _ACEOF
11099 if ac_fn_c_try_link "$LINENO"
11100 then :
11101 eval $cacheid=yes
11102 else case e in #(
11103 e) eval $cacheid=no ;;
11104 esac
11105 fi
11106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11107 conftest$ac_exeext conftest.$ac_ext ;;
11108 esac
11109 fi
11110
11111
11112 CFLAGS="$xorg_testset_save_CFLAGS"
11113
11114 eval supported=\$$cacheid
11115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11116 printf "%s\n" "$supported" >&6; }
11117 if test "$supported" = "yes" ; then
11118 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11119 found="yes"
11120 fi
11121 fi
11122
11123
11124
11125 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11126 # activate it with -Werror, so we add it here explicitly.
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140 xorg_testset_save_CFLAGS="$CFLAGS"
11141
11142 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11143 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11145 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11146 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11147 then :
11148 printf %s "(cached) " >&6
11149 else case e in #(
11150 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11151 /* end confdefs.h. */
11152 int i;
11153 _ACEOF
11154 if ac_fn_c_try_compile "$LINENO"
11155 then :
11156 xorg_cv_cc_flag_unknown_warning_option=yes
11157 else case e in #(
11158 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11159 esac
11160 fi
11161 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11162 esac
11163 fi
11164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11165 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11167 CFLAGS="$xorg_testset_save_CFLAGS"
11168 fi
11169
11170 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11173 fi
11174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11176 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11177 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11178 then :
11179 printf %s "(cached) " >&6
11180 else case e in #(
11181 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11183 int i;
11184 _ACEOF
11185 if ac_fn_c_try_compile "$LINENO"
11186 then :
11187 xorg_cv_cc_flag_unused_command_line_argument=yes
11188 else case e in #(
11189 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11190 esac
11191 fi
11192 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11193 esac
11194 fi
11195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11196 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11197 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11198 CFLAGS="$xorg_testset_save_CFLAGS"
11199 fi
11200
11201 found="no"
11202
11203 if test $found = "no" ; then
11204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11206 fi
11207
11208 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11210 fi
11211
11212 CFLAGS="$CFLAGS -Werror=attributes"
11213
11214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11215 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11216 cacheid=xorg_cv_cc_flag__Werror_attributes
11217 if eval test \${$cacheid+y}
11218 then :
11219 printf %s "(cached) " >&6
11220 else case e in #(
11221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11222 /* end confdefs.h. */
11223 int i;
11224 int
11225 main (void)
11226 {
11227
11228 ;
11229 return 0;
11230 }
11231 _ACEOF
11232 if ac_fn_c_try_link "$LINENO"
11233 then :
11234 eval $cacheid=yes
11235 else case e in #(
11236 e) eval $cacheid=no ;;
11237 esac
11238 fi
11239 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11240 conftest$ac_exeext conftest.$ac_ext ;;
11241 esac
11242 fi
11243
11244
11245 CFLAGS="$xorg_testset_save_CFLAGS"
11246
11247 eval supported=\$$cacheid
11248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11249 printf "%s\n" "$supported" >&6; }
11250 if test "$supported" = "yes" ; then
11251 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11252 found="yes"
11253 fi
11254 fi
11255
11256
11257
11258 if test "x$STRICT_COMPILE" = "xyes"; then
11259 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11260 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11261 fi
11262
11263
11264
11265
11266
11267
11268
11269
11270 cat >>confdefs.h <<_ACEOF
11271 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11272 _ACEOF
11273
11274 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11275 if test "x$PVM" = "x"; then
11276 PVM="0"
11277 fi
11278
11279 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11280
11281 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11282 if test "x$PVP" = "x"; then
11283 PVP="0"
11284 fi
11285
11286 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11287
11288
11289
11290 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11291 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11292 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11293 touch \$(top_srcdir)/ChangeLog; \
11294 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11295
11296
11297
11298
11299 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11300 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11301 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11302 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11303 touch \$(top_srcdir)/INSTALL; \
11304 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11305
11306
11307
11308
11309
11310
11311 case $host_os in
11312 solaris*)
11313 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11314 # check for a man page file found in later versions that use
11315 # traditional section numbers instead
11316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11317 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11318 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11319 then :
11320 printf %s "(cached) " >&6
11321 else case e in #(
11322 e) test "$cross_compiling" = yes &&
11323 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11324 if test -r "/usr/share/man/man7/attributes.7"; then
11325 ac_cv_file__usr_share_man_man7_attributes_7=yes
11326 else
11327 ac_cv_file__usr_share_man_man7_attributes_7=no
11328 fi ;;
11329 esac
11330 fi
11331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11332 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11333 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11334 then :
11335 SYSV_MAN_SECTIONS=false
11336 else case e in #(
11337 e) SYSV_MAN_SECTIONS=true ;;
11338 esac
11339 fi
11340
11341 ;;
11342 *) SYSV_MAN_SECTIONS=false ;;
11343 esac
11344
11345 if test x$APP_MAN_SUFFIX = x ; then
11346 APP_MAN_SUFFIX=1
11347 fi
11348 if test x$APP_MAN_DIR = x ; then
11349 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11350 fi
11351
11352 if test x$LIB_MAN_SUFFIX = x ; then
11353 LIB_MAN_SUFFIX=3
11354 fi
11355 if test x$LIB_MAN_DIR = x ; then
11356 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11357 fi
11358
11359 if test x$FILE_MAN_SUFFIX = x ; then
11360 case $SYSV_MAN_SECTIONS in
11361 true) FILE_MAN_SUFFIX=4 ;;
11362 *) FILE_MAN_SUFFIX=5 ;;
11363 esac
11364 fi
11365 if test x$FILE_MAN_DIR = x ; then
11366 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11367 fi
11368
11369 if test x$MISC_MAN_SUFFIX = x ; then
11370 case $SYSV_MAN_SECTIONS in
11371 true) MISC_MAN_SUFFIX=5 ;;
11372 *) MISC_MAN_SUFFIX=7 ;;
11373 esac
11374 fi
11375 if test x$MISC_MAN_DIR = x ; then
11376 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11377 fi
11378
11379 if test x$DRIVER_MAN_SUFFIX = x ; then
11380 case $SYSV_MAN_SECTIONS in
11381 true) DRIVER_MAN_SUFFIX=7 ;;
11382 *) DRIVER_MAN_SUFFIX=4 ;;
11383 esac
11384 fi
11385 if test x$DRIVER_MAN_DIR = x ; then
11386 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11387 fi
11388
11389 if test x$ADMIN_MAN_SUFFIX = x ; then
11390 case $SYSV_MAN_SECTIONS in
11391 true) ADMIN_MAN_SUFFIX=1m ;;
11392 *) ADMIN_MAN_SUFFIX=8 ;;
11393 esac
11394 fi
11395 if test x$ADMIN_MAN_DIR = x ; then
11396 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11397 fi
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413 XORG_MAN_PAGE="X Version 11"
11414
11415 MAN_SUBSTS="\
11416 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11417 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11418 -e 's|__xservername__|Xorg|g' \
11419 -e 's|__xconfigfile__|xorg.conf|g' \
11420 -e 's|__projectroot__|\$(prefix)|g' \
11421 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11422 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11423 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11424 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11425 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11426 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11427 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11428
11429
11430
11431 # Check whether --enable-silent-rules was given.
11432 if test ${enable_silent_rules+y}
11433 then :
11434 enableval=$enable_silent_rules;
11435 fi
11436
11437 case $enable_silent_rules in # (((
11438 yes) AM_DEFAULT_VERBOSITY=0;;
11439 no) AM_DEFAULT_VERBOSITY=1;;
11440 *) AM_DEFAULT_VERBOSITY=0;;
11441 esac
11442 am_make=${MAKE-make}
11443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11444 printf %s "checking whether $am_make supports nested variables... " >&6; }
11445 if test ${am_cv_make_support_nested_variables+y}
11446 then :
11447 printf %s "(cached) " >&6
11448 else case e in #(
11449 e) if printf "%s\n" 'TRUE=$(BAR$(V))
11450 BAR0=false
11451 BAR1=true
11452 V=1
11453 am__doit:
11454 @$(TRUE)
11455 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11456 am_cv_make_support_nested_variables=yes
11457 else
11458 am_cv_make_support_nested_variables=no
11459 fi ;;
11460 esac
11461 fi
11462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11463 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11464 if test $am_cv_make_support_nested_variables = yes; then
11465 AM_V='$(V)'
11466 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11467 else
11468 AM_V=$AM_DEFAULT_VERBOSITY
11469 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11470 fi
11471 AM_BACKSLASH='\'
11472
11473
11474
11475
11476
11477 pkg_failed=no
11478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFONTSEL" >&5
11479 printf %s "checking for XFONTSEL... " >&6; }
11480
11481 if test -n "$XFONTSEL_CFLAGS"; then
11482 pkg_cv_XFONTSEL_CFLAGS="$XFONTSEL_CFLAGS"
11483 elif test -n "$PKG_CONFIG"; then
11484 if test -n "$PKG_CONFIG" && \
11485 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5
11486 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5
11487 ac_status=$?
11488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11489 test $ac_status = 0; }; then
11490 pkg_cv_XFONTSEL_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null`
11491 test "x$?" != "x0" && pkg_failed=yes
11492 else
11493 pkg_failed=yes
11494 fi
11495 else
11496 pkg_failed=untried
11497 fi
11498 if test -n "$XFONTSEL_LIBS"; then
11499 pkg_cv_XFONTSEL_LIBS="$XFONTSEL_LIBS"
11500 elif test -n "$PKG_CONFIG"; then
11501 if test -n "$PKG_CONFIG" && \
11502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt x11 xproto >= 7.0.17\""; } >&5
11503 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt x11 xproto >= 7.0.17") 2>&5
11504 ac_status=$?
11505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506 test $ac_status = 0; }; then
11507 pkg_cv_XFONTSEL_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>/dev/null`
11508 test "x$?" != "x0" && pkg_failed=yes
11509 else
11510 pkg_failed=yes
11511 fi
11512 else
11513 pkg_failed=untried
11514 fi
11515
11516
11517
11518 if test $pkg_failed = yes; then
11519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 printf "%s\n" "no" >&6; }
11521
11522 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11523 _pkg_short_errors_supported=yes
11524 else
11525 _pkg_short_errors_supported=no
11526 fi
11527 if test $_pkg_short_errors_supported = yes; then
11528 XFONTSEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1`
11529 else
11530 XFONTSEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt x11 xproto >= 7.0.17" 2>&1`
11531 fi
11532 # Put the nasty error message in config.log where it belongs
11533 echo "$XFONTSEL_PKG_ERRORS" >&5
11534
11535 as_fn_error $? "Package requirements (xaw7 xmu xt x11 xproto >= 7.0.17) were not met:
11536
11537 $XFONTSEL_PKG_ERRORS
11538
11539 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11540 installed software in a non-standard prefix.
11541
11542 Alternatively, you may set the environment variables XFONTSEL_CFLAGS
11543 and XFONTSEL_LIBS to avoid the need to call pkg-config.
11544 See the pkg-config man page for more details." "$LINENO" 5
11545 elif test $pkg_failed = untried; then
11546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11547 printf "%s\n" "no" >&6; }
11548 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11549 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11550 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11551 is in your PATH or set the PKG_CONFIG environment variable to the full
11552 path to pkg-config.
11553
11554 Alternatively, you may set the environment variables XFONTSEL_CFLAGS
11555 and XFONTSEL_LIBS to avoid the need to call pkg-config.
11556 See the pkg-config man page for more details.
11557
11558 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11559 See 'config.log' for more details" "$LINENO" 5; }
11560 else
11561 XFONTSEL_CFLAGS=$pkg_cv_XFONTSEL_CFLAGS
11562 XFONTSEL_LIBS=$pkg_cv_XFONTSEL_LIBS
11563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11564 printf "%s\n" "yes" >&6; }
11565
11566 fi
11567
11568
11569 pkg_failed=no
11570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11571 printf %s "checking for APPDEFS... " >&6; }
11572
11573 if test -n "$APPDEFS_CFLAGS"; then
11574 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11575 elif test -n "$PKG_CONFIG"; then
11576 if test -n "$PKG_CONFIG" && \
11577 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11578 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11579 ac_status=$?
11580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11581 test $ac_status = 0; }; then
11582 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11583 test "x$?" != "x0" && pkg_failed=yes
11584 else
11585 pkg_failed=yes
11586 fi
11587 else
11588 pkg_failed=untried
11589 fi
11590 if test -n "$APPDEFS_LIBS"; then
11591 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11592 elif test -n "$PKG_CONFIG"; then
11593 if test -n "$PKG_CONFIG" && \
11594 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11595 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11596 ac_status=$?
11597 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11598 test $ac_status = 0; }; then
11599 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11600 test "x$?" != "x0" && pkg_failed=yes
11601 else
11602 pkg_failed=yes
11603 fi
11604 else
11605 pkg_failed=untried
11606 fi
11607
11608
11609
11610 if test $pkg_failed = yes; then
11611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11612 printf "%s\n" "no" >&6; }
11613
11614 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11615 _pkg_short_errors_supported=yes
11616 else
11617 _pkg_short_errors_supported=no
11618 fi
11619 if test $_pkg_short_errors_supported = yes; then
11620 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11621 else
11622 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11623 fi
11624 # Put the nasty error message in config.log where it belongs
11625 echo "$APPDEFS_PKG_ERRORS" >&5
11626
11627 as_fn_error $? "Package requirements (xt) were not met:
11628
11629 $APPDEFS_PKG_ERRORS
11630
11631 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11632 installed software in a non-standard prefix.
11633
11634 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11635 and APPDEFS_LIBS to avoid the need to call pkg-config.
11636 See the pkg-config man page for more details." "$LINENO" 5
11637 elif test $pkg_failed = untried; then
11638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 printf "%s\n" "no" >&6; }
11640 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11641 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
11642 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11643 is in your PATH or set the PKG_CONFIG environment variable to the full
11644 path to pkg-config.
11645
11646 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11647 and APPDEFS_LIBS to avoid the need to call pkg-config.
11648 See the pkg-config man page for more details.
11649
11650 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11651 See 'config.log' for more details" "$LINENO" 5; }
11652 else
11653 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11654 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11656 printf "%s\n" "yes" >&6; }
11657
11658 fi
11659 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11660
11661 # Check whether --with-appdefaultdir was given.
11662 if test ${with_appdefaultdir+y}
11663 then :
11664 withval=$with_appdefaultdir; appdefaultdir="$withval"
11665 else case e in #(
11666 e) appdefaultdir="${xt_appdefaultdir}" ;;
11667 esac
11668 fi
11669
11670
11671
11672 # Internationalization & localization support
11673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gettext" >&5
11674 printf %s "checking for library containing gettext... " >&6; }
11675 if test ${ac_cv_search_gettext+y}
11676 then :
11677 printf %s "(cached) " >&6
11678 else case e in #(
11679 e) ac_func_search_save_LIBS=$LIBS
11680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681 /* end confdefs.h. */
11682
11683 /* Override any GCC internal prototype to avoid an error.
11684 Use char because int might match the return type of a GCC
11685 builtin and then its argument prototype would still apply.
11686 The 'extern "C"' is for builds by C++ compilers;
11687 although this is not generally supported in C code supporting it here
11688 has little cost and some practical benefit (sr 110532). */
11689 #ifdef __cplusplus
11690 extern "C"
11691 #endif
11692 char gettext (void);
11693 int
11694 main (void)
11695 {
11696 return gettext ();
11697 ;
11698 return 0;
11699 }
11700 _ACEOF
11701 for ac_lib in '' intl
11702 do
11703 if test -z "$ac_lib"; then
11704 ac_res="none required"
11705 else
11706 ac_res=-l$ac_lib
11707 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11708 fi
11709 if ac_fn_c_try_link "$LINENO"
11710 then :
11711 ac_cv_search_gettext=$ac_res
11712 fi
11713 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11714 conftest$ac_exeext
11715 if test ${ac_cv_search_gettext+y}
11716 then :
11717 break
11718 fi
11719 done
11720 if test ${ac_cv_search_gettext+y}
11721 then :
11722
11723 else case e in #(
11724 e) ac_cv_search_gettext=no ;;
11725 esac
11726 fi
11727 rm conftest.$ac_ext
11728 LIBS=$ac_func_search_save_LIBS ;;
11729 esac
11730 fi
11731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gettext" >&5
11732 printf "%s\n" "$ac_cv_search_gettext" >&6; }
11733 ac_res=$ac_cv_search_gettext
11734 if test "$ac_res" != no
11735 then :
11736 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11737 USE_GETTEXT="yes"
11738 else case e in #(
11739 e) USE_GETTEXT="no" ;;
11740 esac
11741 fi
11742
11743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to install localized messages" >&5
11744 printf %s "checking where to install localized messages... " >&6; }
11745
11746 # Check whether --with-localedir was given.
11747 if test ${with_localedir+y}
11748 then :
11749 withval=$with_localedir; LOCALEDIR=${withval}
11750 else case e in #(
11751 e) LOCALEDIR=${datadir}/locale ;;
11752 esac
11753 fi
11754
11755 if test "x$LOCALEDIR" = "xno" -o "x$USE_GETTEXT" = "xno" ; then
11756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: nowhere" >&5
11757 printf "%s\n" "nowhere" >&6; }
11758 USE_GETTEXT="no"
11759 else
11760
11761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALEDIR" >&5
11762 printf "%s\n" "$LOCALEDIR" >&6; }
11763 fi
11764
11765 if test "x$USE_GETTEXT" = "xyes" ; then
11766
11767 printf "%s\n" "#define USE_GETTEXT 1" >>confdefs.h
11768
11769 fi
11770 if test "x$USE_GETTEXT" = "xyes"; then
11771 USE_GETTEXT_TRUE=
11772 USE_GETTEXT_FALSE='#'
11773 else
11774 USE_GETTEXT_TRUE='#'
11775 USE_GETTEXT_FALSE=
11776 fi
11777
11778
11779
11780 ac_config_files="$ac_config_files Makefile man/Makefile"
11781
11782 cat >confcache <<\_ACEOF
11783 # This file is a shell script that caches the results of configure
11784 # tests run on this system so they can be shared between configure
11785 # scripts and configure runs, see configure's option --config-cache.
11786 # It is not useful on other systems. If it contains results you don't
11787 # want to keep, you may remove or edit it.
11788 #
11789 # config.status only pays attention to the cache file if you give it
11790 # the --recheck option to rerun configure.
11791 #
11792 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
11793 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
11794 # following values.
11795
11796 _ACEOF
11797
11798 # The following way of writing the cache mishandles newlines in values,
11799 # but we know of no workaround that is simple, portable, and efficient.
11800 # So, we kill variables containing newlines.
11801 # Ultrix sh set writes to stderr and can't be redirected directly,
11802 # and sets the high bit in the cache file unless we assign to the vars.
11803 (
11804 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11805 eval ac_val=\$$ac_var
11806 case $ac_val in #(
11807 *${as_nl}*)
11808 case $ac_var in #(
11809 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11810 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11811 esac
11812 case $ac_var in #(
11813 _ | IFS | as_nl) ;; #(
11814 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11815 *) { eval $ac_var=; unset $ac_var;} ;;
11816 esac ;;
11817 esac
11818 done
11819
11820 (set) 2>&1 |
11821 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11822 *${as_nl}ac_space=\ *)
11823 # 'set' does not quote correctly, so add quotes: double-quote
11824 # substitution turns \\\\ into \\, and sed turns \\ into \.
11825 sed -n \
11826 "s/'/'\\\\''/g;
11827 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11828 ;; #(
11829 *)
11830 # 'set' quotes correctly as required by POSIX, so do not add quotes.
11831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11832 ;;
11833 esac |
11834 sort
11835 ) |
11836 sed '
11837 /^ac_cv_env_/b end
11838 t clear
11839 :clear
11840 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11841 t end
11842 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11843 :end' >>confcache
11844 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11845 if test -w "$cache_file"; then
11846 if test "x$cache_file" != "x/dev/null"; then
11847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11848 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11849 if test ! -f "$cache_file" || test -h "$cache_file"; then
11850 cat confcache >"$cache_file"
11851 else
11852 case $cache_file in #(
11853 */* | ?:*)
11854 mv -f confcache "$cache_file"$$ &&
11855 mv -f "$cache_file"$$ "$cache_file" ;; #(
11856 *)
11857 mv -f confcache "$cache_file" ;;
11858 esac
11859 fi
11860 fi
11861 else
11862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11863 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11864 fi
11865 fi
11866 rm -f confcache
11867
11868 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11869 # Let make expand exec_prefix.
11870 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11871
11872 DEFS=-DHAVE_CONFIG_H
11873
11874 ac_libobjs=
11875 ac_ltlibobjs=
11876 U=
11877 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11878 # 1. Remove the extension, and $U if already installed.
11879 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11880 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11881 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11882 # will be set to the directory where LIBOBJS objects are built.
11883 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11884 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11885 done
11886 LIBOBJS=$ac_libobjs
11887
11888 LTLIBOBJS=$ac_ltlibobjs
11889
11890
11891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11892 printf %s "checking that generated files are newer than configure... " >&6; }
11893 if test -n "$am_sleep_pid"; then
11894 # Hide warnings about reused PIDs.
11895 wait $am_sleep_pid 2>/dev/null
11896 fi
11897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11898 printf "%s\n" "done" >&6; }
11899 if test -n "$EXEEXT"; then
11900 am__EXEEXT_TRUE=
11901 am__EXEEXT_FALSE='#'
11902 else
11903 am__EXEEXT_TRUE='#'
11904 am__EXEEXT_FALSE=
11905 fi
11906
11907 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11908 as_fn_error $? "conditional \"AMDEP\" was never defined.
11909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11910 fi
11911 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11912 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11914 fi
11915 if test -z "${USE_GETTEXT_TRUE}" && test -z "${USE_GETTEXT_FALSE}"; then
11916 as_fn_error $? "conditional \"USE_GETTEXT\" was never defined.
11917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11918 fi
11919
11920 : "${CONFIG_STATUS=./config.status}"
11921 ac_write_fail=0
11922 ac_clean_files_save=$ac_clean_files
11923 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11925 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
11926 as_write_fail=0
11927 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11928 #! $SHELL
11929 # Generated by $as_me.
11930 # Run this file to recreate the current configuration.
11931 # Compiler output produced by configure, useful for debugging
11932 # configure, is in config.log if it exists.
11933
11934 debug=false
11935 ac_cs_recheck=false
11936 ac_cs_silent=false
11937
11938 SHELL=\${CONFIG_SHELL-$SHELL}
11939 export SHELL
11940 _ASEOF
11941 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11942 ## -------------------- ##
11943 ## M4sh Initialization. ##
11944 ## -------------------- ##
11945
11946 # Be more Bourne compatible
11947 DUALCASE=1; export DUALCASE # for MKS sh
11948 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
11949 then :
11950 emulate sh
11951 NULLCMD=:
11952 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11953 # is contrary to our usage. Disable this feature.
11954 alias -g '${1+"$@"}'='"$@"'
11955 setopt NO_GLOB_SUBST
11956 else case e in #(
11957 e) case `(set -o) 2>/dev/null` in #(
11958 *posix*) :
11959 set -o posix ;; #(
11960 *) :
11961 ;;
11962 esac ;;
11963 esac
11964 fi
11965
11966
11967
11968 # Reset variables that may have inherited troublesome values from
11969 # the environment.
11970
11971 # IFS needs to be set, to space, tab, and newline, in precisely that order.
11972 # (If _AS_PATH_WALK were called with IFS unset, it would have the
11973 # side effect of setting IFS to empty, thus disabling word splitting.)
11974 # Quoting is to prevent editors from complaining about space-tab.
11975 as_nl='
11976 '
11977 export as_nl
11978 IFS=" "" $as_nl"
11979
11980 PS1='$ '
11981 PS2='> '
11982 PS4='+ '
11983
11984 # Ensure predictable behavior from utilities with locale-dependent output.
11985 LC_ALL=C
11986 export LC_ALL
11987 LANGUAGE=C
11988 export LANGUAGE
11989
11990 # We cannot yet rely on "unset" to work, but we need these variables
11991 # to be unset--not just set to an empty or harmless value--now, to
11992 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
11993 # also avoids known problems related to "unset" and subshell syntax
11994 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
11995 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
11996 do eval test \${$as_var+y} \
11997 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11998 done
11999
12000 # Ensure that fds 0, 1, and 2 are open.
12001 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12002 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12003 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12004
12005 # The user is always right.
12006 if ${PATH_SEPARATOR+false} :; then
12007 PATH_SEPARATOR=:
12008 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12009 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12010 PATH_SEPARATOR=';'
12011 }
12012 fi
12013
12014
12015 # Find who we are. Look in the path if we contain no directory separator.
12016 as_myself=
12017 case $0 in #((
12018 *[\\/]* ) as_myself=$0 ;;
12019 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020 for as_dir in $PATH
12021 do
12022 IFS=$as_save_IFS
12023 case $as_dir in #(((
12024 '') as_dir=./ ;;
12025 */) ;;
12026 *) as_dir=$as_dir/ ;;
12027 esac
12028 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12029 done
12030 IFS=$as_save_IFS
12031
12032 ;;
12033 esac
12034 # We did not find ourselves, most probably we were run as 'sh COMMAND'
12035 # in which case we are not to be found in the path.
12036 if test "x$as_myself" = x; then
12037 as_myself=$0
12038 fi
12039 if test ! -f "$as_myself"; then
12040 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12041 exit 1
12042 fi
12043
12044
12045
12046 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12047 # ----------------------------------------
12048 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12049 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12050 # script with STATUS, using 1 if that was 0.
12051 as_fn_error ()
12052 {
12053 as_status=$1; test $as_status -eq 0 && as_status=1
12054 if test "$4"; then
12055 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12057 fi
12058 printf "%s\n" "$as_me: error: $2" >&2
12059 as_fn_exit $as_status
12060 } # as_fn_error
12061
12062
12063 # as_fn_set_status STATUS
12064 # -----------------------
12065 # Set $? to STATUS, without forking.
12066 as_fn_set_status ()
12067 {
12068 return $1
12069 } # as_fn_set_status
12070
12071 # as_fn_exit STATUS
12072 # -----------------
12073 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12074 as_fn_exit ()
12075 {
12076 set +e
12077 as_fn_set_status $1
12078 exit $1
12079 } # as_fn_exit
12080
12081 # as_fn_unset VAR
12082 # ---------------
12083 # Portably unset VAR.
12084 as_fn_unset ()
12085 {
12086 { eval $1=; unset $1;}
12087 }
12088 as_unset=as_fn_unset
12089
12090 # as_fn_append VAR VALUE
12091 # ----------------------
12092 # Append the text in VALUE to the end of the definition contained in VAR. Take
12093 # advantage of any shell optimizations that allow amortized linear growth over
12094 # repeated appends, instead of the typical quadratic growth present in naive
12095 # implementations.
12096 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12097 then :
12098 eval 'as_fn_append ()
12099 {
12100 eval $1+=\$2
12101 }'
12102 else case e in #(
12103 e) as_fn_append ()
12104 {
12105 eval $1=\$$1\$2
12106 } ;;
12107 esac
12108 fi # as_fn_append
12109
12110 # as_fn_arith ARG...
12111 # ------------------
12112 # Perform arithmetic evaluation on the ARGs, and store the result in the
12113 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12114 # must be portable across $(()) and expr.
12115 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12116 then :
12117 eval 'as_fn_arith ()
12118 {
12119 as_val=$(( $* ))
12120 }'
12121 else case e in #(
12122 e) as_fn_arith ()
12123 {
12124 as_val=`expr "$@" || test $? -eq 1`
12125 } ;;
12126 esac
12127 fi # as_fn_arith
12128
12129
12130 if expr a : '\(a\)' >/dev/null 2>&1 &&
12131 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12132 as_expr=expr
12133 else
12134 as_expr=false
12135 fi
12136
12137 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12138 as_basename=basename
12139 else
12140 as_basename=false
12141 fi
12142
12143 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12144 as_dirname=dirname
12145 else
12146 as_dirname=false
12147 fi
12148
12149 as_me=`$as_basename -- "$0" ||
12150 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12151 X"$0" : 'X\(//\)$' \| \
12152 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12153 printf "%s\n" X/"$0" |
12154 sed '/^.*\/\([^/][^/]*\)\/*$/{
12155 s//\1/
12156 q
12157 }
12158 /^X\/\(\/\/\)$/{
12159 s//\1/
12160 q
12161 }
12162 /^X\/\(\/\).*/{
12163 s//\1/
12164 q
12165 }
12166 s/.*/./; q'`
12167
12168 # Avoid depending upon Character Ranges.
12169 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12170 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12171 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12172 as_cr_digits='0123456789'
12173 as_cr_alnum=$as_cr_Letters$as_cr_digits
12174
12175
12176 # Determine whether it's possible to make 'echo' print without a newline.
12177 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12178 # for compatibility with existing Makefiles.
12179 ECHO_C= ECHO_N= ECHO_T=
12180 case `echo -n x` in #(((((
12181 -n*)
12182 case `echo 'xy\c'` in
12183 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12184 xy) ECHO_C='\c';;
12185 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12186 ECHO_T=' ';;
12187 esac;;
12188 *)
12189 ECHO_N='-n';;
12190 esac
12191
12192 # For backward compatibility with old third-party macros, we provide
12193 # the shell variables $as_echo and $as_echo_n. New code should use
12194 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12195 as_echo='printf %s\n'
12196 as_echo_n='printf %s'
12197
12198 rm -f conf$$ conf$$.exe conf$$.file
12199 if test -d conf$$.dir; then
12200 rm -f conf$$.dir/conf$$.file
12201 else
12202 rm -f conf$$.dir
12203 mkdir conf$$.dir 2>/dev/null
12204 fi
12205 if (echo >conf$$.file) 2>/dev/null; then
12206 if ln -s conf$$.file conf$$ 2>/dev/null; then
12207 as_ln_s='ln -s'
12208 # ... but there are two gotchas:
12209 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
12210 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
12211 # In both cases, we have to default to 'cp -pR'.
12212 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12213 as_ln_s='cp -pR'
12214 elif ln conf$$.file conf$$ 2>/dev/null; then
12215 as_ln_s=ln
12216 else
12217 as_ln_s='cp -pR'
12218 fi
12219 else
12220 as_ln_s='cp -pR'
12221 fi
12222 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12223 rmdir conf$$.dir 2>/dev/null
12224
12225
12226 # as_fn_mkdir_p
12227 # -------------
12228 # Create "$as_dir" as a directory, including parents if necessary.
12229 as_fn_mkdir_p ()
12230 {
12231
12232 case $as_dir in #(
12233 -*) as_dir=./$as_dir;;
12234 esac
12235 test -d "$as_dir" || eval $as_mkdir_p || {
12236 as_dirs=
12237 while :; do
12238 case $as_dir in #(
12239 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12240 *) as_qdir=$as_dir;;
12241 esac
12242 as_dirs="'$as_qdir' $as_dirs"
12243 as_dir=`$as_dirname -- "$as_dir" ||
12244 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12245 X"$as_dir" : 'X\(//\)[^/]' \| \
12246 X"$as_dir" : 'X\(//\)$' \| \
12247 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12248 printf "%s\n" X"$as_dir" |
12249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12250 s//\1/
12251 q
12252 }
12253 /^X\(\/\/\)[^/].*/{
12254 s//\1/
12255 q
12256 }
12257 /^X\(\/\/\)$/{
12258 s//\1/
12259 q
12260 }
12261 /^X\(\/\).*/{
12262 s//\1/
12263 q
12264 }
12265 s/.*/./; q'`
12266 test -d "$as_dir" && break
12267 done
12268 test -z "$as_dirs" || eval "mkdir $as_dirs"
12269 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12270
12271
12272 } # as_fn_mkdir_p
12273 if mkdir -p . 2>/dev/null; then
12274 as_mkdir_p='mkdir -p "$as_dir"'
12275 else
12276 test -d ./-p && rmdir ./-p
12277 as_mkdir_p=false
12278 fi
12279
12280
12281 # as_fn_executable_p FILE
12282 # -----------------------
12283 # Test if FILE is an executable regular file.
12284 as_fn_executable_p ()
12285 {
12286 test -f "$1" && test -x "$1"
12287 } # as_fn_executable_p
12288 as_test_x='test -x'
12289 as_executable_p=as_fn_executable_p
12290
12291 # Sed expression to map a string onto a valid CPP name.
12292 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
12293 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
12294
12295 # Sed expression to map a string onto a valid variable name.
12296 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
12297 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
12298
12299
12300 exec 6>&1
12301 ## ----------------------------------- ##
12302 ## Main body of $CONFIG_STATUS script. ##
12303 ## ----------------------------------- ##
12304 _ASEOF
12305 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12306
12307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12308 # Save the log message, to keep $0 and so on meaningful, and to
12309 # report actual input values of CONFIG_FILES etc. instead of their
12310 # values after options handling.
12311 ac_log="
12312 This file was extended by xfontsel $as_me 1.1.1, which was
12313 generated by GNU Autoconf 2.72. Invocation command line was
12314
12315 CONFIG_FILES = $CONFIG_FILES
12316 CONFIG_HEADERS = $CONFIG_HEADERS
12317 CONFIG_LINKS = $CONFIG_LINKS
12318 CONFIG_COMMANDS = $CONFIG_COMMANDS
12319 $ $0 $@
12320
12321 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12322 "
12323
12324 _ACEOF
12325
12326 case $ac_config_files in *"
12327 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12328 esac
12329
12330 case $ac_config_headers in *"
12331 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12332 esac
12333
12334
12335 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12336 # Files that config.status was made for.
12337 config_files="$ac_config_files"
12338 config_headers="$ac_config_headers"
12339 config_commands="$ac_config_commands"
12340
12341 _ACEOF
12342
12343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12344 ac_cs_usage="\
12345 '$as_me' instantiates files and other configuration actions
12346 from templates according to the current configuration. Unless the files
12347 and actions are specified as TAGs, all are instantiated by default.
12348
12349 Usage: $0 [OPTION]... [TAG]...
12350
12351 -h, --help print this help, then exit
12352 -V, --version print version number and configuration settings, then exit
12353 --config print configuration, then exit
12354 -q, --quiet, --silent
12355 do not print progress messages
12356 -d, --debug don't remove temporary files
12357 --recheck update $as_me by reconfiguring in the same conditions
12358 --file=FILE[:TEMPLATE]
12359 instantiate the configuration file FILE
12360 --header=FILE[:TEMPLATE]
12361 instantiate the configuration header FILE
12362
12363 Configuration files:
12364 $config_files
12365
12366 Configuration headers:
12367 $config_headers
12368
12369 Configuration commands:
12370 $config_commands
12371
12372 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfontsel/-/issues>."
12373
12374 _ACEOF
12375 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12376 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12378 ac_cs_config='$ac_cs_config_escaped'
12379 ac_cs_version="\\
12380 xfontsel config.status 1.1.1
12381 configured by $0, generated by GNU Autoconf 2.72,
12382 with options \\"\$ac_cs_config\\"
12383
12384 Copyright (C) 2023 Free Software Foundation, Inc.
12385 This config.status script is free software; the Free Software Foundation
12386 gives unlimited permission to copy, distribute and modify it."
12387
12388 ac_pwd='$ac_pwd'
12389 srcdir='$srcdir'
12390 INSTALL='$INSTALL'
12391 MKDIR_P='$MKDIR_P'
12392 AWK='$AWK'
12393 test -n "\$AWK" || AWK=awk
12394 _ACEOF
12395
12396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12397 # The default lists apply if the user does not specify any file.
12398 ac_need_defaults=:
12399 while test $# != 0
12400 do
12401 case $1 in
12402 --*=?*)
12403 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12404 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12405 ac_shift=:
12406 ;;
12407 --*=)
12408 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12409 ac_optarg=
12410 ac_shift=:
12411 ;;
12412 *)
12413 ac_option=$1
12414 ac_optarg=$2
12415 ac_shift=shift
12416 ;;
12417 esac
12418
12419 case $ac_option in
12420 # Handling of the options.
12421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12422 ac_cs_recheck=: ;;
12423 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12424 printf "%s\n" "$ac_cs_version"; exit ;;
12425 --config | --confi | --conf | --con | --co | --c )
12426 printf "%s\n" "$ac_cs_config"; exit ;;
12427 --debug | --debu | --deb | --de | --d | -d )
12428 debug=: ;;
12429 --file | --fil | --fi | --f )
12430 $ac_shift
12431 case $ac_optarg in
12432 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12433 '') as_fn_error $? "missing file argument" ;;
12434 esac
12435 as_fn_append CONFIG_FILES " '$ac_optarg'"
12436 ac_need_defaults=false;;
12437 --header | --heade | --head | --hea )
12438 $ac_shift
12439 case $ac_optarg in
12440 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12441 esac
12442 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12443 ac_need_defaults=false;;
12444 --he | --h)
12445 # Conflict between --help and --header
12446 as_fn_error $? "ambiguous option: '$1'
12447 Try '$0 --help' for more information.";;
12448 --help | --hel | -h )
12449 printf "%s\n" "$ac_cs_usage"; exit ;;
12450 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12451 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12452 ac_cs_silent=: ;;
12453
12454 # This is an error.
12455 -*) as_fn_error $? "unrecognized option: '$1'
12456 Try '$0 --help' for more information." ;;
12457
12458 *) as_fn_append ac_config_targets " $1"
12459 ac_need_defaults=false ;;
12460
12461 esac
12462 shift
12463 done
12464
12465 ac_configure_extra_args=
12466
12467 if $ac_cs_silent; then
12468 exec 6>/dev/null
12469 ac_configure_extra_args="$ac_configure_extra_args --silent"
12470 fi
12471
12472 _ACEOF
12473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12474 if \$ac_cs_recheck; then
12475 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12476 shift
12477 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12478 CONFIG_SHELL='$SHELL'
12479 export CONFIG_SHELL
12480 exec "\$@"
12481 fi
12482
12483 _ACEOF
12484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12485 exec 5>>config.log
12486 {
12487 echo
12488 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12489 ## Running $as_me. ##
12490 _ASBOX
12491 printf "%s\n" "$ac_log"
12492 } >&5
12493
12494 _ACEOF
12495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12496 #
12497 # INIT-COMMANDS
12498 #
12499 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12500
12501 _ACEOF
12502
12503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12504
12505 # Handling of arguments.
12506 for ac_config_target in $ac_config_targets
12507 do
12508 case $ac_config_target in
12509 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12510 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12511 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12512 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12513
12514 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
12515 esac
12516 done
12517
12518
12519 # If the user did not use the arguments to specify the items to instantiate,
12520 # then the envvar interface is used. Set only those that are not.
12521 # We use the long form for the default assignment because of an extremely
12522 # bizarre bug on SunOS 4.1.3.
12523 if $ac_need_defaults; then
12524 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12525 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12526 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12527 fi
12528
12529 # Have a temporary directory for convenience. Make it in the build tree
12530 # simply because there is no reason against having it here, and in addition,
12531 # creating and moving files from /tmp can sometimes cause problems.
12532 # Hook for its removal unless debugging.
12533 # Note that there is a small window in which the directory will not be cleaned:
12534 # after its creation but before its name has been assigned to '$tmp'.
12535 $debug ||
12536 {
12537 tmp= ac_tmp=
12538 trap 'exit_status=$?
12539 : "${ac_tmp:=$tmp}"
12540 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12541 ' 0
12542 trap 'as_fn_exit 1' 1 2 13 15
12543 }
12544 # Create a (secure) tmp directory for tmp files.
12545
12546 {
12547 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12548 test -d "$tmp"
12549 } ||
12550 {
12551 tmp=./conf$$-$RANDOM
12552 (umask 077 && mkdir "$tmp")
12553 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12554 ac_tmp=$tmp
12555
12556 # Set up the scripts for CONFIG_FILES section.
12557 # No need to generate them if there are no CONFIG_FILES.
12558 # This happens for instance with './config.status config.h'.
12559 if test -n "$CONFIG_FILES"; then
12560
12561
12562 ac_cr=`echo X | tr X '\015'`
12563 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12564 # But we know of no other shell where ac_cr would be empty at this
12565 # point, so we can use a bashism as a fallback.
12566 if test "x$ac_cr" = x; then
12567 eval ac_cr=\$\'\\r\'
12568 fi
12569 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12570 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12571 ac_cs_awk_cr='\\r'
12572 else
12573 ac_cs_awk_cr=$ac_cr
12574 fi
12575
12576 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12577 _ACEOF
12578
12579
12580 {
12581 echo "cat >conf$$subs.awk <<_ACEOF" &&
12582 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12583 echo "_ACEOF"
12584 } >conf$$subs.sh ||
12585 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12586 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12587 ac_delim='%!_!# '
12588 for ac_last_try in false false false false false :; do
12589 . ./conf$$subs.sh ||
12590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12591
12592 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12593 if test $ac_delim_n = $ac_delim_num; then
12594 break
12595 elif $ac_last_try; then
12596 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12597 else
12598 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12599 fi
12600 done
12601 rm -f conf$$subs.sh
12602
12603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12604 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12605 _ACEOF
12606 sed -n '
12607 h
12608 s/^/S["/; s/!.*/"]=/
12609 p
12610 g
12611 s/^[^!]*!//
12612 :repl
12613 t repl
12614 s/'"$ac_delim"'$//
12615 t delim
12616 :nl
12617 h
12618 s/\(.\{148\}\)..*/\1/
12619 t more1
12620 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12621 p
12622 n
12623 b repl
12624 :more1
12625 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12626 p
12627 g
12628 s/.\{148\}//
12629 t nl
12630 :delim
12631 h
12632 s/\(.\{148\}\)..*/\1/
12633 t more2
12634 s/["\\]/\\&/g; s/^/"/; s/$/"/
12635 p
12636 b
12637 :more2
12638 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12639 p
12640 g
12641 s/.\{148\}//
12642 t delim
12643 ' <conf$$subs.awk | sed '
12644 /^[^""]/{
12645 N
12646 s/\n//
12647 }
12648 ' >>$CONFIG_STATUS || ac_write_fail=1
12649 rm -f conf$$subs.awk
12650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12651 _ACAWK
12652 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12653 for (key in S) S_is_set[key] = 1
12654 FS = ""
12655
12656 }
12657 {
12658 line = $ 0
12659 nfields = split(line, field, "@")
12660 substed = 0
12661 len = length(field[1])
12662 for (i = 2; i < nfields; i++) {
12663 key = field[i]
12664 keylen = length(key)
12665 if (S_is_set[key]) {
12666 value = S[key]
12667 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12668 len += length(value) + length(field[++i])
12669 substed = 1
12670 } else
12671 len += 1 + keylen
12672 }
12673
12674 print line
12675 }
12676
12677 _ACAWK
12678 _ACEOF
12679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12680 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12681 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12682 else
12683 cat
12684 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12685 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12686 _ACEOF
12687
12688 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12689 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12690 # trailing colons and then remove the whole line if VPATH becomes empty
12691 # (actually we leave an empty line to preserve line numbers).
12692 if test "x$srcdir" = x.; then
12693 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12694 h
12695 s///
12696 s/^/:/
12697 s/[ ]*$/:/
12698 s/:\$(srcdir):/:/g
12699 s/:\${srcdir}:/:/g
12700 s/:@srcdir@:/:/g
12701 s/^:*//
12702 s/:*$//
12703 x
12704 s/\(=[ ]*\).*/\1/
12705 G
12706 s/\n//
12707 s/^[^=]*=[ ]*$//
12708 }'
12709 fi
12710
12711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12712 fi # test -n "$CONFIG_FILES"
12713
12714 # Set up the scripts for CONFIG_HEADERS section.
12715 # No need to generate them if there are no CONFIG_HEADERS.
12716 # This happens for instance with './config.status Makefile'.
12717 if test -n "$CONFIG_HEADERS"; then
12718 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12719 BEGIN {
12720 _ACEOF
12721
12722 # Transform confdefs.h into an awk script 'defines.awk', embedded as
12723 # here-document in config.status, that substitutes the proper values into
12724 # config.h.in to produce config.h.
12725
12726 # Create a delimiter string that does not exist in confdefs.h, to ease
12727 # handling of long lines.
12728 ac_delim='%!_!# '
12729 for ac_last_try in false false :; do
12730 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12731 if test -z "$ac_tt"; then
12732 break
12733 elif $ac_last_try; then
12734 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12735 else
12736 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12737 fi
12738 done
12739
12740 # For the awk script, D is an array of macro values keyed by name,
12741 # likewise P contains macro parameters if any. Preserve backslash
12742 # newline sequences.
12743
12744 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12745 sed -n '
12746 s/.\{148\}/&'"$ac_delim"'/g
12747 t rset
12748 :rset
12749 s/^[ ]*#[ ]*define[ ][ ]*/ /
12750 t def
12751 d
12752 :def
12753 s/\\$//
12754 t bsnl
12755 s/["\\]/\\&/g
12756 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12757 D["\1"]=" \3"/p
12758 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12759 d
12760 :bsnl
12761 s/["\\]/\\&/g
12762 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12763 D["\1"]=" \3\\\\\\n"\\/p
12764 t cont
12765 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12766 t cont
12767 d
12768 :cont
12769 n
12770 s/.\{148\}/&'"$ac_delim"'/g
12771 t clear
12772 :clear
12773 s/\\$//
12774 t bsnlc
12775 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12776 d
12777 :bsnlc
12778 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12779 b cont
12780 ' <confdefs.h | sed '
12781 s/'"$ac_delim"'/"\\\
12782 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12783
12784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12785 for (key in D) D_is_set[key] = 1
12786 FS = ""
12787 }
12788 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12789 line = \$ 0
12790 split(line, arg, " ")
12791 if (arg[1] == "#") {
12792 defundef = arg[2]
12793 mac1 = arg[3]
12794 } else {
12795 defundef = substr(arg[1], 2)
12796 mac1 = arg[2]
12797 }
12798 split(mac1, mac2, "(") #)
12799 macro = mac2[1]
12800 prefix = substr(line, 1, index(line, defundef) - 1)
12801 if (D_is_set[macro]) {
12802 # Preserve the white space surrounding the "#".
12803 print prefix "define", macro P[macro] D[macro]
12804 next
12805 } else {
12806 # Replace #undef with comments. This is necessary, for example,
12807 # in the case of _POSIX_SOURCE, which is predefined and required
12808 # on some systems where configure will not decide to define it.
12809 if (defundef == "undef") {
12810 print "/*", prefix defundef, macro, "*/"
12811 next
12812 }
12813 }
12814 }
12815 { print }
12816 _ACAWK
12817 _ACEOF
12818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12819 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12820 fi # test -n "$CONFIG_HEADERS"
12821
12822
12823 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12824 shift
12825 for ac_tag
12826 do
12827 case $ac_tag in
12828 :[FHLC]) ac_mode=$ac_tag; continue;;
12829 esac
12830 case $ac_mode$ac_tag in
12831 :[FHL]*:*);;
12832 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
12833 :[FH]-) ac_tag=-:-;;
12834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12835 esac
12836 ac_save_IFS=$IFS
12837 IFS=:
12838 set x $ac_tag
12839 IFS=$ac_save_IFS
12840 shift
12841 ac_file=$1
12842 shift
12843
12844 case $ac_mode in
12845 :L) ac_source=$1;;
12846 :[FH])
12847 ac_file_inputs=
12848 for ac_f
12849 do
12850 case $ac_f in
12851 -) ac_f="$ac_tmp/stdin";;
12852 *) # Look for the file first in the build tree, then in the source tree
12853 # (if the path is not absolute). The absolute path cannot be DOS-style,
12854 # because $ac_f cannot contain ':'.
12855 test -f "$ac_f" ||
12856 case $ac_f in
12857 [\\/$]*) false;;
12858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12859 esac ||
12860 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
12861 esac
12862 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12863 as_fn_append ac_file_inputs " '$ac_f'"
12864 done
12865
12866 # Let's still pretend it is 'configure' which instantiates (i.e., don't
12867 # use $as_me), people would be surprised to read:
12868 # /* config.h. Generated by config.status. */
12869 configure_input='Generated from '`
12870 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12871 `' by configure.'
12872 if test x"$ac_file" != x-; then
12873 configure_input="$ac_file. $configure_input"
12874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12875 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12876 fi
12877 # Neutralize special characters interpreted by sed in replacement strings.
12878 case $configure_input in #(
12879 *\&* | *\|* | *\\* )
12880 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12881 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12882 *) ac_sed_conf_input=$configure_input;;
12883 esac
12884
12885 case $ac_tag in
12886 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12888 esac
12889 ;;
12890 esac
12891
12892 ac_dir=`$as_dirname -- "$ac_file" ||
12893 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12894 X"$ac_file" : 'X\(//\)[^/]' \| \
12895 X"$ac_file" : 'X\(//\)$' \| \
12896 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12897 printf "%s\n" X"$ac_file" |
12898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12899 s//\1/
12900 q
12901 }
12902 /^X\(\/\/\)[^/].*/{
12903 s//\1/
12904 q
12905 }
12906 /^X\(\/\/\)$/{
12907 s//\1/
12908 q
12909 }
12910 /^X\(\/\).*/{
12911 s//\1/
12912 q
12913 }
12914 s/.*/./; q'`
12915 as_dir="$ac_dir"; as_fn_mkdir_p
12916 ac_builddir=.
12917
12918 case "$ac_dir" in
12919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12920 *)
12921 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
12922 # A ".." for each directory in $ac_dir_suffix.
12923 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12924 case $ac_top_builddir_sub in
12925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12927 esac ;;
12928 esac
12929 ac_abs_top_builddir=$ac_pwd
12930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12931 # for backward compatibility:
12932 ac_top_builddir=$ac_top_build_prefix
12933
12934 case $srcdir in
12935 .) # We are building in place.
12936 ac_srcdir=.
12937 ac_top_srcdir=$ac_top_builddir_sub
12938 ac_abs_top_srcdir=$ac_pwd ;;
12939 [\\/]* | ?:[\\/]* ) # Absolute name.
12940 ac_srcdir=$srcdir$ac_dir_suffix;
12941 ac_top_srcdir=$srcdir
12942 ac_abs_top_srcdir=$srcdir ;;
12943 *) # Relative name.
12944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12945 ac_top_srcdir=$ac_top_build_prefix$srcdir
12946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12947 esac
12948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12949
12950
12951 case $ac_mode in
12952 :F)
12953 #
12954 # CONFIG_FILE
12955 #
12956
12957 case $INSTALL in
12958 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12959 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12960 esac
12961 ac_MKDIR_P=$MKDIR_P
12962 case $MKDIR_P in
12963 [\\/$]* | ?:[\\/]* ) ;;
12964 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12965 esac
12966 _ACEOF
12967
12968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12969 # If the template does not know about datarootdir, expand it.
12970 # FIXME: This hack should be removed a few years after 2.60.
12971 ac_datarootdir_hack=; ac_datarootdir_seen=
12972 ac_sed_dataroot='
12973 /datarootdir/ {
12974 p
12975 q
12976 }
12977 /@datadir@/p
12978 /@docdir@/p
12979 /@infodir@/p
12980 /@localedir@/p
12981 /@mandir@/p'
12982 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12983 *datarootdir*) ac_datarootdir_seen=yes;;
12984 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12986 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12987 _ACEOF
12988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12989 ac_datarootdir_hack='
12990 s&@datadir@&$datadir&g
12991 s&@docdir@&$docdir&g
12992 s&@infodir@&$infodir&g
12993 s&@localedir@&$localedir&g
12994 s&@mandir@&$mandir&g
12995 s&\\\${datarootdir}&$datarootdir&g' ;;
12996 esac
12997 _ACEOF
12998
12999 # Neutralize VPATH when '$srcdir' = '.'.
13000 # Shell code in configure.ac might set extrasub.
13001 # FIXME: do we really want to maintain this feature?
13002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13003 ac_sed_extra="$ac_vpsub
13004 $extrasub
13005 _ACEOF
13006 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13007 :t
13008 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13009 s|@configure_input@|$ac_sed_conf_input|;t t
13010 s&@top_builddir@&$ac_top_builddir_sub&;t t
13011 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13012 s&@srcdir@&$ac_srcdir&;t t
13013 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13014 s&@top_srcdir@&$ac_top_srcdir&;t t
13015 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13016 s&@builddir@&$ac_builddir&;t t
13017 s&@abs_builddir@&$ac_abs_builddir&;t t
13018 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13019 s&@INSTALL@&$ac_INSTALL&;t t
13020 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13021 $ac_datarootdir_hack
13022 "
13023 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13024 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13025
13026 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13027 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13028 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13029 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13031 which seems to be undefined. Please make sure it is defined" >&5
13032 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
13033 which seems to be undefined. Please make sure it is defined" >&2;}
13034
13035 rm -f "$ac_tmp/stdin"
13036 case $ac_file in
13037 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13038 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13039 esac \
13040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13041 ;;
13042 :H)
13043 #
13044 # CONFIG_HEADER
13045 #
13046 if test x"$ac_file" != x-; then
13047 {
13048 printf "%s\n" "/* $configure_input */" >&1 \
13049 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13050 } >"$ac_tmp/config.h" \
13051 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13052 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13054 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13055 else
13056 rm -f "$ac_file"
13057 mv "$ac_tmp/config.h" "$ac_file" \
13058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13059 fi
13060 else
13061 printf "%s\n" "/* $configure_input */" >&1 \
13062 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13063 || as_fn_error $? "could not create -" "$LINENO" 5
13064 fi
13065 # Compute "$ac_file"'s index in $config_headers.
13066 _am_arg="$ac_file"
13067 _am_stamp_count=1
13068 for _am_header in $config_headers :; do
13069 case $_am_header in
13070 $_am_arg | $_am_arg:* )
13071 break ;;
13072 * )
13073 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13074 esac
13075 done
13076 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13077 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13078 X"$_am_arg" : 'X\(//\)[^/]' \| \
13079 X"$_am_arg" : 'X\(//\)$' \| \
13080 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13081 printf "%s\n" X"$_am_arg" |
13082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13083 s//\1/
13084 q
13085 }
13086 /^X\(\/\/\)[^/].*/{
13087 s//\1/
13088 q
13089 }
13090 /^X\(\/\/\)$/{
13091 s//\1/
13092 q
13093 }
13094 /^X\(\/\).*/{
13095 s//\1/
13096 q
13097 }
13098 s/.*/./; q'`/stamp-h$_am_stamp_count
13099 ;;
13100
13101 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13102 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13103 ;;
13104 esac
13105
13106
13107 case $ac_file$ac_mode in
13108 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13109 # Older Autoconf quotes --file arguments for eval, but not when files
13110 # are listed without --file. Let's play safe and only enable the eval
13111 # if we detect the quoting.
13112 # TODO: see whether this extra hack can be removed once we start
13113 # requiring Autoconf 2.70 or later.
13114 case $CONFIG_FILES in #(
13115 *\'*) :
13116 eval set x "$CONFIG_FILES" ;; #(
13117 *) :
13118 set x $CONFIG_FILES ;; #(
13119 *) :
13120 ;;
13121 esac
13122 shift
13123 # Used to flag and report bootstrapping failures.
13124 am_rc=0
13125 for am_mf
13126 do
13127 # Strip MF so we end up with the name of the file.
13128 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13129 # Check whether this is an Automake generated Makefile which includes
13130 # dependency-tracking related rules and includes.
13131 # Grep'ing the whole file directly is not great: AIX grep has a line
13132 # limit of 2048, but all sed's we know have understand at least 4000.
13133 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13134 || continue
13135 am_dirpart=`$as_dirname -- "$am_mf" ||
13136 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13137 X"$am_mf" : 'X\(//\)[^/]' \| \
13138 X"$am_mf" : 'X\(//\)$' \| \
13139 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13140 printf "%s\n" X"$am_mf" |
13141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13142 s//\1/
13143 q
13144 }
13145 /^X\(\/\/\)[^/].*/{
13146 s//\1/
13147 q
13148 }
13149 /^X\(\/\/\)$/{
13150 s//\1/
13151 q
13152 }
13153 /^X\(\/\).*/{
13154 s//\1/
13155 q
13156 }
13157 s/.*/./; q'`
13158 am_filepart=`$as_basename -- "$am_mf" ||
13159 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13160 X"$am_mf" : 'X\(//\)$' \| \
13161 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13162 printf "%s\n" X/"$am_mf" |
13163 sed '/^.*\/\([^/][^/]*\)\/*$/{
13164 s//\1/
13165 q
13166 }
13167 /^X\/\(\/\/\)$/{
13168 s//\1/
13169 q
13170 }
13171 /^X\/\(\/\).*/{
13172 s//\1/
13173 q
13174 }
13175 s/.*/./; q'`
13176 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13177 && sed -e '/# am--include-marker/d' "$am_filepart" \
13178 | $MAKE -f - am--depfiles" >&5
13179 (cd "$am_dirpart" \
13180 && sed -e '/# am--include-marker/d' "$am_filepart" \
13181 | $MAKE -f - am--depfiles) >&5 2>&5
13182 ac_status=$?
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } || am_rc=$?
13185 done
13186 if test $am_rc -ne 0; then
13187 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13188 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13189 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13190 for automatic dependency tracking. If GNU make was not used, consider
13191 re-running the configure script with MAKE=\"gmake\" (or whatever is
13192 necessary). You can also try re-running configure with the
13193 '--disable-dependency-tracking' option to at least be able to build
13194 the package (albeit without support for automatic dependency tracking).
13195 See 'config.log' for more details" "$LINENO" 5; }
13196 fi
13197 { am_dirpart=; unset am_dirpart;}
13198 { am_filepart=; unset am_filepart;}
13199 { am_mf=; unset am_mf;}
13200 { am_rc=; unset am_rc;}
13201 rm -f conftest-deps.mk
13202 }
13203 ;;
13204
13205 esac
13206 done # for ac_tag
13207
13208
13209 as_fn_exit 0
13210 _ACEOF
13211 ac_clean_files=$ac_clean_files_save
13212
13213 test $ac_write_fail = 0 ||
13214 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13215
13216
13217 # configure is writing to config.log, and then calls config.status.
13218 # config.status does its own redirection, appending to config.log.
13219 # Unfortunately, on DOS this fails, as config.log is still kept open
13220 # by configure, so config.status won't be able to write to it; its
13221 # output is simply discarded. So we exec the FD to /dev/null,
13222 # effectively closing config.log, so it can be properly (re)opened and
13223 # appended to by config.status. When coming back to configure, we
13224 # need to make the FD available again.
13225 if test "$no_create" != yes; then
13226 ac_cs_success=:
13227 ac_config_status_args=
13228 test "$silent" = yes &&
13229 ac_config_status_args="$ac_config_status_args --quiet"
13230 exec 5>/dev/null
13231 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13232 exec 5>>config.log
13233 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13234 # would make configure fail if this is the last instruction.
13235 $ac_cs_success || as_fn_exit 1
13236 fi
13237 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13239 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13240 fi
13241
13242
13243