configure revision 1.1.1.6 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for xedit 1.2.3.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/app/xedit/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 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 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
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="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
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 \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else $as_nop
231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi
236 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
271 $0: https://gitlab.freedesktop.org/xorg/app/xedit/issues
272 $0: about your system, including any error possibly output
273 $0: before this message. Then install a modern shell, or
274 $0: manually run the script under such a shell if you do
275 $0: have one."
276 fi
277 exit 1
278 fi
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317 # as_fn_nop
318 # ---------
319 # Do nothing but, unlike ":", preserve the value of $?.
320 as_fn_nop ()
321 {
322 return $?
323 }
324 as_nop=as_fn_nop
325
326 # as_fn_mkdir_p
327 # -------------
328 # Create "$as_dir" as a directory, including parents if necessary.
329 as_fn_mkdir_p ()
330 {
331
332 case $as_dir in #(
333 -*) as_dir=./$as_dir;;
334 esac
335 test -d "$as_dir" || eval $as_mkdir_p || {
336 as_dirs=
337 while :; do
338 case $as_dir in #(
339 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340 *) as_qdir=$as_dir;;
341 esac
342 as_dirs="'$as_qdir' $as_dirs"
343 as_dir=`$as_dirname -- "$as_dir" ||
344 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
345 X"$as_dir" : 'X\(//\)[^/]' \| \
346 X"$as_dir" : 'X\(//\)$' \| \
347 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
348 printf "%s\n" X"$as_dir" |
349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)[^/].*/{
354 s//\1/
355 q
356 }
357 /^X\(\/\/\)$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\).*/{
362 s//\1/
363 q
364 }
365 s/.*/./; q'`
366 test -d "$as_dir" && break
367 done
368 test -z "$as_dirs" || eval "mkdir $as_dirs"
369 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370
371
372 } # as_fn_mkdir_p
373
374 # as_fn_executable_p FILE
375 # -----------------------
376 # Test if FILE is an executable regular file.
377 as_fn_executable_p ()
378 {
379 test -f "$1" && test -x "$1"
380 } # as_fn_executable_p
381 # as_fn_append VAR VALUE
382 # ----------------------
383 # Append the text in VALUE to the end of the definition contained in VAR. Take
384 # advantage of any shell optimizations that allow amortized linear growth over
385 # repeated appends, instead of the typical quadratic growth present in naive
386 # implementations.
387 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
388 then :
389 eval 'as_fn_append ()
390 {
391 eval $1+=\$2
392 }'
393 else $as_nop
394 as_fn_append ()
395 {
396 eval $1=\$$1\$2
397 }
398 fi # as_fn_append
399
400 # as_fn_arith ARG...
401 # ------------------
402 # Perform arithmetic evaluation on the ARGs, and store the result in the
403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
404 # must be portable across $(()) and expr.
405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
406 then :
407 eval 'as_fn_arith ()
408 {
409 as_val=$(( $* ))
410 }'
411 else $as_nop
412 as_fn_arith ()
413 {
414 as_val=`expr "$@" || test $? -eq 1`
415 }
416 fi # as_fn_arith
417
418 # as_fn_nop
419 # ---------
420 # Do nothing but, unlike ":", preserve the value of $?.
421 as_fn_nop ()
422 {
423 return $?
424 }
425 as_nop=as_fn_nop
426
427 # as_fn_error STATUS ERROR [LINENO LOG_FD]
428 # ----------------------------------------
429 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
430 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
431 # script with STATUS, using 1 if that was 0.
432 as_fn_error ()
433 {
434 as_status=$1; test $as_status -eq 0 && as_status=1
435 if test "$4"; then
436 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 fi
439 printf "%s\n" "$as_me: error: $2" >&2
440 as_fn_exit $as_status
441 } # as_fn_error
442
443 if expr a : '\(a\)' >/dev/null 2>&1 &&
444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
445 as_expr=expr
446 else
447 as_expr=false
448 fi
449
450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
451 as_basename=basename
452 else
453 as_basename=false
454 fi
455
456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
457 as_dirname=dirname
458 else
459 as_dirname=false
460 fi
461
462 as_me=`$as_basename -- "$0" ||
463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
464 X"$0" : 'X\(//\)$' \| \
465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
466 printf "%s\n" X/"$0" |
467 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\/\)$/{
472 s//\1/
473 q
474 }
475 /^X\/\(\/\).*/{
476 s//\1/
477 q
478 }
479 s/.*/./; q'`
480
481 # Avoid depending upon Character Ranges.
482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
485 as_cr_digits='0123456789'
486 as_cr_alnum=$as_cr_Letters$as_cr_digits
487
488
489 as_lineno_1=$LINENO as_lineno_1a=$LINENO
490 as_lineno_2=$LINENO as_lineno_2a=$LINENO
491 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
492 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
493 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
494 sed -n '
495 p
496 /[$]LINENO/=
497 ' <$as_myself |
498 sed '
499 s/[$]LINENO.*/&-/
500 t lineno
501 b
502 :lineno
503 N
504 :loop
505 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
506 t loop
507 s/-\n.*//
508 ' >$as_me.lineno &&
509 chmod +x "$as_me.lineno" ||
510 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
511
512 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
513 # already done that, so ensure we don't try to do so again and fall
514 # in an infinite loop. This has already happened in practice.
515 _as_can_reexec=no; export _as_can_reexec
516 # Don't try to exec as it changes $[0], causing all sort of problems
517 # (the dirname of $[0] is not the place where we might find the
518 # original and so on. Autoconf is especially sensitive to this).
519 . "./$as_me.lineno"
520 # Exit status is that of the last command.
521 exit
522 }
523
524
525 # Determine whether it's possible to make 'echo' print without a newline.
526 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
527 # for compatibility with existing Makefiles.
528 ECHO_C= ECHO_N= ECHO_T=
529 case `echo -n x` in #(((((
530 -n*)
531 case `echo 'xy\c'` in
532 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
533 xy) ECHO_C='\c';;
534 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
535 ECHO_T=' ';;
536 esac;;
537 *)
538 ECHO_N='-n';;
539 esac
540
541 # For backward compatibility with old third-party macros, we provide
542 # the shell variables $as_echo and $as_echo_n. New code should use
543 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
544 as_echo='printf %s\n'
545 as_echo_n='printf %s'
546
547
548 rm -f conf$$ conf$$.exe conf$$.file
549 if test -d conf$$.dir; then
550 rm -f conf$$.dir/conf$$.file
551 else
552 rm -f conf$$.dir
553 mkdir conf$$.dir 2>/dev/null
554 fi
555 if (echo >conf$$.file) 2>/dev/null; then
556 if ln -s conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s='ln -s'
558 # ... but there are two gotchas:
559 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
560 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
561 # In both cases, we have to default to `cp -pR'.
562 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
563 as_ln_s='cp -pR'
564 elif ln conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s=ln
566 else
567 as_ln_s='cp -pR'
568 fi
569 else
570 as_ln_s='cp -pR'
571 fi
572 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
573 rmdir conf$$.dir 2>/dev/null
574
575 if mkdir -p . 2>/dev/null; then
576 as_mkdir_p='mkdir -p "$as_dir"'
577 else
578 test -d ./-p && rmdir ./-p
579 as_mkdir_p=false
580 fi
581
582 as_test_x='test -x'
583 as_executable_p=as_fn_executable_p
584
585 # Sed expression to map a string onto a valid CPP name.
586 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587
588 # Sed expression to map a string onto a valid variable name.
589 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
590
591
592 test -n "$DJDIR" || exec 7<&0 </dev/null
593 exec 6>&1
594
595 # Name of the host.
596 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
597 # so uname gets run too.
598 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
599
600 #
601 # Initializations.
602 #
603 ac_default_prefix=/usr/local
604 ac_clean_files=
605 ac_config_libobj_dir=.
606 LIBOBJS=
607 cross_compiling=no
608 subdirs=
609 MFLAGS=
610 MAKEFLAGS=
611
612 # Identity of this package.
613 PACKAGE_NAME='xedit'
614 PACKAGE_TARNAME='xedit'
615 PACKAGE_VERSION='1.2.3'
616 PACKAGE_STRING='xedit 1.2.3'
617 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/app/xedit/issues'
618 PACKAGE_URL=''
619
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 ac_subst_vars='am__EXEEXT_FALSE
653 am__EXEEXT_TRUE
654 LTLIBOBJS
655 LIBOBJS
656 appdefaultdir
657 APPDEFS_LIBS
658 APPDEFS_CFLAGS
659 NEED_UNSETENV_FALSE
660 NEED_UNSETENV_TRUE
661 NEED_STRCASECMP_FALSE
662 NEED_STRCASECMP_TRUE
663 NEED_REALPATH_FALSE
664 NEED_REALPATH_TRUE
665 LISPDIR
666 PKGDEPS_LIBS
667 PKGDEPS_CFLAGS
668 RANLIB
669 ac_ct_AR
670 AR
671 MAN_SUBSTS
672 XORG_MAN_PAGE
673 ADMIN_MAN_DIR
674 DRIVER_MAN_DIR
675 MISC_MAN_DIR
676 FILE_MAN_DIR
677 LIB_MAN_DIR
678 APP_MAN_DIR
679 ADMIN_MAN_SUFFIX
680 DRIVER_MAN_SUFFIX
681 MISC_MAN_SUFFIX
682 FILE_MAN_SUFFIX
683 LIB_MAN_SUFFIX
684 APP_MAN_SUFFIX
685 SED
686 host_os
687 host_vendor
688 host_cpu
689 host
690 build_os
691 build_vendor
692 build_cpu
693 build
694 INSTALL_CMD
695 PKG_CONFIG_LIBDIR
696 PKG_CONFIG_PATH
697 PKG_CONFIG
698 CHANGELOG_CMD
699 STRICT_CFLAGS
700 CWARNFLAGS
701 BASE_CFLAGS
702 am__fastdepCC_FALSE
703 am__fastdepCC_TRUE
704 CCDEPMODE
705 am__nodep
706 AMDEPBACKSLASH
707 AMDEP_FALSE
708 AMDEP_TRUE
709 am__include
710 DEPDIR
711 OBJEXT
712 EXEEXT
713 ac_ct_CC
714 CPPFLAGS
715 LDFLAGS
716 CFLAGS
717 CC
718 AM_BACKSLASH
719 AM_DEFAULT_VERBOSITY
720 AM_DEFAULT_V
721 AM_V
722 CSCOPE
723 ETAGS
724 CTAGS
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
730 AWK
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 target_alias
749 host_alias
750 build_alias
751 LIBS
752 ECHO_T
753 ECHO_N
754 ECHO_C
755 DEFS
756 mandir
757 localedir
758 libdir
759 psdir
760 pdfdir
761 dvidir
762 htmldir
763 infodir
764 docdir
765 oldincludedir
766 includedir
767 runstatedir
768 localstatedir
769 sharedstatedir
770 sysconfdir
771 datadir
772 datarootdir
773 libexecdir
774 sbindir
775 bindir
776 program_transform_name
777 prefix
778 exec_prefix
779 PACKAGE_URL
780 PACKAGE_BUGREPORT
781 PACKAGE_STRING
782 PACKAGE_VERSION
783 PACKAGE_TARNAME
784 PACKAGE_NAME
785 PATH_SEPARATOR
786 SHELL
787 am__quote'
788 ac_subst_files=''
789 ac_user_opts='
790 enable_option_checking
791 enable_silent_rules
792 enable_dependency_tracking
793 enable_selective_werror
794 enable_strict_compilation
795 with_lispdir
796 with_appdefaultdir
797 '
798 ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 LIBS
805 CPPFLAGS
806 PKG_CONFIG
807 PKG_CONFIG_PATH
808 PKG_CONFIG_LIBDIR
809 PKGDEPS_CFLAGS
810 PKGDEPS_LIBS
811 APPDEFS_CFLAGS
812 APPDEFS_LIBS'
813
814
815 # Initialize some variables set by options.
816 ac_init_help=
817 ac_init_version=false
818 ac_unrecognized_opts=
819 ac_unrecognized_sep=
820 # The variables have the same names as the options, with
821 # dashes changed to underlines.
822 cache_file=/dev/null
823 exec_prefix=NONE
824 no_create=
825 no_recursion=
826 prefix=NONE
827 program_prefix=NONE
828 program_suffix=NONE
829 program_transform_name=s,x,x,
830 silent=
831 site=
832 srcdir=
833 verbose=
834 x_includes=NONE
835 x_libraries=NONE
836
837 # Installation directory options.
838 # These are left unexpanded so users can "make install exec_prefix=/foo"
839 # and all the variables that are supposed to be based on exec_prefix
840 # by default will actually change.
841 # Use braces instead of parens because sh, perl, etc. also accept them.
842 # (The list follows the same order as the GNU Coding Standards.)
843 bindir='${exec_prefix}/bin'
844 sbindir='${exec_prefix}/sbin'
845 libexecdir='${exec_prefix}/libexec'
846 datarootdir='${prefix}/share'
847 datadir='${datarootdir}'
848 sysconfdir='${prefix}/etc'
849 sharedstatedir='${prefix}/com'
850 localstatedir='${prefix}/var'
851 runstatedir='${localstatedir}/run'
852 includedir='${prefix}/include'
853 oldincludedir='/usr/include'
854 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
855 infodir='${datarootdir}/info'
856 htmldir='${docdir}'
857 dvidir='${docdir}'
858 pdfdir='${docdir}'
859 psdir='${docdir}'
860 libdir='${exec_prefix}/lib'
861 localedir='${datarootdir}/locale'
862 mandir='${datarootdir}/man'
863
864 ac_prev=
865 ac_dashdash=
866 for ac_option
867 do
868 # If the previous option needs an argument, assign it.
869 if test -n "$ac_prev"; then
870 eval $ac_prev=\$ac_option
871 ac_prev=
872 continue
873 fi
874
875 case $ac_option in
876 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
877 *=) ac_optarg= ;;
878 *) ac_optarg=yes ;;
879 esac
880
881 case $ac_dashdash$ac_option in
882 --)
883 ac_dashdash=yes ;;
884
885 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 ac_prev=bindir ;;
887 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
888 bindir=$ac_optarg ;;
889
890 -build | --build | --buil | --bui | --bu)
891 ac_prev=build_alias ;;
892 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
893 build_alias=$ac_optarg ;;
894
895 -cache-file | --cache-file | --cache-fil | --cache-fi \
896 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
897 ac_prev=cache_file ;;
898 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
899 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
900 cache_file=$ac_optarg ;;
901
902 --config-cache | -C)
903 cache_file=config.cache ;;
904
905 -datadir | --datadir | --datadi | --datad)
906 ac_prev=datadir ;;
907 -datadir=* | --datadir=* | --datadi=* | --datad=*)
908 datadir=$ac_optarg ;;
909
910 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
911 | --dataroo | --dataro | --datar)
912 ac_prev=datarootdir ;;
913 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
914 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
915 datarootdir=$ac_optarg ;;
916
917 -disable-* | --disable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
919 # Reject names that are not valid shell variable names.
920 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
921 as_fn_error $? "invalid feature name: \`$ac_useropt'"
922 ac_useropt_orig=$ac_useropt
923 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
924 case $ac_user_opts in
925 *"
926 "enable_$ac_useropt"
927 "*) ;;
928 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=no ;;
932
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
937
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
942
943 -enable-* | --enable-*)
944 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947 as_fn_error $? "invalid feature name: \`$ac_useropt'"
948 ac_useropt_orig=$ac_useropt
949 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
950 case $ac_user_opts in
951 *"
952 "enable_$ac_useropt"
953 "*) ;;
954 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
955 ac_unrecognized_sep=', ';;
956 esac
957 eval enable_$ac_useropt=\$ac_optarg ;;
958
959 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
960 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
961 | --exec | --exe | --ex)
962 ac_prev=exec_prefix ;;
963 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
964 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
965 | --exec=* | --exe=* | --ex=*)
966 exec_prefix=$ac_optarg ;;
967
968 -gas | --gas | --ga | --g)
969 # Obsolete; use --with-gas.
970 with_gas=yes ;;
971
972 -help | --help | --hel | --he | -h)
973 ac_init_help=long ;;
974 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
975 ac_init_help=recursive ;;
976 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
977 ac_init_help=short ;;
978
979 -host | --host | --hos | --ho)
980 ac_prev=host_alias ;;
981 -host=* | --host=* | --hos=* | --ho=*)
982 host_alias=$ac_optarg ;;
983
984 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
985 ac_prev=htmldir ;;
986 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
987 | --ht=*)
988 htmldir=$ac_optarg ;;
989
990 -includedir | --includedir | --includedi | --included | --include \
991 | --includ | --inclu | --incl | --inc)
992 ac_prev=includedir ;;
993 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
994 | --includ=* | --inclu=* | --incl=* | --inc=*)
995 includedir=$ac_optarg ;;
996
997 -infodir | --infodir | --infodi | --infod | --info | --inf)
998 ac_prev=infodir ;;
999 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1000 infodir=$ac_optarg ;;
1001
1002 -libdir | --libdir | --libdi | --libd)
1003 ac_prev=libdir ;;
1004 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1005 libdir=$ac_optarg ;;
1006
1007 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1008 | --libexe | --libex | --libe)
1009 ac_prev=libexecdir ;;
1010 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1011 | --libexe=* | --libex=* | --libe=*)
1012 libexecdir=$ac_optarg ;;
1013
1014 -localedir | --localedir | --localedi | --localed | --locale)
1015 ac_prev=localedir ;;
1016 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1017 localedir=$ac_optarg ;;
1018
1019 -localstatedir | --localstatedir | --localstatedi | --localstated \
1020 | --localstate | --localstat | --localsta | --localst | --locals)
1021 ac_prev=localstatedir ;;
1022 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1023 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1024 localstatedir=$ac_optarg ;;
1025
1026 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1027 ac_prev=mandir ;;
1028 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1029 mandir=$ac_optarg ;;
1030
1031 -nfp | --nfp | --nf)
1032 # Obsolete; use --without-fp.
1033 with_fp=no ;;
1034
1035 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1036 | --no-cr | --no-c | -n)
1037 no_create=yes ;;
1038
1039 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1040 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1041 no_recursion=yes ;;
1042
1043 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1044 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1045 | --oldin | --oldi | --old | --ol | --o)
1046 ac_prev=oldincludedir ;;
1047 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1048 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1049 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1050 oldincludedir=$ac_optarg ;;
1051
1052 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1053 ac_prev=prefix ;;
1054 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1055 prefix=$ac_optarg ;;
1056
1057 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1058 | --program-pre | --program-pr | --program-p)
1059 ac_prev=program_prefix ;;
1060 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1061 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1062 program_prefix=$ac_optarg ;;
1063
1064 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1065 | --program-suf | --program-su | --program-s)
1066 ac_prev=program_suffix ;;
1067 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1068 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1069 program_suffix=$ac_optarg ;;
1070
1071 -program-transform-name | --program-transform-name \
1072 | --program-transform-nam | --program-transform-na \
1073 | --program-transform-n | --program-transform- \
1074 | --program-transform | --program-transfor \
1075 | --program-transfo | --program-transf \
1076 | --program-trans | --program-tran \
1077 | --progr-tra | --program-tr | --program-t)
1078 ac_prev=program_transform_name ;;
1079 -program-transform-name=* | --program-transform-name=* \
1080 | --program-transform-nam=* | --program-transform-na=* \
1081 | --program-transform-n=* | --program-transform-=* \
1082 | --program-transform=* | --program-transfor=* \
1083 | --program-transfo=* | --program-transf=* \
1084 | --program-trans=* | --program-tran=* \
1085 | --progr-tra=* | --program-tr=* | --program-t=*)
1086 program_transform_name=$ac_optarg ;;
1087
1088 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1089 ac_prev=pdfdir ;;
1090 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1091 pdfdir=$ac_optarg ;;
1092
1093 -psdir | --psdir | --psdi | --psd | --ps)
1094 ac_prev=psdir ;;
1095 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1096 psdir=$ac_optarg ;;
1097
1098 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1099 | -silent | --silent | --silen | --sile | --sil)
1100 silent=yes ;;
1101
1102 -runstatedir | --runstatedir | --runstatedi | --runstated \
1103 | --runstate | --runstat | --runsta | --runst | --runs \
1104 | --run | --ru | --r)
1105 ac_prev=runstatedir ;;
1106 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1107 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1108 | --run=* | --ru=* | --r=*)
1109 runstatedir=$ac_optarg ;;
1110
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 ac_prev=sbindir ;;
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 | --sbi=* | --sb=*)
1115 sbindir=$ac_optarg ;;
1116
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1120 | --sha | --sh)
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 | --sha=* | --sh=*)
1126 sharedstatedir=$ac_optarg ;;
1127
1128 -site | --site | --sit)
1129 ac_prev=site ;;
1130 -site=* | --site=* | --sit=*)
1131 site=$ac_optarg ;;
1132
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 ac_prev=srcdir ;;
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1137
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1144
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1149
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 verbose=yes ;;
1152
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1155
1156 -with-* | --with-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: \`$ac_useropt'"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=\$ac_optarg ;;
1171
1172 -without-* | --without-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: \`$ac_useropt'"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=no ;;
1187
1188 --x)
1189 # Obsolete; use --with-x.
1190 with_x=yes ;;
1191
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1198
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1205
1206 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1207 Try \`$0 --help' for more information"
1208 ;;
1209
1210 *=*)
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' | [0-9]* | *[!_$as_cr_alnum]* )
1215 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216 esac
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1219
1220 *)
1221 # FIXME: should be removed in autoconf 3.0.
1222 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1226 ;;
1227
1228 esac
1229 done
1230
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error $? "missing argument to $ac_option"
1234 fi
1235
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1238 no) ;;
1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1240 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 esac
1242 fi
1243
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir runstatedir
1249 do
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1252 case $ac_val in
1253 */ )
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1256 esac
1257 # Be sure to have absolute directory names.
1258 case $ac_val in
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 esac
1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1263 done
1264
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1268 build=$build_alias
1269 host=$host_alias
1270 target=$target_alias
1271
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x; then
1274 if test "x$build_alias" = x; then
1275 cross_compiling=maybe
1276 elif test "x$build_alias" != "x$host_alias"; then
1277 cross_compiling=yes
1278 fi
1279 fi
1280
1281 ac_tool_prefix=
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283
1284 test "$silent" = yes && exec 6>/dev/null
1285
1286
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error $? "working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error $? "pwd does not report name of working directory"
1293
1294
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 printf "%s\n" X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1307 q
1308 }
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1311 q
1312 }
1313 /^X\(\/\/\)$/{
1314 s//\1/
1315 q
1316 }
1317 /^X\(\/\).*/{
1318 s//\1/
1319 q
1320 }
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1325 fi
1326 else
1327 ac_srcdir_defaulted=no
1328 fi
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 fi
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 ac_abs_confdir=`(
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 pwd)`
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 srcdir=.
1340 fi
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1344 case $srcdir in
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 esac
1347 for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 done
1353
1354 #
1355 # Report the --help message.
1356 #
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1360 cat <<_ACEOF
1361 \`configure' configures xedit 1.2.3 to adapt to many kinds of systems.
1362
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1364
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1367
1368 Defaults for the options are specified in brackets.
1369
1370 Configuration:
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking ...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 [PREFIX]
1386
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1391
1392 For better control, use the options below.
1393
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1402 --libdir=DIR object code libraries [EPREFIX/lib]
1403 --includedir=DIR C header files [PREFIX/include]
1404 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1405 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1406 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1407 --infodir=DIR info documentation [DATAROOTDIR/info]
1408 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1409 --mandir=DIR man documentation [DATAROOTDIR/man]
1410 --docdir=DIR documentation root [DATAROOTDIR/doc/xedit]
1411 --htmldir=DIR html documentation [DOCDIR]
1412 --dvidir=DIR dvi documentation [DOCDIR]
1413 --pdfdir=DIR pdf documentation [DOCDIR]
1414 --psdir=DIR ps documentation [DOCDIR]
1415 _ACEOF
1416
1417 cat <<\_ACEOF
1418
1419 Program names:
1420 --program-prefix=PREFIX prepend PREFIX to installed program names
1421 --program-suffix=SUFFIX append SUFFIX to installed program names
1422 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1423
1424 System types:
1425 --build=BUILD configure for building on BUILD [guessed]
1426 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1427 _ACEOF
1428 fi
1429
1430 if test -n "$ac_init_help"; then
1431 case $ac_init_help in
1432 short | recursive ) echo "Configuration of xedit 1.2.3:";;
1433 esac
1434 cat <<\_ACEOF
1435
1436 Optional Features:
1437 --disable-option-checking ignore unrecognized --enable/--with options
1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1440 --enable-silent-rules less verbose build output (undo: "make V=1")
1441 --disable-silent-rules verbose build output (undo: "make V=0")
1442 --enable-dependency-tracking
1443 do not reject slow dependency extractors
1444 --disable-dependency-tracking
1445 speeds up one-time build
1446 --disable-selective-werror
1447 Turn off selective compiler errors. (default:
1448 enabled)
1449 --enable-strict-compilation
1450 Enable all warnings from compiler and make them
1451 errors (default: disabled)
1452
1453 Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1456 --with-lispdir=PATH Directory to install lisp files (default:
1457 $libdir/X11/xedit/lisp)
1458 --with-appdefaultdir=<pathname>
1459 specify directory for app-defaults files (default is
1460 autodetected)
1461
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 LIBS libraries to pass to the linker, e.g. -l<library>
1468 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 PKG_CONFIG path to pkg-config utility
1471 PKG_CONFIG_PATH
1472 directories to add to pkg-config's search path
1473 PKG_CONFIG_LIBDIR
1474 path overriding pkg-config's built-in search path
1475 PKGDEPS_CFLAGS
1476 C compiler flags for PKGDEPS, overriding pkg-config
1477 PKGDEPS_LIBS
1478 linker flags for PKGDEPS, overriding pkg-config
1479 APPDEFS_CFLAGS
1480 C compiler flags for APPDEFS, overriding pkg-config
1481 APPDEFS_LIBS
1482 linker flags for APPDEFS, overriding pkg-config
1483
1484 Use these variables to override the choices made by `configure' or to help
1485 it to find libraries and programs with nonstandard names/locations.
1486
1487 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xedit/issues>.
1488 _ACEOF
1489 ac_status=$?
1490 fi
1491
1492 if test "$ac_init_help" = "recursive"; then
1493 # If there are subdirs, report their specific --help.
1494 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1495 test -d "$ac_dir" ||
1496 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1497 continue
1498 ac_builddir=.
1499
1500 case "$ac_dir" in
1501 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1502 *)
1503 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1504 # A ".." for each directory in $ac_dir_suffix.
1505 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1506 case $ac_top_builddir_sub in
1507 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1509 esac ;;
1510 esac
1511 ac_abs_top_builddir=$ac_pwd
1512 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1513 # for backward compatibility:
1514 ac_top_builddir=$ac_top_build_prefix
1515
1516 case $srcdir in
1517 .) # We are building in place.
1518 ac_srcdir=.
1519 ac_top_srcdir=$ac_top_builddir_sub
1520 ac_abs_top_srcdir=$ac_pwd ;;
1521 [\\/]* | ?:[\\/]* ) # Absolute name.
1522 ac_srcdir=$srcdir$ac_dir_suffix;
1523 ac_top_srcdir=$srcdir
1524 ac_abs_top_srcdir=$srcdir ;;
1525 *) # Relative name.
1526 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1527 ac_top_srcdir=$ac_top_build_prefix$srcdir
1528 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1529 esac
1530 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1531
1532 cd "$ac_dir" || { ac_status=$?; continue; }
1533 # Check for configure.gnu first; this name is used for a wrapper for
1534 # Metaconfig's "Configure" on case-insensitive file systems.
1535 if test -f "$ac_srcdir/configure.gnu"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1538 elif test -f "$ac_srcdir/configure"; then
1539 echo &&
1540 $SHELL "$ac_srcdir/configure" --help=recursive
1541 else
1542 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1543 fi || ac_status=$?
1544 cd "$ac_pwd" || { ac_status=$?; break; }
1545 done
1546 fi
1547
1548 test -n "$ac_init_help" && exit $ac_status
1549 if $ac_init_version; then
1550 cat <<\_ACEOF
1551 xedit configure 1.2.3
1552 generated by GNU Autoconf 2.71
1553
1554 Copyright (C) 2021 Free Software Foundation, Inc.
1555 This configure script is free software; the Free Software Foundation
1556 gives unlimited permission to copy, distribute and modify it.
1557 _ACEOF
1558 exit
1559 fi
1560
1561 ## ------------------------ ##
1562 ## Autoconf initialization. ##
1563 ## ------------------------ ##
1564
1565 # ac_fn_c_try_compile LINENO
1566 # --------------------------
1567 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1568 ac_fn_c_try_compile ()
1569 {
1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571 rm -f conftest.$ac_objext conftest.beam
1572 if { { ac_try="$ac_compile"
1573 case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 printf "%s\n" "$ac_try_echo"; } >&5
1579 (eval "$ac_compile") 2>conftest.err
1580 ac_status=$?
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1585 fi
1586 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } && {
1588 test -z "$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 } && test -s conftest.$ac_objext
1591 then :
1592 ac_retval=0
1593 else $as_nop
1594 printf "%s\n" "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1596
1597 ac_retval=1
1598 fi
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1601
1602 } # ac_fn_c_try_compile
1603
1604 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1605 # ------------------------------------------------------------------
1606 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1607 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1608 ac_fn_check_decl ()
1609 {
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 as_decl_name=`echo $2|sed 's/ *(.*//'`
1612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1613 printf %s "checking whether $as_decl_name is declared... " >&6; }
1614 if eval test \${$3+y}
1615 then :
1616 printf %s "(cached) " >&6
1617 else $as_nop
1618 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1619 eval ac_save_FLAGS=\$$6
1620 as_fn_append $6 " $5"
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1623 $4
1624 int
1625 main (void)
1626 {
1627 #ifndef $as_decl_name
1628 #ifdef __cplusplus
1629 (void) $as_decl_use;
1630 #else
1631 (void) $as_decl_name;
1632 #endif
1633 #endif
1634
1635 ;
1636 return 0;
1637 }
1638 _ACEOF
1639 if ac_fn_c_try_compile "$LINENO"
1640 then :
1641 eval "$3=yes"
1642 else $as_nop
1643 eval "$3=no"
1644 fi
1645 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1646 eval $6=\$ac_save_FLAGS
1647
1648 fi
1649 eval ac_res=\$$3
1650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 printf "%s\n" "$ac_res" >&6; }
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653
1654 } # ac_fn_check_decl
1655
1656 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1657 # -------------------------------------------------------
1658 # Tests whether HEADER exists and can be compiled using the include files in
1659 # INCLUDES, setting the cache variable VAR accordingly.
1660 ac_fn_c_check_header_compile ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664 printf %s "checking for $2... " >&6; }
1665 if eval test \${$3+y}
1666 then :
1667 printf %s "(cached) " >&6
1668 else $as_nop
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1671 $4
1672 #include <$2>
1673 _ACEOF
1674 if ac_fn_c_try_compile "$LINENO"
1675 then :
1676 eval "$3=yes"
1677 else $as_nop
1678 eval "$3=no"
1679 fi
1680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1681 fi
1682 eval ac_res=\$$3
1683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 printf "%s\n" "$ac_res" >&6; }
1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
1687 } # ac_fn_c_check_header_compile
1688
1689 # ac_fn_c_try_link LINENO
1690 # -----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_link ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1696 if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 printf "%s\n" "$ac_try_echo"; } >&5
1703 (eval "$ac_link") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && {
1712 test -z "$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 } && test -s conftest$ac_exeext && {
1715 test "$cross_compiling" = yes ||
1716 test -x conftest$ac_exeext
1717 }
1718 then :
1719 ac_retval=0
1720 else $as_nop
1721 printf "%s\n" "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725 fi
1726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1728 # interfere with the next link command; also delete a directory that is
1729 # left behind by Apple's compiler. We do this before executing the actions.
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status $ac_retval
1733
1734 } # ac_fn_c_try_link
1735
1736 # ac_fn_c_check_func LINENO FUNC VAR
1737 # ----------------------------------
1738 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1739 ac_fn_c_check_func ()
1740 {
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 printf %s "checking for $2... " >&6; }
1744 if eval test \${$3+y}
1745 then :
1746 printf %s "(cached) " >&6
1747 else $as_nop
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1752 #define $2 innocuous_$2
1753
1754 /* System header to define __stub macros and hopefully few prototypes,
1755 which can conflict with char $2 (); below. */
1756
1757 #include <limits.h>
1758 #undef $2
1759
1760 /* Override any GCC internal prototype to avoid an error.
1761 Use char because int might match the return type of a GCC
1762 builtin and then its argument prototype would still apply. */
1763 #ifdef __cplusplus
1764 extern "C"
1765 #endif
1766 char $2 ();
1767 /* The GNU C library defines this for functions which it implements
1768 to always fail with ENOSYS. Some functions are actually named
1769 something starting with __ and the normal name is an alias. */
1770 #if defined __stub_$2 || defined __stub___$2
1771 choke me
1772 #endif
1773
1774 int
1775 main (void)
1776 {
1777 return $2 ();
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_link "$LINENO"
1783 then :
1784 eval "$3=yes"
1785 else $as_nop
1786 eval "$3=no"
1787 fi
1788 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1789 conftest$ac_exeext conftest.$ac_ext
1790 fi
1791 eval ac_res=\$$3
1792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793 printf "%s\n" "$ac_res" >&6; }
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795
1796 } # ac_fn_c_check_func
1797 ac_configure_args_raw=
1798 for ac_arg
1799 do
1800 case $ac_arg in
1801 *\'*)
1802 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1803 esac
1804 as_fn_append ac_configure_args_raw " '$ac_arg'"
1805 done
1806
1807 case $ac_configure_args_raw in
1808 *$as_nl*)
1809 ac_safe_unquote= ;;
1810 *)
1811 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1812 ac_unsafe_a="$ac_unsafe_z#~"
1813 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1814 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1815 esac
1816
1817 cat >config.log <<_ACEOF
1818 This file contains any messages produced by compilers while
1819 running configure, to aid debugging if configure makes a mistake.
1820
1821 It was created by xedit $as_me 1.2.3, which was
1822 generated by GNU Autoconf 2.71. Invocation command line was
1823
1824 $ $0$ac_configure_args_raw
1825
1826 _ACEOF
1827 exec 5>>config.log
1828 {
1829 cat <<_ASUNAME
1830 ## --------- ##
1831 ## Platform. ##
1832 ## --------- ##
1833
1834 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1835 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1836 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1837 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1838 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1839
1840 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1841 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1842
1843 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1844 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1845 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1846 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1847 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1848 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1849 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1850
1851 _ASUNAME
1852
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 for as_dir in $PATH
1855 do
1856 IFS=$as_save_IFS
1857 case $as_dir in #(((
1858 '') as_dir=./ ;;
1859 */) ;;
1860 *) as_dir=$as_dir/ ;;
1861 esac
1862 printf "%s\n" "PATH: $as_dir"
1863 done
1864 IFS=$as_save_IFS
1865
1866 } >&5
1867
1868 cat >&5 <<_ACEOF
1869
1870
1871 ## ----------- ##
1872 ## Core tests. ##
1873 ## ----------- ##
1874
1875 _ACEOF
1876
1877
1878 # Keep a trace of the command line.
1879 # Strip out --no-create and --no-recursion so they do not pile up.
1880 # Strip out --silent because we don't want to record it for future runs.
1881 # Also quote any args containing shell meta-characters.
1882 # Make two passes to allow for proper duplicate-argument suppression.
1883 ac_configure_args=
1884 ac_configure_args0=
1885 ac_configure_args1=
1886 ac_must_keep_next=false
1887 for ac_pass in 1 2
1888 do
1889 for ac_arg
1890 do
1891 case $ac_arg in
1892 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1893 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1894 | -silent | --silent | --silen | --sile | --sil)
1895 continue ;;
1896 *\'*)
1897 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1898 esac
1899 case $ac_pass in
1900 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1901 2)
1902 as_fn_append ac_configure_args1 " '$ac_arg'"
1903 if test $ac_must_keep_next = true; then
1904 ac_must_keep_next=false # Got value, back to normal.
1905 else
1906 case $ac_arg in
1907 *=* | --config-cache | -C | -disable-* | --disable-* \
1908 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1909 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1910 | -with-* | --with-* | -without-* | --without-* | --x)
1911 case "$ac_configure_args0 " in
1912 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1913 esac
1914 ;;
1915 -* ) ac_must_keep_next=true ;;
1916 esac
1917 fi
1918 as_fn_append ac_configure_args " '$ac_arg'"
1919 ;;
1920 esac
1921 done
1922 done
1923 { ac_configure_args0=; unset ac_configure_args0;}
1924 { ac_configure_args1=; unset ac_configure_args1;}
1925
1926 # When interrupted or exit'd, cleanup temporary files, and complete
1927 # config.log. We remove comments because anyway the quotes in there
1928 # would cause problems or look ugly.
1929 # WARNING: Use '\'' to represent an apostrophe within the trap.
1930 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1931 trap 'exit_status=$?
1932 # Sanitize IFS.
1933 IFS=" "" $as_nl"
1934 # Save into config.log some information that might help in debugging.
1935 {
1936 echo
1937
1938 printf "%s\n" "## ---------------- ##
1939 ## Cache variables. ##
1940 ## ---------------- ##"
1941 echo
1942 # The following way of writing the cache mishandles newlines in values,
1943 (
1944 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1945 eval ac_val=\$$ac_var
1946 case $ac_val in #(
1947 *${as_nl}*)
1948 case $ac_var in #(
1949 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1950 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1951 esac
1952 case $ac_var in #(
1953 _ | IFS | as_nl) ;; #(
1954 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1955 *) { eval $ac_var=; unset $ac_var;} ;;
1956 esac ;;
1957 esac
1958 done
1959 (set) 2>&1 |
1960 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1961 *${as_nl}ac_space=\ *)
1962 sed -n \
1963 "s/'\''/'\''\\\\'\'''\''/g;
1964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1965 ;; #(
1966 *)
1967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1968 ;;
1969 esac |
1970 sort
1971 )
1972 echo
1973
1974 printf "%s\n" "## ----------------- ##
1975 ## Output variables. ##
1976 ## ----------------- ##"
1977 echo
1978 for ac_var in $ac_subst_vars
1979 do
1980 eval ac_val=\$$ac_var
1981 case $ac_val in
1982 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1983 esac
1984 printf "%s\n" "$ac_var='\''$ac_val'\''"
1985 done | sort
1986 echo
1987
1988 if test -n "$ac_subst_files"; then
1989 printf "%s\n" "## ------------------- ##
1990 ## File substitutions. ##
1991 ## ------------------- ##"
1992 echo
1993 for ac_var in $ac_subst_files
1994 do
1995 eval ac_val=\$$ac_var
1996 case $ac_val in
1997 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1998 esac
1999 printf "%s\n" "$ac_var='\''$ac_val'\''"
2000 done | sort
2001 echo
2002 fi
2003
2004 if test -s confdefs.h; then
2005 printf "%s\n" "## ----------- ##
2006 ## confdefs.h. ##
2007 ## ----------- ##"
2008 echo
2009 cat confdefs.h
2010 echo
2011 fi
2012 test "$ac_signal" != 0 &&
2013 printf "%s\n" "$as_me: caught signal $ac_signal"
2014 printf "%s\n" "$as_me: exit $exit_status"
2015 } >&5
2016 rm -f core *.core core.conftest.* &&
2017 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2018 exit $exit_status
2019 ' 0
2020 for ac_signal in 1 2 13 15; do
2021 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2022 done
2023 ac_signal=0
2024
2025 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2026 rm -f -r conftest* confdefs.h
2027
2028 printf "%s\n" "/* confdefs.h */" > confdefs.h
2029
2030 # Predefined preprocessor variables.
2031
2032 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2033
2034 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2035
2036 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2037
2038 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2039
2040 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2041
2042 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2043
2044
2045 # Let the site file select an alternate cache file if it wants to.
2046 # Prefer an explicitly selected file to automatically selected ones.
2047 if test -n "$CONFIG_SITE"; then
2048 ac_site_files="$CONFIG_SITE"
2049 elif test "x$prefix" != xNONE; then
2050 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2051 else
2052 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2053 fi
2054
2055 for ac_site_file in $ac_site_files
2056 do
2057 case $ac_site_file in #(
2058 */*) :
2059 ;; #(
2060 *) :
2061 ac_site_file=./$ac_site_file ;;
2062 esac
2063 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2065 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2066 sed 's/^/| /' "$ac_site_file" >&5
2067 . "$ac_site_file" \
2068 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2069 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2070 as_fn_error $? "failed to load site script $ac_site_file
2071 See \`config.log' for more details" "$LINENO" 5; }
2072 fi
2073 done
2074
2075 if test -r "$cache_file"; then
2076 # Some versions of bash will fail to source /dev/null (special files
2077 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2078 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2080 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2081 case $cache_file in
2082 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2083 *) . "./$cache_file";;
2084 esac
2085 fi
2086 else
2087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2088 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2089 >$cache_file
2090 fi
2091
2092 # Test code for whether the C compiler supports C89 (global declarations)
2093 ac_c_conftest_c89_globals='
2094 /* Does the compiler advertise C89 conformance?
2095 Do not test the value of __STDC__, because some compilers set it to 0
2096 while being otherwise adequately conformant. */
2097 #if !defined __STDC__
2098 # error "Compiler does not advertise C89 conformance"
2099 #endif
2100
2101 #include <stddef.h>
2102 #include <stdarg.h>
2103 struct stat;
2104 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2105 struct buf { int x; };
2106 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2107 static char *e (p, i)
2108 char **p;
2109 int i;
2110 {
2111 return p[i];
2112 }
2113 static char *f (char * (*g) (char **, int), char **p, ...)
2114 {
2115 char *s;
2116 va_list v;
2117 va_start (v,p);
2118 s = g (p, va_arg (v,int));
2119 va_end (v);
2120 return s;
2121 }
2122
2123 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2124 function prototypes and stuff, but not \xHH hex character constants.
2125 These do not provoke an error unfortunately, instead are silently treated
2126 as an "x". The following induces an error, until -std is added to get
2127 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2128 array size at least. It is necessary to write \x00 == 0 to get something
2129 that is true only with -std. */
2130 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2131
2132 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2133 inside strings and character constants. */
2134 #define FOO(x) '\''x'\''
2135 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2136
2137 int test (int i, double x);
2138 struct s1 {int (*f) (int a);};
2139 struct s2 {int (*f) (double a);};
2140 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2141 int, int);'
2142
2143 # Test code for whether the C compiler supports C89 (body of main).
2144 ac_c_conftest_c89_main='
2145 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2146 '
2147
2148 # Test code for whether the C compiler supports C99 (global declarations)
2149 ac_c_conftest_c99_globals='
2150 // Does the compiler advertise C99 conformance?
2151 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2152 # error "Compiler does not advertise C99 conformance"
2153 #endif
2154
2155 #include <stdbool.h>
2156 extern int puts (const char *);
2157 extern int printf (const char *, ...);
2158 extern int dprintf (int, const char *, ...);
2159 extern void *malloc (size_t);
2160
2161 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2162 // dprintf is used instead of fprintf to avoid needing to declare
2163 // FILE and stderr.
2164 #define debug(...) dprintf (2, __VA_ARGS__)
2165 #define showlist(...) puts (#__VA_ARGS__)
2166 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2167 static void
2168 test_varargs_macros (void)
2169 {
2170 int x = 1234;
2171 int y = 5678;
2172 debug ("Flag");
2173 debug ("X = %d\n", x);
2174 showlist (The first, second, and third items.);
2175 report (x>y, "x is %d but y is %d", x, y);
2176 }
2177
2178 // Check long long types.
2179 #define BIG64 18446744073709551615ull
2180 #define BIG32 4294967295ul
2181 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2182 #if !BIG_OK
2183 #error "your preprocessor is broken"
2184 #endif
2185 #if BIG_OK
2186 #else
2187 #error "your preprocessor is broken"
2188 #endif
2189 static long long int bignum = -9223372036854775807LL;
2190 static unsigned long long int ubignum = BIG64;
2191
2192 struct incomplete_array
2193 {
2194 int datasize;
2195 double data[];
2196 };
2197
2198 struct named_init {
2199 int number;
2200 const wchar_t *name;
2201 double average;
2202 };
2203
2204 typedef const char *ccp;
2205
2206 static inline int
2207 test_restrict (ccp restrict text)
2208 {
2209 // See if C++-style comments work.
2210 // Iterate through items via the restricted pointer.
2211 // Also check for declarations in for loops.
2212 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2213 continue;
2214 return 0;
2215 }
2216
2217 // Check varargs and va_copy.
2218 static bool
2219 test_varargs (const char *format, ...)
2220 {
2221 va_list args;
2222 va_start (args, format);
2223 va_list args_copy;
2224 va_copy (args_copy, args);
2225
2226 const char *str = "";
2227 int number = 0;
2228 float fnumber = 0;
2229
2230 while (*format)
2231 {
2232 switch (*format++)
2233 {
2234 case '\''s'\'': // string
2235 str = va_arg (args_copy, const char *);
2236 break;
2237 case '\''d'\'': // int
2238 number = va_arg (args_copy, int);
2239 break;
2240 case '\''f'\'': // float
2241 fnumber = va_arg (args_copy, double);
2242 break;
2243 default:
2244 break;
2245 }
2246 }
2247 va_end (args_copy);
2248 va_end (args);
2249
2250 return *str && number && fnumber;
2251 }
2252 '
2253
2254 # Test code for whether the C compiler supports C99 (body of main).
2255 ac_c_conftest_c99_main='
2256 // Check bool.
2257 _Bool success = false;
2258 success |= (argc != 0);
2259
2260 // Check restrict.
2261 if (test_restrict ("String literal") == 0)
2262 success = true;
2263 char *restrict newvar = "Another string";
2264
2265 // Check varargs.
2266 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2267 test_varargs_macros ();
2268
2269 // Check flexible array members.
2270 struct incomplete_array *ia =
2271 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2272 ia->datasize = 10;
2273 for (int i = 0; i < ia->datasize; ++i)
2274 ia->data[i] = i * 1.234;
2275
2276 // Check named initializers.
2277 struct named_init ni = {
2278 .number = 34,
2279 .name = L"Test wide string",
2280 .average = 543.34343,
2281 };
2282
2283 ni.number = 58;
2284
2285 int dynamic_array[ni.number];
2286 dynamic_array[0] = argv[0][0];
2287 dynamic_array[ni.number - 1] = 543;
2288
2289 // work around unused variable warnings
2290 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2291 || dynamic_array[ni.number - 1] != 543);
2292 '
2293
2294 # Test code for whether the C compiler supports C11 (global declarations)
2295 ac_c_conftest_c11_globals='
2296 // Does the compiler advertise C11 conformance?
2297 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2298 # error "Compiler does not advertise C11 conformance"
2299 #endif
2300
2301 // Check _Alignas.
2302 char _Alignas (double) aligned_as_double;
2303 char _Alignas (0) no_special_alignment;
2304 extern char aligned_as_int;
2305 char _Alignas (0) _Alignas (int) aligned_as_int;
2306
2307 // Check _Alignof.
2308 enum
2309 {
2310 int_alignment = _Alignof (int),
2311 int_array_alignment = _Alignof (int[100]),
2312 char_alignment = _Alignof (char)
2313 };
2314 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2315
2316 // Check _Noreturn.
2317 int _Noreturn does_not_return (void) { for (;;) continue; }
2318
2319 // Check _Static_assert.
2320 struct test_static_assert
2321 {
2322 int x;
2323 _Static_assert (sizeof (int) <= sizeof (long int),
2324 "_Static_assert does not work in struct");
2325 long int y;
2326 };
2327
2328 // Check UTF-8 literals.
2329 #define u8 syntax error!
2330 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2331
2332 // Check duplicate typedefs.
2333 typedef long *long_ptr;
2334 typedef long int *long_ptr;
2335 typedef long_ptr long_ptr;
2336
2337 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2338 struct anonymous
2339 {
2340 union {
2341 struct { int i; int j; };
2342 struct { int k; long int l; } w;
2343 };
2344 int m;
2345 } v1;
2346 '
2347
2348 # Test code for whether the C compiler supports C11 (body of main).
2349 ac_c_conftest_c11_main='
2350 _Static_assert ((offsetof (struct anonymous, i)
2351 == offsetof (struct anonymous, w.k)),
2352 "Anonymous union alignment botch");
2353 v1.i = 2;
2354 v1.w.k = 5;
2355 ok |= v1.i != 5;
2356 '
2357
2358 # Test code for whether the C compiler supports C11 (complete).
2359 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2360 ${ac_c_conftest_c99_globals}
2361 ${ac_c_conftest_c11_globals}
2362
2363 int
2364 main (int argc, char **argv)
2365 {
2366 int ok = 0;
2367 ${ac_c_conftest_c89_main}
2368 ${ac_c_conftest_c99_main}
2369 ${ac_c_conftest_c11_main}
2370 return ok;
2371 }
2372 "
2373
2374 # Test code for whether the C compiler supports C99 (complete).
2375 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2376 ${ac_c_conftest_c99_globals}
2377
2378 int
2379 main (int argc, char **argv)
2380 {
2381 int ok = 0;
2382 ${ac_c_conftest_c89_main}
2383 ${ac_c_conftest_c99_main}
2384 return ok;
2385 }
2386 "
2387
2388 # Test code for whether the C compiler supports C89 (complete).
2389 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2390
2391 int
2392 main (int argc, char **argv)
2393 {
2394 int ok = 0;
2395 ${ac_c_conftest_c89_main}
2396 return ok;
2397 }
2398 "
2399
2400 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2401 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2402 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2403 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2404 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2405 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2406 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2407 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2408 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2409
2410 # Auxiliary files required by this configure script.
2411 ac_aux_files="ar-lib config.guess config.sub compile missing install-sh"
2412
2413 # Locations in which to look for auxiliary files.
2414 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2415
2416 # Search for a directory containing all of the required auxiliary files,
2417 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2418 # If we don't find one directory that contains all the files we need,
2419 # we report the set of missing files from the *first* directory in
2420 # $ac_aux_dir_candidates and give up.
2421 ac_missing_aux_files=""
2422 ac_first_candidate=:
2423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 as_found=false
2426 for as_dir in $ac_aux_dir_candidates
2427 do
2428 IFS=$as_save_IFS
2429 case $as_dir in #(((
2430 '') as_dir=./ ;;
2431 */) ;;
2432 *) as_dir=$as_dir/ ;;
2433 esac
2434 as_found=:
2435
2436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2437 ac_aux_dir_found=yes
2438 ac_install_sh=
2439 for ac_aux in $ac_aux_files
2440 do
2441 # As a special case, if "install-sh" is required, that requirement
2442 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2443 # and $ac_install_sh is set appropriately for whichever one is found.
2444 if test x"$ac_aux" = x"install-sh"
2445 then
2446 if test -f "${as_dir}install-sh"; then
2447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2448 ac_install_sh="${as_dir}install-sh -c"
2449 elif test -f "${as_dir}install.sh"; then
2450 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2451 ac_install_sh="${as_dir}install.sh -c"
2452 elif test -f "${as_dir}shtool"; then
2453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2454 ac_install_sh="${as_dir}shtool install -c"
2455 else
2456 ac_aux_dir_found=no
2457 if $ac_first_candidate; then
2458 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2459 else
2460 break
2461 fi
2462 fi
2463 else
2464 if test -f "${as_dir}${ac_aux}"; then
2465 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2466 else
2467 ac_aux_dir_found=no
2468 if $ac_first_candidate; then
2469 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2470 else
2471 break
2472 fi
2473 fi
2474 fi
2475 done
2476 if test "$ac_aux_dir_found" = yes; then
2477 ac_aux_dir="$as_dir"
2478 break
2479 fi
2480 ac_first_candidate=false
2481
2482 as_found=false
2483 done
2484 IFS=$as_save_IFS
2485 if $as_found
2486 then :
2487
2488 else $as_nop
2489 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2490 fi
2491
2492
2493 # These three variables are undocumented and unsupported,
2494 # and are intended to be withdrawn in a future Autoconf release.
2495 # They can cause serious problems if a builder's source tree is in a directory
2496 # whose full name contains unusual characters.
2497 if test -f "${ac_aux_dir}config.guess"; then
2498 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2499 fi
2500 if test -f "${ac_aux_dir}config.sub"; then
2501 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2502 fi
2503 if test -f "$ac_aux_dir/configure"; then
2504 ac_configure="$SHELL ${ac_aux_dir}configure"
2505 fi
2506
2507 # Check that the precious variables saved in the cache have kept the same
2508 # value.
2509 ac_cache_corrupted=false
2510 for ac_var in $ac_precious_vars; do
2511 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2512 eval ac_new_set=\$ac_env_${ac_var}_set
2513 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2514 eval ac_new_val=\$ac_env_${ac_var}_value
2515 case $ac_old_set,$ac_new_set in
2516 set,)
2517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2518 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2519 ac_cache_corrupted=: ;;
2520 ,set)
2521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2522 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2523 ac_cache_corrupted=: ;;
2524 ,);;
2525 *)
2526 if test "x$ac_old_val" != "x$ac_new_val"; then
2527 # differences in whitespace do not lead to failure.
2528 ac_old_val_w=`echo x $ac_old_val`
2529 ac_new_val_w=`echo x $ac_new_val`
2530 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2532 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2533 ac_cache_corrupted=:
2534 else
2535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2536 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2537 eval $ac_var=\$ac_old_val
2538 fi
2539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2540 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2542 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2543 fi;;
2544 esac
2545 # Pass precious variables to config.status.
2546 if test "$ac_new_set" = set; then
2547 case $ac_new_val in
2548 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2549 *) ac_arg=$ac_var=$ac_new_val ;;
2550 esac
2551 case " $ac_configure_args " in
2552 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2553 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2554 esac
2555 fi
2556 done
2557 if $ac_cache_corrupted; then
2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2559 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2561 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2562 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2563 and start over" "$LINENO" 5
2564 fi
2565 ## -------------------- ##
2566 ## Main body of script. ##
2567 ## -------------------- ##
2568
2569 ac_ext=c
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574
2575
2576 am__api_version='1.16'
2577
2578
2579
2580 # Find a good install program. We prefer a C program (faster),
2581 # so one script is as good as another. But avoid the broken or
2582 # incompatible versions:
2583 # SysV /etc/install, /usr/sbin/install
2584 # SunOS /usr/etc/install
2585 # IRIX /sbin/install
2586 # AIX /bin/install
2587 # AmigaOS /C/install, which installs bootblocks on floppy discs
2588 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2589 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2590 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2591 # OS/2's system install, which has a completely different semantic
2592 # ./install, which can be erroneously created by make from ./install.sh.
2593 # Reject install programs that cannot install multiple files.
2594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2595 printf %s "checking for a BSD-compatible install... " >&6; }
2596 if test -z "$INSTALL"; then
2597 if test ${ac_cv_path_install+y}
2598 then :
2599 printf %s "(cached) " >&6
2600 else $as_nop
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2603 do
2604 IFS=$as_save_IFS
2605 case $as_dir in #(((
2606 '') as_dir=./ ;;
2607 */) ;;
2608 *) as_dir=$as_dir/ ;;
2609 esac
2610 # Account for fact that we put trailing slashes in our PATH walk.
2611 case $as_dir in #((
2612 ./ | /[cC]/* | \
2613 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2614 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2615 /usr/ucb/* ) ;;
2616 *)
2617 # OSF1 and SCO ODT 3.0 have their own names for install.
2618 # Don't use installbsd from OSF since it installs stuff as root
2619 # by default.
2620 for ac_prog in ginstall scoinst install; do
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2623 if test $ac_prog = install &&
2624 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2625 # AIX install. It has an incompatible calling convention.
2626 :
2627 elif test $ac_prog = install &&
2628 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2629 # program-specific install script used by HP pwplus--don't use.
2630 :
2631 else
2632 rm -rf conftest.one conftest.two conftest.dir
2633 echo one > conftest.one
2634 echo two > conftest.two
2635 mkdir conftest.dir
2636 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2637 test -s conftest.one && test -s conftest.two &&
2638 test -s conftest.dir/conftest.one &&
2639 test -s conftest.dir/conftest.two
2640 then
2641 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2642 break 3
2643 fi
2644 fi
2645 fi
2646 done
2647 done
2648 ;;
2649 esac
2650
2651 done
2652 IFS=$as_save_IFS
2653
2654 rm -rf conftest.one conftest.two conftest.dir
2655
2656 fi
2657 if test ${ac_cv_path_install+y}; then
2658 INSTALL=$ac_cv_path_install
2659 else
2660 # As a last resort, use the slow shell script. Don't cache a
2661 # value for INSTALL within a source directory, because that will
2662 # break other packages using the cache if that directory is
2663 # removed, or if the value is a relative name.
2664 INSTALL=$ac_install_sh
2665 fi
2666 fi
2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2668 printf "%s\n" "$INSTALL" >&6; }
2669
2670 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2671 # It thinks the first close brace ends the variable substitution.
2672 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2673
2674 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2675
2676 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2677
2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2679 printf %s "checking whether build environment is sane... " >&6; }
2680 # Reject unsafe characters in $srcdir or the absolute working directory
2681 # name. Accept space and tab only in the latter.
2682 am_lf='
2683 '
2684 case `pwd` in
2685 *[\\\"\#\$\&\'\`$am_lf]*)
2686 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2687 esac
2688 case $srcdir in
2689 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2690 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2691 esac
2692
2693 # Do 'set' in a subshell so we don't clobber the current shell's
2694 # arguments. Must try -L first in case configure is actually a
2695 # symlink; some systems play weird games with the mod time of symlinks
2696 # (eg FreeBSD returns the mod time of the symlink's containing
2697 # directory).
2698 if (
2699 am_has_slept=no
2700 for am_try in 1 2; do
2701 echo "timestamp, slept: $am_has_slept" > conftest.file
2702 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2703 if test "$*" = "X"; then
2704 # -L didn't work.
2705 set X `ls -t "$srcdir/configure" conftest.file`
2706 fi
2707 if test "$*" != "X $srcdir/configure conftest.file" \
2708 && test "$*" != "X conftest.file $srcdir/configure"; then
2709
2710 # If neither matched, then we have a broken ls. This can happen
2711 # if, for instance, CONFIG_SHELL is bash and it inherits a
2712 # broken ls alias from the environment. This has actually
2713 # happened. Such a system could not be considered "sane".
2714 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2715 alias in your environment" "$LINENO" 5
2716 fi
2717 if test "$2" = conftest.file || test $am_try -eq 2; then
2718 break
2719 fi
2720 # Just in case.
2721 sleep 1
2722 am_has_slept=yes
2723 done
2724 test "$2" = conftest.file
2725 )
2726 then
2727 # Ok.
2728 :
2729 else
2730 as_fn_error $? "newly created file is older than distributed files!
2731 Check your system clock" "$LINENO" 5
2732 fi
2733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2734 printf "%s\n" "yes" >&6; }
2735 # If we didn't sleep, we still need to ensure time stamps of config.status and
2736 # generated files are strictly newer.
2737 am_sleep_pid=
2738 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2739 ( sleep 1 ) &
2740 am_sleep_pid=$!
2741 fi
2742
2743 rm -f conftest.file
2744
2745 test "$program_prefix" != NONE &&
2746 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2747 # Use a double $ so make ignores it.
2748 test "$program_suffix" != NONE &&
2749 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2750 # Double any \ or $.
2751 # By default was `s,x,x', remove it if useless.
2752 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2753 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
2754
2755
2756 # Expand $ac_aux_dir to an absolute path.
2757 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2758
2759
2760 if test x"${MISSING+set}" != xset; then
2761 MISSING="\${SHELL} '$am_aux_dir/missing'"
2762 fi
2763 # Use eval to expand $SHELL
2764 if eval "$MISSING --is-lightweight"; then
2765 am_missing_run="$MISSING "
2766 else
2767 am_missing_run=
2768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2769 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2770 fi
2771
2772 if test x"${install_sh+set}" != xset; then
2773 case $am_aux_dir in
2774 *\ * | *\ *)
2775 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2776 *)
2777 install_sh="\${SHELL} $am_aux_dir/install-sh"
2778 esac
2779 fi
2780
2781 # Installed binaries are usually stripped using 'strip' when the user
2782 # run "make install-strip". However 'strip' might not be the right
2783 # tool to use in cross-compilation environments, therefore Automake
2784 # will honor the 'STRIP' environment variable to overrule this program.
2785 if test "$cross_compiling" != no; then
2786 if test -n "$ac_tool_prefix"; then
2787 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2788 set dummy ${ac_tool_prefix}strip; ac_word=$2
2789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2790 printf %s "checking for $ac_word... " >&6; }
2791 if test ${ac_cv_prog_STRIP+y}
2792 then :
2793 printf %s "(cached) " >&6
2794 else $as_nop
2795 if test -n "$STRIP"; then
2796 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801 IFS=$as_save_IFS
2802 case $as_dir in #(((
2803 '') as_dir=./ ;;
2804 */) ;;
2805 *) as_dir=$as_dir/ ;;
2806 esac
2807 for ac_exec_ext in '' $ac_executable_extensions; do
2808 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2809 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2810 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2811 break 2
2812 fi
2813 done
2814 done
2815 IFS=$as_save_IFS
2816
2817 fi
2818 fi
2819 STRIP=$ac_cv_prog_STRIP
2820 if test -n "$STRIP"; then
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2822 printf "%s\n" "$STRIP" >&6; }
2823 else
2824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2825 printf "%s\n" "no" >&6; }
2826 fi
2827
2828
2829 fi
2830 if test -z "$ac_cv_prog_STRIP"; then
2831 ac_ct_STRIP=$STRIP
2832 # Extract the first word of "strip", so it can be a program name with args.
2833 set dummy strip; ac_word=$2
2834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2835 printf %s "checking for $ac_word... " >&6; }
2836 if test ${ac_cv_prog_ac_ct_STRIP+y}
2837 then :
2838 printf %s "(cached) " >&6
2839 else $as_nop
2840 if test -n "$ac_ct_STRIP"; then
2841 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2842 else
2843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846 IFS=$as_save_IFS
2847 case $as_dir in #(((
2848 '') as_dir=./ ;;
2849 */) ;;
2850 *) as_dir=$as_dir/ ;;
2851 esac
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_STRIP="strip"
2855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2856 break 2
2857 fi
2858 done
2859 done
2860 IFS=$as_save_IFS
2861
2862 fi
2863 fi
2864 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2865 if test -n "$ac_ct_STRIP"; then
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2867 printf "%s\n" "$ac_ct_STRIP" >&6; }
2868 else
2869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2870 printf "%s\n" "no" >&6; }
2871 fi
2872
2873 if test "x$ac_ct_STRIP" = x; then
2874 STRIP=":"
2875 else
2876 case $cross_compiling:$ac_tool_warned in
2877 yes:)
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2879 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2880 ac_tool_warned=yes ;;
2881 esac
2882 STRIP=$ac_ct_STRIP
2883 fi
2884 else
2885 STRIP="$ac_cv_prog_STRIP"
2886 fi
2887
2888 fi
2889 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2890
2891
2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
2893 printf %s "checking for a race-free mkdir -p... " >&6; }
2894 if test -z "$MKDIR_P"; then
2895 if test ${ac_cv_path_mkdir+y}
2896 then :
2897 printf %s "(cached) " >&6
2898 else $as_nop
2899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2901 do
2902 IFS=$as_save_IFS
2903 case $as_dir in #(((
2904 '') as_dir=./ ;;
2905 */) ;;
2906 *) as_dir=$as_dir/ ;;
2907 esac
2908 for ac_prog in mkdir gmkdir; do
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
2911 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
2912 'mkdir ('*'coreutils) '* | \
2913 'BusyBox '* | \
2914 'mkdir (fileutils) '4.1*)
2915 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
2916 break 3;;
2917 esac
2918 done
2919 done
2920 done
2921 IFS=$as_save_IFS
2922
2923 fi
2924
2925 test -d ./--version && rmdir ./--version
2926 if test ${ac_cv_path_mkdir+y}; then
2927 MKDIR_P="$ac_cv_path_mkdir -p"
2928 else
2929 # As a last resort, use the slow shell script. Don't cache a
2930 # value for MKDIR_P within a source directory, because that will
2931 # break other packages using the cache if that directory is
2932 # removed, or if the value is a relative name.
2933 MKDIR_P="$ac_install_sh -d"
2934 fi
2935 fi
2936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2937 printf "%s\n" "$MKDIR_P" >&6; }
2938
2939 for ac_prog in gawk mawk nawk awk
2940 do
2941 # Extract the first word of "$ac_prog", so it can be a program name with args.
2942 set dummy $ac_prog; ac_word=$2
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 printf %s "checking for $ac_word... " >&6; }
2945 if test ${ac_cv_prog_AWK+y}
2946 then :
2947 printf %s "(cached) " >&6
2948 else $as_nop
2949 if test -n "$AWK"; then
2950 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955 IFS=$as_save_IFS
2956 case $as_dir in #(((
2957 '') as_dir=./ ;;
2958 */) ;;
2959 *) as_dir=$as_dir/ ;;
2960 esac
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2963 ac_cv_prog_AWK="$ac_prog"
2964 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2965 break 2
2966 fi
2967 done
2968 done
2969 IFS=$as_save_IFS
2970
2971 fi
2972 fi
2973 AWK=$ac_cv_prog_AWK
2974 if test -n "$AWK"; then
2975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2976 printf "%s\n" "$AWK" >&6; }
2977 else
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979 printf "%s\n" "no" >&6; }
2980 fi
2981
2982
2983 test -n "$AWK" && break
2984 done
2985
2986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2987 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2988 set x ${MAKE-make}
2989 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2990 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
2991 then :
2992 printf %s "(cached) " >&6
2993 else $as_nop
2994 cat >conftest.make <<\_ACEOF
2995 SHELL = /bin/sh
2996 all:
2997 @echo '@@@%%%=$(MAKE)=@@@%%%'
2998 _ACEOF
2999 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3000 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3001 *@@@%%%=?*=@@@%%%*)
3002 eval ac_cv_prog_make_${ac_make}_set=yes;;
3003 *)
3004 eval ac_cv_prog_make_${ac_make}_set=no;;
3005 esac
3006 rm -f conftest.make
3007 fi
3008 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3010 printf "%s\n" "yes" >&6; }
3011 SET_MAKE=
3012 else
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 printf "%s\n" "no" >&6; }
3015 SET_MAKE="MAKE=${MAKE-make}"
3016 fi
3017
3018 rm -rf .tst 2>/dev/null
3019 mkdir .tst 2>/dev/null
3020 if test -d .tst; then
3021 am__leading_dot=.
3022 else
3023 am__leading_dot=_
3024 fi
3025 rmdir .tst 2>/dev/null
3026
3027 # Check whether --enable-silent-rules was given.
3028 if test ${enable_silent_rules+y}
3029 then :
3030 enableval=$enable_silent_rules;
3031 fi
3032
3033 case $enable_silent_rules in # (((
3034 yes) AM_DEFAULT_VERBOSITY=0;;
3035 no) AM_DEFAULT_VERBOSITY=1;;
3036 *) AM_DEFAULT_VERBOSITY=1;;
3037 esac
3038 am_make=${MAKE-make}
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3040 printf %s "checking whether $am_make supports nested variables... " >&6; }
3041 if test ${am_cv_make_support_nested_variables+y}
3042 then :
3043 printf %s "(cached) " >&6
3044 else $as_nop
3045 if printf "%s\n" 'TRUE=$(BAR$(V))
3046 BAR0=false
3047 BAR1=true
3048 V=1
3049 am__doit:
3050 @$(TRUE)
3051 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3052 am_cv_make_support_nested_variables=yes
3053 else
3054 am_cv_make_support_nested_variables=no
3055 fi
3056 fi
3057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3058 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3059 if test $am_cv_make_support_nested_variables = yes; then
3060 AM_V='$(V)'
3061 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3062 else
3063 AM_V=$AM_DEFAULT_VERBOSITY
3064 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3065 fi
3066 AM_BACKSLASH='\'
3067
3068 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3069 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3070 # is not polluted with repeated "-I."
3071 am__isrc=' -I$(srcdir)'
3072 # test to see if srcdir already configured
3073 if test -f $srcdir/config.status; then
3074 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3075 fi
3076 fi
3077
3078 # test whether we have cygpath
3079 if test -z "$CYGPATH_W"; then
3080 if (cygpath --version) >/dev/null 2>/dev/null; then
3081 CYGPATH_W='cygpath -w'
3082 else
3083 CYGPATH_W=echo
3084 fi
3085 fi
3086
3087
3088 # Define the identity of the package.
3089 PACKAGE='xedit'
3090 VERSION='1.2.3'
3091
3092
3093 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3094
3095
3096 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3097
3098 # Some tools Automake needs.
3099
3100 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3101
3102
3103 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3104
3105
3106 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3107
3108
3109 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3110
3111
3112 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3113
3114 # For better backward compatibility. To be removed once Automake 1.9.x
3115 # dies out for good. For more background, see:
3116 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3117 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3118 mkdir_p='$(MKDIR_P)'
3119
3120 # We need awk for the "check" target (and possibly the TAP driver). The
3121 # system "awk" is bad on some platforms.
3122 # Always define AMTAR for backward compatibility. Yes, it's still used
3123 # in the wild :-( We should find a proper way to deprecate it ...
3124 AMTAR='$${TAR-tar}'
3125
3126
3127 # We'll loop over all known methods to create a tar archive until one works.
3128 _am_tools='gnutar pax cpio none'
3129
3130 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3131
3132
3133
3134
3135
3136 # Variables for tags utilities; see am/tags.am
3137 if test -z "$CTAGS"; then
3138 CTAGS=ctags
3139 fi
3140
3141 if test -z "$ETAGS"; then
3142 ETAGS=etags
3143 fi
3144
3145 if test -z "$CSCOPE"; then
3146 CSCOPE=cscope
3147 fi
3148
3149
3150
3151 # POSIX will say in a future version that running "rm -f" with no argument
3152 # is OK; and we want to be able to make that assumption in our Makefile
3153 # recipes. So use an aggressive probe to check that the usage we want is
3154 # actually supported "in the wild" to an acceptable degree.
3155 # See automake bug#10828.
3156 # To make any issue more visible, cause the running configure to be aborted
3157 # by default if the 'rm' program in use doesn't match our expectations; the
3158 # user can still override this though.
3159 if rm -f && rm -fr && rm -rf; then : OK; else
3160 cat >&2 <<'END'
3161 Oops!
3162
3163 Your 'rm' program seems unable to run without file operands specified
3164 on the command line, even when the '-f' option is present. This is contrary
3165 to the behaviour of most rm programs out there, and not conforming with
3166 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3167
3168 Please tell bug-automake@gnu.org about your system, including the value
3169 of your $PATH and any error possibly output before this message. This
3170 can help us improve future automake versions.
3171
3172 END
3173 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3174 echo 'Configuration will proceed anyway, since you have set the' >&2
3175 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3176 echo >&2
3177 else
3178 cat >&2 <<'END'
3179 Aborting the configuration process, to ensure you take notice of the issue.
3180
3181 You can download and install GNU coreutils to get an 'rm' implementation
3182 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3183
3184 If you want to complete the configuration process using your problematic
3185 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3186 to "yes", and re-run configure.
3187
3188 END
3189 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3190 fi
3191 fi
3192
3193
3194 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215 DEPDIR="${am__leading_dot}deps"
3216
3217 ac_config_commands="$ac_config_commands depfiles"
3218
3219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3220 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3221 cat > confinc.mk << 'END'
3222 am__doit:
3223 @echo this is the am__doit target >confinc.out
3224 .PHONY: am__doit
3225 END
3226 am__include="#"
3227 am__quote=
3228 # BSD make does it like this.
3229 echo '.include "confinc.mk" # ignored' > confmf.BSD
3230 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3231 echo 'include confinc.mk # ignored' > confmf.GNU
3232 _am_result=no
3233 for s in GNU BSD; do
3234 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3235 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3236 ac_status=$?
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }
3239 case $?:`cat confinc.out 2>/dev/null` in #(
3240 '0:this is the am__doit target') :
3241 case $s in #(
3242 BSD) :
3243 am__include='.include' am__quote='"' ;; #(
3244 *) :
3245 am__include='include' am__quote='' ;;
3246 esac ;; #(
3247 *) :
3248 ;;
3249 esac
3250 if test "$am__include" != "#"; then
3251 _am_result="yes ($s style)"
3252 break
3253 fi
3254 done
3255 rm -f confinc.* confmf.*
3256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3257 printf "%s\n" "${_am_result}" >&6; }
3258
3259 # Check whether --enable-dependency-tracking was given.
3260 if test ${enable_dependency_tracking+y}
3261 then :
3262 enableval=$enable_dependency_tracking;
3263 fi
3264
3265 if test "x$enable_dependency_tracking" != xno; then
3266 am_depcomp="$ac_aux_dir/depcomp"
3267 AMDEPBACKSLASH='\'
3268 am__nodep='_no'
3269 fi
3270 if test "x$enable_dependency_tracking" != xno; then
3271 AMDEP_TRUE=
3272 AMDEP_FALSE='#'
3273 else
3274 AMDEP_TRUE='#'
3275 AMDEP_FALSE=
3276 fi
3277
3278
3279 ac_ext=c
3280 ac_cpp='$CPP $CPPFLAGS'
3281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3284 if test -n "$ac_tool_prefix"; then
3285 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3286 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 printf %s "checking for $ac_word... " >&6; }
3289 if test ${ac_cv_prog_CC+y}
3290 then :
3291 printf %s "(cached) " >&6
3292 else $as_nop
3293 if test -n "$CC"; then
3294 ac_cv_prog_CC="$CC" # Let the user override the test.
3295 else
3296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 for as_dir in $PATH
3298 do
3299 IFS=$as_save_IFS
3300 case $as_dir in #(((
3301 '') as_dir=./ ;;
3302 */) ;;
3303 *) as_dir=$as_dir/ ;;
3304 esac
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3307 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3308 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313 IFS=$as_save_IFS
3314
3315 fi
3316 fi
3317 CC=$ac_cv_prog_CC
3318 if test -n "$CC"; then
3319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320 printf "%s\n" "$CC" >&6; }
3321 else
3322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 printf "%s\n" "no" >&6; }
3324 fi
3325
3326
3327 fi
3328 if test -z "$ac_cv_prog_CC"; then
3329 ac_ct_CC=$CC
3330 # Extract the first word of "gcc", so it can be a program name with args.
3331 set dummy gcc; ac_word=$2
3332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333 printf %s "checking for $ac_word... " >&6; }
3334 if test ${ac_cv_prog_ac_ct_CC+y}
3335 then :
3336 printf %s "(cached) " >&6
3337 else $as_nop
3338 if test -n "$ac_ct_CC"; then
3339 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344 IFS=$as_save_IFS
3345 case $as_dir in #(((
3346 '') as_dir=./ ;;
3347 */) ;;
3348 *) as_dir=$as_dir/ ;;
3349 esac
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3352 ac_cv_prog_ac_ct_CC="gcc"
3353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3354 break 2
3355 fi
3356 done
3357 done
3358 IFS=$as_save_IFS
3359
3360 fi
3361 fi
3362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3363 if test -n "$ac_ct_CC"; then
3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3365 printf "%s\n" "$ac_ct_CC" >&6; }
3366 else
3367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 printf "%s\n" "no" >&6; }
3369 fi
3370
3371 if test "x$ac_ct_CC" = x; then
3372 CC=""
3373 else
3374 case $cross_compiling:$ac_tool_warned in
3375 yes:)
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3377 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3378 ac_tool_warned=yes ;;
3379 esac
3380 CC=$ac_ct_CC
3381 fi
3382 else
3383 CC="$ac_cv_prog_CC"
3384 fi
3385
3386 if test -z "$CC"; then
3387 if test -n "$ac_tool_prefix"; then
3388 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3389 set dummy ${ac_tool_prefix}cc; ac_word=$2
3390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 printf %s "checking for $ac_word... " >&6; }
3392 if test ${ac_cv_prog_CC+y}
3393 then :
3394 printf %s "(cached) " >&6
3395 else $as_nop
3396 if test -n "$CC"; then
3397 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402 IFS=$as_save_IFS
3403 case $as_dir in #(((
3404 '') as_dir=./ ;;
3405 */) ;;
3406 *) as_dir=$as_dir/ ;;
3407 esac
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_CC="${ac_tool_prefix}cc"
3411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414 done
3415 done
3416 IFS=$as_save_IFS
3417
3418 fi
3419 fi
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423 printf "%s\n" "$CC" >&6; }
3424 else
3425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 printf "%s\n" "no" >&6; }
3427 fi
3428
3429
3430 fi
3431 fi
3432 if test -z "$CC"; then
3433 # Extract the first word of "cc", so it can be a program name with args.
3434 set dummy cc; ac_word=$2
3435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 printf %s "checking for $ac_word... " >&6; }
3437 if test ${ac_cv_prog_CC+y}
3438 then :
3439 printf %s "(cached) " >&6
3440 else $as_nop
3441 if test -n "$CC"; then
3442 ac_cv_prog_CC="$CC" # Let the user override the test.
3443 else
3444 ac_prog_rejected=no
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448 IFS=$as_save_IFS
3449 case $as_dir in #(((
3450 '') as_dir=./ ;;
3451 */) ;;
3452 *) as_dir=$as_dir/ ;;
3453 esac
3454 for ac_exec_ext in '' $ac_executable_extensions; do
3455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3456 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3457 ac_prog_rejected=yes
3458 continue
3459 fi
3460 ac_cv_prog_CC="cc"
3461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3462 break 2
3463 fi
3464 done
3465 done
3466 IFS=$as_save_IFS
3467
3468 if test $ac_prog_rejected = yes; then
3469 # We found a bogon in the path, so make sure we never use it.
3470 set dummy $ac_cv_prog_CC
3471 shift
3472 if test $# != 0; then
3473 # We chose a different compiler from the bogus one.
3474 # However, it has the same basename, so the bogon will be chosen
3475 # first if we set CC to just the basename; use the full file name.
3476 shift
3477 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3478 fi
3479 fi
3480 fi
3481 fi
3482 CC=$ac_cv_prog_CC
3483 if test -n "$CC"; then
3484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485 printf "%s\n" "$CC" >&6; }
3486 else
3487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 printf "%s\n" "no" >&6; }
3489 fi
3490
3491
3492 fi
3493 if test -z "$CC"; then
3494 if test -n "$ac_tool_prefix"; then
3495 for ac_prog in cl.exe
3496 do
3497 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3498 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3500 printf %s "checking for $ac_word... " >&6; }
3501 if test ${ac_cv_prog_CC+y}
3502 then :
3503 printf %s "(cached) " >&6
3504 else $as_nop
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC="$CC" # Let the user override the test.
3507 else
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3509 for as_dir in $PATH
3510 do
3511 IFS=$as_save_IFS
3512 case $as_dir in #(((
3513 '') as_dir=./ ;;
3514 */) ;;
3515 *) as_dir=$as_dir/ ;;
3516 esac
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3519 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3521 break 2
3522 fi
3523 done
3524 done
3525 IFS=$as_save_IFS
3526
3527 fi
3528 fi
3529 CC=$ac_cv_prog_CC
3530 if test -n "$CC"; then
3531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3532 printf "%s\n" "$CC" >&6; }
3533 else
3534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535 printf "%s\n" "no" >&6; }
3536 fi
3537
3538
3539 test -n "$CC" && break
3540 done
3541 fi
3542 if test -z "$CC"; then
3543 ac_ct_CC=$CC
3544 for ac_prog in cl.exe
3545 do
3546 # Extract the first word of "$ac_prog", so it can be a program name with args.
3547 set dummy $ac_prog; ac_word=$2
3548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3549 printf %s "checking for $ac_word... " >&6; }
3550 if test ${ac_cv_prog_ac_ct_CC+y}
3551 then :
3552 printf %s "(cached) " >&6
3553 else $as_nop
3554 if test -n "$ac_ct_CC"; then
3555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560 IFS=$as_save_IFS
3561 case $as_dir in #(((
3562 '') as_dir=./ ;;
3563 */) ;;
3564 *) as_dir=$as_dir/ ;;
3565 esac
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3568 ac_cv_prog_ac_ct_CC="$ac_prog"
3569 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3570 break 2
3571 fi
3572 done
3573 done
3574 IFS=$as_save_IFS
3575
3576 fi
3577 fi
3578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3579 if test -n "$ac_ct_CC"; then
3580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3581 printf "%s\n" "$ac_ct_CC" >&6; }
3582 else
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 printf "%s\n" "no" >&6; }
3585 fi
3586
3587
3588 test -n "$ac_ct_CC" && break
3589 done
3590
3591 if test "x$ac_ct_CC" = x; then
3592 CC=""
3593 else
3594 case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3599 esac
3600 CC=$ac_ct_CC
3601 fi
3602 fi
3603
3604 fi
3605 if test -z "$CC"; then
3606 if test -n "$ac_tool_prefix"; then
3607 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3608 set dummy ${ac_tool_prefix}clang; ac_word=$2
3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 printf %s "checking for $ac_word... " >&6; }
3611 if test ${ac_cv_prog_CC+y}
3612 then :
3613 printf %s "(cached) " >&6
3614 else $as_nop
3615 if test -n "$CC"; then
3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3620 do
3621 IFS=$as_save_IFS
3622 case $as_dir in #(((
3623 '') as_dir=./ ;;
3624 */) ;;
3625 *) as_dir=$as_dir/ ;;
3626 esac
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3629 ac_cv_prog_CC="${ac_tool_prefix}clang"
3630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633 done
3634 done
3635 IFS=$as_save_IFS
3636
3637 fi
3638 fi
3639 CC=$ac_cv_prog_CC
3640 if test -n "$CC"; then
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3642 printf "%s\n" "$CC" >&6; }
3643 else
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 printf "%s\n" "no" >&6; }
3646 fi
3647
3648
3649 fi
3650 if test -z "$ac_cv_prog_CC"; then
3651 ac_ct_CC=$CC
3652 # Extract the first word of "clang", so it can be a program name with args.
3653 set dummy clang; ac_word=$2
3654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 printf %s "checking for $ac_word... " >&6; }
3656 if test ${ac_cv_prog_ac_ct_CC+y}
3657 then :
3658 printf %s "(cached) " >&6
3659 else $as_nop
3660 if test -n "$ac_ct_CC"; then
3661 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3662 else
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666 IFS=$as_save_IFS
3667 case $as_dir in #(((
3668 '') as_dir=./ ;;
3669 */) ;;
3670 *) as_dir=$as_dir/ ;;
3671 esac
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3674 ac_cv_prog_ac_ct_CC="clang"
3675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3676 break 2
3677 fi
3678 done
3679 done
3680 IFS=$as_save_IFS
3681
3682 fi
3683 fi
3684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3685 if test -n "$ac_ct_CC"; then
3686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3687 printf "%s\n" "$ac_ct_CC" >&6; }
3688 else
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 printf "%s\n" "no" >&6; }
3691 fi
3692
3693 if test "x$ac_ct_CC" = x; then
3694 CC=""
3695 else
3696 case $cross_compiling:$ac_tool_warned in
3697 yes:)
3698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3699 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3700 ac_tool_warned=yes ;;
3701 esac
3702 CC=$ac_ct_CC
3703 fi
3704 else
3705 CC="$ac_cv_prog_CC"
3706 fi
3707
3708 fi
3709
3710
3711 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3712 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3713 as_fn_error $? "no acceptable C compiler found in \$PATH
3714 See \`config.log' for more details" "$LINENO" 5; }
3715
3716 # Provide some information about the compiler.
3717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3718 set X $ac_compile
3719 ac_compiler=$2
3720 for ac_option in --version -v -V -qversion -version; do
3721 { { ac_try="$ac_compiler $ac_option >&5"
3722 case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725 esac
3726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727 printf "%s\n" "$ac_try_echo"; } >&5
3728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3729 ac_status=$?
3730 if test -s conftest.err; then
3731 sed '10a\
3732 ... rest of stderr output deleted ...
3733 10q' conftest.err >conftest.er1
3734 cat conftest.er1 >&5
3735 fi
3736 rm -f conftest.er1 conftest.err
3737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738 test $ac_status = 0; }
3739 done
3740
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3743
3744 int
3745 main (void)
3746 {
3747
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 ac_clean_files_save=$ac_clean_files
3753 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3754 # Try to create an executable without -o first, disregard a.out.
3755 # It will help us diagnose broken compilers, and finding out an intuition
3756 # of exeext.
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3758 printf %s "checking whether the C compiler works... " >&6; }
3759 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3760
3761 # The possible output files:
3762 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3763
3764 ac_rmfiles=
3765 for ac_file in $ac_files
3766 do
3767 case $ac_file in
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3770 esac
3771 done
3772 rm -f $ac_rmfiles
3773
3774 if { { ac_try="$ac_link_default"
3775 case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778 esac
3779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 printf "%s\n" "$ac_try_echo"; } >&5
3781 (eval "$ac_link_default") 2>&5
3782 ac_status=$?
3783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }
3785 then :
3786 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3787 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3788 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3789 # so that the user can short-circuit this test for compilers unknown to
3790 # Autoconf.
3791 for ac_file in $ac_files ''
3792 do
3793 test -f "$ac_file" || continue
3794 case $ac_file in
3795 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3796 ;;
3797 [ab].out )
3798 # We found the default executable, but exeext='' is most
3799 # certainly right.
3800 break;;
3801 *.* )
3802 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3803 then :; else
3804 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3805 fi
3806 # We set ac_cv_exeext here because the later test for it is not
3807 # safe: cross compilers may not add the suffix if given an `-o'
3808 # argument, so we may need to know it at that point already.
3809 # Even if this section looks crufty: it has the advantage of
3810 # actually working.
3811 break;;
3812 * )
3813 break;;
3814 esac
3815 done
3816 test "$ac_cv_exeext" = no && ac_cv_exeext=
3817
3818 else $as_nop
3819 ac_file=''
3820 fi
3821 if test -z "$ac_file"
3822 then :
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 printf "%s\n" "no" >&6; }
3825 printf "%s\n" "$as_me: failed program was:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3827
3828 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error 77 "C compiler cannot create executables
3831 See \`config.log' for more details" "$LINENO" 5; }
3832 else $as_nop
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3834 printf "%s\n" "yes" >&6; }
3835 fi
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3837 printf %s "checking for C compiler default output file name... " >&6; }
3838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3839 printf "%s\n" "$ac_file" >&6; }
3840 ac_exeext=$ac_cv_exeext
3841
3842 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3843 ac_clean_files=$ac_clean_files_save
3844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3845 printf %s "checking for suffix of executables... " >&6; }
3846 if { { ac_try="$ac_link"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3852 printf "%s\n" "$ac_try_echo"; } >&5
3853 (eval "$ac_link") 2>&5
3854 ac_status=$?
3855 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3856 test $ac_status = 0; }
3857 then :
3858 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3859 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3860 # work properly (i.e., refer to `conftest.exe'), while it won't with
3861 # `rm'.
3862 for ac_file in conftest.exe conftest conftest.*; do
3863 test -f "$ac_file" || continue
3864 case $ac_file in
3865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3866 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3867 break;;
3868 * ) break;;
3869 esac
3870 done
3871 else $as_nop
3872 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3874 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3875 See \`config.log' for more details" "$LINENO" 5; }
3876 fi
3877 rm -f conftest conftest$ac_cv_exeext
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3879 printf "%s\n" "$ac_cv_exeext" >&6; }
3880
3881 rm -f conftest.$ac_ext
3882 EXEEXT=$ac_cv_exeext
3883 ac_exeext=$EXEEXT
3884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h. */
3886 #include <stdio.h>
3887 int
3888 main (void)
3889 {
3890 FILE *f = fopen ("conftest.out", "w");
3891 return ferror (f) || fclose (f) != 0;
3892
3893 ;
3894 return 0;
3895 }
3896 _ACEOF
3897 ac_clean_files="$ac_clean_files conftest.out"
3898 # Check that the compiler produces executables we can run. If not, either
3899 # the compiler is broken, or we cross compile.
3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3901 printf %s "checking whether we are cross compiling... " >&6; }
3902 if test "$cross_compiling" != yes; then
3903 { { ac_try="$ac_link"
3904 case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907 esac
3908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3909 printf "%s\n" "$ac_try_echo"; } >&5
3910 (eval "$ac_link") 2>&5
3911 ac_status=$?
3912 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3913 test $ac_status = 0; }
3914 if { ac_try='./conftest$ac_cv_exeext'
3915 { { case "(($ac_try" in
3916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3917 *) ac_try_echo=$ac_try;;
3918 esac
3919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3920 printf "%s\n" "$ac_try_echo"; } >&5
3921 (eval "$ac_try") 2>&5
3922 ac_status=$?
3923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3924 test $ac_status = 0; }; }; then
3925 cross_compiling=no
3926 else
3927 if test "$cross_compiling" = maybe; then
3928 cross_compiling=yes
3929 else
3930 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3931 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3932 as_fn_error 77 "cannot run C compiled programs.
3933 If you meant to cross compile, use \`--host'.
3934 See \`config.log' for more details" "$LINENO" 5; }
3935 fi
3936 fi
3937 fi
3938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3939 printf "%s\n" "$cross_compiling" >&6; }
3940
3941 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3942 ac_clean_files=$ac_clean_files_save
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3944 printf %s "checking for suffix of object files... " >&6; }
3945 if test ${ac_cv_objext+y}
3946 then :
3947 printf %s "(cached) " >&6
3948 else $as_nop
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3951
3952 int
3953 main (void)
3954 {
3955
3956 ;
3957 return 0;
3958 }
3959 _ACEOF
3960 rm -f conftest.o conftest.obj
3961 if { { ac_try="$ac_compile"
3962 case "(($ac_try" in
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3965 esac
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 printf "%s\n" "$ac_try_echo"; } >&5
3968 (eval "$ac_compile") 2>&5
3969 ac_status=$?
3970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }
3972 then :
3973 for ac_file in conftest.o conftest.obj conftest.*; do
3974 test -f "$ac_file" || continue;
3975 case $ac_file in
3976 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3977 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3978 break;;
3979 esac
3980 done
3981 else $as_nop
3982 printf "%s\n" "$as_me: failed program was:" >&5
3983 sed 's/^/| /' conftest.$ac_ext >&5
3984
3985 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3986 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3987 as_fn_error $? "cannot compute suffix of object files: cannot compile
3988 See \`config.log' for more details" "$LINENO" 5; }
3989 fi
3990 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3991 fi
3992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3993 printf "%s\n" "$ac_cv_objext" >&6; }
3994 OBJEXT=$ac_cv_objext
3995 ac_objext=$OBJEXT
3996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3997 printf %s "checking whether the compiler supports GNU C... " >&6; }
3998 if test ${ac_cv_c_compiler_gnu+y}
3999 then :
4000 printf %s "(cached) " >&6
4001 else $as_nop
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004
4005 int
4006 main (void)
4007 {
4008 #ifndef __GNUC__
4009 choke me
4010 #endif
4011
4012 ;
4013 return 0;
4014 }
4015 _ACEOF
4016 if ac_fn_c_try_compile "$LINENO"
4017 then :
4018 ac_compiler_gnu=yes
4019 else $as_nop
4020 ac_compiler_gnu=no
4021 fi
4022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4024
4025 fi
4026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4027 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4029
4030 if test $ac_compiler_gnu = yes; then
4031 GCC=yes
4032 else
4033 GCC=
4034 fi
4035 ac_test_CFLAGS=${CFLAGS+y}
4036 ac_save_CFLAGS=$CFLAGS
4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4038 printf %s "checking whether $CC accepts -g... " >&6; }
4039 if test ${ac_cv_prog_cc_g+y}
4040 then :
4041 printf %s "(cached) " >&6
4042 else $as_nop
4043 ac_save_c_werror_flag=$ac_c_werror_flag
4044 ac_c_werror_flag=yes
4045 ac_cv_prog_cc_g=no
4046 CFLAGS="-g"
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4049
4050 int
4051 main (void)
4052 {
4053
4054 ;
4055 return 0;
4056 }
4057 _ACEOF
4058 if ac_fn_c_try_compile "$LINENO"
4059 then :
4060 ac_cv_prog_cc_g=yes
4061 else $as_nop
4062 CFLAGS=""
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065
4066 int
4067 main (void)
4068 {
4069
4070 ;
4071 return 0;
4072 }
4073 _ACEOF
4074 if ac_fn_c_try_compile "$LINENO"
4075 then :
4076
4077 else $as_nop
4078 ac_c_werror_flag=$ac_save_c_werror_flag
4079 CFLAGS="-g"
4080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081 /* end confdefs.h. */
4082
4083 int
4084 main (void)
4085 {
4086
4087 ;
4088 return 0;
4089 }
4090 _ACEOF
4091 if ac_fn_c_try_compile "$LINENO"
4092 then :
4093 ac_cv_prog_cc_g=yes
4094 fi
4095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4096 fi
4097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4098 fi
4099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4100 ac_c_werror_flag=$ac_save_c_werror_flag
4101 fi
4102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4103 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4104 if test $ac_test_CFLAGS; then
4105 CFLAGS=$ac_save_CFLAGS
4106 elif test $ac_cv_prog_cc_g = yes; then
4107 if test "$GCC" = yes; then
4108 CFLAGS="-g -O2"
4109 else
4110 CFLAGS="-g"
4111 fi
4112 else
4113 if test "$GCC" = yes; then
4114 CFLAGS="-O2"
4115 else
4116 CFLAGS=
4117 fi
4118 fi
4119 ac_prog_cc_stdc=no
4120 if test x$ac_prog_cc_stdc = xno
4121 then :
4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4123 printf %s "checking for $CC option to enable C11 features... " >&6; }
4124 if test ${ac_cv_prog_cc_c11+y}
4125 then :
4126 printf %s "(cached) " >&6
4127 else $as_nop
4128 ac_cv_prog_cc_c11=no
4129 ac_save_CC=$CC
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4132 $ac_c_conftest_c11_program
4133 _ACEOF
4134 for ac_arg in '' -std=gnu11
4135 do
4136 CC="$ac_save_CC $ac_arg"
4137 if ac_fn_c_try_compile "$LINENO"
4138 then :
4139 ac_cv_prog_cc_c11=$ac_arg
4140 fi
4141 rm -f core conftest.err conftest.$ac_objext conftest.beam
4142 test "x$ac_cv_prog_cc_c11" != "xno" && break
4143 done
4144 rm -f conftest.$ac_ext
4145 CC=$ac_save_CC
4146 fi
4147
4148 if test "x$ac_cv_prog_cc_c11" = xno
4149 then :
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4151 printf "%s\n" "unsupported" >&6; }
4152 else $as_nop
4153 if test "x$ac_cv_prog_cc_c11" = x
4154 then :
4155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4156 printf "%s\n" "none needed" >&6; }
4157 else $as_nop
4158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4159 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4160 CC="$CC $ac_cv_prog_cc_c11"
4161 fi
4162 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4163 ac_prog_cc_stdc=c11
4164 fi
4165 fi
4166 if test x$ac_prog_cc_stdc = xno
4167 then :
4168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4169 printf %s "checking for $CC option to enable C99 features... " >&6; }
4170 if test ${ac_cv_prog_cc_c99+y}
4171 then :
4172 printf %s "(cached) " >&6
4173 else $as_nop
4174 ac_cv_prog_cc_c99=no
4175 ac_save_CC=$CC
4176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4177 /* end confdefs.h. */
4178 $ac_c_conftest_c99_program
4179 _ACEOF
4180 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4181 do
4182 CC="$ac_save_CC $ac_arg"
4183 if ac_fn_c_try_compile "$LINENO"
4184 then :
4185 ac_cv_prog_cc_c99=$ac_arg
4186 fi
4187 rm -f core conftest.err conftest.$ac_objext conftest.beam
4188 test "x$ac_cv_prog_cc_c99" != "xno" && break
4189 done
4190 rm -f conftest.$ac_ext
4191 CC=$ac_save_CC
4192 fi
4193
4194 if test "x$ac_cv_prog_cc_c99" = xno
4195 then :
4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4197 printf "%s\n" "unsupported" >&6; }
4198 else $as_nop
4199 if test "x$ac_cv_prog_cc_c99" = x
4200 then :
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4202 printf "%s\n" "none needed" >&6; }
4203 else $as_nop
4204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4205 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4206 CC="$CC $ac_cv_prog_cc_c99"
4207 fi
4208 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4209 ac_prog_cc_stdc=c99
4210 fi
4211 fi
4212 if test x$ac_prog_cc_stdc = xno
4213 then :
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4215 printf %s "checking for $CC option to enable C89 features... " >&6; }
4216 if test ${ac_cv_prog_cc_c89+y}
4217 then :
4218 printf %s "(cached) " >&6
4219 else $as_nop
4220 ac_cv_prog_cc_c89=no
4221 ac_save_CC=$CC
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 $ac_c_conftest_c89_program
4225 _ACEOF
4226 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4227 do
4228 CC="$ac_save_CC $ac_arg"
4229 if ac_fn_c_try_compile "$LINENO"
4230 then :
4231 ac_cv_prog_cc_c89=$ac_arg
4232 fi
4233 rm -f core conftest.err conftest.$ac_objext conftest.beam
4234 test "x$ac_cv_prog_cc_c89" != "xno" && break
4235 done
4236 rm -f conftest.$ac_ext
4237 CC=$ac_save_CC
4238 fi
4239
4240 if test "x$ac_cv_prog_cc_c89" = xno
4241 then :
4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4243 printf "%s\n" "unsupported" >&6; }
4244 else $as_nop
4245 if test "x$ac_cv_prog_cc_c89" = x
4246 then :
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4248 printf "%s\n" "none needed" >&6; }
4249 else $as_nop
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4251 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4252 CC="$CC $ac_cv_prog_cc_c89"
4253 fi
4254 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4255 ac_prog_cc_stdc=c89
4256 fi
4257 fi
4258
4259 ac_ext=c
4260 ac_cpp='$CPP $CPPFLAGS'
4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264
4265
4266 ac_ext=c
4267 ac_cpp='$CPP $CPPFLAGS'
4268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4272 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4273 if test ${am_cv_prog_cc_c_o+y}
4274 then :
4275 printf %s "(cached) " >&6
4276 else $as_nop
4277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4278 /* end confdefs.h. */
4279
4280 int
4281 main (void)
4282 {
4283
4284 ;
4285 return 0;
4286 }
4287 _ACEOF
4288 # Make sure it works both with $CC and with simple cc.
4289 # Following AC_PROG_CC_C_O, we do the test twice because some
4290 # compilers refuse to overwrite an existing .o file with -o,
4291 # though they will create one.
4292 am_cv_prog_cc_c_o=yes
4293 for am_i in 1 2; do
4294 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4295 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } \
4299 && test -f conftest2.$ac_objext; then
4300 : OK
4301 else
4302 am_cv_prog_cc_c_o=no
4303 break
4304 fi
4305 done
4306 rm -f core conftest*
4307 unset am_i
4308 fi
4309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4310 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4311 if test "$am_cv_prog_cc_c_o" != yes; then
4312 # Losing compiler, so override with the script.
4313 # FIXME: It is wrong to rewrite CC.
4314 # But if we don't then we get into trouble of one sort or another.
4315 # A longer-term fix would be to have automake use am__CC in this case,
4316 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4317 CC="$am_aux_dir/compile $CC"
4318 fi
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324
4325
4326 depcc="$CC" am_compiler_list=
4327
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4329 printf %s "checking dependency style of $depcc... " >&6; }
4330 if test ${am_cv_CC_dependencies_compiler_type+y}
4331 then :
4332 printf %s "(cached) " >&6
4333 else $as_nop
4334 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4335 # We make a subdir and do the tests there. Otherwise we can end up
4336 # making bogus files that we don't know about and never remove. For
4337 # instance it was reported that on HP-UX the gcc test will end up
4338 # making a dummy file named 'D' -- because '-MD' means "put the output
4339 # in D".
4340 rm -rf conftest.dir
4341 mkdir conftest.dir
4342 # Copy depcomp to subdir because otherwise we won't find it if we're
4343 # using a relative directory.
4344 cp "$am_depcomp" conftest.dir
4345 cd conftest.dir
4346 # We will build objects and dependencies in a subdirectory because
4347 # it helps to detect inapplicable dependency modes. For instance
4348 # both Tru64's cc and ICC support -MD to output dependencies as a
4349 # side effect of compilation, but ICC will put the dependencies in
4350 # the current directory while Tru64 will put them in the object
4351 # directory.
4352 mkdir sub
4353
4354 am_cv_CC_dependencies_compiler_type=none
4355 if test "$am_compiler_list" = ""; then
4356 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4357 fi
4358 am__universal=false
4359 case " $depcc " in #(
4360 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4361 esac
4362
4363 for depmode in $am_compiler_list; do
4364 # Setup a source with many dependencies, because some compilers
4365 # like to wrap large dependency lists on column 80 (with \), and
4366 # we should not choose a depcomp mode which is confused by this.
4367 #
4368 # We need to recreate these files for each test, as the compiler may
4369 # overwrite some of them when testing with obscure command lines.
4370 # This happens at least with the AIX C compiler.
4371 : > sub/conftest.c
4372 for i in 1 2 3 4 5 6; do
4373 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4374 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4375 # Solaris 10 /bin/sh.
4376 echo '/* dummy */' > sub/conftst$i.h
4377 done
4378 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4379
4380 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4381 # mode. It turns out that the SunPro C++ compiler does not properly
4382 # handle '-M -o', and we need to detect this. Also, some Intel
4383 # versions had trouble with output in subdirs.
4384 am__obj=sub/conftest.${OBJEXT-o}
4385 am__minus_obj="-o $am__obj"
4386 case $depmode in
4387 gcc)
4388 # This depmode causes a compiler race in universal mode.
4389 test "$am__universal" = false || continue
4390 ;;
4391 nosideeffect)
4392 # After this tag, mechanisms are not by side-effect, so they'll
4393 # only be used when explicitly requested.
4394 if test "x$enable_dependency_tracking" = xyes; then
4395 continue
4396 else
4397 break
4398 fi
4399 ;;
4400 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4401 # This compiler won't grok '-c -o', but also, the minuso test has
4402 # not run yet. These depmodes are late enough in the game, and
4403 # so weak that their functioning should not be impacted.
4404 am__obj=conftest.${OBJEXT-o}
4405 am__minus_obj=
4406 ;;
4407 none) break ;;
4408 esac
4409 if depmode=$depmode \
4410 source=sub/conftest.c object=$am__obj \
4411 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4412 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4413 >/dev/null 2>conftest.err &&
4414 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4415 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4416 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4417 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4418 # icc doesn't choke on unknown options, it will just issue warnings
4419 # or remarks (even with -Werror). So we grep stderr for any message
4420 # that says an option was ignored or not supported.
4421 # When given -MP, icc 7.0 and 7.1 complain thusly:
4422 # icc: Command line warning: ignoring option '-M'; no argument required
4423 # The diagnosis changed in icc 8.0:
4424 # icc: Command line remark: option '-MP' not supported
4425 if (grep 'ignoring option' conftest.err ||
4426 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4427 am_cv_CC_dependencies_compiler_type=$depmode
4428 break
4429 fi
4430 fi
4431 done
4432
4433 cd ..
4434 rm -rf conftest.dir
4435 else
4436 am_cv_CC_dependencies_compiler_type=none
4437 fi
4438
4439 fi
4440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4441 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4442 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4443
4444 if
4445 test "x$enable_dependency_tracking" != xno \
4446 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4447 am__fastdepCC_TRUE=
4448 am__fastdepCC_FALSE='#'
4449 else
4450 am__fastdepCC_TRUE='#'
4451 am__fastdepCC_FALSE=
4452 fi
4453
4454
4455
4456
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
4458 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
4459 if test ${ac_cv_c_undeclared_builtin_options+y}
4460 then :
4461 printf %s "(cached) " >&6
4462 else $as_nop
4463 ac_save_CFLAGS=$CFLAGS
4464 ac_cv_c_undeclared_builtin_options='cannot detect'
4465 for ac_arg in '' -fno-builtin; do
4466 CFLAGS="$ac_save_CFLAGS $ac_arg"
4467 # This test program should *not* compile successfully.
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470
4471 int
4472 main (void)
4473 {
4474 (void) strchr;
4475 ;
4476 return 0;
4477 }
4478 _ACEOF
4479 if ac_fn_c_try_compile "$LINENO"
4480 then :
4481
4482 else $as_nop
4483 # This test program should compile successfully.
4484 # No library function is consistently available on
4485 # freestanding implementations, so test against a dummy
4486 # declaration. Include always-available headers on the
4487 # off chance that they somehow elicit warnings.
4488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h. */
4490 #include <float.h>
4491 #include <limits.h>
4492 #include <stdarg.h>
4493 #include <stddef.h>
4494 extern void ac_decl (int, char *);
4495
4496 int
4497 main (void)
4498 {
4499 (void) ac_decl (0, (char *) 0);
4500 (void) ac_decl;
4501
4502 ;
4503 return 0;
4504 }
4505 _ACEOF
4506 if ac_fn_c_try_compile "$LINENO"
4507 then :
4508 if test x"$ac_arg" = x
4509 then :
4510 ac_cv_c_undeclared_builtin_options='none needed'
4511 else $as_nop
4512 ac_cv_c_undeclared_builtin_options=$ac_arg
4513 fi
4514 break
4515 fi
4516 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4517 fi
4518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4519 done
4520 CFLAGS=$ac_save_CFLAGS
4521
4522 fi
4523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
4524 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
4525 case $ac_cv_c_undeclared_builtin_options in #(
4526 'cannot detect') :
4527 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4528 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4529 as_fn_error $? "cannot make $CC report undeclared builtins
4530 See \`config.log' for more details" "$LINENO" 5; } ;; #(
4531 'none needed') :
4532 ac_c_undeclared_builtin_options='' ;; #(
4533 *) :
4534 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
4535 esac
4536
4537 ac_header= ac_cache=
4538 for ac_item in $ac_header_c_list
4539 do
4540 if test $ac_cache; then
4541 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4542 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4543 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4544 fi
4545 ac_header= ac_cache=
4546 elif test $ac_header; then
4547 ac_cache=$ac_item
4548 else
4549 ac_header=$ac_item
4550 fi
4551 done
4552
4553
4554
4555
4556
4557
4558
4559
4560 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4561 then :
4562
4563 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4564
4565 fi
4566
4567
4568
4569
4570 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4571 if test "x$ac_cv_have_decl___clang__" = xyes
4572 then :
4573 CLANGCC="yes"
4574 else $as_nop
4575 CLANGCC="no"
4576 fi
4577 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4578 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
4579 then :
4580 INTELCC="yes"
4581 else $as_nop
4582 INTELCC="no"
4583 fi
4584 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
4585 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
4586 then :
4587 SUNCC="yes"
4588 else $as_nop
4589 SUNCC="no"
4590 fi
4591
4592
4593
4594
4595
4596
4597
4598
4599 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4600 if test -n "$ac_tool_prefix"; then
4601 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4602 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 printf %s "checking for $ac_word... " >&6; }
4605 if test ${ac_cv_path_PKG_CONFIG+y}
4606 then :
4607 printf %s "(cached) " >&6
4608 else $as_nop
4609 case $PKG_CONFIG in
4610 [\\/]* | ?:[\\/]*)
4611 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4612 ;;
4613 *)
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617 IFS=$as_save_IFS
4618 case $as_dir in #(((
4619 '') as_dir=./ ;;
4620 */) ;;
4621 *) as_dir=$as_dir/ ;;
4622 esac
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4625 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4627 break 2
4628 fi
4629 done
4630 done
4631 IFS=$as_save_IFS
4632
4633 ;;
4634 esac
4635 fi
4636 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4637 if test -n "$PKG_CONFIG"; then
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4639 printf "%s\n" "$PKG_CONFIG" >&6; }
4640 else
4641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4642 printf "%s\n" "no" >&6; }
4643 fi
4644
4645
4646 fi
4647 if test -z "$ac_cv_path_PKG_CONFIG"; then
4648 ac_pt_PKG_CONFIG=$PKG_CONFIG
4649 # Extract the first word of "pkg-config", so it can be a program name with args.
4650 set dummy pkg-config; ac_word=$2
4651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4652 printf %s "checking for $ac_word... " >&6; }
4653 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4654 then :
4655 printf %s "(cached) " >&6
4656 else $as_nop
4657 case $ac_pt_PKG_CONFIG in
4658 [\\/]* | ?:[\\/]*)
4659 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4660 ;;
4661 *)
4662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4664 do
4665 IFS=$as_save_IFS
4666 case $as_dir in #(((
4667 '') as_dir=./ ;;
4668 */) ;;
4669 *) as_dir=$as_dir/ ;;
4670 esac
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4673 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4675 break 2
4676 fi
4677 done
4678 done
4679 IFS=$as_save_IFS
4680
4681 ;;
4682 esac
4683 fi
4684 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4685 if test -n "$ac_pt_PKG_CONFIG"; then
4686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4687 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4688 else
4689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 printf "%s\n" "no" >&6; }
4691 fi
4692
4693 if test "x$ac_pt_PKG_CONFIG" = x; then
4694 PKG_CONFIG=""
4695 else
4696 case $cross_compiling:$ac_tool_warned in
4697 yes:)
4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4699 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4700 ac_tool_warned=yes ;;
4701 esac
4702 PKG_CONFIG=$ac_pt_PKG_CONFIG
4703 fi
4704 else
4705 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4706 fi
4707
4708 fi
4709 if test -n "$PKG_CONFIG"; then
4710 _pkg_min_version=0.9.0
4711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4712 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4713 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4715 printf "%s\n" "yes" >&6; }
4716 else
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4718 printf "%s\n" "no" >&6; }
4719 PKG_CONFIG=""
4720 fi
4721 fi
4722
4723
4724 # Make sure we can run config.sub.
4725 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4726 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4727
4728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4729 printf %s "checking build system type... " >&6; }
4730 if test ${ac_cv_build+y}
4731 then :
4732 printf %s "(cached) " >&6
4733 else $as_nop
4734 ac_build_alias=$build_alias
4735 test "x$ac_build_alias" = x &&
4736 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4737 test "x$ac_build_alias" = x &&
4738 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4739 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4740 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4741
4742 fi
4743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4744 printf "%s\n" "$ac_cv_build" >&6; }
4745 case $ac_cv_build in
4746 *-*-*) ;;
4747 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4748 esac
4749 build=$ac_cv_build
4750 ac_save_IFS=$IFS; IFS='-'
4751 set x $ac_cv_build
4752 shift
4753 build_cpu=$1
4754 build_vendor=$2
4755 shift; shift
4756 # Remember, the first character of IFS is used to create $*,
4757 # except with old shells:
4758 build_os=$*
4759 IFS=$ac_save_IFS
4760 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4761
4762
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4764 printf %s "checking host system type... " >&6; }
4765 if test ${ac_cv_host+y}
4766 then :
4767 printf %s "(cached) " >&6
4768 else $as_nop
4769 if test "x$host_alias" = x; then
4770 ac_cv_host=$ac_cv_build
4771 else
4772 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4773 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4774 fi
4775
4776 fi
4777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4778 printf "%s\n" "$ac_cv_host" >&6; }
4779 case $ac_cv_host in
4780 *-*-*) ;;
4781 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4782 esac
4783 host=$ac_cv_host
4784 ac_save_IFS=$IFS; IFS='-'
4785 set x $ac_cv_host
4786 shift
4787 host_cpu=$1
4788 host_vendor=$2
4789 shift; shift
4790 # Remember, the first character of IFS is used to create $*,
4791 # except with old shells:
4792 host_os=$*
4793 IFS=$ac_save_IFS
4794 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4795
4796
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4798 printf %s "checking for a sed that does not truncate output... " >&6; }
4799 if test ${ac_cv_path_SED+y}
4800 then :
4801 printf %s "(cached) " >&6
4802 else $as_nop
4803 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4804 for ac_i in 1 2 3 4 5 6 7; do
4805 ac_script="$ac_script$as_nl$ac_script"
4806 done
4807 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4808 { ac_script=; unset ac_script;}
4809 if test -z "$SED"; then
4810 ac_path_SED_found=false
4811 # Loop through the user's path and test for each of PROGNAME-LIST
4812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813 for as_dir in $PATH
4814 do
4815 IFS=$as_save_IFS
4816 case $as_dir in #(((
4817 '') as_dir=./ ;;
4818 */) ;;
4819 *) as_dir=$as_dir/ ;;
4820 esac
4821 for ac_prog in sed gsed
4822 do
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4825 as_fn_executable_p "$ac_path_SED" || continue
4826 # Check for GNU ac_path_SED and select it if it is found.
4827 # Check for GNU $ac_path_SED
4828 case `"$ac_path_SED" --version 2>&1` in
4829 *GNU*)
4830 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4831 *)
4832 ac_count=0
4833 printf %s 0123456789 >"conftest.in"
4834 while :
4835 do
4836 cat "conftest.in" "conftest.in" >"conftest.tmp"
4837 mv "conftest.tmp" "conftest.in"
4838 cp "conftest.in" "conftest.nl"
4839 printf "%s\n" '' >> "conftest.nl"
4840 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4841 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4842 as_fn_arith $ac_count + 1 && ac_count=$as_val
4843 if test $ac_count -gt ${ac_path_SED_max-0}; then
4844 # Best one so far, save it but keep looking for a better one
4845 ac_cv_path_SED="$ac_path_SED"
4846 ac_path_SED_max=$ac_count
4847 fi
4848 # 10*(2^10) chars as input seems more than enough
4849 test $ac_count -gt 10 && break
4850 done
4851 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4852 esac
4853
4854 $ac_path_SED_found && break 3
4855 done
4856 done
4857 done
4858 IFS=$as_save_IFS
4859 if test -z "$ac_cv_path_SED"; then
4860 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4861 fi
4862 else
4863 ac_cv_path_SED=$SED
4864 fi
4865
4866 fi
4867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4868 printf "%s\n" "$ac_cv_path_SED" >&6; }
4869 SED="$ac_cv_path_SED"
4870 rm -f conftest.sed
4871
4872
4873
4874
4875
4876
4877 # Check whether --enable-selective-werror was given.
4878 if test ${enable_selective_werror+y}
4879 then :
4880 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4881 else $as_nop
4882 SELECTIVE_WERROR=yes
4883 fi
4884
4885
4886
4887
4888
4889 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4890 if test "x$SUNCC" = "xyes"; then
4891 BASE_CFLAGS="-v"
4892 else
4893 BASE_CFLAGS=""
4894 fi
4895
4896 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910 xorg_testset_save_CFLAGS="$CFLAGS"
4911
4912 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4913 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4915 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4916 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
4917 then :
4918 printf %s "(cached) " >&6
4919 else $as_nop
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4922 int i;
4923 _ACEOF
4924 if ac_fn_c_try_compile "$LINENO"
4925 then :
4926 xorg_cv_cc_flag_unknown_warning_option=yes
4927 else $as_nop
4928 xorg_cv_cc_flag_unknown_warning_option=no
4929 fi
4930 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4931 fi
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4933 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4934 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4935 CFLAGS="$xorg_testset_save_CFLAGS"
4936 fi
4937
4938 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4939 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4940 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4941 fi
4942 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4944 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4945 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
4946 then :
4947 printf %s "(cached) " >&6
4948 else $as_nop
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 int i;
4952 _ACEOF
4953 if ac_fn_c_try_compile "$LINENO"
4954 then :
4955 xorg_cv_cc_flag_unused_command_line_argument=yes
4956 else $as_nop
4957 xorg_cv_cc_flag_unused_command_line_argument=no
4958 fi
4959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4960 fi
4961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4962 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4963 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4964 CFLAGS="$xorg_testset_save_CFLAGS"
4965 fi
4966
4967 found="no"
4968
4969 if test $found = "no" ; then
4970 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4971 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4972 fi
4973
4974 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4975 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4976 fi
4977
4978 CFLAGS="$CFLAGS -Wall"
4979
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4981 printf %s "checking if $CC supports -Wall... " >&6; }
4982 cacheid=xorg_cv_cc_flag__Wall
4983 if eval test \${$cacheid+y}
4984 then :
4985 printf %s "(cached) " >&6
4986 else $as_nop
4987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4988 /* end confdefs.h. */
4989 int i;
4990 int
4991 main (void)
4992 {
4993
4994 ;
4995 return 0;
4996 }
4997 _ACEOF
4998 if ac_fn_c_try_link "$LINENO"
4999 then :
5000 eval $cacheid=yes
5001 else $as_nop
5002 eval $cacheid=no
5003 fi
5004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5005 conftest$ac_exeext conftest.$ac_ext
5006 fi
5007
5008
5009 CFLAGS="$xorg_testset_save_CFLAGS"
5010
5011 eval supported=\$$cacheid
5012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5013 printf "%s\n" "$supported" >&6; }
5014 if test "$supported" = "yes" ; then
5015 BASE_CFLAGS="$BASE_CFLAGS -Wall"
5016 found="yes"
5017 fi
5018 fi
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034 xorg_testset_save_CFLAGS="$CFLAGS"
5035
5036 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5037 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5039 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5040 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5041 then :
5042 printf %s "(cached) " >&6
5043 else $as_nop
5044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5045 /* end confdefs.h. */
5046 int i;
5047 _ACEOF
5048 if ac_fn_c_try_compile "$LINENO"
5049 then :
5050 xorg_cv_cc_flag_unknown_warning_option=yes
5051 else $as_nop
5052 xorg_cv_cc_flag_unknown_warning_option=no
5053 fi
5054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5055 fi
5056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5057 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5058 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5059 CFLAGS="$xorg_testset_save_CFLAGS"
5060 fi
5061
5062 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5065 fi
5066 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5068 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5069 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5070 then :
5071 printf %s "(cached) " >&6
5072 else $as_nop
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075 int i;
5076 _ACEOF
5077 if ac_fn_c_try_compile "$LINENO"
5078 then :
5079 xorg_cv_cc_flag_unused_command_line_argument=yes
5080 else $as_nop
5081 xorg_cv_cc_flag_unused_command_line_argument=no
5082 fi
5083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5084 fi
5085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5086 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5087 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5088 CFLAGS="$xorg_testset_save_CFLAGS"
5089 fi
5090
5091 found="no"
5092
5093 if test $found = "no" ; then
5094 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5095 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5096 fi
5097
5098 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5099 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5100 fi
5101
5102 CFLAGS="$CFLAGS -Wpointer-arith"
5103
5104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
5105 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
5106 cacheid=xorg_cv_cc_flag__Wpointer_arith
5107 if eval test \${$cacheid+y}
5108 then :
5109 printf %s "(cached) " >&6
5110 else $as_nop
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5113 int i;
5114 int
5115 main (void)
5116 {
5117
5118 ;
5119 return 0;
5120 }
5121 _ACEOF
5122 if ac_fn_c_try_link "$LINENO"
5123 then :
5124 eval $cacheid=yes
5125 else $as_nop
5126 eval $cacheid=no
5127 fi
5128 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5129 conftest$ac_exeext conftest.$ac_ext
5130 fi
5131
5132
5133 CFLAGS="$xorg_testset_save_CFLAGS"
5134
5135 eval supported=\$$cacheid
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5137 printf "%s\n" "$supported" >&6; }
5138 if test "$supported" = "yes" ; then
5139 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
5140 found="yes"
5141 fi
5142 fi
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158 xorg_testset_save_CFLAGS="$CFLAGS"
5159
5160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5163 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5164 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5165 then :
5166 printf %s "(cached) " >&6
5167 else $as_nop
5168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5170 int i;
5171 _ACEOF
5172 if ac_fn_c_try_compile "$LINENO"
5173 then :
5174 xorg_cv_cc_flag_unknown_warning_option=yes
5175 else $as_nop
5176 xorg_cv_cc_flag_unknown_warning_option=no
5177 fi
5178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5179 fi
5180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5181 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5183 CFLAGS="$xorg_testset_save_CFLAGS"
5184 fi
5185
5186 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5189 fi
5190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5192 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5193 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5194 then :
5195 printf %s "(cached) " >&6
5196 else $as_nop
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5199 int i;
5200 _ACEOF
5201 if ac_fn_c_try_compile "$LINENO"
5202 then :
5203 xorg_cv_cc_flag_unused_command_line_argument=yes
5204 else $as_nop
5205 xorg_cv_cc_flag_unused_command_line_argument=no
5206 fi
5207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5208 fi
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5210 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5212 CFLAGS="$xorg_testset_save_CFLAGS"
5213 fi
5214
5215 found="no"
5216
5217 if test $found = "no" ; then
5218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5220 fi
5221
5222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5224 fi
5225
5226 CFLAGS="$CFLAGS -Wmissing-declarations"
5227
5228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
5229 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
5230 cacheid=xorg_cv_cc_flag__Wmissing_declarations
5231 if eval test \${$cacheid+y}
5232 then :
5233 printf %s "(cached) " >&6
5234 else $as_nop
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5237 int i;
5238 int
5239 main (void)
5240 {
5241
5242 ;
5243 return 0;
5244 }
5245 _ACEOF
5246 if ac_fn_c_try_link "$LINENO"
5247 then :
5248 eval $cacheid=yes
5249 else $as_nop
5250 eval $cacheid=no
5251 fi
5252 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5253 conftest$ac_exeext conftest.$ac_ext
5254 fi
5255
5256
5257 CFLAGS="$xorg_testset_save_CFLAGS"
5258
5259 eval supported=\$$cacheid
5260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5261 printf "%s\n" "$supported" >&6; }
5262 if test "$supported" = "yes" ; then
5263 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
5264 found="yes"
5265 fi
5266 fi
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282 xorg_testset_save_CFLAGS="$CFLAGS"
5283
5284 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5287 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5288 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5289 then :
5290 printf %s "(cached) " >&6
5291 else $as_nop
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293 /* end confdefs.h. */
5294 int i;
5295 _ACEOF
5296 if ac_fn_c_try_compile "$LINENO"
5297 then :
5298 xorg_cv_cc_flag_unknown_warning_option=yes
5299 else $as_nop
5300 xorg_cv_cc_flag_unknown_warning_option=no
5301 fi
5302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5303 fi
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5305 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5306 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5307 CFLAGS="$xorg_testset_save_CFLAGS"
5308 fi
5309
5310 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5311 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5313 fi
5314 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5316 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5317 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5318 then :
5319 printf %s "(cached) " >&6
5320 else $as_nop
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5322 /* end confdefs.h. */
5323 int i;
5324 _ACEOF
5325 if ac_fn_c_try_compile "$LINENO"
5326 then :
5327 xorg_cv_cc_flag_unused_command_line_argument=yes
5328 else $as_nop
5329 xorg_cv_cc_flag_unused_command_line_argument=no
5330 fi
5331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5332 fi
5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5334 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5335 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5336 CFLAGS="$xorg_testset_save_CFLAGS"
5337 fi
5338
5339 found="no"
5340
5341 if test $found = "no" ; then
5342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5344 fi
5345
5346 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5347 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5348 fi
5349
5350 CFLAGS="$CFLAGS -Wformat=2"
5351
5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5353 printf %s "checking if $CC supports -Wformat=2... " >&6; }
5354 cacheid=xorg_cv_cc_flag__Wformat_2
5355 if eval test \${$cacheid+y}
5356 then :
5357 printf %s "(cached) " >&6
5358 else $as_nop
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 int i;
5362 int
5363 main (void)
5364 {
5365
5366 ;
5367 return 0;
5368 }
5369 _ACEOF
5370 if ac_fn_c_try_link "$LINENO"
5371 then :
5372 eval $cacheid=yes
5373 else $as_nop
5374 eval $cacheid=no
5375 fi
5376 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5377 conftest$ac_exeext conftest.$ac_ext
5378 fi
5379
5380
5381 CFLAGS="$xorg_testset_save_CFLAGS"
5382
5383 eval supported=\$$cacheid
5384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5385 printf "%s\n" "$supported" >&6; }
5386 if test "$supported" = "yes" ; then
5387 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5388 found="yes"
5389 fi
5390 fi
5391
5392 if test $found = "no" ; then
5393 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5394 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5395 fi
5396
5397 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5399 fi
5400
5401 CFLAGS="$CFLAGS -Wformat"
5402
5403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5404 printf %s "checking if $CC supports -Wformat... " >&6; }
5405 cacheid=xorg_cv_cc_flag__Wformat
5406 if eval test \${$cacheid+y}
5407 then :
5408 printf %s "(cached) " >&6
5409 else $as_nop
5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5411 /* end confdefs.h. */
5412 int i;
5413 int
5414 main (void)
5415 {
5416
5417 ;
5418 return 0;
5419 }
5420 _ACEOF
5421 if ac_fn_c_try_link "$LINENO"
5422 then :
5423 eval $cacheid=yes
5424 else $as_nop
5425 eval $cacheid=no
5426 fi
5427 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5428 conftest$ac_exeext conftest.$ac_ext
5429 fi
5430
5431
5432 CFLAGS="$xorg_testset_save_CFLAGS"
5433
5434 eval supported=\$$cacheid
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5436 printf "%s\n" "$supported" >&6; }
5437 if test "$supported" = "yes" ; then
5438 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5439 found="yes"
5440 fi
5441 fi
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459 xorg_testset_save_CFLAGS="$CFLAGS"
5460
5461 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5464 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5465 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5466 then :
5467 printf %s "(cached) " >&6
5468 else $as_nop
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 int i;
5472 _ACEOF
5473 if ac_fn_c_try_compile "$LINENO"
5474 then :
5475 xorg_cv_cc_flag_unknown_warning_option=yes
5476 else $as_nop
5477 xorg_cv_cc_flag_unknown_warning_option=no
5478 fi
5479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5480 fi
5481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5482 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5483 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5484 CFLAGS="$xorg_testset_save_CFLAGS"
5485 fi
5486
5487 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5488 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5490 fi
5491 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5493 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5494 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5495 then :
5496 printf %s "(cached) " >&6
5497 else $as_nop
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 int i;
5501 _ACEOF
5502 if ac_fn_c_try_compile "$LINENO"
5503 then :
5504 xorg_cv_cc_flag_unused_command_line_argument=yes
5505 else $as_nop
5506 xorg_cv_cc_flag_unused_command_line_argument=no
5507 fi
5508 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5509 fi
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5511 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5512 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5513 CFLAGS="$xorg_testset_save_CFLAGS"
5514 fi
5515
5516 found="no"
5517
5518 if test $found = "no" ; then
5519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5521 fi
5522
5523 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5524 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5525 fi
5526
5527 CFLAGS="$CFLAGS -Wstrict-prototypes"
5528
5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5530 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
5531 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5532 if eval test \${$cacheid+y}
5533 then :
5534 printf %s "(cached) " >&6
5535 else $as_nop
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 int i;
5539 int
5540 main (void)
5541 {
5542
5543 ;
5544 return 0;
5545 }
5546 _ACEOF
5547 if ac_fn_c_try_link "$LINENO"
5548 then :
5549 eval $cacheid=yes
5550 else $as_nop
5551 eval $cacheid=no
5552 fi
5553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5554 conftest$ac_exeext conftest.$ac_ext
5555 fi
5556
5557
5558 CFLAGS="$xorg_testset_save_CFLAGS"
5559
5560 eval supported=\$$cacheid
5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5562 printf "%s\n" "$supported" >&6; }
5563 if test "$supported" = "yes" ; then
5564 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5565 found="yes"
5566 fi
5567 fi
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583 xorg_testset_save_CFLAGS="$CFLAGS"
5584
5585 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5586 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5588 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5589 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5590 then :
5591 printf %s "(cached) " >&6
5592 else $as_nop
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 int i;
5596 _ACEOF
5597 if ac_fn_c_try_compile "$LINENO"
5598 then :
5599 xorg_cv_cc_flag_unknown_warning_option=yes
5600 else $as_nop
5601 xorg_cv_cc_flag_unknown_warning_option=no
5602 fi
5603 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5604 fi
5605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5606 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5607 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5608 CFLAGS="$xorg_testset_save_CFLAGS"
5609 fi
5610
5611 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5614 fi
5615 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5617 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5618 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5619 then :
5620 printf %s "(cached) " >&6
5621 else $as_nop
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623 /* end confdefs.h. */
5624 int i;
5625 _ACEOF
5626 if ac_fn_c_try_compile "$LINENO"
5627 then :
5628 xorg_cv_cc_flag_unused_command_line_argument=yes
5629 else $as_nop
5630 xorg_cv_cc_flag_unused_command_line_argument=no
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5633 fi
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5635 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5636 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5637 CFLAGS="$xorg_testset_save_CFLAGS"
5638 fi
5639
5640 found="no"
5641
5642 if test $found = "no" ; then
5643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5645 fi
5646
5647 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5648 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5649 fi
5650
5651 CFLAGS="$CFLAGS -Wmissing-prototypes"
5652
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5654 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
5655 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5656 if eval test \${$cacheid+y}
5657 then :
5658 printf %s "(cached) " >&6
5659 else $as_nop
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5662 int i;
5663 int
5664 main (void)
5665 {
5666
5667 ;
5668 return 0;
5669 }
5670 _ACEOF
5671 if ac_fn_c_try_link "$LINENO"
5672 then :
5673 eval $cacheid=yes
5674 else $as_nop
5675 eval $cacheid=no
5676 fi
5677 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5678 conftest$ac_exeext conftest.$ac_ext
5679 fi
5680
5681
5682 CFLAGS="$xorg_testset_save_CFLAGS"
5683
5684 eval supported=\$$cacheid
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5686 printf "%s\n" "$supported" >&6; }
5687 if test "$supported" = "yes" ; then
5688 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5689 found="yes"
5690 fi
5691 fi
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707 xorg_testset_save_CFLAGS="$CFLAGS"
5708
5709 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5712 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5713 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5714 then :
5715 printf %s "(cached) " >&6
5716 else $as_nop
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5719 int i;
5720 _ACEOF
5721 if ac_fn_c_try_compile "$LINENO"
5722 then :
5723 xorg_cv_cc_flag_unknown_warning_option=yes
5724 else $as_nop
5725 xorg_cv_cc_flag_unknown_warning_option=no
5726 fi
5727 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5728 fi
5729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5730 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5731 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5732 CFLAGS="$xorg_testset_save_CFLAGS"
5733 fi
5734
5735 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5738 fi
5739 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5741 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5742 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5743 then :
5744 printf %s "(cached) " >&6
5745 else $as_nop
5746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h. */
5748 int i;
5749 _ACEOF
5750 if ac_fn_c_try_compile "$LINENO"
5751 then :
5752 xorg_cv_cc_flag_unused_command_line_argument=yes
5753 else $as_nop
5754 xorg_cv_cc_flag_unused_command_line_argument=no
5755 fi
5756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5757 fi
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5759 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5761 CFLAGS="$xorg_testset_save_CFLAGS"
5762 fi
5763
5764 found="no"
5765
5766 if test $found = "no" ; then
5767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5769 fi
5770
5771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5773 fi
5774
5775 CFLAGS="$CFLAGS -Wnested-externs"
5776
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5778 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
5779 cacheid=xorg_cv_cc_flag__Wnested_externs
5780 if eval test \${$cacheid+y}
5781 then :
5782 printf %s "(cached) " >&6
5783 else $as_nop
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5786 int i;
5787 int
5788 main (void)
5789 {
5790
5791 ;
5792 return 0;
5793 }
5794 _ACEOF
5795 if ac_fn_c_try_link "$LINENO"
5796 then :
5797 eval $cacheid=yes
5798 else $as_nop
5799 eval $cacheid=no
5800 fi
5801 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5802 conftest$ac_exeext conftest.$ac_ext
5803 fi
5804
5805
5806 CFLAGS="$xorg_testset_save_CFLAGS"
5807
5808 eval supported=\$$cacheid
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5810 printf "%s\n" "$supported" >&6; }
5811 if test "$supported" = "yes" ; then
5812 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5813 found="yes"
5814 fi
5815 fi
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831 xorg_testset_save_CFLAGS="$CFLAGS"
5832
5833 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5836 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5837 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5838 then :
5839 printf %s "(cached) " >&6
5840 else $as_nop
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5843 int i;
5844 _ACEOF
5845 if ac_fn_c_try_compile "$LINENO"
5846 then :
5847 xorg_cv_cc_flag_unknown_warning_option=yes
5848 else $as_nop
5849 xorg_cv_cc_flag_unknown_warning_option=no
5850 fi
5851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5852 fi
5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5854 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5855 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5856 CFLAGS="$xorg_testset_save_CFLAGS"
5857 fi
5858
5859 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5862 fi
5863 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5865 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5866 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5867 then :
5868 printf %s "(cached) " >&6
5869 else $as_nop
5870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5871 /* end confdefs.h. */
5872 int i;
5873 _ACEOF
5874 if ac_fn_c_try_compile "$LINENO"
5875 then :
5876 xorg_cv_cc_flag_unused_command_line_argument=yes
5877 else $as_nop
5878 xorg_cv_cc_flag_unused_command_line_argument=no
5879 fi
5880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5881 fi
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5883 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5885 CFLAGS="$xorg_testset_save_CFLAGS"
5886 fi
5887
5888 found="no"
5889
5890 if test $found = "no" ; then
5891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5893 fi
5894
5895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5897 fi
5898
5899 CFLAGS="$CFLAGS -Wbad-function-cast"
5900
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5902 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
5903 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5904 if eval test \${$cacheid+y}
5905 then :
5906 printf %s "(cached) " >&6
5907 else $as_nop
5908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5909 /* end confdefs.h. */
5910 int i;
5911 int
5912 main (void)
5913 {
5914
5915 ;
5916 return 0;
5917 }
5918 _ACEOF
5919 if ac_fn_c_try_link "$LINENO"
5920 then :
5921 eval $cacheid=yes
5922 else $as_nop
5923 eval $cacheid=no
5924 fi
5925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5926 conftest$ac_exeext conftest.$ac_ext
5927 fi
5928
5929
5930 CFLAGS="$xorg_testset_save_CFLAGS"
5931
5932 eval supported=\$$cacheid
5933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5934 printf "%s\n" "$supported" >&6; }
5935 if test "$supported" = "yes" ; then
5936 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5937 found="yes"
5938 fi
5939 fi
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955 xorg_testset_save_CFLAGS="$CFLAGS"
5956
5957 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5958 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5960 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5961 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
5962 then :
5963 printf %s "(cached) " >&6
5964 else $as_nop
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5967 int i;
5968 _ACEOF
5969 if ac_fn_c_try_compile "$LINENO"
5970 then :
5971 xorg_cv_cc_flag_unknown_warning_option=yes
5972 else $as_nop
5973 xorg_cv_cc_flag_unknown_warning_option=no
5974 fi
5975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5976 fi
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5978 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5979 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5980 CFLAGS="$xorg_testset_save_CFLAGS"
5981 fi
5982
5983 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5986 fi
5987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5989 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5990 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
5991 then :
5992 printf %s "(cached) " >&6
5993 else $as_nop
5994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5995 /* end confdefs.h. */
5996 int i;
5997 _ACEOF
5998 if ac_fn_c_try_compile "$LINENO"
5999 then :
6000 xorg_cv_cc_flag_unused_command_line_argument=yes
6001 else $as_nop
6002 xorg_cv_cc_flag_unused_command_line_argument=no
6003 fi
6004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6005 fi
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6007 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6008 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6009 CFLAGS="$xorg_testset_save_CFLAGS"
6010 fi
6011
6012 found="no"
6013
6014 if test $found = "no" ; then
6015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6017 fi
6018
6019 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6020 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6021 fi
6022
6023 CFLAGS="$CFLAGS -Wold-style-definition"
6024
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
6026 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
6027 cacheid=xorg_cv_cc_flag__Wold_style_definition
6028 if eval test \${$cacheid+y}
6029 then :
6030 printf %s "(cached) " >&6
6031 else $as_nop
6032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6033 /* end confdefs.h. */
6034 int i;
6035 int
6036 main (void)
6037 {
6038
6039 ;
6040 return 0;
6041 }
6042 _ACEOF
6043 if ac_fn_c_try_link "$LINENO"
6044 then :
6045 eval $cacheid=yes
6046 else $as_nop
6047 eval $cacheid=no
6048 fi
6049 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6050 conftest$ac_exeext conftest.$ac_ext
6051 fi
6052
6053
6054 CFLAGS="$xorg_testset_save_CFLAGS"
6055
6056 eval supported=\$$cacheid
6057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6058 printf "%s\n" "$supported" >&6; }
6059 if test "$supported" = "yes" ; then
6060 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
6061 found="yes"
6062 fi
6063 fi
6064
6065 if test $found = "no" ; then
6066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6068 fi
6069
6070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6072 fi
6073
6074 CFLAGS="$CFLAGS -fd"
6075
6076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
6077 printf %s "checking if $CC supports -fd... " >&6; }
6078 cacheid=xorg_cv_cc_flag__fd
6079 if eval test \${$cacheid+y}
6080 then :
6081 printf %s "(cached) " >&6
6082 else $as_nop
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6085 int i;
6086 int
6087 main (void)
6088 {
6089
6090 ;
6091 return 0;
6092 }
6093 _ACEOF
6094 if ac_fn_c_try_link "$LINENO"
6095 then :
6096 eval $cacheid=yes
6097 else $as_nop
6098 eval $cacheid=no
6099 fi
6100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6101 conftest$ac_exeext conftest.$ac_ext
6102 fi
6103
6104
6105 CFLAGS="$xorg_testset_save_CFLAGS"
6106
6107 eval supported=\$$cacheid
6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6109 printf "%s\n" "$supported" >&6; }
6110 if test "$supported" = "yes" ; then
6111 BASE_CFLAGS="$BASE_CFLAGS -fd"
6112 found="yes"
6113 fi
6114 fi
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130 xorg_testset_save_CFLAGS="$CFLAGS"
6131
6132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6135 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6136 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6137 then :
6138 printf %s "(cached) " >&6
6139 else $as_nop
6140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6141 /* end confdefs.h. */
6142 int i;
6143 _ACEOF
6144 if ac_fn_c_try_compile "$LINENO"
6145 then :
6146 xorg_cv_cc_flag_unknown_warning_option=yes
6147 else $as_nop
6148 xorg_cv_cc_flag_unknown_warning_option=no
6149 fi
6150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6151 fi
6152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6153 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6155 CFLAGS="$xorg_testset_save_CFLAGS"
6156 fi
6157
6158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6161 fi
6162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6164 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6165 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6166 then :
6167 printf %s "(cached) " >&6
6168 else $as_nop
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171 int i;
6172 _ACEOF
6173 if ac_fn_c_try_compile "$LINENO"
6174 then :
6175 xorg_cv_cc_flag_unused_command_line_argument=yes
6176 else $as_nop
6177 xorg_cv_cc_flag_unused_command_line_argument=no
6178 fi
6179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6180 fi
6181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6182 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6184 CFLAGS="$xorg_testset_save_CFLAGS"
6185 fi
6186
6187 found="no"
6188
6189 if test $found = "no" ; then
6190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6192 fi
6193
6194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6196 fi
6197
6198 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
6199
6200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
6201 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
6202 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
6203 if eval test \${$cacheid+y}
6204 then :
6205 printf %s "(cached) " >&6
6206 else $as_nop
6207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6208 /* end confdefs.h. */
6209 int i;
6210 int
6211 main (void)
6212 {
6213
6214 ;
6215 return 0;
6216 }
6217 _ACEOF
6218 if ac_fn_c_try_link "$LINENO"
6219 then :
6220 eval $cacheid=yes
6221 else $as_nop
6222 eval $cacheid=no
6223 fi
6224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6225 conftest$ac_exeext conftest.$ac_ext
6226 fi
6227
6228
6229 CFLAGS="$xorg_testset_save_CFLAGS"
6230
6231 eval supported=\$$cacheid
6232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6233 printf "%s\n" "$supported" >&6; }
6234 if test "$supported" = "yes" ; then
6235 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
6236 found="yes"
6237 fi
6238 fi
6239
6240
6241
6242
6243
6244 # This chunk adds additional warnings that could catch undesired effects.
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258 xorg_testset_save_CFLAGS="$CFLAGS"
6259
6260 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6261 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6263 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6264 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6265 then :
6266 printf %s "(cached) " >&6
6267 else $as_nop
6268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269 /* end confdefs.h. */
6270 int i;
6271 _ACEOF
6272 if ac_fn_c_try_compile "$LINENO"
6273 then :
6274 xorg_cv_cc_flag_unknown_warning_option=yes
6275 else $as_nop
6276 xorg_cv_cc_flag_unknown_warning_option=no
6277 fi
6278 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6279 fi
6280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6281 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6282 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6283 CFLAGS="$xorg_testset_save_CFLAGS"
6284 fi
6285
6286 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6287 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6289 fi
6290 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6292 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6293 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6294 then :
6295 printf %s "(cached) " >&6
6296 else $as_nop
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6299 int i;
6300 _ACEOF
6301 if ac_fn_c_try_compile "$LINENO"
6302 then :
6303 xorg_cv_cc_flag_unused_command_line_argument=yes
6304 else $as_nop
6305 xorg_cv_cc_flag_unused_command_line_argument=no
6306 fi
6307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6308 fi
6309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6310 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6311 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6312 CFLAGS="$xorg_testset_save_CFLAGS"
6313 fi
6314
6315 found="no"
6316
6317 if test $found = "no" ; then
6318 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6320 fi
6321
6322 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6323 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6324 fi
6325
6326 CFLAGS="$CFLAGS -Wunused"
6327
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
6329 printf %s "checking if $CC supports -Wunused... " >&6; }
6330 cacheid=xorg_cv_cc_flag__Wunused
6331 if eval test \${$cacheid+y}
6332 then :
6333 printf %s "(cached) " >&6
6334 else $as_nop
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6337 int i;
6338 int
6339 main (void)
6340 {
6341
6342 ;
6343 return 0;
6344 }
6345 _ACEOF
6346 if ac_fn_c_try_link "$LINENO"
6347 then :
6348 eval $cacheid=yes
6349 else $as_nop
6350 eval $cacheid=no
6351 fi
6352 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6353 conftest$ac_exeext conftest.$ac_ext
6354 fi
6355
6356
6357 CFLAGS="$xorg_testset_save_CFLAGS"
6358
6359 eval supported=\$$cacheid
6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6361 printf "%s\n" "$supported" >&6; }
6362 if test "$supported" = "yes" ; then
6363 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6364 found="yes"
6365 fi
6366 fi
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382 xorg_testset_save_CFLAGS="$CFLAGS"
6383
6384 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6387 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6388 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6389 then :
6390 printf %s "(cached) " >&6
6391 else $as_nop
6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393 /* end confdefs.h. */
6394 int i;
6395 _ACEOF
6396 if ac_fn_c_try_compile "$LINENO"
6397 then :
6398 xorg_cv_cc_flag_unknown_warning_option=yes
6399 else $as_nop
6400 xorg_cv_cc_flag_unknown_warning_option=no
6401 fi
6402 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6403 fi
6404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6405 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6406 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6407 CFLAGS="$xorg_testset_save_CFLAGS"
6408 fi
6409
6410 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6411 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6412 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6413 fi
6414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6416 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6417 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6418 then :
6419 printf %s "(cached) " >&6
6420 else $as_nop
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6423 int i;
6424 _ACEOF
6425 if ac_fn_c_try_compile "$LINENO"
6426 then :
6427 xorg_cv_cc_flag_unused_command_line_argument=yes
6428 else $as_nop
6429 xorg_cv_cc_flag_unused_command_line_argument=no
6430 fi
6431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6432 fi
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6434 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6435 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6436 CFLAGS="$xorg_testset_save_CFLAGS"
6437 fi
6438
6439 found="no"
6440
6441 if test $found = "no" ; then
6442 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6444 fi
6445
6446 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6448 fi
6449
6450 CFLAGS="$CFLAGS -Wuninitialized"
6451
6452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6453 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
6454 cacheid=xorg_cv_cc_flag__Wuninitialized
6455 if eval test \${$cacheid+y}
6456 then :
6457 printf %s "(cached) " >&6
6458 else $as_nop
6459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6460 /* end confdefs.h. */
6461 int i;
6462 int
6463 main (void)
6464 {
6465
6466 ;
6467 return 0;
6468 }
6469 _ACEOF
6470 if ac_fn_c_try_link "$LINENO"
6471 then :
6472 eval $cacheid=yes
6473 else $as_nop
6474 eval $cacheid=no
6475 fi
6476 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6477 conftest$ac_exeext conftest.$ac_ext
6478 fi
6479
6480
6481 CFLAGS="$xorg_testset_save_CFLAGS"
6482
6483 eval supported=\$$cacheid
6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6485 printf "%s\n" "$supported" >&6; }
6486 if test "$supported" = "yes" ; then
6487 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6488 found="yes"
6489 fi
6490 fi
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506 xorg_testset_save_CFLAGS="$CFLAGS"
6507
6508 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6511 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6512 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6513 then :
6514 printf %s "(cached) " >&6
6515 else $as_nop
6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6517 /* end confdefs.h. */
6518 int i;
6519 _ACEOF
6520 if ac_fn_c_try_compile "$LINENO"
6521 then :
6522 xorg_cv_cc_flag_unknown_warning_option=yes
6523 else $as_nop
6524 xorg_cv_cc_flag_unknown_warning_option=no
6525 fi
6526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6527 fi
6528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6529 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6530 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6531 CFLAGS="$xorg_testset_save_CFLAGS"
6532 fi
6533
6534 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6537 fi
6538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6540 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6541 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6542 then :
6543 printf %s "(cached) " >&6
6544 else $as_nop
6545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6546 /* end confdefs.h. */
6547 int i;
6548 _ACEOF
6549 if ac_fn_c_try_compile "$LINENO"
6550 then :
6551 xorg_cv_cc_flag_unused_command_line_argument=yes
6552 else $as_nop
6553 xorg_cv_cc_flag_unused_command_line_argument=no
6554 fi
6555 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6556 fi
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6558 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6559 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6560 CFLAGS="$xorg_testset_save_CFLAGS"
6561 fi
6562
6563 found="no"
6564
6565 if test $found = "no" ; then
6566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6568 fi
6569
6570 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6572 fi
6573
6574 CFLAGS="$CFLAGS -Wshadow"
6575
6576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6577 printf %s "checking if $CC supports -Wshadow... " >&6; }
6578 cacheid=xorg_cv_cc_flag__Wshadow
6579 if eval test \${$cacheid+y}
6580 then :
6581 printf %s "(cached) " >&6
6582 else $as_nop
6583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6584 /* end confdefs.h. */
6585 int i;
6586 int
6587 main (void)
6588 {
6589
6590 ;
6591 return 0;
6592 }
6593 _ACEOF
6594 if ac_fn_c_try_link "$LINENO"
6595 then :
6596 eval $cacheid=yes
6597 else $as_nop
6598 eval $cacheid=no
6599 fi
6600 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6601 conftest$ac_exeext conftest.$ac_ext
6602 fi
6603
6604
6605 CFLAGS="$xorg_testset_save_CFLAGS"
6606
6607 eval supported=\$$cacheid
6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6609 printf "%s\n" "$supported" >&6; }
6610 if test "$supported" = "yes" ; then
6611 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6612 found="yes"
6613 fi
6614 fi
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630 xorg_testset_save_CFLAGS="$CFLAGS"
6631
6632 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6635 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6636 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6637 then :
6638 printf %s "(cached) " >&6
6639 else $as_nop
6640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6641 /* end confdefs.h. */
6642 int i;
6643 _ACEOF
6644 if ac_fn_c_try_compile "$LINENO"
6645 then :
6646 xorg_cv_cc_flag_unknown_warning_option=yes
6647 else $as_nop
6648 xorg_cv_cc_flag_unknown_warning_option=no
6649 fi
6650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6651 fi
6652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6653 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6654 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6655 CFLAGS="$xorg_testset_save_CFLAGS"
6656 fi
6657
6658 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6659 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6661 fi
6662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6664 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6665 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6666 then :
6667 printf %s "(cached) " >&6
6668 else $as_nop
6669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6670 /* end confdefs.h. */
6671 int i;
6672 _ACEOF
6673 if ac_fn_c_try_compile "$LINENO"
6674 then :
6675 xorg_cv_cc_flag_unused_command_line_argument=yes
6676 else $as_nop
6677 xorg_cv_cc_flag_unused_command_line_argument=no
6678 fi
6679 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6680 fi
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6682 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6684 CFLAGS="$xorg_testset_save_CFLAGS"
6685 fi
6686
6687 found="no"
6688
6689 if test $found = "no" ; then
6690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6692 fi
6693
6694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6696 fi
6697
6698 CFLAGS="$CFLAGS -Wmissing-noreturn"
6699
6700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6701 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
6702 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6703 if eval test \${$cacheid+y}
6704 then :
6705 printf %s "(cached) " >&6
6706 else $as_nop
6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h. */
6709 int i;
6710 int
6711 main (void)
6712 {
6713
6714 ;
6715 return 0;
6716 }
6717 _ACEOF
6718 if ac_fn_c_try_link "$LINENO"
6719 then :
6720 eval $cacheid=yes
6721 else $as_nop
6722 eval $cacheid=no
6723 fi
6724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6725 conftest$ac_exeext conftest.$ac_ext
6726 fi
6727
6728
6729 CFLAGS="$xorg_testset_save_CFLAGS"
6730
6731 eval supported=\$$cacheid
6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6733 printf "%s\n" "$supported" >&6; }
6734 if test "$supported" = "yes" ; then
6735 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6736 found="yes"
6737 fi
6738 fi
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754 xorg_testset_save_CFLAGS="$CFLAGS"
6755
6756 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6757 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6759 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6760 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6761 then :
6762 printf %s "(cached) " >&6
6763 else $as_nop
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6766 int i;
6767 _ACEOF
6768 if ac_fn_c_try_compile "$LINENO"
6769 then :
6770 xorg_cv_cc_flag_unknown_warning_option=yes
6771 else $as_nop
6772 xorg_cv_cc_flag_unknown_warning_option=no
6773 fi
6774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6775 fi
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6777 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6778 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6779 CFLAGS="$xorg_testset_save_CFLAGS"
6780 fi
6781
6782 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6783 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6785 fi
6786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6788 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6789 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6790 then :
6791 printf %s "(cached) " >&6
6792 else $as_nop
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6795 int i;
6796 _ACEOF
6797 if ac_fn_c_try_compile "$LINENO"
6798 then :
6799 xorg_cv_cc_flag_unused_command_line_argument=yes
6800 else $as_nop
6801 xorg_cv_cc_flag_unused_command_line_argument=no
6802 fi
6803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6804 fi
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6806 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6807 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6808 CFLAGS="$xorg_testset_save_CFLAGS"
6809 fi
6810
6811 found="no"
6812
6813 if test $found = "no" ; then
6814 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6815 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6816 fi
6817
6818 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6819 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6820 fi
6821
6822 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6823
6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6825 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6826 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6827 if eval test \${$cacheid+y}
6828 then :
6829 printf %s "(cached) " >&6
6830 else $as_nop
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6833 int i;
6834 int
6835 main (void)
6836 {
6837
6838 ;
6839 return 0;
6840 }
6841 _ACEOF
6842 if ac_fn_c_try_link "$LINENO"
6843 then :
6844 eval $cacheid=yes
6845 else $as_nop
6846 eval $cacheid=no
6847 fi
6848 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6849 conftest$ac_exeext conftest.$ac_ext
6850 fi
6851
6852
6853 CFLAGS="$xorg_testset_save_CFLAGS"
6854
6855 eval supported=\$$cacheid
6856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6857 printf "%s\n" "$supported" >&6; }
6858 if test "$supported" = "yes" ; then
6859 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6860 found="yes"
6861 fi
6862 fi
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878 xorg_testset_save_CFLAGS="$CFLAGS"
6879
6880 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6883 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6884 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
6885 then :
6886 printf %s "(cached) " >&6
6887 else $as_nop
6888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6889 /* end confdefs.h. */
6890 int i;
6891 _ACEOF
6892 if ac_fn_c_try_compile "$LINENO"
6893 then :
6894 xorg_cv_cc_flag_unknown_warning_option=yes
6895 else $as_nop
6896 xorg_cv_cc_flag_unknown_warning_option=no
6897 fi
6898 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6899 fi
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6901 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6903 CFLAGS="$xorg_testset_save_CFLAGS"
6904 fi
6905
6906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6909 fi
6910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6912 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6913 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
6914 then :
6915 printf %s "(cached) " >&6
6916 else $as_nop
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6919 int i;
6920 _ACEOF
6921 if ac_fn_c_try_compile "$LINENO"
6922 then :
6923 xorg_cv_cc_flag_unused_command_line_argument=yes
6924 else $as_nop
6925 xorg_cv_cc_flag_unused_command_line_argument=no
6926 fi
6927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6928 fi
6929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6930 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6932 CFLAGS="$xorg_testset_save_CFLAGS"
6933 fi
6934
6935 found="no"
6936
6937 if test $found = "no" ; then
6938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6940 fi
6941
6942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6944 fi
6945
6946 CFLAGS="$CFLAGS -Wredundant-decls"
6947
6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6949 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
6950 cacheid=xorg_cv_cc_flag__Wredundant_decls
6951 if eval test \${$cacheid+y}
6952 then :
6953 printf %s "(cached) " >&6
6954 else $as_nop
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h. */
6957 int i;
6958 int
6959 main (void)
6960 {
6961
6962 ;
6963 return 0;
6964 }
6965 _ACEOF
6966 if ac_fn_c_try_link "$LINENO"
6967 then :
6968 eval $cacheid=yes
6969 else $as_nop
6970 eval $cacheid=no
6971 fi
6972 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6973 conftest$ac_exeext conftest.$ac_ext
6974 fi
6975
6976
6977 CFLAGS="$xorg_testset_save_CFLAGS"
6978
6979 eval supported=\$$cacheid
6980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6981 printf "%s\n" "$supported" >&6; }
6982 if test "$supported" = "yes" ; then
6983 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6984 found="yes"
6985 fi
6986 fi
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002 xorg_testset_save_CFLAGS="$CFLAGS"
7003
7004 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7005 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7007 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7008 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7009 then :
7010 printf %s "(cached) " >&6
7011 else $as_nop
7012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7013 /* end confdefs.h. */
7014 int i;
7015 _ACEOF
7016 if ac_fn_c_try_compile "$LINENO"
7017 then :
7018 xorg_cv_cc_flag_unknown_warning_option=yes
7019 else $as_nop
7020 xorg_cv_cc_flag_unknown_warning_option=no
7021 fi
7022 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7023 fi
7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7025 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7026 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7027 CFLAGS="$xorg_testset_save_CFLAGS"
7028 fi
7029
7030 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7031 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7032 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7033 fi
7034 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7036 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7037 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7038 then :
7039 printf %s "(cached) " >&6
7040 else $as_nop
7041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h. */
7043 int i;
7044 _ACEOF
7045 if ac_fn_c_try_compile "$LINENO"
7046 then :
7047 xorg_cv_cc_flag_unused_command_line_argument=yes
7048 else $as_nop
7049 xorg_cv_cc_flag_unused_command_line_argument=no
7050 fi
7051 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7052 fi
7053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7054 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7055 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7056 CFLAGS="$xorg_testset_save_CFLAGS"
7057 fi
7058
7059 found="no"
7060
7061 if test $found = "no" ; then
7062 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7063 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7064 fi
7065
7066 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7067 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7068 fi
7069
7070 CFLAGS="$CFLAGS -Wlogical-op"
7071
7072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
7073 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
7074 cacheid=xorg_cv_cc_flag__Wlogical_op
7075 if eval test \${$cacheid+y}
7076 then :
7077 printf %s "(cached) " >&6
7078 else $as_nop
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h. */
7081 int i;
7082 int
7083 main (void)
7084 {
7085
7086 ;
7087 return 0;
7088 }
7089 _ACEOF
7090 if ac_fn_c_try_link "$LINENO"
7091 then :
7092 eval $cacheid=yes
7093 else $as_nop
7094 eval $cacheid=no
7095 fi
7096 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7097 conftest$ac_exeext conftest.$ac_ext
7098 fi
7099
7100
7101 CFLAGS="$xorg_testset_save_CFLAGS"
7102
7103 eval supported=\$$cacheid
7104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7105 printf "%s\n" "$supported" >&6; }
7106 if test "$supported" = "yes" ; then
7107 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
7108 found="yes"
7109 fi
7110 fi
7111
7112
7113
7114 # These are currently disabled because they are noisy. They will be enabled
7115 # in the future once the codebase is sufficiently modernized to silence
7116 # them. For now, I don't want them to drown out the other warnings.
7117 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
7118 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
7119 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
7120
7121 # Turn some warnings into errors, so we don't accidently get successful builds
7122 # when there are problems that should be fixed.
7123
7124 if test "x$SELECTIVE_WERROR" = "xyes" ; then
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138 xorg_testset_save_CFLAGS="$CFLAGS"
7139
7140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7143 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7144 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7145 then :
7146 printf %s "(cached) " >&6
7147 else $as_nop
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 int i;
7151 _ACEOF
7152 if ac_fn_c_try_compile "$LINENO"
7153 then :
7154 xorg_cv_cc_flag_unknown_warning_option=yes
7155 else $as_nop
7156 xorg_cv_cc_flag_unknown_warning_option=no
7157 fi
7158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7159 fi
7160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7161 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7163 CFLAGS="$xorg_testset_save_CFLAGS"
7164 fi
7165
7166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7169 fi
7170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7172 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7173 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7174 then :
7175 printf %s "(cached) " >&6
7176 else $as_nop
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h. */
7179 int i;
7180 _ACEOF
7181 if ac_fn_c_try_compile "$LINENO"
7182 then :
7183 xorg_cv_cc_flag_unused_command_line_argument=yes
7184 else $as_nop
7185 xorg_cv_cc_flag_unused_command_line_argument=no
7186 fi
7187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7188 fi
7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7190 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7192 CFLAGS="$xorg_testset_save_CFLAGS"
7193 fi
7194
7195 found="no"
7196
7197 if test $found = "no" ; then
7198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7200 fi
7201
7202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7204 fi
7205
7206 CFLAGS="$CFLAGS -Werror=implicit"
7207
7208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
7209 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
7210 cacheid=xorg_cv_cc_flag__Werror_implicit
7211 if eval test \${$cacheid+y}
7212 then :
7213 printf %s "(cached) " >&6
7214 else $as_nop
7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7217 int i;
7218 int
7219 main (void)
7220 {
7221
7222 ;
7223 return 0;
7224 }
7225 _ACEOF
7226 if ac_fn_c_try_link "$LINENO"
7227 then :
7228 eval $cacheid=yes
7229 else $as_nop
7230 eval $cacheid=no
7231 fi
7232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7233 conftest$ac_exeext conftest.$ac_ext
7234 fi
7235
7236
7237 CFLAGS="$xorg_testset_save_CFLAGS"
7238
7239 eval supported=\$$cacheid
7240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7241 printf "%s\n" "$supported" >&6; }
7242 if test "$supported" = "yes" ; then
7243 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
7244 found="yes"
7245 fi
7246 fi
7247
7248 if test $found = "no" ; then
7249 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7250 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7251 fi
7252
7253 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7254 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7255 fi
7256
7257 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7258
7259 { 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
7260 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
7261 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
7262 if eval test \${$cacheid+y}
7263 then :
7264 printf %s "(cached) " >&6
7265 else $as_nop
7266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7267 /* end confdefs.h. */
7268 int i;
7269 int
7270 main (void)
7271 {
7272
7273 ;
7274 return 0;
7275 }
7276 _ACEOF
7277 if ac_fn_c_try_link "$LINENO"
7278 then :
7279 eval $cacheid=yes
7280 else $as_nop
7281 eval $cacheid=no
7282 fi
7283 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7284 conftest$ac_exeext conftest.$ac_ext
7285 fi
7286
7287
7288 CFLAGS="$xorg_testset_save_CFLAGS"
7289
7290 eval supported=\$$cacheid
7291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7292 printf "%s\n" "$supported" >&6; }
7293 if test "$supported" = "yes" ; then
7294 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
7295 found="yes"
7296 fi
7297 fi
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313 xorg_testset_save_CFLAGS="$CFLAGS"
7314
7315 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7318 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7319 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7320 then :
7321 printf %s "(cached) " >&6
7322 else $as_nop
7323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7324 /* end confdefs.h. */
7325 int i;
7326 _ACEOF
7327 if ac_fn_c_try_compile "$LINENO"
7328 then :
7329 xorg_cv_cc_flag_unknown_warning_option=yes
7330 else $as_nop
7331 xorg_cv_cc_flag_unknown_warning_option=no
7332 fi
7333 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7334 fi
7335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7336 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7338 CFLAGS="$xorg_testset_save_CFLAGS"
7339 fi
7340
7341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7344 fi
7345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7347 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7348 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7349 then :
7350 printf %s "(cached) " >&6
7351 else $as_nop
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7354 int i;
7355 _ACEOF
7356 if ac_fn_c_try_compile "$LINENO"
7357 then :
7358 xorg_cv_cc_flag_unused_command_line_argument=yes
7359 else $as_nop
7360 xorg_cv_cc_flag_unused_command_line_argument=no
7361 fi
7362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7363 fi
7364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7365 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7367 CFLAGS="$xorg_testset_save_CFLAGS"
7368 fi
7369
7370 found="no"
7371
7372 if test $found = "no" ; then
7373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7375 fi
7376
7377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7379 fi
7380
7381 CFLAGS="$CFLAGS -Werror=nonnull"
7382
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7384 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
7385 cacheid=xorg_cv_cc_flag__Werror_nonnull
7386 if eval test \${$cacheid+y}
7387 then :
7388 printf %s "(cached) " >&6
7389 else $as_nop
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7392 int i;
7393 int
7394 main (void)
7395 {
7396
7397 ;
7398 return 0;
7399 }
7400 _ACEOF
7401 if ac_fn_c_try_link "$LINENO"
7402 then :
7403 eval $cacheid=yes
7404 else $as_nop
7405 eval $cacheid=no
7406 fi
7407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7408 conftest$ac_exeext conftest.$ac_ext
7409 fi
7410
7411
7412 CFLAGS="$xorg_testset_save_CFLAGS"
7413
7414 eval supported=\$$cacheid
7415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7416 printf "%s\n" "$supported" >&6; }
7417 if test "$supported" = "yes" ; then
7418 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7419 found="yes"
7420 fi
7421 fi
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437 xorg_testset_save_CFLAGS="$CFLAGS"
7438
7439 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7440 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7442 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7443 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7444 then :
7445 printf %s "(cached) " >&6
7446 else $as_nop
7447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h. */
7449 int i;
7450 _ACEOF
7451 if ac_fn_c_try_compile "$LINENO"
7452 then :
7453 xorg_cv_cc_flag_unknown_warning_option=yes
7454 else $as_nop
7455 xorg_cv_cc_flag_unknown_warning_option=no
7456 fi
7457 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7458 fi
7459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7460 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7462 CFLAGS="$xorg_testset_save_CFLAGS"
7463 fi
7464
7465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7468 fi
7469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7471 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7472 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7473 then :
7474 printf %s "(cached) " >&6
7475 else $as_nop
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7478 int i;
7479 _ACEOF
7480 if ac_fn_c_try_compile "$LINENO"
7481 then :
7482 xorg_cv_cc_flag_unused_command_line_argument=yes
7483 else $as_nop
7484 xorg_cv_cc_flag_unused_command_line_argument=no
7485 fi
7486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7487 fi
7488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7489 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7490 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7491 CFLAGS="$xorg_testset_save_CFLAGS"
7492 fi
7493
7494 found="no"
7495
7496 if test $found = "no" ; then
7497 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7498 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7499 fi
7500
7501 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7502 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7503 fi
7504
7505 CFLAGS="$CFLAGS -Werror=init-self"
7506
7507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7508 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
7509 cacheid=xorg_cv_cc_flag__Werror_init_self
7510 if eval test \${$cacheid+y}
7511 then :
7512 printf %s "(cached) " >&6
7513 else $as_nop
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7516 int i;
7517 int
7518 main (void)
7519 {
7520
7521 ;
7522 return 0;
7523 }
7524 _ACEOF
7525 if ac_fn_c_try_link "$LINENO"
7526 then :
7527 eval $cacheid=yes
7528 else $as_nop
7529 eval $cacheid=no
7530 fi
7531 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7532 conftest$ac_exeext conftest.$ac_ext
7533 fi
7534
7535
7536 CFLAGS="$xorg_testset_save_CFLAGS"
7537
7538 eval supported=\$$cacheid
7539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7540 printf "%s\n" "$supported" >&6; }
7541 if test "$supported" = "yes" ; then
7542 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7543 found="yes"
7544 fi
7545 fi
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561 xorg_testset_save_CFLAGS="$CFLAGS"
7562
7563 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7564 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7566 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7567 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7568 then :
7569 printf %s "(cached) " >&6
7570 else $as_nop
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7573 int i;
7574 _ACEOF
7575 if ac_fn_c_try_compile "$LINENO"
7576 then :
7577 xorg_cv_cc_flag_unknown_warning_option=yes
7578 else $as_nop
7579 xorg_cv_cc_flag_unknown_warning_option=no
7580 fi
7581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7582 fi
7583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7584 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7585 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7586 CFLAGS="$xorg_testset_save_CFLAGS"
7587 fi
7588
7589 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7590 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7592 fi
7593 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7595 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7596 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7597 then :
7598 printf %s "(cached) " >&6
7599 else $as_nop
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h. */
7602 int i;
7603 _ACEOF
7604 if ac_fn_c_try_compile "$LINENO"
7605 then :
7606 xorg_cv_cc_flag_unused_command_line_argument=yes
7607 else $as_nop
7608 xorg_cv_cc_flag_unused_command_line_argument=no
7609 fi
7610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7611 fi
7612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7613 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7615 CFLAGS="$xorg_testset_save_CFLAGS"
7616 fi
7617
7618 found="no"
7619
7620 if test $found = "no" ; then
7621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7622 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7623 fi
7624
7625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7627 fi
7628
7629 CFLAGS="$CFLAGS -Werror=main"
7630
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7632 printf %s "checking if $CC supports -Werror=main... " >&6; }
7633 cacheid=xorg_cv_cc_flag__Werror_main
7634 if eval test \${$cacheid+y}
7635 then :
7636 printf %s "(cached) " >&6
7637 else $as_nop
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7640 int i;
7641 int
7642 main (void)
7643 {
7644
7645 ;
7646 return 0;
7647 }
7648 _ACEOF
7649 if ac_fn_c_try_link "$LINENO"
7650 then :
7651 eval $cacheid=yes
7652 else $as_nop
7653 eval $cacheid=no
7654 fi
7655 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7656 conftest$ac_exeext conftest.$ac_ext
7657 fi
7658
7659
7660 CFLAGS="$xorg_testset_save_CFLAGS"
7661
7662 eval supported=\$$cacheid
7663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7664 printf "%s\n" "$supported" >&6; }
7665 if test "$supported" = "yes" ; then
7666 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7667 found="yes"
7668 fi
7669 fi
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685 xorg_testset_save_CFLAGS="$CFLAGS"
7686
7687 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7688 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7690 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7691 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7692 then :
7693 printf %s "(cached) " >&6
7694 else $as_nop
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 int i;
7698 _ACEOF
7699 if ac_fn_c_try_compile "$LINENO"
7700 then :
7701 xorg_cv_cc_flag_unknown_warning_option=yes
7702 else $as_nop
7703 xorg_cv_cc_flag_unknown_warning_option=no
7704 fi
7705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7706 fi
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7708 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7709 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7710 CFLAGS="$xorg_testset_save_CFLAGS"
7711 fi
7712
7713 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7714 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7716 fi
7717 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7719 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7720 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7721 then :
7722 printf %s "(cached) " >&6
7723 else $as_nop
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725 /* end confdefs.h. */
7726 int i;
7727 _ACEOF
7728 if ac_fn_c_try_compile "$LINENO"
7729 then :
7730 xorg_cv_cc_flag_unused_command_line_argument=yes
7731 else $as_nop
7732 xorg_cv_cc_flag_unused_command_line_argument=no
7733 fi
7734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7735 fi
7736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7737 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7738 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7739 CFLAGS="$xorg_testset_save_CFLAGS"
7740 fi
7741
7742 found="no"
7743
7744 if test $found = "no" ; then
7745 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7746 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7747 fi
7748
7749 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7751 fi
7752
7753 CFLAGS="$CFLAGS -Werror=missing-braces"
7754
7755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7756 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
7757 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7758 if eval test \${$cacheid+y}
7759 then :
7760 printf %s "(cached) " >&6
7761 else $as_nop
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 int i;
7765 int
7766 main (void)
7767 {
7768
7769 ;
7770 return 0;
7771 }
7772 _ACEOF
7773 if ac_fn_c_try_link "$LINENO"
7774 then :
7775 eval $cacheid=yes
7776 else $as_nop
7777 eval $cacheid=no
7778 fi
7779 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7780 conftest$ac_exeext conftest.$ac_ext
7781 fi
7782
7783
7784 CFLAGS="$xorg_testset_save_CFLAGS"
7785
7786 eval supported=\$$cacheid
7787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7788 printf "%s\n" "$supported" >&6; }
7789 if test "$supported" = "yes" ; then
7790 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7791 found="yes"
7792 fi
7793 fi
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809 xorg_testset_save_CFLAGS="$CFLAGS"
7810
7811 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7812 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7814 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7815 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7816 then :
7817 printf %s "(cached) " >&6
7818 else $as_nop
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7821 int i;
7822 _ACEOF
7823 if ac_fn_c_try_compile "$LINENO"
7824 then :
7825 xorg_cv_cc_flag_unknown_warning_option=yes
7826 else $as_nop
7827 xorg_cv_cc_flag_unknown_warning_option=no
7828 fi
7829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7830 fi
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7832 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7833 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7834 CFLAGS="$xorg_testset_save_CFLAGS"
7835 fi
7836
7837 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7840 fi
7841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7843 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7844 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7845 then :
7846 printf %s "(cached) " >&6
7847 else $as_nop
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 int i;
7851 _ACEOF
7852 if ac_fn_c_try_compile "$LINENO"
7853 then :
7854 xorg_cv_cc_flag_unused_command_line_argument=yes
7855 else $as_nop
7856 xorg_cv_cc_flag_unused_command_line_argument=no
7857 fi
7858 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7859 fi
7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7861 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7862 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7863 CFLAGS="$xorg_testset_save_CFLAGS"
7864 fi
7865
7866 found="no"
7867
7868 if test $found = "no" ; then
7869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7871 fi
7872
7873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7875 fi
7876
7877 CFLAGS="$CFLAGS -Werror=sequence-point"
7878
7879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7880 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
7881 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7882 if eval test \${$cacheid+y}
7883 then :
7884 printf %s "(cached) " >&6
7885 else $as_nop
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888 int i;
7889 int
7890 main (void)
7891 {
7892
7893 ;
7894 return 0;
7895 }
7896 _ACEOF
7897 if ac_fn_c_try_link "$LINENO"
7898 then :
7899 eval $cacheid=yes
7900 else $as_nop
7901 eval $cacheid=no
7902 fi
7903 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7904 conftest$ac_exeext conftest.$ac_ext
7905 fi
7906
7907
7908 CFLAGS="$xorg_testset_save_CFLAGS"
7909
7910 eval supported=\$$cacheid
7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7912 printf "%s\n" "$supported" >&6; }
7913 if test "$supported" = "yes" ; then
7914 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7915 found="yes"
7916 fi
7917 fi
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933 xorg_testset_save_CFLAGS="$CFLAGS"
7934
7935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7938 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7939 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
7940 then :
7941 printf %s "(cached) " >&6
7942 else $as_nop
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945 int i;
7946 _ACEOF
7947 if ac_fn_c_try_compile "$LINENO"
7948 then :
7949 xorg_cv_cc_flag_unknown_warning_option=yes
7950 else $as_nop
7951 xorg_cv_cc_flag_unknown_warning_option=no
7952 fi
7953 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7954 fi
7955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7956 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7957 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7958 CFLAGS="$xorg_testset_save_CFLAGS"
7959 fi
7960
7961 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7962 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7964 fi
7965 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7967 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7968 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
7969 then :
7970 printf %s "(cached) " >&6
7971 else $as_nop
7972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973 /* end confdefs.h. */
7974 int i;
7975 _ACEOF
7976 if ac_fn_c_try_compile "$LINENO"
7977 then :
7978 xorg_cv_cc_flag_unused_command_line_argument=yes
7979 else $as_nop
7980 xorg_cv_cc_flag_unused_command_line_argument=no
7981 fi
7982 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7983 fi
7984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7985 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7986 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7987 CFLAGS="$xorg_testset_save_CFLAGS"
7988 fi
7989
7990 found="no"
7991
7992 if test $found = "no" ; then
7993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7995 fi
7996
7997 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7999 fi
8000
8001 CFLAGS="$CFLAGS -Werror=return-type"
8002
8003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
8004 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
8005 cacheid=xorg_cv_cc_flag__Werror_return_type
8006 if eval test \${$cacheid+y}
8007 then :
8008 printf %s "(cached) " >&6
8009 else $as_nop
8010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8011 /* end confdefs.h. */
8012 int i;
8013 int
8014 main (void)
8015 {
8016
8017 ;
8018 return 0;
8019 }
8020 _ACEOF
8021 if ac_fn_c_try_link "$LINENO"
8022 then :
8023 eval $cacheid=yes
8024 else $as_nop
8025 eval $cacheid=no
8026 fi
8027 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8028 conftest$ac_exeext conftest.$ac_ext
8029 fi
8030
8031
8032 CFLAGS="$xorg_testset_save_CFLAGS"
8033
8034 eval supported=\$$cacheid
8035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8036 printf "%s\n" "$supported" >&6; }
8037 if test "$supported" = "yes" ; then
8038 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
8039 found="yes"
8040 fi
8041 fi
8042
8043 if test $found = "no" ; then
8044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8046 fi
8047
8048 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8049 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8050 fi
8051
8052 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8053
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
8055 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
8056 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
8057 if eval test \${$cacheid+y}
8058 then :
8059 printf %s "(cached) " >&6
8060 else $as_nop
8061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8062 /* end confdefs.h. */
8063 int i;
8064 int
8065 main (void)
8066 {
8067
8068 ;
8069 return 0;
8070 }
8071 _ACEOF
8072 if ac_fn_c_try_link "$LINENO"
8073 then :
8074 eval $cacheid=yes
8075 else $as_nop
8076 eval $cacheid=no
8077 fi
8078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8079 conftest$ac_exeext conftest.$ac_ext
8080 fi
8081
8082
8083 CFLAGS="$xorg_testset_save_CFLAGS"
8084
8085 eval supported=\$$cacheid
8086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8087 printf "%s\n" "$supported" >&6; }
8088 if test "$supported" = "yes" ; then
8089 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
8090 found="yes"
8091 fi
8092 fi
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108 xorg_testset_save_CFLAGS="$CFLAGS"
8109
8110 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8111 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8113 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8114 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8115 then :
8116 printf %s "(cached) " >&6
8117 else $as_nop
8118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8119 /* end confdefs.h. */
8120 int i;
8121 _ACEOF
8122 if ac_fn_c_try_compile "$LINENO"
8123 then :
8124 xorg_cv_cc_flag_unknown_warning_option=yes
8125 else $as_nop
8126 xorg_cv_cc_flag_unknown_warning_option=no
8127 fi
8128 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8129 fi
8130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8131 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8132 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8133 CFLAGS="$xorg_testset_save_CFLAGS"
8134 fi
8135
8136 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8137 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8139 fi
8140 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8142 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8143 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8144 then :
8145 printf %s "(cached) " >&6
8146 else $as_nop
8147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8148 /* end confdefs.h. */
8149 int i;
8150 _ACEOF
8151 if ac_fn_c_try_compile "$LINENO"
8152 then :
8153 xorg_cv_cc_flag_unused_command_line_argument=yes
8154 else $as_nop
8155 xorg_cv_cc_flag_unused_command_line_argument=no
8156 fi
8157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8158 fi
8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8160 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8161 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8162 CFLAGS="$xorg_testset_save_CFLAGS"
8163 fi
8164
8165 found="no"
8166
8167 if test $found = "no" ; then
8168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8170 fi
8171
8172 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8173 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8174 fi
8175
8176 CFLAGS="$CFLAGS -Werror=trigraphs"
8177
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
8179 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
8180 cacheid=xorg_cv_cc_flag__Werror_trigraphs
8181 if eval test \${$cacheid+y}
8182 then :
8183 printf %s "(cached) " >&6
8184 else $as_nop
8185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8186 /* end confdefs.h. */
8187 int i;
8188 int
8189 main (void)
8190 {
8191
8192 ;
8193 return 0;
8194 }
8195 _ACEOF
8196 if ac_fn_c_try_link "$LINENO"
8197 then :
8198 eval $cacheid=yes
8199 else $as_nop
8200 eval $cacheid=no
8201 fi
8202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8203 conftest$ac_exeext conftest.$ac_ext
8204 fi
8205
8206
8207 CFLAGS="$xorg_testset_save_CFLAGS"
8208
8209 eval supported=\$$cacheid
8210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8211 printf "%s\n" "$supported" >&6; }
8212 if test "$supported" = "yes" ; then
8213 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
8214 found="yes"
8215 fi
8216 fi
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232 xorg_testset_save_CFLAGS="$CFLAGS"
8233
8234 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8235 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8237 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8238 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8239 then :
8240 printf %s "(cached) " >&6
8241 else $as_nop
8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8243 /* end confdefs.h. */
8244 int i;
8245 _ACEOF
8246 if ac_fn_c_try_compile "$LINENO"
8247 then :
8248 xorg_cv_cc_flag_unknown_warning_option=yes
8249 else $as_nop
8250 xorg_cv_cc_flag_unknown_warning_option=no
8251 fi
8252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8253 fi
8254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8255 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8256 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8257 CFLAGS="$xorg_testset_save_CFLAGS"
8258 fi
8259
8260 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8261 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8262 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8263 fi
8264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8266 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8267 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8268 then :
8269 printf %s "(cached) " >&6
8270 else $as_nop
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8273 int i;
8274 _ACEOF
8275 if ac_fn_c_try_compile "$LINENO"
8276 then :
8277 xorg_cv_cc_flag_unused_command_line_argument=yes
8278 else $as_nop
8279 xorg_cv_cc_flag_unused_command_line_argument=no
8280 fi
8281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8282 fi
8283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8284 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8285 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8286 CFLAGS="$xorg_testset_save_CFLAGS"
8287 fi
8288
8289 found="no"
8290
8291 if test $found = "no" ; then
8292 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8293 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8294 fi
8295
8296 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8297 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8298 fi
8299
8300 CFLAGS="$CFLAGS -Werror=array-bounds"
8301
8302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
8303 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
8304 cacheid=xorg_cv_cc_flag__Werror_array_bounds
8305 if eval test \${$cacheid+y}
8306 then :
8307 printf %s "(cached) " >&6
8308 else $as_nop
8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310 /* end confdefs.h. */
8311 int i;
8312 int
8313 main (void)
8314 {
8315
8316 ;
8317 return 0;
8318 }
8319 _ACEOF
8320 if ac_fn_c_try_link "$LINENO"
8321 then :
8322 eval $cacheid=yes
8323 else $as_nop
8324 eval $cacheid=no
8325 fi
8326 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8327 conftest$ac_exeext conftest.$ac_ext
8328 fi
8329
8330
8331 CFLAGS="$xorg_testset_save_CFLAGS"
8332
8333 eval supported=\$$cacheid
8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8335 printf "%s\n" "$supported" >&6; }
8336 if test "$supported" = "yes" ; then
8337 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
8338 found="yes"
8339 fi
8340 fi
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356 xorg_testset_save_CFLAGS="$CFLAGS"
8357
8358 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8359 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8361 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8362 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8363 then :
8364 printf %s "(cached) " >&6
8365 else $as_nop
8366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8367 /* end confdefs.h. */
8368 int i;
8369 _ACEOF
8370 if ac_fn_c_try_compile "$LINENO"
8371 then :
8372 xorg_cv_cc_flag_unknown_warning_option=yes
8373 else $as_nop
8374 xorg_cv_cc_flag_unknown_warning_option=no
8375 fi
8376 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8377 fi
8378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8379 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8380 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8381 CFLAGS="$xorg_testset_save_CFLAGS"
8382 fi
8383
8384 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8387 fi
8388 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8390 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8391 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8392 then :
8393 printf %s "(cached) " >&6
8394 else $as_nop
8395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8396 /* end confdefs.h. */
8397 int i;
8398 _ACEOF
8399 if ac_fn_c_try_compile "$LINENO"
8400 then :
8401 xorg_cv_cc_flag_unused_command_line_argument=yes
8402 else $as_nop
8403 xorg_cv_cc_flag_unused_command_line_argument=no
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8406 fi
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8408 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8409 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8410 CFLAGS="$xorg_testset_save_CFLAGS"
8411 fi
8412
8413 found="no"
8414
8415 if test $found = "no" ; then
8416 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8417 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8418 fi
8419
8420 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8421 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8422 fi
8423
8424 CFLAGS="$CFLAGS -Werror=write-strings"
8425
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
8427 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
8428 cacheid=xorg_cv_cc_flag__Werror_write_strings
8429 if eval test \${$cacheid+y}
8430 then :
8431 printf %s "(cached) " >&6
8432 else $as_nop
8433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8434 /* end confdefs.h. */
8435 int i;
8436 int
8437 main (void)
8438 {
8439
8440 ;
8441 return 0;
8442 }
8443 _ACEOF
8444 if ac_fn_c_try_link "$LINENO"
8445 then :
8446 eval $cacheid=yes
8447 else $as_nop
8448 eval $cacheid=no
8449 fi
8450 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8451 conftest$ac_exeext conftest.$ac_ext
8452 fi
8453
8454
8455 CFLAGS="$xorg_testset_save_CFLAGS"
8456
8457 eval supported=\$$cacheid
8458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8459 printf "%s\n" "$supported" >&6; }
8460 if test "$supported" = "yes" ; then
8461 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8462 found="yes"
8463 fi
8464 fi
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480 xorg_testset_save_CFLAGS="$CFLAGS"
8481
8482 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8485 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8486 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8487 then :
8488 printf %s "(cached) " >&6
8489 else $as_nop
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491 /* end confdefs.h. */
8492 int i;
8493 _ACEOF
8494 if ac_fn_c_try_compile "$LINENO"
8495 then :
8496 xorg_cv_cc_flag_unknown_warning_option=yes
8497 else $as_nop
8498 xorg_cv_cc_flag_unknown_warning_option=no
8499 fi
8500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8501 fi
8502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8503 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8504 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8505 CFLAGS="$xorg_testset_save_CFLAGS"
8506 fi
8507
8508 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8509 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8510 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8511 fi
8512 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8514 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8515 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8516 then :
8517 printf %s "(cached) " >&6
8518 else $as_nop
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8520 /* end confdefs.h. */
8521 int i;
8522 _ACEOF
8523 if ac_fn_c_try_compile "$LINENO"
8524 then :
8525 xorg_cv_cc_flag_unused_command_line_argument=yes
8526 else $as_nop
8527 xorg_cv_cc_flag_unused_command_line_argument=no
8528 fi
8529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8530 fi
8531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8532 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8534 CFLAGS="$xorg_testset_save_CFLAGS"
8535 fi
8536
8537 found="no"
8538
8539 if test $found = "no" ; then
8540 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8542 fi
8543
8544 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8546 fi
8547
8548 CFLAGS="$CFLAGS -Werror=address"
8549
8550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8551 printf %s "checking if $CC supports -Werror=address... " >&6; }
8552 cacheid=xorg_cv_cc_flag__Werror_address
8553 if eval test \${$cacheid+y}
8554 then :
8555 printf %s "(cached) " >&6
8556 else $as_nop
8557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 int i;
8560 int
8561 main (void)
8562 {
8563
8564 ;
8565 return 0;
8566 }
8567 _ACEOF
8568 if ac_fn_c_try_link "$LINENO"
8569 then :
8570 eval $cacheid=yes
8571 else $as_nop
8572 eval $cacheid=no
8573 fi
8574 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8575 conftest$ac_exeext conftest.$ac_ext
8576 fi
8577
8578
8579 CFLAGS="$xorg_testset_save_CFLAGS"
8580
8581 eval supported=\$$cacheid
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8583 printf "%s\n" "$supported" >&6; }
8584 if test "$supported" = "yes" ; then
8585 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8586 found="yes"
8587 fi
8588 fi
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604 xorg_testset_save_CFLAGS="$CFLAGS"
8605
8606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8609 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8610 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8611 then :
8612 printf %s "(cached) " >&6
8613 else $as_nop
8614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8615 /* end confdefs.h. */
8616 int i;
8617 _ACEOF
8618 if ac_fn_c_try_compile "$LINENO"
8619 then :
8620 xorg_cv_cc_flag_unknown_warning_option=yes
8621 else $as_nop
8622 xorg_cv_cc_flag_unknown_warning_option=no
8623 fi
8624 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8625 fi
8626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8627 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8628 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8629 CFLAGS="$xorg_testset_save_CFLAGS"
8630 fi
8631
8632 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8633 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8634 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8635 fi
8636 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8638 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8639 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8640 then :
8641 printf %s "(cached) " >&6
8642 else $as_nop
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644 /* end confdefs.h. */
8645 int i;
8646 _ACEOF
8647 if ac_fn_c_try_compile "$LINENO"
8648 then :
8649 xorg_cv_cc_flag_unused_command_line_argument=yes
8650 else $as_nop
8651 xorg_cv_cc_flag_unused_command_line_argument=no
8652 fi
8653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8654 fi
8655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8656 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8657 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8658 CFLAGS="$xorg_testset_save_CFLAGS"
8659 fi
8660
8661 found="no"
8662
8663 if test $found = "no" ; then
8664 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8665 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8666 fi
8667
8668 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8670 fi
8671
8672 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8673
8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8675 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8676 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8677 if eval test \${$cacheid+y}
8678 then :
8679 printf %s "(cached) " >&6
8680 else $as_nop
8681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8682 /* end confdefs.h. */
8683 int i;
8684 int
8685 main (void)
8686 {
8687
8688 ;
8689 return 0;
8690 }
8691 _ACEOF
8692 if ac_fn_c_try_link "$LINENO"
8693 then :
8694 eval $cacheid=yes
8695 else $as_nop
8696 eval $cacheid=no
8697 fi
8698 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8699 conftest$ac_exeext conftest.$ac_ext
8700 fi
8701
8702
8703 CFLAGS="$xorg_testset_save_CFLAGS"
8704
8705 eval supported=\$$cacheid
8706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8707 printf "%s\n" "$supported" >&6; }
8708 if test "$supported" = "yes" ; then
8709 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8710 found="yes"
8711 fi
8712 fi
8713
8714 if test $found = "no" ; then
8715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8717 fi
8718
8719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8721 fi
8722
8723 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8724
8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8726 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8727 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8728 if eval test \${$cacheid+y}
8729 then :
8730 printf %s "(cached) " >&6
8731 else $as_nop
8732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8733 /* end confdefs.h. */
8734 int i;
8735 int
8736 main (void)
8737 {
8738
8739 ;
8740 return 0;
8741 }
8742 _ACEOF
8743 if ac_fn_c_try_link "$LINENO"
8744 then :
8745 eval $cacheid=yes
8746 else $as_nop
8747 eval $cacheid=no
8748 fi
8749 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8750 conftest$ac_exeext conftest.$ac_ext
8751 fi
8752
8753
8754 CFLAGS="$xorg_testset_save_CFLAGS"
8755
8756 eval supported=\$$cacheid
8757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8758 printf "%s\n" "$supported" >&6; }
8759 if test "$supported" = "yes" ; then
8760 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8761 found="yes"
8762 fi
8763 fi
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779 xorg_testset_save_CFLAGS="$CFLAGS"
8780
8781 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8784 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8785 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8786 then :
8787 printf %s "(cached) " >&6
8788 else $as_nop
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 int i;
8792 _ACEOF
8793 if ac_fn_c_try_compile "$LINENO"
8794 then :
8795 xorg_cv_cc_flag_unknown_warning_option=yes
8796 else $as_nop
8797 xorg_cv_cc_flag_unknown_warning_option=no
8798 fi
8799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8800 fi
8801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8802 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8803 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8804 CFLAGS="$xorg_testset_save_CFLAGS"
8805 fi
8806
8807 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8808 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8810 fi
8811 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8813 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8814 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8815 then :
8816 printf %s "(cached) " >&6
8817 else $as_nop
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819 /* end confdefs.h. */
8820 int i;
8821 _ACEOF
8822 if ac_fn_c_try_compile "$LINENO"
8823 then :
8824 xorg_cv_cc_flag_unused_command_line_argument=yes
8825 else $as_nop
8826 xorg_cv_cc_flag_unused_command_line_argument=no
8827 fi
8828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8829 fi
8830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8831 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8832 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8833 CFLAGS="$xorg_testset_save_CFLAGS"
8834 fi
8835
8836 found="no"
8837
8838 if test $found = "no" ; then
8839 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8840 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8841 fi
8842
8843 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8844 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8845 fi
8846
8847 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8848
8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8850 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8851 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8852 if eval test \${$cacheid+y}
8853 then :
8854 printf %s "(cached) " >&6
8855 else $as_nop
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 int i;
8859 int
8860 main (void)
8861 {
8862
8863 ;
8864 return 0;
8865 }
8866 _ACEOF
8867 if ac_fn_c_try_link "$LINENO"
8868 then :
8869 eval $cacheid=yes
8870 else $as_nop
8871 eval $cacheid=no
8872 fi
8873 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8874 conftest$ac_exeext conftest.$ac_ext
8875 fi
8876
8877
8878 CFLAGS="$xorg_testset_save_CFLAGS"
8879
8880 eval supported=\$$cacheid
8881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8882 printf "%s\n" "$supported" >&6; }
8883 if test "$supported" = "yes" ; then
8884 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8885 found="yes"
8886 fi
8887 fi
8888
8889 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8890 else
8891 { 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
8892 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;}
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906 xorg_testset_save_CFLAGS="$CFLAGS"
8907
8908 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8909 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8911 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8912 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
8913 then :
8914 printf %s "(cached) " >&6
8915 else $as_nop
8916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917 /* end confdefs.h. */
8918 int i;
8919 _ACEOF
8920 if ac_fn_c_try_compile "$LINENO"
8921 then :
8922 xorg_cv_cc_flag_unknown_warning_option=yes
8923 else $as_nop
8924 xorg_cv_cc_flag_unknown_warning_option=no
8925 fi
8926 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8927 fi
8928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8929 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8930 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8931 CFLAGS="$xorg_testset_save_CFLAGS"
8932 fi
8933
8934 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8935 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8937 fi
8938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8940 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8941 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
8942 then :
8943 printf %s "(cached) " >&6
8944 else $as_nop
8945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8946 /* end confdefs.h. */
8947 int i;
8948 _ACEOF
8949 if ac_fn_c_try_compile "$LINENO"
8950 then :
8951 xorg_cv_cc_flag_unused_command_line_argument=yes
8952 else $as_nop
8953 xorg_cv_cc_flag_unused_command_line_argument=no
8954 fi
8955 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8956 fi
8957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8958 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8960 CFLAGS="$xorg_testset_save_CFLAGS"
8961 fi
8962
8963 found="no"
8964
8965 if test $found = "no" ; then
8966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8967 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8968 fi
8969
8970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8972 fi
8973
8974 CFLAGS="$CFLAGS -Wimplicit"
8975
8976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8977 printf %s "checking if $CC supports -Wimplicit... " >&6; }
8978 cacheid=xorg_cv_cc_flag__Wimplicit
8979 if eval test \${$cacheid+y}
8980 then :
8981 printf %s "(cached) " >&6
8982 else $as_nop
8983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8984 /* end confdefs.h. */
8985 int i;
8986 int
8987 main (void)
8988 {
8989
8990 ;
8991 return 0;
8992 }
8993 _ACEOF
8994 if ac_fn_c_try_link "$LINENO"
8995 then :
8996 eval $cacheid=yes
8997 else $as_nop
8998 eval $cacheid=no
8999 fi
9000 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9001 conftest$ac_exeext conftest.$ac_ext
9002 fi
9003
9004
9005 CFLAGS="$xorg_testset_save_CFLAGS"
9006
9007 eval supported=\$$cacheid
9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9009 printf "%s\n" "$supported" >&6; }
9010 if test "$supported" = "yes" ; then
9011 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
9012 found="yes"
9013 fi
9014 fi
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030 xorg_testset_save_CFLAGS="$CFLAGS"
9031
9032 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9033 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9035 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9036 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9037 then :
9038 printf %s "(cached) " >&6
9039 else $as_nop
9040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9041 /* end confdefs.h. */
9042 int i;
9043 _ACEOF
9044 if ac_fn_c_try_compile "$LINENO"
9045 then :
9046 xorg_cv_cc_flag_unknown_warning_option=yes
9047 else $as_nop
9048 xorg_cv_cc_flag_unknown_warning_option=no
9049 fi
9050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9051 fi
9052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9053 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9054 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9055 CFLAGS="$xorg_testset_save_CFLAGS"
9056 fi
9057
9058 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9061 fi
9062 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9064 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9065 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9066 then :
9067 printf %s "(cached) " >&6
9068 else $as_nop
9069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9070 /* end confdefs.h. */
9071 int i;
9072 _ACEOF
9073 if ac_fn_c_try_compile "$LINENO"
9074 then :
9075 xorg_cv_cc_flag_unused_command_line_argument=yes
9076 else $as_nop
9077 xorg_cv_cc_flag_unused_command_line_argument=no
9078 fi
9079 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9080 fi
9081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9082 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9083 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9084 CFLAGS="$xorg_testset_save_CFLAGS"
9085 fi
9086
9087 found="no"
9088
9089 if test $found = "no" ; then
9090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9092 fi
9093
9094 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9096 fi
9097
9098 CFLAGS="$CFLAGS -Wnonnull"
9099
9100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
9101 printf %s "checking if $CC supports -Wnonnull... " >&6; }
9102 cacheid=xorg_cv_cc_flag__Wnonnull
9103 if eval test \${$cacheid+y}
9104 then :
9105 printf %s "(cached) " >&6
9106 else $as_nop
9107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9108 /* end confdefs.h. */
9109 int i;
9110 int
9111 main (void)
9112 {
9113
9114 ;
9115 return 0;
9116 }
9117 _ACEOF
9118 if ac_fn_c_try_link "$LINENO"
9119 then :
9120 eval $cacheid=yes
9121 else $as_nop
9122 eval $cacheid=no
9123 fi
9124 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9125 conftest$ac_exeext conftest.$ac_ext
9126 fi
9127
9128
9129 CFLAGS="$xorg_testset_save_CFLAGS"
9130
9131 eval supported=\$$cacheid
9132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9133 printf "%s\n" "$supported" >&6; }
9134 if test "$supported" = "yes" ; then
9135 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
9136 found="yes"
9137 fi
9138 fi
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154 xorg_testset_save_CFLAGS="$CFLAGS"
9155
9156 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9159 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9160 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9161 then :
9162 printf %s "(cached) " >&6
9163 else $as_nop
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9166 int i;
9167 _ACEOF
9168 if ac_fn_c_try_compile "$LINENO"
9169 then :
9170 xorg_cv_cc_flag_unknown_warning_option=yes
9171 else $as_nop
9172 xorg_cv_cc_flag_unknown_warning_option=no
9173 fi
9174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9175 fi
9176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9177 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9178 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9179 CFLAGS="$xorg_testset_save_CFLAGS"
9180 fi
9181
9182 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9183 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9185 fi
9186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9188 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9189 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9190 then :
9191 printf %s "(cached) " >&6
9192 else $as_nop
9193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9194 /* end confdefs.h. */
9195 int i;
9196 _ACEOF
9197 if ac_fn_c_try_compile "$LINENO"
9198 then :
9199 xorg_cv_cc_flag_unused_command_line_argument=yes
9200 else $as_nop
9201 xorg_cv_cc_flag_unused_command_line_argument=no
9202 fi
9203 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9204 fi
9205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9206 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9207 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9208 CFLAGS="$xorg_testset_save_CFLAGS"
9209 fi
9210
9211 found="no"
9212
9213 if test $found = "no" ; then
9214 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9215 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9216 fi
9217
9218 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9220 fi
9221
9222 CFLAGS="$CFLAGS -Winit-self"
9223
9224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
9225 printf %s "checking if $CC supports -Winit-self... " >&6; }
9226 cacheid=xorg_cv_cc_flag__Winit_self
9227 if eval test \${$cacheid+y}
9228 then :
9229 printf %s "(cached) " >&6
9230 else $as_nop
9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9232 /* end confdefs.h. */
9233 int i;
9234 int
9235 main (void)
9236 {
9237
9238 ;
9239 return 0;
9240 }
9241 _ACEOF
9242 if ac_fn_c_try_link "$LINENO"
9243 then :
9244 eval $cacheid=yes
9245 else $as_nop
9246 eval $cacheid=no
9247 fi
9248 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9249 conftest$ac_exeext conftest.$ac_ext
9250 fi
9251
9252
9253 CFLAGS="$xorg_testset_save_CFLAGS"
9254
9255 eval supported=\$$cacheid
9256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9257 printf "%s\n" "$supported" >&6; }
9258 if test "$supported" = "yes" ; then
9259 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
9260 found="yes"
9261 fi
9262 fi
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278 xorg_testset_save_CFLAGS="$CFLAGS"
9279
9280 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9281 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9283 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9284 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9285 then :
9286 printf %s "(cached) " >&6
9287 else $as_nop
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290 int i;
9291 _ACEOF
9292 if ac_fn_c_try_compile "$LINENO"
9293 then :
9294 xorg_cv_cc_flag_unknown_warning_option=yes
9295 else $as_nop
9296 xorg_cv_cc_flag_unknown_warning_option=no
9297 fi
9298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9299 fi
9300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9301 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9303 CFLAGS="$xorg_testset_save_CFLAGS"
9304 fi
9305
9306 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9309 fi
9310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9312 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9313 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9314 then :
9315 printf %s "(cached) " >&6
9316 else $as_nop
9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9318 /* end confdefs.h. */
9319 int i;
9320 _ACEOF
9321 if ac_fn_c_try_compile "$LINENO"
9322 then :
9323 xorg_cv_cc_flag_unused_command_line_argument=yes
9324 else $as_nop
9325 xorg_cv_cc_flag_unused_command_line_argument=no
9326 fi
9327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9328 fi
9329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9330 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9332 CFLAGS="$xorg_testset_save_CFLAGS"
9333 fi
9334
9335 found="no"
9336
9337 if test $found = "no" ; then
9338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9340 fi
9341
9342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9344 fi
9345
9346 CFLAGS="$CFLAGS -Wmain"
9347
9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
9349 printf %s "checking if $CC supports -Wmain... " >&6; }
9350 cacheid=xorg_cv_cc_flag__Wmain
9351 if eval test \${$cacheid+y}
9352 then :
9353 printf %s "(cached) " >&6
9354 else $as_nop
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9357 int i;
9358 int
9359 main (void)
9360 {
9361
9362 ;
9363 return 0;
9364 }
9365 _ACEOF
9366 if ac_fn_c_try_link "$LINENO"
9367 then :
9368 eval $cacheid=yes
9369 else $as_nop
9370 eval $cacheid=no
9371 fi
9372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9373 conftest$ac_exeext conftest.$ac_ext
9374 fi
9375
9376
9377 CFLAGS="$xorg_testset_save_CFLAGS"
9378
9379 eval supported=\$$cacheid
9380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9381 printf "%s\n" "$supported" >&6; }
9382 if test "$supported" = "yes" ; then
9383 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
9384 found="yes"
9385 fi
9386 fi
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402 xorg_testset_save_CFLAGS="$CFLAGS"
9403
9404 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9405 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9407 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9408 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9409 then :
9410 printf %s "(cached) " >&6
9411 else $as_nop
9412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9413 /* end confdefs.h. */
9414 int i;
9415 _ACEOF
9416 if ac_fn_c_try_compile "$LINENO"
9417 then :
9418 xorg_cv_cc_flag_unknown_warning_option=yes
9419 else $as_nop
9420 xorg_cv_cc_flag_unknown_warning_option=no
9421 fi
9422 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9423 fi
9424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9425 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9427 CFLAGS="$xorg_testset_save_CFLAGS"
9428 fi
9429
9430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9433 fi
9434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9436 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9437 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9438 then :
9439 printf %s "(cached) " >&6
9440 else $as_nop
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 int i;
9444 _ACEOF
9445 if ac_fn_c_try_compile "$LINENO"
9446 then :
9447 xorg_cv_cc_flag_unused_command_line_argument=yes
9448 else $as_nop
9449 xorg_cv_cc_flag_unused_command_line_argument=no
9450 fi
9451 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9452 fi
9453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9454 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9455 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9456 CFLAGS="$xorg_testset_save_CFLAGS"
9457 fi
9458
9459 found="no"
9460
9461 if test $found = "no" ; then
9462 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9463 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9464 fi
9465
9466 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9467 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9468 fi
9469
9470 CFLAGS="$CFLAGS -Wmissing-braces"
9471
9472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
9473 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
9474 cacheid=xorg_cv_cc_flag__Wmissing_braces
9475 if eval test \${$cacheid+y}
9476 then :
9477 printf %s "(cached) " >&6
9478 else $as_nop
9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9481 int i;
9482 int
9483 main (void)
9484 {
9485
9486 ;
9487 return 0;
9488 }
9489 _ACEOF
9490 if ac_fn_c_try_link "$LINENO"
9491 then :
9492 eval $cacheid=yes
9493 else $as_nop
9494 eval $cacheid=no
9495 fi
9496 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9497 conftest$ac_exeext conftest.$ac_ext
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 -Wmissing-braces"
9508 found="yes"
9509 fi
9510 fi
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526 xorg_testset_save_CFLAGS="$CFLAGS"
9527
9528 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9529 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9531 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9532 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9533 then :
9534 printf %s "(cached) " >&6
9535 else $as_nop
9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h. */
9538 int i;
9539 _ACEOF
9540 if ac_fn_c_try_compile "$LINENO"
9541 then :
9542 xorg_cv_cc_flag_unknown_warning_option=yes
9543 else $as_nop
9544 xorg_cv_cc_flag_unknown_warning_option=no
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9547 fi
9548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9549 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9551 CFLAGS="$xorg_testset_save_CFLAGS"
9552 fi
9553
9554 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9556 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9557 fi
9558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9560 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9561 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9562 then :
9563 printf %s "(cached) " >&6
9564 else $as_nop
9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9566 /* end confdefs.h. */
9567 int i;
9568 _ACEOF
9569 if ac_fn_c_try_compile "$LINENO"
9570 then :
9571 xorg_cv_cc_flag_unused_command_line_argument=yes
9572 else $as_nop
9573 xorg_cv_cc_flag_unused_command_line_argument=no
9574 fi
9575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9576 fi
9577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9578 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9579 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9580 CFLAGS="$xorg_testset_save_CFLAGS"
9581 fi
9582
9583 found="no"
9584
9585 if test $found = "no" ; then
9586 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9587 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9588 fi
9589
9590 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9591 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9592 fi
9593
9594 CFLAGS="$CFLAGS -Wsequence-point"
9595
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9597 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
9598 cacheid=xorg_cv_cc_flag__Wsequence_point
9599 if eval test \${$cacheid+y}
9600 then :
9601 printf %s "(cached) " >&6
9602 else $as_nop
9603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9604 /* end confdefs.h. */
9605 int i;
9606 int
9607 main (void)
9608 {
9609
9610 ;
9611 return 0;
9612 }
9613 _ACEOF
9614 if ac_fn_c_try_link "$LINENO"
9615 then :
9616 eval $cacheid=yes
9617 else $as_nop
9618 eval $cacheid=no
9619 fi
9620 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9621 conftest$ac_exeext conftest.$ac_ext
9622 fi
9623
9624
9625 CFLAGS="$xorg_testset_save_CFLAGS"
9626
9627 eval supported=\$$cacheid
9628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9629 printf "%s\n" "$supported" >&6; }
9630 if test "$supported" = "yes" ; then
9631 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9632 found="yes"
9633 fi
9634 fi
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650 xorg_testset_save_CFLAGS="$CFLAGS"
9651
9652 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9653 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9655 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9656 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9657 then :
9658 printf %s "(cached) " >&6
9659 else $as_nop
9660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9662 int i;
9663 _ACEOF
9664 if ac_fn_c_try_compile "$LINENO"
9665 then :
9666 xorg_cv_cc_flag_unknown_warning_option=yes
9667 else $as_nop
9668 xorg_cv_cc_flag_unknown_warning_option=no
9669 fi
9670 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9671 fi
9672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9673 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9674 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9675 CFLAGS="$xorg_testset_save_CFLAGS"
9676 fi
9677
9678 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9679 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9680 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9681 fi
9682 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9684 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9685 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9686 then :
9687 printf %s "(cached) " >&6
9688 else $as_nop
9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9690 /* end confdefs.h. */
9691 int i;
9692 _ACEOF
9693 if ac_fn_c_try_compile "$LINENO"
9694 then :
9695 xorg_cv_cc_flag_unused_command_line_argument=yes
9696 else $as_nop
9697 xorg_cv_cc_flag_unused_command_line_argument=no
9698 fi
9699 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9700 fi
9701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9702 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9703 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9704 CFLAGS="$xorg_testset_save_CFLAGS"
9705 fi
9706
9707 found="no"
9708
9709 if test $found = "no" ; then
9710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9711 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9712 fi
9713
9714 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9716 fi
9717
9718 CFLAGS="$CFLAGS -Wreturn-type"
9719
9720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9721 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
9722 cacheid=xorg_cv_cc_flag__Wreturn_type
9723 if eval test \${$cacheid+y}
9724 then :
9725 printf %s "(cached) " >&6
9726 else $as_nop
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729 int i;
9730 int
9731 main (void)
9732 {
9733
9734 ;
9735 return 0;
9736 }
9737 _ACEOF
9738 if ac_fn_c_try_link "$LINENO"
9739 then :
9740 eval $cacheid=yes
9741 else $as_nop
9742 eval $cacheid=no
9743 fi
9744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9745 conftest$ac_exeext conftest.$ac_ext
9746 fi
9747
9748
9749 CFLAGS="$xorg_testset_save_CFLAGS"
9750
9751 eval supported=\$$cacheid
9752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9753 printf "%s\n" "$supported" >&6; }
9754 if test "$supported" = "yes" ; then
9755 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9756 found="yes"
9757 fi
9758 fi
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774 xorg_testset_save_CFLAGS="$CFLAGS"
9775
9776 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9779 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9780 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9781 then :
9782 printf %s "(cached) " >&6
9783 else $as_nop
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9786 int i;
9787 _ACEOF
9788 if ac_fn_c_try_compile "$LINENO"
9789 then :
9790 xorg_cv_cc_flag_unknown_warning_option=yes
9791 else $as_nop
9792 xorg_cv_cc_flag_unknown_warning_option=no
9793 fi
9794 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9795 fi
9796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9797 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9798 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9799 CFLAGS="$xorg_testset_save_CFLAGS"
9800 fi
9801
9802 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9803 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9804 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9805 fi
9806 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9808 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9809 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9810 then :
9811 printf %s "(cached) " >&6
9812 else $as_nop
9813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9814 /* end confdefs.h. */
9815 int i;
9816 _ACEOF
9817 if ac_fn_c_try_compile "$LINENO"
9818 then :
9819 xorg_cv_cc_flag_unused_command_line_argument=yes
9820 else $as_nop
9821 xorg_cv_cc_flag_unused_command_line_argument=no
9822 fi
9823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9824 fi
9825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9826 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9827 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9828 CFLAGS="$xorg_testset_save_CFLAGS"
9829 fi
9830
9831 found="no"
9832
9833 if test $found = "no" ; then
9834 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9835 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9836 fi
9837
9838 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9840 fi
9841
9842 CFLAGS="$CFLAGS -Wtrigraphs"
9843
9844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9845 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
9846 cacheid=xorg_cv_cc_flag__Wtrigraphs
9847 if eval test \${$cacheid+y}
9848 then :
9849 printf %s "(cached) " >&6
9850 else $as_nop
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853 int i;
9854 int
9855 main (void)
9856 {
9857
9858 ;
9859 return 0;
9860 }
9861 _ACEOF
9862 if ac_fn_c_try_link "$LINENO"
9863 then :
9864 eval $cacheid=yes
9865 else $as_nop
9866 eval $cacheid=no
9867 fi
9868 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9869 conftest$ac_exeext conftest.$ac_ext
9870 fi
9871
9872
9873 CFLAGS="$xorg_testset_save_CFLAGS"
9874
9875 eval supported=\$$cacheid
9876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9877 printf "%s\n" "$supported" >&6; }
9878 if test "$supported" = "yes" ; then
9879 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9880 found="yes"
9881 fi
9882 fi
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898 xorg_testset_save_CFLAGS="$CFLAGS"
9899
9900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9903 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9904 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
9905 then :
9906 printf %s "(cached) " >&6
9907 else $as_nop
9908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9909 /* end confdefs.h. */
9910 int i;
9911 _ACEOF
9912 if ac_fn_c_try_compile "$LINENO"
9913 then :
9914 xorg_cv_cc_flag_unknown_warning_option=yes
9915 else $as_nop
9916 xorg_cv_cc_flag_unknown_warning_option=no
9917 fi
9918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9919 fi
9920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9921 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9923 CFLAGS="$xorg_testset_save_CFLAGS"
9924 fi
9925
9926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9929 fi
9930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9932 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9933 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
9934 then :
9935 printf %s "(cached) " >&6
9936 else $as_nop
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9939 int i;
9940 _ACEOF
9941 if ac_fn_c_try_compile "$LINENO"
9942 then :
9943 xorg_cv_cc_flag_unused_command_line_argument=yes
9944 else $as_nop
9945 xorg_cv_cc_flag_unused_command_line_argument=no
9946 fi
9947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9948 fi
9949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9950 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9952 CFLAGS="$xorg_testset_save_CFLAGS"
9953 fi
9954
9955 found="no"
9956
9957 if test $found = "no" ; then
9958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9960 fi
9961
9962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9964 fi
9965
9966 CFLAGS="$CFLAGS -Warray-bounds"
9967
9968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9969 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
9970 cacheid=xorg_cv_cc_flag__Warray_bounds
9971 if eval test \${$cacheid+y}
9972 then :
9973 printf %s "(cached) " >&6
9974 else $as_nop
9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976 /* end confdefs.h. */
9977 int i;
9978 int
9979 main (void)
9980 {
9981
9982 ;
9983 return 0;
9984 }
9985 _ACEOF
9986 if ac_fn_c_try_link "$LINENO"
9987 then :
9988 eval $cacheid=yes
9989 else $as_nop
9990 eval $cacheid=no
9991 fi
9992 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9993 conftest$ac_exeext conftest.$ac_ext
9994 fi
9995
9996
9997 CFLAGS="$xorg_testset_save_CFLAGS"
9998
9999 eval supported=\$$cacheid
10000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10001 printf "%s\n" "$supported" >&6; }
10002 if test "$supported" = "yes" ; then
10003 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
10004 found="yes"
10005 fi
10006 fi
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022 xorg_testset_save_CFLAGS="$CFLAGS"
10023
10024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10027 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10028 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10029 then :
10030 printf %s "(cached) " >&6
10031 else $as_nop
10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033 /* end confdefs.h. */
10034 int i;
10035 _ACEOF
10036 if ac_fn_c_try_compile "$LINENO"
10037 then :
10038 xorg_cv_cc_flag_unknown_warning_option=yes
10039 else $as_nop
10040 xorg_cv_cc_flag_unknown_warning_option=no
10041 fi
10042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10043 fi
10044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10045 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10047 CFLAGS="$xorg_testset_save_CFLAGS"
10048 fi
10049
10050 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10053 fi
10054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10056 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10057 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10058 then :
10059 printf %s "(cached) " >&6
10060 else $as_nop
10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10062 /* end confdefs.h. */
10063 int i;
10064 _ACEOF
10065 if ac_fn_c_try_compile "$LINENO"
10066 then :
10067 xorg_cv_cc_flag_unused_command_line_argument=yes
10068 else $as_nop
10069 xorg_cv_cc_flag_unused_command_line_argument=no
10070 fi
10071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10072 fi
10073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10074 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10076 CFLAGS="$xorg_testset_save_CFLAGS"
10077 fi
10078
10079 found="no"
10080
10081 if test $found = "no" ; then
10082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10084 fi
10085
10086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10088 fi
10089
10090 CFLAGS="$CFLAGS -Wwrite-strings"
10091
10092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
10093 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
10094 cacheid=xorg_cv_cc_flag__Wwrite_strings
10095 if eval test \${$cacheid+y}
10096 then :
10097 printf %s "(cached) " >&6
10098 else $as_nop
10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h. */
10101 int i;
10102 int
10103 main (void)
10104 {
10105
10106 ;
10107 return 0;
10108 }
10109 _ACEOF
10110 if ac_fn_c_try_link "$LINENO"
10111 then :
10112 eval $cacheid=yes
10113 else $as_nop
10114 eval $cacheid=no
10115 fi
10116 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10117 conftest$ac_exeext conftest.$ac_ext
10118 fi
10119
10120
10121 CFLAGS="$xorg_testset_save_CFLAGS"
10122
10123 eval supported=\$$cacheid
10124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10125 printf "%s\n" "$supported" >&6; }
10126 if test "$supported" = "yes" ; then
10127 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
10128 found="yes"
10129 fi
10130 fi
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146 xorg_testset_save_CFLAGS="$CFLAGS"
10147
10148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10151 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10152 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10153 then :
10154 printf %s "(cached) " >&6
10155 else $as_nop
10156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h. */
10158 int i;
10159 _ACEOF
10160 if ac_fn_c_try_compile "$LINENO"
10161 then :
10162 xorg_cv_cc_flag_unknown_warning_option=yes
10163 else $as_nop
10164 xorg_cv_cc_flag_unknown_warning_option=no
10165 fi
10166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10167 fi
10168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10169 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10171 CFLAGS="$xorg_testset_save_CFLAGS"
10172 fi
10173
10174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10177 fi
10178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10180 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10181 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10182 then :
10183 printf %s "(cached) " >&6
10184 else $as_nop
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187 int i;
10188 _ACEOF
10189 if ac_fn_c_try_compile "$LINENO"
10190 then :
10191 xorg_cv_cc_flag_unused_command_line_argument=yes
10192 else $as_nop
10193 xorg_cv_cc_flag_unused_command_line_argument=no
10194 fi
10195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10196 fi
10197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10198 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10200 CFLAGS="$xorg_testset_save_CFLAGS"
10201 fi
10202
10203 found="no"
10204
10205 if test $found = "no" ; then
10206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10208 fi
10209
10210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10212 fi
10213
10214 CFLAGS="$CFLAGS -Waddress"
10215
10216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
10217 printf %s "checking if $CC supports -Waddress... " >&6; }
10218 cacheid=xorg_cv_cc_flag__Waddress
10219 if eval test \${$cacheid+y}
10220 then :
10221 printf %s "(cached) " >&6
10222 else $as_nop
10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10224 /* end confdefs.h. */
10225 int i;
10226 int
10227 main (void)
10228 {
10229
10230 ;
10231 return 0;
10232 }
10233 _ACEOF
10234 if ac_fn_c_try_link "$LINENO"
10235 then :
10236 eval $cacheid=yes
10237 else $as_nop
10238 eval $cacheid=no
10239 fi
10240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10241 conftest$ac_exeext conftest.$ac_ext
10242 fi
10243
10244
10245 CFLAGS="$xorg_testset_save_CFLAGS"
10246
10247 eval supported=\$$cacheid
10248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10249 printf "%s\n" "$supported" >&6; }
10250 if test "$supported" = "yes" ; then
10251 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
10252 found="yes"
10253 fi
10254 fi
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270 xorg_testset_save_CFLAGS="$CFLAGS"
10271
10272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10275 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10276 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10277 then :
10278 printf %s "(cached) " >&6
10279 else $as_nop
10280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10281 /* end confdefs.h. */
10282 int i;
10283 _ACEOF
10284 if ac_fn_c_try_compile "$LINENO"
10285 then :
10286 xorg_cv_cc_flag_unknown_warning_option=yes
10287 else $as_nop
10288 xorg_cv_cc_flag_unknown_warning_option=no
10289 fi
10290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10291 fi
10292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10293 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10295 CFLAGS="$xorg_testset_save_CFLAGS"
10296 fi
10297
10298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10301 fi
10302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10304 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10305 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10306 then :
10307 printf %s "(cached) " >&6
10308 else $as_nop
10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10310 /* end confdefs.h. */
10311 int i;
10312 _ACEOF
10313 if ac_fn_c_try_compile "$LINENO"
10314 then :
10315 xorg_cv_cc_flag_unused_command_line_argument=yes
10316 else $as_nop
10317 xorg_cv_cc_flag_unused_command_line_argument=no
10318 fi
10319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10320 fi
10321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10322 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10324 CFLAGS="$xorg_testset_save_CFLAGS"
10325 fi
10326
10327 found="no"
10328
10329 if test $found = "no" ; then
10330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10332 fi
10333
10334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10336 fi
10337
10338 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
10339
10340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
10341 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
10342 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
10343 if eval test \${$cacheid+y}
10344 then :
10345 printf %s "(cached) " >&6
10346 else $as_nop
10347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10348 /* end confdefs.h. */
10349 int i;
10350 int
10351 main (void)
10352 {
10353
10354 ;
10355 return 0;
10356 }
10357 _ACEOF
10358 if ac_fn_c_try_link "$LINENO"
10359 then :
10360 eval $cacheid=yes
10361 else $as_nop
10362 eval $cacheid=no
10363 fi
10364 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10365 conftest$ac_exeext conftest.$ac_ext
10366 fi
10367
10368
10369 CFLAGS="$xorg_testset_save_CFLAGS"
10370
10371 eval supported=\$$cacheid
10372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10373 printf "%s\n" "$supported" >&6; }
10374 if test "$supported" = "yes" ; then
10375 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
10376 found="yes"
10377 fi
10378 fi
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394 xorg_testset_save_CFLAGS="$CFLAGS"
10395
10396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10399 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10400 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10401 then :
10402 printf %s "(cached) " >&6
10403 else $as_nop
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10406 int i;
10407 _ACEOF
10408 if ac_fn_c_try_compile "$LINENO"
10409 then :
10410 xorg_cv_cc_flag_unknown_warning_option=yes
10411 else $as_nop
10412 xorg_cv_cc_flag_unknown_warning_option=no
10413 fi
10414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10415 fi
10416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10417 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10419 CFLAGS="$xorg_testset_save_CFLAGS"
10420 fi
10421
10422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10425 fi
10426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10428 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10429 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10430 then :
10431 printf %s "(cached) " >&6
10432 else $as_nop
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10435 int i;
10436 _ACEOF
10437 if ac_fn_c_try_compile "$LINENO"
10438 then :
10439 xorg_cv_cc_flag_unused_command_line_argument=yes
10440 else $as_nop
10441 xorg_cv_cc_flag_unused_command_line_argument=no
10442 fi
10443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10444 fi
10445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10446 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10448 CFLAGS="$xorg_testset_save_CFLAGS"
10449 fi
10450
10451 found="no"
10452
10453 if test $found = "no" ; then
10454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10456 fi
10457
10458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10460 fi
10461
10462 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
10463
10464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
10465 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
10466 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
10467 if eval test \${$cacheid+y}
10468 then :
10469 printf %s "(cached) " >&6
10470 else $as_nop
10471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10472 /* end confdefs.h. */
10473 int i;
10474 int
10475 main (void)
10476 {
10477
10478 ;
10479 return 0;
10480 }
10481 _ACEOF
10482 if ac_fn_c_try_link "$LINENO"
10483 then :
10484 eval $cacheid=yes
10485 else $as_nop
10486 eval $cacheid=no
10487 fi
10488 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10489 conftest$ac_exeext conftest.$ac_ext
10490 fi
10491
10492
10493 CFLAGS="$xorg_testset_save_CFLAGS"
10494
10495 eval supported=\$$cacheid
10496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10497 printf "%s\n" "$supported" >&6; }
10498 if test "$supported" = "yes" ; then
10499 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
10500 found="yes"
10501 fi
10502 fi
10503
10504
10505 fi
10506
10507
10508
10509
10510
10511
10512
10513 CWARNFLAGS="$BASE_CFLAGS"
10514 if test "x$GCC" = xyes ; then
10515 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
10516 fi
10517
10518
10519
10520
10521
10522
10523
10524
10525 # Check whether --enable-strict-compilation was given.
10526 if test ${enable_strict_compilation+y}
10527 then :
10528 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
10529 else $as_nop
10530 STRICT_COMPILE=no
10531 fi
10532
10533
10534
10535
10536
10537
10538 STRICT_CFLAGS=""
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552 xorg_testset_save_CFLAGS="$CFLAGS"
10553
10554 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10557 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10558 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10559 then :
10560 printf %s "(cached) " >&6
10561 else $as_nop
10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10564 int i;
10565 _ACEOF
10566 if ac_fn_c_try_compile "$LINENO"
10567 then :
10568 xorg_cv_cc_flag_unknown_warning_option=yes
10569 else $as_nop
10570 xorg_cv_cc_flag_unknown_warning_option=no
10571 fi
10572 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10573 fi
10574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10575 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10576 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10577 CFLAGS="$xorg_testset_save_CFLAGS"
10578 fi
10579
10580 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10581 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10582 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10583 fi
10584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10586 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10587 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10588 then :
10589 printf %s "(cached) " >&6
10590 else $as_nop
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h. */
10593 int i;
10594 _ACEOF
10595 if ac_fn_c_try_compile "$LINENO"
10596 then :
10597 xorg_cv_cc_flag_unused_command_line_argument=yes
10598 else $as_nop
10599 xorg_cv_cc_flag_unused_command_line_argument=no
10600 fi
10601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10602 fi
10603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10604 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10606 CFLAGS="$xorg_testset_save_CFLAGS"
10607 fi
10608
10609 found="no"
10610
10611 if test $found = "no" ; then
10612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10613 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10614 fi
10615
10616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10618 fi
10619
10620 CFLAGS="$CFLAGS -pedantic"
10621
10622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10623 printf %s "checking if $CC supports -pedantic... " >&6; }
10624 cacheid=xorg_cv_cc_flag__pedantic
10625 if eval test \${$cacheid+y}
10626 then :
10627 printf %s "(cached) " >&6
10628 else $as_nop
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 int i;
10632 int
10633 main (void)
10634 {
10635
10636 ;
10637 return 0;
10638 }
10639 _ACEOF
10640 if ac_fn_c_try_link "$LINENO"
10641 then :
10642 eval $cacheid=yes
10643 else $as_nop
10644 eval $cacheid=no
10645 fi
10646 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10647 conftest$ac_exeext conftest.$ac_ext
10648 fi
10649
10650
10651 CFLAGS="$xorg_testset_save_CFLAGS"
10652
10653 eval supported=\$$cacheid
10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10655 printf "%s\n" "$supported" >&6; }
10656 if test "$supported" = "yes" ; then
10657 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10658 found="yes"
10659 fi
10660 fi
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676 xorg_testset_save_CFLAGS="$CFLAGS"
10677
10678 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10679 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10681 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10682 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10683 then :
10684 printf %s "(cached) " >&6
10685 else $as_nop
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10688 int i;
10689 _ACEOF
10690 if ac_fn_c_try_compile "$LINENO"
10691 then :
10692 xorg_cv_cc_flag_unknown_warning_option=yes
10693 else $as_nop
10694 xorg_cv_cc_flag_unknown_warning_option=no
10695 fi
10696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10697 fi
10698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10699 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10700 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10701 CFLAGS="$xorg_testset_save_CFLAGS"
10702 fi
10703
10704 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10705 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10706 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10707 fi
10708 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10710 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10711 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10712 then :
10713 printf %s "(cached) " >&6
10714 else $as_nop
10715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10716 /* end confdefs.h. */
10717 int i;
10718 _ACEOF
10719 if ac_fn_c_try_compile "$LINENO"
10720 then :
10721 xorg_cv_cc_flag_unused_command_line_argument=yes
10722 else $as_nop
10723 xorg_cv_cc_flag_unused_command_line_argument=no
10724 fi
10725 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10726 fi
10727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10728 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10730 CFLAGS="$xorg_testset_save_CFLAGS"
10731 fi
10732
10733 found="no"
10734
10735 if test $found = "no" ; then
10736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10737 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10738 fi
10739
10740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10742 fi
10743
10744 CFLAGS="$CFLAGS -Werror"
10745
10746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10747 printf %s "checking if $CC supports -Werror... " >&6; }
10748 cacheid=xorg_cv_cc_flag__Werror
10749 if eval test \${$cacheid+y}
10750 then :
10751 printf %s "(cached) " >&6
10752 else $as_nop
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10755 int i;
10756 int
10757 main (void)
10758 {
10759
10760 ;
10761 return 0;
10762 }
10763 _ACEOF
10764 if ac_fn_c_try_link "$LINENO"
10765 then :
10766 eval $cacheid=yes
10767 else $as_nop
10768 eval $cacheid=no
10769 fi
10770 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10771 conftest$ac_exeext conftest.$ac_ext
10772 fi
10773
10774
10775 CFLAGS="$xorg_testset_save_CFLAGS"
10776
10777 eval supported=\$$cacheid
10778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10779 printf "%s\n" "$supported" >&6; }
10780 if test "$supported" = "yes" ; then
10781 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10782 found="yes"
10783 fi
10784 fi
10785
10786 if test $found = "no" ; then
10787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10789 fi
10790
10791 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10793 fi
10794
10795 CFLAGS="$CFLAGS -errwarn"
10796
10797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10798 printf %s "checking if $CC supports -errwarn... " >&6; }
10799 cacheid=xorg_cv_cc_flag__errwarn
10800 if eval test \${$cacheid+y}
10801 then :
10802 printf %s "(cached) " >&6
10803 else $as_nop
10804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10805 /* end confdefs.h. */
10806 int i;
10807 int
10808 main (void)
10809 {
10810
10811 ;
10812 return 0;
10813 }
10814 _ACEOF
10815 if ac_fn_c_try_link "$LINENO"
10816 then :
10817 eval $cacheid=yes
10818 else $as_nop
10819 eval $cacheid=no
10820 fi
10821 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10822 conftest$ac_exeext conftest.$ac_ext
10823 fi
10824
10825
10826 CFLAGS="$xorg_testset_save_CFLAGS"
10827
10828 eval supported=\$$cacheid
10829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10830 printf "%s\n" "$supported" >&6; }
10831 if test "$supported" = "yes" ; then
10832 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10833 found="yes"
10834 fi
10835 fi
10836
10837
10838
10839 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10840 # activate it with -Werror, so we add it here explicitly.
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854 xorg_testset_save_CFLAGS="$CFLAGS"
10855
10856 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10859 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10860 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
10861 then :
10862 printf %s "(cached) " >&6
10863 else $as_nop
10864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10865 /* end confdefs.h. */
10866 int i;
10867 _ACEOF
10868 if ac_fn_c_try_compile "$LINENO"
10869 then :
10870 xorg_cv_cc_flag_unknown_warning_option=yes
10871 else $as_nop
10872 xorg_cv_cc_flag_unknown_warning_option=no
10873 fi
10874 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10875 fi
10876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10877 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10878 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10879 CFLAGS="$xorg_testset_save_CFLAGS"
10880 fi
10881
10882 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10883 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10884 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10885 fi
10886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10888 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10889 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
10890 then :
10891 printf %s "(cached) " >&6
10892 else $as_nop
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10894 /* end confdefs.h. */
10895 int i;
10896 _ACEOF
10897 if ac_fn_c_try_compile "$LINENO"
10898 then :
10899 xorg_cv_cc_flag_unused_command_line_argument=yes
10900 else $as_nop
10901 xorg_cv_cc_flag_unused_command_line_argument=no
10902 fi
10903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10904 fi
10905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10906 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10908 CFLAGS="$xorg_testset_save_CFLAGS"
10909 fi
10910
10911 found="no"
10912
10913 if test $found = "no" ; then
10914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10916 fi
10917
10918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10920 fi
10921
10922 CFLAGS="$CFLAGS -Werror=attributes"
10923
10924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10925 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
10926 cacheid=xorg_cv_cc_flag__Werror_attributes
10927 if eval test \${$cacheid+y}
10928 then :
10929 printf %s "(cached) " >&6
10930 else $as_nop
10931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932 /* end confdefs.h. */
10933 int i;
10934 int
10935 main (void)
10936 {
10937
10938 ;
10939 return 0;
10940 }
10941 _ACEOF
10942 if ac_fn_c_try_link "$LINENO"
10943 then :
10944 eval $cacheid=yes
10945 else $as_nop
10946 eval $cacheid=no
10947 fi
10948 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10949 conftest$ac_exeext conftest.$ac_ext
10950 fi
10951
10952
10953 CFLAGS="$xorg_testset_save_CFLAGS"
10954
10955 eval supported=\$$cacheid
10956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10957 printf "%s\n" "$supported" >&6; }
10958 if test "$supported" = "yes" ; then
10959 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10960 found="yes"
10961 fi
10962 fi
10963
10964
10965
10966 if test "x$STRICT_COMPILE" = "xyes"; then
10967 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10968 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10969 fi
10970
10971
10972
10973
10974
10975
10976 cat >>confdefs.h <<_ACEOF
10977 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10978 _ACEOF
10979
10980 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10981 if test "x$PVM" = "x"; then
10982 PVM="0"
10983 fi
10984
10985 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
10986
10987 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10988 if test "x$PVP" = "x"; then
10989 PVP="0"
10990 fi
10991
10992 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
10993
10994
10995
10996 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
10997 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10998 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
10999 touch \$(top_srcdir)/ChangeLog; \
11000 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
11001
11002
11003
11004
11005 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
11006 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
11007 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
11008 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
11009 touch \$(top_srcdir)/INSTALL; \
11010 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
11011
11012
11013
11014
11015
11016
11017 case $host_os in
11018 solaris*)
11019 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
11020 # check for a man page file found in later versions that use
11021 # traditional section numbers instead
11022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
11023 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
11024 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
11025 then :
11026 printf %s "(cached) " >&6
11027 else $as_nop
11028 test "$cross_compiling" = yes &&
11029 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
11030 if test -r "/usr/share/man/man7/attributes.7"; then
11031 ac_cv_file__usr_share_man_man7_attributes_7=yes
11032 else
11033 ac_cv_file__usr_share_man_man7_attributes_7=no
11034 fi
11035 fi
11036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
11037 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
11038 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
11039 then :
11040 SYSV_MAN_SECTIONS=false
11041 else $as_nop
11042 SYSV_MAN_SECTIONS=true
11043 fi
11044
11045 ;;
11046 *) SYSV_MAN_SECTIONS=false ;;
11047 esac
11048
11049 if test x$APP_MAN_SUFFIX = x ; then
11050 APP_MAN_SUFFIX=1
11051 fi
11052 if test x$APP_MAN_DIR = x ; then
11053 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
11054 fi
11055
11056 if test x$LIB_MAN_SUFFIX = x ; then
11057 LIB_MAN_SUFFIX=3
11058 fi
11059 if test x$LIB_MAN_DIR = x ; then
11060 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
11061 fi
11062
11063 if test x$FILE_MAN_SUFFIX = x ; then
11064 case $SYSV_MAN_SECTIONS in
11065 true) FILE_MAN_SUFFIX=4 ;;
11066 *) FILE_MAN_SUFFIX=5 ;;
11067 esac
11068 fi
11069 if test x$FILE_MAN_DIR = x ; then
11070 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
11071 fi
11072
11073 if test x$MISC_MAN_SUFFIX = x ; then
11074 case $SYSV_MAN_SECTIONS in
11075 true) MISC_MAN_SUFFIX=5 ;;
11076 *) MISC_MAN_SUFFIX=7 ;;
11077 esac
11078 fi
11079 if test x$MISC_MAN_DIR = x ; then
11080 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
11081 fi
11082
11083 if test x$DRIVER_MAN_SUFFIX = x ; then
11084 case $SYSV_MAN_SECTIONS in
11085 true) DRIVER_MAN_SUFFIX=7 ;;
11086 *) DRIVER_MAN_SUFFIX=4 ;;
11087 esac
11088 fi
11089 if test x$DRIVER_MAN_DIR = x ; then
11090 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
11091 fi
11092
11093 if test x$ADMIN_MAN_SUFFIX = x ; then
11094 case $SYSV_MAN_SECTIONS in
11095 true) ADMIN_MAN_SUFFIX=1m ;;
11096 *) ADMIN_MAN_SUFFIX=8 ;;
11097 esac
11098 fi
11099 if test x$ADMIN_MAN_DIR = x ; then
11100 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
11101 fi
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117 XORG_MAN_PAGE="X Version 11"
11118
11119 MAN_SUBSTS="\
11120 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11121 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
11122 -e 's|__xservername__|Xorg|g' \
11123 -e 's|__xconfigfile__|xorg.conf|g' \
11124 -e 's|__projectroot__|\$(prefix)|g' \
11125 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
11126 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
11127 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
11128 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
11129 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
11130 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
11131 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
11132
11133
11134
11135 # Check whether --enable-silent-rules was given.
11136 if test ${enable_silent_rules+y}
11137 then :
11138 enableval=$enable_silent_rules;
11139 fi
11140
11141 case $enable_silent_rules in # (((
11142 yes) AM_DEFAULT_VERBOSITY=0;;
11143 no) AM_DEFAULT_VERBOSITY=1;;
11144 *) AM_DEFAULT_VERBOSITY=0;;
11145 esac
11146 am_make=${MAKE-make}
11147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
11148 printf %s "checking whether $am_make supports nested variables... " >&6; }
11149 if test ${am_cv_make_support_nested_variables+y}
11150 then :
11151 printf %s "(cached) " >&6
11152 else $as_nop
11153 if printf "%s\n" 'TRUE=$(BAR$(V))
11154 BAR0=false
11155 BAR1=true
11156 V=1
11157 am__doit:
11158 @$(TRUE)
11159 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
11160 am_cv_make_support_nested_variables=yes
11161 else
11162 am_cv_make_support_nested_variables=no
11163 fi
11164 fi
11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
11166 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
11167 if test $am_cv_make_support_nested_variables = yes; then
11168 AM_V='$(V)'
11169 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
11170 else
11171 AM_V=$AM_DEFAULT_VERBOSITY
11172 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
11173 fi
11174 AM_BACKSLASH='\'
11175
11176
11177
11178 ac_config_headers="$ac_config_headers config.h"
11179
11180
11181
11182 if test -n "$ac_tool_prefix"; then
11183 for ac_prog in ar lib "link -lib"
11184 do
11185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11188 printf %s "checking for $ac_word... " >&6; }
11189 if test ${ac_cv_prog_AR+y}
11190 then :
11191 printf %s "(cached) " >&6
11192 else $as_nop
11193 if test -n "$AR"; then
11194 ac_cv_prog_AR="$AR" # Let the user override the test.
11195 else
11196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11197 for as_dir in $PATH
11198 do
11199 IFS=$as_save_IFS
11200 case $as_dir in #(((
11201 '') as_dir=./ ;;
11202 */) ;;
11203 *) as_dir=$as_dir/ ;;
11204 esac
11205 for ac_exec_ext in '' $ac_executable_extensions; do
11206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11207 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
11208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11209 break 2
11210 fi
11211 done
11212 done
11213 IFS=$as_save_IFS
11214
11215 fi
11216 fi
11217 AR=$ac_cv_prog_AR
11218 if test -n "$AR"; then
11219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11220 printf "%s\n" "$AR" >&6; }
11221 else
11222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11223 printf "%s\n" "no" >&6; }
11224 fi
11225
11226
11227 test -n "$AR" && break
11228 done
11229 fi
11230 if test -z "$AR"; then
11231 ac_ct_AR=$AR
11232 for ac_prog in ar lib "link -lib"
11233 do
11234 # Extract the first word of "$ac_prog", so it can be a program name with args.
11235 set dummy $ac_prog; ac_word=$2
11236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11237 printf %s "checking for $ac_word... " >&6; }
11238 if test ${ac_cv_prog_ac_ct_AR+y}
11239 then :
11240 printf %s "(cached) " >&6
11241 else $as_nop
11242 if test -n "$ac_ct_AR"; then
11243 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11244 else
11245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11246 for as_dir in $PATH
11247 do
11248 IFS=$as_save_IFS
11249 case $as_dir in #(((
11250 '') as_dir=./ ;;
11251 */) ;;
11252 *) as_dir=$as_dir/ ;;
11253 esac
11254 for ac_exec_ext in '' $ac_executable_extensions; do
11255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11256 ac_cv_prog_ac_ct_AR="$ac_prog"
11257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11258 break 2
11259 fi
11260 done
11261 done
11262 IFS=$as_save_IFS
11263
11264 fi
11265 fi
11266 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11267 if test -n "$ac_ct_AR"; then
11268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11269 printf "%s\n" "$ac_ct_AR" >&6; }
11270 else
11271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11272 printf "%s\n" "no" >&6; }
11273 fi
11274
11275
11276 test -n "$ac_ct_AR" && break
11277 done
11278
11279 if test "x$ac_ct_AR" = x; then
11280 AR="false"
11281 else
11282 case $cross_compiling:$ac_tool_warned in
11283 yes:)
11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11285 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11286 ac_tool_warned=yes ;;
11287 esac
11288 AR=$ac_ct_AR
11289 fi
11290 fi
11291
11292 : ${AR=ar}
11293
11294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
11295 printf %s "checking the archiver ($AR) interface... " >&6; }
11296 if test ${am_cv_ar_interface+y}
11297 then :
11298 printf %s "(cached) " >&6
11299 else $as_nop
11300 ac_ext=c
11301 ac_cpp='$CPP $CPPFLAGS'
11302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11305
11306 am_cv_ar_interface=ar
11307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11308 /* end confdefs.h. */
11309 int some_variable = 0;
11310 _ACEOF
11311 if ac_fn_c_try_compile "$LINENO"
11312 then :
11313 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
11314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
11315 (eval $am_ar_try) 2>&5
11316 ac_status=$?
11317 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11318 test $ac_status = 0; }
11319 if test "$ac_status" -eq 0; then
11320 am_cv_ar_interface=ar
11321 else
11322 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
11323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
11324 (eval $am_ar_try) 2>&5
11325 ac_status=$?
11326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11327 test $ac_status = 0; }
11328 if test "$ac_status" -eq 0; then
11329 am_cv_ar_interface=lib
11330 else
11331 am_cv_ar_interface=unknown
11332 fi
11333 fi
11334 rm -f conftest.lib libconftest.a
11335
11336 fi
11337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11338 ac_ext=c
11339 ac_cpp='$CPP $CPPFLAGS'
11340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11343
11344 fi
11345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
11346 printf "%s\n" "$am_cv_ar_interface" >&6; }
11347
11348 case $am_cv_ar_interface in
11349 ar)
11350 ;;
11351 lib)
11352 # Microsoft lib, so override with the ar-lib wrapper script.
11353 # FIXME: It is wrong to rewrite AR.
11354 # But if we don't then we get into trouble of one sort or another.
11355 # A longer-term fix would be to have automake use am__AR in this case,
11356 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
11357 # similar.
11358 AR="$am_aux_dir/ar-lib $AR"
11359 ;;
11360 unknown)
11361 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
11362 ;;
11363 esac
11364
11365 if test -n "$ac_tool_prefix"; then
11366 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11367 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11369 printf %s "checking for $ac_word... " >&6; }
11370 if test ${ac_cv_prog_RANLIB+y}
11371 then :
11372 printf %s "(cached) " >&6
11373 else $as_nop
11374 if test -n "$RANLIB"; then
11375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11376 else
11377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11378 for as_dir in $PATH
11379 do
11380 IFS=$as_save_IFS
11381 case $as_dir in #(((
11382 '') as_dir=./ ;;
11383 */) ;;
11384 *) as_dir=$as_dir/ ;;
11385 esac
11386 for ac_exec_ext in '' $ac_executable_extensions; do
11387 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11388 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11390 break 2
11391 fi
11392 done
11393 done
11394 IFS=$as_save_IFS
11395
11396 fi
11397 fi
11398 RANLIB=$ac_cv_prog_RANLIB
11399 if test -n "$RANLIB"; then
11400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11401 printf "%s\n" "$RANLIB" >&6; }
11402 else
11403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11404 printf "%s\n" "no" >&6; }
11405 fi
11406
11407
11408 fi
11409 if test -z "$ac_cv_prog_RANLIB"; then
11410 ac_ct_RANLIB=$RANLIB
11411 # Extract the first word of "ranlib", so it can be a program name with args.
11412 set dummy ranlib; ac_word=$2
11413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11414 printf %s "checking for $ac_word... " >&6; }
11415 if test ${ac_cv_prog_ac_ct_RANLIB+y}
11416 then :
11417 printf %s "(cached) " >&6
11418 else $as_nop
11419 if test -n "$ac_ct_RANLIB"; then
11420 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11421 else
11422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11423 for as_dir in $PATH
11424 do
11425 IFS=$as_save_IFS
11426 case $as_dir in #(((
11427 '') as_dir=./ ;;
11428 */) ;;
11429 *) as_dir=$as_dir/ ;;
11430 esac
11431 for ac_exec_ext in '' $ac_executable_extensions; do
11432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11433 ac_cv_prog_ac_ct_RANLIB="ranlib"
11434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11435 break 2
11436 fi
11437 done
11438 done
11439 IFS=$as_save_IFS
11440
11441 fi
11442 fi
11443 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11444 if test -n "$ac_ct_RANLIB"; then
11445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11446 printf "%s\n" "$ac_ct_RANLIB" >&6; }
11447 else
11448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11449 printf "%s\n" "no" >&6; }
11450 fi
11451
11452 if test "x$ac_ct_RANLIB" = x; then
11453 RANLIB=":"
11454 else
11455 case $cross_compiling:$ac_tool_warned in
11456 yes:)
11457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11458 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11459 ac_tool_warned=yes ;;
11460 esac
11461 RANLIB=$ac_ct_RANLIB
11462 fi
11463 else
11464 RANLIB="$ac_cv_prog_RANLIB"
11465 fi
11466
11467
11468
11469
11470
11471
11472
11473
11474 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11475 if test -n "$ac_tool_prefix"; then
11476 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11477 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11479 printf %s "checking for $ac_word... " >&6; }
11480 if test ${ac_cv_path_PKG_CONFIG+y}
11481 then :
11482 printf %s "(cached) " >&6
11483 else $as_nop
11484 case $PKG_CONFIG in
11485 [\\/]* | ?:[\\/]*)
11486 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11487 ;;
11488 *)
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11491 do
11492 IFS=$as_save_IFS
11493 case $as_dir in #(((
11494 '') as_dir=./ ;;
11495 */) ;;
11496 *) as_dir=$as_dir/ ;;
11497 esac
11498 for ac_exec_ext in '' $ac_executable_extensions; do
11499 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11500 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
11501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11502 break 2
11503 fi
11504 done
11505 done
11506 IFS=$as_save_IFS
11507
11508 ;;
11509 esac
11510 fi
11511 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11512 if test -n "$PKG_CONFIG"; then
11513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11514 printf "%s\n" "$PKG_CONFIG" >&6; }
11515 else
11516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517 printf "%s\n" "no" >&6; }
11518 fi
11519
11520
11521 fi
11522 if test -z "$ac_cv_path_PKG_CONFIG"; then
11523 ac_pt_PKG_CONFIG=$PKG_CONFIG
11524 # Extract the first word of "pkg-config", so it can be a program name with args.
11525 set dummy pkg-config; ac_word=$2
11526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527 printf %s "checking for $ac_word... " >&6; }
11528 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
11529 then :
11530 printf %s "(cached) " >&6
11531 else $as_nop
11532 case $ac_pt_PKG_CONFIG in
11533 [\\/]* | ?:[\\/]*)
11534 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11535 ;;
11536 *)
11537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11538 for as_dir in $PATH
11539 do
11540 IFS=$as_save_IFS
11541 case $as_dir in #(((
11542 '') as_dir=./ ;;
11543 */) ;;
11544 *) as_dir=$as_dir/ ;;
11545 esac
11546 for ac_exec_ext in '' $ac_executable_extensions; do
11547 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11548 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
11549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11550 break 2
11551 fi
11552 done
11553 done
11554 IFS=$as_save_IFS
11555
11556 ;;
11557 esac
11558 fi
11559 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11560 if test -n "$ac_pt_PKG_CONFIG"; then
11561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11562 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
11563 else
11564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11565 printf "%s\n" "no" >&6; }
11566 fi
11567
11568 if test "x$ac_pt_PKG_CONFIG" = x; then
11569 PKG_CONFIG=""
11570 else
11571 case $cross_compiling:$ac_tool_warned in
11572 yes:)
11573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11574 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11575 ac_tool_warned=yes ;;
11576 esac
11577 PKG_CONFIG=$ac_pt_PKG_CONFIG
11578 fi
11579 else
11580 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11581 fi
11582
11583 fi
11584 if test -n "$PKG_CONFIG"; then
11585 _pkg_min_version=0.9.0
11586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11587 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11588 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11590 printf "%s\n" "yes" >&6; }
11591 else
11592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593 printf "%s\n" "no" >&6; }
11594 PKG_CONFIG=""
11595 fi
11596 fi
11597
11598
11599 pkg_failed=no
11600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PKGDEPS" >&5
11601 printf %s "checking for PKGDEPS... " >&6; }
11602
11603 if test -n "$PKGDEPS_CFLAGS"; then
11604 pkg_cv_PKGDEPS_CFLAGS="$PKGDEPS_CFLAGS"
11605 elif test -n "$PKG_CONFIG"; then
11606 if test -n "$PKG_CONFIG" && \
11607 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11\""; } >&5
11608 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11") 2>&5
11609 ac_status=$?
11610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11611 test $ac_status = 0; }; then
11612 pkg_cv_PKGDEPS_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.0 x11" 2>/dev/null`
11613 test "x$?" != "x0" && pkg_failed=yes
11614 else
11615 pkg_failed=yes
11616 fi
11617 else
11618 pkg_failed=untried
11619 fi
11620 if test -n "$PKGDEPS_LIBS"; then
11621 pkg_cv_PKGDEPS_LIBS="$PKGDEPS_LIBS"
11622 elif test -n "$PKG_CONFIG"; then
11623 if test -n "$PKG_CONFIG" && \
11624 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11\""; } >&5
11625 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11") 2>&5
11626 ac_status=$?
11627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11628 test $ac_status = 0; }; then
11629 pkg_cv_PKGDEPS_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.0 x11" 2>/dev/null`
11630 test "x$?" != "x0" && pkg_failed=yes
11631 else
11632 pkg_failed=yes
11633 fi
11634 else
11635 pkg_failed=untried
11636 fi
11637
11638
11639
11640 if test $pkg_failed = yes; then
11641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 printf "%s\n" "no" >&6; }
11643
11644 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11645 _pkg_short_errors_supported=yes
11646 else
11647 _pkg_short_errors_supported=no
11648 fi
11649 if test $_pkg_short_errors_supported = yes; then
11650 PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11" 2>&1`
11651 else
11652 PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11" 2>&1`
11653 fi
11654 # Put the nasty error message in config.log where it belongs
11655 echo "$PKGDEPS_PKG_ERRORS" >&5
11656
11657 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.0 x11) were not met:
11658
11659 $PKGDEPS_PKG_ERRORS
11660
11661 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11662 installed software in a non-standard prefix.
11663
11664 Alternatively, you may set the environment variables PKGDEPS_CFLAGS
11665 and PKGDEPS_LIBS to avoid the need to call pkg-config.
11666 See the pkg-config man page for more details." "$LINENO" 5
11667 elif test $pkg_failed = untried; then
11668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 printf "%s\n" "no" >&6; }
11670 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11671 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11672 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11673 is in your PATH or set the PKG_CONFIG environment variable to the full
11674 path to pkg-config.
11675
11676 Alternatively, you may set the environment variables PKGDEPS_CFLAGS
11677 and PKGDEPS_LIBS to avoid the need to call pkg-config.
11678 See the pkg-config man page for more details.
11679
11680 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11681 See \`config.log' for more details" "$LINENO" 5; }
11682 else
11683 PKGDEPS_CFLAGS=$pkg_cv_PKGDEPS_CFLAGS
11684 PKGDEPS_LIBS=$pkg_cv_PKGDEPS_LIBS
11685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11686 printf "%s\n" "yes" >&6; }
11687
11688 fi
11689
11690
11691 # Check whether --with-lispdir was given.
11692 if test ${with_lispdir+y}
11693 then :
11694 withval=$with_lispdir; lispdir="$withval"
11695 else $as_nop
11696 lispdir=${libdir}/X11/xedit/lisp
11697 fi
11698
11699 LISPDIR=$lispdir
11700
11701
11702 ac_fn_check_decl "$LINENO" "_SC_PAGESIZE" "ac_cv_have_decl__SC_PAGESIZE" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
11703 if test "x$ac_cv_have_decl__SC_PAGESIZE" = xyes
11704 then :
11705 ac_have_decl=1
11706 else $as_nop
11707 ac_have_decl=0
11708 fi
11709 printf "%s\n" "#define HAVE_DECL__SC_PAGESIZE $ac_have_decl" >>confdefs.h
11710
11711 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11712 if test "x$ac_cv_func_getpagesize" = xyes
11713 then :
11714 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
11715
11716 fi
11717
11718
11719 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
11720 if test "x$ac_cv_func_realpath" = xyes
11721 then :
11722
11723 else $as_nop
11724 have_realpath=yes
11725 fi
11726
11727 if test x$have_realpath = xyes; then
11728 NEED_REALPATH_TRUE=
11729 NEED_REALPATH_FALSE='#'
11730 else
11731 NEED_REALPATH_TRUE='#'
11732 NEED_REALPATH_FALSE=
11733 fi
11734
11735 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
11736 if test "x$ac_cv_func_strcasecmp" = xyes
11737 then :
11738
11739 else $as_nop
11740 have_strcasecmp=yes
11741 fi
11742
11743 if test x$have_strcasecmp = xyes; then
11744 NEED_STRCASECMP_TRUE=
11745 NEED_STRCASECMP_FALSE='#'
11746 else
11747 NEED_STRCASECMP_TRUE='#'
11748 NEED_STRCASECMP_FALSE=
11749 fi
11750
11751 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
11752 if test "x$ac_cv_func_unsetenv" = xyes
11753 then :
11754
11755 else $as_nop
11756 have_unsetenv=yes
11757 fi
11758
11759 if test x$have_unsetenv = xyes; then
11760 NEED_UNSETENV_TRUE=
11761 NEED_UNSETENV_FALSE='#'
11762 else
11763 NEED_UNSETENV_TRUE='#'
11764 NEED_UNSETENV_FALSE=
11765 fi
11766
11767
11768
11769 pkg_failed=no
11770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11771 printf %s "checking for APPDEFS... " >&6; }
11772
11773 if test -n "$APPDEFS_CFLAGS"; then
11774 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11775 elif test -n "$PKG_CONFIG"; then
11776 if test -n "$PKG_CONFIG" && \
11777 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11778 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11779 ac_status=$?
11780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11781 test $ac_status = 0; }; then
11782 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11783 test "x$?" != "x0" && pkg_failed=yes
11784 else
11785 pkg_failed=yes
11786 fi
11787 else
11788 pkg_failed=untried
11789 fi
11790 if test -n "$APPDEFS_LIBS"; then
11791 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11792 elif test -n "$PKG_CONFIG"; then
11793 if test -n "$PKG_CONFIG" && \
11794 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11795 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11796 ac_status=$?
11797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11798 test $ac_status = 0; }; then
11799 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11800 test "x$?" != "x0" && pkg_failed=yes
11801 else
11802 pkg_failed=yes
11803 fi
11804 else
11805 pkg_failed=untried
11806 fi
11807
11808
11809
11810 if test $pkg_failed = yes; then
11811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812 printf "%s\n" "no" >&6; }
11813
11814 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11815 _pkg_short_errors_supported=yes
11816 else
11817 _pkg_short_errors_supported=no
11818 fi
11819 if test $_pkg_short_errors_supported = yes; then
11820 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11821 else
11822 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11823 fi
11824 # Put the nasty error message in config.log where it belongs
11825 echo "$APPDEFS_PKG_ERRORS" >&5
11826
11827 as_fn_error $? "Package requirements (xt) were not met:
11828
11829 $APPDEFS_PKG_ERRORS
11830
11831 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11832 installed software in a non-standard prefix.
11833
11834 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11835 and APPDEFS_LIBS to avoid the need to call pkg-config.
11836 See the pkg-config man page for more details." "$LINENO" 5
11837 elif test $pkg_failed = untried; then
11838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11839 printf "%s\n" "no" >&6; }
11840 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11841 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11842 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11843 is in your PATH or set the PKG_CONFIG environment variable to the full
11844 path to pkg-config.
11845
11846 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11847 and APPDEFS_LIBS to avoid the need to call pkg-config.
11848 See the pkg-config man page for more details.
11849
11850 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11851 See \`config.log' for more details" "$LINENO" 5; }
11852 else
11853 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11854 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11856 printf "%s\n" "yes" >&6; }
11857
11858 fi
11859 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11860
11861 # Check whether --with-appdefaultdir was given.
11862 if test ${with_appdefaultdir+y}
11863 then :
11864 withval=$with_appdefaultdir; appdefaultdir="$withval"
11865 else $as_nop
11866 appdefaultdir="${xt_appdefaultdir}"
11867 fi
11868
11869
11870
11871
11872 ac_config_files="$ac_config_files Makefile man/Makefile"
11873
11874 cat >confcache <<\_ACEOF
11875 # This file is a shell script that caches the results of configure
11876 # tests run on this system so they can be shared between configure
11877 # scripts and configure runs, see configure's option --config-cache.
11878 # It is not useful on other systems. If it contains results you don't
11879 # want to keep, you may remove or edit it.
11880 #
11881 # config.status only pays attention to the cache file if you give it
11882 # the --recheck option to rerun configure.
11883 #
11884 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11885 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11886 # following values.
11887
11888 _ACEOF
11889
11890 # The following way of writing the cache mishandles newlines in values,
11891 # but we know of no workaround that is simple, portable, and efficient.
11892 # So, we kill variables containing newlines.
11893 # Ultrix sh set writes to stderr and can't be redirected directly,
11894 # and sets the high bit in the cache file unless we assign to the vars.
11895 (
11896 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11897 eval ac_val=\$$ac_var
11898 case $ac_val in #(
11899 *${as_nl}*)
11900 case $ac_var in #(
11901 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11902 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11903 esac
11904 case $ac_var in #(
11905 _ | IFS | as_nl) ;; #(
11906 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11907 *) { eval $ac_var=; unset $ac_var;} ;;
11908 esac ;;
11909 esac
11910 done
11911
11912 (set) 2>&1 |
11913 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11914 *${as_nl}ac_space=\ *)
11915 # `set' does not quote correctly, so add quotes: double-quote
11916 # substitution turns \\\\ into \\, and sed turns \\ into \.
11917 sed -n \
11918 "s/'/'\\\\''/g;
11919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11920 ;; #(
11921 *)
11922 # `set' quotes correctly as required by POSIX, so do not add quotes.
11923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11924 ;;
11925 esac |
11926 sort
11927 ) |
11928 sed '
11929 /^ac_cv_env_/b end
11930 t clear
11931 :clear
11932 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
11933 t end
11934 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11935 :end' >>confcache
11936 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11937 if test -w "$cache_file"; then
11938 if test "x$cache_file" != "x/dev/null"; then
11939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11940 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
11941 if test ! -f "$cache_file" || test -h "$cache_file"; then
11942 cat confcache >"$cache_file"
11943 else
11944 case $cache_file in #(
11945 */* | ?:*)
11946 mv -f confcache "$cache_file"$$ &&
11947 mv -f "$cache_file"$$ "$cache_file" ;; #(
11948 *)
11949 mv -f confcache "$cache_file" ;;
11950 esac
11951 fi
11952 fi
11953 else
11954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11955 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
11956 fi
11957 fi
11958 rm -f confcache
11959
11960 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11961 # Let make expand exec_prefix.
11962 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11963
11964 DEFS=-DHAVE_CONFIG_H
11965
11966 ac_libobjs=
11967 ac_ltlibobjs=
11968 U=
11969 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11970 # 1. Remove the extension, and $U if already installed.
11971 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11972 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
11973 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11974 # will be set to the directory where LIBOBJS objects are built.
11975 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11976 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11977 done
11978 LIBOBJS=$ac_libobjs
11979
11980 LTLIBOBJS=$ac_ltlibobjs
11981
11982
11983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11984 printf %s "checking that generated files are newer than configure... " >&6; }
11985 if test -n "$am_sleep_pid"; then
11986 # Hide warnings about reused PIDs.
11987 wait $am_sleep_pid 2>/dev/null
11988 fi
11989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
11990 printf "%s\n" "done" >&6; }
11991 if test -n "$EXEEXT"; then
11992 am__EXEEXT_TRUE=
11993 am__EXEEXT_FALSE='#'
11994 else
11995 am__EXEEXT_TRUE='#'
11996 am__EXEEXT_FALSE=
11997 fi
11998
11999 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12000 as_fn_error $? "conditional \"AMDEP\" was never defined.
12001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12002 fi
12003 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12004 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12006 fi
12007 if test -z "${NEED_REALPATH_TRUE}" && test -z "${NEED_REALPATH_FALSE}"; then
12008 as_fn_error $? "conditional \"NEED_REALPATH\" was never defined.
12009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12010 fi
12011 if test -z "${NEED_STRCASECMP_TRUE}" && test -z "${NEED_STRCASECMP_FALSE}"; then
12012 as_fn_error $? "conditional \"NEED_STRCASECMP\" was never defined.
12013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12014 fi
12015 if test -z "${NEED_UNSETENV_TRUE}" && test -z "${NEED_UNSETENV_FALSE}"; then
12016 as_fn_error $? "conditional \"NEED_UNSETENV\" was never defined.
12017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12018 fi
12019
12020 : "${CONFIG_STATUS=./config.status}"
12021 ac_write_fail=0
12022 ac_clean_files_save=$ac_clean_files
12023 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12025 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12026 as_write_fail=0
12027 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12028 #! $SHELL
12029 # Generated by $as_me.
12030 # Run this file to recreate the current configuration.
12031 # Compiler output produced by configure, useful for debugging
12032 # configure, is in config.log if it exists.
12033
12034 debug=false
12035 ac_cs_recheck=false
12036 ac_cs_silent=false
12037
12038 SHELL=\${CONFIG_SHELL-$SHELL}
12039 export SHELL
12040 _ASEOF
12041 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12042 ## -------------------- ##
12043 ## M4sh Initialization. ##
12044 ## -------------------- ##
12045
12046 # Be more Bourne compatible
12047 DUALCASE=1; export DUALCASE # for MKS sh
12048 as_nop=:
12049 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12050 then :
12051 emulate sh
12052 NULLCMD=:
12053 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12054 # is contrary to our usage. Disable this feature.
12055 alias -g '${1+"$@"}'='"$@"'
12056 setopt NO_GLOB_SUBST
12057 else $as_nop
12058 case `(set -o) 2>/dev/null` in #(
12059 *posix*) :
12060 set -o posix ;; #(
12061 *) :
12062 ;;
12063 esac
12064 fi
12065
12066
12067
12068 # Reset variables that may have inherited troublesome values from
12069 # the environment.
12070
12071 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12072 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12073 # side effect of setting IFS to empty, thus disabling word splitting.)
12074 # Quoting is to prevent editors from complaining about space-tab.
12075 as_nl='
12076 '
12077 export as_nl
12078 IFS=" "" $as_nl"
12079
12080 PS1='$ '
12081 PS2='> '
12082 PS4='+ '
12083
12084 # Ensure predictable behavior from utilities with locale-dependent output.
12085 LC_ALL=C
12086 export LC_ALL
12087 LANGUAGE=C
12088 export LANGUAGE
12089
12090 # We cannot yet rely on "unset" to work, but we need these variables
12091 # to be unset--not just set to an empty or harmless value--now, to
12092 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12093 # also avoids known problems related to "unset" and subshell syntax
12094 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12095 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12096 do eval test \${$as_var+y} \
12097 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12098 done
12099
12100 # Ensure that fds 0, 1, and 2 are open.
12101 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12102 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12103 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12104
12105 # The user is always right.
12106 if ${PATH_SEPARATOR+false} :; then
12107 PATH_SEPARATOR=:
12108 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12109 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12110 PATH_SEPARATOR=';'
12111 }
12112 fi
12113
12114
12115 # Find who we are. Look in the path if we contain no directory separator.
12116 as_myself=
12117 case $0 in #((
12118 *[\\/]* ) as_myself=$0 ;;
12119 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12120 for as_dir in $PATH
12121 do
12122 IFS=$as_save_IFS
12123 case $as_dir in #(((
12124 '') as_dir=./ ;;
12125 */) ;;
12126 *) as_dir=$as_dir/ ;;
12127 esac
12128 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12129 done
12130 IFS=$as_save_IFS
12131
12132 ;;
12133 esac
12134 # We did not find ourselves, most probably we were run as `sh COMMAND'
12135 # in which case we are not to be found in the path.
12136 if test "x$as_myself" = x; then
12137 as_myself=$0
12138 fi
12139 if test ! -f "$as_myself"; then
12140 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12141 exit 1
12142 fi
12143
12144
12145
12146 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12147 # ----------------------------------------
12148 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12149 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12150 # script with STATUS, using 1 if that was 0.
12151 as_fn_error ()
12152 {
12153 as_status=$1; test $as_status -eq 0 && as_status=1
12154 if test "$4"; then
12155 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12156 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12157 fi
12158 printf "%s\n" "$as_me: error: $2" >&2
12159 as_fn_exit $as_status
12160 } # as_fn_error
12161
12162
12163
12164 # as_fn_set_status STATUS
12165 # -----------------------
12166 # Set $? to STATUS, without forking.
12167 as_fn_set_status ()
12168 {
12169 return $1
12170 } # as_fn_set_status
12171
12172 # as_fn_exit STATUS
12173 # -----------------
12174 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12175 as_fn_exit ()
12176 {
12177 set +e
12178 as_fn_set_status $1
12179 exit $1
12180 } # as_fn_exit
12181
12182 # as_fn_unset VAR
12183 # ---------------
12184 # Portably unset VAR.
12185 as_fn_unset ()
12186 {
12187 { eval $1=; unset $1;}
12188 }
12189 as_unset=as_fn_unset
12190
12191 # as_fn_append VAR VALUE
12192 # ----------------------
12193 # Append the text in VALUE to the end of the definition contained in VAR. Take
12194 # advantage of any shell optimizations that allow amortized linear growth over
12195 # repeated appends, instead of the typical quadratic growth present in naive
12196 # implementations.
12197 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12198 then :
12199 eval 'as_fn_append ()
12200 {
12201 eval $1+=\$2
12202 }'
12203 else $as_nop
12204 as_fn_append ()
12205 {
12206 eval $1=\$$1\$2
12207 }
12208 fi # as_fn_append
12209
12210 # as_fn_arith ARG...
12211 # ------------------
12212 # Perform arithmetic evaluation on the ARGs, and store the result in the
12213 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12214 # must be portable across $(()) and expr.
12215 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12216 then :
12217 eval 'as_fn_arith ()
12218 {
12219 as_val=$(( $* ))
12220 }'
12221 else $as_nop
12222 as_fn_arith ()
12223 {
12224 as_val=`expr "$@" || test $? -eq 1`
12225 }
12226 fi # as_fn_arith
12227
12228
12229 if expr a : '\(a\)' >/dev/null 2>&1 &&
12230 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12231 as_expr=expr
12232 else
12233 as_expr=false
12234 fi
12235
12236 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12237 as_basename=basename
12238 else
12239 as_basename=false
12240 fi
12241
12242 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12243 as_dirname=dirname
12244 else
12245 as_dirname=false
12246 fi
12247
12248 as_me=`$as_basename -- "$0" ||
12249 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12250 X"$0" : 'X\(//\)$' \| \
12251 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12252 printf "%s\n" X/"$0" |
12253 sed '/^.*\/\([^/][^/]*\)\/*$/{
12254 s//\1/
12255 q
12256 }
12257 /^X\/\(\/\/\)$/{
12258 s//\1/
12259 q
12260 }
12261 /^X\/\(\/\).*/{
12262 s//\1/
12263 q
12264 }
12265 s/.*/./; q'`
12266
12267 # Avoid depending upon Character Ranges.
12268 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12269 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12270 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12271 as_cr_digits='0123456789'
12272 as_cr_alnum=$as_cr_Letters$as_cr_digits
12273
12274
12275 # Determine whether it's possible to make 'echo' print without a newline.
12276 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12277 # for compatibility with existing Makefiles.
12278 ECHO_C= ECHO_N= ECHO_T=
12279 case `echo -n x` in #(((((
12280 -n*)
12281 case `echo 'xy\c'` in
12282 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12283 xy) ECHO_C='\c';;
12284 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12285 ECHO_T=' ';;
12286 esac;;
12287 *)
12288 ECHO_N='-n';;
12289 esac
12290
12291 # For backward compatibility with old third-party macros, we provide
12292 # the shell variables $as_echo and $as_echo_n. New code should use
12293 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12294 as_echo='printf %s\n'
12295 as_echo_n='printf %s'
12296
12297 rm -f conf$$ conf$$.exe conf$$.file
12298 if test -d conf$$.dir; then
12299 rm -f conf$$.dir/conf$$.file
12300 else
12301 rm -f conf$$.dir
12302 mkdir conf$$.dir 2>/dev/null
12303 fi
12304 if (echo >conf$$.file) 2>/dev/null; then
12305 if ln -s conf$$.file conf$$ 2>/dev/null; then
12306 as_ln_s='ln -s'
12307 # ... but there are two gotchas:
12308 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12309 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12310 # In both cases, we have to default to `cp -pR'.
12311 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12312 as_ln_s='cp -pR'
12313 elif ln conf$$.file conf$$ 2>/dev/null; then
12314 as_ln_s=ln
12315 else
12316 as_ln_s='cp -pR'
12317 fi
12318 else
12319 as_ln_s='cp -pR'
12320 fi
12321 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12322 rmdir conf$$.dir 2>/dev/null
12323
12324
12325 # as_fn_mkdir_p
12326 # -------------
12327 # Create "$as_dir" as a directory, including parents if necessary.
12328 as_fn_mkdir_p ()
12329 {
12330
12331 case $as_dir in #(
12332 -*) as_dir=./$as_dir;;
12333 esac
12334 test -d "$as_dir" || eval $as_mkdir_p || {
12335 as_dirs=
12336 while :; do
12337 case $as_dir in #(
12338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12339 *) as_qdir=$as_dir;;
12340 esac
12341 as_dirs="'$as_qdir' $as_dirs"
12342 as_dir=`$as_dirname -- "$as_dir" ||
12343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12344 X"$as_dir" : 'X\(//\)[^/]' \| \
12345 X"$as_dir" : 'X\(//\)$' \| \
12346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12347 printf "%s\n" X"$as_dir" |
12348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12349 s//\1/
12350 q
12351 }
12352 /^X\(\/\/\)[^/].*/{
12353 s//\1/
12354 q
12355 }
12356 /^X\(\/\/\)$/{
12357 s//\1/
12358 q
12359 }
12360 /^X\(\/\).*/{
12361 s//\1/
12362 q
12363 }
12364 s/.*/./; q'`
12365 test -d "$as_dir" && break
12366 done
12367 test -z "$as_dirs" || eval "mkdir $as_dirs"
12368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12369
12370
12371 } # as_fn_mkdir_p
12372 if mkdir -p . 2>/dev/null; then
12373 as_mkdir_p='mkdir -p "$as_dir"'
12374 else
12375 test -d ./-p && rmdir ./-p
12376 as_mkdir_p=false
12377 fi
12378
12379
12380 # as_fn_executable_p FILE
12381 # -----------------------
12382 # Test if FILE is an executable regular file.
12383 as_fn_executable_p ()
12384 {
12385 test -f "$1" && test -x "$1"
12386 } # as_fn_executable_p
12387 as_test_x='test -x'
12388 as_executable_p=as_fn_executable_p
12389
12390 # Sed expression to map a string onto a valid CPP name.
12391 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12392
12393 # Sed expression to map a string onto a valid variable name.
12394 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12395
12396
12397 exec 6>&1
12398 ## ----------------------------------- ##
12399 ## Main body of $CONFIG_STATUS script. ##
12400 ## ----------------------------------- ##
12401 _ASEOF
12402 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12403
12404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12405 # Save the log message, to keep $0 and so on meaningful, and to
12406 # report actual input values of CONFIG_FILES etc. instead of their
12407 # values after options handling.
12408 ac_log="
12409 This file was extended by xedit $as_me 1.2.3, which was
12410 generated by GNU Autoconf 2.71. Invocation command line was
12411
12412 CONFIG_FILES = $CONFIG_FILES
12413 CONFIG_HEADERS = $CONFIG_HEADERS
12414 CONFIG_LINKS = $CONFIG_LINKS
12415 CONFIG_COMMANDS = $CONFIG_COMMANDS
12416 $ $0 $@
12417
12418 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12419 "
12420
12421 _ACEOF
12422
12423 case $ac_config_files in *"
12424 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12425 esac
12426
12427 case $ac_config_headers in *"
12428 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12429 esac
12430
12431
12432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12433 # Files that config.status was made for.
12434 config_files="$ac_config_files"
12435 config_headers="$ac_config_headers"
12436 config_commands="$ac_config_commands"
12437
12438 _ACEOF
12439
12440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12441 ac_cs_usage="\
12442 \`$as_me' instantiates files and other configuration actions
12443 from templates according to the current configuration. Unless the files
12444 and actions are specified as TAGs, all are instantiated by default.
12445
12446 Usage: $0 [OPTION]... [TAG]...
12447
12448 -h, --help print this help, then exit
12449 -V, --version print version number and configuration settings, then exit
12450 --config print configuration, then exit
12451 -q, --quiet, --silent
12452 do not print progress messages
12453 -d, --debug don't remove temporary files
12454 --recheck update $as_me by reconfiguring in the same conditions
12455 --file=FILE[:TEMPLATE]
12456 instantiate the configuration file FILE
12457 --header=FILE[:TEMPLATE]
12458 instantiate the configuration header FILE
12459
12460 Configuration files:
12461 $config_files
12462
12463 Configuration headers:
12464 $config_headers
12465
12466 Configuration commands:
12467 $config_commands
12468
12469 Report bugs to <https://gitlab.freedesktop.org/xorg/app/xedit/issues>."
12470
12471 _ACEOF
12472 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12473 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12475 ac_cs_config='$ac_cs_config_escaped'
12476 ac_cs_version="\\
12477 xedit config.status 1.2.3
12478 configured by $0, generated by GNU Autoconf 2.71,
12479 with options \\"\$ac_cs_config\\"
12480
12481 Copyright (C) 2021 Free Software Foundation, Inc.
12482 This config.status script is free software; the Free Software Foundation
12483 gives unlimited permission to copy, distribute and modify it."
12484
12485 ac_pwd='$ac_pwd'
12486 srcdir='$srcdir'
12487 INSTALL='$INSTALL'
12488 MKDIR_P='$MKDIR_P'
12489 AWK='$AWK'
12490 test -n "\$AWK" || AWK=awk
12491 _ACEOF
12492
12493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12494 # The default lists apply if the user does not specify any file.
12495 ac_need_defaults=:
12496 while test $# != 0
12497 do
12498 case $1 in
12499 --*=?*)
12500 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12501 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12502 ac_shift=:
12503 ;;
12504 --*=)
12505 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12506 ac_optarg=
12507 ac_shift=:
12508 ;;
12509 *)
12510 ac_option=$1
12511 ac_optarg=$2
12512 ac_shift=shift
12513 ;;
12514 esac
12515
12516 case $ac_option in
12517 # Handling of the options.
12518 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12519 ac_cs_recheck=: ;;
12520 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12521 printf "%s\n" "$ac_cs_version"; exit ;;
12522 --config | --confi | --conf | --con | --co | --c )
12523 printf "%s\n" "$ac_cs_config"; exit ;;
12524 --debug | --debu | --deb | --de | --d | -d )
12525 debug=: ;;
12526 --file | --fil | --fi | --f )
12527 $ac_shift
12528 case $ac_optarg in
12529 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12530 '') as_fn_error $? "missing file argument" ;;
12531 esac
12532 as_fn_append CONFIG_FILES " '$ac_optarg'"
12533 ac_need_defaults=false;;
12534 --header | --heade | --head | --hea )
12535 $ac_shift
12536 case $ac_optarg in
12537 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12538 esac
12539 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12540 ac_need_defaults=false;;
12541 --he | --h)
12542 # Conflict between --help and --header
12543 as_fn_error $? "ambiguous option: \`$1'
12544 Try \`$0 --help' for more information.";;
12545 --help | --hel | -h )
12546 printf "%s\n" "$ac_cs_usage"; exit ;;
12547 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12548 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12549 ac_cs_silent=: ;;
12550
12551 # This is an error.
12552 -*) as_fn_error $? "unrecognized option: \`$1'
12553 Try \`$0 --help' for more information." ;;
12554
12555 *) as_fn_append ac_config_targets " $1"
12556 ac_need_defaults=false ;;
12557
12558 esac
12559 shift
12560 done
12561
12562 ac_configure_extra_args=
12563
12564 if $ac_cs_silent; then
12565 exec 6>/dev/null
12566 ac_configure_extra_args="$ac_configure_extra_args --silent"
12567 fi
12568
12569 _ACEOF
12570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12571 if \$ac_cs_recheck; then
12572 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12573 shift
12574 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12575 CONFIG_SHELL='$SHELL'
12576 export CONFIG_SHELL
12577 exec "\$@"
12578 fi
12579
12580 _ACEOF
12581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12582 exec 5>>config.log
12583 {
12584 echo
12585 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12586 ## Running $as_me. ##
12587 _ASBOX
12588 printf "%s\n" "$ac_log"
12589 } >&5
12590
12591 _ACEOF
12592 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12593 #
12594 # INIT-COMMANDS
12595 #
12596 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
12597
12598 _ACEOF
12599
12600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12601
12602 # Handling of arguments.
12603 for ac_config_target in $ac_config_targets
12604 do
12605 case $ac_config_target in
12606 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12607 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12608 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12609 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
12610
12611 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12612 esac
12613 done
12614
12615
12616 # If the user did not use the arguments to specify the items to instantiate,
12617 # then the envvar interface is used. Set only those that are not.
12618 # We use the long form for the default assignment because of an extremely
12619 # bizarre bug on SunOS 4.1.3.
12620 if $ac_need_defaults; then
12621 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12622 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12623 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
12624 fi
12625
12626 # Have a temporary directory for convenience. Make it in the build tree
12627 # simply because there is no reason against having it here, and in addition,
12628 # creating and moving files from /tmp can sometimes cause problems.
12629 # Hook for its removal unless debugging.
12630 # Note that there is a small window in which the directory will not be cleaned:
12631 # after its creation but before its name has been assigned to `$tmp'.
12632 $debug ||
12633 {
12634 tmp= ac_tmp=
12635 trap 'exit_status=$?
12636 : "${ac_tmp:=$tmp}"
12637 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12638 ' 0
12639 trap 'as_fn_exit 1' 1 2 13 15
12640 }
12641 # Create a (secure) tmp directory for tmp files.
12642
12643 {
12644 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12645 test -d "$tmp"
12646 } ||
12647 {
12648 tmp=./conf$$-$RANDOM
12649 (umask 077 && mkdir "$tmp")
12650 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12651 ac_tmp=$tmp
12652
12653 # Set up the scripts for CONFIG_FILES section.
12654 # No need to generate them if there are no CONFIG_FILES.
12655 # This happens for instance with `./config.status config.h'.
12656 if test -n "$CONFIG_FILES"; then
12657
12658
12659 ac_cr=`echo X | tr X '\015'`
12660 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12661 # But we know of no other shell where ac_cr would be empty at this
12662 # point, so we can use a bashism as a fallback.
12663 if test "x$ac_cr" = x; then
12664 eval ac_cr=\$\'\\r\'
12665 fi
12666 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12667 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12668 ac_cs_awk_cr='\\r'
12669 else
12670 ac_cs_awk_cr=$ac_cr
12671 fi
12672
12673 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12674 _ACEOF
12675
12676
12677 {
12678 echo "cat >conf$$subs.awk <<_ACEOF" &&
12679 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12680 echo "_ACEOF"
12681 } >conf$$subs.sh ||
12682 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12683 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12684 ac_delim='%!_!# '
12685 for ac_last_try in false false false false false :; do
12686 . ./conf$$subs.sh ||
12687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12688
12689 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12690 if test $ac_delim_n = $ac_delim_num; then
12691 break
12692 elif $ac_last_try; then
12693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12694 else
12695 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12696 fi
12697 done
12698 rm -f conf$$subs.sh
12699
12700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12701 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12702 _ACEOF
12703 sed -n '
12704 h
12705 s/^/S["/; s/!.*/"]=/
12706 p
12707 g
12708 s/^[^!]*!//
12709 :repl
12710 t repl
12711 s/'"$ac_delim"'$//
12712 t delim
12713 :nl
12714 h
12715 s/\(.\{148\}\)..*/\1/
12716 t more1
12717 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12718 p
12719 n
12720 b repl
12721 :more1
12722 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12723 p
12724 g
12725 s/.\{148\}//
12726 t nl
12727 :delim
12728 h
12729 s/\(.\{148\}\)..*/\1/
12730 t more2
12731 s/["\\]/\\&/g; s/^/"/; s/$/"/
12732 p
12733 b
12734 :more2
12735 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12736 p
12737 g
12738 s/.\{148\}//
12739 t delim
12740 ' <conf$$subs.awk | sed '
12741 /^[^""]/{
12742 N
12743 s/\n//
12744 }
12745 ' >>$CONFIG_STATUS || ac_write_fail=1
12746 rm -f conf$$subs.awk
12747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12748 _ACAWK
12749 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12750 for (key in S) S_is_set[key] = 1
12751 FS = ""
12752
12753 }
12754 {
12755 line = $ 0
12756 nfields = split(line, field, "@")
12757 substed = 0
12758 len = length(field[1])
12759 for (i = 2; i < nfields; i++) {
12760 key = field[i]
12761 keylen = length(key)
12762 if (S_is_set[key]) {
12763 value = S[key]
12764 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12765 len += length(value) + length(field[++i])
12766 substed = 1
12767 } else
12768 len += 1 + keylen
12769 }
12770
12771 print line
12772 }
12773
12774 _ACAWK
12775 _ACEOF
12776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12777 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12778 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12779 else
12780 cat
12781 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12782 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12783 _ACEOF
12784
12785 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12786 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12787 # trailing colons and then remove the whole line if VPATH becomes empty
12788 # (actually we leave an empty line to preserve line numbers).
12789 if test "x$srcdir" = x.; then
12790 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12791 h
12792 s///
12793 s/^/:/
12794 s/[ ]*$/:/
12795 s/:\$(srcdir):/:/g
12796 s/:\${srcdir}:/:/g
12797 s/:@srcdir@:/:/g
12798 s/^:*//
12799 s/:*$//
12800 x
12801 s/\(=[ ]*\).*/\1/
12802 G
12803 s/\n//
12804 s/^[^=]*=[ ]*$//
12805 }'
12806 fi
12807
12808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12809 fi # test -n "$CONFIG_FILES"
12810
12811 # Set up the scripts for CONFIG_HEADERS section.
12812 # No need to generate them if there are no CONFIG_HEADERS.
12813 # This happens for instance with `./config.status Makefile'.
12814 if test -n "$CONFIG_HEADERS"; then
12815 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12816 BEGIN {
12817 _ACEOF
12818
12819 # Transform confdefs.h into an awk script `defines.awk', embedded as
12820 # here-document in config.status, that substitutes the proper values into
12821 # config.h.in to produce config.h.
12822
12823 # Create a delimiter string that does not exist in confdefs.h, to ease
12824 # handling of long lines.
12825 ac_delim='%!_!# '
12826 for ac_last_try in false false :; do
12827 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12828 if test -z "$ac_tt"; then
12829 break
12830 elif $ac_last_try; then
12831 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12832 else
12833 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12834 fi
12835 done
12836
12837 # For the awk script, D is an array of macro values keyed by name,
12838 # likewise P contains macro parameters if any. Preserve backslash
12839 # newline sequences.
12840
12841 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12842 sed -n '
12843 s/.\{148\}/&'"$ac_delim"'/g
12844 t rset
12845 :rset
12846 s/^[ ]*#[ ]*define[ ][ ]*/ /
12847 t def
12848 d
12849 :def
12850 s/\\$//
12851 t bsnl
12852 s/["\\]/\\&/g
12853 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12854 D["\1"]=" \3"/p
12855 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12856 d
12857 :bsnl
12858 s/["\\]/\\&/g
12859 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12860 D["\1"]=" \3\\\\\\n"\\/p
12861 t cont
12862 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12863 t cont
12864 d
12865 :cont
12866 n
12867 s/.\{148\}/&'"$ac_delim"'/g
12868 t clear
12869 :clear
12870 s/\\$//
12871 t bsnlc
12872 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12873 d
12874 :bsnlc
12875 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12876 b cont
12877 ' <confdefs.h | sed '
12878 s/'"$ac_delim"'/"\\\
12879 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12880
12881 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12882 for (key in D) D_is_set[key] = 1
12883 FS = ""
12884 }
12885 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12886 line = \$ 0
12887 split(line, arg, " ")
12888 if (arg[1] == "#") {
12889 defundef = arg[2]
12890 mac1 = arg[3]
12891 } else {
12892 defundef = substr(arg[1], 2)
12893 mac1 = arg[2]
12894 }
12895 split(mac1, mac2, "(") #)
12896 macro = mac2[1]
12897 prefix = substr(line, 1, index(line, defundef) - 1)
12898 if (D_is_set[macro]) {
12899 # Preserve the white space surrounding the "#".
12900 print prefix "define", macro P[macro] D[macro]
12901 next
12902 } else {
12903 # Replace #undef with comments. This is necessary, for example,
12904 # in the case of _POSIX_SOURCE, which is predefined and required
12905 # on some systems where configure will not decide to define it.
12906 if (defundef == "undef") {
12907 print "/*", prefix defundef, macro, "*/"
12908 next
12909 }
12910 }
12911 }
12912 { print }
12913 _ACAWK
12914 _ACEOF
12915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12916 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12917 fi # test -n "$CONFIG_HEADERS"
12918
12919
12920 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12921 shift
12922 for ac_tag
12923 do
12924 case $ac_tag in
12925 :[FHLC]) ac_mode=$ac_tag; continue;;
12926 esac
12927 case $ac_mode$ac_tag in
12928 :[FHL]*:*);;
12929 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12930 :[FH]-) ac_tag=-:-;;
12931 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12932 esac
12933 ac_save_IFS=$IFS
12934 IFS=:
12935 set x $ac_tag
12936 IFS=$ac_save_IFS
12937 shift
12938 ac_file=$1
12939 shift
12940
12941 case $ac_mode in
12942 :L) ac_source=$1;;
12943 :[FH])
12944 ac_file_inputs=
12945 for ac_f
12946 do
12947 case $ac_f in
12948 -) ac_f="$ac_tmp/stdin";;
12949 *) # Look for the file first in the build tree, then in the source tree
12950 # (if the path is not absolute). The absolute path cannot be DOS-style,
12951 # because $ac_f cannot contain `:'.
12952 test -f "$ac_f" ||
12953 case $ac_f in
12954 [\\/$]*) false;;
12955 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12956 esac ||
12957 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12958 esac
12959 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12960 as_fn_append ac_file_inputs " '$ac_f'"
12961 done
12962
12963 # Let's still pretend it is `configure' which instantiates (i.e., don't
12964 # use $as_me), people would be surprised to read:
12965 # /* config.h. Generated by config.status. */
12966 configure_input='Generated from '`
12967 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12968 `' by configure.'
12969 if test x"$ac_file" != x-; then
12970 configure_input="$ac_file. $configure_input"
12971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12972 printf "%s\n" "$as_me: creating $ac_file" >&6;}
12973 fi
12974 # Neutralize special characters interpreted by sed in replacement strings.
12975 case $configure_input in #(
12976 *\&* | *\|* | *\\* )
12977 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
12978 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12979 *) ac_sed_conf_input=$configure_input;;
12980 esac
12981
12982 case $ac_tag in
12983 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12985 esac
12986 ;;
12987 esac
12988
12989 ac_dir=`$as_dirname -- "$ac_file" ||
12990 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12991 X"$ac_file" : 'X\(//\)[^/]' \| \
12992 X"$ac_file" : 'X\(//\)$' \| \
12993 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12994 printf "%s\n" X"$ac_file" |
12995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12996 s//\1/
12997 q
12998 }
12999 /^X\(\/\/\)[^/].*/{
13000 s//\1/
13001 q
13002 }
13003 /^X\(\/\/\)$/{
13004 s//\1/
13005 q
13006 }
13007 /^X\(\/\).*/{
13008 s//\1/
13009 q
13010 }
13011 s/.*/./; q'`
13012 as_dir="$ac_dir"; as_fn_mkdir_p
13013 ac_builddir=.
13014
13015 case "$ac_dir" in
13016 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13017 *)
13018 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13019 # A ".." for each directory in $ac_dir_suffix.
13020 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13021 case $ac_top_builddir_sub in
13022 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13023 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13024 esac ;;
13025 esac
13026 ac_abs_top_builddir=$ac_pwd
13027 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13028 # for backward compatibility:
13029 ac_top_builddir=$ac_top_build_prefix
13030
13031 case $srcdir in
13032 .) # We are building in place.
13033 ac_srcdir=.
13034 ac_top_srcdir=$ac_top_builddir_sub
13035 ac_abs_top_srcdir=$ac_pwd ;;
13036 [\\/]* | ?:[\\/]* ) # Absolute name.
13037 ac_srcdir=$srcdir$ac_dir_suffix;
13038 ac_top_srcdir=$srcdir
13039 ac_abs_top_srcdir=$srcdir ;;
13040 *) # Relative name.
13041 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13042 ac_top_srcdir=$ac_top_build_prefix$srcdir
13043 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13044 esac
13045 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13046
13047
13048 case $ac_mode in
13049 :F)
13050 #
13051 # CONFIG_FILE
13052 #
13053
13054 case $INSTALL in
13055 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13056 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13057 esac
13058 ac_MKDIR_P=$MKDIR_P
13059 case $MKDIR_P in
13060 [\\/$]* | ?:[\\/]* ) ;;
13061 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13062 esac
13063 _ACEOF
13064
13065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13066 # If the template does not know about datarootdir, expand it.
13067 # FIXME: This hack should be removed a few years after 2.60.
13068 ac_datarootdir_hack=; ac_datarootdir_seen=
13069 ac_sed_dataroot='
13070 /datarootdir/ {
13071 p
13072 q
13073 }
13074 /@datadir@/p
13075 /@docdir@/p
13076 /@infodir@/p
13077 /@localedir@/p
13078 /@mandir@/p'
13079 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13080 *datarootdir*) ac_datarootdir_seen=yes;;
13081 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13083 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13084 _ACEOF
13085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13086 ac_datarootdir_hack='
13087 s&@datadir@&$datadir&g
13088 s&@docdir@&$docdir&g
13089 s&@infodir@&$infodir&g
13090 s&@localedir@&$localedir&g
13091 s&@mandir@&$mandir&g
13092 s&\\\${datarootdir}&$datarootdir&g' ;;
13093 esac
13094 _ACEOF
13095
13096 # Neutralize VPATH when `$srcdir' = `.'.
13097 # Shell code in configure.ac might set extrasub.
13098 # FIXME: do we really want to maintain this feature?
13099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13100 ac_sed_extra="$ac_vpsub
13101 $extrasub
13102 _ACEOF
13103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13104 :t
13105 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13106 s|@configure_input@|$ac_sed_conf_input|;t t
13107 s&@top_builddir@&$ac_top_builddir_sub&;t t
13108 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13109 s&@srcdir@&$ac_srcdir&;t t
13110 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13111 s&@top_srcdir@&$ac_top_srcdir&;t t
13112 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13113 s&@builddir@&$ac_builddir&;t t
13114 s&@abs_builddir@&$ac_abs_builddir&;t t
13115 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13116 s&@INSTALL@&$ac_INSTALL&;t t
13117 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13118 $ac_datarootdir_hack
13119 "
13120 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13121 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13122
13123 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13124 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13125 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13126 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13128 which seems to be undefined. Please make sure it is defined" >&5
13129 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13130 which seems to be undefined. Please make sure it is defined" >&2;}
13131
13132 rm -f "$ac_tmp/stdin"
13133 case $ac_file in
13134 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13135 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13136 esac \
13137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13138 ;;
13139 :H)
13140 #
13141 # CONFIG_HEADER
13142 #
13143 if test x"$ac_file" != x-; then
13144 {
13145 printf "%s\n" "/* $configure_input */" >&1 \
13146 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13147 } >"$ac_tmp/config.h" \
13148 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13149 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13151 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13152 else
13153 rm -f "$ac_file"
13154 mv "$ac_tmp/config.h" "$ac_file" \
13155 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13156 fi
13157 else
13158 printf "%s\n" "/* $configure_input */" >&1 \
13159 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13160 || as_fn_error $? "could not create -" "$LINENO" 5
13161 fi
13162 # Compute "$ac_file"'s index in $config_headers.
13163 _am_arg="$ac_file"
13164 _am_stamp_count=1
13165 for _am_header in $config_headers :; do
13166 case $_am_header in
13167 $_am_arg | $_am_arg:* )
13168 break ;;
13169 * )
13170 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13171 esac
13172 done
13173 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13174 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13175 X"$_am_arg" : 'X\(//\)[^/]' \| \
13176 X"$_am_arg" : 'X\(//\)$' \| \
13177 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13178 printf "%s\n" X"$_am_arg" |
13179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13180 s//\1/
13181 q
13182 }
13183 /^X\(\/\/\)[^/].*/{
13184 s//\1/
13185 q
13186 }
13187 /^X\(\/\/\)$/{
13188 s//\1/
13189 q
13190 }
13191 /^X\(\/\).*/{
13192 s//\1/
13193 q
13194 }
13195 s/.*/./; q'`/stamp-h$_am_stamp_count
13196 ;;
13197
13198 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13199 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
13200 ;;
13201 esac
13202
13203
13204 case $ac_file$ac_mode in
13205 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13206 # Older Autoconf quotes --file arguments for eval, but not when files
13207 # are listed without --file. Let's play safe and only enable the eval
13208 # if we detect the quoting.
13209 # TODO: see whether this extra hack can be removed once we start
13210 # requiring Autoconf 2.70 or later.
13211 case $CONFIG_FILES in #(
13212 *\'*) :
13213 eval set x "$CONFIG_FILES" ;; #(
13214 *) :
13215 set x $CONFIG_FILES ;; #(
13216 *) :
13217 ;;
13218 esac
13219 shift
13220 # Used to flag and report bootstrapping failures.
13221 am_rc=0
13222 for am_mf
13223 do
13224 # Strip MF so we end up with the name of the file.
13225 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
13226 # Check whether this is an Automake generated Makefile which includes
13227 # dependency-tracking related rules and includes.
13228 # Grep'ing the whole file directly is not great: AIX grep has a line
13229 # limit of 2048, but all sed's we know have understand at least 4000.
13230 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
13231 || continue
13232 am_dirpart=`$as_dirname -- "$am_mf" ||
13233 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13234 X"$am_mf" : 'X\(//\)[^/]' \| \
13235 X"$am_mf" : 'X\(//\)$' \| \
13236 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13237 printf "%s\n" X"$am_mf" |
13238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13239 s//\1/
13240 q
13241 }
13242 /^X\(\/\/\)[^/].*/{
13243 s//\1/
13244 q
13245 }
13246 /^X\(\/\/\)$/{
13247 s//\1/
13248 q
13249 }
13250 /^X\(\/\).*/{
13251 s//\1/
13252 q
13253 }
13254 s/.*/./; q'`
13255 am_filepart=`$as_basename -- "$am_mf" ||
13256 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
13257 X"$am_mf" : 'X\(//\)$' \| \
13258 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
13259 printf "%s\n" X/"$am_mf" |
13260 sed '/^.*\/\([^/][^/]*\)\/*$/{
13261 s//\1/
13262 q
13263 }
13264 /^X\/\(\/\/\)$/{
13265 s//\1/
13266 q
13267 }
13268 /^X\/\(\/\).*/{
13269 s//\1/
13270 q
13271 }
13272 s/.*/./; q'`
13273 { echo "$as_me:$LINENO: cd "$am_dirpart" \
13274 && sed -e '/# am--include-marker/d' "$am_filepart" \
13275 | $MAKE -f - am--depfiles" >&5
13276 (cd "$am_dirpart" \
13277 && sed -e '/# am--include-marker/d' "$am_filepart" \
13278 | $MAKE -f - am--depfiles) >&5 2>&5
13279 ac_status=$?
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); } || am_rc=$?
13282 done
13283 if test $am_rc -ne 0; then
13284 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13285 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13286 as_fn_error $? "Something went wrong bootstrapping makefile fragments
13287 for automatic dependency tracking. If GNU make was not used, consider
13288 re-running the configure script with MAKE=\"gmake\" (or whatever is
13289 necessary). You can also try re-running configure with the
13290 '--disable-dependency-tracking' option to at least be able to build
13291 the package (albeit without support for automatic dependency tracking).
13292 See \`config.log' for more details" "$LINENO" 5; }
13293 fi
13294 { am_dirpart=; unset am_dirpart;}
13295 { am_filepart=; unset am_filepart;}
13296 { am_mf=; unset am_mf;}
13297 { am_rc=; unset am_rc;}
13298 rm -f conftest-deps.mk
13299 }
13300 ;;
13301
13302 esac
13303 done # for ac_tag
13304
13305
13306 as_fn_exit 0
13307 _ACEOF
13308 ac_clean_files=$ac_clean_files_save
13309
13310 test $ac_write_fail = 0 ||
13311 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13312
13313
13314 # configure is writing to config.log, and then calls config.status.
13315 # config.status does its own redirection, appending to config.log.
13316 # Unfortunately, on DOS this fails, as config.log is still kept open
13317 # by configure, so config.status won't be able to write to it; its
13318 # output is simply discarded. So we exec the FD to /dev/null,
13319 # effectively closing config.log, so it can be properly (re)opened and
13320 # appended to by config.status. When coming back to configure, we
13321 # need to make the FD available again.
13322 if test "$no_create" != yes; then
13323 ac_cs_success=:
13324 ac_config_status_args=
13325 test "$silent" = yes &&
13326 ac_config_status_args="$ac_config_status_args --quiet"
13327 exec 5>/dev/null
13328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13329 exec 5>>config.log
13330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13331 # would make configure fail if this is the last instruction.
13332 $ac_cs_success || as_fn_exit 1
13333 fi
13334 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13336 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13337 fi
13338
13339
13340