configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for xfs 1.2.2.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfs/-/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/xfs/-/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 as_awk_strverscmp='
585 # Use only awk features that work with 7th edition Unix awk (1978).
586 # My, what an old awk you have, Mr. Solaris!
587 END {
588 while (length(v1) && length(v2)) {
589 # Set d1 to be the next thing to compare from v1, and likewise for d2.
590 # Normally this is a single character, but if v1 and v2 contain digits,
591 # compare them as integers and fractions as strverscmp does.
592 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
593 # Split v1 and v2 into their leading digit string components d1 and d2,
594 # and advance v1 and v2 past the leading digit strings.
595 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
596 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
597 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
598 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
599 if (d1 ~ /^0/) {
600 if (d2 ~ /^0/) {
601 # Compare two fractions.
602 while (d1 ~ /^0/ && d2 ~ /^0/) {
603 d1 = substr(d1, 2); len1--
604 d2 = substr(d2, 2); len2--
605 }
606 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
607 # The two components differ in length, and the common prefix
608 # contains only leading zeros. Consider the longer to be less.
609 d1 = -len1
610 d2 = -len2
611 } else {
612 # Otherwise, compare as strings.
613 d1 = "x" d1
614 d2 = "x" d2
615 }
616 } else {
617 # A fraction is less than an integer.
618 exit 1
619 }
620 } else {
621 if (d2 ~ /^0/) {
622 # An integer is greater than a fraction.
623 exit 2
624 } else {
625 # Compare two integers.
626 d1 += 0
627 d2 += 0
628 }
629 }
630 } else {
631 # The normal case, without worrying about digits.
632 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
633 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
634 }
635 if (d1 < d2) exit 1
636 if (d1 > d2) exit 2
637 }
638 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
639 # which mishandles some comparisons of empty strings to integers.
640 if (length(v2)) exit 1
641 if (length(v1)) exit 2
642 }
643 '
644
645 test -n "$DJDIR" || exec 7<&0 </dev/null
646 exec 6>&1
647
648 # Name of the host.
649 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
650 # so uname gets run too.
651 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
652
653 #
654 # Initializations.
655 #
656 ac_default_prefix=/usr/local
657 ac_clean_files=
658 ac_config_libobj_dir=.
659 LIBOBJS=
660 cross_compiling=no
661 subdirs=
662 MFLAGS=
663 MAKEFLAGS=
664
665 # Identity of this package.
666 PACKAGE_NAME='xfs'
667 PACKAGE_TARNAME='xfs'
668 PACKAGE_VERSION='1.2.2'
669 PACKAGE_STRING='xfs 1.2.2'
670 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xfs/-/issues'
671 PACKAGE_URL=''
672
673 # Factoring default headers for most tests.
674 ac_includes_default="\
675 #include <stddef.h>
676 #ifdef HAVE_STDIO_H
677 # include <stdio.h>
678 #endif
679 #ifdef HAVE_STDLIB_H
680 # include <stdlib.h>
681 #endif
682 #ifdef HAVE_STRING_H
683 # include <string.h>
684 #endif
685 #ifdef HAVE_INTTYPES_H
686 # include <inttypes.h>
687 #endif
688 #ifdef HAVE_STDINT_H
689 # include <stdint.h>
690 #endif
691 #ifdef HAVE_STRINGS_H
692 # include <strings.h>
693 #endif
694 #ifdef HAVE_SYS_TYPES_H
695 # include <sys/types.h>
696 #endif
697 #ifdef HAVE_SYS_STAT_H
698 # include <sys/stat.h>
699 #endif
700 #ifdef HAVE_UNISTD_H
701 # include <unistd.h>
702 #endif"
703
704 ac_header_c_list=
705 enable_year2038=no
706 ac_subst_vars='am__EXEEXT_FALSE
707 am__EXEEXT_TRUE
708 LTLIBOBJS
709 LIBOBJS
710 XFS_LIBS
711 XFS_CFLAGS
712 FONTPATH
713 FONT100DPIDIR
714 FONT75DPIDIR
715 FONTTYPE1DIR
716 FONTTTFDIR
717 FONTOTFDIR
718 FONTMISCDIR
719 FONTROOTDIR
720 CONFIG_FILE_PATH
721 CONFIG_FILE_DESC
722 DEFAULT_CONFIG_FILE
723 LINT_FALSE
724 LINT_TRUE
725 LINT_FLAGS
726 LINT
727 HAVE_STYLESHEETS_FALSE
728 HAVE_STYLESHEETS_TRUE
729 XSL_STYLESHEET
730 STYLESHEET_SRCDIR
731 XORG_SGML_PATH
732 HAVE_FOP_FALSE
733 HAVE_FOP_TRUE
734 FOP
735 HAVE_XMLTO_FALSE
736 HAVE_XMLTO_TRUE
737 HAVE_XMLTO_TEXT_FALSE
738 HAVE_XMLTO_TEXT_TRUE
739 XMLTO
740 ENABLE_DEVEL_DOCS_FALSE
741 ENABLE_DEVEL_DOCS_TRUE
742 MAN_SUBSTS
743 XORG_MAN_PAGE
744 ADMIN_MAN_DIR
745 DRIVER_MAN_DIR
746 MISC_MAN_DIR
747 FILE_MAN_DIR
748 LIB_MAN_DIR
749 APP_MAN_DIR
750 ADMIN_MAN_SUFFIX
751 DRIVER_MAN_SUFFIX
752 MISC_MAN_SUFFIX
753 FILE_MAN_SUFFIX
754 LIB_MAN_SUFFIX
755 APP_MAN_SUFFIX
756 SED
757 host_os
758 host_vendor
759 host_cpu
760 host
761 build_os
762 build_vendor
763 build_cpu
764 build
765 INSTALL_CMD
766 PKG_CONFIG_LIBDIR
767 PKG_CONFIG_PATH
768 PKG_CONFIG
769 CHANGELOG_CMD
770 STRICT_CFLAGS
771 CWARNFLAGS
772 BASE_CFLAGS
773 am__xargs_n
774 am__rm_f_notfound
775 AM_BACKSLASH
776 AM_DEFAULT_VERBOSITY
777 AM_DEFAULT_V
778 AM_V
779 CSCOPE
780 ETAGS
781 CTAGS
782 am__fastdepCC_FALSE
783 am__fastdepCC_TRUE
784 CCDEPMODE
785 am__nodep
786 AMDEPBACKSLASH
787 AMDEP_FALSE
788 AMDEP_TRUE
789 am__include
790 DEPDIR
791 am__untar
792 am__tar
793 AMTAR
794 am__leading_dot
795 SET_MAKE
796 AWK
797 mkdir_p
798 MKDIR_P
799 INSTALL_STRIP_PROGRAM
800 STRIP
801 install_sh
802 MAKEINFO
803 AUTOHEADER
804 AUTOMAKE
805 AUTOCONF
806 ACLOCAL
807 VERSION
808 PACKAGE
809 CYGPATH_W
810 am__isrc
811 INSTALL_DATA
812 INSTALL_SCRIPT
813 INSTALL_PROGRAM
814 OBJEXT
815 EXEEXT
816 ac_ct_CC
817 CPPFLAGS
818 LDFLAGS
819 CFLAGS
820 CC
821 target_alias
822 host_alias
823 build_alias
824 LIBS
825 ECHO_T
826 ECHO_N
827 ECHO_C
828 DEFS
829 mandir
830 localedir
831 libdir
832 psdir
833 pdfdir
834 dvidir
835 htmldir
836 infodir
837 docdir
838 oldincludedir
839 includedir
840 runstatedir
841 localstatedir
842 sharedstatedir
843 sysconfdir
844 datadir
845 datarootdir
846 libexecdir
847 sbindir
848 bindir
849 program_transform_name
850 prefix
851 exec_prefix
852 PACKAGE_URL
853 PACKAGE_BUGREPORT
854 PACKAGE_STRING
855 PACKAGE_VERSION
856 PACKAGE_TARNAME
857 PACKAGE_NAME
858 PATH_SEPARATOR
859 SHELL
860 am__quote'
861 ac_subst_files=''
862 ac_user_opts='
863 enable_option_checking
864 enable_dependency_tracking
865 enable_silent_rules
866 enable_selective_werror
867 enable_strict_compilation
868 enable_devel_docs
869 with_xmlto
870 with_fop
871 with_lint
872 enable_largefile
873 with_default_config_file
874 with_fontrootdir
875 with_fontmiscdir
876 with_fontotfdir
877 with_fontttfdir
878 with_fonttype1dir
879 with_font75dpidir
880 with_font100dpidir
881 with_default_font_path
882 enable_inetd
883 enable_syslog
884 enable_unix_transport
885 enable_tcp_transport
886 enable_ipv6
887 enable_local_transport
888 enable_year2038
889 '
890 ac_precious_vars='build_alias
891 host_alias
892 target_alias
893 CC
894 CFLAGS
895 LDFLAGS
896 LIBS
897 CPPFLAGS
898 PKG_CONFIG
899 PKG_CONFIG_PATH
900 PKG_CONFIG_LIBDIR
901 XMLTO
902 FOP
903 LINT
904 LINT_FLAGS
905 XFS_CFLAGS
906 XFS_LIBS'
907
908
909 # Initialize some variables set by options.
910 ac_init_help=
911 ac_init_version=false
912 ac_unrecognized_opts=
913 ac_unrecognized_sep=
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
916 cache_file=/dev/null
917 exec_prefix=NONE
918 no_create=
919 no_recursion=
920 prefix=NONE
921 program_prefix=NONE
922 program_suffix=NONE
923 program_transform_name=s,x,x,
924 silent=
925 site=
926 srcdir=
927 verbose=
928 x_includes=NONE
929 x_libraries=NONE
930
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 runstatedir='${localstatedir}/run'
946 includedir='${prefix}/include'
947 oldincludedir='/usr/include'
948 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
949 infodir='${datarootdir}/info'
950 htmldir='${docdir}'
951 dvidir='${docdir}'
952 pdfdir='${docdir}'
953 psdir='${docdir}'
954 libdir='${exec_prefix}/lib'
955 localedir='${datarootdir}/locale'
956 mandir='${datarootdir}/man'
957
958 ac_prev=
959 ac_dashdash=
960 for ac_option
961 do
962 # If the previous option needs an argument, assign it.
963 if test -n "$ac_prev"; then
964 eval $ac_prev=\$ac_option
965 ac_prev=
966 continue
967 fi
968
969 case $ac_option in
970 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971 *=) ac_optarg= ;;
972 *) ac_optarg=yes ;;
973 esac
974
975 case $ac_dashdash$ac_option in
976 --)
977 ac_dashdash=yes ;;
978
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 bindir=$ac_optarg ;;
983
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
988
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
995
996 --config-cache | -C)
997 cache_file=config.cache ;;
998
999 -datadir | --datadir | --datadi | --datad)
1000 ac_prev=datadir ;;
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1003
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1010
1011 -disable-* | --disable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: '$ac_useropt'"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1019 *"
1020 "enable_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=no ;;
1026
1027 -docdir | --docdir | --docdi | --doc | --do)
1028 ac_prev=docdir ;;
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1031
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 ac_prev=dvidir ;;
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1036
1037 -enable-* | --enable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid feature name: '$ac_useropt'"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046 "enable_$ac_useropt"
1047 "*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=\$ac_optarg ;;
1052
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
1060 exec_prefix=$ac_optarg ;;
1061
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1064 with_gas=yes ;;
1065
1066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
1072
1073 -host | --host | --hos | --ho)
1074 ac_prev=host_alias ;;
1075 -host=* | --host=* | --hos=* | --ho=*)
1076 host_alias=$ac_optarg ;;
1077
1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079 ac_prev=htmldir ;;
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081 | --ht=*)
1082 htmldir=$ac_optarg ;;
1083
1084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
1089 includedir=$ac_optarg ;;
1090
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1092 ac_prev=infodir ;;
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094 infodir=$ac_optarg ;;
1095
1096 -libdir | --libdir | --libdi | --libd)
1097 ac_prev=libdir ;;
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099 libdir=$ac_optarg ;;
1100
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
1106 libexecdir=$ac_optarg ;;
1107
1108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1112
1113 -localstatedir | --localstatedir | --localstatedi | --localstated \
1114 | --localstate | --localstat | --localsta | --localst | --locals)
1115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118 localstatedir=$ac_optarg ;;
1119
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121 ac_prev=mandir ;;
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123 mandir=$ac_optarg ;;
1124
1125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1127 with_fp=no ;;
1128
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130 | --no-cr | --no-c | -n)
1131 no_create=yes ;;
1132
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135 no_recursion=yes ;;
1136
1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144 oldincludedir=$ac_optarg ;;
1145
1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147 ac_prev=prefix ;;
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149 prefix=$ac_optarg ;;
1150
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156 program_prefix=$ac_optarg ;;
1157
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163 program_suffix=$ac_optarg ;;
1164
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
1180 program_transform_name=$ac_optarg ;;
1181
1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183 ac_prev=pdfdir ;;
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1186
1187 -psdir | --psdir | --psdi | --psd | --ps)
1188 ac_prev=psdir ;;
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190 psdir=$ac_optarg ;;
1191
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1194 silent=yes ;;
1195
1196 -runstatedir | --runstatedir | --runstatedi | --runstated \
1197 | --runstate | --runstat | --runsta | --runst | --runs \
1198 | --run | --ru | --r)
1199 ac_prev=runstatedir ;;
1200 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1201 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1202 | --run=* | --ru=* | --r=*)
1203 runstatedir=$ac_optarg ;;
1204
1205 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1206 ac_prev=sbindir ;;
1207 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1208 | --sbi=* | --sb=*)
1209 sbindir=$ac_optarg ;;
1210
1211 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1212 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1213 | --sharedst | --shareds | --shared | --share | --shar \
1214 | --sha | --sh)
1215 ac_prev=sharedstatedir ;;
1216 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1217 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1218 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1219 | --sha=* | --sh=*)
1220 sharedstatedir=$ac_optarg ;;
1221
1222 -site | --site | --sit)
1223 ac_prev=site ;;
1224 -site=* | --site=* | --sit=*)
1225 site=$ac_optarg ;;
1226
1227 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1228 ac_prev=srcdir ;;
1229 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1230 srcdir=$ac_optarg ;;
1231
1232 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1233 | --syscon | --sysco | --sysc | --sys | --sy)
1234 ac_prev=sysconfdir ;;
1235 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1236 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1237 sysconfdir=$ac_optarg ;;
1238
1239 -target | --target | --targe | --targ | --tar | --ta | --t)
1240 ac_prev=target_alias ;;
1241 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1242 target_alias=$ac_optarg ;;
1243
1244 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1245 verbose=yes ;;
1246
1247 -version | --version | --versio | --versi | --vers | -V)
1248 ac_init_version=: ;;
1249
1250 -with-* | --with-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: '$ac_useropt'"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259 "with_$ac_useropt"
1260 "*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=\$ac_optarg ;;
1265
1266 -without-* | --without-*)
1267 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1270 as_fn_error $? "invalid package name: '$ac_useropt'"
1271 ac_useropt_orig=$ac_useropt
1272 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1274 *"
1275 "with_$ac_useropt"
1276 "*) ;;
1277 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep=', ';;
1279 esac
1280 eval with_$ac_useropt=no ;;
1281
1282 --x)
1283 # Obsolete; use --with-x.
1284 with_x=yes ;;
1285
1286 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1287 | --x-incl | --x-inc | --x-in | --x-i)
1288 ac_prev=x_includes ;;
1289 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1290 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1291 x_includes=$ac_optarg ;;
1292
1293 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1294 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1295 ac_prev=x_libraries ;;
1296 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1297 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1298 x_libraries=$ac_optarg ;;
1299
1300 -*) as_fn_error $? "unrecognized option: '$ac_option'
1301 Try '$0 --help' for more information"
1302 ;;
1303
1304 *=*)
1305 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 case $ac_envvar in #(
1308 '' | [0-9]* | *[!_$as_cr_alnum]* )
1309 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1310 esac
1311 eval $ac_envvar=\$ac_optarg
1312 export $ac_envvar ;;
1313
1314 *)
1315 # FIXME: should be removed in autoconf 3.0.
1316 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1318 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320 ;;
1321
1322 esac
1323 done
1324
1325 if test -n "$ac_prev"; then
1326 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1327 as_fn_error $? "missing argument to $ac_option"
1328 fi
1329
1330 if test -n "$ac_unrecognized_opts"; then
1331 case $enable_option_checking in
1332 no) ;;
1333 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1334 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335 esac
1336 fi
1337
1338 # Check all directory arguments for consistency.
1339 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir runstatedir
1343 do
1344 eval ac_val=\$$ac_var
1345 # Remove trailing slashes.
1346 case $ac_val in
1347 */ )
1348 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349 eval $ac_var=\$ac_val;;
1350 esac
1351 # Be sure to have absolute directory names.
1352 case $ac_val in
1353 [\\/$]* | ?:[\\/]* ) continue;;
1354 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1355 esac
1356 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1357 done
1358
1359 # There might be people who depend on the old broken behavior: '$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1362 build=$build_alias
1363 host=$host_alias
1364 target=$target_alias
1365
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x; then
1368 if test "x$build_alias" = x; then
1369 cross_compiling=maybe
1370 elif test "x$build_alias" != "x$host_alias"; then
1371 cross_compiling=yes
1372 fi
1373 fi
1374
1375 ac_tool_prefix=
1376 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1377
1378 test "$silent" = yes && exec 6>/dev/null
1379
1380
1381 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di=`ls -di .` &&
1383 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1384 as_fn_error $? "working directory cannot be determined"
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 as_fn_error $? "pwd does not report name of working directory"
1387
1388
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391 ac_srcdir_defaulted=yes
1392 # Try the directory containing this script, then the parent directory.
1393 ac_confdir=`$as_dirname -- "$as_myself" ||
1394 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$as_myself" : 'X\(//\)[^/]' \| \
1396 X"$as_myself" : 'X\(//\)$' \| \
1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398 printf "%s\n" X"$as_myself" |
1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400 s//\1/
1401 q
1402 }
1403 /^X\(\/\/\)[^/].*/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)$/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\).*/{
1412 s//\1/
1413 q
1414 }
1415 s/.*/./; q'`
1416 srcdir=$ac_confdir
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1418 srcdir=..
1419 fi
1420 else
1421 ac_srcdir_defaulted=no
1422 fi
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1426 fi
1427 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1428 ac_abs_confdir=`(
1429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1430 pwd)`
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1433 srcdir=.
1434 fi
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1438 case $srcdir in
1439 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440 esac
1441 for ac_var in $ac_precious_vars; do
1442 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_${ac_var}_value=\$${ac_var}
1444 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1446 done
1447
1448 #
1449 # Report the --help message.
1450 #
1451 if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1454 cat <<_ACEOF
1455 'configure' configures xfs 1.2.2 to adapt to many kinds of systems.
1456
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1458
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE. See below for descriptions of some of the useful variables.
1461
1462 Defaults for the options are specified in brackets.
1463
1464 Configuration:
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print 'checking ...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for '--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or '..']
1474
1475 Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 [PREFIX]
1480
1481 By default, 'make install' will install all the files in
1482 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1483 an installation prefix other than '$ac_default_prefix' using '--prefix',
1484 for instance '--prefix=\$HOME'.
1485
1486 For better control, use the options below.
1487
1488 Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/xfs]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1509 _ACEOF
1510
1511 cat <<\_ACEOF
1512
1513 Program names:
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1517
1518 System types:
1519 --build=BUILD configure for building on BUILD [guessed]
1520 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1521 _ACEOF
1522 fi
1523
1524 if test -n "$ac_init_help"; then
1525 case $ac_init_help in
1526 short | recursive ) echo "Configuration of xfs 1.2.2:";;
1527 esac
1528 cat <<\_ACEOF
1529
1530 Optional Features:
1531 --disable-option-checking ignore unrecognized --enable/--with options
1532 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1533 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1534 --enable-dependency-tracking
1535 do not reject slow dependency extractors
1536 --disable-dependency-tracking
1537 speeds up one-time build
1538 --enable-silent-rules less verbose build output (undo: "make V=1")
1539 --disable-silent-rules verbose build output (undo: "make V=0")
1540 --disable-selective-werror
1541 Turn off selective compiler errors. (default:
1542 enabled)
1543 --enable-strict-compilation
1544 Enable all warnings from compiler and make them
1545 errors (default: disabled)
1546 --enable-devel-docs Enable building the developer documentation
1547 (default: yes)
1548 --disable-largefile omit support for large files
1549 --enable-inetd Support -inetd flag for starting from inetd
1550 (default: enabled)
1551 --enable-syslog Support option for logging via syslog (default:
1552 enabled)
1553 --enable-unix-transport Enable UNIX domain socket transport
1554 --enable-tcp-transport Enable TCP socket transport
1555 --enable-ipv6 Enable IPv6 support
1556 --enable-local-transport
1557 Enable os-specific local transport
1558 --enable-year2038 support timestamps after 2038
1559
1560 Optional Packages:
1561 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1562 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1563 --with-xmlto Use xmlto to regenerate documentation (default:
1564 auto)
1565 --with-fop Use fop to regenerate documentation (default: auto)
1566 --with-lint Use a lint-style source code checker (default:
1567 disabled)
1568 --with-default-config-file=PATH
1569 comma-separated list of paths to look for config
1570 file when not specified (default:
1571 ${sysconfdir}/X11/fs/config)
1572 --with-fontrootdir=DIR Path to root directory for font files
1573 --with-fontmiscdir=DIR Path to misc files [FONTROOTDIR/misc]
1574 --with-fontotfdir=DIR Path to OTF files [FONTROOTDIR/OTF]
1575 --with-fontttfdir=DIR Path to TTF files [FONTROOTDIR/TTF]
1576 --with-fonttype1dir=DIR Path to Type1 files [FONTROOTDIR/Type1]
1577 --with-font75dpidir=DIR Path to 75dpi files [FONTROOTDIR/75dpi]
1578 --with-font100dpidir=DIR
1579 Path to 100dpi files [FONTROOTDIR/100dpi]
1580 --with-default-font-path=PATH
1581 Comma separated list of font dirs
1582
1583 Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
1588 LIBS libraries to pass to the linker, e.g. -l<library>
1589 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1590 you have headers in a nonstandard directory <include dir>
1591 PKG_CONFIG path to pkg-config utility
1592 PKG_CONFIG_PATH
1593 directories to add to pkg-config's search path
1594 PKG_CONFIG_LIBDIR
1595 path overriding pkg-config's built-in search path
1596 XMLTO Path to xmlto command
1597 FOP Path to fop command
1598 LINT Path to a lint-style command
1599 LINT_FLAGS Flags for the lint-style command
1600 XFS_CFLAGS C compiler flags for XFS, overriding pkg-config
1601 XFS_LIBS linker flags for XFS, overriding pkg-config
1602
1603 Use these variables to override the choices made by 'configure' or to help
1604 it to find libraries and programs with nonstandard names/locations.
1605
1606 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfs/-/issues>.
1607 _ACEOF
1608 ac_status=$?
1609 fi
1610
1611 if test "$ac_init_help" = "recursive"; then
1612 # If there are subdirs, report their specific --help.
1613 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1614 test -d "$ac_dir" ||
1615 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1616 continue
1617 ac_builddir=.
1618
1619 case "$ac_dir" in
1620 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *)
1622 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1623 # A ".." for each directory in $ac_dir_suffix.
1624 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1625 case $ac_top_builddir_sub in
1626 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1627 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1628 esac ;;
1629 esac
1630 ac_abs_top_builddir=$ac_pwd
1631 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1632 # for backward compatibility:
1633 ac_top_builddir=$ac_top_build_prefix
1634
1635 case $srcdir in
1636 .) # We are building in place.
1637 ac_srcdir=.
1638 ac_top_srcdir=$ac_top_builddir_sub
1639 ac_abs_top_srcdir=$ac_pwd ;;
1640 [\\/]* | ?:[\\/]* ) # Absolute name.
1641 ac_srcdir=$srcdir$ac_dir_suffix;
1642 ac_top_srcdir=$srcdir
1643 ac_abs_top_srcdir=$srcdir ;;
1644 *) # Relative name.
1645 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1646 ac_top_srcdir=$ac_top_build_prefix$srcdir
1647 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1648 esac
1649 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1650
1651 cd "$ac_dir" || { ac_status=$?; continue; }
1652 # Check for configure.gnu first; this name is used for a wrapper for
1653 # Metaconfig's "Configure" on case-insensitive file systems.
1654 if test -f "$ac_srcdir/configure.gnu"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1657 elif test -f "$ac_srcdir/configure"; then
1658 echo &&
1659 $SHELL "$ac_srcdir/configure" --help=recursive
1660 else
1661 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1662 fi || ac_status=$?
1663 cd "$ac_pwd" || { ac_status=$?; break; }
1664 done
1665 fi
1666
1667 test -n "$ac_init_help" && exit $ac_status
1668 if $ac_init_version; then
1669 cat <<\_ACEOF
1670 xfs configure 1.2.2
1671 generated by GNU Autoconf 2.72
1672
1673 Copyright (C) 2023 Free Software Foundation, Inc.
1674 This configure script is free software; the Free Software Foundation
1675 gives unlimited permission to copy, distribute and modify it.
1676 _ACEOF
1677 exit
1678 fi
1679
1680 ## ------------------------ ##
1681 ## Autoconf initialization. ##
1682 ## ------------------------ ##
1683
1684 # ac_fn_c_try_compile LINENO
1685 # --------------------------
1686 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_compile ()
1688 {
1689 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690 rm -f conftest.$ac_objext conftest.beam
1691 if { { ac_try="$ac_compile"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 printf "%s\n" "$ac_try_echo"; } >&5
1698 (eval "$ac_compile") 2>conftest.err
1699 ac_status=$?
1700 if test -s conftest.err; then
1701 grep -v '^ *+' conftest.err >conftest.er1
1702 cat conftest.er1 >&5
1703 mv -f conftest.er1 conftest.err
1704 fi
1705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; } && {
1707 test -z "$ac_c_werror_flag" ||
1708 test ! -s conftest.err
1709 } && test -s conftest.$ac_objext
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 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 as_fn_set_status $ac_retval
1721
1722 } # ac_fn_c_try_compile
1723
1724 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1725 # -------------------------------------------------------
1726 # Tests whether HEADER exists and can be compiled using the include files in
1727 # INCLUDES, setting the cache variable VAR accordingly.
1728 ac_fn_c_check_header_compile ()
1729 {
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1732 printf %s "checking for $2... " >&6; }
1733 if eval test \${$3+y}
1734 then :
1735 printf %s "(cached) " >&6
1736 else case e in #(
1737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738 /* end confdefs.h. */
1739 $4
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_compile "$LINENO"
1743 then :
1744 eval "$3=yes"
1745 else case e in #(
1746 e) eval "$3=no" ;;
1747 esac
1748 fi
1749 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1750 esac
1751 fi
1752 eval ac_res=\$$3
1753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 printf "%s\n" "$ac_res" >&6; }
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756
1757 } # ac_fn_c_check_header_compile
1758
1759 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1760 # ------------------------------------------------------------------
1761 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1762 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1763 ac_fn_check_decl ()
1764 {
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 as_decl_name=`echo $2|sed 's/ *(.*//'`
1767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1768 printf %s "checking whether $as_decl_name is declared... " >&6; }
1769 if eval test \${$3+y}
1770 then :
1771 printf %s "(cached) " >&6
1772 else case e in #(
1773 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1774 eval ac_save_FLAGS=\$$6
1775 as_fn_append $6 " $5"
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 $4
1779 int
1780 main (void)
1781 {
1782 #ifndef $as_decl_name
1783 #ifdef __cplusplus
1784 (void) $as_decl_use;
1785 #else
1786 (void) $as_decl_name;
1787 #endif
1788 #endif
1789
1790 ;
1791 return 0;
1792 }
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"
1795 then :
1796 eval "$3=yes"
1797 else case e in #(
1798 e) eval "$3=no" ;;
1799 esac
1800 fi
1801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1802 eval $6=\$ac_save_FLAGS
1803 ;;
1804 esac
1805 fi
1806 eval ac_res=\$$3
1807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 printf "%s\n" "$ac_res" >&6; }
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810
1811 } # ac_fn_check_decl
1812
1813 # ac_fn_c_try_link LINENO
1814 # -----------------------
1815 # Try to link conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_c_try_link ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1820 if { { ac_try="$ac_link"
1821 case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 printf "%s\n" "$ac_try_echo"; } >&5
1827 (eval "$ac_link") 2>conftest.err
1828 ac_status=$?
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1833 fi
1834 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_c_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest$ac_exeext && {
1839 test "$cross_compiling" = yes ||
1840 test -x conftest$ac_exeext
1841 }
1842 then :
1843 ac_retval=0
1844 else case e in #(
1845 e) printf "%s\n" "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=1 ;;
1849 esac
1850 fi
1851 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1852 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1853 # interfere with the next link command; also delete a directory that is
1854 # left behind by Apple's compiler. We do this before executing the actions.
1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
1858
1859 } # ac_fn_c_try_link
1860
1861 # ac_fn_c_check_func LINENO FUNC VAR
1862 # ----------------------------------
1863 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1864 ac_fn_c_check_func ()
1865 {
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 printf %s "checking for $2... " >&6; }
1869 if eval test \${$3+y}
1870 then :
1871 printf %s "(cached) " >&6
1872 else case e in #(
1873 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1877 #define $2 innocuous_$2
1878
1879 /* System header to define __stub macros and hopefully few prototypes,
1880 which can conflict with char $2 (void); below. */
1881
1882 #include <limits.h>
1883 #undef $2
1884
1885 /* Override any GCC internal prototype to avoid an error.
1886 Use char because int might match the return type of a GCC
1887 builtin and then its argument prototype would still apply. */
1888 #ifdef __cplusplus
1889 extern "C"
1890 #endif
1891 char $2 (void);
1892 /* The GNU C library defines this for functions which it implements
1893 to always fail with ENOSYS. Some functions are actually named
1894 something starting with __ and the normal name is an alias. */
1895 #if defined __stub_$2 || defined __stub___$2
1896 choke me
1897 #endif
1898
1899 int
1900 main (void)
1901 {
1902 return $2 ();
1903 ;
1904 return 0;
1905 }
1906 _ACEOF
1907 if ac_fn_c_try_link "$LINENO"
1908 then :
1909 eval "$3=yes"
1910 else case e in #(
1911 e) eval "$3=no" ;;
1912 esac
1913 fi
1914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1915 conftest$ac_exeext conftest.$ac_ext ;;
1916 esac
1917 fi
1918 eval ac_res=\$$3
1919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 printf "%s\n" "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922
1923 } # ac_fn_c_check_func
1924
1925 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1926 # ----------------------------------------------------
1927 # Tries to find if the field MEMBER exists in type AGGR, after including
1928 # INCLUDES, setting cache variable VAR accordingly.
1929 ac_fn_c_check_member ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1933 printf %s "checking for $2.$3... " >&6; }
1934 if eval test \${$4+y}
1935 then :
1936 printf %s "(cached) " >&6
1937 else case e in #(
1938 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 $5
1941 int
1942 main (void)
1943 {
1944 static $2 ac_aggr;
1945 if (ac_aggr.$3)
1946 return 0;
1947 ;
1948 return 0;
1949 }
1950 _ACEOF
1951 if ac_fn_c_try_compile "$LINENO"
1952 then :
1953 eval "$4=yes"
1954 else case e in #(
1955 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1957 $5
1958 int
1959 main (void)
1960 {
1961 static $2 ac_aggr;
1962 if (sizeof ac_aggr.$3)
1963 return 0;
1964 ;
1965 return 0;
1966 }
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"
1969 then :
1970 eval "$4=yes"
1971 else case e in #(
1972 e) eval "$4=no" ;;
1973 esac
1974 fi
1975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1976 esac
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1979 esac
1980 fi
1981 eval ac_res=\$$4
1982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1983 printf "%s\n" "$ac_res" >&6; }
1984 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985
1986 } # ac_fn_c_check_member
1987
1988 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1989 # -------------------------------------------
1990 # Tests whether TYPE exists after having included INCLUDES, setting cache
1991 # variable VAR accordingly.
1992 ac_fn_c_check_type ()
1993 {
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 printf %s "checking for $2... " >&6; }
1997 if eval test \${$3+y}
1998 then :
1999 printf %s "(cached) " >&6
2000 else case e in #(
2001 e) eval "$3=no"
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 $4
2005 int
2006 main (void)
2007 {
2008 if (sizeof ($2))
2009 return 0;
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"
2015 then :
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2018 $4
2019 int
2020 main (void)
2021 {
2022 if (sizeof (($2)))
2023 return 0;
2024 ;
2025 return 0;
2026 }
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"
2029 then :
2030
2031 else case e in #(
2032 e) eval "$3=yes" ;;
2033 esac
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2036 fi
2037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2038 esac
2039 fi
2040 eval ac_res=\$$3
2041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 printf "%s\n" "$ac_res" >&6; }
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2044
2045 } # ac_fn_c_check_type
2046 ac_configure_args_raw=
2047 for ac_arg
2048 do
2049 case $ac_arg in
2050 *\'*)
2051 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2052 esac
2053 as_fn_append ac_configure_args_raw " '$ac_arg'"
2054 done
2055
2056 case $ac_configure_args_raw in
2057 *$as_nl*)
2058 ac_safe_unquote= ;;
2059 *)
2060 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2061 ac_unsafe_a="$ac_unsafe_z#~"
2062 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2063 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2064 esac
2065
2066 cat >config.log <<_ACEOF
2067 This file contains any messages produced by compilers while
2068 running configure, to aid debugging if configure makes a mistake.
2069
2070 It was created by xfs $as_me 1.2.2, which was
2071 generated by GNU Autoconf 2.72. Invocation command line was
2072
2073 $ $0$ac_configure_args_raw
2074
2075 _ACEOF
2076 exec 5>>config.log
2077 {
2078 cat <<_ASUNAME
2079 ## --------- ##
2080 ## Platform. ##
2081 ## --------- ##
2082
2083 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2084 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2085 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2086 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2087 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2088
2089 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2090 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2091
2092 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2093 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2094 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2095 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2096 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2097 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2098 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2099
2100 _ASUNAME
2101
2102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103 for as_dir in $PATH
2104 do
2105 IFS=$as_save_IFS
2106 case $as_dir in #(((
2107 '') as_dir=./ ;;
2108 */) ;;
2109 *) as_dir=$as_dir/ ;;
2110 esac
2111 printf "%s\n" "PATH: $as_dir"
2112 done
2113 IFS=$as_save_IFS
2114
2115 } >&5
2116
2117 cat >&5 <<_ACEOF
2118
2119
2120 ## ----------- ##
2121 ## Core tests. ##
2122 ## ----------- ##
2123
2124 _ACEOF
2125
2126
2127 # Keep a trace of the command line.
2128 # Strip out --no-create and --no-recursion so they do not pile up.
2129 # Strip out --silent because we don't want to record it for future runs.
2130 # Also quote any args containing shell meta-characters.
2131 # Make two passes to allow for proper duplicate-argument suppression.
2132 ac_configure_args=
2133 ac_configure_args0=
2134 ac_configure_args1=
2135 ac_must_keep_next=false
2136 for ac_pass in 1 2
2137 do
2138 for ac_arg
2139 do
2140 case $ac_arg in
2141 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2143 | -silent | --silent | --silen | --sile | --sil)
2144 continue ;;
2145 *\'*)
2146 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2147 esac
2148 case $ac_pass in
2149 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2150 2)
2151 as_fn_append ac_configure_args1 " '$ac_arg'"
2152 if test $ac_must_keep_next = true; then
2153 ac_must_keep_next=false # Got value, back to normal.
2154 else
2155 case $ac_arg in
2156 *=* | --config-cache | -C | -disable-* | --disable-* \
2157 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2158 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2159 | -with-* | --with-* | -without-* | --without-* | --x)
2160 case "$ac_configure_args0 " in
2161 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2162 esac
2163 ;;
2164 -* ) ac_must_keep_next=true ;;
2165 esac
2166 fi
2167 as_fn_append ac_configure_args " '$ac_arg'"
2168 ;;
2169 esac
2170 done
2171 done
2172 { ac_configure_args0=; unset ac_configure_args0;}
2173 { ac_configure_args1=; unset ac_configure_args1;}
2174
2175 # When interrupted or exit'd, cleanup temporary files, and complete
2176 # config.log. We remove comments because anyway the quotes in there
2177 # would cause problems or look ugly.
2178 # WARNING: Use '\'' to represent an apostrophe within the trap.
2179 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2180 trap 'exit_status=$?
2181 # Sanitize IFS.
2182 IFS=" "" $as_nl"
2183 # Save into config.log some information that might help in debugging.
2184 {
2185 echo
2186
2187 printf "%s\n" "## ---------------- ##
2188 ## Cache variables. ##
2189 ## ---------------- ##"
2190 echo
2191 # The following way of writing the cache mishandles newlines in values,
2192 (
2193 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2194 eval ac_val=\$$ac_var
2195 case $ac_val in #(
2196 *${as_nl}*)
2197 case $ac_var in #(
2198 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2199 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2200 esac
2201 case $ac_var in #(
2202 _ | IFS | as_nl) ;; #(
2203 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2204 *) { eval $ac_var=; unset $ac_var;} ;;
2205 esac ;;
2206 esac
2207 done
2208 (set) 2>&1 |
2209 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2210 *${as_nl}ac_space=\ *)
2211 sed -n \
2212 "s/'\''/'\''\\\\'\'''\''/g;
2213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2214 ;; #(
2215 *)
2216 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2217 ;;
2218 esac |
2219 sort
2220 )
2221 echo
2222
2223 printf "%s\n" "## ----------------- ##
2224 ## Output variables. ##
2225 ## ----------------- ##"
2226 echo
2227 for ac_var in $ac_subst_vars
2228 do
2229 eval ac_val=\$$ac_var
2230 case $ac_val in
2231 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2232 esac
2233 printf "%s\n" "$ac_var='\''$ac_val'\''"
2234 done | sort
2235 echo
2236
2237 if test -n "$ac_subst_files"; then
2238 printf "%s\n" "## ------------------- ##
2239 ## File substitutions. ##
2240 ## ------------------- ##"
2241 echo
2242 for ac_var in $ac_subst_files
2243 do
2244 eval ac_val=\$$ac_var
2245 case $ac_val in
2246 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2247 esac
2248 printf "%s\n" "$ac_var='\''$ac_val'\''"
2249 done | sort
2250 echo
2251 fi
2252
2253 if test -s confdefs.h; then
2254 printf "%s\n" "## ----------- ##
2255 ## confdefs.h. ##
2256 ## ----------- ##"
2257 echo
2258 cat confdefs.h
2259 echo
2260 fi
2261 test "$ac_signal" != 0 &&
2262 printf "%s\n" "$as_me: caught signal $ac_signal"
2263 printf "%s\n" "$as_me: exit $exit_status"
2264 } >&5
2265 rm -f core *.core core.conftest.* &&
2266 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2267 exit $exit_status
2268 ' 0
2269 for ac_signal in 1 2 13 15; do
2270 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2271 done
2272 ac_signal=0
2273
2274 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2275 rm -f -r conftest* confdefs.h
2276
2277 printf "%s\n" "/* confdefs.h */" > confdefs.h
2278
2279 # Predefined preprocessor variables.
2280
2281 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2282
2283 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2284
2285 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2286
2287 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2288
2289 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2290
2291 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2292
2293
2294 # Let the site file select an alternate cache file if it wants to.
2295 # Prefer an explicitly selected file to automatically selected ones.
2296 if test -n "$CONFIG_SITE"; then
2297 ac_site_files="$CONFIG_SITE"
2298 elif test "x$prefix" != xNONE; then
2299 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2300 else
2301 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2302 fi
2303
2304 for ac_site_file in $ac_site_files
2305 do
2306 case $ac_site_file in #(
2307 */*) :
2308 ;; #(
2309 *) :
2310 ac_site_file=./$ac_site_file ;;
2311 esac
2312 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2314 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2315 sed 's/^/| /' "$ac_site_file" >&5
2316 . "$ac_site_file" \
2317 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2318 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2319 as_fn_error $? "failed to load site script $ac_site_file
2320 See 'config.log' for more details" "$LINENO" 5; }
2321 fi
2322 done
2323
2324 if test -r "$cache_file"; then
2325 # Some versions of bash will fail to source /dev/null (special files
2326 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2327 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2329 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2330 case $cache_file in
2331 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2332 *) . "./$cache_file";;
2333 esac
2334 fi
2335 else
2336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2337 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2338 >$cache_file
2339 fi
2340
2341 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2342 # Test code for whether the C compiler supports C89 (global declarations)
2343 ac_c_conftest_c89_globals='
2344 /* Does the compiler advertise C89 conformance?
2345 Do not test the value of __STDC__, because some compilers set it to 0
2346 while being otherwise adequately conformant. */
2347 #if !defined __STDC__
2348 # error "Compiler does not advertise C89 conformance"
2349 #endif
2350
2351 #include <stddef.h>
2352 #include <stdarg.h>
2353 struct stat;
2354 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2355 struct buf { int x; };
2356 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2357 static char *e (char **p, int i)
2358 {
2359 return p[i];
2360 }
2361 static char *f (char * (*g) (char **, int), char **p, ...)
2362 {
2363 char *s;
2364 va_list v;
2365 va_start (v,p);
2366 s = g (p, va_arg (v,int));
2367 va_end (v);
2368 return s;
2369 }
2370
2371 /* C89 style stringification. */
2372 #define noexpand_stringify(a) #a
2373 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2374
2375 /* C89 style token pasting. Exercises some of the corner cases that
2376 e.g. old MSVC gets wrong, but not very hard. */
2377 #define noexpand_concat(a,b) a##b
2378 #define expand_concat(a,b) noexpand_concat(a,b)
2379 extern int vA;
2380 extern int vbee;
2381 #define aye A
2382 #define bee B
2383 int *pvA = &expand_concat(v,aye);
2384 int *pvbee = &noexpand_concat(v,bee);
2385
2386 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2387 function prototypes and stuff, but not \xHH hex character constants.
2388 These do not provoke an error unfortunately, instead are silently treated
2389 as an "x". The following induces an error, until -std is added to get
2390 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2391 array size at least. It is necessary to write \x00 == 0 to get something
2392 that is true only with -std. */
2393 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2394
2395 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2396 inside strings and character constants. */
2397 #define FOO(x) '\''x'\''
2398 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2399
2400 int test (int i, double x);
2401 struct s1 {int (*f) (int a);};
2402 struct s2 {int (*f) (double a);};
2403 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2404 int, int);'
2405
2406 # Test code for whether the C compiler supports C89 (body of main).
2407 ac_c_conftest_c89_main='
2408 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2409 '
2410
2411 # Test code for whether the C compiler supports C99 (global declarations)
2412 ac_c_conftest_c99_globals='
2413 /* Does the compiler advertise C99 conformance? */
2414 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2415 # error "Compiler does not advertise C99 conformance"
2416 #endif
2417
2418 // See if C++-style comments work.
2419
2420 #include <stdbool.h>
2421 extern int puts (const char *);
2422 extern int printf (const char *, ...);
2423 extern int dprintf (int, const char *, ...);
2424 extern void *malloc (size_t);
2425 extern void free (void *);
2426
2427 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2428 // dprintf is used instead of fprintf to avoid needing to declare
2429 // FILE and stderr.
2430 #define debug(...) dprintf (2, __VA_ARGS__)
2431 #define showlist(...) puts (#__VA_ARGS__)
2432 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2433 static void
2434 test_varargs_macros (void)
2435 {
2436 int x = 1234;
2437 int y = 5678;
2438 debug ("Flag");
2439 debug ("X = %d\n", x);
2440 showlist (The first, second, and third items.);
2441 report (x>y, "x is %d but y is %d", x, y);
2442 }
2443
2444 // Check long long types.
2445 #define BIG64 18446744073709551615ull
2446 #define BIG32 4294967295ul
2447 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2448 #if !BIG_OK
2449 #error "your preprocessor is broken"
2450 #endif
2451 #if BIG_OK
2452 #else
2453 #error "your preprocessor is broken"
2454 #endif
2455 static long long int bignum = -9223372036854775807LL;
2456 static unsigned long long int ubignum = BIG64;
2457
2458 struct incomplete_array
2459 {
2460 int datasize;
2461 double data[];
2462 };
2463
2464 struct named_init {
2465 int number;
2466 const wchar_t *name;
2467 double average;
2468 };
2469
2470 typedef const char *ccp;
2471
2472 static inline int
2473 test_restrict (ccp restrict text)
2474 {
2475 // Iterate through items via the restricted pointer.
2476 // Also check for declarations in for loops.
2477 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2478 continue;
2479 return 0;
2480 }
2481
2482 // Check varargs and va_copy.
2483 static bool
2484 test_varargs (const char *format, ...)
2485 {
2486 va_list args;
2487 va_start (args, format);
2488 va_list args_copy;
2489 va_copy (args_copy, args);
2490
2491 const char *str = "";
2492 int number = 0;
2493 float fnumber = 0;
2494
2495 while (*format)
2496 {
2497 switch (*format++)
2498 {
2499 case '\''s'\'': // string
2500 str = va_arg (args_copy, const char *);
2501 break;
2502 case '\''d'\'': // int
2503 number = va_arg (args_copy, int);
2504 break;
2505 case '\''f'\'': // float
2506 fnumber = va_arg (args_copy, double);
2507 break;
2508 default:
2509 break;
2510 }
2511 }
2512 va_end (args_copy);
2513 va_end (args);
2514
2515 return *str && number && fnumber;
2516 }
2517 '
2518
2519 # Test code for whether the C compiler supports C99 (body of main).
2520 ac_c_conftest_c99_main='
2521 // Check bool.
2522 _Bool success = false;
2523 success |= (argc != 0);
2524
2525 // Check restrict.
2526 if (test_restrict ("String literal") == 0)
2527 success = true;
2528 char *restrict newvar = "Another string";
2529
2530 // Check varargs.
2531 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2532 test_varargs_macros ();
2533
2534 // Check flexible array members.
2535 struct incomplete_array *ia =
2536 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2537 ia->datasize = 10;
2538 for (int i = 0; i < ia->datasize; ++i)
2539 ia->data[i] = i * 1.234;
2540 // Work around memory leak warnings.
2541 free (ia);
2542
2543 // Check named initializers.
2544 struct named_init ni = {
2545 .number = 34,
2546 .name = L"Test wide string",
2547 .average = 543.34343,
2548 };
2549
2550 ni.number = 58;
2551
2552 int dynamic_array[ni.number];
2553 dynamic_array[0] = argv[0][0];
2554 dynamic_array[ni.number - 1] = 543;
2555
2556 // work around unused variable warnings
2557 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2558 || dynamic_array[ni.number - 1] != 543);
2559 '
2560
2561 # Test code for whether the C compiler supports C11 (global declarations)
2562 ac_c_conftest_c11_globals='
2563 /* Does the compiler advertise C11 conformance? */
2564 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2565 # error "Compiler does not advertise C11 conformance"
2566 #endif
2567
2568 // Check _Alignas.
2569 char _Alignas (double) aligned_as_double;
2570 char _Alignas (0) no_special_alignment;
2571 extern char aligned_as_int;
2572 char _Alignas (0) _Alignas (int) aligned_as_int;
2573
2574 // Check _Alignof.
2575 enum
2576 {
2577 int_alignment = _Alignof (int),
2578 int_array_alignment = _Alignof (int[100]),
2579 char_alignment = _Alignof (char)
2580 };
2581 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2582
2583 // Check _Noreturn.
2584 int _Noreturn does_not_return (void) { for (;;) continue; }
2585
2586 // Check _Static_assert.
2587 struct test_static_assert
2588 {
2589 int x;
2590 _Static_assert (sizeof (int) <= sizeof (long int),
2591 "_Static_assert does not work in struct");
2592 long int y;
2593 };
2594
2595 // Check UTF-8 literals.
2596 #define u8 syntax error!
2597 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2598
2599 // Check duplicate typedefs.
2600 typedef long *long_ptr;
2601 typedef long int *long_ptr;
2602 typedef long_ptr long_ptr;
2603
2604 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2605 struct anonymous
2606 {
2607 union {
2608 struct { int i; int j; };
2609 struct { int k; long int l; } w;
2610 };
2611 int m;
2612 } v1;
2613 '
2614
2615 # Test code for whether the C compiler supports C11 (body of main).
2616 ac_c_conftest_c11_main='
2617 _Static_assert ((offsetof (struct anonymous, i)
2618 == offsetof (struct anonymous, w.k)),
2619 "Anonymous union alignment botch");
2620 v1.i = 2;
2621 v1.w.k = 5;
2622 ok |= v1.i != 5;
2623 '
2624
2625 # Test code for whether the C compiler supports C11 (complete).
2626 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2627 ${ac_c_conftest_c99_globals}
2628 ${ac_c_conftest_c11_globals}
2629
2630 int
2631 main (int argc, char **argv)
2632 {
2633 int ok = 0;
2634 ${ac_c_conftest_c89_main}
2635 ${ac_c_conftest_c99_main}
2636 ${ac_c_conftest_c11_main}
2637 return ok;
2638 }
2639 "
2640
2641 # Test code for whether the C compiler supports C99 (complete).
2642 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2643 ${ac_c_conftest_c99_globals}
2644
2645 int
2646 main (int argc, char **argv)
2647 {
2648 int ok = 0;
2649 ${ac_c_conftest_c89_main}
2650 ${ac_c_conftest_c99_main}
2651 return ok;
2652 }
2653 "
2654
2655 # Test code for whether the C compiler supports C89 (complete).
2656 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2657
2658 int
2659 main (int argc, char **argv)
2660 {
2661 int ok = 0;
2662 ${ac_c_conftest_c89_main}
2663 return ok;
2664 }
2665 "
2666
2667 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2668 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2669 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2670 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2671 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2672 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2673 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2674 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2675 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2676 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2677
2678 # Auxiliary files required by this configure script.
2679 ac_aux_files="config.guess config.sub missing install-sh compile"
2680
2681 # Locations in which to look for auxiliary files.
2682 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2683
2684 # Search for a directory containing all of the required auxiliary files,
2685 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2686 # If we don't find one directory that contains all the files we need,
2687 # we report the set of missing files from the *first* directory in
2688 # $ac_aux_dir_candidates and give up.
2689 ac_missing_aux_files=""
2690 ac_first_candidate=:
2691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2693 as_found=false
2694 for as_dir in $ac_aux_dir_candidates
2695 do
2696 IFS=$as_save_IFS
2697 case $as_dir in #(((
2698 '') as_dir=./ ;;
2699 */) ;;
2700 *) as_dir=$as_dir/ ;;
2701 esac
2702 as_found=:
2703
2704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2705 ac_aux_dir_found=yes
2706 ac_install_sh=
2707 for ac_aux in $ac_aux_files
2708 do
2709 # As a special case, if "install-sh" is required, that requirement
2710 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2711 # and $ac_install_sh is set appropriately for whichever one is found.
2712 if test x"$ac_aux" = x"install-sh"
2713 then
2714 if test -f "${as_dir}install-sh"; then
2715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2716 ac_install_sh="${as_dir}install-sh -c"
2717 elif test -f "${as_dir}install.sh"; then
2718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2719 ac_install_sh="${as_dir}install.sh -c"
2720 elif test -f "${as_dir}shtool"; then
2721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2722 ac_install_sh="${as_dir}shtool install -c"
2723 else
2724 ac_aux_dir_found=no
2725 if $ac_first_candidate; then
2726 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2727 else
2728 break
2729 fi
2730 fi
2731 else
2732 if test -f "${as_dir}${ac_aux}"; then
2733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2734 else
2735 ac_aux_dir_found=no
2736 if $ac_first_candidate; then
2737 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2738 else
2739 break
2740 fi
2741 fi
2742 fi
2743 done
2744 if test "$ac_aux_dir_found" = yes; then
2745 ac_aux_dir="$as_dir"
2746 break
2747 fi
2748 ac_first_candidate=false
2749
2750 as_found=false
2751 done
2752 IFS=$as_save_IFS
2753 if $as_found
2754 then :
2755
2756 else case e in #(
2757 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2758 esac
2759 fi
2760
2761
2762 # These three variables are undocumented and unsupported,
2763 # and are intended to be withdrawn in a future Autoconf release.
2764 # They can cause serious problems if a builder's source tree is in a directory
2765 # whose full name contains unusual characters.
2766 if test -f "${ac_aux_dir}config.guess"; then
2767 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2768 fi
2769 if test -f "${ac_aux_dir}config.sub"; then
2770 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2771 fi
2772 if test -f "$ac_aux_dir/configure"; then
2773 ac_configure="$SHELL ${ac_aux_dir}configure"
2774 fi
2775
2776 # Check that the precious variables saved in the cache have kept the same
2777 # value.
2778 ac_cache_corrupted=false
2779 for ac_var in $ac_precious_vars; do
2780 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2781 eval ac_new_set=\$ac_env_${ac_var}_set
2782 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2783 eval ac_new_val=\$ac_env_${ac_var}_value
2784 case $ac_old_set,$ac_new_set in
2785 set,)
2786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2787 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2788 ac_cache_corrupted=: ;;
2789 ,set)
2790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2791 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2792 ac_cache_corrupted=: ;;
2793 ,);;
2794 *)
2795 if test "x$ac_old_val" != "x$ac_new_val"; then
2796 # differences in whitespace do not lead to failure.
2797 ac_old_val_w=`echo x $ac_old_val`
2798 ac_new_val_w=`echo x $ac_new_val`
2799 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2801 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2802 ac_cache_corrupted=:
2803 else
2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2805 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2806 eval $ac_var=\$ac_old_val
2807 fi
2808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2809 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2811 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2812 fi;;
2813 esac
2814 # Pass precious variables to config.status.
2815 if test "$ac_new_set" = set; then
2816 case $ac_new_val in
2817 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2818 *) ac_arg=$ac_var=$ac_new_val ;;
2819 esac
2820 case " $ac_configure_args " in
2821 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2822 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2823 esac
2824 fi
2825 done
2826 if $ac_cache_corrupted; then
2827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2828 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2830 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2831 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2832 and start over" "$LINENO" 5
2833 fi
2834 ## -------------------- ##
2835 ## Main body of script. ##
2836 ## -------------------- ##
2837
2838 ac_ext=c
2839 ac_cpp='$CPP $CPPFLAGS'
2840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843
2844
2845 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2846 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858 # Expand $ac_aux_dir to an absolute path.
2859 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2860
2861 ac_ext=c
2862 ac_cpp='$CPP $CPPFLAGS'
2863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866 if test -n "$ac_tool_prefix"; then
2867 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2868 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 printf %s "checking for $ac_word... " >&6; }
2871 if test ${ac_cv_prog_CC+y}
2872 then :
2873 printf %s "(cached) " >&6
2874 else case e in #(
2875 e) if test -n "$CC"; then
2876 ac_cv_prog_CC="$CC" # Let the user override the test.
2877 else
2878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2879 for as_dir in $PATH
2880 do
2881 IFS=$as_save_IFS
2882 case $as_dir in #(((
2883 '') as_dir=./ ;;
2884 */) ;;
2885 *) as_dir=$as_dir/ ;;
2886 esac
2887 for ac_exec_ext in '' $ac_executable_extensions; do
2888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2889 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2891 break 2
2892 fi
2893 done
2894 done
2895 IFS=$as_save_IFS
2896
2897 fi ;;
2898 esac
2899 fi
2900 CC=$ac_cv_prog_CC
2901 if test -n "$CC"; then
2902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2903 printf "%s\n" "$CC" >&6; }
2904 else
2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 printf "%s\n" "no" >&6; }
2907 fi
2908
2909
2910 fi
2911 if test -z "$ac_cv_prog_CC"; then
2912 ac_ct_CC=$CC
2913 # Extract the first word of "gcc", so it can be a program name with args.
2914 set dummy gcc; ac_word=$2
2915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 printf %s "checking for $ac_word... " >&6; }
2917 if test ${ac_cv_prog_ac_ct_CC+y}
2918 then :
2919 printf %s "(cached) " >&6
2920 else case e in #(
2921 e) if test -n "$ac_ct_CC"; then
2922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2926 do
2927 IFS=$as_save_IFS
2928 case $as_dir in #(((
2929 '') as_dir=./ ;;
2930 */) ;;
2931 *) as_dir=$as_dir/ ;;
2932 esac
2933 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2935 ac_cv_prog_ac_ct_CC="gcc"
2936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2937 break 2
2938 fi
2939 done
2940 done
2941 IFS=$as_save_IFS
2942
2943 fi ;;
2944 esac
2945 fi
2946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2949 printf "%s\n" "$ac_ct_CC" >&6; }
2950 else
2951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2952 printf "%s\n" "no" >&6; }
2953 fi
2954
2955 if test "x$ac_ct_CC" = x; then
2956 CC=""
2957 else
2958 case $cross_compiling:$ac_tool_warned in
2959 yes:)
2960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2961 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2962 ac_tool_warned=yes ;;
2963 esac
2964 CC=$ac_ct_CC
2965 fi
2966 else
2967 CC="$ac_cv_prog_CC"
2968 fi
2969
2970 if test -z "$CC"; then
2971 if test -n "$ac_tool_prefix"; then
2972 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2973 set dummy ${ac_tool_prefix}cc; ac_word=$2
2974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 printf %s "checking for $ac_word... " >&6; }
2976 if test ${ac_cv_prog_CC+y}
2977 then :
2978 printf %s "(cached) " >&6
2979 else case e in #(
2980 e) if test -n "$CC"; then
2981 ac_cv_prog_CC="$CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986 IFS=$as_save_IFS
2987 case $as_dir in #(((
2988 '') as_dir=./ ;;
2989 */) ;;
2990 *) as_dir=$as_dir/ ;;
2991 esac
2992 for ac_exec_ext in '' $ac_executable_extensions; do
2993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2994 ac_cv_prog_CC="${ac_tool_prefix}cc"
2995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2996 break 2
2997 fi
2998 done
2999 done
3000 IFS=$as_save_IFS
3001
3002 fi ;;
3003 esac
3004 fi
3005 CC=$ac_cv_prog_CC
3006 if test -n "$CC"; then
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3008 printf "%s\n" "$CC" >&6; }
3009 else
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3011 printf "%s\n" "no" >&6; }
3012 fi
3013
3014
3015 fi
3016 fi
3017 if test -z "$CC"; then
3018 # Extract the first word of "cc", so it can be a program name with args.
3019 set dummy cc; ac_word=$2
3020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3021 printf %s "checking for $ac_word... " >&6; }
3022 if test ${ac_cv_prog_CC+y}
3023 then :
3024 printf %s "(cached) " >&6
3025 else case e in #(
3026 e) if test -n "$CC"; then
3027 ac_cv_prog_CC="$CC" # Let the user override the test.
3028 else
3029 ac_prog_rejected=no
3030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031 for as_dir in $PATH
3032 do
3033 IFS=$as_save_IFS
3034 case $as_dir in #(((
3035 '') as_dir=./ ;;
3036 */) ;;
3037 *) as_dir=$as_dir/ ;;
3038 esac
3039 for ac_exec_ext in '' $ac_executable_extensions; do
3040 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3041 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3042 ac_prog_rejected=yes
3043 continue
3044 fi
3045 ac_cv_prog_CC="cc"
3046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3047 break 2
3048 fi
3049 done
3050 done
3051 IFS=$as_save_IFS
3052
3053 if test $ac_prog_rejected = yes; then
3054 # We found a bogon in the path, so make sure we never use it.
3055 set dummy $ac_cv_prog_CC
3056 shift
3057 if test $# != 0; then
3058 # We chose a different compiler from the bogus one.
3059 # However, it has the same basename, so the bogon will be chosen
3060 # first if we set CC to just the basename; use the full file name.
3061 shift
3062 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3063 fi
3064 fi
3065 fi ;;
3066 esac
3067 fi
3068 CC=$ac_cv_prog_CC
3069 if test -n "$CC"; then
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3071 printf "%s\n" "$CC" >&6; }
3072 else
3073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3074 printf "%s\n" "no" >&6; }
3075 fi
3076
3077
3078 fi
3079 if test -z "$CC"; then
3080 if test -n "$ac_tool_prefix"; then
3081 for ac_prog in cl.exe
3082 do
3083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3084 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 printf %s "checking for $ac_word... " >&6; }
3087 if test ${ac_cv_prog_CC+y}
3088 then :
3089 printf %s "(cached) " >&6
3090 else case e in #(
3091 e) if test -n "$CC"; then
3092 ac_cv_prog_CC="$CC" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
3097 IFS=$as_save_IFS
3098 case $as_dir in #(((
3099 '') as_dir=./ ;;
3100 */) ;;
3101 *) as_dir=$as_dir/ ;;
3102 esac
3103 for ac_exec_ext in '' $ac_executable_extensions; do
3104 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3105 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3107 break 2
3108 fi
3109 done
3110 done
3111 IFS=$as_save_IFS
3112
3113 fi ;;
3114 esac
3115 fi
3116 CC=$ac_cv_prog_CC
3117 if test -n "$CC"; then
3118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3119 printf "%s\n" "$CC" >&6; }
3120 else
3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3122 printf "%s\n" "no" >&6; }
3123 fi
3124
3125
3126 test -n "$CC" && break
3127 done
3128 fi
3129 if test -z "$CC"; then
3130 ac_ct_CC=$CC
3131 for ac_prog in cl.exe
3132 do
3133 # Extract the first word of "$ac_prog", so it can be a program name with args.
3134 set dummy $ac_prog; ac_word=$2
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 printf %s "checking for $ac_word... " >&6; }
3137 if test ${ac_cv_prog_ac_ct_CC+y}
3138 then :
3139 printf %s "(cached) " >&6
3140 else case e in #(
3141 e) if test -n "$ac_ct_CC"; then
3142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH
3146 do
3147 IFS=$as_save_IFS
3148 case $as_dir in #(((
3149 '') as_dir=./ ;;
3150 */) ;;
3151 *) as_dir=$as_dir/ ;;
3152 esac
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_ac_ct_CC="$ac_prog"
3156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159 done
3160 done
3161 IFS=$as_save_IFS
3162
3163 fi ;;
3164 esac
3165 fi
3166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167 if test -n "$ac_ct_CC"; then
3168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3169 printf "%s\n" "$ac_ct_CC" >&6; }
3170 else
3171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 printf "%s\n" "no" >&6; }
3173 fi
3174
3175
3176 test -n "$ac_ct_CC" && break
3177 done
3178
3179 if test "x$ac_ct_CC" = x; then
3180 CC=""
3181 else
3182 case $cross_compiling:$ac_tool_warned in
3183 yes:)
3184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3185 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3186 ac_tool_warned=yes ;;
3187 esac
3188 CC=$ac_ct_CC
3189 fi
3190 fi
3191
3192 fi
3193 if test -z "$CC"; then
3194 if test -n "$ac_tool_prefix"; then
3195 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3196 set dummy ${ac_tool_prefix}clang; ac_word=$2
3197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3198 printf %s "checking for $ac_word... " >&6; }
3199 if test ${ac_cv_prog_CC+y}
3200 then :
3201 printf %s "(cached) " >&6
3202 else case e in #(
3203 e) if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3205 else
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3208 do
3209 IFS=$as_save_IFS
3210 case $as_dir in #(((
3211 '') as_dir=./ ;;
3212 */) ;;
3213 *) as_dir=$as_dir/ ;;
3214 esac
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3217 ac_cv_prog_CC="${ac_tool_prefix}clang"
3218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221 done
3222 done
3223 IFS=$as_save_IFS
3224
3225 fi ;;
3226 esac
3227 fi
3228 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then
3230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231 printf "%s\n" "$CC" >&6; }
3232 else
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 printf "%s\n" "no" >&6; }
3235 fi
3236
3237
3238 fi
3239 if test -z "$ac_cv_prog_CC"; then
3240 ac_ct_CC=$CC
3241 # Extract the first word of "clang", so it can be a program name with args.
3242 set dummy clang; ac_word=$2
3243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3244 printf %s "checking for $ac_word... " >&6; }
3245 if test ${ac_cv_prog_ac_ct_CC+y}
3246 then :
3247 printf %s "(cached) " >&6
3248 else case e in #(
3249 e) if test -n "$ac_ct_CC"; then
3250 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255 IFS=$as_save_IFS
3256 case $as_dir in #(((
3257 '') as_dir=./ ;;
3258 */) ;;
3259 *) as_dir=$as_dir/ ;;
3260 esac
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_ac_ct_CC="clang"
3264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3265 break 2
3266 fi
3267 done
3268 done
3269 IFS=$as_save_IFS
3270
3271 fi ;;
3272 esac
3273 fi
3274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3275 if test -n "$ac_ct_CC"; then
3276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3277 printf "%s\n" "$ac_ct_CC" >&6; }
3278 else
3279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 printf "%s\n" "no" >&6; }
3281 fi
3282
3283 if test "x$ac_ct_CC" = x; then
3284 CC=""
3285 else
3286 case $cross_compiling:$ac_tool_warned in
3287 yes:)
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3289 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3290 ac_tool_warned=yes ;;
3291 esac
3292 CC=$ac_ct_CC
3293 fi
3294 else
3295 CC="$ac_cv_prog_CC"
3296 fi
3297
3298 fi
3299
3300
3301 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3302 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3303 as_fn_error $? "no acceptable C compiler found in \$PATH
3304 See 'config.log' for more details" "$LINENO" 5; }
3305
3306 # Provide some information about the compiler.
3307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3308 set X $ac_compile
3309 ac_compiler=$2
3310 for ac_option in --version -v -V -qversion -version; do
3311 { { ac_try="$ac_compiler $ac_option >&5"
3312 case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315 esac
3316 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317 printf "%s\n" "$ac_try_echo"; } >&5
3318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3319 ac_status=$?
3320 if test -s conftest.err; then
3321 sed '10a\
3322 ... rest of stderr output deleted ...
3323 10q' conftest.err >conftest.er1
3324 cat conftest.er1 >&5
3325 fi
3326 rm -f conftest.er1 conftest.err
3327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3328 test $ac_status = 0; }
3329 done
3330
3331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332 /* end confdefs.h. */
3333
3334 int
3335 main (void)
3336 {
3337
3338 ;
3339 return 0;
3340 }
3341 _ACEOF
3342 ac_clean_files_save=$ac_clean_files
3343 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3344 # Try to create an executable without -o first, disregard a.out.
3345 # It will help us diagnose broken compilers, and finding out an intuition
3346 # of exeext.
3347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3348 printf %s "checking whether the C compiler works... " >&6; }
3349 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3350
3351 # The possible output files:
3352 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3353
3354 ac_rmfiles=
3355 for ac_file in $ac_files
3356 do
3357 case $ac_file in
3358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3359 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3360 esac
3361 done
3362 rm -f $ac_rmfiles
3363
3364 if { { ac_try="$ac_link_default"
3365 case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368 esac
3369 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370 printf "%s\n" "$ac_try_echo"; } >&5
3371 (eval "$ac_link_default") 2>&5
3372 ac_status=$?
3373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }
3375 then :
3376 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3377 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3378 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3379 # so that the user can short-circuit this test for compilers unknown to
3380 # Autoconf.
3381 for ac_file in $ac_files ''
3382 do
3383 test -f "$ac_file" || continue
3384 case $ac_file in
3385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3386 ;;
3387 [ab].out )
3388 # We found the default executable, but exeext='' is most
3389 # certainly right.
3390 break;;
3391 *.* )
3392 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3393 then :; else
3394 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3395 fi
3396 # We set ac_cv_exeext here because the later test for it is not
3397 # safe: cross compilers may not add the suffix if given an '-o'
3398 # argument, so we may need to know it at that point already.
3399 # Even if this section looks crufty: it has the advantage of
3400 # actually working.
3401 break;;
3402 * )
3403 break;;
3404 esac
3405 done
3406 test "$ac_cv_exeext" = no && ac_cv_exeext=
3407
3408 else case e in #(
3409 e) ac_file='' ;;
3410 esac
3411 fi
3412 if test -z "$ac_file"
3413 then :
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3415 printf "%s\n" "no" >&6; }
3416 printf "%s\n" "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3418
3419 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3420 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3421 as_fn_error 77 "C compiler cannot create executables
3422 See 'config.log' for more details" "$LINENO" 5; }
3423 else case e in #(
3424 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3425 printf "%s\n" "yes" >&6; } ;;
3426 esac
3427 fi
3428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3429 printf %s "checking for C compiler default output file name... " >&6; }
3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3431 printf "%s\n" "$ac_file" >&6; }
3432 ac_exeext=$ac_cv_exeext
3433
3434 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3435 ac_clean_files=$ac_clean_files_save
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3437 printf %s "checking for suffix of executables... " >&6; }
3438 if { { ac_try="$ac_link"
3439 case "(($ac_try" in
3440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3441 *) ac_try_echo=$ac_try;;
3442 esac
3443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3444 printf "%s\n" "$ac_try_echo"; } >&5
3445 (eval "$ac_link") 2>&5
3446 ac_status=$?
3447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3448 test $ac_status = 0; }
3449 then :
3450 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3451 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3452 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3453 # 'rm'.
3454 for ac_file in conftest.exe conftest conftest.*; do
3455 test -f "$ac_file" || continue
3456 case $ac_file in
3457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3458 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3459 break;;
3460 * ) break;;
3461 esac
3462 done
3463 else case e in #(
3464 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3465 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3466 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3467 See 'config.log' for more details" "$LINENO" 5; } ;;
3468 esac
3469 fi
3470 rm -f conftest conftest$ac_cv_exeext
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3472 printf "%s\n" "$ac_cv_exeext" >&6; }
3473
3474 rm -f conftest.$ac_ext
3475 EXEEXT=$ac_cv_exeext
3476 ac_exeext=$EXEEXT
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479 #include <stdio.h>
3480 int
3481 main (void)
3482 {
3483 FILE *f = fopen ("conftest.out", "w");
3484 if (!f)
3485 return 1;
3486 return ferror (f) || fclose (f) != 0;
3487
3488 ;
3489 return 0;
3490 }
3491 _ACEOF
3492 ac_clean_files="$ac_clean_files conftest.out"
3493 # Check that the compiler produces executables we can run. If not, either
3494 # the compiler is broken, or we cross compile.
3495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3496 printf %s "checking whether we are cross compiling... " >&6; }
3497 if test "$cross_compiling" != yes; then
3498 { { ac_try="$ac_link"
3499 case "(($ac_try" in
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3502 esac
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 printf "%s\n" "$ac_try_echo"; } >&5
3505 (eval "$ac_link") 2>&5
3506 ac_status=$?
3507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3508 test $ac_status = 0; }
3509 if { ac_try='./conftest$ac_cv_exeext'
3510 { { case "(($ac_try" in
3511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3512 *) ac_try_echo=$ac_try;;
3513 esac
3514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3515 printf "%s\n" "$ac_try_echo"; } >&5
3516 (eval "$ac_try") 2>&5
3517 ac_status=$?
3518 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }; }; then
3520 cross_compiling=no
3521 else
3522 if test "$cross_compiling" = maybe; then
3523 cross_compiling=yes
3524 else
3525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3526 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3527 as_fn_error 77 "cannot run C compiled programs.
3528 If you meant to cross compile, use '--host'.
3529 See 'config.log' for more details" "$LINENO" 5; }
3530 fi
3531 fi
3532 fi
3533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3534 printf "%s\n" "$cross_compiling" >&6; }
3535
3536 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3537 conftest.o conftest.obj conftest.out
3538 ac_clean_files=$ac_clean_files_save
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3540 printf %s "checking for suffix of object files... " >&6; }
3541 if test ${ac_cv_objext+y}
3542 then :
3543 printf %s "(cached) " >&6
3544 else case e in #(
3545 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547
3548 int
3549 main (void)
3550 {
3551
3552 ;
3553 return 0;
3554 }
3555 _ACEOF
3556 rm -f conftest.o conftest.obj
3557 if { { ac_try="$ac_compile"
3558 case "(($ac_try" in
3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3560 *) ac_try_echo=$ac_try;;
3561 esac
3562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3563 printf "%s\n" "$ac_try_echo"; } >&5
3564 (eval "$ac_compile") 2>&5
3565 ac_status=$?
3566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3567 test $ac_status = 0; }
3568 then :
3569 for ac_file in conftest.o conftest.obj conftest.*; do
3570 test -f "$ac_file" || continue;
3571 case $ac_file in
3572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3574 break;;
3575 esac
3576 done
3577 else case e in #(
3578 e) printf "%s\n" "$as_me: failed program was:" >&5
3579 sed 's/^/| /' conftest.$ac_ext >&5
3580
3581 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3582 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3583 as_fn_error $? "cannot compute suffix of object files: cannot compile
3584 See 'config.log' for more details" "$LINENO" 5; } ;;
3585 esac
3586 fi
3587 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3588 esac
3589 fi
3590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3591 printf "%s\n" "$ac_cv_objext" >&6; }
3592 OBJEXT=$ac_cv_objext
3593 ac_objext=$OBJEXT
3594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3595 printf %s "checking whether the compiler supports GNU C... " >&6; }
3596 if test ${ac_cv_c_compiler_gnu+y}
3597 then :
3598 printf %s "(cached) " >&6
3599 else case e in #(
3600 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3602
3603 int
3604 main (void)
3605 {
3606 #ifndef __GNUC__
3607 choke me
3608 #endif
3609
3610 ;
3611 return 0;
3612 }
3613 _ACEOF
3614 if ac_fn_c_try_compile "$LINENO"
3615 then :
3616 ac_compiler_gnu=yes
3617 else case e in #(
3618 e) ac_compiler_gnu=no ;;
3619 esac
3620 fi
3621 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3622 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3623 ;;
3624 esac
3625 fi
3626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3627 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629
3630 if test $ac_compiler_gnu = yes; then
3631 GCC=yes
3632 else
3633 GCC=
3634 fi
3635 ac_test_CFLAGS=${CFLAGS+y}
3636 ac_save_CFLAGS=$CFLAGS
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3638 printf %s "checking whether $CC accepts -g... " >&6; }
3639 if test ${ac_cv_prog_cc_g+y}
3640 then :
3641 printf %s "(cached) " >&6
3642 else case e in #(
3643 e) ac_save_c_werror_flag=$ac_c_werror_flag
3644 ac_c_werror_flag=yes
3645 ac_cv_prog_cc_g=no
3646 CFLAGS="-g"
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649
3650 int
3651 main (void)
3652 {
3653
3654 ;
3655 return 0;
3656 }
3657 _ACEOF
3658 if ac_fn_c_try_compile "$LINENO"
3659 then :
3660 ac_cv_prog_cc_g=yes
3661 else case e in #(
3662 e) CFLAGS=""
3663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3664 /* end confdefs.h. */
3665
3666 int
3667 main (void)
3668 {
3669
3670 ;
3671 return 0;
3672 }
3673 _ACEOF
3674 if ac_fn_c_try_compile "$LINENO"
3675 then :
3676
3677 else case e in #(
3678 e) ac_c_werror_flag=$ac_save_c_werror_flag
3679 CFLAGS="-g"
3680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3681 /* end confdefs.h. */
3682
3683 int
3684 main (void)
3685 {
3686
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 if ac_fn_c_try_compile "$LINENO"
3692 then :
3693 ac_cv_prog_cc_g=yes
3694 fi
3695 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3696 esac
3697 fi
3698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3699 esac
3700 fi
3701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3702 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3703 esac
3704 fi
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3706 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3707 if test $ac_test_CFLAGS; then
3708 CFLAGS=$ac_save_CFLAGS
3709 elif test $ac_cv_prog_cc_g = yes; then
3710 if test "$GCC" = yes; then
3711 CFLAGS="-g -O2"
3712 else
3713 CFLAGS="-g"
3714 fi
3715 else
3716 if test "$GCC" = yes; then
3717 CFLAGS="-O2"
3718 else
3719 CFLAGS=
3720 fi
3721 fi
3722 ac_prog_cc_stdc=no
3723 if test x$ac_prog_cc_stdc = xno
3724 then :
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3726 printf %s "checking for $CC option to enable C11 features... " >&6; }
3727 if test ${ac_cv_prog_cc_c11+y}
3728 then :
3729 printf %s "(cached) " >&6
3730 else case e in #(
3731 e) ac_cv_prog_cc_c11=no
3732 ac_save_CC=$CC
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3735 $ac_c_conftest_c11_program
3736 _ACEOF
3737 for ac_arg in '' -std=gnu11
3738 do
3739 CC="$ac_save_CC $ac_arg"
3740 if ac_fn_c_try_compile "$LINENO"
3741 then :
3742 ac_cv_prog_cc_c11=$ac_arg
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext conftest.beam
3745 test "x$ac_cv_prog_cc_c11" != "xno" && break
3746 done
3747 rm -f conftest.$ac_ext
3748 CC=$ac_save_CC ;;
3749 esac
3750 fi
3751
3752 if test "x$ac_cv_prog_cc_c11" = xno
3753 then :
3754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3755 printf "%s\n" "unsupported" >&6; }
3756 else case e in #(
3757 e) if test "x$ac_cv_prog_cc_c11" = x
3758 then :
3759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3760 printf "%s\n" "none needed" >&6; }
3761 else case e in #(
3762 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3763 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3764 CC="$CC $ac_cv_prog_cc_c11" ;;
3765 esac
3766 fi
3767 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3768 ac_prog_cc_stdc=c11 ;;
3769 esac
3770 fi
3771 fi
3772 if test x$ac_prog_cc_stdc = xno
3773 then :
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3775 printf %s "checking for $CC option to enable C99 features... " >&6; }
3776 if test ${ac_cv_prog_cc_c99+y}
3777 then :
3778 printf %s "(cached) " >&6
3779 else case e in #(
3780 e) ac_cv_prog_cc_c99=no
3781 ac_save_CC=$CC
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3784 $ac_c_conftest_c99_program
3785 _ACEOF
3786 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3787 do
3788 CC="$ac_save_CC $ac_arg"
3789 if ac_fn_c_try_compile "$LINENO"
3790 then :
3791 ac_cv_prog_cc_c99=$ac_arg
3792 fi
3793 rm -f core conftest.err conftest.$ac_objext conftest.beam
3794 test "x$ac_cv_prog_cc_c99" != "xno" && break
3795 done
3796 rm -f conftest.$ac_ext
3797 CC=$ac_save_CC ;;
3798 esac
3799 fi
3800
3801 if test "x$ac_cv_prog_cc_c99" = xno
3802 then :
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3804 printf "%s\n" "unsupported" >&6; }
3805 else case e in #(
3806 e) if test "x$ac_cv_prog_cc_c99" = x
3807 then :
3808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3809 printf "%s\n" "none needed" >&6; }
3810 else case e in #(
3811 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3812 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3813 CC="$CC $ac_cv_prog_cc_c99" ;;
3814 esac
3815 fi
3816 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3817 ac_prog_cc_stdc=c99 ;;
3818 esac
3819 fi
3820 fi
3821 if test x$ac_prog_cc_stdc = xno
3822 then :
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3824 printf %s "checking for $CC option to enable C89 features... " >&6; }
3825 if test ${ac_cv_prog_cc_c89+y}
3826 then :
3827 printf %s "(cached) " >&6
3828 else case e in #(
3829 e) ac_cv_prog_cc_c89=no
3830 ac_save_CC=$CC
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3833 $ac_c_conftest_c89_program
3834 _ACEOF
3835 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3836 do
3837 CC="$ac_save_CC $ac_arg"
3838 if ac_fn_c_try_compile "$LINENO"
3839 then :
3840 ac_cv_prog_cc_c89=$ac_arg
3841 fi
3842 rm -f core conftest.err conftest.$ac_objext conftest.beam
3843 test "x$ac_cv_prog_cc_c89" != "xno" && break
3844 done
3845 rm -f conftest.$ac_ext
3846 CC=$ac_save_CC ;;
3847 esac
3848 fi
3849
3850 if test "x$ac_cv_prog_cc_c89" = xno
3851 then :
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3853 printf "%s\n" "unsupported" >&6; }
3854 else case e in #(
3855 e) if test "x$ac_cv_prog_cc_c89" = x
3856 then :
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3858 printf "%s\n" "none needed" >&6; }
3859 else case e in #(
3860 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3861 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3862 CC="$CC $ac_cv_prog_cc_c89" ;;
3863 esac
3864 fi
3865 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3866 ac_prog_cc_stdc=c89 ;;
3867 esac
3868 fi
3869 fi
3870
3871 ac_ext=c
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3876
3877
3878 ac_ext=c
3879 ac_cpp='$CPP $CPPFLAGS'
3880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3884 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3885 if test ${am_cv_prog_cc_c_o+y}
3886 then :
3887 printf %s "(cached) " >&6
3888 else case e in #(
3889 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3890 /* end confdefs.h. */
3891
3892 int
3893 main (void)
3894 {
3895
3896 ;
3897 return 0;
3898 }
3899 _ACEOF
3900 # Make sure it works both with $CC and with simple cc.
3901 # Following AC_PROG_CC_C_O, we do the test twice because some
3902 # compilers refuse to overwrite an existing .o file with -o,
3903 # though they will create one.
3904 am_cv_prog_cc_c_o=yes
3905 for am_i in 1 2; do
3906 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3907 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3908 ac_status=$?
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); } \
3911 && test -f conftest2.$ac_objext; then
3912 : OK
3913 else
3914 am_cv_prog_cc_c_o=no
3915 break
3916 fi
3917 done
3918 rm -f core conftest*
3919 unset am_i ;;
3920 esac
3921 fi
3922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3923 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3924 if test "$am_cv_prog_cc_c_o" != yes; then
3925 # Losing compiler, so override with the script.
3926 # FIXME: It is wrong to rewrite CC.
3927 # But if we don't then we get into trouble of one sort or another.
3928 # A longer-term fix would be to have automake use am__CC in this case,
3929 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3930 CC="$am_aux_dir/compile $CC"
3931 fi
3932 ac_ext=c
3933 ac_cpp='$CPP $CPPFLAGS'
3934 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937
3938
3939
3940 ac_header= ac_cache=
3941 for ac_item in $ac_header_c_list
3942 do
3943 if test $ac_cache; then
3944 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3945 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3946 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3947 fi
3948 ac_header= ac_cache=
3949 elif test $ac_header; then
3950 ac_cache=$ac_item
3951 else
3952 ac_header=$ac_item
3953 fi
3954 done
3955
3956
3957
3958
3959
3960
3961
3962
3963 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3964 then :
3965
3966 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3967
3968 fi
3969
3970
3971
3972
3973
3974
3975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3976 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3977 if test ${ac_cv_safe_to_define___extensions__+y}
3978 then :
3979 printf %s "(cached) " >&6
3980 else case e in #(
3981 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3983
3984 # define __EXTENSIONS__ 1
3985 $ac_includes_default
3986 int
3987 main (void)
3988 {
3989
3990 ;
3991 return 0;
3992 }
3993 _ACEOF
3994 if ac_fn_c_try_compile "$LINENO"
3995 then :
3996 ac_cv_safe_to_define___extensions__=yes
3997 else case e in #(
3998 e) ac_cv_safe_to_define___extensions__=no ;;
3999 esac
4000 fi
4001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4002 esac
4003 fi
4004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4005 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4006
4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4008 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4009 if test ${ac_cv_should_define__xopen_source+y}
4010 then :
4011 printf %s "(cached) " >&6
4012 else case e in #(
4013 e) ac_cv_should_define__xopen_source=no
4014 if test $ac_cv_header_wchar_h = yes
4015 then :
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4018
4019 #include <wchar.h>
4020 mbstate_t x;
4021 int
4022 main (void)
4023 {
4024
4025 ;
4026 return 0;
4027 }
4028 _ACEOF
4029 if ac_fn_c_try_compile "$LINENO"
4030 then :
4031
4032 else case e in #(
4033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035
4036 #define _XOPEN_SOURCE 500
4037 #include <wchar.h>
4038 mbstate_t x;
4039 int
4040 main (void)
4041 {
4042
4043 ;
4044 return 0;
4045 }
4046 _ACEOF
4047 if ac_fn_c_try_compile "$LINENO"
4048 then :
4049 ac_cv_should_define__xopen_source=yes
4050 fi
4051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4052 esac
4053 fi
4054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4055 fi ;;
4056 esac
4057 fi
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4059 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4060
4061 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4062
4063 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4064
4065 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4066
4067 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4068
4069 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4070
4071 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4072
4073 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4074
4075 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4076
4077 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4078
4079 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4080
4081 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
4082
4083 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4084
4085 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4086
4087 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4088
4089 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4090
4091 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4092
4093 if test $ac_cv_header_minix_config_h = yes
4094 then :
4095 MINIX=yes
4096 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4097
4098 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4099
4100 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4101
4102 else case e in #(
4103 e) MINIX= ;;
4104 esac
4105 fi
4106 if test $ac_cv_safe_to_define___extensions__ = yes
4107 then :
4108 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4109
4110 fi
4111 if test $ac_cv_should_define__xopen_source = yes
4112 then :
4113 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4114
4115 fi
4116
4117 ac_config_headers="$ac_config_headers config.h"
4118
4119
4120
4121 # Initialize Automake
4122 am__api_version='1.17'
4123
4124
4125 # Find a good install program. We prefer a C program (faster),
4126 # so one script is as good as another. But avoid the broken or
4127 # incompatible versions:
4128 # SysV /etc/install, /usr/sbin/install
4129 # SunOS /usr/etc/install
4130 # IRIX /sbin/install
4131 # AIX /bin/install
4132 # AmigaOS /C/install, which installs bootblocks on floppy discs
4133 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4134 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4135 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4136 # OS/2's system install, which has a completely different semantic
4137 # ./install, which can be erroneously created by make from ./install.sh.
4138 # Reject install programs that cannot install multiple files.
4139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4140 printf %s "checking for a BSD-compatible install... " >&6; }
4141 if test -z "$INSTALL"; then
4142 if test ${ac_cv_path_install+y}
4143 then :
4144 printf %s "(cached) " >&6
4145 else case e in #(
4146 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 for as_dir in $PATH
4148 do
4149 IFS=$as_save_IFS
4150 case $as_dir in #(((
4151 '') as_dir=./ ;;
4152 */) ;;
4153 *) as_dir=$as_dir/ ;;
4154 esac
4155 # Account for fact that we put trailing slashes in our PATH walk.
4156 case $as_dir in #((
4157 ./ | /[cC]/* | \
4158 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4159 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4160 /usr/ucb/* ) ;;
4161 *)
4162 # OSF1 and SCO ODT 3.0 have their own names for install.
4163 # Don't use installbsd from OSF since it installs stuff as root
4164 # by default.
4165 for ac_prog in ginstall scoinst install; do
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4168 if test $ac_prog = install &&
4169 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4170 # AIX install. It has an incompatible calling convention.
4171 :
4172 elif test $ac_prog = install &&
4173 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4174 # program-specific install script used by HP pwplus--don't use.
4175 :
4176 else
4177 rm -rf conftest.one conftest.two conftest.dir
4178 echo one > conftest.one
4179 echo two > conftest.two
4180 mkdir conftest.dir
4181 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4182 test -s conftest.one && test -s conftest.two &&
4183 test -s conftest.dir/conftest.one &&
4184 test -s conftest.dir/conftest.two
4185 then
4186 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4187 break 3
4188 fi
4189 fi
4190 fi
4191 done
4192 done
4193 ;;
4194 esac
4195
4196 done
4197 IFS=$as_save_IFS
4198
4199 rm -rf conftest.one conftest.two conftest.dir
4200 ;;
4201 esac
4202 fi
4203 if test ${ac_cv_path_install+y}; then
4204 INSTALL=$ac_cv_path_install
4205 else
4206 # As a last resort, use the slow shell script. Don't cache a
4207 # value for INSTALL within a source directory, because that will
4208 # break other packages using the cache if that directory is
4209 # removed, or if the value is a relative name.
4210 INSTALL=$ac_install_sh
4211 fi
4212 fi
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4214 printf "%s\n" "$INSTALL" >&6; }
4215
4216 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4217 # It thinks the first close brace ends the variable substitution.
4218 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4219
4220 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4221
4222 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4223
4224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4225 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4226 if test ${am_cv_sleep_fractional_seconds+y}
4227 then :
4228 printf %s "(cached) " >&6
4229 else case e in #(
4230 e) if sleep 0.001 2>/dev/null
4231 then :
4232 am_cv_sleep_fractional_seconds=yes
4233 else case e in #(
4234 e) am_cv_sleep_fractional_seconds=no ;;
4235 esac
4236 fi
4237 ;;
4238 esac
4239 fi
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4241 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4242
4243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4244 printf %s "checking filesystem timestamp resolution... " >&6; }
4245 if test ${am_cv_filesystem_timestamp_resolution+y}
4246 then :
4247 printf %s "(cached) " >&6
4248 else case e in #(
4249 e) # Default to the worst case.
4250 am_cv_filesystem_timestamp_resolution=2
4251
4252 # Only try to go finer than 1 sec if sleep can do it.
4253 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4254 # - 1 sec is not much of a win compared to 2 sec, and
4255 # - it takes 2 seconds to perform the test whether 1 sec works.
4256 #
4257 # Instead, just use the default 2s on platforms that have 1s resolution,
4258 # accept the extra 1s delay when using $sleep in the Automake tests, in
4259 # exchange for not incurring the 2s delay for running the test for all
4260 # packages.
4261 #
4262 am_try_resolutions=
4263 if test "$am_cv_sleep_fractional_seconds" = yes; then
4264 # Even a millisecond often causes a bunch of false positives,
4265 # so just try a hundredth of a second. The time saved between .001 and
4266 # .01 is not terribly consequential.
4267 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4268 fi
4269
4270 # In order to catch current-generation FAT out, we must *modify* files
4271 # that already exist; the *creation* timestamp is finer. Use names
4272 # that make ls -t sort them differently when they have equal
4273 # timestamps than when they have distinct timestamps, keeping
4274 # in mind that ls -t prints the *newest* file first.
4275 rm -f conftest.ts?
4276 : > conftest.ts1
4277 : > conftest.ts2
4278 : > conftest.ts3
4279
4280 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4281 # clobber the current shell's arguments. (Outer-level square brackets
4282 # are removed by m4; they're present so that m4 does not expand
4283 # <dollar><star>; be careful, easy to get confused.)
4284 if (
4285 set X `ls -t conftest.ts[12]` &&
4286 {
4287 test "$*" != "X conftest.ts1 conftest.ts2" ||
4288 test "$*" != "X conftest.ts2 conftest.ts1";
4289 }
4290 ); then :; else
4291 # If neither matched, then we have a broken ls. This can happen
4292 # if, for instance, CONFIG_SHELL is bash and it inherits a
4293 # broken ls alias from the environment. This has actually
4294 # happened. Such a system could not be considered "sane".
4295 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4296 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4297 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4298 as_fn_error $? "ls -t produces unexpected output.
4299 Make sure there is not a broken ls alias in your environment.
4300 See 'config.log' for more details" "$LINENO" 5; }
4301 fi
4302
4303 for am_try_res in $am_try_resolutions; do
4304 # Any one fine-grained sleep might happen to cross the boundary
4305 # between two values of a coarser actual resolution, but if we do
4306 # two fine-grained sleeps in a row, at least one of them will fall
4307 # entirely within a coarse interval.
4308 echo alpha > conftest.ts1
4309 sleep $am_try_res
4310 echo beta > conftest.ts2
4311 sleep $am_try_res
4312 echo gamma > conftest.ts3
4313
4314 # We assume that 'ls -t' will make use of high-resolution
4315 # timestamps if the operating system supports them at all.
4316 if (set X `ls -t conftest.ts?` &&
4317 test "$2" = conftest.ts3 &&
4318 test "$3" = conftest.ts2 &&
4319 test "$4" = conftest.ts1); then
4320 #
4321 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4322 # because we don't need to test make.
4323 make_ok=true
4324 if test $am_try_res != 1; then
4325 # But if we've succeeded so far with a subsecond resolution, we
4326 # have one more thing to check: make. It can happen that
4327 # everything else supports the subsecond mtimes, but make doesn't;
4328 # notably on macOS, which ships make 3.81 from 2006 (the last one
4329 # released under GPLv2). https://bugs.gnu.org/68808
4330 #
4331 # We test $MAKE if it is defined in the environment, else "make".
4332 # It might get overridden later, but our hope is that in practice
4333 # it does not matter: it is the system "make" which is (by far)
4334 # the most likely to be broken, whereas if the user overrides it,
4335 # probably they did so with a better, or at least not worse, make.
4336 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4337 #
4338 # Create a Makefile (real tab character here):
4339 rm -f conftest.mk
4340 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4341 echo ' touch conftest.ts2' >>conftest.mk
4342 #
4343 # Now, running
4344 # touch conftest.ts1; touch conftest.ts2; make
4345 # should touch ts1 because ts2 is newer. This could happen by luck,
4346 # but most often, it will fail if make's support is insufficient. So
4347 # test for several consecutive successes.
4348 #
4349 # (We reuse conftest.ts[12] because we still want to modify existing
4350 # files, not create new ones, per above.)
4351 n=0
4352 make=${MAKE-make}
4353 until test $n -eq 3; do
4354 echo one > conftest.ts1
4355 sleep $am_try_res
4356 echo two > conftest.ts2 # ts2 should now be newer than ts1
4357 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4358 make_ok=false
4359 break # out of $n loop
4360 fi
4361 n=`expr $n + 1`
4362 done
4363 fi
4364 #
4365 if $make_ok; then
4366 # Everything we know to check worked out, so call this resolution good.
4367 am_cv_filesystem_timestamp_resolution=$am_try_res
4368 break # out of $am_try_res loop
4369 fi
4370 # Otherwise, we'll go on to check the next resolution.
4371 fi
4372 done
4373 rm -f conftest.ts?
4374 # (end _am_filesystem_timestamp_resolution)
4375 ;;
4376 esac
4377 fi
4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4379 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4380
4381 # This check should not be cached, as it may vary across builds of
4382 # different projects.
4383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4384 printf %s "checking whether build environment is sane... " >&6; }
4385 # Reject unsafe characters in $srcdir or the absolute working directory
4386 # name. Accept space and tab only in the latter.
4387 am_lf='
4388 '
4389 case `pwd` in
4390 *[\\\"\#\$\&\'\`$am_lf]*)
4391 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4392 esac
4393 case $srcdir in
4394 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4395 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4396 esac
4397
4398 # Do 'set' in a subshell so we don't clobber the current shell's
4399 # arguments. Must try -L first in case configure is actually a
4400 # symlink; some systems play weird games with the mod time of symlinks
4401 # (eg FreeBSD returns the mod time of the symlink's containing
4402 # directory).
4403 am_build_env_is_sane=no
4404 am_has_slept=no
4405 rm -f conftest.file
4406 for am_try in 1 2; do
4407 echo "timestamp, slept: $am_has_slept" > conftest.file
4408 if (
4409 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4410 if test "$*" = "X"; then
4411 # -L didn't work.
4412 set X `ls -t "$srcdir/configure" conftest.file`
4413 fi
4414 test "$2" = conftest.file
4415 ); then
4416 am_build_env_is_sane=yes
4417 break
4418 fi
4419 # Just in case.
4420 sleep "$am_cv_filesystem_timestamp_resolution"
4421 am_has_slept=yes
4422 done
4423
4424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4425 printf "%s\n" "$am_build_env_is_sane" >&6; }
4426 if test "$am_build_env_is_sane" = no; then
4427 as_fn_error $? "newly created file is older than distributed files!
4428 Check your system clock" "$LINENO" 5
4429 fi
4430
4431 # If we didn't sleep, we still need to ensure time stamps of config.status and
4432 # generated files are strictly newer.
4433 am_sleep_pid=
4434 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4435 then :
4436
4437 else case e in #(
4438 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4439 am_sleep_pid=$!
4440 ;;
4441 esac
4442 fi
4443
4444 rm -f conftest.file
4445
4446 test "$program_prefix" != NONE &&
4447 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4448 # Use a double $ so make ignores it.
4449 test "$program_suffix" != NONE &&
4450 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4451 # Double any \ or $.
4452 # By default was 's,x,x', remove it if useless.
4453 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4454 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4455
4456
4457 if test x"${MISSING+set}" != xset; then
4458 MISSING="\${SHELL} '$am_aux_dir/missing'"
4459 fi
4460 # Use eval to expand $SHELL
4461 if eval "$MISSING --is-lightweight"; then
4462 am_missing_run="$MISSING "
4463 else
4464 am_missing_run=
4465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4466 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4467 fi
4468
4469 if test x"${install_sh+set}" != xset; then
4470 case $am_aux_dir in
4471 *\ * | *\ *)
4472 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4473 *)
4474 install_sh="\${SHELL} $am_aux_dir/install-sh"
4475 esac
4476 fi
4477
4478 # Installed binaries are usually stripped using 'strip' when the user
4479 # run "make install-strip". However 'strip' might not be the right
4480 # tool to use in cross-compilation environments, therefore Automake
4481 # will honor the 'STRIP' environment variable to overrule this program.
4482 if test "$cross_compiling" != no; then
4483 if test -n "$ac_tool_prefix"; then
4484 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4485 set dummy ${ac_tool_prefix}strip; ac_word=$2
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4487 printf %s "checking for $ac_word... " >&6; }
4488 if test ${ac_cv_prog_STRIP+y}
4489 then :
4490 printf %s "(cached) " >&6
4491 else case e in #(
4492 e) if test -n "$STRIP"; then
4493 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4494 else
4495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 for as_dir in $PATH
4497 do
4498 IFS=$as_save_IFS
4499 case $as_dir in #(((
4500 '') as_dir=./ ;;
4501 */) ;;
4502 *) as_dir=$as_dir/ ;;
4503 esac
4504 for ac_exec_ext in '' $ac_executable_extensions; do
4505 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4506 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4508 break 2
4509 fi
4510 done
4511 done
4512 IFS=$as_save_IFS
4513
4514 fi ;;
4515 esac
4516 fi
4517 STRIP=$ac_cv_prog_STRIP
4518 if test -n "$STRIP"; then
4519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4520 printf "%s\n" "$STRIP" >&6; }
4521 else
4522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523 printf "%s\n" "no" >&6; }
4524 fi
4525
4526
4527 fi
4528 if test -z "$ac_cv_prog_STRIP"; then
4529 ac_ct_STRIP=$STRIP
4530 # Extract the first word of "strip", so it can be a program name with args.
4531 set dummy strip; ac_word=$2
4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4533 printf %s "checking for $ac_word... " >&6; }
4534 if test ${ac_cv_prog_ac_ct_STRIP+y}
4535 then :
4536 printf %s "(cached) " >&6
4537 else case e in #(
4538 e) if test -n "$ac_ct_STRIP"; then
4539 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4540 else
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH
4543 do
4544 IFS=$as_save_IFS
4545 case $as_dir in #(((
4546 '') as_dir=./ ;;
4547 */) ;;
4548 *) as_dir=$as_dir/ ;;
4549 esac
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4552 ac_cv_prog_ac_ct_STRIP="strip"
4553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4554 break 2
4555 fi
4556 done
4557 done
4558 IFS=$as_save_IFS
4559
4560 fi ;;
4561 esac
4562 fi
4563 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4564 if test -n "$ac_ct_STRIP"; then
4565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4566 printf "%s\n" "$ac_ct_STRIP" >&6; }
4567 else
4568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4569 printf "%s\n" "no" >&6; }
4570 fi
4571
4572 if test "x$ac_ct_STRIP" = x; then
4573 STRIP=":"
4574 else
4575 case $cross_compiling:$ac_tool_warned in
4576 yes:)
4577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4578 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4579 ac_tool_warned=yes ;;
4580 esac
4581 STRIP=$ac_ct_STRIP
4582 fi
4583 else
4584 STRIP="$ac_cv_prog_STRIP"
4585 fi
4586
4587 fi
4588 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4589
4590
4591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4592 printf %s "checking for a race-free mkdir -p... " >&6; }
4593 if test -z "$MKDIR_P"; then
4594 if test ${ac_cv_path_mkdir+y}
4595 then :
4596 printf %s "(cached) " >&6
4597 else case e in #(
4598 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4600 do
4601 IFS=$as_save_IFS
4602 case $as_dir in #(((
4603 '') as_dir=./ ;;
4604 */) ;;
4605 *) as_dir=$as_dir/ ;;
4606 esac
4607 for ac_prog in mkdir gmkdir; do
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4610 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4611 'mkdir ('*'coreutils) '* | \
4612 *'BusyBox '* | \
4613 'mkdir (fileutils) '4.1*)
4614 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4615 break 3;;
4616 esac
4617 done
4618 done
4619 done
4620 IFS=$as_save_IFS
4621 ;;
4622 esac
4623 fi
4624
4625 test -d ./--version && rmdir ./--version
4626 if test ${ac_cv_path_mkdir+y}; then
4627 MKDIR_P="$ac_cv_path_mkdir -p"
4628 else
4629 # As a last resort, use plain mkdir -p,
4630 # in the hope it doesn't have the bugs of ancient mkdir.
4631 MKDIR_P='mkdir -p'
4632 fi
4633 fi
4634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4635 printf "%s\n" "$MKDIR_P" >&6; }
4636
4637 for ac_prog in gawk mawk nawk awk
4638 do
4639 # Extract the first word of "$ac_prog", so it can be a program name with args.
4640 set dummy $ac_prog; ac_word=$2
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4642 printf %s "checking for $ac_word... " >&6; }
4643 if test ${ac_cv_prog_AWK+y}
4644 then :
4645 printf %s "(cached) " >&6
4646 else case e in #(
4647 e) if test -n "$AWK"; then
4648 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4649 else
4650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4651 for as_dir in $PATH
4652 do
4653 IFS=$as_save_IFS
4654 case $as_dir in #(((
4655 '') as_dir=./ ;;
4656 */) ;;
4657 *) as_dir=$as_dir/ ;;
4658 esac
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4661 ac_cv_prog_AWK="$ac_prog"
4662 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4663 break 2
4664 fi
4665 done
4666 done
4667 IFS=$as_save_IFS
4668
4669 fi ;;
4670 esac
4671 fi
4672 AWK=$ac_cv_prog_AWK
4673 if test -n "$AWK"; then
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4675 printf "%s\n" "$AWK" >&6; }
4676 else
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4678 printf "%s\n" "no" >&6; }
4679 fi
4680
4681
4682 test -n "$AWK" && break
4683 done
4684
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4686 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4687 set x ${MAKE-make}
4688 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4689 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4690 then :
4691 printf %s "(cached) " >&6
4692 else case e in #(
4693 e) cat >conftest.make <<\_ACEOF
4694 SHELL = /bin/sh
4695 all:
4696 @echo '@@@%%%=$(MAKE)=@@@%%%'
4697 _ACEOF
4698 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4699 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4700 *@@@%%%=?*=@@@%%%*)
4701 eval ac_cv_prog_make_${ac_make}_set=yes;;
4702 *)
4703 eval ac_cv_prog_make_${ac_make}_set=no;;
4704 esac
4705 rm -f conftest.make ;;
4706 esac
4707 fi
4708 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4710 printf "%s\n" "yes" >&6; }
4711 SET_MAKE=
4712 else
4713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 printf "%s\n" "no" >&6; }
4715 SET_MAKE="MAKE=${MAKE-make}"
4716 fi
4717
4718 rm -rf .tst 2>/dev/null
4719 mkdir .tst 2>/dev/null
4720 if test -d .tst; then
4721 am__leading_dot=.
4722 else
4723 am__leading_dot=_
4724 fi
4725 rmdir .tst 2>/dev/null
4726
4727 DEPDIR="${am__leading_dot}deps"
4728
4729 ac_config_commands="$ac_config_commands depfiles"
4730
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4732 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4733 cat > confinc.mk << 'END'
4734 am__doit:
4735 @echo this is the am__doit target >confinc.out
4736 .PHONY: am__doit
4737 END
4738 am__include="#"
4739 am__quote=
4740 # BSD make does it like this.
4741 echo '.include "confinc.mk" # ignored' > confmf.BSD
4742 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4743 echo 'include confinc.mk # ignored' > confmf.GNU
4744 _am_result=no
4745 for s in GNU BSD; do
4746 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4747 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4748 ac_status=$?
4749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750 (exit $ac_status); }
4751 case $?:`cat confinc.out 2>/dev/null` in #(
4752 '0:this is the am__doit target') :
4753 case $s in #(
4754 BSD) :
4755 am__include='.include' am__quote='"' ;; #(
4756 *) :
4757 am__include='include' am__quote='' ;;
4758 esac ;; #(
4759 *) :
4760 ;;
4761 esac
4762 if test "$am__include" != "#"; then
4763 _am_result="yes ($s style)"
4764 break
4765 fi
4766 done
4767 rm -f confinc.* confmf.*
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4769 printf "%s\n" "${_am_result}" >&6; }
4770
4771 # Check whether --enable-dependency-tracking was given.
4772 if test ${enable_dependency_tracking+y}
4773 then :
4774 enableval=$enable_dependency_tracking;
4775 fi
4776
4777 if test "x$enable_dependency_tracking" != xno; then
4778 am_depcomp="$ac_aux_dir/depcomp"
4779 AMDEPBACKSLASH='\'
4780 am__nodep='_no'
4781 fi
4782 if test "x$enable_dependency_tracking" != xno; then
4783 AMDEP_TRUE=
4784 AMDEP_FALSE='#'
4785 else
4786 AMDEP_TRUE='#'
4787 AMDEP_FALSE=
4788 fi
4789
4790
4791 AM_DEFAULT_VERBOSITY=1
4792 # Check whether --enable-silent-rules was given.
4793 if test ${enable_silent_rules+y}
4794 then :
4795 enableval=$enable_silent_rules;
4796 fi
4797
4798 am_make=${MAKE-make}
4799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4800 printf %s "checking whether $am_make supports nested variables... " >&6; }
4801 if test ${am_cv_make_support_nested_variables+y}
4802 then :
4803 printf %s "(cached) " >&6
4804 else case e in #(
4805 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4806 BAR0=false
4807 BAR1=true
4808 V=1
4809 am__doit:
4810 @$(TRUE)
4811 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4812 am_cv_make_support_nested_variables=yes
4813 else
4814 am_cv_make_support_nested_variables=no
4815 fi ;;
4816 esac
4817 fi
4818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4819 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4820 AM_BACKSLASH='\'
4821
4822 am__rm_f_notfound=
4823 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4824 then :
4825
4826 else case e in #(
4827 e) am__rm_f_notfound='""' ;;
4828 esac
4829 fi
4830
4831
4832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4833 printf %s "checking xargs -n works... " >&6; }
4834 if test ${am_cv_xargs_n_works+y}
4835 then :
4836 printf %s "(cached) " >&6
4837 else case e in #(
4838 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4839 3"
4840 then :
4841 am_cv_xargs_n_works=yes
4842 else case e in #(
4843 e) am_cv_xargs_n_works=no ;;
4844 esac
4845 fi ;;
4846 esac
4847 fi
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4849 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4850 if test "$am_cv_xargs_n_works" = yes
4851 then :
4852 am__xargs_n='xargs -n'
4853 else case e in #(
4854 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4855 ;;
4856 esac
4857 fi
4858
4859 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4860 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4861 # is not polluted with repeated "-I."
4862 am__isrc=' -I$(srcdir)'
4863 # test to see if srcdir already configured
4864 if test -f $srcdir/config.status; then
4865 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4866 fi
4867 fi
4868
4869 # test whether we have cygpath
4870 if test -z "$CYGPATH_W"; then
4871 if (cygpath --version) >/dev/null 2>/dev/null; then
4872 CYGPATH_W='cygpath -w'
4873 else
4874 CYGPATH_W=echo
4875 fi
4876 fi
4877
4878
4879 # Define the identity of the package.
4880 PACKAGE='xfs'
4881 VERSION='1.2.2'
4882
4883
4884 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4885
4886
4887 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4888
4889 # Some tools Automake needs.
4890
4891 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4892
4893
4894 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4895
4896
4897 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4898
4899
4900 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4901
4902
4903 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4904
4905 # For better backward compatibility. To be removed once Automake 1.9.x
4906 # dies out for good. For more background, see:
4907 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4908 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4909 mkdir_p='$(MKDIR_P)'
4910
4911 # We need awk for the "check" target (and possibly the TAP driver). The
4912 # system "awk" is bad on some platforms.
4913 # Always define AMTAR for backward compatibility. Yes, it's still used
4914 # in the wild :-( We should find a proper way to deprecate it ...
4915 AMTAR='$${TAR-tar}'
4916
4917
4918 # We'll loop over all known methods to create a tar archive until one works.
4919 _am_tools='gnutar pax cpio none'
4920
4921 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4922
4923
4924
4925
4926
4927 depcc="$CC" am_compiler_list=
4928
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4930 printf %s "checking dependency style of $depcc... " >&6; }
4931 if test ${am_cv_CC_dependencies_compiler_type+y}
4932 then :
4933 printf %s "(cached) " >&6
4934 else case e in #(
4935 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4936 # We make a subdir and do the tests there. Otherwise we can end up
4937 # making bogus files that we don't know about and never remove. For
4938 # instance it was reported that on HP-UX the gcc test will end up
4939 # making a dummy file named 'D' -- because '-MD' means "put the output
4940 # in D".
4941 rm -rf conftest.dir
4942 mkdir conftest.dir
4943 # Copy depcomp to subdir because otherwise we won't find it if we're
4944 # using a relative directory.
4945 cp "$am_depcomp" conftest.dir
4946 cd conftest.dir
4947 # We will build objects and dependencies in a subdirectory because
4948 # it helps to detect inapplicable dependency modes. For instance
4949 # both Tru64's cc and ICC support -MD to output dependencies as a
4950 # side effect of compilation, but ICC will put the dependencies in
4951 # the current directory while Tru64 will put them in the object
4952 # directory.
4953 mkdir sub
4954
4955 am_cv_CC_dependencies_compiler_type=none
4956 if test "$am_compiler_list" = ""; then
4957 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4958 fi
4959 am__universal=false
4960 case " $depcc " in #(
4961 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4962 esac
4963
4964 for depmode in $am_compiler_list; do
4965 # Setup a source with many dependencies, because some compilers
4966 # like to wrap large dependency lists on column 80 (with \), and
4967 # we should not choose a depcomp mode which is confused by this.
4968 #
4969 # We need to recreate these files for each test, as the compiler may
4970 # overwrite some of them when testing with obscure command lines.
4971 # This happens at least with the AIX C compiler.
4972 : > sub/conftest.c
4973 for i in 1 2 3 4 5 6; do
4974 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4975 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4976 # Solaris 10 /bin/sh.
4977 echo '/* dummy */' > sub/conftst$i.h
4978 done
4979 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4980
4981 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4982 # mode. It turns out that the SunPro C++ compiler does not properly
4983 # handle '-M -o', and we need to detect this. Also, some Intel
4984 # versions had trouble with output in subdirs.
4985 am__obj=sub/conftest.${OBJEXT-o}
4986 am__minus_obj="-o $am__obj"
4987 case $depmode in
4988 gcc)
4989 # This depmode causes a compiler race in universal mode.
4990 test "$am__universal" = false || continue
4991 ;;
4992 nosideeffect)
4993 # After this tag, mechanisms are not by side-effect, so they'll
4994 # only be used when explicitly requested.
4995 if test "x$enable_dependency_tracking" = xyes; then
4996 continue
4997 else
4998 break
4999 fi
5000 ;;
5001 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5002 # This compiler won't grok '-c -o', but also, the minuso test has
5003 # not run yet. These depmodes are late enough in the game, and
5004 # so weak that their functioning should not be impacted.
5005 am__obj=conftest.${OBJEXT-o}
5006 am__minus_obj=
5007 ;;
5008 none) break ;;
5009 esac
5010 if depmode=$depmode \
5011 source=sub/conftest.c object=$am__obj \
5012 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5013 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5014 >/dev/null 2>conftest.err &&
5015 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5016 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5017 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5018 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5019 # icc doesn't choke on unknown options, it will just issue warnings
5020 # or remarks (even with -Werror). So we grep stderr for any message
5021 # that says an option was ignored or not supported.
5022 # When given -MP, icc 7.0 and 7.1 complain thus:
5023 # icc: Command line warning: ignoring option '-M'; no argument required
5024 # The diagnosis changed in icc 8.0:
5025 # icc: Command line remark: option '-MP' not supported
5026 if (grep 'ignoring option' conftest.err ||
5027 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5028 am_cv_CC_dependencies_compiler_type=$depmode
5029 break
5030 fi
5031 fi
5032 done
5033
5034 cd ..
5035 rm -rf conftest.dir
5036 else
5037 am_cv_CC_dependencies_compiler_type=none
5038 fi
5039 ;;
5040 esac
5041 fi
5042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5043 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5044 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5045
5046 if
5047 test "x$enable_dependency_tracking" != xno \
5048 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5049 am__fastdepCC_TRUE=
5050 am__fastdepCC_FALSE='#'
5051 else
5052 am__fastdepCC_TRUE='#'
5053 am__fastdepCC_FALSE=
5054 fi
5055
5056
5057 # Variables for tags utilities; see am/tags.am
5058 if test -z "$CTAGS"; then
5059 CTAGS=ctags
5060 fi
5061
5062 if test -z "$ETAGS"; then
5063 ETAGS=etags
5064 fi
5065
5066 if test -z "$CSCOPE"; then
5067 CSCOPE=cscope
5068 fi
5069
5070
5071
5072
5073
5074
5075
5076
5077 # Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
5090 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
5091 if test ${ac_cv_c_undeclared_builtin_options+y}
5092 then :
5093 printf %s "(cached) " >&6
5094 else case e in #(
5095 e) ac_save_CFLAGS=$CFLAGS
5096 ac_cv_c_undeclared_builtin_options='cannot detect'
5097 for ac_arg in '' -fno-builtin; do
5098 CFLAGS="$ac_save_CFLAGS $ac_arg"
5099 # This test program should *not* compile successfully.
5100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5101 /* end confdefs.h. */
5102
5103 int
5104 main (void)
5105 {
5106 (void) strchr;
5107 ;
5108 return 0;
5109 }
5110 _ACEOF
5111 if ac_fn_c_try_compile "$LINENO"
5112 then :
5113
5114 else case e in #(
5115 e) # This test program should compile successfully.
5116 # No library function is consistently available on
5117 # freestanding implementations, so test against a dummy
5118 # declaration. Include always-available headers on the
5119 # off chance that they somehow elicit warnings.
5120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5122 #include <float.h>
5123 #include <limits.h>
5124 #include <stdarg.h>
5125 #include <stddef.h>
5126 extern void ac_decl (int, char *);
5127
5128 int
5129 main (void)
5130 {
5131 (void) ac_decl (0, (char *) 0);
5132 (void) ac_decl;
5133
5134 ;
5135 return 0;
5136 }
5137 _ACEOF
5138 if ac_fn_c_try_compile "$LINENO"
5139 then :
5140 if test x"$ac_arg" = x
5141 then :
5142 ac_cv_c_undeclared_builtin_options='none needed'
5143 else case e in #(
5144 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
5145 esac
5146 fi
5147 break
5148 fi
5149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5150 esac
5151 fi
5152 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5153 done
5154 CFLAGS=$ac_save_CFLAGS
5155 ;;
5156 esac
5157 fi
5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
5159 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
5160 case $ac_cv_c_undeclared_builtin_options in #(
5161 'cannot detect') :
5162 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5163 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5164 as_fn_error $? "cannot make $CC report undeclared builtins
5165 See 'config.log' for more details" "$LINENO" 5; } ;; #(
5166 'none needed') :
5167 ac_c_undeclared_builtin_options='' ;; #(
5168 *) :
5169 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
5170 esac
5171
5172
5173
5174
5175
5176 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5177 if test "x$ac_cv_have_decl___clang__" = xyes
5178 then :
5179 CLANGCC="yes"
5180 else case e in #(
5181 e) CLANGCC="no" ;;
5182 esac
5183 fi
5184 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5185 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
5186 then :
5187 INTELCC="yes"
5188 else case e in #(
5189 e) INTELCC="no" ;;
5190 esac
5191 fi
5192 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
5193 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
5194 then :
5195 SUNCC="yes"
5196 else case e in #(
5197 e) SUNCC="no" ;;
5198 esac
5199 fi
5200
5201
5202
5203
5204
5205
5206
5207
5208 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5209 if test -n "$ac_tool_prefix"; then
5210 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5211 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5213 printf %s "checking for $ac_word... " >&6; }
5214 if test ${ac_cv_path_PKG_CONFIG+y}
5215 then :
5216 printf %s "(cached) " >&6
5217 else case e in #(
5218 e) case $PKG_CONFIG in
5219 [\\/]* | ?:[\\/]*)
5220 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5221 ;;
5222 *)
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH
5225 do
5226 IFS=$as_save_IFS
5227 case $as_dir in #(((
5228 '') as_dir=./ ;;
5229 */) ;;
5230 *) as_dir=$as_dir/ ;;
5231 esac
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5234 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238 done
5239 done
5240 IFS=$as_save_IFS
5241
5242 ;;
5243 esac ;;
5244 esac
5245 fi
5246 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5247 if test -n "$PKG_CONFIG"; then
5248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5249 printf "%s\n" "$PKG_CONFIG" >&6; }
5250 else
5251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5252 printf "%s\n" "no" >&6; }
5253 fi
5254
5255
5256 fi
5257 if test -z "$ac_cv_path_PKG_CONFIG"; then
5258 ac_pt_PKG_CONFIG=$PKG_CONFIG
5259 # Extract the first word of "pkg-config", so it can be a program name with args.
5260 set dummy pkg-config; ac_word=$2
5261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 printf %s "checking for $ac_word... " >&6; }
5263 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
5264 then :
5265 printf %s "(cached) " >&6
5266 else case e in #(
5267 e) case $ac_pt_PKG_CONFIG in
5268 [\\/]* | ?:[\\/]*)
5269 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5270 ;;
5271 *)
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5274 do
5275 IFS=$as_save_IFS
5276 case $as_dir in #(((
5277 '') as_dir=./ ;;
5278 */) ;;
5279 *) as_dir=$as_dir/ ;;
5280 esac
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5283 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
5284 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5285 break 2
5286 fi
5287 done
5288 done
5289 IFS=$as_save_IFS
5290
5291 ;;
5292 esac ;;
5293 esac
5294 fi
5295 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5296 if test -n "$ac_pt_PKG_CONFIG"; then
5297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5298 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
5299 else
5300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5301 printf "%s\n" "no" >&6; }
5302 fi
5303
5304 if test "x$ac_pt_PKG_CONFIG" = x; then
5305 PKG_CONFIG=""
5306 else
5307 case $cross_compiling:$ac_tool_warned in
5308 yes:)
5309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5310 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5311 ac_tool_warned=yes ;;
5312 esac
5313 PKG_CONFIG=$ac_pt_PKG_CONFIG
5314 fi
5315 else
5316 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5317 fi
5318
5319 fi
5320 if test -n "$PKG_CONFIG"; then
5321 _pkg_min_version=0.9.0
5322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5323 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5324 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5326 printf "%s\n" "yes" >&6; }
5327 else
5328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5329 printf "%s\n" "no" >&6; }
5330 PKG_CONFIG=""
5331 fi
5332 fi
5333
5334
5335 # Make sure we can run config.sub.
5336 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5337 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5338
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5340 printf %s "checking build system type... " >&6; }
5341 if test ${ac_cv_build+y}
5342 then :
5343 printf %s "(cached) " >&6
5344 else case e in #(
5345 e) ac_build_alias=$build_alias
5346 test "x$ac_build_alias" = x &&
5347 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5348 test "x$ac_build_alias" = x &&
5349 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5350 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5351 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5352 ;;
5353 esac
5354 fi
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5356 printf "%s\n" "$ac_cv_build" >&6; }
5357 case $ac_cv_build in
5358 *-*-*) ;;
5359 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5360 esac
5361 build=$ac_cv_build
5362 ac_save_IFS=$IFS; IFS='-'
5363 set x $ac_cv_build
5364 shift
5365 build_cpu=$1
5366 build_vendor=$2
5367 shift; shift
5368 # Remember, the first character of IFS is used to create $*,
5369 # except with old shells:
5370 build_os=$*
5371 IFS=$ac_save_IFS
5372 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5373
5374
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5376 printf %s "checking host system type... " >&6; }
5377 if test ${ac_cv_host+y}
5378 then :
5379 printf %s "(cached) " >&6
5380 else case e in #(
5381 e) if test "x$host_alias" = x; then
5382 ac_cv_host=$ac_cv_build
5383 else
5384 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5385 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5386 fi
5387 ;;
5388 esac
5389 fi
5390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5391 printf "%s\n" "$ac_cv_host" >&6; }
5392 case $ac_cv_host in
5393 *-*-*) ;;
5394 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5395 esac
5396 host=$ac_cv_host
5397 ac_save_IFS=$IFS; IFS='-'
5398 set x $ac_cv_host
5399 shift
5400 host_cpu=$1
5401 host_vendor=$2
5402 shift; shift
5403 # Remember, the first character of IFS is used to create $*,
5404 # except with old shells:
5405 host_os=$*
5406 IFS=$ac_save_IFS
5407 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5408
5409
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5411 printf %s "checking for a sed that does not truncate output... " >&6; }
5412 if test ${ac_cv_path_SED+y}
5413 then :
5414 printf %s "(cached) " >&6
5415 else case e in #(
5416 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5417 for ac_i in 1 2 3 4 5 6 7; do
5418 ac_script="$ac_script$as_nl$ac_script"
5419 done
5420 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5421 { ac_script=; unset ac_script;}
5422 if test -z "$SED"; then
5423 ac_path_SED_found=false
5424 # Loop through the user's path and test for each of PROGNAME-LIST
5425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426 for as_dir in $PATH
5427 do
5428 IFS=$as_save_IFS
5429 case $as_dir in #(((
5430 '') as_dir=./ ;;
5431 */) ;;
5432 *) as_dir=$as_dir/ ;;
5433 esac
5434 for ac_prog in sed gsed
5435 do
5436 for ac_exec_ext in '' $ac_executable_extensions; do
5437 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5438 as_fn_executable_p "$ac_path_SED" || continue
5439 # Check for GNU ac_path_SED and select it if it is found.
5440 # Check for GNU $ac_path_SED
5441 case `"$ac_path_SED" --version 2>&1` in #(
5442 *GNU*)
5443 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5444 #(
5445 *)
5446 ac_count=0
5447 printf %s 0123456789 >"conftest.in"
5448 while :
5449 do
5450 cat "conftest.in" "conftest.in" >"conftest.tmp"
5451 mv "conftest.tmp" "conftest.in"
5452 cp "conftest.in" "conftest.nl"
5453 printf "%s\n" '' >> "conftest.nl"
5454 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5456 as_fn_arith $ac_count + 1 && ac_count=$as_val
5457 if test $ac_count -gt ${ac_path_SED_max-0}; then
5458 # Best one so far, save it but keep looking for a better one
5459 ac_cv_path_SED="$ac_path_SED"
5460 ac_path_SED_max=$ac_count
5461 fi
5462 # 10*(2^10) chars as input seems more than enough
5463 test $ac_count -gt 10 && break
5464 done
5465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5466 esac
5467
5468 $ac_path_SED_found && break 3
5469 done
5470 done
5471 done
5472 IFS=$as_save_IFS
5473 if test -z "$ac_cv_path_SED"; then
5474 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5475 fi
5476 else
5477 ac_cv_path_SED=$SED
5478 fi
5479 ;;
5480 esac
5481 fi
5482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5483 printf "%s\n" "$ac_cv_path_SED" >&6; }
5484 SED="$ac_cv_path_SED"
5485 rm -f conftest.sed
5486
5487
5488
5489
5490
5491
5492 # Check whether --enable-selective-werror was given.
5493 if test ${enable_selective_werror+y}
5494 then :
5495 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
5496 else case e in #(
5497 e) SELECTIVE_WERROR=yes ;;
5498 esac
5499 fi
5500
5501
5502
5503
5504
5505 # -v is too short to test reliably with XORG_TESTSET_CFLAG
5506 if test "x$SUNCC" = "xyes"; then
5507 BASE_CFLAGS="-v"
5508 else
5509 BASE_CFLAGS=""
5510 fi
5511
5512 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526 xorg_testset_save_CFLAGS="$CFLAGS"
5527
5528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5531 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5532 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5533 then :
5534 printf %s "(cached) " >&6
5535 else case e in #(
5536 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 int i;
5539 _ACEOF
5540 if ac_fn_c_try_compile "$LINENO"
5541 then :
5542 xorg_cv_cc_flag_unknown_warning_option=yes
5543 else case e in #(
5544 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5545 esac
5546 fi
5547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5548 esac
5549 fi
5550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5551 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5552 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5553 CFLAGS="$xorg_testset_save_CFLAGS"
5554 fi
5555
5556 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5557 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5558 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5559 fi
5560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5562 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5563 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5564 then :
5565 printf %s "(cached) " >&6
5566 else case e in #(
5567 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5569 int i;
5570 _ACEOF
5571 if ac_fn_c_try_compile "$LINENO"
5572 then :
5573 xorg_cv_cc_flag_unused_command_line_argument=yes
5574 else case e in #(
5575 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5576 esac
5577 fi
5578 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5579 esac
5580 fi
5581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5582 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5583 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5584 CFLAGS="$xorg_testset_save_CFLAGS"
5585 fi
5586
5587 found="no"
5588
5589 if test $found = "no" ; then
5590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5592 fi
5593
5594 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5596 fi
5597
5598 CFLAGS="$CFLAGS -Wall"
5599
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
5601 printf %s "checking if $CC supports -Wall... " >&6; }
5602 cacheid=xorg_cv_cc_flag__Wall
5603 if eval test \${$cacheid+y}
5604 then :
5605 printf %s "(cached) " >&6
5606 else case e in #(
5607 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 int i;
5610 int
5611 main (void)
5612 {
5613
5614 ;
5615 return 0;
5616 }
5617 _ACEOF
5618 if ac_fn_c_try_link "$LINENO"
5619 then :
5620 eval $cacheid=yes
5621 else case e in #(
5622 e) eval $cacheid=no ;;
5623 esac
5624 fi
5625 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5626 conftest$ac_exeext conftest.$ac_ext ;;
5627 esac
5628 fi
5629
5630
5631 CFLAGS="$xorg_testset_save_CFLAGS"
5632
5633 eval supported=\$$cacheid
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5635 printf "%s\n" "$supported" >&6; }
5636 if test "$supported" = "yes" ; then
5637 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5638 found="yes"
5639 fi
5640 fi
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656 xorg_testset_save_CFLAGS="$CFLAGS"
5657
5658 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5661 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5662 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5663 then :
5664 printf %s "(cached) " >&6
5665 else case e in #(
5666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 int i;
5669 _ACEOF
5670 if ac_fn_c_try_compile "$LINENO"
5671 then :
5672 xorg_cv_cc_flag_unknown_warning_option=yes
5673 else case e in #(
5674 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5675 esac
5676 fi
5677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5678 esac
5679 fi
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5681 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5682 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5683 CFLAGS="$xorg_testset_save_CFLAGS"
5684 fi
5685
5686 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5687 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5689 fi
5690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5692 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5693 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5694 then :
5695 printf %s "(cached) " >&6
5696 else case e in #(
5697 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5699 int i;
5700 _ACEOF
5701 if ac_fn_c_try_compile "$LINENO"
5702 then :
5703 xorg_cv_cc_flag_unused_command_line_argument=yes
5704 else case e in #(
5705 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5706 esac
5707 fi
5708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5709 esac
5710 fi
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5712 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5714 CFLAGS="$xorg_testset_save_CFLAGS"
5715 fi
5716
5717 found="no"
5718
5719 if test $found = "no" ; then
5720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5722 fi
5723
5724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5726 fi
5727
5728 CFLAGS="$CFLAGS -Wpointer-arith"
5729
5730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5731 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5732 cacheid=xorg_cv_cc_flag__Wpointer_arith
5733 if eval test \${$cacheid+y}
5734 then :
5735 printf %s "(cached) " >&6
5736 else case e in #(
5737 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5738 /* end confdefs.h. */
5739 int i;
5740 int
5741 main (void)
5742 {
5743
5744 ;
5745 return 0;
5746 }
5747 _ACEOF
5748 if ac_fn_c_try_link "$LINENO"
5749 then :
5750 eval $cacheid=yes
5751 else case e in #(
5752 e) eval $cacheid=no ;;
5753 esac
5754 fi
5755 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5756 conftest$ac_exeext conftest.$ac_ext ;;
5757 esac
5758 fi
5759
5760
5761 CFLAGS="$xorg_testset_save_CFLAGS"
5762
5763 eval supported=\$$cacheid
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5765 printf "%s\n" "$supported" >&6; }
5766 if test "$supported" = "yes" ; then
5767 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5768 found="yes"
5769 fi
5770 fi
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786 xorg_testset_save_CFLAGS="$CFLAGS"
5787
5788 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5789 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5791 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5792 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5793 then :
5794 printf %s "(cached) " >&6
5795 else case e in #(
5796 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 int i;
5799 _ACEOF
5800 if ac_fn_c_try_compile "$LINENO"
5801 then :
5802 xorg_cv_cc_flag_unknown_warning_option=yes
5803 else case e in #(
5804 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5805 esac
5806 fi
5807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5808 esac
5809 fi
5810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5811 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5812 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5813 CFLAGS="$xorg_testset_save_CFLAGS"
5814 fi
5815
5816 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5819 fi
5820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5822 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5823 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5824 then :
5825 printf %s "(cached) " >&6
5826 else case e in #(
5827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 int i;
5830 _ACEOF
5831 if ac_fn_c_try_compile "$LINENO"
5832 then :
5833 xorg_cv_cc_flag_unused_command_line_argument=yes
5834 else case e in #(
5835 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5836 esac
5837 fi
5838 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5839 esac
5840 fi
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5842 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5843 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5844 CFLAGS="$xorg_testset_save_CFLAGS"
5845 fi
5846
5847 found="no"
5848
5849 if test $found = "no" ; then
5850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5852 fi
5853
5854 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5855 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5856 fi
5857
5858 CFLAGS="$CFLAGS -Wmissing-declarations"
5859
5860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5861 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5862 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5863 if eval test \${$cacheid+y}
5864 then :
5865 printf %s "(cached) " >&6
5866 else case e in #(
5867 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 int i;
5870 int
5871 main (void)
5872 {
5873
5874 ;
5875 return 0;
5876 }
5877 _ACEOF
5878 if ac_fn_c_try_link "$LINENO"
5879 then :
5880 eval $cacheid=yes
5881 else case e in #(
5882 e) eval $cacheid=no ;;
5883 esac
5884 fi
5885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5886 conftest$ac_exeext conftest.$ac_ext ;;
5887 esac
5888 fi
5889
5890
5891 CFLAGS="$xorg_testset_save_CFLAGS"
5892
5893 eval supported=\$$cacheid
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5895 printf "%s\n" "$supported" >&6; }
5896 if test "$supported" = "yes" ; then
5897 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5898 found="yes"
5899 fi
5900 fi
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916 xorg_testset_save_CFLAGS="$CFLAGS"
5917
5918 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5919 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5921 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5922 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5923 then :
5924 printf %s "(cached) " >&6
5925 else case e in #(
5926 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5928 int i;
5929 _ACEOF
5930 if ac_fn_c_try_compile "$LINENO"
5931 then :
5932 xorg_cv_cc_flag_unknown_warning_option=yes
5933 else case e in #(
5934 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
5935 esac
5936 fi
5937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5938 esac
5939 fi
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5941 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5942 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5943 CFLAGS="$xorg_testset_save_CFLAGS"
5944 fi
5945
5946 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5949 fi
5950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5952 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5953 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5954 then :
5955 printf %s "(cached) " >&6
5956 else case e in #(
5957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5958 /* end confdefs.h. */
5959 int i;
5960 _ACEOF
5961 if ac_fn_c_try_compile "$LINENO"
5962 then :
5963 xorg_cv_cc_flag_unused_command_line_argument=yes
5964 else case e in #(
5965 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
5966 esac
5967 fi
5968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5969 esac
5970 fi
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5972 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5974 CFLAGS="$xorg_testset_save_CFLAGS"
5975 fi
5976
5977 found="no"
5978
5979 if test $found = "no" ; then
5980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5982 fi
5983
5984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5986 fi
5987
5988 CFLAGS="$CFLAGS -Wformat=2"
5989
5990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5991 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5992 cacheid=xorg_cv_cc_flag__Wformat_2
5993 if eval test \${$cacheid+y}
5994 then :
5995 printf %s "(cached) " >&6
5996 else case e in #(
5997 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5998 /* end confdefs.h. */
5999 int i;
6000 int
6001 main (void)
6002 {
6003
6004 ;
6005 return 0;
6006 }
6007 _ACEOF
6008 if ac_fn_c_try_link "$LINENO"
6009 then :
6010 eval $cacheid=yes
6011 else case e in #(
6012 e) eval $cacheid=no ;;
6013 esac
6014 fi
6015 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6016 conftest$ac_exeext conftest.$ac_ext ;;
6017 esac
6018 fi
6019
6020
6021 CFLAGS="$xorg_testset_save_CFLAGS"
6022
6023 eval supported=\$$cacheid
6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6025 printf "%s\n" "$supported" >&6; }
6026 if test "$supported" = "yes" ; then
6027 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
6028 found="yes"
6029 fi
6030 fi
6031
6032 if test $found = "no" ; then
6033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6034 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6035 fi
6036
6037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6039 fi
6040
6041 CFLAGS="$CFLAGS -Wformat"
6042
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
6044 printf %s "checking if $CC supports -Wformat... " >&6; }
6045 cacheid=xorg_cv_cc_flag__Wformat
6046 if eval test \${$cacheid+y}
6047 then :
6048 printf %s "(cached) " >&6
6049 else case e in #(
6050 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051 /* end confdefs.h. */
6052 int i;
6053 int
6054 main (void)
6055 {
6056
6057 ;
6058 return 0;
6059 }
6060 _ACEOF
6061 if ac_fn_c_try_link "$LINENO"
6062 then :
6063 eval $cacheid=yes
6064 else case e in #(
6065 e) eval $cacheid=no ;;
6066 esac
6067 fi
6068 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6069 conftest$ac_exeext conftest.$ac_ext ;;
6070 esac
6071 fi
6072
6073
6074 CFLAGS="$xorg_testset_save_CFLAGS"
6075
6076 eval supported=\$$cacheid
6077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6078 printf "%s\n" "$supported" >&6; }
6079 if test "$supported" = "yes" ; then
6080 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
6081 found="yes"
6082 fi
6083 fi
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101 xorg_testset_save_CFLAGS="$CFLAGS"
6102
6103 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6106 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6107 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6108 then :
6109 printf %s "(cached) " >&6
6110 else case e in #(
6111 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6113 int i;
6114 _ACEOF
6115 if ac_fn_c_try_compile "$LINENO"
6116 then :
6117 xorg_cv_cc_flag_unknown_warning_option=yes
6118 else case e in #(
6119 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6120 esac
6121 fi
6122 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6123 esac
6124 fi
6125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6126 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6127 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6128 CFLAGS="$xorg_testset_save_CFLAGS"
6129 fi
6130
6131 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6134 fi
6135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6137 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6138 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
6146 if ac_fn_c_try_compile "$LINENO"
6147 then :
6148 xorg_cv_cc_flag_unused_command_line_argument=yes
6149 else case e in #(
6150 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6151 esac
6152 fi
6153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6154 esac
6155 fi
6156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6157 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6158 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6159 CFLAGS="$xorg_testset_save_CFLAGS"
6160 fi
6161
6162 found="no"
6163
6164 if test $found = "no" ; then
6165 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6166 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6167 fi
6168
6169 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6171 fi
6172
6173 CFLAGS="$CFLAGS -Wstrict-prototypes"
6174
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
6176 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
6177 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
6178 if eval test \${$cacheid+y}
6179 then :
6180 printf %s "(cached) " >&6
6181 else case e in #(
6182 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183 /* end confdefs.h. */
6184 int i;
6185 int
6186 main (void)
6187 {
6188
6189 ;
6190 return 0;
6191 }
6192 _ACEOF
6193 if ac_fn_c_try_link "$LINENO"
6194 then :
6195 eval $cacheid=yes
6196 else case e in #(
6197 e) eval $cacheid=no ;;
6198 esac
6199 fi
6200 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6201 conftest$ac_exeext conftest.$ac_ext ;;
6202 esac
6203 fi
6204
6205
6206 CFLAGS="$xorg_testset_save_CFLAGS"
6207
6208 eval supported=\$$cacheid
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6210 printf "%s\n" "$supported" >&6; }
6211 if test "$supported" = "yes" ; then
6212 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
6213 found="yes"
6214 fi
6215 fi
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231 xorg_testset_save_CFLAGS="$CFLAGS"
6232
6233 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6234 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6236 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6237 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6238 then :
6239 printf %s "(cached) " >&6
6240 else case e in #(
6241 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242 /* end confdefs.h. */
6243 int i;
6244 _ACEOF
6245 if ac_fn_c_try_compile "$LINENO"
6246 then :
6247 xorg_cv_cc_flag_unknown_warning_option=yes
6248 else case e in #(
6249 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6250 esac
6251 fi
6252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6253 esac
6254 fi
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6256 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6257 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6258 CFLAGS="$xorg_testset_save_CFLAGS"
6259 fi
6260
6261 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6264 fi
6265 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6267 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6268 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6269 then :
6270 printf %s "(cached) " >&6
6271 else case e in #(
6272 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6273 /* end confdefs.h. */
6274 int i;
6275 _ACEOF
6276 if ac_fn_c_try_compile "$LINENO"
6277 then :
6278 xorg_cv_cc_flag_unused_command_line_argument=yes
6279 else case e in #(
6280 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6281 esac
6282 fi
6283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6284 esac
6285 fi
6286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6287 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6289 CFLAGS="$xorg_testset_save_CFLAGS"
6290 fi
6291
6292 found="no"
6293
6294 if test $found = "no" ; then
6295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6297 fi
6298
6299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6301 fi
6302
6303 CFLAGS="$CFLAGS -Wmissing-prototypes"
6304
6305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
6306 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
6307 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
6308 if eval test \${$cacheid+y}
6309 then :
6310 printf %s "(cached) " >&6
6311 else case e in #(
6312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313 /* end confdefs.h. */
6314 int i;
6315 int
6316 main (void)
6317 {
6318
6319 ;
6320 return 0;
6321 }
6322 _ACEOF
6323 if ac_fn_c_try_link "$LINENO"
6324 then :
6325 eval $cacheid=yes
6326 else case e in #(
6327 e) eval $cacheid=no ;;
6328 esac
6329 fi
6330 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6331 conftest$ac_exeext conftest.$ac_ext ;;
6332 esac
6333 fi
6334
6335
6336 CFLAGS="$xorg_testset_save_CFLAGS"
6337
6338 eval supported=\$$cacheid
6339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6340 printf "%s\n" "$supported" >&6; }
6341 if test "$supported" = "yes" ; then
6342 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
6343 found="yes"
6344 fi
6345 fi
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361 xorg_testset_save_CFLAGS="$CFLAGS"
6362
6363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6366 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6367 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6368 then :
6369 printf %s "(cached) " >&6
6370 else case e in #(
6371 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6372 /* end confdefs.h. */
6373 int i;
6374 _ACEOF
6375 if ac_fn_c_try_compile "$LINENO"
6376 then :
6377 xorg_cv_cc_flag_unknown_warning_option=yes
6378 else case e in #(
6379 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6380 esac
6381 fi
6382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6383 esac
6384 fi
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6386 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6387 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6388 CFLAGS="$xorg_testset_save_CFLAGS"
6389 fi
6390
6391 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6394 fi
6395 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6397 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6398 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6399 then :
6400 printf %s "(cached) " >&6
6401 else case e in #(
6402 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* end confdefs.h. */
6404 int i;
6405 _ACEOF
6406 if ac_fn_c_try_compile "$LINENO"
6407 then :
6408 xorg_cv_cc_flag_unused_command_line_argument=yes
6409 else case e in #(
6410 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6411 esac
6412 fi
6413 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6414 esac
6415 fi
6416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6417 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6418 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6419 CFLAGS="$xorg_testset_save_CFLAGS"
6420 fi
6421
6422 found="no"
6423
6424 if test $found = "no" ; then
6425 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6426 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6427 fi
6428
6429 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6431 fi
6432
6433 CFLAGS="$CFLAGS -Wnested-externs"
6434
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
6436 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
6437 cacheid=xorg_cv_cc_flag__Wnested_externs
6438 if eval test \${$cacheid+y}
6439 then :
6440 printf %s "(cached) " >&6
6441 else case e in #(
6442 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443 /* end confdefs.h. */
6444 int i;
6445 int
6446 main (void)
6447 {
6448
6449 ;
6450 return 0;
6451 }
6452 _ACEOF
6453 if ac_fn_c_try_link "$LINENO"
6454 then :
6455 eval $cacheid=yes
6456 else case e in #(
6457 e) eval $cacheid=no ;;
6458 esac
6459 fi
6460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6461 conftest$ac_exeext conftest.$ac_ext ;;
6462 esac
6463 fi
6464
6465
6466 CFLAGS="$xorg_testset_save_CFLAGS"
6467
6468 eval supported=\$$cacheid
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6470 printf "%s\n" "$supported" >&6; }
6471 if test "$supported" = "yes" ; then
6472 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
6473 found="yes"
6474 fi
6475 fi
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491 xorg_testset_save_CFLAGS="$CFLAGS"
6492
6493 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6496 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6497 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6498 then :
6499 printf %s "(cached) " >&6
6500 else case e in #(
6501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6503 int i;
6504 _ACEOF
6505 if ac_fn_c_try_compile "$LINENO"
6506 then :
6507 xorg_cv_cc_flag_unknown_warning_option=yes
6508 else case e in #(
6509 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6510 esac
6511 fi
6512 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6513 esac
6514 fi
6515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6516 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6517 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6518 CFLAGS="$xorg_testset_save_CFLAGS"
6519 fi
6520
6521 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6524 fi
6525 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6527 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6528 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6529 then :
6530 printf %s "(cached) " >&6
6531 else case e in #(
6532 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6533 /* end confdefs.h. */
6534 int i;
6535 _ACEOF
6536 if ac_fn_c_try_compile "$LINENO"
6537 then :
6538 xorg_cv_cc_flag_unused_command_line_argument=yes
6539 else case e in #(
6540 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6541 esac
6542 fi
6543 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6544 esac
6545 fi
6546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6547 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6548 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6549 CFLAGS="$xorg_testset_save_CFLAGS"
6550 fi
6551
6552 found="no"
6553
6554 if test $found = "no" ; then
6555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6557 fi
6558
6559 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6560 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6561 fi
6562
6563 CFLAGS="$CFLAGS -Wbad-function-cast"
6564
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
6566 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
6567 cacheid=xorg_cv_cc_flag__Wbad_function_cast
6568 if eval test \${$cacheid+y}
6569 then :
6570 printf %s "(cached) " >&6
6571 else case e in #(
6572 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574 int i;
6575 int
6576 main (void)
6577 {
6578
6579 ;
6580 return 0;
6581 }
6582 _ACEOF
6583 if ac_fn_c_try_link "$LINENO"
6584 then :
6585 eval $cacheid=yes
6586 else case e in #(
6587 e) eval $cacheid=no ;;
6588 esac
6589 fi
6590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6591 conftest$ac_exeext conftest.$ac_ext ;;
6592 esac
6593 fi
6594
6595
6596 CFLAGS="$xorg_testset_save_CFLAGS"
6597
6598 eval supported=\$$cacheid
6599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6600 printf "%s\n" "$supported" >&6; }
6601 if test "$supported" = "yes" ; then
6602 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
6603 found="yes"
6604 fi
6605 fi
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621 xorg_testset_save_CFLAGS="$CFLAGS"
6622
6623 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6624 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6626 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6627 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6628 then :
6629 printf %s "(cached) " >&6
6630 else case e in #(
6631 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6632 /* end confdefs.h. */
6633 int i;
6634 _ACEOF
6635 if ac_fn_c_try_compile "$LINENO"
6636 then :
6637 xorg_cv_cc_flag_unknown_warning_option=yes
6638 else case e in #(
6639 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6640 esac
6641 fi
6642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6643 esac
6644 fi
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6646 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6647 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6648 CFLAGS="$xorg_testset_save_CFLAGS"
6649 fi
6650
6651 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6654 fi
6655 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6657 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6658 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6659 then :
6660 printf %s "(cached) " >&6
6661 else case e in #(
6662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663 /* end confdefs.h. */
6664 int i;
6665 _ACEOF
6666 if ac_fn_c_try_compile "$LINENO"
6667 then :
6668 xorg_cv_cc_flag_unused_command_line_argument=yes
6669 else case e in #(
6670 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6671 esac
6672 fi
6673 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6674 esac
6675 fi
6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6677 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6678 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6679 CFLAGS="$xorg_testset_save_CFLAGS"
6680 fi
6681
6682 found="no"
6683
6684 if test $found = "no" ; then
6685 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6686 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6687 fi
6688
6689 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6690 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6691 fi
6692
6693 CFLAGS="$CFLAGS -Wold-style-definition"
6694
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6696 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6697 cacheid=xorg_cv_cc_flag__Wold_style_definition
6698 if eval test \${$cacheid+y}
6699 then :
6700 printf %s "(cached) " >&6
6701 else case e in #(
6702 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6703 /* end confdefs.h. */
6704 int i;
6705 int
6706 main (void)
6707 {
6708
6709 ;
6710 return 0;
6711 }
6712 _ACEOF
6713 if ac_fn_c_try_link "$LINENO"
6714 then :
6715 eval $cacheid=yes
6716 else case e in #(
6717 e) eval $cacheid=no ;;
6718 esac
6719 fi
6720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6721 conftest$ac_exeext conftest.$ac_ext ;;
6722 esac
6723 fi
6724
6725
6726 CFLAGS="$xorg_testset_save_CFLAGS"
6727
6728 eval supported=\$$cacheid
6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6730 printf "%s\n" "$supported" >&6; }
6731 if test "$supported" = "yes" ; then
6732 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6733 found="yes"
6734 fi
6735 fi
6736
6737 if test $found = "no" ; then
6738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6740 fi
6741
6742 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6743 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6744 fi
6745
6746 CFLAGS="$CFLAGS -fd"
6747
6748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6749 printf %s "checking if $CC supports -fd... " >&6; }
6750 cacheid=xorg_cv_cc_flag__fd
6751 if eval test \${$cacheid+y}
6752 then :
6753 printf %s "(cached) " >&6
6754 else case e in #(
6755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6756 /* end confdefs.h. */
6757 int i;
6758 int
6759 main (void)
6760 {
6761
6762 ;
6763 return 0;
6764 }
6765 _ACEOF
6766 if ac_fn_c_try_link "$LINENO"
6767 then :
6768 eval $cacheid=yes
6769 else case e in #(
6770 e) eval $cacheid=no ;;
6771 esac
6772 fi
6773 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6774 conftest$ac_exeext conftest.$ac_ext ;;
6775 esac
6776 fi
6777
6778
6779 CFLAGS="$xorg_testset_save_CFLAGS"
6780
6781 eval supported=\$$cacheid
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6783 printf "%s\n" "$supported" >&6; }
6784 if test "$supported" = "yes" ; then
6785 BASE_CFLAGS="$BASE_CFLAGS -fd"
6786 found="yes"
6787 fi
6788 fi
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804 xorg_testset_save_CFLAGS="$CFLAGS"
6805
6806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6809 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6810 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6811 then :
6812 printf %s "(cached) " >&6
6813 else case e in #(
6814 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6815 /* end confdefs.h. */
6816 int i;
6817 _ACEOF
6818 if ac_fn_c_try_compile "$LINENO"
6819 then :
6820 xorg_cv_cc_flag_unknown_warning_option=yes
6821 else case e in #(
6822 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6823 esac
6824 fi
6825 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6826 esac
6827 fi
6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6829 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6831 CFLAGS="$xorg_testset_save_CFLAGS"
6832 fi
6833
6834 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6837 fi
6838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6840 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6841 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6842 then :
6843 printf %s "(cached) " >&6
6844 else case e in #(
6845 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6847 int i;
6848 _ACEOF
6849 if ac_fn_c_try_compile "$LINENO"
6850 then :
6851 xorg_cv_cc_flag_unused_command_line_argument=yes
6852 else case e in #(
6853 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6854 esac
6855 fi
6856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6857 esac
6858 fi
6859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6860 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6861 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6862 CFLAGS="$xorg_testset_save_CFLAGS"
6863 fi
6864
6865 found="no"
6866
6867 if test $found = "no" ; then
6868 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6870 fi
6871
6872 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6874 fi
6875
6876 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6877
6878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6879 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6880 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6881 if eval test \${$cacheid+y}
6882 then :
6883 printf %s "(cached) " >&6
6884 else case e in #(
6885 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6886 /* end confdefs.h. */
6887 int i;
6888 int
6889 main (void)
6890 {
6891
6892 ;
6893 return 0;
6894 }
6895 _ACEOF
6896 if ac_fn_c_try_link "$LINENO"
6897 then :
6898 eval $cacheid=yes
6899 else case e in #(
6900 e) eval $cacheid=no ;;
6901 esac
6902 fi
6903 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6904 conftest$ac_exeext conftest.$ac_ext ;;
6905 esac
6906 fi
6907
6908
6909 CFLAGS="$xorg_testset_save_CFLAGS"
6910
6911 eval supported=\$$cacheid
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6913 printf "%s\n" "$supported" >&6; }
6914 if test "$supported" = "yes" ; then
6915 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6916 found="yes"
6917 fi
6918 fi
6919
6920
6921
6922
6923
6924 # This chunk adds additional warnings that could catch undesired effects.
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938 xorg_testset_save_CFLAGS="$CFLAGS"
6939
6940 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6943 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6944 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6945 then :
6946 printf %s "(cached) " >&6
6947 else case e in #(
6948 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6950 int i;
6951 _ACEOF
6952 if ac_fn_c_try_compile "$LINENO"
6953 then :
6954 xorg_cv_cc_flag_unknown_warning_option=yes
6955 else case e in #(
6956 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
6957 esac
6958 fi
6959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6960 esac
6961 fi
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6963 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6965 CFLAGS="$xorg_testset_save_CFLAGS"
6966 fi
6967
6968 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6971 fi
6972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6974 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6975 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6976 then :
6977 printf %s "(cached) " >&6
6978 else case e in #(
6979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6981 int i;
6982 _ACEOF
6983 if ac_fn_c_try_compile "$LINENO"
6984 then :
6985 xorg_cv_cc_flag_unused_command_line_argument=yes
6986 else case e in #(
6987 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
6988 esac
6989 fi
6990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6991 esac
6992 fi
6993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6994 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6995 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6996 CFLAGS="$xorg_testset_save_CFLAGS"
6997 fi
6998
6999 found="no"
7000
7001 if test $found = "no" ; then
7002 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7004 fi
7005
7006 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7007 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7008 fi
7009
7010 CFLAGS="$CFLAGS -Wunused"
7011
7012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
7013 printf %s "checking if $CC supports -Wunused... " >&6; }
7014 cacheid=xorg_cv_cc_flag__Wunused
7015 if eval test \${$cacheid+y}
7016 then :
7017 printf %s "(cached) " >&6
7018 else case e in #(
7019 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7021 int i;
7022 int
7023 main (void)
7024 {
7025
7026 ;
7027 return 0;
7028 }
7029 _ACEOF
7030 if ac_fn_c_try_link "$LINENO"
7031 then :
7032 eval $cacheid=yes
7033 else case e in #(
7034 e) eval $cacheid=no ;;
7035 esac
7036 fi
7037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7038 conftest$ac_exeext conftest.$ac_ext ;;
7039 esac
7040 fi
7041
7042
7043 CFLAGS="$xorg_testset_save_CFLAGS"
7044
7045 eval supported=\$$cacheid
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7047 printf "%s\n" "$supported" >&6; }
7048 if test "$supported" = "yes" ; then
7049 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
7050 found="yes"
7051 fi
7052 fi
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068 xorg_testset_save_CFLAGS="$CFLAGS"
7069
7070 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7073 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7074 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7075 then :
7076 printf %s "(cached) " >&6
7077 else case e in #(
7078 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7080 int i;
7081 _ACEOF
7082 if ac_fn_c_try_compile "$LINENO"
7083 then :
7084 xorg_cv_cc_flag_unknown_warning_option=yes
7085 else case e in #(
7086 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7087 esac
7088 fi
7089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7090 esac
7091 fi
7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7093 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7094 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7095 CFLAGS="$xorg_testset_save_CFLAGS"
7096 fi
7097
7098 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7099 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7100 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7101 fi
7102 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7104 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7105 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7106 then :
7107 printf %s "(cached) " >&6
7108 else case e in #(
7109 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7110 /* end confdefs.h. */
7111 int i;
7112 _ACEOF
7113 if ac_fn_c_try_compile "$LINENO"
7114 then :
7115 xorg_cv_cc_flag_unused_command_line_argument=yes
7116 else case e in #(
7117 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7118 esac
7119 fi
7120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7121 esac
7122 fi
7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7124 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7126 CFLAGS="$xorg_testset_save_CFLAGS"
7127 fi
7128
7129 found="no"
7130
7131 if test $found = "no" ; then
7132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7134 fi
7135
7136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7138 fi
7139
7140 CFLAGS="$CFLAGS -Wuninitialized"
7141
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
7143 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
7144 cacheid=xorg_cv_cc_flag__Wuninitialized
7145 if eval test \${$cacheid+y}
7146 then :
7147 printf %s "(cached) " >&6
7148 else case e in #(
7149 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7151 int i;
7152 int
7153 main (void)
7154 {
7155
7156 ;
7157 return 0;
7158 }
7159 _ACEOF
7160 if ac_fn_c_try_link "$LINENO"
7161 then :
7162 eval $cacheid=yes
7163 else case e in #(
7164 e) eval $cacheid=no ;;
7165 esac
7166 fi
7167 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7168 conftest$ac_exeext conftest.$ac_ext ;;
7169 esac
7170 fi
7171
7172
7173 CFLAGS="$xorg_testset_save_CFLAGS"
7174
7175 eval supported=\$$cacheid
7176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7177 printf "%s\n" "$supported" >&6; }
7178 if test "$supported" = "yes" ; then
7179 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
7180 found="yes"
7181 fi
7182 fi
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198 xorg_testset_save_CFLAGS="$CFLAGS"
7199
7200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7203 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7204 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7205 then :
7206 printf %s "(cached) " >&6
7207 else case e in #(
7208 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7209 /* end confdefs.h. */
7210 int i;
7211 _ACEOF
7212 if ac_fn_c_try_compile "$LINENO"
7213 then :
7214 xorg_cv_cc_flag_unknown_warning_option=yes
7215 else case e in #(
7216 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7217 esac
7218 fi
7219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7220 esac
7221 fi
7222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7223 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7225 CFLAGS="$xorg_testset_save_CFLAGS"
7226 fi
7227
7228 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7230 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7231 fi
7232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7234 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7235 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7236 then :
7237 printf %s "(cached) " >&6
7238 else case e in #(
7239 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7240 /* end confdefs.h. */
7241 int i;
7242 _ACEOF
7243 if ac_fn_c_try_compile "$LINENO"
7244 then :
7245 xorg_cv_cc_flag_unused_command_line_argument=yes
7246 else case e in #(
7247 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7248 esac
7249 fi
7250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7251 esac
7252 fi
7253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7254 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7256 CFLAGS="$xorg_testset_save_CFLAGS"
7257 fi
7258
7259 found="no"
7260
7261 if test $found = "no" ; then
7262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7263 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7264 fi
7265
7266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7268 fi
7269
7270 CFLAGS="$CFLAGS -Wshadow"
7271
7272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
7273 printf %s "checking if $CC supports -Wshadow... " >&6; }
7274 cacheid=xorg_cv_cc_flag__Wshadow
7275 if eval test \${$cacheid+y}
7276 then :
7277 printf %s "(cached) " >&6
7278 else case e in #(
7279 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280 /* end confdefs.h. */
7281 int i;
7282 int
7283 main (void)
7284 {
7285
7286 ;
7287 return 0;
7288 }
7289 _ACEOF
7290 if ac_fn_c_try_link "$LINENO"
7291 then :
7292 eval $cacheid=yes
7293 else case e in #(
7294 e) eval $cacheid=no ;;
7295 esac
7296 fi
7297 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7298 conftest$ac_exeext conftest.$ac_ext ;;
7299 esac
7300 fi
7301
7302
7303 CFLAGS="$xorg_testset_save_CFLAGS"
7304
7305 eval supported=\$$cacheid
7306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7307 printf "%s\n" "$supported" >&6; }
7308 if test "$supported" = "yes" ; then
7309 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
7310 found="yes"
7311 fi
7312 fi
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328 xorg_testset_save_CFLAGS="$CFLAGS"
7329
7330 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7333 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7334 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7335 then :
7336 printf %s "(cached) " >&6
7337 else case e in #(
7338 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339 /* end confdefs.h. */
7340 int i;
7341 _ACEOF
7342 if ac_fn_c_try_compile "$LINENO"
7343 then :
7344 xorg_cv_cc_flag_unknown_warning_option=yes
7345 else case e in #(
7346 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7347 esac
7348 fi
7349 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7350 esac
7351 fi
7352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7353 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7354 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7355 CFLAGS="$xorg_testset_save_CFLAGS"
7356 fi
7357
7358 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7361 fi
7362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7364 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7365 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7366 then :
7367 printf %s "(cached) " >&6
7368 else case e in #(
7369 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7370 /* end confdefs.h. */
7371 int i;
7372 _ACEOF
7373 if ac_fn_c_try_compile "$LINENO"
7374 then :
7375 xorg_cv_cc_flag_unused_command_line_argument=yes
7376 else case e in #(
7377 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7378 esac
7379 fi
7380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7381 esac
7382 fi
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7384 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7385 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7386 CFLAGS="$xorg_testset_save_CFLAGS"
7387 fi
7388
7389 found="no"
7390
7391 if test $found = "no" ; then
7392 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7394 fi
7395
7396 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7397 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7398 fi
7399
7400 CFLAGS="$CFLAGS -Wmissing-noreturn"
7401
7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
7403 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
7404 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
7405 if eval test \${$cacheid+y}
7406 then :
7407 printf %s "(cached) " >&6
7408 else case e in #(
7409 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410 /* end confdefs.h. */
7411 int i;
7412 int
7413 main (void)
7414 {
7415
7416 ;
7417 return 0;
7418 }
7419 _ACEOF
7420 if ac_fn_c_try_link "$LINENO"
7421 then :
7422 eval $cacheid=yes
7423 else case e in #(
7424 e) eval $cacheid=no ;;
7425 esac
7426 fi
7427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7428 conftest$ac_exeext conftest.$ac_ext ;;
7429 esac
7430 fi
7431
7432
7433 CFLAGS="$xorg_testset_save_CFLAGS"
7434
7435 eval supported=\$$cacheid
7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7437 printf "%s\n" "$supported" >&6; }
7438 if test "$supported" = "yes" ; then
7439 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
7440 found="yes"
7441 fi
7442 fi
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458 xorg_testset_save_CFLAGS="$CFLAGS"
7459
7460 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7463 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7464 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7465 then :
7466 printf %s "(cached) " >&6
7467 else case e in #(
7468 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7469 /* end confdefs.h. */
7470 int i;
7471 _ACEOF
7472 if ac_fn_c_try_compile "$LINENO"
7473 then :
7474 xorg_cv_cc_flag_unknown_warning_option=yes
7475 else case e in #(
7476 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7477 esac
7478 fi
7479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7480 esac
7481 fi
7482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7483 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7484 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7485 CFLAGS="$xorg_testset_save_CFLAGS"
7486 fi
7487
7488 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7491 fi
7492 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7494 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7495 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7496 then :
7497 printf %s "(cached) " >&6
7498 else case e in #(
7499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7500 /* end confdefs.h. */
7501 int i;
7502 _ACEOF
7503 if ac_fn_c_try_compile "$LINENO"
7504 then :
7505 xorg_cv_cc_flag_unused_command_line_argument=yes
7506 else case e in #(
7507 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7508 esac
7509 fi
7510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7511 esac
7512 fi
7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7514 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7515 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7516 CFLAGS="$xorg_testset_save_CFLAGS"
7517 fi
7518
7519 found="no"
7520
7521 if test $found = "no" ; then
7522 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7523 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7524 fi
7525
7526 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7527 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7528 fi
7529
7530 CFLAGS="$CFLAGS -Wmissing-format-attribute"
7531
7532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
7533 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
7534 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
7535 if eval test \${$cacheid+y}
7536 then :
7537 printf %s "(cached) " >&6
7538 else case e in #(
7539 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7540 /* end confdefs.h. */
7541 int i;
7542 int
7543 main (void)
7544 {
7545
7546 ;
7547 return 0;
7548 }
7549 _ACEOF
7550 if ac_fn_c_try_link "$LINENO"
7551 then :
7552 eval $cacheid=yes
7553 else case e in #(
7554 e) eval $cacheid=no ;;
7555 esac
7556 fi
7557 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7558 conftest$ac_exeext conftest.$ac_ext ;;
7559 esac
7560 fi
7561
7562
7563 CFLAGS="$xorg_testset_save_CFLAGS"
7564
7565 eval supported=\$$cacheid
7566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7567 printf "%s\n" "$supported" >&6; }
7568 if test "$supported" = "yes" ; then
7569 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
7570 found="yes"
7571 fi
7572 fi
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588 xorg_testset_save_CFLAGS="$CFLAGS"
7589
7590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7593 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7594 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7595 then :
7596 printf %s "(cached) " >&6
7597 else case e in #(
7598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7600 int i;
7601 _ACEOF
7602 if ac_fn_c_try_compile "$LINENO"
7603 then :
7604 xorg_cv_cc_flag_unknown_warning_option=yes
7605 else case e in #(
7606 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7607 esac
7608 fi
7609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7610 esac
7611 fi
7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7613 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7614 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7615 CFLAGS="$xorg_testset_save_CFLAGS"
7616 fi
7617
7618 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7619 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7620 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7621 fi
7622 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7624 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7625 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7626 then :
7627 printf %s "(cached) " >&6
7628 else case e in #(
7629 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7631 int i;
7632 _ACEOF
7633 if ac_fn_c_try_compile "$LINENO"
7634 then :
7635 xorg_cv_cc_flag_unused_command_line_argument=yes
7636 else case e in #(
7637 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7638 esac
7639 fi
7640 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7641 esac
7642 fi
7643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7644 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7645 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7646 CFLAGS="$xorg_testset_save_CFLAGS"
7647 fi
7648
7649 found="no"
7650
7651 if test $found = "no" ; then
7652 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7654 fi
7655
7656 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7657 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7658 fi
7659
7660 CFLAGS="$CFLAGS -Wredundant-decls"
7661
7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
7663 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
7664 cacheid=xorg_cv_cc_flag__Wredundant_decls
7665 if eval test \${$cacheid+y}
7666 then :
7667 printf %s "(cached) " >&6
7668 else case e in #(
7669 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7670 /* end confdefs.h. */
7671 int i;
7672 int
7673 main (void)
7674 {
7675
7676 ;
7677 return 0;
7678 }
7679 _ACEOF
7680 if ac_fn_c_try_link "$LINENO"
7681 then :
7682 eval $cacheid=yes
7683 else case e in #(
7684 e) eval $cacheid=no ;;
7685 esac
7686 fi
7687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7688 conftest$ac_exeext conftest.$ac_ext ;;
7689 esac
7690 fi
7691
7692
7693 CFLAGS="$xorg_testset_save_CFLAGS"
7694
7695 eval supported=\$$cacheid
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7697 printf "%s\n" "$supported" >&6; }
7698 if test "$supported" = "yes" ; then
7699 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
7700 found="yes"
7701 fi
7702 fi
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718 xorg_testset_save_CFLAGS="$CFLAGS"
7719
7720 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7723 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7724 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7725 then :
7726 printf %s "(cached) " >&6
7727 else case e in #(
7728 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729 /* end confdefs.h. */
7730 int i;
7731 _ACEOF
7732 if ac_fn_c_try_compile "$LINENO"
7733 then :
7734 xorg_cv_cc_flag_unknown_warning_option=yes
7735 else case e in #(
7736 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7737 esac
7738 fi
7739 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7740 esac
7741 fi
7742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7743 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7745 CFLAGS="$xorg_testset_save_CFLAGS"
7746 fi
7747
7748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7751 fi
7752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7754 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7755 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7756 then :
7757 printf %s "(cached) " >&6
7758 else case e in #(
7759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7760 /* end confdefs.h. */
7761 int i;
7762 _ACEOF
7763 if ac_fn_c_try_compile "$LINENO"
7764 then :
7765 xorg_cv_cc_flag_unused_command_line_argument=yes
7766 else case e in #(
7767 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7768 esac
7769 fi
7770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7771 esac
7772 fi
7773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7774 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7775 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7776 CFLAGS="$xorg_testset_save_CFLAGS"
7777 fi
7778
7779 found="no"
7780
7781 if test $found = "no" ; then
7782 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7784 fi
7785
7786 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7788 fi
7789
7790 CFLAGS="$CFLAGS -Wlogical-op"
7791
7792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7793 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7794 cacheid=xorg_cv_cc_flag__Wlogical_op
7795 if eval test \${$cacheid+y}
7796 then :
7797 printf %s "(cached) " >&6
7798 else case e in #(
7799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7800 /* end confdefs.h. */
7801 int i;
7802 int
7803 main (void)
7804 {
7805
7806 ;
7807 return 0;
7808 }
7809 _ACEOF
7810 if ac_fn_c_try_link "$LINENO"
7811 then :
7812 eval $cacheid=yes
7813 else case e in #(
7814 e) eval $cacheid=no ;;
7815 esac
7816 fi
7817 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7818 conftest$ac_exeext conftest.$ac_ext ;;
7819 esac
7820 fi
7821
7822
7823 CFLAGS="$xorg_testset_save_CFLAGS"
7824
7825 eval supported=\$$cacheid
7826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7827 printf "%s\n" "$supported" >&6; }
7828 if test "$supported" = "yes" ; then
7829 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7830 found="yes"
7831 fi
7832 fi
7833
7834
7835
7836 # These are currently disabled because they are noisy. They will be enabled
7837 # in the future once the codebase is sufficiently modernized to silence
7838 # them. For now, I don't want them to drown out the other warnings.
7839 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7840 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7841 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7842
7843 # Turn some warnings into errors, so we don't accidentally get successful builds
7844 # when there are problems that should be fixed.
7845
7846 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860 xorg_testset_save_CFLAGS="$CFLAGS"
7861
7862 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7865 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7866 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7867 then :
7868 printf %s "(cached) " >&6
7869 else case e in #(
7870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h. */
7872 int i;
7873 _ACEOF
7874 if ac_fn_c_try_compile "$LINENO"
7875 then :
7876 xorg_cv_cc_flag_unknown_warning_option=yes
7877 else case e in #(
7878 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
7879 esac
7880 fi
7881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7882 esac
7883 fi
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7885 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7887 CFLAGS="$xorg_testset_save_CFLAGS"
7888 fi
7889
7890 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7893 fi
7894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7896 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7897 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7898 then :
7899 printf %s "(cached) " >&6
7900 else case e in #(
7901 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7903 int i;
7904 _ACEOF
7905 if ac_fn_c_try_compile "$LINENO"
7906 then :
7907 xorg_cv_cc_flag_unused_command_line_argument=yes
7908 else case e in #(
7909 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
7910 esac
7911 fi
7912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7913 esac
7914 fi
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7916 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7917 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7918 CFLAGS="$xorg_testset_save_CFLAGS"
7919 fi
7920
7921 found="no"
7922
7923 if test $found = "no" ; then
7924 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7926 fi
7927
7928 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7929 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7930 fi
7931
7932 CFLAGS="$CFLAGS -Werror=implicit"
7933
7934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7935 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7936 cacheid=xorg_cv_cc_flag__Werror_implicit
7937 if eval test \${$cacheid+y}
7938 then :
7939 printf %s "(cached) " >&6
7940 else case e in #(
7941 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7943 int i;
7944 int
7945 main (void)
7946 {
7947
7948 ;
7949 return 0;
7950 }
7951 _ACEOF
7952 if ac_fn_c_try_link "$LINENO"
7953 then :
7954 eval $cacheid=yes
7955 else case e in #(
7956 e) eval $cacheid=no ;;
7957 esac
7958 fi
7959 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7960 conftest$ac_exeext conftest.$ac_ext ;;
7961 esac
7962 fi
7963
7964
7965 CFLAGS="$xorg_testset_save_CFLAGS"
7966
7967 eval supported=\$$cacheid
7968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7969 printf "%s\n" "$supported" >&6; }
7970 if test "$supported" = "yes" ; then
7971 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7972 found="yes"
7973 fi
7974 fi
7975
7976 if test $found = "no" ; then
7977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7979 fi
7980
7981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7983 fi
7984
7985 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7986
7987 { 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
7988 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7989 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7990 if eval test \${$cacheid+y}
7991 then :
7992 printf %s "(cached) " >&6
7993 else case e in #(
7994 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7995 /* end confdefs.h. */
7996 int i;
7997 int
7998 main (void)
7999 {
8000
8001 ;
8002 return 0;
8003 }
8004 _ACEOF
8005 if ac_fn_c_try_link "$LINENO"
8006 then :
8007 eval $cacheid=yes
8008 else case e in #(
8009 e) eval $cacheid=no ;;
8010 esac
8011 fi
8012 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8013 conftest$ac_exeext conftest.$ac_ext ;;
8014 esac
8015 fi
8016
8017
8018 CFLAGS="$xorg_testset_save_CFLAGS"
8019
8020 eval supported=\$$cacheid
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8022 printf "%s\n" "$supported" >&6; }
8023 if test "$supported" = "yes" ; then
8024 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
8025 found="yes"
8026 fi
8027 fi
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043 xorg_testset_save_CFLAGS="$CFLAGS"
8044
8045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8048 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8049 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8050 then :
8051 printf %s "(cached) " >&6
8052 else case e in #(
8053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h. */
8055 int i;
8056 _ACEOF
8057 if ac_fn_c_try_compile "$LINENO"
8058 then :
8059 xorg_cv_cc_flag_unknown_warning_option=yes
8060 else case e in #(
8061 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8062 esac
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8065 esac
8066 fi
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8068 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8070 CFLAGS="$xorg_testset_save_CFLAGS"
8071 fi
8072
8073 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8076 fi
8077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8079 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8080 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8081 then :
8082 printf %s "(cached) " >&6
8083 else case e in #(
8084 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8085 /* end confdefs.h. */
8086 int i;
8087 _ACEOF
8088 if ac_fn_c_try_compile "$LINENO"
8089 then :
8090 xorg_cv_cc_flag_unused_command_line_argument=yes
8091 else case e in #(
8092 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8093 esac
8094 fi
8095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8096 esac
8097 fi
8098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8099 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8101 CFLAGS="$xorg_testset_save_CFLAGS"
8102 fi
8103
8104 found="no"
8105
8106 if test $found = "no" ; then
8107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8109 fi
8110
8111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8113 fi
8114
8115 CFLAGS="$CFLAGS -Werror=nonnull"
8116
8117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
8118 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
8119 cacheid=xorg_cv_cc_flag__Werror_nonnull
8120 if eval test \${$cacheid+y}
8121 then :
8122 printf %s "(cached) " >&6
8123 else case e in #(
8124 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8125 /* end confdefs.h. */
8126 int i;
8127 int
8128 main (void)
8129 {
8130
8131 ;
8132 return 0;
8133 }
8134 _ACEOF
8135 if ac_fn_c_try_link "$LINENO"
8136 then :
8137 eval $cacheid=yes
8138 else case e in #(
8139 e) eval $cacheid=no ;;
8140 esac
8141 fi
8142 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8143 conftest$ac_exeext conftest.$ac_ext ;;
8144 esac
8145 fi
8146
8147
8148 CFLAGS="$xorg_testset_save_CFLAGS"
8149
8150 eval supported=\$$cacheid
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8152 printf "%s\n" "$supported" >&6; }
8153 if test "$supported" = "yes" ; then
8154 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
8155 found="yes"
8156 fi
8157 fi
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173 xorg_testset_save_CFLAGS="$CFLAGS"
8174
8175 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8178 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8179 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8180 then :
8181 printf %s "(cached) " >&6
8182 else case e in #(
8183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8184 /* end confdefs.h. */
8185 int i;
8186 _ACEOF
8187 if ac_fn_c_try_compile "$LINENO"
8188 then :
8189 xorg_cv_cc_flag_unknown_warning_option=yes
8190 else case e in #(
8191 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8192 esac
8193 fi
8194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8195 esac
8196 fi
8197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8198 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8199 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8200 CFLAGS="$xorg_testset_save_CFLAGS"
8201 fi
8202
8203 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8204 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8205 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8206 fi
8207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8209 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8210 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8218 if ac_fn_c_try_compile "$LINENO"
8219 then :
8220 xorg_cv_cc_flag_unused_command_line_argument=yes
8221 else case e in #(
8222 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8223 esac
8224 fi
8225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8226 esac
8227 fi
8228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8229 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8231 CFLAGS="$xorg_testset_save_CFLAGS"
8232 fi
8233
8234 found="no"
8235
8236 if test $found = "no" ; then
8237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8239 fi
8240
8241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8243 fi
8244
8245 CFLAGS="$CFLAGS -Werror=init-self"
8246
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
8248 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
8249 cacheid=xorg_cv_cc_flag__Werror_init_self
8250 if eval test \${$cacheid+y}
8251 then :
8252 printf %s "(cached) " >&6
8253 else case e in #(
8254 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8256 int i;
8257 int
8258 main (void)
8259 {
8260
8261 ;
8262 return 0;
8263 }
8264 _ACEOF
8265 if ac_fn_c_try_link "$LINENO"
8266 then :
8267 eval $cacheid=yes
8268 else case e in #(
8269 e) eval $cacheid=no ;;
8270 esac
8271 fi
8272 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8273 conftest$ac_exeext conftest.$ac_ext ;;
8274 esac
8275 fi
8276
8277
8278 CFLAGS="$xorg_testset_save_CFLAGS"
8279
8280 eval supported=\$$cacheid
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8282 printf "%s\n" "$supported" >&6; }
8283 if test "$supported" = "yes" ; then
8284 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
8285 found="yes"
8286 fi
8287 fi
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303 xorg_testset_save_CFLAGS="$CFLAGS"
8304
8305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8308 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8309 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8310 then :
8311 printf %s "(cached) " >&6
8312 else case e in #(
8313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h. */
8315 int i;
8316 _ACEOF
8317 if ac_fn_c_try_compile "$LINENO"
8318 then :
8319 xorg_cv_cc_flag_unknown_warning_option=yes
8320 else case e in #(
8321 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8322 esac
8323 fi
8324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8325 esac
8326 fi
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8328 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8329 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8330 CFLAGS="$xorg_testset_save_CFLAGS"
8331 fi
8332
8333 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8336 fi
8337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8339 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8340 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8341 then :
8342 printf %s "(cached) " >&6
8343 else case e in #(
8344 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8345 /* end confdefs.h. */
8346 int i;
8347 _ACEOF
8348 if ac_fn_c_try_compile "$LINENO"
8349 then :
8350 xorg_cv_cc_flag_unused_command_line_argument=yes
8351 else case e in #(
8352 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8353 esac
8354 fi
8355 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8356 esac
8357 fi
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8359 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8360 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8361 CFLAGS="$xorg_testset_save_CFLAGS"
8362 fi
8363
8364 found="no"
8365
8366 if test $found = "no" ; then
8367 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8368 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8369 fi
8370
8371 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8373 fi
8374
8375 CFLAGS="$CFLAGS -Werror=main"
8376
8377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
8378 printf %s "checking if $CC supports -Werror=main... " >&6; }
8379 cacheid=xorg_cv_cc_flag__Werror_main
8380 if eval test \${$cacheid+y}
8381 then :
8382 printf %s "(cached) " >&6
8383 else case e in #(
8384 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8385 /* end confdefs.h. */
8386 int i;
8387 int
8388 main (void)
8389 {
8390
8391 ;
8392 return 0;
8393 }
8394 _ACEOF
8395 if ac_fn_c_try_link "$LINENO"
8396 then :
8397 eval $cacheid=yes
8398 else case e in #(
8399 e) eval $cacheid=no ;;
8400 esac
8401 fi
8402 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8403 conftest$ac_exeext conftest.$ac_ext ;;
8404 esac
8405 fi
8406
8407
8408 CFLAGS="$xorg_testset_save_CFLAGS"
8409
8410 eval supported=\$$cacheid
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8412 printf "%s\n" "$supported" >&6; }
8413 if test "$supported" = "yes" ; then
8414 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
8415 found="yes"
8416 fi
8417 fi
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433 xorg_testset_save_CFLAGS="$CFLAGS"
8434
8435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8438 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8439 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8440 then :
8441 printf %s "(cached) " >&6
8442 else case e in #(
8443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8445 int i;
8446 _ACEOF
8447 if ac_fn_c_try_compile "$LINENO"
8448 then :
8449 xorg_cv_cc_flag_unknown_warning_option=yes
8450 else case e in #(
8451 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8452 esac
8453 fi
8454 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8455 esac
8456 fi
8457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8458 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8459 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8460 CFLAGS="$xorg_testset_save_CFLAGS"
8461 fi
8462
8463 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8466 fi
8467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8469 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8470 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8471 then :
8472 printf %s "(cached) " >&6
8473 else case e in #(
8474 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8476 int i;
8477 _ACEOF
8478 if ac_fn_c_try_compile "$LINENO"
8479 then :
8480 xorg_cv_cc_flag_unused_command_line_argument=yes
8481 else case e in #(
8482 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8483 esac
8484 fi
8485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8486 esac
8487 fi
8488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8489 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8491 CFLAGS="$xorg_testset_save_CFLAGS"
8492 fi
8493
8494 found="no"
8495
8496 if test $found = "no" ; then
8497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8499 fi
8500
8501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8503 fi
8504
8505 CFLAGS="$CFLAGS -Werror=missing-braces"
8506
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
8508 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
8509 cacheid=xorg_cv_cc_flag__Werror_missing_braces
8510 if eval test \${$cacheid+y}
8511 then :
8512 printf %s "(cached) " >&6
8513 else case e in #(
8514 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h. */
8516 int i;
8517 int
8518 main (void)
8519 {
8520
8521 ;
8522 return 0;
8523 }
8524 _ACEOF
8525 if ac_fn_c_try_link "$LINENO"
8526 then :
8527 eval $cacheid=yes
8528 else case e in #(
8529 e) eval $cacheid=no ;;
8530 esac
8531 fi
8532 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8533 conftest$ac_exeext conftest.$ac_ext ;;
8534 esac
8535 fi
8536
8537
8538 CFLAGS="$xorg_testset_save_CFLAGS"
8539
8540 eval supported=\$$cacheid
8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8542 printf "%s\n" "$supported" >&6; }
8543 if test "$supported" = "yes" ; then
8544 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
8545 found="yes"
8546 fi
8547 fi
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563 xorg_testset_save_CFLAGS="$CFLAGS"
8564
8565 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8566 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8568 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8569 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8570 then :
8571 printf %s "(cached) " >&6
8572 else case e in #(
8573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574 /* end confdefs.h. */
8575 int i;
8576 _ACEOF
8577 if ac_fn_c_try_compile "$LINENO"
8578 then :
8579 xorg_cv_cc_flag_unknown_warning_option=yes
8580 else case e in #(
8581 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8582 esac
8583 fi
8584 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8585 esac
8586 fi
8587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8588 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8590 CFLAGS="$xorg_testset_save_CFLAGS"
8591 fi
8592
8593 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8596 fi
8597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8599 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8600 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8601 then :
8602 printf %s "(cached) " >&6
8603 else case e in #(
8604 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 int i;
8607 _ACEOF
8608 if ac_fn_c_try_compile "$LINENO"
8609 then :
8610 xorg_cv_cc_flag_unused_command_line_argument=yes
8611 else case e in #(
8612 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8613 esac
8614 fi
8615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8616 esac
8617 fi
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8619 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8620 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8621 CFLAGS="$xorg_testset_save_CFLAGS"
8622 fi
8623
8624 found="no"
8625
8626 if test $found = "no" ; then
8627 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8628 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8629 fi
8630
8631 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8633 fi
8634
8635 CFLAGS="$CFLAGS -Werror=sequence-point"
8636
8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
8638 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
8639 cacheid=xorg_cv_cc_flag__Werror_sequence_point
8640 if eval test \${$cacheid+y}
8641 then :
8642 printf %s "(cached) " >&6
8643 else case e in #(
8644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8645 /* end confdefs.h. */
8646 int i;
8647 int
8648 main (void)
8649 {
8650
8651 ;
8652 return 0;
8653 }
8654 _ACEOF
8655 if ac_fn_c_try_link "$LINENO"
8656 then :
8657 eval $cacheid=yes
8658 else case e in #(
8659 e) eval $cacheid=no ;;
8660 esac
8661 fi
8662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8663 conftest$ac_exeext conftest.$ac_ext ;;
8664 esac
8665 fi
8666
8667
8668 CFLAGS="$xorg_testset_save_CFLAGS"
8669
8670 eval supported=\$$cacheid
8671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8672 printf "%s\n" "$supported" >&6; }
8673 if test "$supported" = "yes" ; then
8674 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
8675 found="yes"
8676 fi
8677 fi
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693 xorg_testset_save_CFLAGS="$CFLAGS"
8694
8695 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8698 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8699 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8700 then :
8701 printf %s "(cached) " >&6
8702 else case e in #(
8703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704 /* end confdefs.h. */
8705 int i;
8706 _ACEOF
8707 if ac_fn_c_try_compile "$LINENO"
8708 then :
8709 xorg_cv_cc_flag_unknown_warning_option=yes
8710 else case e in #(
8711 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8712 esac
8713 fi
8714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8715 esac
8716 fi
8717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8718 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8719 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8720 CFLAGS="$xorg_testset_save_CFLAGS"
8721 fi
8722
8723 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8726 fi
8727 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8729 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8730 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8731 then :
8732 printf %s "(cached) " >&6
8733 else case e in #(
8734 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8735 /* end confdefs.h. */
8736 int i;
8737 _ACEOF
8738 if ac_fn_c_try_compile "$LINENO"
8739 then :
8740 xorg_cv_cc_flag_unused_command_line_argument=yes
8741 else case e in #(
8742 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8743 esac
8744 fi
8745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8746 esac
8747 fi
8748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8749 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8751 CFLAGS="$xorg_testset_save_CFLAGS"
8752 fi
8753
8754 found="no"
8755
8756 if test $found = "no" ; then
8757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8759 fi
8760
8761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8763 fi
8764
8765 CFLAGS="$CFLAGS -Werror=return-type"
8766
8767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8768 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8769 cacheid=xorg_cv_cc_flag__Werror_return_type
8770 if eval test \${$cacheid+y}
8771 then :
8772 printf %s "(cached) " >&6
8773 else case e in #(
8774 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8776 int i;
8777 int
8778 main (void)
8779 {
8780
8781 ;
8782 return 0;
8783 }
8784 _ACEOF
8785 if ac_fn_c_try_link "$LINENO"
8786 then :
8787 eval $cacheid=yes
8788 else case e in #(
8789 e) eval $cacheid=no ;;
8790 esac
8791 fi
8792 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8793 conftest$ac_exeext conftest.$ac_ext ;;
8794 esac
8795 fi
8796
8797
8798 CFLAGS="$xorg_testset_save_CFLAGS"
8799
8800 eval supported=\$$cacheid
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8802 printf "%s\n" "$supported" >&6; }
8803 if test "$supported" = "yes" ; then
8804 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8805 found="yes"
8806 fi
8807 fi
8808
8809 if test $found = "no" ; then
8810 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8812 fi
8813
8814 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8815 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8816 fi
8817
8818 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8819
8820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8821 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8822 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8823 if eval test \${$cacheid+y}
8824 then :
8825 printf %s "(cached) " >&6
8826 else case e in #(
8827 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8828 /* end confdefs.h. */
8829 int i;
8830 int
8831 main (void)
8832 {
8833
8834 ;
8835 return 0;
8836 }
8837 _ACEOF
8838 if ac_fn_c_try_link "$LINENO"
8839 then :
8840 eval $cacheid=yes
8841 else case e in #(
8842 e) eval $cacheid=no ;;
8843 esac
8844 fi
8845 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8846 conftest$ac_exeext conftest.$ac_ext ;;
8847 esac
8848 fi
8849
8850
8851 CFLAGS="$xorg_testset_save_CFLAGS"
8852
8853 eval supported=\$$cacheid
8854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8855 printf "%s\n" "$supported" >&6; }
8856 if test "$supported" = "yes" ; then
8857 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8858 found="yes"
8859 fi
8860 fi
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876 xorg_testset_save_CFLAGS="$CFLAGS"
8877
8878 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8881 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8882 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8883 then :
8884 printf %s "(cached) " >&6
8885 else case e in #(
8886 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8887 /* end confdefs.h. */
8888 int i;
8889 _ACEOF
8890 if ac_fn_c_try_compile "$LINENO"
8891 then :
8892 xorg_cv_cc_flag_unknown_warning_option=yes
8893 else case e in #(
8894 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
8895 esac
8896 fi
8897 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8898 esac
8899 fi
8900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8901 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8903 CFLAGS="$xorg_testset_save_CFLAGS"
8904 fi
8905
8906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8909 fi
8910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8912 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8913 if test ${xorg_cv_cc_flag_unused_command_line_argument+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 _ACEOF
8921 if ac_fn_c_try_compile "$LINENO"
8922 then :
8923 xorg_cv_cc_flag_unused_command_line_argument=yes
8924 else case e in #(
8925 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
8926 esac
8927 fi
8928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8929 esac
8930 fi
8931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8932 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8933 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8934 CFLAGS="$xorg_testset_save_CFLAGS"
8935 fi
8936
8937 found="no"
8938
8939 if test $found = "no" ; then
8940 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8941 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8942 fi
8943
8944 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8945 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8946 fi
8947
8948 CFLAGS="$CFLAGS -Werror=trigraphs"
8949
8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8951 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8952 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8953 if eval test \${$cacheid+y}
8954 then :
8955 printf %s "(cached) " >&6
8956 else case e in #(
8957 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8958 /* end confdefs.h. */
8959 int i;
8960 int
8961 main (void)
8962 {
8963
8964 ;
8965 return 0;
8966 }
8967 _ACEOF
8968 if ac_fn_c_try_link "$LINENO"
8969 then :
8970 eval $cacheid=yes
8971 else case e in #(
8972 e) eval $cacheid=no ;;
8973 esac
8974 fi
8975 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8976 conftest$ac_exeext conftest.$ac_ext ;;
8977 esac
8978 fi
8979
8980
8981 CFLAGS="$xorg_testset_save_CFLAGS"
8982
8983 eval supported=\$$cacheid
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8985 printf "%s\n" "$supported" >&6; }
8986 if test "$supported" = "yes" ; then
8987 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8988 found="yes"
8989 fi
8990 fi
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006 xorg_testset_save_CFLAGS="$CFLAGS"
9007
9008 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9011 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9012 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9013 then :
9014 printf %s "(cached) " >&6
9015 else case e in #(
9016 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9017 /* end confdefs.h. */
9018 int i;
9019 _ACEOF
9020 if ac_fn_c_try_compile "$LINENO"
9021 then :
9022 xorg_cv_cc_flag_unknown_warning_option=yes
9023 else case e in #(
9024 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9025 esac
9026 fi
9027 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9028 esac
9029 fi
9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9031 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9032 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9033 CFLAGS="$xorg_testset_save_CFLAGS"
9034 fi
9035
9036 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9037 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9038 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9039 fi
9040 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9042 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9043 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9044 then :
9045 printf %s "(cached) " >&6
9046 else case e in #(
9047 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9049 int i;
9050 _ACEOF
9051 if ac_fn_c_try_compile "$LINENO"
9052 then :
9053 xorg_cv_cc_flag_unused_command_line_argument=yes
9054 else case e in #(
9055 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9056 esac
9057 fi
9058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9059 esac
9060 fi
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9062 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9063 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9064 CFLAGS="$xorg_testset_save_CFLAGS"
9065 fi
9066
9067 found="no"
9068
9069 if test $found = "no" ; then
9070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9072 fi
9073
9074 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9076 fi
9077
9078 CFLAGS="$CFLAGS -Werror=array-bounds"
9079
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
9081 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
9082 cacheid=xorg_cv_cc_flag__Werror_array_bounds
9083 if eval test \${$cacheid+y}
9084 then :
9085 printf %s "(cached) " >&6
9086 else case e in #(
9087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h. */
9089 int i;
9090 int
9091 main (void)
9092 {
9093
9094 ;
9095 return 0;
9096 }
9097 _ACEOF
9098 if ac_fn_c_try_link "$LINENO"
9099 then :
9100 eval $cacheid=yes
9101 else case e in #(
9102 e) eval $cacheid=no ;;
9103 esac
9104 fi
9105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9106 conftest$ac_exeext conftest.$ac_ext ;;
9107 esac
9108 fi
9109
9110
9111 CFLAGS="$xorg_testset_save_CFLAGS"
9112
9113 eval supported=\$$cacheid
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9115 printf "%s\n" "$supported" >&6; }
9116 if test "$supported" = "yes" ; then
9117 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
9118 found="yes"
9119 fi
9120 fi
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136 xorg_testset_save_CFLAGS="$CFLAGS"
9137
9138 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9141 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9142 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9143 then :
9144 printf %s "(cached) " >&6
9145 else case e in #(
9146 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147 /* end confdefs.h. */
9148 int i;
9149 _ACEOF
9150 if ac_fn_c_try_compile "$LINENO"
9151 then :
9152 xorg_cv_cc_flag_unknown_warning_option=yes
9153 else case e in #(
9154 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9155 esac
9156 fi
9157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9158 esac
9159 fi
9160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9161 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9163 CFLAGS="$xorg_testset_save_CFLAGS"
9164 fi
9165
9166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9169 fi
9170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9172 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9173 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9174 then :
9175 printf %s "(cached) " >&6
9176 else case e in #(
9177 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9179 int i;
9180 _ACEOF
9181 if ac_fn_c_try_compile "$LINENO"
9182 then :
9183 xorg_cv_cc_flag_unused_command_line_argument=yes
9184 else case e in #(
9185 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9186 esac
9187 fi
9188 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9189 esac
9190 fi
9191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9192 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9193 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9194 CFLAGS="$xorg_testset_save_CFLAGS"
9195 fi
9196
9197 found="no"
9198
9199 if test $found = "no" ; then
9200 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9202 fi
9203
9204 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9205 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9206 fi
9207
9208 CFLAGS="$CFLAGS -Werror=write-strings"
9209
9210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
9211 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
9212 cacheid=xorg_cv_cc_flag__Werror_write_strings
9213 if eval test \${$cacheid+y}
9214 then :
9215 printf %s "(cached) " >&6
9216 else case e in #(
9217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219 int i;
9220 int
9221 main (void)
9222 {
9223
9224 ;
9225 return 0;
9226 }
9227 _ACEOF
9228 if ac_fn_c_try_link "$LINENO"
9229 then :
9230 eval $cacheid=yes
9231 else case e in #(
9232 e) eval $cacheid=no ;;
9233 esac
9234 fi
9235 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9236 conftest$ac_exeext conftest.$ac_ext ;;
9237 esac
9238 fi
9239
9240
9241 CFLAGS="$xorg_testset_save_CFLAGS"
9242
9243 eval supported=\$$cacheid
9244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9245 printf "%s\n" "$supported" >&6; }
9246 if test "$supported" = "yes" ; then
9247 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
9248 found="yes"
9249 fi
9250 fi
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266 xorg_testset_save_CFLAGS="$CFLAGS"
9267
9268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9271 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9272 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9273 then :
9274 printf %s "(cached) " >&6
9275 else case e in #(
9276 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9277 /* end confdefs.h. */
9278 int i;
9279 _ACEOF
9280 if ac_fn_c_try_compile "$LINENO"
9281 then :
9282 xorg_cv_cc_flag_unknown_warning_option=yes
9283 else case e in #(
9284 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9285 esac
9286 fi
9287 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9288 esac
9289 fi
9290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9291 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9292 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9293 CFLAGS="$xorg_testset_save_CFLAGS"
9294 fi
9295
9296 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9299 fi
9300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9302 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9303 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9304 then :
9305 printf %s "(cached) " >&6
9306 else case e in #(
9307 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9308 /* end confdefs.h. */
9309 int i;
9310 _ACEOF
9311 if ac_fn_c_try_compile "$LINENO"
9312 then :
9313 xorg_cv_cc_flag_unused_command_line_argument=yes
9314 else case e in #(
9315 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9316 esac
9317 fi
9318 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9319 esac
9320 fi
9321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9322 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9324 CFLAGS="$xorg_testset_save_CFLAGS"
9325 fi
9326
9327 found="no"
9328
9329 if test $found = "no" ; then
9330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9332 fi
9333
9334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9336 fi
9337
9338 CFLAGS="$CFLAGS -Werror=address"
9339
9340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
9341 printf %s "checking if $CC supports -Werror=address... " >&6; }
9342 cacheid=xorg_cv_cc_flag__Werror_address
9343 if eval test \${$cacheid+y}
9344 then :
9345 printf %s "(cached) " >&6
9346 else case e in #(
9347 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9349 int i;
9350 int
9351 main (void)
9352 {
9353
9354 ;
9355 return 0;
9356 }
9357 _ACEOF
9358 if ac_fn_c_try_link "$LINENO"
9359 then :
9360 eval $cacheid=yes
9361 else case e in #(
9362 e) eval $cacheid=no ;;
9363 esac
9364 fi
9365 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9366 conftest$ac_exeext conftest.$ac_ext ;;
9367 esac
9368 fi
9369
9370
9371 CFLAGS="$xorg_testset_save_CFLAGS"
9372
9373 eval supported=\$$cacheid
9374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9375 printf "%s\n" "$supported" >&6; }
9376 if test "$supported" = "yes" ; then
9377 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
9378 found="yes"
9379 fi
9380 fi
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396 xorg_testset_save_CFLAGS="$CFLAGS"
9397
9398 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9399 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9401 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9402 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9403 then :
9404 printf %s "(cached) " >&6
9405 else case e in #(
9406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9407 /* end confdefs.h. */
9408 int i;
9409 _ACEOF
9410 if ac_fn_c_try_compile "$LINENO"
9411 then :
9412 xorg_cv_cc_flag_unknown_warning_option=yes
9413 else case e in #(
9414 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9415 esac
9416 fi
9417 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9418 esac
9419 fi
9420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9421 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9423 CFLAGS="$xorg_testset_save_CFLAGS"
9424 fi
9425
9426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9429 fi
9430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9432 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9433 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9434 then :
9435 printf %s "(cached) " >&6
9436 else case e in #(
9437 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9438 /* end confdefs.h. */
9439 int i;
9440 _ACEOF
9441 if ac_fn_c_try_compile "$LINENO"
9442 then :
9443 xorg_cv_cc_flag_unused_command_line_argument=yes
9444 else case e in #(
9445 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9446 esac
9447 fi
9448 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9449 esac
9450 fi
9451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9452 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9453 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9454 CFLAGS="$xorg_testset_save_CFLAGS"
9455 fi
9456
9457 found="no"
9458
9459 if test $found = "no" ; then
9460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9462 fi
9463
9464 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9465 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9466 fi
9467
9468 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
9469
9470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
9471 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
9472 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
9473 if eval test \${$cacheid+y}
9474 then :
9475 printf %s "(cached) " >&6
9476 else case e in #(
9477 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9479 int i;
9480 int
9481 main (void)
9482 {
9483
9484 ;
9485 return 0;
9486 }
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"
9489 then :
9490 eval $cacheid=yes
9491 else case e in #(
9492 e) eval $cacheid=no ;;
9493 esac
9494 fi
9495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9496 conftest$ac_exeext conftest.$ac_ext ;;
9497 esac
9498 fi
9499
9500
9501 CFLAGS="$xorg_testset_save_CFLAGS"
9502
9503 eval supported=\$$cacheid
9504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9505 printf "%s\n" "$supported" >&6; }
9506 if test "$supported" = "yes" ; then
9507 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
9508 found="yes"
9509 fi
9510 fi
9511
9512 if test $found = "no" ; then
9513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9515 fi
9516
9517 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9518 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9519 fi
9520
9521 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9522
9523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
9524 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
9525 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
9526 if eval test \${$cacheid+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 int
9534 main (void)
9535 {
9536
9537 ;
9538 return 0;
9539 }
9540 _ACEOF
9541 if ac_fn_c_try_link "$LINENO"
9542 then :
9543 eval $cacheid=yes
9544 else case e in #(
9545 e) eval $cacheid=no ;;
9546 esac
9547 fi
9548 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9549 conftest$ac_exeext conftest.$ac_ext ;;
9550 esac
9551 fi
9552
9553
9554 CFLAGS="$xorg_testset_save_CFLAGS"
9555
9556 eval supported=\$$cacheid
9557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9558 printf "%s\n" "$supported" >&6; }
9559 if test "$supported" = "yes" ; then
9560 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
9561 found="yes"
9562 fi
9563 fi
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579 xorg_testset_save_CFLAGS="$CFLAGS"
9580
9581 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9584 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9585 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9586 then :
9587 printf %s "(cached) " >&6
9588 else case e in #(
9589 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590 /* end confdefs.h. */
9591 int i;
9592 _ACEOF
9593 if ac_fn_c_try_compile "$LINENO"
9594 then :
9595 xorg_cv_cc_flag_unknown_warning_option=yes
9596 else case e in #(
9597 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9598 esac
9599 fi
9600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9601 esac
9602 fi
9603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9604 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9605 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9606 CFLAGS="$xorg_testset_save_CFLAGS"
9607 fi
9608
9609 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9610 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9611 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9612 fi
9613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9615 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9616 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9617 then :
9618 printf %s "(cached) " >&6
9619 else case e in #(
9620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9621 /* end confdefs.h. */
9622 int i;
9623 _ACEOF
9624 if ac_fn_c_try_compile "$LINENO"
9625 then :
9626 xorg_cv_cc_flag_unused_command_line_argument=yes
9627 else case e in #(
9628 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9629 esac
9630 fi
9631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9632 esac
9633 fi
9634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9635 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9637 CFLAGS="$xorg_testset_save_CFLAGS"
9638 fi
9639
9640 found="no"
9641
9642 if test $found = "no" ; then
9643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9645 fi
9646
9647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9649 fi
9650
9651 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
9652
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
9654 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
9655 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
9656 if eval test \${$cacheid+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 int
9664 main (void)
9665 {
9666
9667 ;
9668 return 0;
9669 }
9670 _ACEOF
9671 if ac_fn_c_try_link "$LINENO"
9672 then :
9673 eval $cacheid=yes
9674 else case e in #(
9675 e) eval $cacheid=no ;;
9676 esac
9677 fi
9678 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9679 conftest$ac_exeext conftest.$ac_ext ;;
9680 esac
9681 fi
9682
9683
9684 CFLAGS="$xorg_testset_save_CFLAGS"
9685
9686 eval supported=\$$cacheid
9687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9688 printf "%s\n" "$supported" >&6; }
9689 if test "$supported" = "yes" ; then
9690 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
9691 found="yes"
9692 fi
9693 fi
9694
9695 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
9696 else
9697 { 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
9698 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;}
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712 xorg_testset_save_CFLAGS="$CFLAGS"
9713
9714 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9717 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9718 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9719 then :
9720 printf %s "(cached) " >&6
9721 else case e in #(
9722 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h. */
9724 int i;
9725 _ACEOF
9726 if ac_fn_c_try_compile "$LINENO"
9727 then :
9728 xorg_cv_cc_flag_unknown_warning_option=yes
9729 else case e in #(
9730 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9731 esac
9732 fi
9733 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9734 esac
9735 fi
9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9737 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9738 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9739 CFLAGS="$xorg_testset_save_CFLAGS"
9740 fi
9741
9742 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9743 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9744 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9745 fi
9746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9748 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9749 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9750 then :
9751 printf %s "(cached) " >&6
9752 else case e in #(
9753 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9755 int i;
9756 _ACEOF
9757 if ac_fn_c_try_compile "$LINENO"
9758 then :
9759 xorg_cv_cc_flag_unused_command_line_argument=yes
9760 else case e in #(
9761 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9762 esac
9763 fi
9764 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9765 esac
9766 fi
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9768 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9770 CFLAGS="$xorg_testset_save_CFLAGS"
9771 fi
9772
9773 found="no"
9774
9775 if test $found = "no" ; then
9776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9778 fi
9779
9780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9782 fi
9783
9784 CFLAGS="$CFLAGS -Wimplicit"
9785
9786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
9787 printf %s "checking if $CC supports -Wimplicit... " >&6; }
9788 cacheid=xorg_cv_cc_flag__Wimplicit
9789 if eval test \${$cacheid+y}
9790 then :
9791 printf %s "(cached) " >&6
9792 else case e in #(
9793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9794 /* end confdefs.h. */
9795 int i;
9796 int
9797 main (void)
9798 {
9799
9800 ;
9801 return 0;
9802 }
9803 _ACEOF
9804 if ac_fn_c_try_link "$LINENO"
9805 then :
9806 eval $cacheid=yes
9807 else case e in #(
9808 e) eval $cacheid=no ;;
9809 esac
9810 fi
9811 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9812 conftest$ac_exeext conftest.$ac_ext ;;
9813 esac
9814 fi
9815
9816
9817 CFLAGS="$xorg_testset_save_CFLAGS"
9818
9819 eval supported=\$$cacheid
9820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9821 printf "%s\n" "$supported" >&6; }
9822 if test "$supported" = "yes" ; then
9823 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9824 found="yes"
9825 fi
9826 fi
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842 xorg_testset_save_CFLAGS="$CFLAGS"
9843
9844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9847 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9848 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9849 then :
9850 printf %s "(cached) " >&6
9851 else case e in #(
9852 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853 /* end confdefs.h. */
9854 int i;
9855 _ACEOF
9856 if ac_fn_c_try_compile "$LINENO"
9857 then :
9858 xorg_cv_cc_flag_unknown_warning_option=yes
9859 else case e in #(
9860 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9861 esac
9862 fi
9863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9864 esac
9865 fi
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9867 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9868 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9869 CFLAGS="$xorg_testset_save_CFLAGS"
9870 fi
9871
9872 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9873 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9874 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9875 fi
9876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9878 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9879 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9880 then :
9881 printf %s "(cached) " >&6
9882 else case e in #(
9883 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9885 int i;
9886 _ACEOF
9887 if ac_fn_c_try_compile "$LINENO"
9888 then :
9889 xorg_cv_cc_flag_unused_command_line_argument=yes
9890 else case e in #(
9891 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
9892 esac
9893 fi
9894 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9895 esac
9896 fi
9897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9898 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9899 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9900 CFLAGS="$xorg_testset_save_CFLAGS"
9901 fi
9902
9903 found="no"
9904
9905 if test $found = "no" ; then
9906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9907 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9908 fi
9909
9910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9912 fi
9913
9914 CFLAGS="$CFLAGS -Wnonnull"
9915
9916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9917 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9918 cacheid=xorg_cv_cc_flag__Wnonnull
9919 if eval test \${$cacheid+y}
9920 then :
9921 printf %s "(cached) " >&6
9922 else case e in #(
9923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9925 int i;
9926 int
9927 main (void)
9928 {
9929
9930 ;
9931 return 0;
9932 }
9933 _ACEOF
9934 if ac_fn_c_try_link "$LINENO"
9935 then :
9936 eval $cacheid=yes
9937 else case e in #(
9938 e) eval $cacheid=no ;;
9939 esac
9940 fi
9941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9942 conftest$ac_exeext conftest.$ac_ext ;;
9943 esac
9944 fi
9945
9946
9947 CFLAGS="$xorg_testset_save_CFLAGS"
9948
9949 eval supported=\$$cacheid
9950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9951 printf "%s\n" "$supported" >&6; }
9952 if test "$supported" = "yes" ; then
9953 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9954 found="yes"
9955 fi
9956 fi
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972 xorg_testset_save_CFLAGS="$CFLAGS"
9973
9974 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9977 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9978 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9979 then :
9980 printf %s "(cached) " >&6
9981 else case e in #(
9982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983 /* end confdefs.h. */
9984 int i;
9985 _ACEOF
9986 if ac_fn_c_try_compile "$LINENO"
9987 then :
9988 xorg_cv_cc_flag_unknown_warning_option=yes
9989 else case e in #(
9990 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
9991 esac
9992 fi
9993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9994 esac
9995 fi
9996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9997 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9998 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9999 CFLAGS="$xorg_testset_save_CFLAGS"
10000 fi
10001
10002 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10005 fi
10006 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10008 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10009 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10010 then :
10011 printf %s "(cached) " >&6
10012 else case e in #(
10013 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10015 int i;
10016 _ACEOF
10017 if ac_fn_c_try_compile "$LINENO"
10018 then :
10019 xorg_cv_cc_flag_unused_command_line_argument=yes
10020 else case e in #(
10021 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10022 esac
10023 fi
10024 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10025 esac
10026 fi
10027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10028 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10029 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10030 CFLAGS="$xorg_testset_save_CFLAGS"
10031 fi
10032
10033 found="no"
10034
10035 if test $found = "no" ; then
10036 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10038 fi
10039
10040 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10041 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10042 fi
10043
10044 CFLAGS="$CFLAGS -Winit-self"
10045
10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
10047 printf %s "checking if $CC supports -Winit-self... " >&6; }
10048 cacheid=xorg_cv_cc_flag__Winit_self
10049 if eval test \${$cacheid+y}
10050 then :
10051 printf %s "(cached) " >&6
10052 else case e in #(
10053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054 /* end confdefs.h. */
10055 int i;
10056 int
10057 main (void)
10058 {
10059
10060 ;
10061 return 0;
10062 }
10063 _ACEOF
10064 if ac_fn_c_try_link "$LINENO"
10065 then :
10066 eval $cacheid=yes
10067 else case e in #(
10068 e) eval $cacheid=no ;;
10069 esac
10070 fi
10071 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10072 conftest$ac_exeext conftest.$ac_ext ;;
10073 esac
10074 fi
10075
10076
10077 CFLAGS="$xorg_testset_save_CFLAGS"
10078
10079 eval supported=\$$cacheid
10080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10081 printf "%s\n" "$supported" >&6; }
10082 if test "$supported" = "yes" ; then
10083 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
10084 found="yes"
10085 fi
10086 fi
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102 xorg_testset_save_CFLAGS="$CFLAGS"
10103
10104 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10105 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10107 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10108 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10109 then :
10110 printf %s "(cached) " >&6
10111 else case e in #(
10112 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10113 /* end confdefs.h. */
10114 int i;
10115 _ACEOF
10116 if ac_fn_c_try_compile "$LINENO"
10117 then :
10118 xorg_cv_cc_flag_unknown_warning_option=yes
10119 else case e in #(
10120 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10121 esac
10122 fi
10123 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10124 esac
10125 fi
10126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10127 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10128 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10129 CFLAGS="$xorg_testset_save_CFLAGS"
10130 fi
10131
10132 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10133 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10135 fi
10136 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10138 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10139 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10140 then :
10141 printf %s "(cached) " >&6
10142 else case e in #(
10143 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10144 /* end confdefs.h. */
10145 int i;
10146 _ACEOF
10147 if ac_fn_c_try_compile "$LINENO"
10148 then :
10149 xorg_cv_cc_flag_unused_command_line_argument=yes
10150 else case e in #(
10151 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10152 esac
10153 fi
10154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10155 esac
10156 fi
10157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10158 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10159 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10160 CFLAGS="$xorg_testset_save_CFLAGS"
10161 fi
10162
10163 found="no"
10164
10165 if test $found = "no" ; then
10166 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10168 fi
10169
10170 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10172 fi
10173
10174 CFLAGS="$CFLAGS -Wmain"
10175
10176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
10177 printf %s "checking if $CC supports -Wmain... " >&6; }
10178 cacheid=xorg_cv_cc_flag__Wmain
10179 if eval test \${$cacheid+y}
10180 then :
10181 printf %s "(cached) " >&6
10182 else case e in #(
10183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10185 int i;
10186 int
10187 main (void)
10188 {
10189
10190 ;
10191 return 0;
10192 }
10193 _ACEOF
10194 if ac_fn_c_try_link "$LINENO"
10195 then :
10196 eval $cacheid=yes
10197 else case e in #(
10198 e) eval $cacheid=no ;;
10199 esac
10200 fi
10201 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10202 conftest$ac_exeext conftest.$ac_ext ;;
10203 esac
10204 fi
10205
10206
10207 CFLAGS="$xorg_testset_save_CFLAGS"
10208
10209 eval supported=\$$cacheid
10210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10211 printf "%s\n" "$supported" >&6; }
10212 if test "$supported" = "yes" ; then
10213 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
10214 found="yes"
10215 fi
10216 fi
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232 xorg_testset_save_CFLAGS="$CFLAGS"
10233
10234 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10237 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10238 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10239 then :
10240 printf %s "(cached) " >&6
10241 else case e in #(
10242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10243 /* end confdefs.h. */
10244 int i;
10245 _ACEOF
10246 if ac_fn_c_try_compile "$LINENO"
10247 then :
10248 xorg_cv_cc_flag_unknown_warning_option=yes
10249 else case e in #(
10250 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10251 esac
10252 fi
10253 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10254 esac
10255 fi
10256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10257 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10259 CFLAGS="$xorg_testset_save_CFLAGS"
10260 fi
10261
10262 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10265 fi
10266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10268 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10269 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10270 then :
10271 printf %s "(cached) " >&6
10272 else case e in #(
10273 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 int i;
10276 _ACEOF
10277 if ac_fn_c_try_compile "$LINENO"
10278 then :
10279 xorg_cv_cc_flag_unused_command_line_argument=yes
10280 else case e in #(
10281 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10282 esac
10283 fi
10284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10285 esac
10286 fi
10287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10288 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10289 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10290 CFLAGS="$xorg_testset_save_CFLAGS"
10291 fi
10292
10293 found="no"
10294
10295 if test $found = "no" ; then
10296 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10297 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10298 fi
10299
10300 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10301 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10302 fi
10303
10304 CFLAGS="$CFLAGS -Wmissing-braces"
10305
10306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
10307 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
10308 cacheid=xorg_cv_cc_flag__Wmissing_braces
10309 if eval test \${$cacheid+y}
10310 then :
10311 printf %s "(cached) " >&6
10312 else case e in #(
10313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10314 /* end confdefs.h. */
10315 int i;
10316 int
10317 main (void)
10318 {
10319
10320 ;
10321 return 0;
10322 }
10323 _ACEOF
10324 if ac_fn_c_try_link "$LINENO"
10325 then :
10326 eval $cacheid=yes
10327 else case e in #(
10328 e) eval $cacheid=no ;;
10329 esac
10330 fi
10331 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10332 conftest$ac_exeext conftest.$ac_ext ;;
10333 esac
10334 fi
10335
10336
10337 CFLAGS="$xorg_testset_save_CFLAGS"
10338
10339 eval supported=\$$cacheid
10340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10341 printf "%s\n" "$supported" >&6; }
10342 if test "$supported" = "yes" ; then
10343 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
10344 found="yes"
10345 fi
10346 fi
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362 xorg_testset_save_CFLAGS="$CFLAGS"
10363
10364 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10367 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10368 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10369 then :
10370 printf %s "(cached) " >&6
10371 else case e in #(
10372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373 /* end confdefs.h. */
10374 int i;
10375 _ACEOF
10376 if ac_fn_c_try_compile "$LINENO"
10377 then :
10378 xorg_cv_cc_flag_unknown_warning_option=yes
10379 else case e in #(
10380 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10381 esac
10382 fi
10383 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10384 esac
10385 fi
10386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10387 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10388 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10389 CFLAGS="$xorg_testset_save_CFLAGS"
10390 fi
10391
10392 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10395 fi
10396 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10398 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10399 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10400 then :
10401 printf %s "(cached) " >&6
10402 else case e in #(
10403 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h. */
10405 int i;
10406 _ACEOF
10407 if ac_fn_c_try_compile "$LINENO"
10408 then :
10409 xorg_cv_cc_flag_unused_command_line_argument=yes
10410 else case e in #(
10411 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10412 esac
10413 fi
10414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10415 esac
10416 fi
10417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10418 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10419 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10420 CFLAGS="$xorg_testset_save_CFLAGS"
10421 fi
10422
10423 found="no"
10424
10425 if test $found = "no" ; then
10426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10428 fi
10429
10430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10432 fi
10433
10434 CFLAGS="$CFLAGS -Wsequence-point"
10435
10436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
10437 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
10438 cacheid=xorg_cv_cc_flag__Wsequence_point
10439 if eval test \${$cacheid+y}
10440 then :
10441 printf %s "(cached) " >&6
10442 else case e in #(
10443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10445 int i;
10446 int
10447 main (void)
10448 {
10449
10450 ;
10451 return 0;
10452 }
10453 _ACEOF
10454 if ac_fn_c_try_link "$LINENO"
10455 then :
10456 eval $cacheid=yes
10457 else case e in #(
10458 e) eval $cacheid=no ;;
10459 esac
10460 fi
10461 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10462 conftest$ac_exeext conftest.$ac_ext ;;
10463 esac
10464 fi
10465
10466
10467 CFLAGS="$xorg_testset_save_CFLAGS"
10468
10469 eval supported=\$$cacheid
10470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10471 printf "%s\n" "$supported" >&6; }
10472 if test "$supported" = "yes" ; then
10473 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
10474 found="yes"
10475 fi
10476 fi
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492 xorg_testset_save_CFLAGS="$CFLAGS"
10493
10494 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10495 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10497 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10498 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10499 then :
10500 printf %s "(cached) " >&6
10501 else case e in #(
10502 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10504 int i;
10505 _ACEOF
10506 if ac_fn_c_try_compile "$LINENO"
10507 then :
10508 xorg_cv_cc_flag_unknown_warning_option=yes
10509 else case e in #(
10510 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10511 esac
10512 fi
10513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10514 esac
10515 fi
10516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10517 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10518 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10519 CFLAGS="$xorg_testset_save_CFLAGS"
10520 fi
10521
10522 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10525 fi
10526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10528 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10529 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10530 then :
10531 printf %s "(cached) " >&6
10532 else case e in #(
10533 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10534 /* end confdefs.h. */
10535 int i;
10536 _ACEOF
10537 if ac_fn_c_try_compile "$LINENO"
10538 then :
10539 xorg_cv_cc_flag_unused_command_line_argument=yes
10540 else case e in #(
10541 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10542 esac
10543 fi
10544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10545 esac
10546 fi
10547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10548 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10549 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10550 CFLAGS="$xorg_testset_save_CFLAGS"
10551 fi
10552
10553 found="no"
10554
10555 if test $found = "no" ; then
10556 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10557 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10558 fi
10559
10560 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10561 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10562 fi
10563
10564 CFLAGS="$CFLAGS -Wreturn-type"
10565
10566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
10567 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
10568 cacheid=xorg_cv_cc_flag__Wreturn_type
10569 if eval test \${$cacheid+y}
10570 then :
10571 printf %s "(cached) " >&6
10572 else case e in #(
10573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10574 /* end confdefs.h. */
10575 int i;
10576 int
10577 main (void)
10578 {
10579
10580 ;
10581 return 0;
10582 }
10583 _ACEOF
10584 if ac_fn_c_try_link "$LINENO"
10585 then :
10586 eval $cacheid=yes
10587 else case e in #(
10588 e) eval $cacheid=no ;;
10589 esac
10590 fi
10591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10592 conftest$ac_exeext conftest.$ac_ext ;;
10593 esac
10594 fi
10595
10596
10597 CFLAGS="$xorg_testset_save_CFLAGS"
10598
10599 eval supported=\$$cacheid
10600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10601 printf "%s\n" "$supported" >&6; }
10602 if test "$supported" = "yes" ; then
10603 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
10604 found="yes"
10605 fi
10606 fi
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622 xorg_testset_save_CFLAGS="$CFLAGS"
10623
10624 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10627 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10628 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10629 then :
10630 printf %s "(cached) " >&6
10631 else case e in #(
10632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10633 /* end confdefs.h. */
10634 int i;
10635 _ACEOF
10636 if ac_fn_c_try_compile "$LINENO"
10637 then :
10638 xorg_cv_cc_flag_unknown_warning_option=yes
10639 else case e in #(
10640 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10641 esac
10642 fi
10643 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10644 esac
10645 fi
10646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10647 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10648 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10649 CFLAGS="$xorg_testset_save_CFLAGS"
10650 fi
10651
10652 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10655 fi
10656 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10658 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10659 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10660 then :
10661 printf %s "(cached) " >&6
10662 else case e in #(
10663 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664 /* end confdefs.h. */
10665 int i;
10666 _ACEOF
10667 if ac_fn_c_try_compile "$LINENO"
10668 then :
10669 xorg_cv_cc_flag_unused_command_line_argument=yes
10670 else case e in #(
10671 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10672 esac
10673 fi
10674 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10675 esac
10676 fi
10677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10678 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10680 CFLAGS="$xorg_testset_save_CFLAGS"
10681 fi
10682
10683 found="no"
10684
10685 if test $found = "no" ; then
10686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10688 fi
10689
10690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10692 fi
10693
10694 CFLAGS="$CFLAGS -Wtrigraphs"
10695
10696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
10697 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
10698 cacheid=xorg_cv_cc_flag__Wtrigraphs
10699 if eval test \${$cacheid+y}
10700 then :
10701 printf %s "(cached) " >&6
10702 else case e in #(
10703 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h. */
10705 int i;
10706 int
10707 main (void)
10708 {
10709
10710 ;
10711 return 0;
10712 }
10713 _ACEOF
10714 if ac_fn_c_try_link "$LINENO"
10715 then :
10716 eval $cacheid=yes
10717 else case e in #(
10718 e) eval $cacheid=no ;;
10719 esac
10720 fi
10721 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10722 conftest$ac_exeext conftest.$ac_ext ;;
10723 esac
10724 fi
10725
10726
10727 CFLAGS="$xorg_testset_save_CFLAGS"
10728
10729 eval supported=\$$cacheid
10730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10731 printf "%s\n" "$supported" >&6; }
10732 if test "$supported" = "yes" ; then
10733 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
10734 found="yes"
10735 fi
10736 fi
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752 xorg_testset_save_CFLAGS="$CFLAGS"
10753
10754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10757 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10758 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10759 then :
10760 printf %s "(cached) " >&6
10761 else case e in #(
10762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10764 int i;
10765 _ACEOF
10766 if ac_fn_c_try_compile "$LINENO"
10767 then :
10768 xorg_cv_cc_flag_unknown_warning_option=yes
10769 else case e in #(
10770 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10771 esac
10772 fi
10773 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10774 esac
10775 fi
10776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10777 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10779 CFLAGS="$xorg_testset_save_CFLAGS"
10780 fi
10781
10782 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10785 fi
10786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10788 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10789 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10790 then :
10791 printf %s "(cached) " >&6
10792 else case e in #(
10793 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794 /* end confdefs.h. */
10795 int i;
10796 _ACEOF
10797 if ac_fn_c_try_compile "$LINENO"
10798 then :
10799 xorg_cv_cc_flag_unused_command_line_argument=yes
10800 else case e in #(
10801 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10802 esac
10803 fi
10804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10805 esac
10806 fi
10807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10808 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10809 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10810 CFLAGS="$xorg_testset_save_CFLAGS"
10811 fi
10812
10813 found="no"
10814
10815 if test $found = "no" ; then
10816 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10817 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10818 fi
10819
10820 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10821 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10822 fi
10823
10824 CFLAGS="$CFLAGS -Warray-bounds"
10825
10826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
10827 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
10828 cacheid=xorg_cv_cc_flag__Warray_bounds
10829 if eval test \${$cacheid+y}
10830 then :
10831 printf %s "(cached) " >&6
10832 else case e in #(
10833 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h. */
10835 int i;
10836 int
10837 main (void)
10838 {
10839
10840 ;
10841 return 0;
10842 }
10843 _ACEOF
10844 if ac_fn_c_try_link "$LINENO"
10845 then :
10846 eval $cacheid=yes
10847 else case e in #(
10848 e) eval $cacheid=no ;;
10849 esac
10850 fi
10851 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10852 conftest$ac_exeext conftest.$ac_ext ;;
10853 esac
10854 fi
10855
10856
10857 CFLAGS="$xorg_testset_save_CFLAGS"
10858
10859 eval supported=\$$cacheid
10860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10861 printf "%s\n" "$supported" >&6; }
10862 if test "$supported" = "yes" ; then
10863 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10864 found="yes"
10865 fi
10866 fi
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882 xorg_testset_save_CFLAGS="$CFLAGS"
10883
10884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10887 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10888 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10889 then :
10890 printf %s "(cached) " >&6
10891 else case e in #(
10892 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893 /* end confdefs.h. */
10894 int i;
10895 _ACEOF
10896 if ac_fn_c_try_compile "$LINENO"
10897 then :
10898 xorg_cv_cc_flag_unknown_warning_option=yes
10899 else case e in #(
10900 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
10901 esac
10902 fi
10903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10904 esac
10905 fi
10906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10907 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10908 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10909 CFLAGS="$xorg_testset_save_CFLAGS"
10910 fi
10911
10912 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10913 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10914 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10915 fi
10916 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10918 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10919 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10920 then :
10921 printf %s "(cached) " >&6
10922 else case e in #(
10923 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10924 /* end confdefs.h. */
10925 int i;
10926 _ACEOF
10927 if ac_fn_c_try_compile "$LINENO"
10928 then :
10929 xorg_cv_cc_flag_unused_command_line_argument=yes
10930 else case e in #(
10931 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
10932 esac
10933 fi
10934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10935 esac
10936 fi
10937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10938 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10939 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10940 CFLAGS="$xorg_testset_save_CFLAGS"
10941 fi
10942
10943 found="no"
10944
10945 if test $found = "no" ; then
10946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10948 fi
10949
10950 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10952 fi
10953
10954 CFLAGS="$CFLAGS -Wwrite-strings"
10955
10956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10957 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10958 cacheid=xorg_cv_cc_flag__Wwrite_strings
10959 if eval test \${$cacheid+y}
10960 then :
10961 printf %s "(cached) " >&6
10962 else case e in #(
10963 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10964 /* end confdefs.h. */
10965 int i;
10966 int
10967 main (void)
10968 {
10969
10970 ;
10971 return 0;
10972 }
10973 _ACEOF
10974 if ac_fn_c_try_link "$LINENO"
10975 then :
10976 eval $cacheid=yes
10977 else case e in #(
10978 e) eval $cacheid=no ;;
10979 esac
10980 fi
10981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10982 conftest$ac_exeext conftest.$ac_ext ;;
10983 esac
10984 fi
10985
10986
10987 CFLAGS="$xorg_testset_save_CFLAGS"
10988
10989 eval supported=\$$cacheid
10990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10991 printf "%s\n" "$supported" >&6; }
10992 if test "$supported" = "yes" ; then
10993 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10994 found="yes"
10995 fi
10996 fi
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012 xorg_testset_save_CFLAGS="$CFLAGS"
11013
11014 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11017 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11018 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11019 then :
11020 printf %s "(cached) " >&6
11021 else case e in #(
11022 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11023 /* end confdefs.h. */
11024 int i;
11025 _ACEOF
11026 if ac_fn_c_try_compile "$LINENO"
11027 then :
11028 xorg_cv_cc_flag_unknown_warning_option=yes
11029 else case e in #(
11030 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11031 esac
11032 fi
11033 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11034 esac
11035 fi
11036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11037 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11039 CFLAGS="$xorg_testset_save_CFLAGS"
11040 fi
11041
11042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11045 fi
11046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11048 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11049 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11050 then :
11051 printf %s "(cached) " >&6
11052 else case e in #(
11053 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11055 int i;
11056 _ACEOF
11057 if ac_fn_c_try_compile "$LINENO"
11058 then :
11059 xorg_cv_cc_flag_unused_command_line_argument=yes
11060 else case e in #(
11061 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11062 esac
11063 fi
11064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11065 esac
11066 fi
11067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11068 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11069 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11070 CFLAGS="$xorg_testset_save_CFLAGS"
11071 fi
11072
11073 found="no"
11074
11075 if test $found = "no" ; then
11076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11078 fi
11079
11080 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11082 fi
11083
11084 CFLAGS="$CFLAGS -Waddress"
11085
11086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
11087 printf %s "checking if $CC supports -Waddress... " >&6; }
11088 cacheid=xorg_cv_cc_flag__Waddress
11089 if eval test \${$cacheid+y}
11090 then :
11091 printf %s "(cached) " >&6
11092 else case e in #(
11093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11095 int i;
11096 int
11097 main (void)
11098 {
11099
11100 ;
11101 return 0;
11102 }
11103 _ACEOF
11104 if ac_fn_c_try_link "$LINENO"
11105 then :
11106 eval $cacheid=yes
11107 else case e in #(
11108 e) eval $cacheid=no ;;
11109 esac
11110 fi
11111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11112 conftest$ac_exeext conftest.$ac_ext ;;
11113 esac
11114 fi
11115
11116
11117 CFLAGS="$xorg_testset_save_CFLAGS"
11118
11119 eval supported=\$$cacheid
11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11121 printf "%s\n" "$supported" >&6; }
11122 if test "$supported" = "yes" ; then
11123 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
11124 found="yes"
11125 fi
11126 fi
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142 xorg_testset_save_CFLAGS="$CFLAGS"
11143
11144 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11147 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11148 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11149 then :
11150 printf %s "(cached) " >&6
11151 else case e in #(
11152 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11153 /* end confdefs.h. */
11154 int i;
11155 _ACEOF
11156 if ac_fn_c_try_compile "$LINENO"
11157 then :
11158 xorg_cv_cc_flag_unknown_warning_option=yes
11159 else case e in #(
11160 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11161 esac
11162 fi
11163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11164 esac
11165 fi
11166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11167 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11168 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11169 CFLAGS="$xorg_testset_save_CFLAGS"
11170 fi
11171
11172 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11173 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11174 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11175 fi
11176 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11178 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11179 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11180 then :
11181 printf %s "(cached) " >&6
11182 else case e in #(
11183 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184 /* end confdefs.h. */
11185 int i;
11186 _ACEOF
11187 if ac_fn_c_try_compile "$LINENO"
11188 then :
11189 xorg_cv_cc_flag_unused_command_line_argument=yes
11190 else case e in #(
11191 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11192 esac
11193 fi
11194 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11195 esac
11196 fi
11197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11198 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11200 CFLAGS="$xorg_testset_save_CFLAGS"
11201 fi
11202
11203 found="no"
11204
11205 if test $found = "no" ; then
11206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11208 fi
11209
11210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11212 fi
11213
11214 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
11215
11216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
11217 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
11218 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
11219 if eval test \${$cacheid+y}
11220 then :
11221 printf %s "(cached) " >&6
11222 else case e in #(
11223 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11225 int i;
11226 int
11227 main (void)
11228 {
11229
11230 ;
11231 return 0;
11232 }
11233 _ACEOF
11234 if ac_fn_c_try_link "$LINENO"
11235 then :
11236 eval $cacheid=yes
11237 else case e in #(
11238 e) eval $cacheid=no ;;
11239 esac
11240 fi
11241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11242 conftest$ac_exeext conftest.$ac_ext ;;
11243 esac
11244 fi
11245
11246
11247 CFLAGS="$xorg_testset_save_CFLAGS"
11248
11249 eval supported=\$$cacheid
11250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11251 printf "%s\n" "$supported" >&6; }
11252 if test "$supported" = "yes" ; then
11253 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
11254 found="yes"
11255 fi
11256 fi
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272 xorg_testset_save_CFLAGS="$CFLAGS"
11273
11274 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11277 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11278 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11279 then :
11280 printf %s "(cached) " >&6
11281 else case e in #(
11282 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11284 int i;
11285 _ACEOF
11286 if ac_fn_c_try_compile "$LINENO"
11287 then :
11288 xorg_cv_cc_flag_unknown_warning_option=yes
11289 else case e in #(
11290 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11291 esac
11292 fi
11293 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11294 esac
11295 fi
11296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11297 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11299 CFLAGS="$xorg_testset_save_CFLAGS"
11300 fi
11301
11302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11305 fi
11306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11308 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11309 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11310 then :
11311 printf %s "(cached) " >&6
11312 else case e in #(
11313 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11314 /* end confdefs.h. */
11315 int i;
11316 _ACEOF
11317 if ac_fn_c_try_compile "$LINENO"
11318 then :
11319 xorg_cv_cc_flag_unused_command_line_argument=yes
11320 else case e in #(
11321 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11322 esac
11323 fi
11324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11325 esac
11326 fi
11327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11328 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11329 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11330 CFLAGS="$xorg_testset_save_CFLAGS"
11331 fi
11332
11333 found="no"
11334
11335 if test $found = "no" ; then
11336 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11337 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11338 fi
11339
11340 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11341 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11342 fi
11343
11344 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
11345
11346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
11347 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
11348 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
11349 if eval test \${$cacheid+y}
11350 then :
11351 printf %s "(cached) " >&6
11352 else case e in #(
11353 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354 /* end confdefs.h. */
11355 int i;
11356 int
11357 main (void)
11358 {
11359
11360 ;
11361 return 0;
11362 }
11363 _ACEOF
11364 if ac_fn_c_try_link "$LINENO"
11365 then :
11366 eval $cacheid=yes
11367 else case e in #(
11368 e) eval $cacheid=no ;;
11369 esac
11370 fi
11371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11372 conftest$ac_exeext conftest.$ac_ext ;;
11373 esac
11374 fi
11375
11376
11377 CFLAGS="$xorg_testset_save_CFLAGS"
11378
11379 eval supported=\$$cacheid
11380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11381 printf "%s\n" "$supported" >&6; }
11382 if test "$supported" = "yes" ; then
11383 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
11384 found="yes"
11385 fi
11386 fi
11387
11388
11389 fi
11390
11391
11392
11393
11394
11395
11396
11397 CWARNFLAGS="$BASE_CFLAGS"
11398 if test "x$GCC" = xyes ; then
11399 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
11400 fi
11401
11402
11403
11404
11405
11406
11407
11408
11409 # Check whether --enable-strict-compilation was given.
11410 if test ${enable_strict_compilation+y}
11411 then :
11412 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
11413 else case e in #(
11414 e) STRICT_COMPILE=no ;;
11415 esac
11416 fi
11417
11418
11419
11420
11421
11422
11423 STRICT_CFLAGS=""
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437 xorg_testset_save_CFLAGS="$CFLAGS"
11438
11439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11442 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11443 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11444 then :
11445 printf %s "(cached) " >&6
11446 else case e in #(
11447 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11449 int i;
11450 _ACEOF
11451 if ac_fn_c_try_compile "$LINENO"
11452 then :
11453 xorg_cv_cc_flag_unknown_warning_option=yes
11454 else case e in #(
11455 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11456 esac
11457 fi
11458 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11459 esac
11460 fi
11461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11462 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11463 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11464 CFLAGS="$xorg_testset_save_CFLAGS"
11465 fi
11466
11467 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11468 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11469 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11470 fi
11471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11473 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11474 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11475 then :
11476 printf %s "(cached) " >&6
11477 else case e in #(
11478 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11479 /* end confdefs.h. */
11480 int i;
11481 _ACEOF
11482 if ac_fn_c_try_compile "$LINENO"
11483 then :
11484 xorg_cv_cc_flag_unused_command_line_argument=yes
11485 else case e in #(
11486 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11487 esac
11488 fi
11489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11490 esac
11491 fi
11492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11493 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11495 CFLAGS="$xorg_testset_save_CFLAGS"
11496 fi
11497
11498 found="no"
11499
11500 if test $found = "no" ; then
11501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11503 fi
11504
11505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11507 fi
11508
11509 CFLAGS="$CFLAGS -pedantic"
11510
11511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
11512 printf %s "checking if $CC supports -pedantic... " >&6; }
11513 cacheid=xorg_cv_cc_flag__pedantic
11514 if eval test \${$cacheid+y}
11515 then :
11516 printf %s "(cached) " >&6
11517 else case e in #(
11518 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11519 /* end confdefs.h. */
11520 int i;
11521 int
11522 main (void)
11523 {
11524
11525 ;
11526 return 0;
11527 }
11528 _ACEOF
11529 if ac_fn_c_try_link "$LINENO"
11530 then :
11531 eval $cacheid=yes
11532 else case e in #(
11533 e) eval $cacheid=no ;;
11534 esac
11535 fi
11536 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11537 conftest$ac_exeext conftest.$ac_ext ;;
11538 esac
11539 fi
11540
11541
11542 CFLAGS="$xorg_testset_save_CFLAGS"
11543
11544 eval supported=\$$cacheid
11545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11546 printf "%s\n" "$supported" >&6; }
11547 if test "$supported" = "yes" ; then
11548 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
11549 found="yes"
11550 fi
11551 fi
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567 xorg_testset_save_CFLAGS="$CFLAGS"
11568
11569 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11570 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11572 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11573 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11574 then :
11575 printf %s "(cached) " >&6
11576 else case e in #(
11577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11579 int i;
11580 _ACEOF
11581 if ac_fn_c_try_compile "$LINENO"
11582 then :
11583 xorg_cv_cc_flag_unknown_warning_option=yes
11584 else case e in #(
11585 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11586 esac
11587 fi
11588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11589 esac
11590 fi
11591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11592 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11594 CFLAGS="$xorg_testset_save_CFLAGS"
11595 fi
11596
11597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11600 fi
11601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11603 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11604 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11605 then :
11606 printf %s "(cached) " >&6
11607 else case e in #(
11608 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11609 /* end confdefs.h. */
11610 int i;
11611 _ACEOF
11612 if ac_fn_c_try_compile "$LINENO"
11613 then :
11614 xorg_cv_cc_flag_unused_command_line_argument=yes
11615 else case e in #(
11616 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11617 esac
11618 fi
11619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11620 esac
11621 fi
11622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11623 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11624 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11625 CFLAGS="$xorg_testset_save_CFLAGS"
11626 fi
11627
11628 found="no"
11629
11630 if test $found = "no" ; then
11631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11633 fi
11634
11635 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11637 fi
11638
11639 CFLAGS="$CFLAGS -Werror"
11640
11641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
11642 printf %s "checking if $CC supports -Werror... " >&6; }
11643 cacheid=xorg_cv_cc_flag__Werror
11644 if eval test \${$cacheid+y}
11645 then :
11646 printf %s "(cached) " >&6
11647 else case e in #(
11648 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11649 /* end confdefs.h. */
11650 int i;
11651 int
11652 main (void)
11653 {
11654
11655 ;
11656 return 0;
11657 }
11658 _ACEOF
11659 if ac_fn_c_try_link "$LINENO"
11660 then :
11661 eval $cacheid=yes
11662 else case e in #(
11663 e) eval $cacheid=no ;;
11664 esac
11665 fi
11666 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11667 conftest$ac_exeext conftest.$ac_ext ;;
11668 esac
11669 fi
11670
11671
11672 CFLAGS="$xorg_testset_save_CFLAGS"
11673
11674 eval supported=\$$cacheid
11675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11676 printf "%s\n" "$supported" >&6; }
11677 if test "$supported" = "yes" ; then
11678 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
11679 found="yes"
11680 fi
11681 fi
11682
11683 if test $found = "no" ; then
11684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11686 fi
11687
11688 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11690 fi
11691
11692 CFLAGS="$CFLAGS -errwarn"
11693
11694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
11695 printf %s "checking if $CC supports -errwarn... " >&6; }
11696 cacheid=xorg_cv_cc_flag__errwarn
11697 if eval test \${$cacheid+y}
11698 then :
11699 printf %s "(cached) " >&6
11700 else case e in #(
11701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11702 /* end confdefs.h. */
11703 int i;
11704 int
11705 main (void)
11706 {
11707
11708 ;
11709 return 0;
11710 }
11711 _ACEOF
11712 if ac_fn_c_try_link "$LINENO"
11713 then :
11714 eval $cacheid=yes
11715 else case e in #(
11716 e) eval $cacheid=no ;;
11717 esac
11718 fi
11719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11720 conftest$ac_exeext conftest.$ac_ext ;;
11721 esac
11722 fi
11723
11724
11725 CFLAGS="$xorg_testset_save_CFLAGS"
11726
11727 eval supported=\$$cacheid
11728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11729 printf "%s\n" "$supported" >&6; }
11730 if test "$supported" = "yes" ; then
11731 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
11732 found="yes"
11733 fi
11734 fi
11735
11736
11737
11738 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
11739 # activate it with -Werror, so we add it here explicitly.
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753 xorg_testset_save_CFLAGS="$CFLAGS"
11754
11755 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11756 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11758 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11759 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
11760 then :
11761 printf %s "(cached) " >&6
11762 else case e in #(
11763 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764 /* end confdefs.h. */
11765 int i;
11766 _ACEOF
11767 if ac_fn_c_try_compile "$LINENO"
11768 then :
11769 xorg_cv_cc_flag_unknown_warning_option=yes
11770 else case e in #(
11771 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
11772 esac
11773 fi
11774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11775 esac
11776 fi
11777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11778 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11779 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11780 CFLAGS="$xorg_testset_save_CFLAGS"
11781 fi
11782
11783 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11784 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11786 fi
11787 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11789 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11790 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
11791 then :
11792 printf %s "(cached) " >&6
11793 else case e in #(
11794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11795 /* end confdefs.h. */
11796 int i;
11797 _ACEOF
11798 if ac_fn_c_try_compile "$LINENO"
11799 then :
11800 xorg_cv_cc_flag_unused_command_line_argument=yes
11801 else case e in #(
11802 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
11803 esac
11804 fi
11805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11806 esac
11807 fi
11808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11809 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11810 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11811 CFLAGS="$xorg_testset_save_CFLAGS"
11812 fi
11813
11814 found="no"
11815
11816 if test $found = "no" ; then
11817 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11819 fi
11820
11821 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
11822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11823 fi
11824
11825 CFLAGS="$CFLAGS -Werror=attributes"
11826
11827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
11828 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
11829 cacheid=xorg_cv_cc_flag__Werror_attributes
11830 if eval test \${$cacheid+y}
11831 then :
11832 printf %s "(cached) " >&6
11833 else case e in #(
11834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11836 int i;
11837 int
11838 main (void)
11839 {
11840
11841 ;
11842 return 0;
11843 }
11844 _ACEOF
11845 if ac_fn_c_try_link "$LINENO"
11846 then :
11847 eval $cacheid=yes
11848 else case e in #(
11849 e) eval $cacheid=no ;;
11850 esac
11851 fi
11852 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11853 conftest$ac_exeext conftest.$ac_ext ;;
11854 esac
11855 fi
11856
11857
11858 CFLAGS="$xorg_testset_save_CFLAGS"
11859
11860 eval supported=\$$cacheid
11861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11862 printf "%s\n" "$supported" >&6; }
11863 if test "$supported" = "yes" ; then
11864 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
11865 found="yes"
11866 fi
11867 fi
11868
11869
11870
11871 if test "x$STRICT_COMPILE" = "xyes"; then
11872 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
11873 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
11874 fi
11875
11876
11877
11878
11879
11880
11881
11882
11883 cat >>confdefs.h <<_ACEOF
11884 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
11885 _ACEOF
11886
11887 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
11888 if test "x$PVM" = "x"; then
11889 PVM="0"
11890 fi
11891
11892 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
11893
11894 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
11895 if test "x$PVP" = "x"; then
11896 PVP="0"
11897 fi
11898
11899 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
11900
11901
11902
11903 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
11904 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
11905 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
11906 touch \$(top_srcdir)/ChangeLog; \
11907 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11908
11909
11910
11911
11912 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11913 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11914 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11915 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11916 touch \$(top_srcdir)/INSTALL; \
11917 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11918
11919
11920
11921
11922
11923
11924 case $host_os in
11925 solaris*)
11926 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11927 # check for a man page file found in later versions that use
11928 # traditional section numbers instead
11929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11930 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11931 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11932 then :
11933 printf %s "(cached) " >&6
11934 else case e in #(
11935 e) test "$cross_compiling" = yes &&
11936 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11937 if test -r "/usr/share/man/man7/attributes.7"; then
11938 ac_cv_file__usr_share_man_man7_attributes_7=yes
11939 else
11940 ac_cv_file__usr_share_man_man7_attributes_7=no
11941 fi ;;
11942 esac
11943 fi
11944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11945 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11946 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11947 then :
11948 SYSV_MAN_SECTIONS=false
11949 else case e in #(
11950 e) SYSV_MAN_SECTIONS=true ;;
11951 esac
11952 fi
11953
11954 ;;
11955 *) SYSV_MAN_SECTIONS=false ;;
11956 esac
11957
11958 if test x$APP_MAN_SUFFIX = x ; then
11959 APP_MAN_SUFFIX=1
11960 fi
11961 if test x$APP_MAN_DIR = x ; then
11962 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11963 fi
11964
11965 if test x$LIB_MAN_SUFFIX = x ; then
11966 LIB_MAN_SUFFIX=3
11967 fi
11968 if test x$LIB_MAN_DIR = x ; then
11969 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11970 fi
11971
11972 if test x$FILE_MAN_SUFFIX = x ; then
11973 case $SYSV_MAN_SECTIONS in
11974 true) FILE_MAN_SUFFIX=4 ;;
11975 *) FILE_MAN_SUFFIX=5 ;;
11976 esac
11977 fi
11978 if test x$FILE_MAN_DIR = x ; then
11979 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11980 fi
11981
11982 if test x$MISC_MAN_SUFFIX = x ; then
11983 case $SYSV_MAN_SECTIONS in
11984 true) MISC_MAN_SUFFIX=5 ;;
11985 *) MISC_MAN_SUFFIX=7 ;;
11986 esac
11987 fi
11988 if test x$MISC_MAN_DIR = x ; then
11989 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11990 fi
11991
11992 if test x$DRIVER_MAN_SUFFIX = x ; then
11993 case $SYSV_MAN_SECTIONS in
11994 true) DRIVER_MAN_SUFFIX=7 ;;
11995 *) DRIVER_MAN_SUFFIX=4 ;;
11996 esac
11997 fi
11998 if test x$DRIVER_MAN_DIR = x ; then
11999 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
12000 fi
12001
12002 if test x$ADMIN_MAN_SUFFIX = x ; then
12003 case $SYSV_MAN_SECTIONS in
12004 true) ADMIN_MAN_SUFFIX=1m ;;
12005 *) ADMIN_MAN_SUFFIX=8 ;;
12006 esac
12007 fi
12008 if test x$ADMIN_MAN_DIR = x ; then
12009 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
12010 fi
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026 XORG_MAN_PAGE="X Version 11"
12027
12028 MAN_SUBSTS="\
12029 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12030 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
12031 -e 's|__xservername__|Xorg|g' \
12032 -e 's|__xconfigfile__|xorg.conf|g' \
12033 -e 's|__projectroot__|\$(prefix)|g' \
12034 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
12035 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
12036 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
12037 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
12038 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
12039 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
12040 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
12041
12042
12043
12044
12045 AM_DEFAULT_VERBOSITY=0
12046
12047
12048
12049
12050 # Check whether --enable-devel-docs was given.
12051 if test ${enable_devel_docs+y}
12052 then :
12053 enableval=$enable_devel_docs; build_devel_docs=$enableval
12054 else case e in #(
12055 e) build_devel_docs=yes ;;
12056 esac
12057 fi
12058
12059
12060 if test x$build_devel_docs = xyes; then
12061 ENABLE_DEVEL_DOCS_TRUE=
12062 ENABLE_DEVEL_DOCS_FALSE='#'
12063 else
12064 ENABLE_DEVEL_DOCS_TRUE='#'
12065 ENABLE_DEVEL_DOCS_FALSE=
12066 fi
12067
12068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
12069 printf %s "checking whether to build developer documentation... " >&6; }
12070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
12071 printf "%s\n" "$build_devel_docs" >&6; }
12072
12073
12074
12075
12076
12077 # Check whether --with-xmlto was given.
12078 if test ${with_xmlto+y}
12079 then :
12080 withval=$with_xmlto; use_xmlto=$withval
12081 else case e in #(
12082 e) use_xmlto=auto ;;
12083 esac
12084 fi
12085
12086
12087
12088 if test "x$use_xmlto" = x"auto"; then
12089 # Extract the first word of "xmlto", so it can be a program name with args.
12090 set dummy xmlto; ac_word=$2
12091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12092 printf %s "checking for $ac_word... " >&6; }
12093 if test ${ac_cv_path_XMLTO+y}
12094 then :
12095 printf %s "(cached) " >&6
12096 else case e in #(
12097 e) case $XMLTO in
12098 [\\/]* | ?:[\\/]*)
12099 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12100 ;;
12101 *)
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103 for as_dir in $PATH
12104 do
12105 IFS=$as_save_IFS
12106 case $as_dir in #(((
12107 '') as_dir=./ ;;
12108 */) ;;
12109 *) as_dir=$as_dir/ ;;
12110 esac
12111 for ac_exec_ext in '' $ac_executable_extensions; do
12112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12113 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
12114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12115 break 2
12116 fi
12117 done
12118 done
12119 IFS=$as_save_IFS
12120
12121 ;;
12122 esac ;;
12123 esac
12124 fi
12125 XMLTO=$ac_cv_path_XMLTO
12126 if test -n "$XMLTO"; then
12127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
12128 printf "%s\n" "$XMLTO" >&6; }
12129 else
12130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12131 printf "%s\n" "no" >&6; }
12132 fi
12133
12134
12135 if test "x$XMLTO" = "x"; then
12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
12137 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
12138 have_xmlto=no
12139 else
12140 have_xmlto=yes
12141 fi
12142 elif test "x$use_xmlto" = x"yes" ; then
12143 # Extract the first word of "xmlto", so it can be a program name with args.
12144 set dummy xmlto; ac_word=$2
12145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 printf %s "checking for $ac_word... " >&6; }
12147 if test ${ac_cv_path_XMLTO+y}
12148 then :
12149 printf %s "(cached) " >&6
12150 else case e in #(
12151 e) case $XMLTO in
12152 [\\/]* | ?:[\\/]*)
12153 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12154 ;;
12155 *)
12156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12157 for as_dir in $PATH
12158 do
12159 IFS=$as_save_IFS
12160 case $as_dir in #(((
12161 '') as_dir=./ ;;
12162 */) ;;
12163 *) as_dir=$as_dir/ ;;
12164 esac
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12167 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
12168 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12169 break 2
12170 fi
12171 done
12172 done
12173 IFS=$as_save_IFS
12174
12175 ;;
12176 esac ;;
12177 esac
12178 fi
12179 XMLTO=$ac_cv_path_XMLTO
12180 if test -n "$XMLTO"; then
12181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
12182 printf "%s\n" "$XMLTO" >&6; }
12183 else
12184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12185 printf "%s\n" "no" >&6; }
12186 fi
12187
12188
12189 if test "x$XMLTO" = "x"; then
12190 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
12191 fi
12192 have_xmlto=yes
12193 elif test "x$use_xmlto" = x"no" ; then
12194 if test "x$XMLTO" != "x"; then
12195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
12196 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
12197 fi
12198 have_xmlto=no
12199 else
12200 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
12201 fi
12202
12203 # Test for a minimum version of xmlto, if provided.
12204 if test "$have_xmlto" = yes; then
12205 # scrape the xmlto version
12206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
12207 printf %s "checking the xmlto version... " >&6; }
12208 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
12209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
12210 printf "%s\n" "$xmlto_version" >&6; }
12211 as_arg_v1=$xmlto_version
12212 as_arg_v2=0.0.20
12213 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
12214 case $? in #(
12215 1) :
12216 if test "x$use_xmlto" = xauto; then
12217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5
12218 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;}
12219 have_xmlto=no
12220 else
12221 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5
12222 fi ;; #(
12223 0) :
12224 ;; #(
12225 2) :
12226 ;; #(
12227 *) :
12228 ;;
12229 esac
12230 fi
12231
12232 # Test for the ability of xmlto to generate a text target
12233 #
12234 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
12235 # following test for empty XML docbook files.
12236 # For compatibility reasons use the following empty XML docbook file and if
12237 # it fails try it again with a non-empty XML file.
12238 have_xmlto_text=no
12239 cat > conftest.xml << "EOF"
12240 EOF
12241 if test "$have_xmlto" = yes
12242 then :
12243 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
12244 then :
12245 have_xmlto_text=yes
12246 else case e in #(
12247 e) # Try it again with a non-empty XML file.
12248 cat > conftest.xml << "EOF"
12249 <x></x>
12250 EOF
12251 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
12252 then :
12253 have_xmlto_text=yes
12254 else case e in #(
12255 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
12256 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} ;;
12257 esac
12258 fi ;;
12259 esac
12260 fi
12261 fi
12262 rm -f conftest.xml
12263 if test $have_xmlto_text = yes; then
12264 HAVE_XMLTO_TEXT_TRUE=
12265 HAVE_XMLTO_TEXT_FALSE='#'
12266 else
12267 HAVE_XMLTO_TEXT_TRUE='#'
12268 HAVE_XMLTO_TEXT_FALSE=
12269 fi
12270
12271 if test "$have_xmlto" = yes; then
12272 HAVE_XMLTO_TRUE=
12273 HAVE_XMLTO_FALSE='#'
12274 else
12275 HAVE_XMLTO_TRUE='#'
12276 HAVE_XMLTO_FALSE=
12277 fi
12278
12279
12280
12281
12282
12283
12284 # Check whether --with-fop was given.
12285 if test ${with_fop+y}
12286 then :
12287 withval=$with_fop; use_fop=$withval
12288 else case e in #(
12289 e) use_fop=auto ;;
12290 esac
12291 fi
12292
12293
12294
12295 if test "x$use_fop" = x"auto"; then
12296 # Extract the first word of "fop", so it can be a program name with args.
12297 set dummy fop; ac_word=$2
12298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12299 printf %s "checking for $ac_word... " >&6; }
12300 if test ${ac_cv_path_FOP+y}
12301 then :
12302 printf %s "(cached) " >&6
12303 else case e in #(
12304 e) case $FOP in
12305 [\\/]* | ?:[\\/]*)
12306 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12307 ;;
12308 *)
12309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12310 for as_dir in $PATH
12311 do
12312 IFS=$as_save_IFS
12313 case $as_dir in #(((
12314 '') as_dir=./ ;;
12315 */) ;;
12316 *) as_dir=$as_dir/ ;;
12317 esac
12318 for ac_exec_ext in '' $ac_executable_extensions; do
12319 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12320 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
12321 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12322 break 2
12323 fi
12324 done
12325 done
12326 IFS=$as_save_IFS
12327
12328 ;;
12329 esac ;;
12330 esac
12331 fi
12332 FOP=$ac_cv_path_FOP
12333 if test -n "$FOP"; then
12334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12335 printf "%s\n" "$FOP" >&6; }
12336 else
12337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12338 printf "%s\n" "no" >&6; }
12339 fi
12340
12341
12342 if test "x$FOP" = "x"; then
12343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
12344 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
12345 have_fop=no
12346 else
12347 have_fop=yes
12348 fi
12349 elif test "x$use_fop" = x"yes" ; then
12350 # Extract the first word of "fop", so it can be a program name with args.
12351 set dummy fop; ac_word=$2
12352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12353 printf %s "checking for $ac_word... " >&6; }
12354 if test ${ac_cv_path_FOP+y}
12355 then :
12356 printf %s "(cached) " >&6
12357 else case e in #(
12358 e) case $FOP in
12359 [\\/]* | ?:[\\/]*)
12360 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
12361 ;;
12362 *)
12363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12364 for as_dir in $PATH
12365 do
12366 IFS=$as_save_IFS
12367 case $as_dir in #(((
12368 '') as_dir=./ ;;
12369 */) ;;
12370 *) as_dir=$as_dir/ ;;
12371 esac
12372 for ac_exec_ext in '' $ac_executable_extensions; do
12373 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12374 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
12375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12376 break 2
12377 fi
12378 done
12379 done
12380 IFS=$as_save_IFS
12381
12382 ;;
12383 esac ;;
12384 esac
12385 fi
12386 FOP=$ac_cv_path_FOP
12387 if test -n "$FOP"; then
12388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
12389 printf "%s\n" "$FOP" >&6; }
12390 else
12391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392 printf "%s\n" "no" >&6; }
12393 fi
12394
12395
12396 if test "x$FOP" = "x"; then
12397 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
12398 fi
12399 have_fop=yes
12400 elif test "x$use_fop" = x"no" ; then
12401 if test "x$FOP" != "x"; then
12402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
12403 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
12404 fi
12405 have_fop=no
12406 else
12407 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
12408 fi
12409
12410 # Test for a minimum version of fop, if provided.
12411
12412 if test "$have_fop" = yes; then
12413 HAVE_FOP_TRUE=
12414 HAVE_FOP_FALSE='#'
12415 else
12416 HAVE_FOP_TRUE='#'
12417 HAVE_FOP_FALSE=
12418 fi
12419
12420
12421
12422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5
12423 printf %s "checking for X.Org SGML entities >= 1.5... " >&6; }
12424 XORG_SGML_PATH=
12425 if test -n "$PKG_CONFIG" && \
12426 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5
12427 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5
12428 ac_status=$?
12429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12430 test $ac_status = 0; }; then
12431 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
12432 else
12433 :
12434
12435 fi
12436
12437 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
12438 # the path and the name of the doc stylesheet
12439 if test "x$XORG_SGML_PATH" != "x" ; then
12440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
12441 printf "%s\n" "$XORG_SGML_PATH" >&6; }
12442 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
12443 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
12444 else
12445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12446 printf "%s\n" "no" >&6; }
12447 fi
12448
12449
12450
12451
12452 if test "x$XSL_STYLESHEET" != "x"; then
12453 HAVE_STYLESHEETS_TRUE=
12454 HAVE_STYLESHEETS_FALSE='#'
12455 else
12456 HAVE_STYLESHEETS_TRUE='#'
12457 HAVE_STYLESHEETS_FALSE=
12458 fi
12459
12460
12461
12462
12463
12464
12465
12466 # Check whether --with-lint was given.
12467 if test ${with_lint+y}
12468 then :
12469 withval=$with_lint; use_lint=$withval
12470 else case e in #(
12471 e) use_lint=no ;;
12472 esac
12473 fi
12474
12475
12476 # Obtain platform specific info like program name and options
12477 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
12478 case $host_os in
12479 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
12480 lint_name=splint
12481 lint_options="-badflag"
12482 ;;
12483 *freebsd* | *netbsd*)
12484 lint_name=lint
12485 lint_options="-u -b"
12486 ;;
12487 *solaris*)
12488 lint_name=lint
12489 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
12490 ;;
12491 esac
12492
12493 # Test for the presence of the program (either guessed by the code or spelled out by the user)
12494 if test "x$use_lint" = x"yes" ; then
12495 # Extract the first word of "$lint_name", so it can be a program name with args.
12496 set dummy $lint_name; ac_word=$2
12497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498 printf %s "checking for $ac_word... " >&6; }
12499 if test ${ac_cv_path_LINT+y}
12500 then :
12501 printf %s "(cached) " >&6
12502 else case e in #(
12503 e) case $LINT in
12504 [\\/]* | ?:[\\/]*)
12505 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
12506 ;;
12507 *)
12508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12509 for as_dir in $PATH
12510 do
12511 IFS=$as_save_IFS
12512 case $as_dir in #(((
12513 '') as_dir=./ ;;
12514 */) ;;
12515 *) as_dir=$as_dir/ ;;
12516 esac
12517 for ac_exec_ext in '' $ac_executable_extensions; do
12518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12519 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
12520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12521 break 2
12522 fi
12523 done
12524 done
12525 IFS=$as_save_IFS
12526
12527 ;;
12528 esac ;;
12529 esac
12530 fi
12531 LINT=$ac_cv_path_LINT
12532 if test -n "$LINT"; then
12533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
12534 printf "%s\n" "$LINT" >&6; }
12535 else
12536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12537 printf "%s\n" "no" >&6; }
12538 fi
12539
12540
12541 if test "x$LINT" = "x"; then
12542 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
12543 fi
12544 elif test "x$use_lint" = x"no" ; then
12545 if test "x$LINT" != "x"; then
12546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
12547 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
12548 fi
12549 else
12550 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
12551 fi
12552
12553 # User supplied flags override default flags
12554 if test "x$LINT_FLAGS" != "x"; then
12555 lint_options=$LINT_FLAGS
12556 fi
12557
12558 LINT_FLAGS=$lint_options
12559
12560 if test "x$LINT" != x; then
12561 LINT_TRUE=
12562 LINT_FALSE='#'
12563 else
12564 LINT_TRUE='#'
12565 LINT_FALSE=
12566 fi
12567
12568
12569
12570
12571 # Checks for typedefs, structures, and compiler characteristics.
12572 # Check whether --enable-largefile was given.
12573 if test ${enable_largefile+y}
12574 then :
12575 enableval=$enable_largefile;
12576 fi
12577 if test "$enable_largefile,$enable_year2038" != no,no
12578 then :
12579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
12580 printf %s "checking for $CC option to enable large file support... " >&6; }
12581 if test ${ac_cv_sys_largefile_opts+y}
12582 then :
12583 printf %s "(cached) " >&6
12584 else case e in #(
12585 e) ac_save_CC="$CC"
12586 ac_opt_found=no
12587 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
12588 if test x"$ac_opt" != x"none needed"
12589 then :
12590 CC="$ac_save_CC $ac_opt"
12591 fi
12592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h. */
12594 #include <sys/types.h>
12595 #ifndef FTYPE
12596 # define FTYPE off_t
12597 #endif
12598 /* Check that FTYPE can represent 2**63 - 1 correctly.
12599 We can't simply define LARGE_FTYPE to be 9223372036854775807,
12600 since some C++ compilers masquerading as C compilers
12601 incorrectly reject 9223372036854775807. */
12602 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
12603 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
12604 && LARGE_FTYPE % 2147483647 == 1)
12605 ? 1 : -1];
12606 int
12607 main (void)
12608 {
12609
12610 ;
12611 return 0;
12612 }
12613 _ACEOF
12614 if ac_fn_c_try_compile "$LINENO"
12615 then :
12616 if test x"$ac_opt" = x"none needed"
12617 then :
12618 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
12619 CC="$CC -DFTYPE=ino_t"
12620 if ac_fn_c_try_compile "$LINENO"
12621 then :
12622
12623 else case e in #(
12624 e) CC="$CC -D_FILE_OFFSET_BITS=64"
12625 if ac_fn_c_try_compile "$LINENO"
12626 then :
12627 ac_opt='-D_FILE_OFFSET_BITS=64'
12628 fi
12629 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
12630 esac
12631 fi
12632 rm -f core conftest.err conftest.$ac_objext conftest.beam
12633 fi
12634 ac_cv_sys_largefile_opts=$ac_opt
12635 ac_opt_found=yes
12636 fi
12637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12638 test $ac_opt_found = no || break
12639 done
12640 CC="$ac_save_CC"
12641
12642 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
12643 esac
12644 fi
12645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
12646 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
12647
12648 ac_have_largefile=yes
12649 case $ac_cv_sys_largefile_opts in #(
12650 "none needed") :
12651 ;; #(
12652 "supported through gnulib") :
12653 ;; #(
12654 "support not detected") :
12655 ac_have_largefile=no ;; #(
12656 "-D_FILE_OFFSET_BITS=64") :
12657
12658 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
12659 ;; #(
12660 "-D_LARGE_FILES=1") :
12661
12662 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
12663 ;; #(
12664 "-n32") :
12665 CC="$CC -n32" ;; #(
12666 *) :
12667 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
12668 esac
12669
12670 if test "$enable_year2038" != no
12671 then :
12672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
12673 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
12674 if test ${ac_cv_sys_year2038_opts+y}
12675 then :
12676 printf %s "(cached) " >&6
12677 else case e in #(
12678 e) ac_save_CPPFLAGS="$CPPFLAGS"
12679 ac_opt_found=no
12680 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
12681 if test x"$ac_opt" != x"none needed"
12682 then :
12683 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
12684 fi
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12687
12688 #include <time.h>
12689 /* Check that time_t can represent 2**32 - 1 correctly. */
12690 #define LARGE_TIME_T \\
12691 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
12692 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
12693 && LARGE_TIME_T % 65537 == 0)
12694 ? 1 : -1];
12695
12696 int
12697 main (void)
12698 {
12699
12700 ;
12701 return 0;
12702 }
12703 _ACEOF
12704 if ac_fn_c_try_compile "$LINENO"
12705 then :
12706 ac_cv_sys_year2038_opts="$ac_opt"
12707 ac_opt_found=yes
12708 fi
12709 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12710 test $ac_opt_found = no || break
12711 done
12712 CPPFLAGS="$ac_save_CPPFLAGS"
12713 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
12714 esac
12715 fi
12716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
12717 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
12718
12719 ac_have_year2038=yes
12720 case $ac_cv_sys_year2038_opts in #(
12721 "none needed") :
12722 ;; #(
12723 "support not detected") :
12724 ac_have_year2038=no ;; #(
12725 "-D_TIME_BITS=64") :
12726
12727 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
12728 ;; #(
12729 "-D__MINGW_USE_VC2005_COMPAT") :
12730
12731 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
12732 ;; #(
12733 "-U_USE_32_BIT_TIME_T"*) :
12734 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12735 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12736 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
12737 will stop working after mid-January 2038. Remove
12738 _USE_32BIT_TIME_T from the compiler flags.
12739 See 'config.log' for more details" "$LINENO" 5; } ;; #(
12740 *) :
12741 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
12742 esac
12743
12744 fi
12745
12746 fi
12747
12748 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
12749 if test "x$ac_cv_header_stdint_h" = xyes
12750 then :
12751 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
12752
12753 fi
12754
12755
12756
12757 # Check whether --with-default-config-file was given.
12758 if test ${with_default_config_file+y}
12759 then :
12760 withval=$with_default_config_file; CONFIG_FILE="$withval"
12761 else case e in #(
12762 e) CONFIG_FILE="${sysconfdir}/X11/fs/config" ;;
12763 esac
12764 fi
12765
12766
12767 DEFAULT_CONFIG_FILE=`echo ${CONFIG_FILE} | sed 's/,/\\\\\\\\\\\",\\\\\\\\\\\"/'g`
12768
12769 prefix_NONE=
12770 exec_prefix_NONE=
12771 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
12772 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
12773 eval ax_define_dir="\"$DEFAULT_CONFIG_FILE\""
12774 eval ax_define_dir="\"$ax_define_dir\""
12775 DEFAULT_CONFIG_FILE="$ax_define_dir"
12776
12777
12778 printf "%s\n" "#define DEFAULT_CONFIG_FILE \"$ax_define_dir\"" >>confdefs.h
12779
12780 test "$prefix_NONE" && prefix=NONE
12781 test "$exec_prefix_NONE" && exec_prefix=NONE
12782
12783
12784 # generate text for the man page
12785 case $CONFIG_FILE in
12786 *,*)
12787 CONFIG_FILE_DESC="the first file found from the list:"
12788 CONFIG_FILE_PATH=`echo ${CONFIG_FILE} | sed 's/,/\\\\\\\\fR, \\\\\\\\fI/g'`
12789 ;;
12790 *)
12791 CONFIG_FILE_DESC="the default file,"
12792 CONFIG_FILE_PATH="${CONFIG_FILE}"
12793 ;;
12794 esac
12795
12796
12797
12798 # Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
12815 printf %s "checking for root directory for font files... " >&6; }
12816
12817 # Check whether --with-fontrootdir was given.
12818 if test ${with_fontrootdir+y}
12819 then :
12820 withval=$with_fontrootdir; FONTROOTDIR="$withval"
12821 fi
12822
12823 # if --with-fontrootdir not specified...
12824 if test "x${FONTROOTDIR}" = "x"; then
12825 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
12826 fi
12827 # ...and if pkg-config didn't find fontdir in fontutil.pc...
12828 if test "x${FONTROOTDIR}" = "x"; then
12829 FONTROOTDIR="${datadir}/fonts/X11"
12830 fi
12831
12832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
12833 printf "%s\n" "${FONTROOTDIR}" >&6; }
12834
12835
12836
12837
12838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for misc files" >&5
12839 printf %s "checking for directory for misc files... " >&6; }
12840
12841 # Check whether --with-fontmiscdir was given.
12842 if test ${with_fontmiscdir+y}
12843 then :
12844 withval=$with_fontmiscdir; FONTMISCDIR="${withval}"
12845 else case e in #(
12846 e) FONTMISCDIR='${FONTROOTDIR}/misc' ;;
12847 esac
12848 fi
12849
12850
12851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTMISCDIR}" >&5
12852 printf "%s\n" "${FONTMISCDIR}" >&6; }
12853
12854
12855
12856
12857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for OTF files" >&5
12858 printf %s "checking for directory for OTF files... " >&6; }
12859
12860 # Check whether --with-fontotfdir was given.
12861 if test ${with_fontotfdir+y}
12862 then :
12863 withval=$with_fontotfdir; FONTOTFDIR="${withval}"
12864 else case e in #(
12865 e) FONTOTFDIR='${FONTROOTDIR}/OTF' ;;
12866 esac
12867 fi
12868
12869
12870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTOTFDIR}" >&5
12871 printf "%s\n" "${FONTOTFDIR}" >&6; }
12872
12873
12874
12875
12876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for TTF files" >&5
12877 printf %s "checking for directory for TTF files... " >&6; }
12878
12879 # Check whether --with-fontttfdir was given.
12880 if test ${with_fontttfdir+y}
12881 then :
12882 withval=$with_fontttfdir; FONTTTFDIR="${withval}"
12883 else case e in #(
12884 e) FONTTTFDIR='${FONTROOTDIR}/TTF' ;;
12885 esac
12886 fi
12887
12888
12889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTTFDIR}" >&5
12890 printf "%s\n" "${FONTTTFDIR}" >&6; }
12891
12892
12893
12894
12895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for Type1 files" >&5
12896 printf %s "checking for directory for Type1 files... " >&6; }
12897
12898 # Check whether --with-fonttype1dir was given.
12899 if test ${with_fonttype1dir+y}
12900 then :
12901 withval=$with_fonttype1dir; FONTTYPE1DIR="${withval}"
12902 else case e in #(
12903 e) FONTTYPE1DIR='${FONTROOTDIR}/Type1' ;;
12904 esac
12905 fi
12906
12907
12908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTTYPE1DIR}" >&5
12909 printf "%s\n" "${FONTTYPE1DIR}" >&6; }
12910
12911
12912
12913
12914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 75dpi files" >&5
12915 printf %s "checking for directory for 75dpi files... " >&6; }
12916
12917 # Check whether --with-font75dpidir was given.
12918 if test ${with_font75dpidir+y}
12919 then :
12920 withval=$with_font75dpidir; FONT75DPIDIR="${withval}"
12921 else case e in #(
12922 e) FONT75DPIDIR='${FONTROOTDIR}/75dpi' ;;
12923 esac
12924 fi
12925
12926
12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT75DPIDIR}" >&5
12928 printf "%s\n" "${FONT75DPIDIR}" >&6; }
12929
12930
12931
12932
12933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for 100dpi files" >&5
12934 printf %s "checking for directory for 100dpi files... " >&6; }
12935
12936 # Check whether --with-font100dpidir was given.
12937 if test ${with_font100dpidir+y}
12938 then :
12939 withval=$with_font100dpidir; FONT100DPIDIR="${withval}"
12940 else case e in #(
12941 e) FONT100DPIDIR='${FONTROOTDIR}/100dpi' ;;
12942 esac
12943 fi
12944
12945
12946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONT100DPIDIR}" >&5
12947 printf "%s\n" "${FONT100DPIDIR}" >&6; }
12948
12949
12950 # Determine font path to put in config file
12951 # Uses --default-font-path if set, otherwise checks for /etc/X11/fontpath.d,
12952 # otherwise uses standard subdirectories of FONTROOTDIR. When cross
12953 # compiling, assume default font path uses standard FONTROOTDIR directories.
12954 DEFAULT_FONT_PATH="${FONTMISCDIR}/,${FONTTTFDIR}/,${FONTOTFDIR}/,${FONTTYPE1DIR}/,${FONT100DPIDIR}/,${FONT75DPIDIR}/"
12955 if test "$cross_compiling" != yes; then
12956 as_ac_File=`printf "%s\n" "ac_cv_file_${sysconfdir}/X11/fontpath.d" | sed "$as_sed_sh"`
12957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${sysconfdir}/X11/fontpath.d" >&5
12958 printf %s "checking for ${sysconfdir}/X11/fontpath.d... " >&6; }
12959 if eval test \${$as_ac_File+y}
12960 then :
12961 printf %s "(cached) " >&6
12962 else case e in #(
12963 e) test "$cross_compiling" = yes &&
12964 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
12965 if test -r "${sysconfdir}/X11/fontpath.d"; then
12966 eval "$as_ac_File=yes"
12967 else
12968 eval "$as_ac_File=no"
12969 fi ;;
12970 esac
12971 fi
12972 eval ac_res=\$$as_ac_File
12973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12974 printf "%s\n" "$ac_res" >&6; }
12975 if eval test \"x\$"$as_ac_File"\" = x"yes"
12976 then :
12977 DEFAULT_FONT_PATH='catalogue:${sysconfdir}/X11/fontpath.d'
12978 else case e in #(
12979 e) case $host_os in
12980 darwin*) DEFAULT_FONT_PATH="${DEFAULT_FONT_PATH},/Library/Fonts,/System/Library/Fonts" ;;
12981 esac ;;
12982 esac
12983 fi
12984
12985 fi
12986
12987 # Check whether --with-default-font-path was given.
12988 if test ${with_default_font_path+y}
12989 then :
12990 withval=$with_default_font_path; FONTPATH="$withval"
12991 else case e in #(
12992 e) FONTPATH="${DEFAULT_FONT_PATH}" ;;
12993 esac
12994 fi
12995
12996
12997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default font path" >&5
12998 printf %s "checking for default font path... " >&6; }
12999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FONTPATH" >&5
13000 printf "%s\n" "$FONTPATH" >&6; }
13001
13002
13003
13004 # Option to enable support for starting from inetd
13005 # Check whether --enable-inetd was given.
13006 if test ${enable_inetd+y}
13007 then :
13008 enableval=$enable_inetd; INETD=$enableval
13009 else case e in #(
13010 e) INETD=yes ;;
13011 esac
13012 fi
13013
13014 if test "x$INETD" = xyes; then
13015
13016 printf "%s\n" "#define XFS_INETD 1" >>confdefs.h
13017
13018 fi
13019
13020 # Option to enable support for logging to syslog
13021 # Check whether --enable-syslog was given.
13022 if test ${enable_syslog+y}
13023 then :
13024 enableval=$enable_syslog; SYSLOG=$enableval
13025 else case e in #(
13026 e) SYSLOG=yes ;;
13027 esac
13028 fi
13029
13030 if test "x$SYSLOG" = xyes; then
13031
13032 printf "%s\n" "#define USE_SYSLOG 1" >>confdefs.h
13033
13034 fi
13035
13036
13037 # Checks for system functions / libraries
13038 ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
13039 if test "x$ac_cv_func_daemon" = xyes
13040 then :
13041 printf "%s\n" "#define HAVE_DAEMON 1" >>confdefs.h
13042
13043 fi
13044
13045
13046 # Checks for pkg-config packages
13047 # - xproto >= 7.0.25 required for _X_COLD in <X11/Xfuncproto.h>
13048 # - xfont >= 2.0.1 for new server API
13049
13050 pkg_failed=no
13051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFS" >&5
13052 printf %s "checking for XFS... " >&6; }
13053
13054 if test -n "$XFS_CFLAGS"; then
13055 pkg_cv_XFS_CFLAGS="$XFS_CFLAGS"
13056 elif test -n "$PKG_CONFIG"; then
13057 if test -n "$PKG_CONFIG" && \
13058 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans\""; } >&5
13059 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans") 2>&5
13060 ac_status=$?
13061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13062 test $ac_status = 0; }; then
13063 pkg_cv_XFS_CFLAGS=`$PKG_CONFIG --cflags "xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans" 2>/dev/null`
13064 test "x$?" != "x0" && pkg_failed=yes
13065 else
13066 pkg_failed=yes
13067 fi
13068 else
13069 pkg_failed=untried
13070 fi
13071 if test -n "$XFS_LIBS"; then
13072 pkg_cv_XFS_LIBS="$XFS_LIBS"
13073 elif test -n "$PKG_CONFIG"; then
13074 if test -n "$PKG_CONFIG" && \
13075 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans\""; } >&5
13076 ($PKG_CONFIG --exists --print-errors "xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans") 2>&5
13077 ac_status=$?
13078 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13079 test $ac_status = 0; }; then
13080 pkg_cv_XFS_LIBS=`$PKG_CONFIG --libs "xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans" 2>/dev/null`
13081 test "x$?" != "x0" && pkg_failed=yes
13082 else
13083 pkg_failed=yes
13084 fi
13085 else
13086 pkg_failed=untried
13087 fi
13088
13089
13090
13091 if test $pkg_failed = yes; then
13092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13093 printf "%s\n" "no" >&6; }
13094
13095 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13096 _pkg_short_errors_supported=yes
13097 else
13098 _pkg_short_errors_supported=no
13099 fi
13100 if test $_pkg_short_errors_supported = yes; then
13101 XFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans" 2>&1`
13102 else
13103 XFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans" 2>&1`
13104 fi
13105 # Put the nasty error message in config.log where it belongs
13106 echo "$XFS_PKG_ERRORS" >&5
13107
13108 as_fn_error $? "Package requirements (xproto >= 7.0.25 xfont2 >= 2.0.1 xtrans) were not met:
13109
13110 $XFS_PKG_ERRORS
13111
13112 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13113 installed software in a non-standard prefix.
13114
13115 Alternatively, you may set the environment variables XFS_CFLAGS
13116 and XFS_LIBS to avoid the need to call pkg-config.
13117 See the pkg-config man page for more details." "$LINENO" 5
13118 elif test $pkg_failed = untried; then
13119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 printf "%s\n" "no" >&6; }
13121 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13122 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
13123 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13124 is in your PATH or set the PKG_CONFIG environment variable to the full
13125 path to pkg-config.
13126
13127 Alternatively, you may set the environment variables XFS_CFLAGS
13128 and XFS_LIBS to avoid the need to call pkg-config.
13129 See the pkg-config man page for more details.
13130
13131 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13132 See 'config.log' for more details" "$LINENO" 5; }
13133 else
13134 XFS_CFLAGS=$pkg_cv_XFS_CFLAGS
13135 XFS_LIBS=$pkg_cv_XFS_LIBS
13136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13137 printf "%s\n" "yes" >&6; }
13138
13139 fi
13140
13141 case "$host_os" in
13142 cygwin*|mingw*)
13143 CFLAGS="$CFLAGS -DFD_SETSIZE=256"
13144 LDFLAGS="$LDFLAGS -Wl,--export-all" ;;
13145 esac
13146
13147 # Transport selection macro from xtrans.m4
13148
13149
13150 case $host_os in
13151 mingw*) unixdef="no" ;;
13152 *) unixdef="yes" ;;
13153 esac
13154 # Check whether --enable-unix-transport was given.
13155 if test ${enable_unix_transport+y}
13156 then :
13157 enableval=$enable_unix_transport; UNIXCONN=$enableval
13158 else case e in #(
13159 e) UNIXCONN=$unixdef ;;
13160 esac
13161 fi
13162
13163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
13164 printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
13165 if test "$UNIXCONN" = "yes"; then
13166
13167 printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
13168
13169 fi
13170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
13171 printf "%s\n" "$UNIXCONN" >&6; }
13172 # Check whether --enable-tcp-transport was given.
13173 if test ${enable_tcp_transport+y}
13174 then :
13175 enableval=$enable_tcp_transport; TCPCONN=$enableval
13176 else case e in #(
13177 e) TCPCONN=yes ;;
13178 esac
13179 fi
13180
13181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
13182 printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
13183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
13184 printf "%s\n" "$TCPCONN" >&6; }
13185 if test "$TCPCONN" = "yes"; then
13186
13187 printf "%s\n" "#define TCPCONN 1" >>confdefs.h
13188
13189
13190 # SVR4 hides these in libraries other than libc
13191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13192 printf %s "checking for library containing socket... " >&6; }
13193 if test ${ac_cv_search_socket+y}
13194 then :
13195 printf %s "(cached) " >&6
13196 else case e in #(
13197 e) ac_func_search_save_LIBS=$LIBS
13198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13200
13201 /* Override any GCC internal prototype to avoid an error.
13202 Use char because int might match the return type of a GCC
13203 builtin and then its argument prototype would still apply.
13204 The 'extern "C"' is for builds by C++ compilers;
13205 although this is not generally supported in C code supporting it here
13206 has little cost and some practical benefit (sr 110532). */
13207 #ifdef __cplusplus
13208 extern "C"
13209 #endif
13210 char socket (void);
13211 int
13212 main (void)
13213 {
13214 return socket ();
13215 ;
13216 return 0;
13217 }
13218 _ACEOF
13219 for ac_lib in '' socket
13220 do
13221 if test -z "$ac_lib"; then
13222 ac_res="none required"
13223 else
13224 ac_res=-l$ac_lib
13225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13226 fi
13227 if ac_fn_c_try_link "$LINENO"
13228 then :
13229 ac_cv_search_socket=$ac_res
13230 fi
13231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13232 conftest$ac_exeext
13233 if test ${ac_cv_search_socket+y}
13234 then :
13235 break
13236 fi
13237 done
13238 if test ${ac_cv_search_socket+y}
13239 then :
13240
13241 else case e in #(
13242 e) ac_cv_search_socket=no ;;
13243 esac
13244 fi
13245 rm conftest.$ac_ext
13246 LIBS=$ac_func_search_save_LIBS ;;
13247 esac
13248 fi
13249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13250 printf "%s\n" "$ac_cv_search_socket" >&6; }
13251 ac_res=$ac_cv_search_socket
13252 if test "$ac_res" != no
13253 then :
13254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13255
13256 fi
13257
13258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
13259 printf %s "checking for library containing gethostbyname... " >&6; }
13260 if test ${ac_cv_search_gethostbyname+y}
13261 then :
13262 printf %s "(cached) " >&6
13263 else case e in #(
13264 e) ac_func_search_save_LIBS=$LIBS
13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13267
13268 /* Override any GCC internal prototype to avoid an error.
13269 Use char because int might match the return type of a GCC
13270 builtin and then its argument prototype would still apply.
13271 The 'extern "C"' is for builds by C++ compilers;
13272 although this is not generally supported in C code supporting it here
13273 has little cost and some practical benefit (sr 110532). */
13274 #ifdef __cplusplus
13275 extern "C"
13276 #endif
13277 char gethostbyname (void);
13278 int
13279 main (void)
13280 {
13281 return gethostbyname ();
13282 ;
13283 return 0;
13284 }
13285 _ACEOF
13286 for ac_lib in '' nsl
13287 do
13288 if test -z "$ac_lib"; then
13289 ac_res="none required"
13290 else
13291 ac_res=-l$ac_lib
13292 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13293 fi
13294 if ac_fn_c_try_link "$LINENO"
13295 then :
13296 ac_cv_search_gethostbyname=$ac_res
13297 fi
13298 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13299 conftest$ac_exeext
13300 if test ${ac_cv_search_gethostbyname+y}
13301 then :
13302 break
13303 fi
13304 done
13305 if test ${ac_cv_search_gethostbyname+y}
13306 then :
13307
13308 else case e in #(
13309 e) ac_cv_search_gethostbyname=no ;;
13310 esac
13311 fi
13312 rm conftest.$ac_ext
13313 LIBS=$ac_func_search_save_LIBS ;;
13314 esac
13315 fi
13316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
13317 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
13318 ac_res=$ac_cv_search_gethostbyname
13319 if test "$ac_res" != no
13320 then :
13321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13322
13323 fi
13324
13325 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
13326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
13327 printf %s "checking for main in -lws2_32... " >&6; }
13328 if test ${ac_cv_lib_ws2_32_main+y}
13329 then :
13330 printf %s "(cached) " >&6
13331 else case e in #(
13332 e) ac_check_lib_save_LIBS=$LIBS
13333 LIBS="-lws2_32 $LIBS"
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336
13337
13338 int
13339 main (void)
13340 {
13341 return main ();
13342 ;
13343 return 0;
13344 }
13345 _ACEOF
13346 if ac_fn_c_try_link "$LINENO"
13347 then :
13348 ac_cv_lib_ws2_32_main=yes
13349 else case e in #(
13350 e) ac_cv_lib_ws2_32_main=no ;;
13351 esac
13352 fi
13353 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13354 conftest$ac_exeext conftest.$ac_ext
13355 LIBS=$ac_check_lib_save_LIBS ;;
13356 esac
13357 fi
13358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
13359 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
13360 if test "x$ac_cv_lib_ws2_32_main" = xyes
13361 then :
13362 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
13363
13364 LIBS="-lws2_32 $LIBS"
13365
13366 fi
13367
13368 fi
13369
13370 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
13371 # Check whether --enable-ipv6 was given.
13372 if test ${enable_ipv6+y}
13373 then :
13374 enableval=$enable_ipv6; IPV6CONN=$enableval
13375 else case e in #(
13376 e) ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13377 if test "x$ac_cv_func_getaddrinfo" = xyes
13378 then :
13379 IPV6CONN=yes
13380 else case e in #(
13381 e) IPV6CONN=no ;;
13382 esac
13383 fi
13384 ;;
13385 esac
13386 fi
13387
13388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
13389 printf %s "checking if IPv6 support should be built... " >&6; }
13390 if test "$IPV6CONN" = "yes"; then
13391
13392 printf "%s\n" "#define IPv6 1" >>confdefs.h
13393
13394 fi
13395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
13396 printf "%s\n" "$IPV6CONN" >&6; }
13397
13398 # 4.3BSD-Reno added a new member to struct sockaddr_in
13399 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
13400 #include <sys/types.h>
13401 #include <sys/socket.h>
13402 #include <netinet/in.h>
13403
13404 "
13405 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
13406 then :
13407
13408 printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
13409
13410 fi
13411
13412
13413 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
13414 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
13415 $ac_includes_default
13416 #include <sys/socket.h>
13417 "
13418 if test "x$ac_cv_type_socklen_t" = xyes
13419 then :
13420
13421 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
13422
13423
13424 fi
13425
13426
13427 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
13428 # _XOPEN_SOURCE to get it (such as on Solaris)
13429 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
13430 $ac_includes_default
13431 #include <sys/socket.h>
13432
13433 "
13434 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
13435 then :
13436
13437 fi
13438
13439 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
13440 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
13441 unset ac_cv_member_struct_msghdr_msg_control
13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
13443 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
13444 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
13445 #define _XOPEN_SOURCE 600
13446 $ac_includes_default
13447 #include <sys/socket.h>
13448
13449 "
13450 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
13451 then :
13452
13453 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
13454
13455
13456 fi
13457
13458 fi
13459 # If that didn't work, fall back to XPG5/UNIX98 with C89
13460 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
13461 unset ac_cv_member_struct_msghdr_msg_control
13462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
13463 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
13464 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
13465 #define _XOPEN_SOURCE 500
13466 $ac_includes_default
13467 #include <sys/socket.h>
13468
13469 "
13470 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
13471 then :
13472
13473 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
13474
13475
13476 fi
13477
13478 fi
13479
13480
13481
13482 fi
13483 case $host_os in
13484 solaris*) localdef="yes" ;;
13485 *) localdef="no" ;;
13486 esac
13487 # Check whether --enable-local-transport was given.
13488 if test ${enable_local_transport+y}
13489 then :
13490 enableval=$enable_local_transport; LOCALCONN=$enableval
13491 else case e in #(
13492 e) LOCALCONN=$localdef ;;
13493 esac
13494 fi
13495
13496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
13497 printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
13498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
13499 printf "%s\n" "$LOCALCONN" >&6; }
13500 if test "$LOCALCONN" = "yes"; then
13501
13502 printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
13503
13504 fi
13505
13506 # Other functions Xtrans may need
13507 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13508 if test "x$ac_cv_func_strcasecmp" = xyes
13509 then :
13510 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13511
13512 fi
13513 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
13514 if test "x$ac_cv_func_strlcpy" = xyes
13515 then :
13516 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
13517
13518 fi
13519
13520
13521
13522
13523 ac_config_files="$ac_config_files Makefile config/Makefile doc/Makefile man/Makefile"
13524
13525 cat >confcache <<\_ACEOF
13526 # This file is a shell script that caches the results of configure
13527 # tests run on this system so they can be shared between configure
13528 # scripts and configure runs, see configure's option --config-cache.
13529 # It is not useful on other systems. If it contains results you don't
13530 # want to keep, you may remove or edit it.
13531 #
13532 # config.status only pays attention to the cache file if you give it
13533 # the --recheck option to rerun configure.
13534 #
13535 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
13536 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
13537 # following values.
13538
13539 _ACEOF
13540
13541 # The following way of writing the cache mishandles newlines in values,
13542 # but we know of no workaround that is simple, portable, and efficient.
13543 # So, we kill variables containing newlines.
13544 # Ultrix sh set writes to stderr and can't be redirected directly,
13545 # and sets the high bit in the cache file unless we assign to the vars.
13546 (
13547 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13548 eval ac_val=\$$ac_var
13549 case $ac_val in #(
13550 *${as_nl}*)
13551 case $ac_var in #(
13552 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13553 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13554 esac
13555 case $ac_var in #(
13556 _ | IFS | as_nl) ;; #(
13557 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13558 *) { eval $ac_var=; unset $ac_var;} ;;
13559 esac ;;
13560 esac
13561 done
13562
13563 (set) 2>&1 |
13564 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13565 *${as_nl}ac_space=\ *)
13566 # 'set' does not quote correctly, so add quotes: double-quote
13567 # substitution turns \\\\ into \\, and sed turns \\ into \.
13568 sed -n \
13569 "s/'/'\\\\''/g;
13570 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13571 ;; #(
13572 *)
13573 # 'set' quotes correctly as required by POSIX, so do not add quotes.
13574 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13575 ;;
13576 esac |
13577 sort
13578 ) |
13579 sed '
13580 /^ac_cv_env_/b end
13581 t clear
13582 :clear
13583 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
13584 t end
13585 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13586 :end' >>confcache
13587 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13588 if test -w "$cache_file"; then
13589 if test "x$cache_file" != "x/dev/null"; then
13590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13591 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
13592 if test ! -f "$cache_file" || test -h "$cache_file"; then
13593 cat confcache >"$cache_file"
13594 else
13595 case $cache_file in #(
13596 */* | ?:*)
13597 mv -f confcache "$cache_file"$$ &&
13598 mv -f "$cache_file"$$ "$cache_file" ;; #(
13599 *)
13600 mv -f confcache "$cache_file" ;;
13601 esac
13602 fi
13603 fi
13604 else
13605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13606 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
13607 fi
13608 fi
13609 rm -f confcache
13610
13611 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13612 # Let make expand exec_prefix.
13613 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13614
13615 DEFS=-DHAVE_CONFIG_H
13616
13617 ac_libobjs=
13618 ac_ltlibobjs=
13619 U=
13620 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13621 # 1. Remove the extension, and $U if already installed.
13622 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13623 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
13624 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13625 # will be set to the directory where LIBOBJS objects are built.
13626 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13627 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13628 done
13629 LIBOBJS=$ac_libobjs
13630
13631 LTLIBOBJS=$ac_ltlibobjs
13632
13633
13634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13635 printf %s "checking that generated files are newer than configure... " >&6; }
13636 if test -n "$am_sleep_pid"; then
13637 # Hide warnings about reused PIDs.
13638 wait $am_sleep_pid 2>/dev/null
13639 fi
13640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
13641 printf "%s\n" "done" >&6; }
13642 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13643 as_fn_error $? "conditional \"AMDEP\" was never defined.
13644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13645 fi
13646 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13647 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13649 fi
13650 case $enable_silent_rules in # (((
13651 yes) AM_DEFAULT_VERBOSITY=0;;
13652 no) AM_DEFAULT_VERBOSITY=1;;
13653 esac
13654 if test $am_cv_make_support_nested_variables = yes; then
13655 AM_V='$(V)'
13656 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13657 else
13658 AM_V=$AM_DEFAULT_VERBOSITY
13659 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13660 fi
13661
13662 if test -n "$EXEEXT"; then
13663 am__EXEEXT_TRUE=
13664 am__EXEEXT_FALSE='#'
13665 else
13666 am__EXEEXT_TRUE='#'
13667 am__EXEEXT_FALSE=
13668 fi
13669
13670 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
13671 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
13672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13673 fi
13674 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
13675 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
13676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13677 fi
13678 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
13679 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
13680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13681 fi
13682 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
13683 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
13684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13685 fi
13686 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
13687 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
13688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13689 fi
13690 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
13691 as_fn_error $? "conditional \"LINT\" was never defined.
13692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13693 fi
13694 # Check whether --enable-year2038 was given.
13695 if test ${enable_year2038+y}
13696 then :
13697 enableval=$enable_year2038;
13698 fi
13699
13700
13701 : "${CONFIG_STATUS=./config.status}"
13702 ac_write_fail=0
13703 ac_clean_files_save=$ac_clean_files
13704 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13706 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
13707 as_write_fail=0
13708 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13709 #! $SHELL
13710 # Generated by $as_me.
13711 # Run this file to recreate the current configuration.
13712 # Compiler output produced by configure, useful for debugging
13713 # configure, is in config.log if it exists.
13714
13715 debug=false
13716 ac_cs_recheck=false
13717 ac_cs_silent=false
13718
13719 SHELL=\${CONFIG_SHELL-$SHELL}
13720 export SHELL
13721 _ASEOF
13722 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13723 ## -------------------- ##
13724 ## M4sh Initialization. ##
13725 ## -------------------- ##
13726
13727 # Be more Bourne compatible
13728 DUALCASE=1; export DUALCASE # for MKS sh
13729 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
13730 then :
13731 emulate sh
13732 NULLCMD=:
13733 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13734 # is contrary to our usage. Disable this feature.
13735 alias -g '${1+"$@"}'='"$@"'
13736 setopt NO_GLOB_SUBST
13737 else case e in #(
13738 e) case `(set -o) 2>/dev/null` in #(
13739 *posix*) :
13740 set -o posix ;; #(
13741 *) :
13742 ;;
13743 esac ;;
13744 esac
13745 fi
13746
13747
13748
13749 # Reset variables that may have inherited troublesome values from
13750 # the environment.
13751
13752 # IFS needs to be set, to space, tab, and newline, in precisely that order.
13753 # (If _AS_PATH_WALK were called with IFS unset, it would have the
13754 # side effect of setting IFS to empty, thus disabling word splitting.)
13755 # Quoting is to prevent editors from complaining about space-tab.
13756 as_nl='
13757 '
13758 export as_nl
13759 IFS=" "" $as_nl"
13760
13761 PS1='$ '
13762 PS2='> '
13763 PS4='+ '
13764
13765 # Ensure predictable behavior from utilities with locale-dependent output.
13766 LC_ALL=C
13767 export LC_ALL
13768 LANGUAGE=C
13769 export LANGUAGE
13770
13771 # We cannot yet rely on "unset" to work, but we need these variables
13772 # to be unset--not just set to an empty or harmless value--now, to
13773 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
13774 # also avoids known problems related to "unset" and subshell syntax
13775 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
13776 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
13777 do eval test \${$as_var+y} \
13778 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13779 done
13780
13781 # Ensure that fds 0, 1, and 2 are open.
13782 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
13783 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
13784 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
13785
13786 # The user is always right.
13787 if ${PATH_SEPARATOR+false} :; then
13788 PATH_SEPARATOR=:
13789 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13791 PATH_SEPARATOR=';'
13792 }
13793 fi
13794
13795
13796 # Find who we are. Look in the path if we contain no directory separator.
13797 as_myself=
13798 case $0 in #((
13799 *[\\/]* ) as_myself=$0 ;;
13800 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13801 for as_dir in $PATH
13802 do
13803 IFS=$as_save_IFS
13804 case $as_dir in #(((
13805 '') as_dir=./ ;;
13806 */) ;;
13807 *) as_dir=$as_dir/ ;;
13808 esac
13809 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
13810 done
13811 IFS=$as_save_IFS
13812
13813 ;;
13814 esac
13815 # We did not find ourselves, most probably we were run as 'sh COMMAND'
13816 # in which case we are not to be found in the path.
13817 if test "x$as_myself" = x; then
13818 as_myself=$0
13819 fi
13820 if test ! -f "$as_myself"; then
13821 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13822 exit 1
13823 fi
13824
13825
13826
13827 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13828 # ----------------------------------------
13829 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13830 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13831 # script with STATUS, using 1 if that was 0.
13832 as_fn_error ()
13833 {
13834 as_status=$1; test $as_status -eq 0 && as_status=1
13835 if test "$4"; then
13836 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13838 fi
13839 printf "%s\n" "$as_me: error: $2" >&2
13840 as_fn_exit $as_status
13841 } # as_fn_error
13842
13843
13844 # as_fn_set_status STATUS
13845 # -----------------------
13846 # Set $? to STATUS, without forking.
13847 as_fn_set_status ()
13848 {
13849 return $1
13850 } # as_fn_set_status
13851
13852 # as_fn_exit STATUS
13853 # -----------------
13854 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13855 as_fn_exit ()
13856 {
13857 set +e
13858 as_fn_set_status $1
13859 exit $1
13860 } # as_fn_exit
13861
13862 # as_fn_unset VAR
13863 # ---------------
13864 # Portably unset VAR.
13865 as_fn_unset ()
13866 {
13867 { eval $1=; unset $1;}
13868 }
13869 as_unset=as_fn_unset
13870
13871 # as_fn_append VAR VALUE
13872 # ----------------------
13873 # Append the text in VALUE to the end of the definition contained in VAR. Take
13874 # advantage of any shell optimizations that allow amortized linear growth over
13875 # repeated appends, instead of the typical quadratic growth present in naive
13876 # implementations.
13877 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
13878 then :
13879 eval 'as_fn_append ()
13880 {
13881 eval $1+=\$2
13882 }'
13883 else case e in #(
13884 e) as_fn_append ()
13885 {
13886 eval $1=\$$1\$2
13887 } ;;
13888 esac
13889 fi # as_fn_append
13890
13891 # as_fn_arith ARG...
13892 # ------------------
13893 # Perform arithmetic evaluation on the ARGs, and store the result in the
13894 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13895 # must be portable across $(()) and expr.
13896 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
13897 then :
13898 eval 'as_fn_arith ()
13899 {
13900 as_val=$(( $* ))
13901 }'
13902 else case e in #(
13903 e) as_fn_arith ()
13904 {
13905 as_val=`expr "$@" || test $? -eq 1`
13906 } ;;
13907 esac
13908 fi # as_fn_arith
13909
13910
13911 if expr a : '\(a\)' >/dev/null 2>&1 &&
13912 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13913 as_expr=expr
13914 else
13915 as_expr=false
13916 fi
13917
13918 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13919 as_basename=basename
13920 else
13921 as_basename=false
13922 fi
13923
13924 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13925 as_dirname=dirname
13926 else
13927 as_dirname=false
13928 fi
13929
13930 as_me=`$as_basename -- "$0" ||
13931 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13932 X"$0" : 'X\(//\)$' \| \
13933 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13934 printf "%s\n" X/"$0" |
13935 sed '/^.*\/\([^/][^/]*\)\/*$/{
13936 s//\1/
13937 q
13938 }
13939 /^X\/\(\/\/\)$/{
13940 s//\1/
13941 q
13942 }
13943 /^X\/\(\/\).*/{
13944 s//\1/
13945 q
13946 }
13947 s/.*/./; q'`
13948
13949 # Avoid depending upon Character Ranges.
13950 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13951 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13952 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13953 as_cr_digits='0123456789'
13954 as_cr_alnum=$as_cr_Letters$as_cr_digits
13955
13956
13957 # Determine whether it's possible to make 'echo' print without a newline.
13958 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
13959 # for compatibility with existing Makefiles.
13960 ECHO_C= ECHO_N= ECHO_T=
13961 case `echo -n x` in #(((((
13962 -n*)
13963 case `echo 'xy\c'` in
13964 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13965 xy) ECHO_C='\c';;
13966 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13967 ECHO_T=' ';;
13968 esac;;
13969 *)
13970 ECHO_N='-n';;
13971 esac
13972
13973 # For backward compatibility with old third-party macros, we provide
13974 # the shell variables $as_echo and $as_echo_n. New code should use
13975 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
13976 as_echo='printf %s\n'
13977 as_echo_n='printf %s'
13978
13979 rm -f conf$$ conf$$.exe conf$$.file
13980 if test -d conf$$.dir; then
13981 rm -f conf$$.dir/conf$$.file
13982 else
13983 rm -f conf$$.dir
13984 mkdir conf$$.dir 2>/dev/null
13985 fi
13986 if (echo >conf$$.file) 2>/dev/null; then
13987 if ln -s conf$$.file conf$$ 2>/dev/null; then
13988 as_ln_s='ln -s'
13989 # ... but there are two gotchas:
13990 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
13991 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
13992 # In both cases, we have to default to 'cp -pR'.
13993 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13994 as_ln_s='cp -pR'
13995 elif ln conf$$.file conf$$ 2>/dev/null; then
13996 as_ln_s=ln
13997 else
13998 as_ln_s='cp -pR'
13999 fi
14000 else
14001 as_ln_s='cp -pR'
14002 fi
14003 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14004 rmdir conf$$.dir 2>/dev/null
14005
14006
14007 # as_fn_mkdir_p
14008 # -------------
14009 # Create "$as_dir" as a directory, including parents if necessary.
14010 as_fn_mkdir_p ()
14011 {
14012
14013 case $as_dir in #(
14014 -*) as_dir=./$as_dir;;
14015 esac
14016 test -d "$as_dir" || eval $as_mkdir_p || {
14017 as_dirs=
14018 while :; do
14019 case $as_dir in #(
14020 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14021 *) as_qdir=$as_dir;;
14022 esac
14023 as_dirs="'$as_qdir' $as_dirs"
14024 as_dir=`$as_dirname -- "$as_dir" ||
14025 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14026 X"$as_dir" : 'X\(//\)[^/]' \| \
14027 X"$as_dir" : 'X\(//\)$' \| \
14028 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14029 printf "%s\n" X"$as_dir" |
14030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14031 s//\1/
14032 q
14033 }
14034 /^X\(\/\/\)[^/].*/{
14035 s//\1/
14036 q
14037 }
14038 /^X\(\/\/\)$/{
14039 s//\1/
14040 q
14041 }
14042 /^X\(\/\).*/{
14043 s//\1/
14044 q
14045 }
14046 s/.*/./; q'`
14047 test -d "$as_dir" && break
14048 done
14049 test -z "$as_dirs" || eval "mkdir $as_dirs"
14050 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14051
14052
14053 } # as_fn_mkdir_p
14054 if mkdir -p . 2>/dev/null; then
14055 as_mkdir_p='mkdir -p "$as_dir"'
14056 else
14057 test -d ./-p && rmdir ./-p
14058 as_mkdir_p=false
14059 fi
14060
14061
14062 # as_fn_executable_p FILE
14063 # -----------------------
14064 # Test if FILE is an executable regular file.
14065 as_fn_executable_p ()
14066 {
14067 test -f "$1" && test -x "$1"
14068 } # as_fn_executable_p
14069 as_test_x='test -x'
14070 as_executable_p=as_fn_executable_p
14071
14072 # Sed expression to map a string onto a valid CPP name.
14073 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14074 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
14075
14076 # Sed expression to map a string onto a valid variable name.
14077 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14078 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
14079
14080
14081 exec 6>&1
14082 ## ----------------------------------- ##
14083 ## Main body of $CONFIG_STATUS script. ##
14084 ## ----------------------------------- ##
14085 _ASEOF
14086 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14087
14088 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14089 # Save the log message, to keep $0 and so on meaningful, and to
14090 # report actual input values of CONFIG_FILES etc. instead of their
14091 # values after options handling.
14092 ac_log="
14093 This file was extended by xfs $as_me 1.2.2, which was
14094 generated by GNU Autoconf 2.72. Invocation command line was
14095
14096 CONFIG_FILES = $CONFIG_FILES
14097 CONFIG_HEADERS = $CONFIG_HEADERS
14098 CONFIG_LINKS = $CONFIG_LINKS
14099 CONFIG_COMMANDS = $CONFIG_COMMANDS
14100 $ $0 $@
14101
14102 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14103 "
14104
14105 _ACEOF
14106
14107 case $ac_config_files in *"
14108 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14109 esac
14110
14111 case $ac_config_headers in *"
14112 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14113 esac
14114
14115
14116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14117 # Files that config.status was made for.
14118 config_files="$ac_config_files"
14119 config_headers="$ac_config_headers"
14120 config_commands="$ac_config_commands"
14121
14122 _ACEOF
14123
14124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14125 ac_cs_usage="\
14126 '$as_me' instantiates files and other configuration actions
14127 from templates according to the current configuration. Unless the files
14128 and actions are specified as TAGs, all are instantiated by default.
14129
14130 Usage: $0 [OPTION]... [TAG]...
14131
14132 -h, --help print this help, then exit
14133 -V, --version print version number and configuration settings, then exit
14134 --config print configuration, then exit
14135 -q, --quiet, --silent
14136 do not print progress messages
14137 -d, --debug don't remove temporary files
14138 --recheck update $as_me by reconfiguring in the same conditions
14139 --file=FILE[:TEMPLATE]
14140 instantiate the configuration file FILE
14141 --header=FILE[:TEMPLATE]
14142 instantiate the configuration header FILE
14143
14144 Configuration files:
14145 $config_files
14146
14147 Configuration headers:
14148 $config_headers
14149
14150 Configuration commands:
14151 $config_commands
14152
14153 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xfs/-/issues>."
14154
14155 _ACEOF
14156 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
14157 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
14158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14159 ac_cs_config='$ac_cs_config_escaped'
14160 ac_cs_version="\\
14161 xfs config.status 1.2.2
14162 configured by $0, generated by GNU Autoconf 2.72,
14163 with options \\"\$ac_cs_config\\"
14164
14165 Copyright (C) 2023 Free Software Foundation, Inc.
14166 This config.status script is free software; the Free Software Foundation
14167 gives unlimited permission to copy, distribute and modify it."
14168
14169 ac_pwd='$ac_pwd'
14170 srcdir='$srcdir'
14171 INSTALL='$INSTALL'
14172 MKDIR_P='$MKDIR_P'
14173 AWK='$AWK'
14174 test -n "\$AWK" || AWK=awk
14175 _ACEOF
14176
14177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14178 # The default lists apply if the user does not specify any file.
14179 ac_need_defaults=:
14180 while test $# != 0
14181 do
14182 case $1 in
14183 --*=?*)
14184 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14185 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14186 ac_shift=:
14187 ;;
14188 --*=)
14189 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14190 ac_optarg=
14191 ac_shift=:
14192 ;;
14193 *)
14194 ac_option=$1
14195 ac_optarg=$2
14196 ac_shift=shift
14197 ;;
14198 esac
14199
14200 case $ac_option in
14201 # Handling of the options.
14202 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14203 ac_cs_recheck=: ;;
14204 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14205 printf "%s\n" "$ac_cs_version"; exit ;;
14206 --config | --confi | --conf | --con | --co | --c )
14207 printf "%s\n" "$ac_cs_config"; exit ;;
14208 --debug | --debu | --deb | --de | --d | -d )
14209 debug=: ;;
14210 --file | --fil | --fi | --f )
14211 $ac_shift
14212 case $ac_optarg in
14213 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14214 '') as_fn_error $? "missing file argument" ;;
14215 esac
14216 as_fn_append CONFIG_FILES " '$ac_optarg'"
14217 ac_need_defaults=false;;
14218 --header | --heade | --head | --hea )
14219 $ac_shift
14220 case $ac_optarg in
14221 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14222 esac
14223 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14224 ac_need_defaults=false;;
14225 --he | --h)
14226 # Conflict between --help and --header
14227 as_fn_error $? "ambiguous option: '$1'
14228 Try '$0 --help' for more information.";;
14229 --help | --hel | -h )
14230 printf "%s\n" "$ac_cs_usage"; exit ;;
14231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14232 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14233 ac_cs_silent=: ;;
14234
14235 # This is an error.
14236 -*) as_fn_error $? "unrecognized option: '$1'
14237 Try '$0 --help' for more information." ;;
14238
14239 *) as_fn_append ac_config_targets " $1"
14240 ac_need_defaults=false ;;
14241
14242 esac
14243 shift
14244 done
14245
14246 ac_configure_extra_args=
14247
14248 if $ac_cs_silent; then
14249 exec 6>/dev/null
14250 ac_configure_extra_args="$ac_configure_extra_args --silent"
14251 fi
14252
14253 _ACEOF
14254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14255 if \$ac_cs_recheck; then
14256 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14257 shift
14258 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
14259 CONFIG_SHELL='$SHELL'
14260 export CONFIG_SHELL
14261 exec "\$@"
14262 fi
14263
14264 _ACEOF
14265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14266 exec 5>>config.log
14267 {
14268 echo
14269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14270 ## Running $as_me. ##
14271 _ASBOX
14272 printf "%s\n" "$ac_log"
14273 } >&5
14274
14275 _ACEOF
14276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14277 #
14278 # INIT-COMMANDS
14279 #
14280 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
14281
14282 _ACEOF
14283
14284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14285
14286 # Handling of arguments.
14287 for ac_config_target in $ac_config_targets
14288 do
14289 case $ac_config_target in
14290 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14291 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14292 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14293 "config/Makefile") CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
14294 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14295 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14296
14297 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
14298 esac
14299 done
14300
14301
14302 # If the user did not use the arguments to specify the items to instantiate,
14303 # then the envvar interface is used. Set only those that are not.
14304 # We use the long form for the default assignment because of an extremely
14305 # bizarre bug on SunOS 4.1.3.
14306 if $ac_need_defaults; then
14307 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
14308 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
14309 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
14310 fi
14311
14312 # Have a temporary directory for convenience. Make it in the build tree
14313 # simply because there is no reason against having it here, and in addition,
14314 # creating and moving files from /tmp can sometimes cause problems.
14315 # Hook for its removal unless debugging.
14316 # Note that there is a small window in which the directory will not be cleaned:
14317 # after its creation but before its name has been assigned to '$tmp'.
14318 $debug ||
14319 {
14320 tmp= ac_tmp=
14321 trap 'exit_status=$?
14322 : "${ac_tmp:=$tmp}"
14323 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14324 ' 0
14325 trap 'as_fn_exit 1' 1 2 13 15
14326 }
14327 # Create a (secure) tmp directory for tmp files.
14328
14329 {
14330 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14331 test -d "$tmp"
14332 } ||
14333 {
14334 tmp=./conf$$-$RANDOM
14335 (umask 077 && mkdir "$tmp")
14336 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14337 ac_tmp=$tmp
14338
14339 # Set up the scripts for CONFIG_FILES section.
14340 # No need to generate them if there are no CONFIG_FILES.
14341 # This happens for instance with './config.status config.h'.
14342 if test -n "$CONFIG_FILES"; then
14343
14344
14345 ac_cr=`echo X | tr X '\015'`
14346 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14347 # But we know of no other shell where ac_cr would be empty at this
14348 # point, so we can use a bashism as a fallback.
14349 if test "x$ac_cr" = x; then
14350 eval ac_cr=\$\'\\r\'
14351 fi
14352 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14353 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14354 ac_cs_awk_cr='\\r'
14355 else
14356 ac_cs_awk_cr=$ac_cr
14357 fi
14358
14359 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14360 _ACEOF
14361
14362
14363 {
14364 echo "cat >conf$$subs.awk <<_ACEOF" &&
14365 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14366 echo "_ACEOF"
14367 } >conf$$subs.sh ||
14368 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14369 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14370 ac_delim='%!_!# '
14371 for ac_last_try in false false false false false :; do
14372 . ./conf$$subs.sh ||
14373 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14374
14375 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14376 if test $ac_delim_n = $ac_delim_num; then
14377 break
14378 elif $ac_last_try; then
14379 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14380 else
14381 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14382 fi
14383 done
14384 rm -f conf$$subs.sh
14385
14386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14387 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14388 _ACEOF
14389 sed -n '
14390 h
14391 s/^/S["/; s/!.*/"]=/
14392 p
14393 g
14394 s/^[^!]*!//
14395 :repl
14396 t repl
14397 s/'"$ac_delim"'$//
14398 t delim
14399 :nl
14400 h
14401 s/\(.\{148\}\)..*/\1/
14402 t more1
14403 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14404 p
14405 n
14406 b repl
14407 :more1
14408 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14409 p
14410 g
14411 s/.\{148\}//
14412 t nl
14413 :delim
14414 h
14415 s/\(.\{148\}\)..*/\1/
14416 t more2
14417 s/["\\]/\\&/g; s/^/"/; s/$/"/
14418 p
14419 b
14420 :more2
14421 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14422 p
14423 g
14424 s/.\{148\}//
14425 t delim
14426 ' <conf$$subs.awk | sed '
14427 /^[^""]/{
14428 N
14429 s/\n//
14430 }
14431 ' >>$CONFIG_STATUS || ac_write_fail=1
14432 rm -f conf$$subs.awk
14433 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14434 _ACAWK
14435 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14436 for (key in S) S_is_set[key] = 1
14437 FS = ""
14438
14439 }
14440 {
14441 line = $ 0
14442 nfields = split(line, field, "@")
14443 substed = 0
14444 len = length(field[1])
14445 for (i = 2; i < nfields; i++) {
14446 key = field[i]
14447 keylen = length(key)
14448 if (S_is_set[key]) {
14449 value = S[key]
14450 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14451 len += length(value) + length(field[++i])
14452 substed = 1
14453 } else
14454 len += 1 + keylen
14455 }
14456
14457 print line
14458 }
14459
14460 _ACAWK
14461 _ACEOF
14462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14463 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14464 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14465 else
14466 cat
14467 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14468 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14469 _ACEOF
14470
14471 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14472 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14473 # trailing colons and then remove the whole line if VPATH becomes empty
14474 # (actually we leave an empty line to preserve line numbers).
14475 if test "x$srcdir" = x.; then
14476 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14477 h
14478 s///
14479 s/^/:/
14480 s/[ ]*$/:/
14481 s/:\$(srcdir):/:/g
14482 s/:\${srcdir}:/:/g
14483 s/:@srcdir@:/:/g
14484 s/^:*//
14485 s/:*$//
14486 x
14487 s/\(=[ ]*\).*/\1/
14488 G
14489 s/\n//
14490 s/^[^=]*=[ ]*$//
14491 }'
14492 fi
14493
14494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14495 fi # test -n "$CONFIG_FILES"
14496
14497 # Set up the scripts for CONFIG_HEADERS section.
14498 # No need to generate them if there are no CONFIG_HEADERS.
14499 # This happens for instance with './config.status Makefile'.
14500 if test -n "$CONFIG_HEADERS"; then
14501 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14502 BEGIN {
14503 _ACEOF
14504
14505 # Transform confdefs.h into an awk script 'defines.awk', embedded as
14506 # here-document in config.status, that substitutes the proper values into
14507 # config.h.in to produce config.h.
14508
14509 # Create a delimiter string that does not exist in confdefs.h, to ease
14510 # handling of long lines.
14511 ac_delim='%!_!# '
14512 for ac_last_try in false false :; do
14513 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14514 if test -z "$ac_tt"; then
14515 break
14516 elif $ac_last_try; then
14517 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14518 else
14519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14520 fi
14521 done
14522
14523 # For the awk script, D is an array of macro values keyed by name,
14524 # likewise P contains macro parameters if any. Preserve backslash
14525 # newline sequences.
14526
14527 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14528 sed -n '
14529 s/.\{148\}/&'"$ac_delim"'/g
14530 t rset
14531 :rset
14532 s/^[ ]*#[ ]*define[ ][ ]*/ /
14533 t def
14534 d
14535 :def
14536 s/\\$//
14537 t bsnl
14538 s/["\\]/\\&/g
14539 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14540 D["\1"]=" \3"/p
14541 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14542 d
14543 :bsnl
14544 s/["\\]/\\&/g
14545 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14546 D["\1"]=" \3\\\\\\n"\\/p
14547 t cont
14548 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14549 t cont
14550 d
14551 :cont
14552 n
14553 s/.\{148\}/&'"$ac_delim"'/g
14554 t clear
14555 :clear
14556 s/\\$//
14557 t bsnlc
14558 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14559 d
14560 :bsnlc
14561 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14562 b cont
14563 ' <confdefs.h | sed '
14564 s/'"$ac_delim"'/"\\\
14565 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14566
14567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14568 for (key in D) D_is_set[key] = 1
14569 FS = ""
14570 }
14571 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14572 line = \$ 0
14573 split(line, arg, " ")
14574 if (arg[1] == "#") {
14575 defundef = arg[2]
14576 mac1 = arg[3]
14577 } else {
14578 defundef = substr(arg[1], 2)
14579 mac1 = arg[2]
14580 }
14581 split(mac1, mac2, "(") #)
14582 macro = mac2[1]
14583 prefix = substr(line, 1, index(line, defundef) - 1)
14584 if (D_is_set[macro]) {
14585 # Preserve the white space surrounding the "#".
14586 print prefix "define", macro P[macro] D[macro]
14587 next
14588 } else {
14589 # Replace #undef with comments. This is necessary, for example,
14590 # in the case of _POSIX_SOURCE, which is predefined and required
14591 # on some systems where configure will not decide to define it.
14592 if (defundef == "undef") {
14593 print "/*", prefix defundef, macro, "*/"
14594 next
14595 }
14596 }
14597 }
14598 { print }
14599 _ACAWK
14600 _ACEOF
14601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14602 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14603 fi # test -n "$CONFIG_HEADERS"
14604
14605
14606 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14607 shift
14608 for ac_tag
14609 do
14610 case $ac_tag in
14611 :[FHLC]) ac_mode=$ac_tag; continue;;
14612 esac
14613 case $ac_mode$ac_tag in
14614 :[FHL]*:*);;
14615 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
14616 :[FH]-) ac_tag=-:-;;
14617 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14618 esac
14619 ac_save_IFS=$IFS
14620 IFS=:
14621 set x $ac_tag
14622 IFS=$ac_save_IFS
14623 shift
14624 ac_file=$1
14625 shift
14626
14627 case $ac_mode in
14628 :L) ac_source=$1;;
14629 :[FH])
14630 ac_file_inputs=
14631 for ac_f
14632 do
14633 case $ac_f in
14634 -) ac_f="$ac_tmp/stdin";;
14635 *) # Look for the file first in the build tree, then in the source tree
14636 # (if the path is not absolute). The absolute path cannot be DOS-style,
14637 # because $ac_f cannot contain ':'.
14638 test -f "$ac_f" ||
14639 case $ac_f in
14640 [\\/$]*) false;;
14641 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14642 esac ||
14643 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
14644 esac
14645 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14646 as_fn_append ac_file_inputs " '$ac_f'"
14647 done
14648
14649 # Let's still pretend it is 'configure' which instantiates (i.e., don't
14650 # use $as_me), people would be surprised to read:
14651 # /* config.h. Generated by config.status. */
14652 configure_input='Generated from '`
14653 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14654 `' by configure.'
14655 if test x"$ac_file" != x-; then
14656 configure_input="$ac_file. $configure_input"
14657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14658 printf "%s\n" "$as_me: creating $ac_file" >&6;}
14659 fi
14660 # Neutralize special characters interpreted by sed in replacement strings.
14661 case $configure_input in #(
14662 *\&* | *\|* | *\\* )
14663 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
14664 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14665 *) ac_sed_conf_input=$configure_input;;
14666 esac
14667
14668 case $ac_tag in
14669 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14670 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14671 esac
14672 ;;
14673 esac
14674
14675 ac_dir=`$as_dirname -- "$ac_file" ||
14676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14677 X"$ac_file" : 'X\(//\)[^/]' \| \
14678 X"$ac_file" : 'X\(//\)$' \| \
14679 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14680 printf "%s\n" X"$ac_file" |
14681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14682 s//\1/
14683 q
14684 }
14685 /^X\(\/\/\)[^/].*/{
14686 s//\1/
14687 q
14688 }
14689 /^X\(\/\/\)$/{
14690 s//\1/
14691 q
14692 }
14693 /^X\(\/\).*/{
14694 s//\1/
14695 q
14696 }
14697 s/.*/./; q'`
14698 as_dir="$ac_dir"; as_fn_mkdir_p
14699 ac_builddir=.
14700
14701 case "$ac_dir" in
14702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14703 *)
14704 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
14705 # A ".." for each directory in $ac_dir_suffix.
14706 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14707 case $ac_top_builddir_sub in
14708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14710 esac ;;
14711 esac
14712 ac_abs_top_builddir=$ac_pwd
14713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14714 # for backward compatibility:
14715 ac_top_builddir=$ac_top_build_prefix
14716
14717 case $srcdir in
14718 .) # We are building in place.
14719 ac_srcdir=.
14720 ac_top_srcdir=$ac_top_builddir_sub
14721 ac_abs_top_srcdir=$ac_pwd ;;
14722 [\\/]* | ?:[\\/]* ) # Absolute name.
14723 ac_srcdir=$srcdir$ac_dir_suffix;
14724 ac_top_srcdir=$srcdir
14725 ac_abs_top_srcdir=$srcdir ;;
14726 *) # Relative name.
14727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14728 ac_top_srcdir=$ac_top_build_prefix$srcdir
14729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14730 esac
14731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14732
14733
14734 case $ac_mode in
14735 :F)
14736 #
14737 # CONFIG_FILE
14738 #
14739
14740 case $INSTALL in
14741 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14742 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14743 esac
14744 ac_MKDIR_P=$MKDIR_P
14745 case $MKDIR_P in
14746 [\\/$]* | ?:[\\/]* ) ;;
14747 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14748 esac
14749 _ACEOF
14750
14751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14752 # If the template does not know about datarootdir, expand it.
14753 # FIXME: This hack should be removed a few years after 2.60.
14754 ac_datarootdir_hack=; ac_datarootdir_seen=
14755 ac_sed_dataroot='
14756 /datarootdir/ {
14757 p
14758 q
14759 }
14760 /@datadir@/p
14761 /@docdir@/p
14762 /@infodir@/p
14763 /@localedir@/p
14764 /@mandir@/p'
14765 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14766 *datarootdir*) ac_datarootdir_seen=yes;;
14767 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14769 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14770 _ACEOF
14771 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14772 ac_datarootdir_hack='
14773 s&@datadir@&$datadir&g
14774 s&@docdir@&$docdir&g
14775 s&@infodir@&$infodir&g
14776 s&@localedir@&$localedir&g
14777 s&@mandir@&$mandir&g
14778 s&\\\${datarootdir}&$datarootdir&g' ;;
14779 esac
14780 _ACEOF
14781
14782 # Neutralize VPATH when '$srcdir' = '.'.
14783 # Shell code in configure.ac might set extrasub.
14784 # FIXME: do we really want to maintain this feature?
14785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14786 ac_sed_extra="$ac_vpsub
14787 $extrasub
14788 _ACEOF
14789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14790 :t
14791 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14792 s|@configure_input@|$ac_sed_conf_input|;t t
14793 s&@top_builddir@&$ac_top_builddir_sub&;t t
14794 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14795 s&@srcdir@&$ac_srcdir&;t t
14796 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14797 s&@top_srcdir@&$ac_top_srcdir&;t t
14798 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14799 s&@builddir@&$ac_builddir&;t t
14800 s&@abs_builddir@&$ac_abs_builddir&;t t
14801 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14802 s&@INSTALL@&$ac_INSTALL&;t t
14803 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14804 $ac_datarootdir_hack
14805 "
14806 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14807 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14808
14809 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14810 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14812 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
14814 which seems to be undefined. Please make sure it is defined" >&5
14815 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
14816 which seems to be undefined. Please make sure it is defined" >&2;}
14817
14818 rm -f "$ac_tmp/stdin"
14819 case $ac_file in
14820 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14821 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14822 esac \
14823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14824 ;;
14825 :H)
14826 #
14827 # CONFIG_HEADER
14828 #
14829 if test x"$ac_file" != x-; then
14830 {
14831 printf "%s\n" "/* $configure_input */" >&1 \
14832 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14833 } >"$ac_tmp/config.h" \
14834 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14835 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14837 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
14838 else
14839 rm -f "$ac_file"
14840 mv "$ac_tmp/config.h" "$ac_file" \
14841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14842 fi
14843 else
14844 printf "%s\n" "/* $configure_input */" >&1 \
14845 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14846 || as_fn_error $? "could not create -" "$LINENO" 5
14847 fi
14848 # Compute "$ac_file"'s index in $config_headers.
14849 _am_arg="$ac_file"
14850 _am_stamp_count=1
14851 for _am_header in $config_headers :; do
14852 case $_am_header in
14853 $_am_arg | $_am_arg:* )
14854 break ;;
14855 * )
14856 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14857 esac
14858 done
14859 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14860 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14861 X"$_am_arg" : 'X\(//\)[^/]' \| \
14862 X"$_am_arg" : 'X\(//\)$' \| \
14863 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14864 printf "%s\n" X"$_am_arg" |
14865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14866 s//\1/
14867 q
14868 }
14869 /^X\(\/\/\)[^/].*/{
14870 s//\1/
14871 q
14872 }
14873 /^X\(\/\/\)$/{
14874 s//\1/
14875 q
14876 }
14877 /^X\(\/\).*/{
14878 s//\1/
14879 q
14880 }
14881 s/.*/./; q'`/stamp-h$_am_stamp_count
14882 ;;
14883
14884 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14885 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
14886 ;;
14887 esac
14888
14889
14890 case $ac_file$ac_mode in
14891 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14892 # Older Autoconf quotes --file arguments for eval, but not when files
14893 # are listed without --file. Let's play safe and only enable the eval
14894 # if we detect the quoting.
14895 # TODO: see whether this extra hack can be removed once we start
14896 # requiring Autoconf 2.70 or later.
14897 case $CONFIG_FILES in #(
14898 *\'*) :
14899 eval set x "$CONFIG_FILES" ;; #(
14900 *) :
14901 set x $CONFIG_FILES ;; #(
14902 *) :
14903 ;;
14904 esac
14905 shift
14906 # Used to flag and report bootstrapping failures.
14907 am_rc=0
14908 for am_mf
14909 do
14910 # Strip MF so we end up with the name of the file.
14911 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
14912 # Check whether this is an Automake generated Makefile which includes
14913 # dependency-tracking related rules and includes.
14914 # Grep'ing the whole file directly is not great: AIX grep has a line
14915 # limit of 2048, but all sed's we know have understand at least 4000.
14916 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
14917 || continue
14918 am_dirpart=`$as_dirname -- "$am_mf" ||
14919 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14920 X"$am_mf" : 'X\(//\)[^/]' \| \
14921 X"$am_mf" : 'X\(//\)$' \| \
14922 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14923 printf "%s\n" X"$am_mf" |
14924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14925 s//\1/
14926 q
14927 }
14928 /^X\(\/\/\)[^/].*/{
14929 s//\1/
14930 q
14931 }
14932 /^X\(\/\/\)$/{
14933 s//\1/
14934 q
14935 }
14936 /^X\(\/\).*/{
14937 s//\1/
14938 q
14939 }
14940 s/.*/./; q'`
14941 am_filepart=`$as_basename -- "$am_mf" ||
14942 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
14943 X"$am_mf" : 'X\(//\)$' \| \
14944 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
14945 printf "%s\n" X/"$am_mf" |
14946 sed '/^.*\/\([^/][^/]*\)\/*$/{
14947 s//\1/
14948 q
14949 }
14950 /^X\/\(\/\/\)$/{
14951 s//\1/
14952 q
14953 }
14954 /^X\/\(\/\).*/{
14955 s//\1/
14956 q
14957 }
14958 s/.*/./; q'`
14959 { echo "$as_me:$LINENO: cd "$am_dirpart" \
14960 && sed -e '/# am--include-marker/d' "$am_filepart" \
14961 | $MAKE -f - am--depfiles" >&5
14962 (cd "$am_dirpart" \
14963 && sed -e '/# am--include-marker/d' "$am_filepart" \
14964 | $MAKE -f - am--depfiles) >&5 2>&5
14965 ac_status=$?
14966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967 (exit $ac_status); } || am_rc=$?
14968 done
14969 if test $am_rc -ne 0; then
14970 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14971 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14972 as_fn_error $? "Something went wrong bootstrapping makefile fragments
14973 for automatic dependency tracking. If GNU make was not used, consider
14974 re-running the configure script with MAKE=\"gmake\" (or whatever is
14975 necessary). You can also try re-running configure with the
14976 '--disable-dependency-tracking' option to at least be able to build
14977 the package (albeit without support for automatic dependency tracking).
14978 See 'config.log' for more details" "$LINENO" 5; }
14979 fi
14980 { am_dirpart=; unset am_dirpart;}
14981 { am_filepart=; unset am_filepart;}
14982 { am_mf=; unset am_mf;}
14983 { am_rc=; unset am_rc;}
14984 rm -f conftest-deps.mk
14985 }
14986 ;;
14987
14988 esac
14989 done # for ac_tag
14990
14991
14992 as_fn_exit 0
14993 _ACEOF
14994 ac_clean_files=$ac_clean_files_save
14995
14996 test $ac_write_fail = 0 ||
14997 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14998
14999
15000 # configure is writing to config.log, and then calls config.status.
15001 # config.status does its own redirection, appending to config.log.
15002 # Unfortunately, on DOS this fails, as config.log is still kept open
15003 # by configure, so config.status won't be able to write to it; its
15004 # output is simply discarded. So we exec the FD to /dev/null,
15005 # effectively closing config.log, so it can be properly (re)opened and
15006 # appended to by config.status. When coming back to configure, we
15007 # need to make the FD available again.
15008 if test "$no_create" != yes; then
15009 ac_cs_success=:
15010 ac_config_status_args=
15011 test "$silent" = yes &&
15012 ac_config_status_args="$ac_config_status_args --quiet"
15013 exec 5>/dev/null
15014 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15015 exec 5>>config.log
15016 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15017 # would make configure fail if this is the last instruction.
15018 $ac_cs_success || as_fn_exit 1
15019 fi
15020 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15022 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15023 fi
15024
15025
15026