configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for xedit 1.2.2.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; 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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
270 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315
316 # as_fn_mkdir_p
317 # -------------
318 # Create "$as_dir" as a directory, including parents if necessary.
319 as_fn_mkdir_p ()
320 {
321
322 case $as_dir in #(
323 -*) as_dir=./$as_dir;;
324 esac
325 test -d "$as_dir" || eval $as_mkdir_p || {
326 as_dirs=
327 while :; do
328 case $as_dir in #(
329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
330 *) as_qdir=$as_dir;;
331 esac
332 as_dirs="'$as_qdir' $as_dirs"
333 as_dir=`$as_dirname -- "$as_dir" ||
334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
335 X"$as_dir" : 'X\(//\)[^/]' \| \
336 X"$as_dir" : 'X\(//\)$' \| \
337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
338 $as_echo X"$as_dir" |
339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)[^/].*/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\).*/{
352 s//\1/
353 q
354 }
355 s/.*/./; q'`
356 test -d "$as_dir" && break
357 done
358 test -z "$as_dirs" || eval "mkdir $as_dirs"
359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
361
362 } # as_fn_mkdir_p
363
364 # as_fn_executable_p FILE
365 # -----------------------
366 # Test if FILE is an executable regular file.
367 as_fn_executable_p ()
368 {
369 test -f "$1" && test -x "$1"
370 } # as_fn_executable_p
371 # as_fn_append VAR VALUE
372 # ----------------------
373 # Append the text in VALUE to the end of the definition contained in VAR. Take
374 # advantage of any shell optimizations that allow amortized linear growth over
375 # repeated appends, instead of the typical quadratic growth present in naive
376 # implementations.
377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
378 eval 'as_fn_append ()
379 {
380 eval $1+=\$2
381 }'
382 else
383 as_fn_append ()
384 {
385 eval $1=\$$1\$2
386 }
387 fi # as_fn_append
388
389 # as_fn_arith ARG...
390 # ------------------
391 # Perform arithmetic evaluation on the ARGs, and store the result in the
392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
393 # must be portable across $(()) and expr.
394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
395 eval 'as_fn_arith ()
396 {
397 as_val=$(( $* ))
398 }'
399 else
400 as_fn_arith ()
401 {
402 as_val=`expr "$@" || test $? -eq 1`
403 }
404 fi # as_fn_arith
405
406
407 # as_fn_error STATUS ERROR [LINENO LOG_FD]
408 # ----------------------------------------
409 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
410 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
411 # script with STATUS, using 1 if that was 0.
412 as_fn_error ()
413 {
414 as_status=$1; test $as_status -eq 0 && as_status=1
415 if test "$4"; then
416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 fi
419 $as_echo "$as_me: error: $2" >&2
420 as_fn_exit $as_status
421 } # as_fn_error
422
423 if expr a : '\(a\)' >/dev/null 2>&1 &&
424 test "X`expr 00001 : '.*\(...\)'`" = X001; then
425 as_expr=expr
426 else
427 as_expr=false
428 fi
429
430 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
431 as_basename=basename
432 else
433 as_basename=false
434 fi
435
436 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
437 as_dirname=dirname
438 else
439 as_dirname=false
440 fi
441
442 as_me=`$as_basename -- "$0" ||
443 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
444 X"$0" : 'X\(//\)$' \| \
445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 $as_echo X/"$0" |
447 sed '/^.*\/\([^/][^/]*\)\/*$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\/\)$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\).*/{
456 s//\1/
457 q
458 }
459 s/.*/./; q'`
460
461 # Avoid depending upon Character Ranges.
462 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
463 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
464 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
465 as_cr_digits='0123456789'
466 as_cr_alnum=$as_cr_Letters$as_cr_digits
467
468
469 as_lineno_1=$LINENO as_lineno_1a=$LINENO
470 as_lineno_2=$LINENO as_lineno_2a=$LINENO
471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
474 sed -n '
475 p
476 /[$]LINENO/=
477 ' <$as_myself |
478 sed '
479 s/[$]LINENO.*/&-/
480 t lineno
481 b
482 :lineno
483 N
484 :loop
485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
486 t loop
487 s/-\n.*//
488 ' >$as_me.lineno &&
489 chmod +x "$as_me.lineno" ||
490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491
492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
493 # already done that, so ensure we don't try to do so again and fall
494 # in an infinite loop. This has already happened in practice.
495 _as_can_reexec=no; export _as_can_reexec
496 # Don't try to exec as it changes $[0], causing all sort of problems
497 # (the dirname of $[0] is not the place where we might find the
498 # original and so on. Autoconf is especially sensitive to this).
499 . "./$as_me.lineno"
500 # Exit status is that of the last command.
501 exit
502 }
503
504 ECHO_C= ECHO_N= ECHO_T=
505 case `echo -n x` in #(((((
506 -n*)
507 case `echo 'xy\c'` in
508 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
509 xy) ECHO_C='\c';;
510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
511 ECHO_T=' ';;
512 esac;;
513 *)
514 ECHO_N='-n';;
515 esac
516
517 rm -f conf$$ conf$$.exe conf$$.file
518 if test -d conf$$.dir; then
519 rm -f conf$$.dir/conf$$.file
520 else
521 rm -f conf$$.dir
522 mkdir conf$$.dir 2>/dev/null
523 fi
524 if (echo >conf$$.file) 2>/dev/null; then
525 if ln -s conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s='ln -s'
527 # ... but there are two gotchas:
528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
530 # In both cases, we have to default to `cp -pR'.
531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
532 as_ln_s='cp -pR'
533 elif ln conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s=ln
535 else
536 as_ln_s='cp -pR'
537 fi
538 else
539 as_ln_s='cp -pR'
540 fi
541 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
542 rmdir conf$$.dir 2>/dev/null
543
544 if mkdir -p . 2>/dev/null; then
545 as_mkdir_p='mkdir -p "$as_dir"'
546 else
547 test -d ./-p && rmdir ./-p
548 as_mkdir_p=false
549 fi
550
551 as_test_x='test -x'
552 as_executable_p=as_fn_executable_p
553
554 # Sed expression to map a string onto a valid CPP name.
555 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556
557 # Sed expression to map a string onto a valid variable name.
558 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
559
560
561 test -n "$DJDIR" || exec 7<&0 </dev/null
562 exec 6>&1
563
564 # Name of the host.
565 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
566 # so uname gets run too.
567 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
569 #
570 # Initializations.
571 #
572 ac_default_prefix=/usr/local
573 ac_clean_files=
574 ac_config_libobj_dir=.
575 LIBOBJS=
576 cross_compiling=no
577 subdirs=
578 MFLAGS=
579 MAKEFLAGS=
580
581 # Identity of this package.
582 PACKAGE_NAME='xedit'
583 PACKAGE_TARNAME='xedit'
584 PACKAGE_VERSION='1.2.2'
585 PACKAGE_STRING='xedit 1.2.2'
586 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
587 PACKAGE_URL=''
588
589 # Factoring default headers for most tests.
590 ac_includes_default="\
591 #include <stdio.h>
592 #ifdef HAVE_SYS_TYPES_H
593 # include <sys/types.h>
594 #endif
595 #ifdef HAVE_SYS_STAT_H
596 # include <sys/stat.h>
597 #endif
598 #ifdef STDC_HEADERS
599 # include <stdlib.h>
600 # include <stddef.h>
601 #else
602 # ifdef HAVE_STDLIB_H
603 # include <stdlib.h>
604 # endif
605 #endif
606 #ifdef HAVE_STRING_H
607 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 # include <memory.h>
609 # endif
610 # include <string.h>
611 #endif
612 #ifdef HAVE_STRINGS_H
613 # include <strings.h>
614 #endif
615 #ifdef HAVE_INTTYPES_H
616 # include <inttypes.h>
617 #endif
618 #ifdef HAVE_STDINT_H
619 # include <stdint.h>
620 #endif
621 #ifdef HAVE_UNISTD_H
622 # include <unistd.h>
623 #endif"
624
625 ac_subst_vars='am__EXEEXT_FALSE
626 am__EXEEXT_TRUE
627 LTLIBOBJS
628 LIBOBJS
629 appdefaultdir
630 APPDEFS_LIBS
631 APPDEFS_CFLAGS
632 NEED_UNSETENV_FALSE
633 NEED_UNSETENV_TRUE
634 NEED_STRCASECMP_FALSE
635 NEED_STRCASECMP_TRUE
636 NEED_REALPATH_FALSE
637 NEED_REALPATH_TRUE
638 LISPDIR
639 PKGDEPS_LIBS
640 PKGDEPS_CFLAGS
641 RANLIB
642 ac_ct_AR
643 AR
644 MAN_SUBSTS
645 XORG_MAN_PAGE
646 ADMIN_MAN_DIR
647 DRIVER_MAN_DIR
648 MISC_MAN_DIR
649 FILE_MAN_DIR
650 LIB_MAN_DIR
651 APP_MAN_DIR
652 ADMIN_MAN_SUFFIX
653 DRIVER_MAN_SUFFIX
654 MISC_MAN_SUFFIX
655 FILE_MAN_SUFFIX
656 LIB_MAN_SUFFIX
657 APP_MAN_SUFFIX
658 SED
659 host_os
660 host_vendor
661 host_cpu
662 host
663 build_os
664 build_vendor
665 build_cpu
666 build
667 INSTALL_CMD
668 PKG_CONFIG_LIBDIR
669 PKG_CONFIG_PATH
670 PKG_CONFIG
671 CHANGELOG_CMD
672 STRICT_CFLAGS
673 CWARNFLAGS
674 BASE_CFLAGS
675 EGREP
676 GREP
677 CPP
678 am__fastdepCC_FALSE
679 am__fastdepCC_TRUE
680 CCDEPMODE
681 am__nodep
682 AMDEPBACKSLASH
683 AMDEP_FALSE
684 AMDEP_TRUE
685 am__quote
686 am__include
687 DEPDIR
688 OBJEXT
689 EXEEXT
690 ac_ct_CC
691 CPPFLAGS
692 LDFLAGS
693 CFLAGS
694 CC
695 AM_BACKSLASH
696 AM_DEFAULT_VERBOSITY
697 AM_DEFAULT_V
698 AM_V
699 am__untar
700 am__tar
701 AMTAR
702 am__leading_dot
703 SET_MAKE
704 AWK
705 mkdir_p
706 MKDIR_P
707 INSTALL_STRIP_PROGRAM
708 STRIP
709 install_sh
710 MAKEINFO
711 AUTOHEADER
712 AUTOMAKE
713 AUTOCONF
714 ACLOCAL
715 VERSION
716 PACKAGE
717 CYGPATH_W
718 am__isrc
719 INSTALL_DATA
720 INSTALL_SCRIPT
721 INSTALL_PROGRAM
722 target_alias
723 host_alias
724 build_alias
725 LIBS
726 ECHO_T
727 ECHO_N
728 ECHO_C
729 DEFS
730 mandir
731 localedir
732 libdir
733 psdir
734 pdfdir
735 dvidir
736 htmldir
737 infodir
738 docdir
739 oldincludedir
740 includedir
741 localstatedir
742 sharedstatedir
743 sysconfdir
744 datadir
745 datarootdir
746 libexecdir
747 sbindir
748 bindir
749 program_transform_name
750 prefix
751 exec_prefix
752 PACKAGE_URL
753 PACKAGE_BUGREPORT
754 PACKAGE_STRING
755 PACKAGE_VERSION
756 PACKAGE_TARNAME
757 PACKAGE_NAME
758 PATH_SEPARATOR
759 SHELL'
760 ac_subst_files=''
761 ac_user_opts='
762 enable_option_checking
763 enable_silent_rules
764 enable_dependency_tracking
765 enable_selective_werror
766 enable_strict_compilation
767 with_lispdir
768 with_appdefaultdir
769 '
770 ac_precious_vars='build_alias
771 host_alias
772 target_alias
773 CC
774 CFLAGS
775 LDFLAGS
776 LIBS
777 CPPFLAGS
778 CPP
779 PKG_CONFIG
780 PKG_CONFIG_PATH
781 PKG_CONFIG_LIBDIR
782 PKGDEPS_CFLAGS
783 PKGDEPS_LIBS
784 APPDEFS_CFLAGS
785 APPDEFS_LIBS'
786
787
788 # Initialize some variables set by options.
789 ac_init_help=
790 ac_init_version=false
791 ac_unrecognized_opts=
792 ac_unrecognized_sep=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
809
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
835
836 ac_prev=
837 ac_dashdash=
838 for ac_option
839 do
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
843 ac_prev=
844 continue
845 fi
846
847 case $ac_option in
848 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *=) ac_optarg= ;;
850 *) ac_optarg=yes ;;
851 esac
852
853 # Accept the important Cygnus configure options, so we can diagnose typos.
854
855 case $ac_dashdash$ac_option in
856 --)
857 ac_dashdash=yes ;;
858
859 -bindir | --bindir | --bindi | --bind | --bin | --bi)
860 ac_prev=bindir ;;
861 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
862 bindir=$ac_optarg ;;
863
864 -build | --build | --buil | --bui | --bu)
865 ac_prev=build_alias ;;
866 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
867 build_alias=$ac_optarg ;;
868
869 -cache-file | --cache-file | --cache-fil | --cache-fi \
870 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
871 ac_prev=cache_file ;;
872 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
873 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
874 cache_file=$ac_optarg ;;
875
876 --config-cache | -C)
877 cache_file=config.cache ;;
878
879 -datadir | --datadir | --datadi | --datad)
880 ac_prev=datadir ;;
881 -datadir=* | --datadir=* | --datadi=* | --datad=*)
882 datadir=$ac_optarg ;;
883
884 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
885 | --dataroo | --dataro | --datar)
886 ac_prev=datarootdir ;;
887 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
888 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
889 datarootdir=$ac_optarg ;;
890
891 -disable-* | --disable-*)
892 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
893 # Reject names that are not valid shell variable names.
894 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
895 as_fn_error $? "invalid feature name: $ac_useropt"
896 ac_useropt_orig=$ac_useropt
897 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
898 case $ac_user_opts in
899 *"
900 "enable_$ac_useropt"
901 "*) ;;
902 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
903 ac_unrecognized_sep=', ';;
904 esac
905 eval enable_$ac_useropt=no ;;
906
907 -docdir | --docdir | --docdi | --doc | --do)
908 ac_prev=docdir ;;
909 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
910 docdir=$ac_optarg ;;
911
912 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
913 ac_prev=dvidir ;;
914 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
915 dvidir=$ac_optarg ;;
916
917 -enable-* | --enable-*)
918 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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=`$as_echo "$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--enable-$ac_useropt_orig"
929 ac_unrecognized_sep=', ';;
930 esac
931 eval enable_$ac_useropt=\$ac_optarg ;;
932
933 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
934 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
935 | --exec | --exe | --ex)
936 ac_prev=exec_prefix ;;
937 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
938 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
939 | --exec=* | --exe=* | --ex=*)
940 exec_prefix=$ac_optarg ;;
941
942 -gas | --gas | --ga | --g)
943 # Obsolete; use --with-gas.
944 with_gas=yes ;;
945
946 -help | --help | --hel | --he | -h)
947 ac_init_help=long ;;
948 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
949 ac_init_help=recursive ;;
950 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
951 ac_init_help=short ;;
952
953 -host | --host | --hos | --ho)
954 ac_prev=host_alias ;;
955 -host=* | --host=* | --hos=* | --ho=*)
956 host_alias=$ac_optarg ;;
957
958 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
959 ac_prev=htmldir ;;
960 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
961 | --ht=*)
962 htmldir=$ac_optarg ;;
963
964 -includedir | --includedir | --includedi | --included | --include \
965 | --includ | --inclu | --incl | --inc)
966 ac_prev=includedir ;;
967 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
968 | --includ=* | --inclu=* | --incl=* | --inc=*)
969 includedir=$ac_optarg ;;
970
971 -infodir | --infodir | --infodi | --infod | --info | --inf)
972 ac_prev=infodir ;;
973 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
974 infodir=$ac_optarg ;;
975
976 -libdir | --libdir | --libdi | --libd)
977 ac_prev=libdir ;;
978 -libdir=* | --libdir=* | --libdi=* | --libd=*)
979 libdir=$ac_optarg ;;
980
981 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
982 | --libexe | --libex | --libe)
983 ac_prev=libexecdir ;;
984 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
985 | --libexe=* | --libex=* | --libe=*)
986 libexecdir=$ac_optarg ;;
987
988 -localedir | --localedir | --localedi | --localed | --locale)
989 ac_prev=localedir ;;
990 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
991 localedir=$ac_optarg ;;
992
993 -localstatedir | --localstatedir | --localstatedi | --localstated \
994 | --localstate | --localstat | --localsta | --localst | --locals)
995 ac_prev=localstatedir ;;
996 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
997 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
998 localstatedir=$ac_optarg ;;
999
1000 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1001 ac_prev=mandir ;;
1002 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1003 mandir=$ac_optarg ;;
1004
1005 -nfp | --nfp | --nf)
1006 # Obsolete; use --without-fp.
1007 with_fp=no ;;
1008
1009 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1010 | --no-cr | --no-c | -n)
1011 no_create=yes ;;
1012
1013 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1014 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1015 no_recursion=yes ;;
1016
1017 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1018 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1019 | --oldin | --oldi | --old | --ol | --o)
1020 ac_prev=oldincludedir ;;
1021 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1022 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1023 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1024 oldincludedir=$ac_optarg ;;
1025
1026 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1027 ac_prev=prefix ;;
1028 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1029 prefix=$ac_optarg ;;
1030
1031 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1032 | --program-pre | --program-pr | --program-p)
1033 ac_prev=program_prefix ;;
1034 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1035 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1036 program_prefix=$ac_optarg ;;
1037
1038 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1039 | --program-suf | --program-su | --program-s)
1040 ac_prev=program_suffix ;;
1041 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1042 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1043 program_suffix=$ac_optarg ;;
1044
1045 -program-transform-name | --program-transform-name \
1046 | --program-transform-nam | --program-transform-na \
1047 | --program-transform-n | --program-transform- \
1048 | --program-transform | --program-transfor \
1049 | --program-transfo | --program-transf \
1050 | --program-trans | --program-tran \
1051 | --progr-tra | --program-tr | --program-t)
1052 ac_prev=program_transform_name ;;
1053 -program-transform-name=* | --program-transform-name=* \
1054 | --program-transform-nam=* | --program-transform-na=* \
1055 | --program-transform-n=* | --program-transform-=* \
1056 | --program-transform=* | --program-transfor=* \
1057 | --program-transfo=* | --program-transf=* \
1058 | --program-trans=* | --program-tran=* \
1059 | --progr-tra=* | --program-tr=* | --program-t=*)
1060 program_transform_name=$ac_optarg ;;
1061
1062 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1063 ac_prev=pdfdir ;;
1064 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1065 pdfdir=$ac_optarg ;;
1066
1067 -psdir | --psdir | --psdi | --psd | --ps)
1068 ac_prev=psdir ;;
1069 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1070 psdir=$ac_optarg ;;
1071
1072 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073 | -silent | --silent | --silen | --sile | --sil)
1074 silent=yes ;;
1075
1076 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1077 ac_prev=sbindir ;;
1078 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1079 | --sbi=* | --sb=*)
1080 sbindir=$ac_optarg ;;
1081
1082 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1083 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1084 | --sharedst | --shareds | --shared | --share | --shar \
1085 | --sha | --sh)
1086 ac_prev=sharedstatedir ;;
1087 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1088 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1089 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1090 | --sha=* | --sh=*)
1091 sharedstatedir=$ac_optarg ;;
1092
1093 -site | --site | --sit)
1094 ac_prev=site ;;
1095 -site=* | --site=* | --sit=*)
1096 site=$ac_optarg ;;
1097
1098 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1099 ac_prev=srcdir ;;
1100 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1101 srcdir=$ac_optarg ;;
1102
1103 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1104 | --syscon | --sysco | --sysc | --sys | --sy)
1105 ac_prev=sysconfdir ;;
1106 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1107 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1108 sysconfdir=$ac_optarg ;;
1109
1110 -target | --target | --targe | --targ | --tar | --ta | --t)
1111 ac_prev=target_alias ;;
1112 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1113 target_alias=$ac_optarg ;;
1114
1115 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1116 verbose=yes ;;
1117
1118 -version | --version | --versio | --versi | --vers | -V)
1119 ac_init_version=: ;;
1120
1121 -with-* | --with-*)
1122 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125 as_fn_error $? "invalid package name: $ac_useropt"
1126 ac_useropt_orig=$ac_useropt
1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1129 *"
1130 "with_$ac_useropt"
1131 "*) ;;
1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1133 ac_unrecognized_sep=', ';;
1134 esac
1135 eval with_$ac_useropt=\$ac_optarg ;;
1136
1137 -without-* | --without-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid package name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1145 *"
1146 "with_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval with_$ac_useropt=no ;;
1152
1153 --x)
1154 # Obsolete; use --with-x.
1155 with_x=yes ;;
1156
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1163
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1170
1171 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1172 Try \`$0 --help' for more information"
1173 ;;
1174
1175 *=*)
1176 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1177 # Reject names that are not valid shell variable names.
1178 case $ac_envvar in #(
1179 '' | [0-9]* | *[!_$as_cr_alnum]* )
1180 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1181 esac
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1184
1185 *)
1186 # FIXME: should be removed in autoconf 3.0.
1187 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1191 ;;
1192
1193 esac
1194 done
1195
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 as_fn_error $? "missing argument to $ac_option"
1199 fi
1200
1201 if test -n "$ac_unrecognized_opts"; then
1202 case $enable_option_checking in
1203 no) ;;
1204 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1205 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 esac
1207 fi
1208
1209 # Check all directory arguments for consistency.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1214 do
1215 eval ac_val=\$$ac_var
1216 # Remove trailing slashes.
1217 case $ac_val in
1218 */ )
1219 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1220 eval $ac_var=\$ac_val;;
1221 esac
1222 # Be sure to have absolute directory names.
1223 case $ac_val in
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 esac
1227 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1228 done
1229
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1236
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 elif test "x$build_alias" != "x$host_alias"; then
1242 cross_compiling=yes
1243 fi
1244 fi
1245
1246 ac_tool_prefix=
1247 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1248
1249 test "$silent" = yes && exec 6>/dev/null
1250
1251
1252 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1253 ac_ls_di=`ls -di .` &&
1254 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1255 as_fn_error $? "working directory cannot be determined"
1256 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1257 as_fn_error $? "pwd does not report name of working directory"
1258
1259
1260 # Find the source files, if location was not specified.
1261 if test -z "$srcdir"; then
1262 ac_srcdir_defaulted=yes
1263 # Try the directory containing this script, then the parent directory.
1264 ac_confdir=`$as_dirname -- "$as_myself" ||
1265 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1266 X"$as_myself" : 'X\(//\)[^/]' \| \
1267 X"$as_myself" : 'X\(//\)$' \| \
1268 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1269 $as_echo X"$as_myself" |
1270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\/\)[^/].*/{
1275 s//\1/
1276 q
1277 }
1278 /^X\(\/\/\)$/{
1279 s//\1/
1280 q
1281 }
1282 /^X\(\/\).*/{
1283 s//\1/
1284 q
1285 }
1286 s/.*/./; q'`
1287 srcdir=$ac_confdir
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 srcdir=..
1290 fi
1291 else
1292 ac_srcdir_defaulted=no
1293 fi
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1296 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1297 fi
1298 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 ac_abs_confdir=`(
1300 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301 pwd)`
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1304 srcdir=.
1305 fi
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1309 case $srcdir in
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 esac
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 done
1318
1319 #
1320 # Report the --help message.
1321 #
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1325 cat <<_ACEOF
1326 \`configure' configures xedit 1.2.2 to adapt to many kinds of systems.
1327
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1329
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1332
1333 Defaults for the options are specified in brackets.
1334
1335 Configuration:
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking ...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1350 [PREFIX]
1351
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1356
1357 For better control, use the options below.
1358
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/xedit]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1379 _ACEOF
1380
1381 cat <<\_ACEOF
1382
1383 Program names:
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1387
1388 System types:
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 _ACEOF
1392 fi
1393
1394 if test -n "$ac_init_help"; then
1395 case $ac_init_help in
1396 short | recursive ) echo "Configuration of xedit 1.2.2:";;
1397 esac
1398 cat <<\_ACEOF
1399
1400 Optional Features:
1401 --disable-option-checking ignore unrecognized --enable/--with options
1402 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1403 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1404 --enable-silent-rules less verbose build output (undo: "make V=1")
1405 --disable-silent-rules verbose build output (undo: "make V=0")
1406 --enable-dependency-tracking
1407 do not reject slow dependency extractors
1408 --disable-dependency-tracking
1409 speeds up one-time build
1410 --disable-selective-werror
1411 Turn off selective compiler errors. (default:
1412 enabled)
1413 --enable-strict-compilation
1414 Enable all warnings from compiler and make them
1415 errors (default: disabled)
1416
1417 Optional Packages:
1418 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1419 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1420 --with-lispdir=PATH Directory to install lisp files (default:
1421 $libdir/X11/xedit/lisp)
1422 --with-appdefaultdir=<pathname>
1423 specify directory for app-defaults files (default is
1424 autodetected)
1425
1426 Some influential environment variables:
1427 CC C compiler command
1428 CFLAGS C compiler flags
1429 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1430 nonstandard directory <lib dir>
1431 LIBS libraries to pass to the linker, e.g. -l<library>
1432 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1433 you have headers in a nonstandard directory <include dir>
1434 CPP C preprocessor
1435 PKG_CONFIG path to pkg-config utility
1436 PKG_CONFIG_PATH
1437 directories to add to pkg-config's search path
1438 PKG_CONFIG_LIBDIR
1439 path overriding pkg-config's built-in search path
1440 PKGDEPS_CFLAGS
1441 C compiler flags for PKGDEPS, overriding pkg-config
1442 PKGDEPS_LIBS
1443 linker flags for PKGDEPS, overriding pkg-config
1444 APPDEFS_CFLAGS
1445 C compiler flags for APPDEFS, overriding pkg-config
1446 APPDEFS_LIBS
1447 linker flags for APPDEFS, overriding pkg-config
1448
1449 Use these variables to override the choices made by `configure' or to help
1450 it to find libraries and programs with nonstandard names/locations.
1451
1452 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1453 _ACEOF
1454 ac_status=$?
1455 fi
1456
1457 if test "$ac_init_help" = "recursive"; then
1458 # If there are subdirs, report their specific --help.
1459 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1460 test -d "$ac_dir" ||
1461 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1462 continue
1463 ac_builddir=.
1464
1465 case "$ac_dir" in
1466 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 *)
1468 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1469 # A ".." for each directory in $ac_dir_suffix.
1470 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1471 case $ac_top_builddir_sub in
1472 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1473 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474 esac ;;
1475 esac
1476 ac_abs_top_builddir=$ac_pwd
1477 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1478 # for backward compatibility:
1479 ac_top_builddir=$ac_top_build_prefix
1480
1481 case $srcdir in
1482 .) # We are building in place.
1483 ac_srcdir=.
1484 ac_top_srcdir=$ac_top_builddir_sub
1485 ac_abs_top_srcdir=$ac_pwd ;;
1486 [\\/]* | ?:[\\/]* ) # Absolute name.
1487 ac_srcdir=$srcdir$ac_dir_suffix;
1488 ac_top_srcdir=$srcdir
1489 ac_abs_top_srcdir=$srcdir ;;
1490 *) # Relative name.
1491 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1492 ac_top_srcdir=$ac_top_build_prefix$srcdir
1493 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1494 esac
1495 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496
1497 cd "$ac_dir" || { ac_status=$?; continue; }
1498 # Check for guested configure.
1499 if test -f "$ac_srcdir/configure.gnu"; then
1500 echo &&
1501 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1502 elif test -f "$ac_srcdir/configure"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure" --help=recursive
1505 else
1506 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1507 fi || ac_status=$?
1508 cd "$ac_pwd" || { ac_status=$?; break; }
1509 done
1510 fi
1511
1512 test -n "$ac_init_help" && exit $ac_status
1513 if $ac_init_version; then
1514 cat <<\_ACEOF
1515 xedit configure 1.2.2
1516 generated by GNU Autoconf 2.69
1517
1518 Copyright (C) 2012 Free Software Foundation, Inc.
1519 This configure script is free software; the Free Software Foundation
1520 gives unlimited permission to copy, distribute and modify it.
1521 _ACEOF
1522 exit
1523 fi
1524
1525 ## ------------------------ ##
1526 ## Autoconf initialization. ##
1527 ## ------------------------ ##
1528
1529 # ac_fn_c_try_compile LINENO
1530 # --------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_c_try_compile ()
1533 {
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1549 fi
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_c_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556 else
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1559
1560 ac_retval=1
1561 fi
1562 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1563 as_fn_set_status $ac_retval
1564
1565 } # ac_fn_c_try_compile
1566
1567 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1568 # ---------------------------------------------
1569 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1570 # accordingly.
1571 ac_fn_c_check_decl ()
1572 {
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 as_decl_name=`echo $2|sed 's/ *(.*//'`
1575 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1577 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1578 if eval \${$3+:} false; then :
1579 $as_echo_n "(cached) " >&6
1580 else
1581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1582 /* end confdefs.h. */
1583 $4
1584 int
1585 main ()
1586 {
1587 #ifndef $as_decl_name
1588 #ifdef __cplusplus
1589 (void) $as_decl_use;
1590 #else
1591 (void) $as_decl_name;
1592 #endif
1593 #endif
1594
1595 ;
1596 return 0;
1597 }
1598 _ACEOF
1599 if ac_fn_c_try_compile "$LINENO"; then :
1600 eval "$3=yes"
1601 else
1602 eval "$3=no"
1603 fi
1604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1605 fi
1606 eval ac_res=\$$3
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1608 $as_echo "$ac_res" >&6; }
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610
1611 } # ac_fn_c_check_decl
1612
1613 # ac_fn_c_try_cpp LINENO
1614 # ----------------------
1615 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_cpp ()
1617 {
1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619 if { { ac_try="$ac_cpp conftest.$ac_ext"
1620 case "(($ac_try" in
1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1622 *) ac_try_echo=$ac_try;;
1623 esac
1624 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1625 $as_echo "$ac_try_echo"; } >&5
1626 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1627 ac_status=$?
1628 if test -s conftest.err; then
1629 grep -v '^ *+' conftest.err >conftest.er1
1630 cat conftest.er1 >&5
1631 mv -f conftest.er1 conftest.err
1632 fi
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; } > conftest.i && {
1635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1636 test ! -s conftest.err
1637 }; then :
1638 ac_retval=0
1639 else
1640 $as_echo "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1
1644 fi
1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1646 as_fn_set_status $ac_retval
1647
1648 } # ac_fn_c_try_cpp
1649
1650 # ac_fn_c_try_run LINENO
1651 # ----------------------
1652 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1653 # that executables *can* be run.
1654 ac_fn_c_try_run ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_link"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_link") 2>&5
1665 ac_status=$?
1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1667 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1668 { { case "(($ac_try" in
1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1670 *) ac_try_echo=$ac_try;;
1671 esac
1672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1673 $as_echo "$ac_try_echo"; } >&5
1674 (eval "$ac_try") 2>&5
1675 ac_status=$?
1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677 test $ac_status = 0; }; }; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: program exited with status $ac_status" >&5
1681 $as_echo "$as_me: failed program was:" >&5
1682 sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=$ac_status
1685 fi
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1689
1690 } # ac_fn_c_try_run
1691
1692 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1693 # -------------------------------------------------------
1694 # Tests whether HEADER exists and can be compiled using the include files in
1695 # INCLUDES, setting the cache variable VAR accordingly.
1696 ac_fn_c_check_header_compile ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1700 $as_echo_n "checking for $2... " >&6; }
1701 if eval \${$3+:} false; then :
1702 $as_echo_n "(cached) " >&6
1703 else
1704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1705 /* end confdefs.h. */
1706 $4
1707 #include <$2>
1708 _ACEOF
1709 if ac_fn_c_try_compile "$LINENO"; then :
1710 eval "$3=yes"
1711 else
1712 eval "$3=no"
1713 fi
1714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1715 fi
1716 eval ac_res=\$$3
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 $as_echo "$ac_res" >&6; }
1719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720
1721 } # ac_fn_c_check_header_compile
1722
1723 # ac_fn_c_try_link LINENO
1724 # -----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded.
1726 ac_fn_c_try_link ()
1727 {
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext conftest$ac_exeext
1730 if { { ac_try="$ac_link"
1731 case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>conftest.err
1738 ac_status=$?
1739 if test -s conftest.err; then
1740 grep -v '^ *+' conftest.err >conftest.er1
1741 cat conftest.er1 >&5
1742 mv -f conftest.er1 conftest.err
1743 fi
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest$ac_exeext && {
1749 test "$cross_compiling" = yes ||
1750 test -x conftest$ac_exeext
1751 }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=1
1758 fi
1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761 # interfere with the next link command; also delete a directory that is
1762 # left behind by Apple's compiler. We do this before executing the actions.
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status $ac_retval
1766
1767 } # ac_fn_c_try_link
1768
1769 # ac_fn_c_check_func LINENO FUNC VAR
1770 # ----------------------------------
1771 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1772 ac_fn_c_check_func ()
1773 {
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778 $as_echo_n "(cached) " >&6
1779 else
1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h. */
1782 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1784 #define $2 innocuous_$2
1785
1786 /* System header to define __stub macros and hopefully few prototypes,
1787 which can conflict with char $2 (); below.
1788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1789 <limits.h> exists even on freestanding compilers. */
1790
1791 #ifdef __STDC__
1792 # include <limits.h>
1793 #else
1794 # include <assert.h>
1795 #endif
1796
1797 #undef $2
1798
1799 /* Override any GCC internal prototype to avoid an error.
1800 Use char because int might match the return type of a GCC
1801 builtin and then its argument prototype would still apply. */
1802 #ifdef __cplusplus
1803 extern "C"
1804 #endif
1805 char $2 ();
1806 /* The GNU C library defines this for functions which it implements
1807 to always fail with ENOSYS. Some functions are actually named
1808 something starting with __ and the normal name is an alias. */
1809 #if defined __stub_$2 || defined __stub___$2
1810 choke me
1811 #endif
1812
1813 int
1814 main ()
1815 {
1816 return $2 ();
1817 ;
1818 return 0;
1819 }
1820 _ACEOF
1821 if ac_fn_c_try_link "$LINENO"; then :
1822 eval "$3=yes"
1823 else
1824 eval "$3=no"
1825 fi
1826 rm -f core conftest.err conftest.$ac_objext \
1827 conftest$ac_exeext conftest.$ac_ext
1828 fi
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833
1834 } # ac_fn_c_check_func
1835 cat >config.log <<_ACEOF
1836 This file contains any messages produced by compilers while
1837 running configure, to aid debugging if configure makes a mistake.
1838
1839 It was created by xedit $as_me 1.2.2, which was
1840 generated by GNU Autoconf 2.69. Invocation command line was
1841
1842 $ $0 $@
1843
1844 _ACEOF
1845 exec 5>>config.log
1846 {
1847 cat <<_ASUNAME
1848 ## --------- ##
1849 ## Platform. ##
1850 ## --------- ##
1851
1852 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1853 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1854 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1855 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1856 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1857
1858 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1859 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1860
1861 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1862 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1863 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1864 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1865 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1866 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1867 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1868
1869 _ASUNAME
1870
1871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1872 for as_dir in $PATH
1873 do
1874 IFS=$as_save_IFS
1875 test -z "$as_dir" && as_dir=.
1876 $as_echo "PATH: $as_dir"
1877 done
1878 IFS=$as_save_IFS
1879
1880 } >&5
1881
1882 cat >&5 <<_ACEOF
1883
1884
1885 ## ----------- ##
1886 ## Core tests. ##
1887 ## ----------- ##
1888
1889 _ACEOF
1890
1891
1892 # Keep a trace of the command line.
1893 # Strip out --no-create and --no-recursion so they do not pile up.
1894 # Strip out --silent because we don't want to record it for future runs.
1895 # Also quote any args containing shell meta-characters.
1896 # Make two passes to allow for proper duplicate-argument suppression.
1897 ac_configure_args=
1898 ac_configure_args0=
1899 ac_configure_args1=
1900 ac_must_keep_next=false
1901 for ac_pass in 1 2
1902 do
1903 for ac_arg
1904 do
1905 case $ac_arg in
1906 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1907 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1908 | -silent | --silent | --silen | --sile | --sil)
1909 continue ;;
1910 *\'*)
1911 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1912 esac
1913 case $ac_pass in
1914 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1915 2)
1916 as_fn_append ac_configure_args1 " '$ac_arg'"
1917 if test $ac_must_keep_next = true; then
1918 ac_must_keep_next=false # Got value, back to normal.
1919 else
1920 case $ac_arg in
1921 *=* | --config-cache | -C | -disable-* | --disable-* \
1922 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1923 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1924 | -with-* | --with-* | -without-* | --without-* | --x)
1925 case "$ac_configure_args0 " in
1926 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1927 esac
1928 ;;
1929 -* ) ac_must_keep_next=true ;;
1930 esac
1931 fi
1932 as_fn_append ac_configure_args " '$ac_arg'"
1933 ;;
1934 esac
1935 done
1936 done
1937 { ac_configure_args0=; unset ac_configure_args0;}
1938 { ac_configure_args1=; unset ac_configure_args1;}
1939
1940 # When interrupted or exit'd, cleanup temporary files, and complete
1941 # config.log. We remove comments because anyway the quotes in there
1942 # would cause problems or look ugly.
1943 # WARNING: Use '\'' to represent an apostrophe within the trap.
1944 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1945 trap 'exit_status=$?
1946 # Save into config.log some information that might help in debugging.
1947 {
1948 echo
1949
1950 $as_echo "## ---------------- ##
1951 ## Cache variables. ##
1952 ## ---------------- ##"
1953 echo
1954 # The following way of writing the cache mishandles newlines in values,
1955 (
1956 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1957 eval ac_val=\$$ac_var
1958 case $ac_val in #(
1959 *${as_nl}*)
1960 case $ac_var in #(
1961 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1962 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1963 esac
1964 case $ac_var in #(
1965 _ | IFS | as_nl) ;; #(
1966 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1967 *) { eval $ac_var=; unset $ac_var;} ;;
1968 esac ;;
1969 esac
1970 done
1971 (set) 2>&1 |
1972 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1973 *${as_nl}ac_space=\ *)
1974 sed -n \
1975 "s/'\''/'\''\\\\'\'''\''/g;
1976 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1977 ;; #(
1978 *)
1979 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1980 ;;
1981 esac |
1982 sort
1983 )
1984 echo
1985
1986 $as_echo "## ----------------- ##
1987 ## Output variables. ##
1988 ## ----------------- ##"
1989 echo
1990 for ac_var in $ac_subst_vars
1991 do
1992 eval ac_val=\$$ac_var
1993 case $ac_val in
1994 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1995 esac
1996 $as_echo "$ac_var='\''$ac_val'\''"
1997 done | sort
1998 echo
1999
2000 if test -n "$ac_subst_files"; then
2001 $as_echo "## ------------------- ##
2002 ## File substitutions. ##
2003 ## ------------------- ##"
2004 echo
2005 for ac_var in $ac_subst_files
2006 do
2007 eval ac_val=\$$ac_var
2008 case $ac_val in
2009 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010 esac
2011 $as_echo "$ac_var='\''$ac_val'\''"
2012 done | sort
2013 echo
2014 fi
2015
2016 if test -s confdefs.h; then
2017 $as_echo "## ----------- ##
2018 ## confdefs.h. ##
2019 ## ----------- ##"
2020 echo
2021 cat confdefs.h
2022 echo
2023 fi
2024 test "$ac_signal" != 0 &&
2025 $as_echo "$as_me: caught signal $ac_signal"
2026 $as_echo "$as_me: exit $exit_status"
2027 } >&5
2028 rm -f core *.core core.conftest.* &&
2029 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2030 exit $exit_status
2031 ' 0
2032 for ac_signal in 1 2 13 15; do
2033 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2034 done
2035 ac_signal=0
2036
2037 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2038 rm -f -r conftest* confdefs.h
2039
2040 $as_echo "/* confdefs.h */" > confdefs.h
2041
2042 # Predefined preprocessor variables.
2043
2044 cat >>confdefs.h <<_ACEOF
2045 #define PACKAGE_NAME "$PACKAGE_NAME"
2046 _ACEOF
2047
2048 cat >>confdefs.h <<_ACEOF
2049 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2050 _ACEOF
2051
2052 cat >>confdefs.h <<_ACEOF
2053 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2054 _ACEOF
2055
2056 cat >>confdefs.h <<_ACEOF
2057 #define PACKAGE_STRING "$PACKAGE_STRING"
2058 _ACEOF
2059
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2062 _ACEOF
2063
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_URL "$PACKAGE_URL"
2066 _ACEOF
2067
2068
2069 # Let the site file select an alternate cache file if it wants to.
2070 # Prefer an explicitly selected file to automatically selected ones.
2071 ac_site_file1=NONE
2072 ac_site_file2=NONE
2073 if test -n "$CONFIG_SITE"; then
2074 # We do not want a PATH search for config.site.
2075 case $CONFIG_SITE in #((
2076 -*) ac_site_file1=./$CONFIG_SITE;;
2077 */*) ac_site_file1=$CONFIG_SITE;;
2078 *) ac_site_file1=./$CONFIG_SITE;;
2079 esac
2080 elif test "x$prefix" != xNONE; then
2081 ac_site_file1=$prefix/share/config.site
2082 ac_site_file2=$prefix/etc/config.site
2083 else
2084 ac_site_file1=$ac_default_prefix/share/config.site
2085 ac_site_file2=$ac_default_prefix/etc/config.site
2086 fi
2087 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2088 do
2089 test "x$ac_site_file" = xNONE && continue
2090 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2092 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2093 sed 's/^/| /' "$ac_site_file" >&5
2094 . "$ac_site_file" \
2095 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2097 as_fn_error $? "failed to load site script $ac_site_file
2098 See \`config.log' for more details" "$LINENO" 5; }
2099 fi
2100 done
2101
2102 if test -r "$cache_file"; then
2103 # Some versions of bash will fail to source /dev/null (special files
2104 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2105 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2107 $as_echo "$as_me: loading cache $cache_file" >&6;}
2108 case $cache_file in
2109 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2110 *) . "./$cache_file";;
2111 esac
2112 fi
2113 else
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2115 $as_echo "$as_me: creating cache $cache_file" >&6;}
2116 >$cache_file
2117 fi
2118
2119 # Check that the precious variables saved in the cache have kept the same
2120 # value.
2121 ac_cache_corrupted=false
2122 for ac_var in $ac_precious_vars; do
2123 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2124 eval ac_new_set=\$ac_env_${ac_var}_set
2125 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2126 eval ac_new_val=\$ac_env_${ac_var}_value
2127 case $ac_old_set,$ac_new_set in
2128 set,)
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2130 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2131 ac_cache_corrupted=: ;;
2132 ,set)
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2134 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2135 ac_cache_corrupted=: ;;
2136 ,);;
2137 *)
2138 if test "x$ac_old_val" != "x$ac_new_val"; then
2139 # differences in whitespace do not lead to failure.
2140 ac_old_val_w=`echo x $ac_old_val`
2141 ac_new_val_w=`echo x $ac_new_val`
2142 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2144 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145 ac_cache_corrupted=:
2146 else
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2148 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2149 eval $ac_var=\$ac_old_val
2150 fi
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2152 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2154 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2155 fi;;
2156 esac
2157 # Pass precious variables to config.status.
2158 if test "$ac_new_set" = set; then
2159 case $ac_new_val in
2160 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2161 *) ac_arg=$ac_var=$ac_new_val ;;
2162 esac
2163 case " $ac_configure_args " in
2164 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2165 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2166 esac
2167 fi
2168 done
2169 if $ac_cache_corrupted; then
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2173 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2174 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2175 fi
2176 ## -------------------- ##
2177 ## Main body of script. ##
2178 ## -------------------- ##
2179
2180 ac_ext=c
2181 ac_cpp='$CPP $CPPFLAGS'
2182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185
2186
2187 am__api_version='1.13'
2188
2189 ac_aux_dir=
2190 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2191 if test -f "$ac_dir/install-sh"; then
2192 ac_aux_dir=$ac_dir
2193 ac_install_sh="$ac_aux_dir/install-sh -c"
2194 break
2195 elif test -f "$ac_dir/install.sh"; then
2196 ac_aux_dir=$ac_dir
2197 ac_install_sh="$ac_aux_dir/install.sh -c"
2198 break
2199 elif test -f "$ac_dir/shtool"; then
2200 ac_aux_dir=$ac_dir
2201 ac_install_sh="$ac_aux_dir/shtool install -c"
2202 break
2203 fi
2204 done
2205 if test -z "$ac_aux_dir"; then
2206 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2207 fi
2208
2209 # These three variables are undocumented and unsupported,
2210 # and are intended to be withdrawn in a future Autoconf release.
2211 # They can cause serious problems if a builder's source tree is in a directory
2212 # whose full name contains unusual characters.
2213 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2214 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2215 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2216
2217
2218 # Find a good install program. We prefer a C program (faster),
2219 # so one script is as good as another. But avoid the broken or
2220 # incompatible versions:
2221 # SysV /etc/install, /usr/sbin/install
2222 # SunOS /usr/etc/install
2223 # IRIX /sbin/install
2224 # AIX /bin/install
2225 # AmigaOS /C/install, which installs bootblocks on floppy discs
2226 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2227 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2228 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2229 # OS/2's system install, which has a completely different semantic
2230 # ./install, which can be erroneously created by make from ./install.sh.
2231 # Reject install programs that cannot install multiple files.
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2233 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2234 if test -z "$INSTALL"; then
2235 if ${ac_cv_path_install+:} false; then :
2236 $as_echo_n "(cached) " >&6
2237 else
2238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2239 for as_dir in $PATH
2240 do
2241 IFS=$as_save_IFS
2242 test -z "$as_dir" && as_dir=.
2243 # Account for people who put trailing slashes in PATH elements.
2244 case $as_dir/ in #((
2245 ./ | .// | /[cC]/* | \
2246 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2247 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2248 /usr/ucb/* ) ;;
2249 *)
2250 # OSF1 and SCO ODT 3.0 have their own names for install.
2251 # Don't use installbsd from OSF since it installs stuff as root
2252 # by default.
2253 for ac_prog in ginstall scoinst install; do
2254 for ac_exec_ext in '' $ac_executable_extensions; do
2255 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2256 if test $ac_prog = install &&
2257 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2258 # AIX install. It has an incompatible calling convention.
2259 :
2260 elif test $ac_prog = install &&
2261 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2262 # program-specific install script used by HP pwplus--don't use.
2263 :
2264 else
2265 rm -rf conftest.one conftest.two conftest.dir
2266 echo one > conftest.one
2267 echo two > conftest.two
2268 mkdir conftest.dir
2269 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2270 test -s conftest.one && test -s conftest.two &&
2271 test -s conftest.dir/conftest.one &&
2272 test -s conftest.dir/conftest.two
2273 then
2274 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2275 break 3
2276 fi
2277 fi
2278 fi
2279 done
2280 done
2281 ;;
2282 esac
2283
2284 done
2285 IFS=$as_save_IFS
2286
2287 rm -rf conftest.one conftest.two conftest.dir
2288
2289 fi
2290 if test "${ac_cv_path_install+set}" = set; then
2291 INSTALL=$ac_cv_path_install
2292 else
2293 # As a last resort, use the slow shell script. Don't cache a
2294 # value for INSTALL within a source directory, because that will
2295 # break other packages using the cache if that directory is
2296 # removed, or if the value is a relative name.
2297 INSTALL=$ac_install_sh
2298 fi
2299 fi
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2301 $as_echo "$INSTALL" >&6; }
2302
2303 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2304 # It thinks the first close brace ends the variable substitution.
2305 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2306
2307 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2308
2309 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2310
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2312 $as_echo_n "checking whether build environment is sane... " >&6; }
2313 # Reject unsafe characters in $srcdir or the absolute working directory
2314 # name. Accept space and tab only in the latter.
2315 am_lf='
2316 '
2317 case `pwd` in
2318 *[\\\"\#\$\&\'\`$am_lf]*)
2319 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2320 esac
2321 case $srcdir in
2322 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2323 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2324 esac
2325
2326 # Do 'set' in a subshell so we don't clobber the current shell's
2327 # arguments. Must try -L first in case configure is actually a
2328 # symlink; some systems play weird games with the mod time of symlinks
2329 # (eg FreeBSD returns the mod time of the symlink's containing
2330 # directory).
2331 if (
2332 am_has_slept=no
2333 for am_try in 1 2; do
2334 echo "timestamp, slept: $am_has_slept" > conftest.file
2335 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2336 if test "$*" = "X"; then
2337 # -L didn't work.
2338 set X `ls -t "$srcdir/configure" conftest.file`
2339 fi
2340 if test "$*" != "X $srcdir/configure conftest.file" \
2341 && test "$*" != "X conftest.file $srcdir/configure"; then
2342
2343 # If neither matched, then we have a broken ls. This can happen
2344 # if, for instance, CONFIG_SHELL is bash and it inherits a
2345 # broken ls alias from the environment. This has actually
2346 # happened. Such a system could not be considered "sane".
2347 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2348 alias in your environment" "$LINENO" 5
2349 fi
2350 if test "$2" = conftest.file || test $am_try -eq 2; then
2351 break
2352 fi
2353 # Just in case.
2354 sleep 1
2355 am_has_slept=yes
2356 done
2357 test "$2" = conftest.file
2358 )
2359 then
2360 # Ok.
2361 :
2362 else
2363 as_fn_error $? "newly created file is older than distributed files!
2364 Check your system clock" "$LINENO" 5
2365 fi
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2367 $as_echo "yes" >&6; }
2368 # If we didn't sleep, we still need to ensure time stamps of config.status and
2369 # generated files are strictly newer.
2370 am_sleep_pid=
2371 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2372 ( sleep 1 ) &
2373 am_sleep_pid=$!
2374 fi
2375
2376 rm -f conftest.file
2377
2378 test "$program_prefix" != NONE &&
2379 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2380 # Use a double $ so make ignores it.
2381 test "$program_suffix" != NONE &&
2382 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2383 # Double any \ or $.
2384 # By default was `s,x,x', remove it if useless.
2385 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2386 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2387
2388 # expand $ac_aux_dir to an absolute path
2389 am_aux_dir=`cd $ac_aux_dir && pwd`
2390
2391 if test x"${MISSING+set}" != xset; then
2392 case $am_aux_dir in
2393 *\ * | *\ *)
2394 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2395 *)
2396 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2397 esac
2398 fi
2399 # Use eval to expand $SHELL
2400 if eval "$MISSING --is-lightweight"; then
2401 am_missing_run="$MISSING "
2402 else
2403 am_missing_run=
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2405 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2406 fi
2407
2408 if test x"${install_sh}" != xset; then
2409 case $am_aux_dir in
2410 *\ * | *\ *)
2411 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2412 *)
2413 install_sh="\${SHELL} $am_aux_dir/install-sh"
2414 esac
2415 fi
2416
2417 # Installed binaries are usually stripped using 'strip' when the user
2418 # run "make install-strip". However 'strip' might not be the right
2419 # tool to use in cross-compilation environments, therefore Automake
2420 # will honor the 'STRIP' environment variable to overrule this program.
2421 if test "$cross_compiling" != no; then
2422 if test -n "$ac_tool_prefix"; then
2423 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2424 set dummy ${ac_tool_prefix}strip; ac_word=$2
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2426 $as_echo_n "checking for $ac_word... " >&6; }
2427 if ${ac_cv_prog_STRIP+:} false; then :
2428 $as_echo_n "(cached) " >&6
2429 else
2430 if test -n "$STRIP"; then
2431 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2432 else
2433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 for as_dir in $PATH
2435 do
2436 IFS=$as_save_IFS
2437 test -z "$as_dir" && as_dir=.
2438 for ac_exec_ext in '' $ac_executable_extensions; do
2439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2440 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 break 2
2443 fi
2444 done
2445 done
2446 IFS=$as_save_IFS
2447
2448 fi
2449 fi
2450 STRIP=$ac_cv_prog_STRIP
2451 if test -n "$STRIP"; then
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2453 $as_echo "$STRIP" >&6; }
2454 else
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2456 $as_echo "no" >&6; }
2457 fi
2458
2459
2460 fi
2461 if test -z "$ac_cv_prog_STRIP"; then
2462 ac_ct_STRIP=$STRIP
2463 # Extract the first word of "strip", so it can be a program name with args.
2464 set dummy strip; ac_word=$2
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2466 $as_echo_n "checking for $ac_word... " >&6; }
2467 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2468 $as_echo_n "(cached) " >&6
2469 else
2470 if test -n "$ac_ct_STRIP"; then
2471 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2472 else
2473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 for as_dir in $PATH
2475 do
2476 IFS=$as_save_IFS
2477 test -z "$as_dir" && as_dir=.
2478 for ac_exec_ext in '' $ac_executable_extensions; do
2479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2480 ac_cv_prog_ac_ct_STRIP="strip"
2481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 break 2
2483 fi
2484 done
2485 done
2486 IFS=$as_save_IFS
2487
2488 fi
2489 fi
2490 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2491 if test -n "$ac_ct_STRIP"; then
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2493 $as_echo "$ac_ct_STRIP" >&6; }
2494 else
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2496 $as_echo "no" >&6; }
2497 fi
2498
2499 if test "x$ac_ct_STRIP" = x; then
2500 STRIP=":"
2501 else
2502 case $cross_compiling:$ac_tool_warned in
2503 yes:)
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2505 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2506 ac_tool_warned=yes ;;
2507 esac
2508 STRIP=$ac_ct_STRIP
2509 fi
2510 else
2511 STRIP="$ac_cv_prog_STRIP"
2512 fi
2513
2514 fi
2515 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2516
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2518 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2519 if test -z "$MKDIR_P"; then
2520 if ${ac_cv_path_mkdir+:} false; then :
2521 $as_echo_n "(cached) " >&6
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2525 do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_prog in mkdir gmkdir; do
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2531 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2532 'mkdir (GNU coreutils) '* | \
2533 'mkdir (coreutils) '* | \
2534 'mkdir (fileutils) '4.1*)
2535 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2536 break 3;;
2537 esac
2538 done
2539 done
2540 done
2541 IFS=$as_save_IFS
2542
2543 fi
2544
2545 test -d ./--version && rmdir ./--version
2546 if test "${ac_cv_path_mkdir+set}" = set; then
2547 MKDIR_P="$ac_cv_path_mkdir -p"
2548 else
2549 # As a last resort, use the slow shell script. Don't cache a
2550 # value for MKDIR_P within a source directory, because that will
2551 # break other packages using the cache if that directory is
2552 # removed, or if the value is a relative name.
2553 MKDIR_P="$ac_install_sh -d"
2554 fi
2555 fi
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2557 $as_echo "$MKDIR_P" >&6; }
2558
2559 for ac_prog in gawk mawk nawk awk
2560 do
2561 # Extract the first word of "$ac_prog", so it can be a program name with args.
2562 set dummy $ac_prog; ac_word=$2
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2564 $as_echo_n "checking for $ac_word... " >&6; }
2565 if ${ac_cv_prog_AWK+:} false; then :
2566 $as_echo_n "(cached) " >&6
2567 else
2568 if test -n "$AWK"; then
2569 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2570 else
2571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 for as_dir in $PATH
2573 do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
2576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2578 ac_cv_prog_AWK="$ac_prog"
2579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 break 2
2581 fi
2582 done
2583 done
2584 IFS=$as_save_IFS
2585
2586 fi
2587 fi
2588 AWK=$ac_cv_prog_AWK
2589 if test -n "$AWK"; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2591 $as_echo "$AWK" >&6; }
2592 else
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2594 $as_echo "no" >&6; }
2595 fi
2596
2597
2598 test -n "$AWK" && break
2599 done
2600
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2602 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2603 set x ${MAKE-make}
2604 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2605 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2606 $as_echo_n "(cached) " >&6
2607 else
2608 cat >conftest.make <<\_ACEOF
2609 SHELL = /bin/sh
2610 all:
2611 @echo '@@@%%%=$(MAKE)=@@@%%%'
2612 _ACEOF
2613 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2614 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2615 *@@@%%%=?*=@@@%%%*)
2616 eval ac_cv_prog_make_${ac_make}_set=yes;;
2617 *)
2618 eval ac_cv_prog_make_${ac_make}_set=no;;
2619 esac
2620 rm -f conftest.make
2621 fi
2622 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2624 $as_echo "yes" >&6; }
2625 SET_MAKE=
2626 else
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2628 $as_echo "no" >&6; }
2629 SET_MAKE="MAKE=${MAKE-make}"
2630 fi
2631
2632 rm -rf .tst 2>/dev/null
2633 mkdir .tst 2>/dev/null
2634 if test -d .tst; then
2635 am__leading_dot=.
2636 else
2637 am__leading_dot=_
2638 fi
2639 rmdir .tst 2>/dev/null
2640
2641 # Check whether --enable-silent-rules was given.
2642 if test "${enable_silent_rules+set}" = set; then :
2643 enableval=$enable_silent_rules;
2644 fi
2645
2646 case $enable_silent_rules in # (((
2647 yes) AM_DEFAULT_VERBOSITY=0;;
2648 no) AM_DEFAULT_VERBOSITY=1;;
2649 *) AM_DEFAULT_VERBOSITY=1;;
2650 esac
2651 am_make=${MAKE-make}
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2653 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2654 if ${am_cv_make_support_nested_variables+:} false; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 if $as_echo 'TRUE=$(BAR$(V))
2658 BAR0=false
2659 BAR1=true
2660 V=1
2661 am__doit:
2662 @$(TRUE)
2663 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2664 am_cv_make_support_nested_variables=yes
2665 else
2666 am_cv_make_support_nested_variables=no
2667 fi
2668 fi
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2670 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2671 if test $am_cv_make_support_nested_variables = yes; then
2672 AM_V='$(V)'
2673 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2674 else
2675 AM_V=$AM_DEFAULT_VERBOSITY
2676 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2677 fi
2678 AM_BACKSLASH='\'
2679
2680 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2681 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2682 # is not polluted with repeated "-I."
2683 am__isrc=' -I$(srcdir)'
2684 # test to see if srcdir already configured
2685 if test -f $srcdir/config.status; then
2686 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2687 fi
2688 fi
2689
2690 # test whether we have cygpath
2691 if test -z "$CYGPATH_W"; then
2692 if (cygpath --version) >/dev/null 2>/dev/null; then
2693 CYGPATH_W='cygpath -w'
2694 else
2695 CYGPATH_W=echo
2696 fi
2697 fi
2698
2699
2700 # Define the identity of the package.
2701 PACKAGE='xedit'
2702 VERSION='1.2.2'
2703
2704
2705 cat >>confdefs.h <<_ACEOF
2706 #define PACKAGE "$PACKAGE"
2707 _ACEOF
2708
2709
2710 cat >>confdefs.h <<_ACEOF
2711 #define VERSION "$VERSION"
2712 _ACEOF
2713
2714 # Some tools Automake needs.
2715
2716 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2717
2718
2719 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2720
2721
2722 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2723
2724
2725 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2726
2727
2728 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2729
2730 # For better backward compatibility. To be removed once Automake 1.9.x
2731 # dies out for good. For more background, see:
2732 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2733 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2734 mkdir_p='$(MKDIR_P)'
2735
2736 # We need awk for the "check" target. The system "awk" is bad on
2737 # some platforms.
2738 # Always define AMTAR for backward compatibility. Yes, it's still used
2739 # in the wild :-( We should find a proper way to deprecate it ...
2740 AMTAR='$${TAR-tar}'
2741
2742
2743 # We'll loop over all known methods to create a tar archive until one works.
2744 _am_tools='gnutar pax cpio none'
2745
2746 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2747
2748
2749
2750
2751
2752
2753
2754 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766 DEPDIR="${am__leading_dot}deps"
2767
2768 ac_config_commands="$ac_config_commands depfiles"
2769
2770
2771 am_make=${MAKE-make}
2772 cat > confinc << 'END'
2773 am__doit:
2774 @echo this is the am__doit target
2775 .PHONY: am__doit
2776 END
2777 # If we don't find an include directive, just comment out the code.
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2779 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2780 am__include="#"
2781 am__quote=
2782 _am_result=none
2783 # First try GNU make style include.
2784 echo "include confinc" > confmf
2785 # Ignore all kinds of additional output from 'make'.
2786 case `$am_make -s -f confmf 2> /dev/null` in #(
2787 *the\ am__doit\ target*)
2788 am__include=include
2789 am__quote=
2790 _am_result=GNU
2791 ;;
2792 esac
2793 # Now try BSD make style include.
2794 if test "$am__include" = "#"; then
2795 echo '.include "confinc"' > confmf
2796 case `$am_make -s -f confmf 2> /dev/null` in #(
2797 *the\ am__doit\ target*)
2798 am__include=.include
2799 am__quote="\""
2800 _am_result=BSD
2801 ;;
2802 esac
2803 fi
2804
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2807 $as_echo "$_am_result" >&6; }
2808 rm -f confinc confmf
2809
2810 # Check whether --enable-dependency-tracking was given.
2811 if test "${enable_dependency_tracking+set}" = set; then :
2812 enableval=$enable_dependency_tracking;
2813 fi
2814
2815 if test "x$enable_dependency_tracking" != xno; then
2816 am_depcomp="$ac_aux_dir/depcomp"
2817 AMDEPBACKSLASH='\'
2818 am__nodep='_no'
2819 fi
2820 if test "x$enable_dependency_tracking" != xno; then
2821 AMDEP_TRUE=
2822 AMDEP_FALSE='#'
2823 else
2824 AMDEP_TRUE='#'
2825 AMDEP_FALSE=
2826 fi
2827
2828
2829 ac_ext=c
2830 ac_cpp='$CPP $CPPFLAGS'
2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834 if test -n "$ac_tool_prefix"; then
2835 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2836 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2838 $as_echo_n "checking for $ac_word... " >&6; }
2839 if ${ac_cv_prog_CC+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test -n "$CC"; then
2843 ac_cv_prog_CC="$CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 for ac_exec_ext in '' $ac_executable_extensions; do
2851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 break 2
2855 fi
2856 done
2857 done
2858 IFS=$as_save_IFS
2859
2860 fi
2861 fi
2862 CC=$ac_cv_prog_CC
2863 if test -n "$CC"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2865 $as_echo "$CC" >&6; }
2866 else
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2868 $as_echo "no" >&6; }
2869 fi
2870
2871
2872 fi
2873 if test -z "$ac_cv_prog_CC"; then
2874 ac_ct_CC=$CC
2875 # Extract the first word of "gcc", so it can be a program name with args.
2876 set dummy gcc; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$ac_ct_CC"; then
2883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2887 do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2892 ac_cv_prog_ac_ct_CC="gcc"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2895 fi
2896 done
2897 done
2898 IFS=$as_save_IFS
2899
2900 fi
2901 fi
2902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2903 if test -n "$ac_ct_CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2905 $as_echo "$ac_ct_CC" >&6; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2909 fi
2910
2911 if test "x$ac_ct_CC" = x; then
2912 CC=""
2913 else
2914 case $cross_compiling:$ac_tool_warned in
2915 yes:)
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2917 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2918 ac_tool_warned=yes ;;
2919 esac
2920 CC=$ac_ct_CC
2921 fi
2922 else
2923 CC="$ac_cv_prog_CC"
2924 fi
2925
2926 if test -z "$CC"; then
2927 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2929 set dummy ${ac_tool_prefix}cc; ac_word=$2
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931 $as_echo_n "checking for $ac_word... " >&6; }
2932 if ${ac_cv_prog_CC+:} false; then :
2933 $as_echo_n "(cached) " >&6
2934 else
2935 if test -n "$CC"; then
2936 ac_cv_prog_CC="$CC" # Let the user override the test.
2937 else
2938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939 for as_dir in $PATH
2940 do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2945 ac_cv_prog_CC="${ac_tool_prefix}cc"
2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949 done
2950 done
2951 IFS=$as_save_IFS
2952
2953 fi
2954 fi
2955 CC=$ac_cv_prog_CC
2956 if test -n "$CC"; then
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2958 $as_echo "$CC" >&6; }
2959 else
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961 $as_echo "no" >&6; }
2962 fi
2963
2964
2965 fi
2966 fi
2967 if test -z "$CC"; then
2968 # Extract the first word of "cc", so it can be a program name with args.
2969 set dummy cc; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if ${ac_cv_prog_CC+:} false; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 ac_prog_rejected=no
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 for as_dir in $PATH
2981 do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2986 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2987 ac_prog_rejected=yes
2988 continue
2989 fi
2990 ac_cv_prog_CC="cc"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2993 fi
2994 done
2995 done
2996 IFS=$as_save_IFS
2997
2998 if test $ac_prog_rejected = yes; then
2999 # We found a bogon in the path, so make sure we never use it.
3000 set dummy $ac_cv_prog_CC
3001 shift
3002 if test $# != 0; then
3003 # We chose a different compiler from the bogus one.
3004 # However, it has the same basename, so the bogon will be chosen
3005 # first if we set CC to just the basename; use the full file name.
3006 shift
3007 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3008 fi
3009 fi
3010 fi
3011 fi
3012 CC=$ac_cv_prog_CC
3013 if test -n "$CC"; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3015 $as_echo "$CC" >&6; }
3016 else
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021
3022 fi
3023 if test -z "$CC"; then
3024 if test -n "$ac_tool_prefix"; then
3025 for ac_prog in cl.exe
3026 do
3027 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if ${ac_cv_prog_CC+:} false; then :
3032 $as_echo_n "(cached) " >&6
3033 else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3039 do
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3047 fi
3048 done
3049 done
3050 IFS=$as_save_IFS
3051
3052 fi
3053 fi
3054 CC=$ac_cv_prog_CC
3055 if test -n "$CC"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3057 $as_echo "$CC" >&6; }
3058 else
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3061 fi
3062
3063
3064 test -n "$CC" && break
3065 done
3066 fi
3067 if test -z "$CC"; then
3068 ac_ct_CC=$CC
3069 for ac_prog in cl.exe
3070 do
3071 # Extract the first word of "$ac_prog", so it can be a program name with args.
3072 set dummy $ac_prog; ac_word=$2
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3076 $as_echo_n "(cached) " >&6
3077 else
3078 if test -n "$ac_ct_CC"; then
3079 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084 IFS=$as_save_IFS
3085 test -z "$as_dir" && as_dir=.
3086 for ac_exec_ext in '' $ac_executable_extensions; do
3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3088 ac_cv_prog_ac_ct_CC="$ac_prog"
3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3090 break 2
3091 fi
3092 done
3093 done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3099 if test -n "$ac_ct_CC"; then
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3101 $as_echo "$ac_ct_CC" >&6; }
3102 else
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108 test -n "$ac_ct_CC" && break
3109 done
3110
3111 if test "x$ac_ct_CC" = x; then
3112 CC=""
3113 else
3114 case $cross_compiling:$ac_tool_warned in
3115 yes:)
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118 ac_tool_warned=yes ;;
3119 esac
3120 CC=$ac_ct_CC
3121 fi
3122 fi
3123
3124 fi
3125
3126
3127 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error $? "no acceptable C compiler found in \$PATH
3130 See \`config.log' for more details" "$LINENO" 5; }
3131
3132 # Provide some information about the compiler.
3133 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3134 set X $ac_compile
3135 ac_compiler=$2
3136 for ac_option in --version -v -V -qversion; do
3137 { { ac_try="$ac_compiler $ac_option >&5"
3138 case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143 $as_echo "$ac_try_echo"; } >&5
3144 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3145 ac_status=$?
3146 if test -s conftest.err; then
3147 sed '10a\
3148 ... rest of stderr output deleted ...
3149 10q' conftest.err >conftest.er1
3150 cat conftest.er1 >&5
3151 fi
3152 rm -f conftest.er1 conftest.err
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }
3155 done
3156
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3159
3160 int
3161 main ()
3162 {
3163
3164 ;
3165 return 0;
3166 }
3167 _ACEOF
3168 ac_clean_files_save=$ac_clean_files
3169 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3170 # Try to create an executable without -o first, disregard a.out.
3171 # It will help us diagnose broken compilers, and finding out an intuition
3172 # of exeext.
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3174 $as_echo_n "checking whether the C compiler works... " >&6; }
3175 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3176
3177 # The possible output files:
3178 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3179
3180 ac_rmfiles=
3181 for ac_file in $ac_files
3182 do
3183 case $ac_file in
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3185 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3186 esac
3187 done
3188 rm -f $ac_rmfiles
3189
3190 if { { ac_try="$ac_link_default"
3191 case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194 esac
3195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196 $as_echo "$ac_try_echo"; } >&5
3197 (eval "$ac_link_default") 2>&5
3198 ac_status=$?
3199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }; then :
3201 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3202 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3203 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3204 # so that the user can short-circuit this test for compilers unknown to
3205 # Autoconf.
3206 for ac_file in $ac_files ''
3207 do
3208 test -f "$ac_file" || continue
3209 case $ac_file in
3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3211 ;;
3212 [ab].out )
3213 # We found the default executable, but exeext='' is most
3214 # certainly right.
3215 break;;
3216 *.* )
3217 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3218 then :; else
3219 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3220 fi
3221 # We set ac_cv_exeext here because the later test for it is not
3222 # safe: cross compilers may not add the suffix if given an `-o'
3223 # argument, so we may need to know it at that point already.
3224 # Even if this section looks crufty: it has the advantage of
3225 # actually working.
3226 break;;
3227 * )
3228 break;;
3229 esac
3230 done
3231 test "$ac_cv_exeext" = no && ac_cv_exeext=
3232
3233 else
3234 ac_file=''
3235 fi
3236 if test -z "$ac_file"; then :
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3238 $as_echo "no" >&6; }
3239 $as_echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3241
3242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3244 as_fn_error 77 "C compiler cannot create executables
3245 See \`config.log' for more details" "$LINENO" 5; }
3246 else
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248 $as_echo "yes" >&6; }
3249 fi
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3251 $as_echo_n "checking for C compiler default output file name... " >&6; }
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3253 $as_echo "$ac_file" >&6; }
3254 ac_exeext=$ac_cv_exeext
3255
3256 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3257 ac_clean_files=$ac_clean_files_save
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3259 $as_echo_n "checking for suffix of executables... " >&6; }
3260 if { { ac_try="$ac_link"
3261 case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266 $as_echo "$ac_try_echo"; } >&5
3267 (eval "$ac_link") 2>&5
3268 ac_status=$?
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }; then :
3271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3272 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3273 # work properly (i.e., refer to `conftest.exe'), while it won't with
3274 # `rm'.
3275 for ac_file in conftest.exe conftest conftest.*; do
3276 test -f "$ac_file" || continue
3277 case $ac_file in
3278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3280 break;;
3281 * ) break;;
3282 esac
3283 done
3284 else
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3288 See \`config.log' for more details" "$LINENO" 5; }
3289 fi
3290 rm -f conftest conftest$ac_cv_exeext
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3292 $as_echo "$ac_cv_exeext" >&6; }
3293
3294 rm -f conftest.$ac_ext
3295 EXEEXT=$ac_cv_exeext
3296 ac_exeext=$EXEEXT
3297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3298 /* end confdefs.h. */
3299 #include <stdio.h>
3300 int
3301 main ()
3302 {
3303 FILE *f = fopen ("conftest.out", "w");
3304 return ferror (f) || fclose (f) != 0;
3305
3306 ;
3307 return 0;
3308 }
3309 _ACEOF
3310 ac_clean_files="$ac_clean_files conftest.out"
3311 # Check that the compiler produces executables we can run. If not, either
3312 # the compiler is broken, or we cross compile.
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3314 $as_echo_n "checking whether we are cross compiling... " >&6; }
3315 if test "$cross_compiling" != yes; then
3316 { { ac_try="$ac_link"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322 $as_echo "$ac_try_echo"; } >&5
3323 (eval "$ac_link") 2>&5
3324 ac_status=$?
3325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }
3327 if { ac_try='./conftest$ac_cv_exeext'
3328 { { case "(($ac_try" in
3329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3330 *) ac_try_echo=$ac_try;;
3331 esac
3332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3333 $as_echo "$ac_try_echo"; } >&5
3334 (eval "$ac_try") 2>&5
3335 ac_status=$?
3336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3337 test $ac_status = 0; }; }; then
3338 cross_compiling=no
3339 else
3340 if test "$cross_compiling" = maybe; then
3341 cross_compiling=yes
3342 else
3343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error $? "cannot run C compiled programs.
3346 If you meant to cross compile, use \`--host'.
3347 See \`config.log' for more details" "$LINENO" 5; }
3348 fi
3349 fi
3350 fi
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3352 $as_echo "$cross_compiling" >&6; }
3353
3354 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3355 ac_clean_files=$ac_clean_files_save
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3357 $as_echo_n "checking for suffix of object files... " >&6; }
3358 if ${ac_cv_objext+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3362 /* end confdefs.h. */
3363
3364 int
3365 main ()
3366 {
3367
3368 ;
3369 return 0;
3370 }
3371 _ACEOF
3372 rm -f conftest.o conftest.obj
3373 if { { ac_try="$ac_compile"
3374 case "(($ac_try" in
3375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3376 *) ac_try_echo=$ac_try;;
3377 esac
3378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3379 $as_echo "$ac_try_echo"; } >&5
3380 (eval "$ac_compile") 2>&5
3381 ac_status=$?
3382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3383 test $ac_status = 0; }; then :
3384 for ac_file in conftest.o conftest.obj conftest.*; do
3385 test -f "$ac_file" || continue;
3386 case $ac_file in
3387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3388 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3389 break;;
3390 esac
3391 done
3392 else
3393 $as_echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3395
3396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3398 as_fn_error $? "cannot compute suffix of object files: cannot compile
3399 See \`config.log' for more details" "$LINENO" 5; }
3400 fi
3401 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3402 fi
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3404 $as_echo "$ac_cv_objext" >&6; }
3405 OBJEXT=$ac_cv_objext
3406 ac_objext=$OBJEXT
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3408 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3409 if ${ac_cv_c_compiler_gnu+:} false; then :
3410 $as_echo_n "(cached) " >&6
3411 else
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3414
3415 int
3416 main ()
3417 {
3418 #ifndef __GNUC__
3419 choke me
3420 #endif
3421
3422 ;
3423 return 0;
3424 }
3425 _ACEOF
3426 if ac_fn_c_try_compile "$LINENO"; then :
3427 ac_compiler_gnu=yes
3428 else
3429 ac_compiler_gnu=no
3430 fi
3431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3432 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3433
3434 fi
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3436 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3437 if test $ac_compiler_gnu = yes; then
3438 GCC=yes
3439 else
3440 GCC=
3441 fi
3442 ac_test_CFLAGS=${CFLAGS+set}
3443 ac_save_CFLAGS=$CFLAGS
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3445 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3446 if ${ac_cv_prog_cc_g+:} false; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 ac_save_c_werror_flag=$ac_c_werror_flag
3450 ac_c_werror_flag=yes
3451 ac_cv_prog_cc_g=no
3452 CFLAGS="-g"
3453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3454 /* end confdefs.h. */
3455
3456 int
3457 main ()
3458 {
3459
3460 ;
3461 return 0;
3462 }
3463 _ACEOF
3464 if ac_fn_c_try_compile "$LINENO"; then :
3465 ac_cv_prog_cc_g=yes
3466 else
3467 CFLAGS=""
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3470
3471 int
3472 main ()
3473 {
3474
3475 ;
3476 return 0;
3477 }
3478 _ACEOF
3479 if ac_fn_c_try_compile "$LINENO"; then :
3480
3481 else
3482 ac_c_werror_flag=$ac_save_c_werror_flag
3483 CFLAGS="-g"
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3486
3487 int
3488 main ()
3489 {
3490
3491 ;
3492 return 0;
3493 }
3494 _ACEOF
3495 if ac_fn_c_try_compile "$LINENO"; then :
3496 ac_cv_prog_cc_g=yes
3497 fi
3498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3499 fi
3500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 ac_c_werror_flag=$ac_save_c_werror_flag
3504 fi
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3506 $as_echo "$ac_cv_prog_cc_g" >&6; }
3507 if test "$ac_test_CFLAGS" = set; then
3508 CFLAGS=$ac_save_CFLAGS
3509 elif test $ac_cv_prog_cc_g = yes; then
3510 if test "$GCC" = yes; then
3511 CFLAGS="-g -O2"
3512 else
3513 CFLAGS="-g"
3514 fi
3515 else
3516 if test "$GCC" = yes; then
3517 CFLAGS="-O2"
3518 else
3519 CFLAGS=
3520 fi
3521 fi
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3523 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3524 if ${ac_cv_prog_cc_c89+:} false; then :
3525 $as_echo_n "(cached) " >&6
3526 else
3527 ac_cv_prog_cc_c89=no
3528 ac_save_CC=$CC
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3530 /* end confdefs.h. */
3531 #include <stdarg.h>
3532 #include <stdio.h>
3533 struct stat;
3534 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3535 struct buf { int x; };
3536 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3537 static char *e (p, i)
3538 char **p;
3539 int i;
3540 {
3541 return p[i];
3542 }
3543 static char *f (char * (*g) (char **, int), char **p, ...)
3544 {
3545 char *s;
3546 va_list v;
3547 va_start (v,p);
3548 s = g (p, va_arg (v,int));
3549 va_end (v);
3550 return s;
3551 }
3552
3553 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3554 function prototypes and stuff, but not '\xHH' hex character constants.
3555 These don't provoke an error unfortunately, instead are silently treated
3556 as 'x'. The following induces an error, until -std is added to get
3557 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3558 array size at least. It's necessary to write '\x00'==0 to get something
3559 that's true only with -std. */
3560 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3561
3562 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3563 inside strings and character constants. */
3564 #define FOO(x) 'x'
3565 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3566
3567 int test (int i, double x);
3568 struct s1 {int (*f) (int a);};
3569 struct s2 {int (*f) (double a);};
3570 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3571 int argc;
3572 char **argv;
3573 int
3574 main ()
3575 {
3576 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3577 ;
3578 return 0;
3579 }
3580 _ACEOF
3581 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3582 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3583 do
3584 CC="$ac_save_CC $ac_arg"
3585 if ac_fn_c_try_compile "$LINENO"; then :
3586 ac_cv_prog_cc_c89=$ac_arg
3587 fi
3588 rm -f core conftest.err conftest.$ac_objext
3589 test "x$ac_cv_prog_cc_c89" != "xno" && break
3590 done
3591 rm -f conftest.$ac_ext
3592 CC=$ac_save_CC
3593
3594 fi
3595 # AC_CACHE_VAL
3596 case "x$ac_cv_prog_cc_c89" in
3597 x)
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3599 $as_echo "none needed" >&6; } ;;
3600 xno)
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3602 $as_echo "unsupported" >&6; } ;;
3603 *)
3604 CC="$CC $ac_cv_prog_cc_c89"
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3606 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3607 esac
3608 if test "x$ac_cv_prog_cc_c89" != xno; then :
3609
3610 fi
3611
3612 ac_ext=c
3613 ac_cpp='$CPP $CPPFLAGS'
3614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3617
3618 depcc="$CC" am_compiler_list=
3619
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3621 $as_echo_n "checking dependency style of $depcc... " >&6; }
3622 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3626 # We make a subdir and do the tests there. Otherwise we can end up
3627 # making bogus files that we don't know about and never remove. For
3628 # instance it was reported that on HP-UX the gcc test will end up
3629 # making a dummy file named 'D' -- because '-MD' means "put the output
3630 # in D".
3631 rm -rf conftest.dir
3632 mkdir conftest.dir
3633 # Copy depcomp to subdir because otherwise we won't find it if we're
3634 # using a relative directory.
3635 cp "$am_depcomp" conftest.dir
3636 cd conftest.dir
3637 # We will build objects and dependencies in a subdirectory because
3638 # it helps to detect inapplicable dependency modes. For instance
3639 # both Tru64's cc and ICC support -MD to output dependencies as a
3640 # side effect of compilation, but ICC will put the dependencies in
3641 # the current directory while Tru64 will put them in the object
3642 # directory.
3643 mkdir sub
3644
3645 am_cv_CC_dependencies_compiler_type=none
3646 if test "$am_compiler_list" = ""; then
3647 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3648 fi
3649 am__universal=false
3650 case " $depcc " in #(
3651 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3652 esac
3653
3654 for depmode in $am_compiler_list; do
3655 # Setup a source with many dependencies, because some compilers
3656 # like to wrap large dependency lists on column 80 (with \), and
3657 # we should not choose a depcomp mode which is confused by this.
3658 #
3659 # We need to recreate these files for each test, as the compiler may
3660 # overwrite some of them when testing with obscure command lines.
3661 # This happens at least with the AIX C compiler.
3662 : > sub/conftest.c
3663 for i in 1 2 3 4 5 6; do
3664 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3665 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3666 # Solaris 10 /bin/sh.
3667 echo '/* dummy */' > sub/conftst$i.h
3668 done
3669 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3670
3671 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3672 # mode. It turns out that the SunPro C++ compiler does not properly
3673 # handle '-M -o', and we need to detect this. Also, some Intel
3674 # versions had trouble with output in subdirs.
3675 am__obj=sub/conftest.${OBJEXT-o}
3676 am__minus_obj="-o $am__obj"
3677 case $depmode in
3678 gcc)
3679 # This depmode causes a compiler race in universal mode.
3680 test "$am__universal" = false || continue
3681 ;;
3682 nosideeffect)
3683 # After this tag, mechanisms are not by side-effect, so they'll
3684 # only be used when explicitly requested.
3685 if test "x$enable_dependency_tracking" = xyes; then
3686 continue
3687 else
3688 break
3689 fi
3690 ;;
3691 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3692 # This compiler won't grok '-c -o', but also, the minuso test has
3693 # not run yet. These depmodes are late enough in the game, and
3694 # so weak that their functioning should not be impacted.
3695 am__obj=conftest.${OBJEXT-o}
3696 am__minus_obj=
3697 ;;
3698 none) break ;;
3699 esac
3700 if depmode=$depmode \
3701 source=sub/conftest.c object=$am__obj \
3702 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3703 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3704 >/dev/null 2>conftest.err &&
3705 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3706 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3707 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3708 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3709 # icc doesn't choke on unknown options, it will just issue warnings
3710 # or remarks (even with -Werror). So we grep stderr for any message
3711 # that says an option was ignored or not supported.
3712 # When given -MP, icc 7.0 and 7.1 complain thusly:
3713 # icc: Command line warning: ignoring option '-M'; no argument required
3714 # The diagnosis changed in icc 8.0:
3715 # icc: Command line remark: option '-MP' not supported
3716 if (grep 'ignoring option' conftest.err ||
3717 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3718 am_cv_CC_dependencies_compiler_type=$depmode
3719 break
3720 fi
3721 fi
3722 done
3723
3724 cd ..
3725 rm -rf conftest.dir
3726 else
3727 am_cv_CC_dependencies_compiler_type=none
3728 fi
3729
3730 fi
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3732 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3733 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3734
3735 if
3736 test "x$enable_dependency_tracking" != xno \
3737 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3738 am__fastdepCC_TRUE=
3739 am__fastdepCC_FALSE='#'
3740 else
3741 am__fastdepCC_TRUE='#'
3742 am__fastdepCC_FALSE=
3743 fi
3744
3745
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3747 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3748 if ${ac_cv_prog_cc_c99+:} false; then :
3749 $as_echo_n "(cached) " >&6
3750 else
3751 ac_cv_prog_cc_c99=no
3752 ac_save_CC=$CC
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755 #include <stdarg.h>
3756 #include <stdbool.h>
3757 #include <stdlib.h>
3758 #include <wchar.h>
3759 #include <stdio.h>
3760
3761 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3762 #define debug(...) fprintf (stderr, __VA_ARGS__)
3763 #define showlist(...) puts (#__VA_ARGS__)
3764 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3765 static void
3766 test_varargs_macros (void)
3767 {
3768 int x = 1234;
3769 int y = 5678;
3770 debug ("Flag");
3771 debug ("X = %d\n", x);
3772 showlist (The first, second, and third items.);
3773 report (x>y, "x is %d but y is %d", x, y);
3774 }
3775
3776 // Check long long types.
3777 #define BIG64 18446744073709551615ull
3778 #define BIG32 4294967295ul
3779 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3780 #if !BIG_OK
3781 your preprocessor is broken;
3782 #endif
3783 #if BIG_OK
3784 #else
3785 your preprocessor is broken;
3786 #endif
3787 static long long int bignum = -9223372036854775807LL;
3788 static unsigned long long int ubignum = BIG64;
3789
3790 struct incomplete_array
3791 {
3792 int datasize;
3793 double data[];
3794 };
3795
3796 struct named_init {
3797 int number;
3798 const wchar_t *name;
3799 double average;
3800 };
3801
3802 typedef const char *ccp;
3803
3804 static inline int
3805 test_restrict (ccp restrict text)
3806 {
3807 // See if C++-style comments work.
3808 // Iterate through items via the restricted pointer.
3809 // Also check for declarations in for loops.
3810 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3811 continue;
3812 return 0;
3813 }
3814
3815 // Check varargs and va_copy.
3816 static void
3817 test_varargs (const char *format, ...)
3818 {
3819 va_list args;
3820 va_start (args, format);
3821 va_list args_copy;
3822 va_copy (args_copy, args);
3823
3824 const char *str;
3825 int number;
3826 float fnumber;
3827
3828 while (*format)
3829 {
3830 switch (*format++)
3831 {
3832 case 's': // string
3833 str = va_arg (args_copy, const char *);
3834 break;
3835 case 'd': // int
3836 number = va_arg (args_copy, int);
3837 break;
3838 case 'f': // float
3839 fnumber = va_arg (args_copy, double);
3840 break;
3841 default:
3842 break;
3843 }
3844 }
3845 va_end (args_copy);
3846 va_end (args);
3847 }
3848
3849 int
3850 main ()
3851 {
3852
3853 // Check bool.
3854 _Bool success = false;
3855
3856 // Check restrict.
3857 if (test_restrict ("String literal") == 0)
3858 success = true;
3859 char *restrict newvar = "Another string";
3860
3861 // Check varargs.
3862 test_varargs ("s, d' f .", "string", 65, 34.234);
3863 test_varargs_macros ();
3864
3865 // Check flexible array members.
3866 struct incomplete_array *ia =
3867 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3868 ia->datasize = 10;
3869 for (int i = 0; i < ia->datasize; ++i)
3870 ia->data[i] = i * 1.234;
3871
3872 // Check named initializers.
3873 struct named_init ni = {
3874 .number = 34,
3875 .name = L"Test wide string",
3876 .average = 543.34343,
3877 };
3878
3879 ni.number = 58;
3880
3881 int dynamic_array[ni.number];
3882 dynamic_array[ni.number - 1] = 543;
3883
3884 // work around unused variable warnings
3885 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3886 || dynamic_array[ni.number - 1] != 543);
3887
3888 ;
3889 return 0;
3890 }
3891 _ACEOF
3892 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
3893 do
3894 CC="$ac_save_CC $ac_arg"
3895 if ac_fn_c_try_compile "$LINENO"; then :
3896 ac_cv_prog_cc_c99=$ac_arg
3897 fi
3898 rm -f core conftest.err conftest.$ac_objext
3899 test "x$ac_cv_prog_cc_c99" != "xno" && break
3900 done
3901 rm -f conftest.$ac_ext
3902 CC=$ac_save_CC
3903
3904 fi
3905 # AC_CACHE_VAL
3906 case "x$ac_cv_prog_cc_c99" in
3907 x)
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3909 $as_echo "none needed" >&6; } ;;
3910 xno)
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3912 $as_echo "unsupported" >&6; } ;;
3913 *)
3914 CC="$CC $ac_cv_prog_cc_c99"
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3916 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3917 esac
3918 if test "x$ac_cv_prog_cc_c99" != xno; then :
3919
3920 fi
3921
3922
3923
3924 ac_ext=c
3925 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3930 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3931 # On Suns, sometimes $CPP names a directory.
3932 if test -n "$CPP" && test -d "$CPP"; then
3933 CPP=
3934 fi
3935 if test -z "$CPP"; then
3936 if ${ac_cv_prog_CPP+:} false; then :
3937 $as_echo_n "(cached) " >&6
3938 else
3939 # Double quotes because CPP needs to be expanded
3940 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3941 do
3942 ac_preproc_ok=false
3943 for ac_c_preproc_warn_flag in '' yes
3944 do
3945 # Use a header file that comes with gcc, so configuring glibc
3946 # with a fresh cross-compiler works.
3947 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3948 # <limits.h> exists even on freestanding compilers.
3949 # On the NeXT, cc -E runs the code through the compiler's parser,
3950 # not just through cpp. "Syntax error" is here to catch this case.
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953 #ifdef __STDC__
3954 # include <limits.h>
3955 #else
3956 # include <assert.h>
3957 #endif
3958 Syntax error
3959 _ACEOF
3960 if ac_fn_c_try_cpp "$LINENO"; then :
3961
3962 else
3963 # Broken: fails on valid input.
3964 continue
3965 fi
3966 rm -f conftest.err conftest.i conftest.$ac_ext
3967
3968 # OK, works on sane cases. Now check whether nonexistent headers
3969 # can be detected and how.
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3972 #include <ac_nonexistent.h>
3973 _ACEOF
3974 if ac_fn_c_try_cpp "$LINENO"; then :
3975 # Broken: success on invalid input.
3976 continue
3977 else
3978 # Passes both tests.
3979 ac_preproc_ok=:
3980 break
3981 fi
3982 rm -f conftest.err conftest.i conftest.$ac_ext
3983
3984 done
3985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3986 rm -f conftest.i conftest.err conftest.$ac_ext
3987 if $ac_preproc_ok; then :
3988 break
3989 fi
3990
3991 done
3992 ac_cv_prog_CPP=$CPP
3993
3994 fi
3995 CPP=$ac_cv_prog_CPP
3996 else
3997 ac_cv_prog_CPP=$CPP
3998 fi
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4000 $as_echo "$CPP" >&6; }
4001 ac_preproc_ok=false
4002 for ac_c_preproc_warn_flag in '' yes
4003 do
4004 # Use a header file that comes with gcc, so configuring glibc
4005 # with a fresh cross-compiler works.
4006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4007 # <limits.h> exists even on freestanding compilers.
4008 # On the NeXT, cc -E runs the code through the compiler's parser,
4009 # not just through cpp. "Syntax error" is here to catch this case.
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012 #ifdef __STDC__
4013 # include <limits.h>
4014 #else
4015 # include <assert.h>
4016 #endif
4017 Syntax error
4018 _ACEOF
4019 if ac_fn_c_try_cpp "$LINENO"; then :
4020
4021 else
4022 # Broken: fails on valid input.
4023 continue
4024 fi
4025 rm -f conftest.err conftest.i conftest.$ac_ext
4026
4027 # OK, works on sane cases. Now check whether nonexistent headers
4028 # can be detected and how.
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4031 #include <ac_nonexistent.h>
4032 _ACEOF
4033 if ac_fn_c_try_cpp "$LINENO"; then :
4034 # Broken: success on invalid input.
4035 continue
4036 else
4037 # Passes both tests.
4038 ac_preproc_ok=:
4039 break
4040 fi
4041 rm -f conftest.err conftest.i conftest.$ac_ext
4042
4043 done
4044 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4045 rm -f conftest.i conftest.err conftest.$ac_ext
4046 if $ac_preproc_ok; then :
4047
4048 else
4049 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4051 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4052 See \`config.log' for more details" "$LINENO" 5; }
4053 fi
4054
4055 ac_ext=c
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4060
4061
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4063 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4064 if ${ac_cv_path_GREP+:} false; then :
4065 $as_echo_n "(cached) " >&6
4066 else
4067 if test -z "$GREP"; then
4068 ac_path_GREP_found=false
4069 # Loop through the user's path and test for each of PROGNAME-LIST
4070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4071 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4072 do
4073 IFS=$as_save_IFS
4074 test -z "$as_dir" && as_dir=.
4075 for ac_prog in grep ggrep; do
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4078 as_fn_executable_p "$ac_path_GREP" || continue
4079 # Check for GNU ac_path_GREP and select it if it is found.
4080 # Check for GNU $ac_path_GREP
4081 case `"$ac_path_GREP" --version 2>&1` in
4082 *GNU*)
4083 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4084 *)
4085 ac_count=0
4086 $as_echo_n 0123456789 >"conftest.in"
4087 while :
4088 do
4089 cat "conftest.in" "conftest.in" >"conftest.tmp"
4090 mv "conftest.tmp" "conftest.in"
4091 cp "conftest.in" "conftest.nl"
4092 $as_echo 'GREP' >> "conftest.nl"
4093 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4094 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4095 as_fn_arith $ac_count + 1 && ac_count=$as_val
4096 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4097 # Best one so far, save it but keep looking for a better one
4098 ac_cv_path_GREP="$ac_path_GREP"
4099 ac_path_GREP_max=$ac_count
4100 fi
4101 # 10*(2^10) chars as input seems more than enough
4102 test $ac_count -gt 10 && break
4103 done
4104 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4105 esac
4106
4107 $ac_path_GREP_found && break 3
4108 done
4109 done
4110 done
4111 IFS=$as_save_IFS
4112 if test -z "$ac_cv_path_GREP"; then
4113 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4114 fi
4115 else
4116 ac_cv_path_GREP=$GREP
4117 fi
4118
4119 fi
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4121 $as_echo "$ac_cv_path_GREP" >&6; }
4122 GREP="$ac_cv_path_GREP"
4123
4124
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4126 $as_echo_n "checking for egrep... " >&6; }
4127 if ${ac_cv_path_EGREP+:} false; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4131 then ac_cv_path_EGREP="$GREP -E"
4132 else
4133 if test -z "$EGREP"; then
4134 ac_path_EGREP_found=false
4135 # Loop through the user's path and test for each of PROGNAME-LIST
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4138 do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_prog in egrep; do
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4144 as_fn_executable_p "$ac_path_EGREP" || continue
4145 # Check for GNU ac_path_EGREP and select it if it is found.
4146 # Check for GNU $ac_path_EGREP
4147 case `"$ac_path_EGREP" --version 2>&1` in
4148 *GNU*)
4149 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4150 *)
4151 ac_count=0
4152 $as_echo_n 0123456789 >"conftest.in"
4153 while :
4154 do
4155 cat "conftest.in" "conftest.in" >"conftest.tmp"
4156 mv "conftest.tmp" "conftest.in"
4157 cp "conftest.in" "conftest.nl"
4158 $as_echo 'EGREP' >> "conftest.nl"
4159 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4160 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4161 as_fn_arith $ac_count + 1 && ac_count=$as_val
4162 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4163 # Best one so far, save it but keep looking for a better one
4164 ac_cv_path_EGREP="$ac_path_EGREP"
4165 ac_path_EGREP_max=$ac_count
4166 fi
4167 # 10*(2^10) chars as input seems more than enough
4168 test $ac_count -gt 10 && break
4169 done
4170 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4171 esac
4172
4173 $ac_path_EGREP_found && break 3
4174 done
4175 done
4176 done
4177 IFS=$as_save_IFS
4178 if test -z "$ac_cv_path_EGREP"; then
4179 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4180 fi
4181 else
4182 ac_cv_path_EGREP=$EGREP
4183 fi
4184
4185 fi
4186 fi
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4188 $as_echo "$ac_cv_path_EGREP" >&6; }
4189 EGREP="$ac_cv_path_EGREP"
4190
4191
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4193 $as_echo_n "checking for ANSI C header files... " >&6; }
4194 if ${ac_cv_header_stdc+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199 #include <stdlib.h>
4200 #include <stdarg.h>
4201 #include <string.h>
4202 #include <float.h>
4203
4204 int
4205 main ()
4206 {
4207
4208 ;
4209 return 0;
4210 }
4211 _ACEOF
4212 if ac_fn_c_try_compile "$LINENO"; then :
4213 ac_cv_header_stdc=yes
4214 else
4215 ac_cv_header_stdc=no
4216 fi
4217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218
4219 if test $ac_cv_header_stdc = yes; then
4220 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4222 /* end confdefs.h. */
4223 #include <string.h>
4224
4225 _ACEOF
4226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4227 $EGREP "memchr" >/dev/null 2>&1; then :
4228
4229 else
4230 ac_cv_header_stdc=no
4231 fi
4232 rm -f conftest*
4233
4234 fi
4235
4236 if test $ac_cv_header_stdc = yes; then
4237 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4240 #include <stdlib.h>
4241
4242 _ACEOF
4243 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4244 $EGREP "free" >/dev/null 2>&1; then :
4245
4246 else
4247 ac_cv_header_stdc=no
4248 fi
4249 rm -f conftest*
4250
4251 fi
4252
4253 if test $ac_cv_header_stdc = yes; then
4254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4255 if test "$cross_compiling" = yes; then :
4256 :
4257 else
4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259 /* end confdefs.h. */
4260 #include <ctype.h>
4261 #include <stdlib.h>
4262 #if ((' ' & 0x0FF) == 0x020)
4263 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4264 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4265 #else
4266 # define ISLOWER(c) \
4267 (('a' <= (c) && (c) <= 'i') \
4268 || ('j' <= (c) && (c) <= 'r') \
4269 || ('s' <= (c) && (c) <= 'z'))
4270 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4271 #endif
4272
4273 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4274 int
4275 main ()
4276 {
4277 int i;
4278 for (i = 0; i < 256; i++)
4279 if (XOR (islower (i), ISLOWER (i))
4280 || toupper (i) != TOUPPER (i))
4281 return 2;
4282 return 0;
4283 }
4284 _ACEOF
4285 if ac_fn_c_try_run "$LINENO"; then :
4286
4287 else
4288 ac_cv_header_stdc=no
4289 fi
4290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4291 conftest.$ac_objext conftest.beam conftest.$ac_ext
4292 fi
4293
4294 fi
4295 fi
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4297 $as_echo "$ac_cv_header_stdc" >&6; }
4298 if test $ac_cv_header_stdc = yes; then
4299
4300 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4301
4302 fi
4303
4304 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4305 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4306 inttypes.h stdint.h unistd.h
4307 do :
4308 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4309 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4310 "
4311 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4312 cat >>confdefs.h <<_ACEOF
4313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4314 _ACEOF
4315
4316 fi
4317
4318 done
4319
4320
4321
4322
4323
4324
4325 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
4326 if test "x$ac_cv_have_decl___clang__" = xyes; then :
4327 CLANGCC="yes"
4328 else
4329 CLANGCC="no"
4330 fi
4331
4332 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4333 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4334 INTELCC="yes"
4335 else
4336 INTELCC="no"
4337 fi
4338
4339 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4340 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4341 SUNCC="yes"
4342 else
4343 SUNCC="no"
4344 fi
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4355 if test -n "$ac_tool_prefix"; then
4356 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4357 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359 $as_echo_n "checking for $ac_word... " >&6; }
4360 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 case $PKG_CONFIG in
4364 [\\/]* | ?:[\\/]*)
4365 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4366 ;;
4367 *)
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH
4370 do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4378 fi
4379 done
4380 done
4381 IFS=$as_save_IFS
4382
4383 ;;
4384 esac
4385 fi
4386 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4387 if test -n "$PKG_CONFIG"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4389 $as_echo "$PKG_CONFIG" >&6; }
4390 else
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4393 fi
4394
4395
4396 fi
4397 if test -z "$ac_cv_path_PKG_CONFIG"; then
4398 ac_pt_PKG_CONFIG=$PKG_CONFIG
4399 # Extract the first word of "pkg-config", so it can be a program name with args.
4400 set dummy pkg-config; ac_word=$2
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 $as_echo_n "checking for $ac_word... " >&6; }
4403 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4404 $as_echo_n "(cached) " >&6
4405 else
4406 case $ac_pt_PKG_CONFIG in
4407 [\\/]* | ?:[\\/]*)
4408 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4409 ;;
4410 *)
4411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 for as_dir in $PATH
4413 do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
4416 for ac_exec_ext in '' $ac_executable_extensions; do
4417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4418 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 break 2
4421 fi
4422 done
4423 done
4424 IFS=$as_save_IFS
4425
4426 ;;
4427 esac
4428 fi
4429 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4430 if test -n "$ac_pt_PKG_CONFIG"; then
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4432 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4433 else
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4435 $as_echo "no" >&6; }
4436 fi
4437
4438 if test "x$ac_pt_PKG_CONFIG" = x; then
4439 PKG_CONFIG=""
4440 else
4441 case $cross_compiling:$ac_tool_warned in
4442 yes:)
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4445 ac_tool_warned=yes ;;
4446 esac
4447 PKG_CONFIG=$ac_pt_PKG_CONFIG
4448 fi
4449 else
4450 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4451 fi
4452
4453 fi
4454 if test -n "$PKG_CONFIG"; then
4455 _pkg_min_version=0.9.0
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4457 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4458 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460 $as_echo "yes" >&6; }
4461 else
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4463 $as_echo "no" >&6; }
4464 PKG_CONFIG=""
4465 fi
4466 fi
4467 # Make sure we can run config.sub.
4468 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4469 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4470
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4472 $as_echo_n "checking build system type... " >&6; }
4473 if ${ac_cv_build+:} false; then :
4474 $as_echo_n "(cached) " >&6
4475 else
4476 ac_build_alias=$build_alias
4477 test "x$ac_build_alias" = x &&
4478 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4479 test "x$ac_build_alias" = x &&
4480 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4481 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4482 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4483
4484 fi
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4486 $as_echo "$ac_cv_build" >&6; }
4487 case $ac_cv_build in
4488 *-*-*) ;;
4489 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4490 esac
4491 build=$ac_cv_build
4492 ac_save_IFS=$IFS; IFS='-'
4493 set x $ac_cv_build
4494 shift
4495 build_cpu=$1
4496 build_vendor=$2
4497 shift; shift
4498 # Remember, the first character of IFS is used to create $*,
4499 # except with old shells:
4500 build_os=$*
4501 IFS=$ac_save_IFS
4502 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4503
4504
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4506 $as_echo_n "checking host system type... " >&6; }
4507 if ${ac_cv_host+:} false; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 if test "x$host_alias" = x; then
4511 ac_cv_host=$ac_cv_build
4512 else
4513 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4514 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4515 fi
4516
4517 fi
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4519 $as_echo "$ac_cv_host" >&6; }
4520 case $ac_cv_host in
4521 *-*-*) ;;
4522 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4523 esac
4524 host=$ac_cv_host
4525 ac_save_IFS=$IFS; IFS='-'
4526 set x $ac_cv_host
4527 shift
4528 host_cpu=$1
4529 host_vendor=$2
4530 shift; shift
4531 # Remember, the first character of IFS is used to create $*,
4532 # except with old shells:
4533 host_os=$*
4534 IFS=$ac_save_IFS
4535 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4536
4537
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4539 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4540 if ${ac_cv_path_SED+:} false; then :
4541 $as_echo_n "(cached) " >&6
4542 else
4543 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4544 for ac_i in 1 2 3 4 5 6 7; do
4545 ac_script="$ac_script$as_nl$ac_script"
4546 done
4547 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4548 { ac_script=; unset ac_script;}
4549 if test -z "$SED"; then
4550 ac_path_SED_found=false
4551 # Loop through the user's path and test for each of PROGNAME-LIST
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4554 do
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_prog in sed gsed; do
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4560 as_fn_executable_p "$ac_path_SED" || continue
4561 # Check for GNU ac_path_SED and select it if it is found.
4562 # Check for GNU $ac_path_SED
4563 case `"$ac_path_SED" --version 2>&1` in
4564 *GNU*)
4565 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4566 *)
4567 ac_count=0
4568 $as_echo_n 0123456789 >"conftest.in"
4569 while :
4570 do
4571 cat "conftest.in" "conftest.in" >"conftest.tmp"
4572 mv "conftest.tmp" "conftest.in"
4573 cp "conftest.in" "conftest.nl"
4574 $as_echo '' >> "conftest.nl"
4575 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4577 as_fn_arith $ac_count + 1 && ac_count=$as_val
4578 if test $ac_count -gt ${ac_path_SED_max-0}; then
4579 # Best one so far, save it but keep looking for a better one
4580 ac_cv_path_SED="$ac_path_SED"
4581 ac_path_SED_max=$ac_count
4582 fi
4583 # 10*(2^10) chars as input seems more than enough
4584 test $ac_count -gt 10 && break
4585 done
4586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4587 esac
4588
4589 $ac_path_SED_found && break 3
4590 done
4591 done
4592 done
4593 IFS=$as_save_IFS
4594 if test -z "$ac_cv_path_SED"; then
4595 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4596 fi
4597 else
4598 ac_cv_path_SED=$SED
4599 fi
4600
4601 fi
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4603 $as_echo "$ac_cv_path_SED" >&6; }
4604 SED="$ac_cv_path_SED"
4605 rm -f conftest.sed
4606
4607
4608
4609
4610
4611
4612 # Check whether --enable-selective-werror was given.
4613 if test "${enable_selective_werror+set}" = set; then :
4614 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
4615 else
4616 SELECTIVE_WERROR=yes
4617 fi
4618
4619
4620
4621
4622
4623 # -v is too short to test reliably with XORG_TESTSET_CFLAG
4624 if test "x$SUNCC" = "xyes"; then
4625 BASE_CFLAGS="-v"
4626 else
4627 BASE_CFLAGS=""
4628 fi
4629
4630 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644 xorg_testset_save_CFLAGS="$CFLAGS"
4645
4646 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4647 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4649 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4650 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655 int i;
4656 _ACEOF
4657 if ac_fn_c_try_compile "$LINENO"; then :
4658 xorg_cv_cc_flag_unknown_warning_option=yes
4659 else
4660 xorg_cv_cc_flag_unknown_warning_option=no
4661 fi
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4665 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4667 CFLAGS="$xorg_testset_save_CFLAGS"
4668 fi
4669
4670 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4673 fi
4674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4676 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4677 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4681 /* end confdefs.h. */
4682 int i;
4683 _ACEOF
4684 if ac_fn_c_try_compile "$LINENO"; then :
4685 xorg_cv_cc_flag_unused_command_line_argument=yes
4686 else
4687 xorg_cv_cc_flag_unused_command_line_argument=no
4688 fi
4689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 fi
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4692 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4694 CFLAGS="$xorg_testset_save_CFLAGS"
4695 fi
4696
4697 found="no"
4698
4699 if test $found = "no" ; then
4700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4702 fi
4703
4704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4706 fi
4707
4708 CFLAGS="$CFLAGS -Wall"
4709
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
4711 $as_echo_n "checking if $CC supports -Wall... " >&6; }
4712 cacheid=xorg_cv_cc_flag__Wall
4713 if eval \${$cacheid+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718 int i;
4719 int
4720 main ()
4721 {
4722
4723 ;
4724 return 0;
4725 }
4726 _ACEOF
4727 if ac_fn_c_try_link "$LINENO"; then :
4728 eval $cacheid=yes
4729 else
4730 eval $cacheid=no
4731 fi
4732 rm -f core conftest.err conftest.$ac_objext \
4733 conftest$ac_exeext conftest.$ac_ext
4734 fi
4735
4736
4737 CFLAGS="$xorg_testset_save_CFLAGS"
4738
4739 eval supported=\$$cacheid
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4741 $as_echo "$supported" >&6; }
4742 if test "$supported" = "yes" ; then
4743 BASE_CFLAGS="$BASE_CFLAGS -Wall"
4744 found="yes"
4745 fi
4746 fi
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762 xorg_testset_save_CFLAGS="$CFLAGS"
4763
4764 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4767 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4768 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773 int i;
4774 _ACEOF
4775 if ac_fn_c_try_compile "$LINENO"; then :
4776 xorg_cv_cc_flag_unknown_warning_option=yes
4777 else
4778 xorg_cv_cc_flag_unknown_warning_option=no
4779 fi
4780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781 fi
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4783 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4785 CFLAGS="$xorg_testset_save_CFLAGS"
4786 fi
4787
4788 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4790 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4791 fi
4792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4794 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4795 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4796 $as_echo_n "(cached) " >&6
4797 else
4798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4799 /* end confdefs.h. */
4800 int i;
4801 _ACEOF
4802 if ac_fn_c_try_compile "$LINENO"; then :
4803 xorg_cv_cc_flag_unused_command_line_argument=yes
4804 else
4805 xorg_cv_cc_flag_unused_command_line_argument=no
4806 fi
4807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 fi
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4810 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4812 CFLAGS="$xorg_testset_save_CFLAGS"
4813 fi
4814
4815 found="no"
4816
4817 if test $found = "no" ; then
4818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4820 fi
4821
4822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4824 fi
4825
4826 CFLAGS="$CFLAGS -Wpointer-arith"
4827
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
4829 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
4830 cacheid=xorg_cv_cc_flag__Wpointer_arith
4831 if eval \${$cacheid+:} false; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4836 int i;
4837 int
4838 main ()
4839 {
4840
4841 ;
4842 return 0;
4843 }
4844 _ACEOF
4845 if ac_fn_c_try_link "$LINENO"; then :
4846 eval $cacheid=yes
4847 else
4848 eval $cacheid=no
4849 fi
4850 rm -f core conftest.err conftest.$ac_objext \
4851 conftest$ac_exeext conftest.$ac_ext
4852 fi
4853
4854
4855 CFLAGS="$xorg_testset_save_CFLAGS"
4856
4857 eval supported=\$$cacheid
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4859 $as_echo "$supported" >&6; }
4860 if test "$supported" = "yes" ; then
4861 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
4862 found="yes"
4863 fi
4864 fi
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880 xorg_testset_save_CFLAGS="$CFLAGS"
4881
4882 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
4883 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
4885 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
4886 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
4887 $as_echo_n "(cached) " >&6
4888 else
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4891 int i;
4892 _ACEOF
4893 if ac_fn_c_try_compile "$LINENO"; then :
4894 xorg_cv_cc_flag_unknown_warning_option=yes
4895 else
4896 xorg_cv_cc_flag_unknown_warning_option=no
4897 fi
4898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 fi
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
4901 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
4902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
4903 CFLAGS="$xorg_testset_save_CFLAGS"
4904 fi
4905
4906 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
4907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4908 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4909 fi
4910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
4912 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
4913 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
4914 $as_echo_n "(cached) " >&6
4915 else
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4918 int i;
4919 _ACEOF
4920 if ac_fn_c_try_compile "$LINENO"; then :
4921 xorg_cv_cc_flag_unused_command_line_argument=yes
4922 else
4923 xorg_cv_cc_flag_unused_command_line_argument=no
4924 fi
4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 fi
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
4928 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
4929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
4930 CFLAGS="$xorg_testset_save_CFLAGS"
4931 fi
4932
4933 found="no"
4934
4935 if test $found = "no" ; then
4936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
4937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
4938 fi
4939
4940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
4941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
4942 fi
4943
4944 CFLAGS="$CFLAGS -Wmissing-declarations"
4945
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
4947 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
4948 cacheid=xorg_cv_cc_flag__Wmissing_declarations
4949 if eval \${$cacheid+:} false; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954 int i;
4955 int
4956 main ()
4957 {
4958
4959 ;
4960 return 0;
4961 }
4962 _ACEOF
4963 if ac_fn_c_try_link "$LINENO"; then :
4964 eval $cacheid=yes
4965 else
4966 eval $cacheid=no
4967 fi
4968 rm -f core conftest.err conftest.$ac_objext \
4969 conftest$ac_exeext conftest.$ac_ext
4970 fi
4971
4972
4973 CFLAGS="$xorg_testset_save_CFLAGS"
4974
4975 eval supported=\$$cacheid
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
4977 $as_echo "$supported" >&6; }
4978 if test "$supported" = "yes" ; then
4979 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
4980 found="yes"
4981 fi
4982 fi
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998 xorg_testset_save_CFLAGS="$CFLAGS"
4999
5000 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5001 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5003 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5004 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008 /* end confdefs.h. */
5009 int i;
5010 _ACEOF
5011 if ac_fn_c_try_compile "$LINENO"; then :
5012 xorg_cv_cc_flag_unknown_warning_option=yes
5013 else
5014 xorg_cv_cc_flag_unknown_warning_option=no
5015 fi
5016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5017 fi
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5019 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5020 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5021 CFLAGS="$xorg_testset_save_CFLAGS"
5022 fi
5023
5024 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5027 fi
5028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5030 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5031 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* end confdefs.h. */
5036 int i;
5037 _ACEOF
5038 if ac_fn_c_try_compile "$LINENO"; then :
5039 xorg_cv_cc_flag_unused_command_line_argument=yes
5040 else
5041 xorg_cv_cc_flag_unused_command_line_argument=no
5042 fi
5043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5044 fi
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5046 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5047 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5048 CFLAGS="$xorg_testset_save_CFLAGS"
5049 fi
5050
5051 found="no"
5052
5053 if test $found = "no" ; then
5054 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5055 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5056 fi
5057
5058 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5059 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5060 fi
5061
5062 CFLAGS="$CFLAGS -Wformat=2"
5063
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
5065 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
5066 cacheid=xorg_cv_cc_flag__Wformat_2
5067 if eval \${$cacheid+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5071 /* end confdefs.h. */
5072 int i;
5073 int
5074 main ()
5075 {
5076
5077 ;
5078 return 0;
5079 }
5080 _ACEOF
5081 if ac_fn_c_try_link "$LINENO"; then :
5082 eval $cacheid=yes
5083 else
5084 eval $cacheid=no
5085 fi
5086 rm -f core conftest.err conftest.$ac_objext \
5087 conftest$ac_exeext conftest.$ac_ext
5088 fi
5089
5090
5091 CFLAGS="$xorg_testset_save_CFLAGS"
5092
5093 eval supported=\$$cacheid
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5095 $as_echo "$supported" >&6; }
5096 if test "$supported" = "yes" ; then
5097 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
5098 found="yes"
5099 fi
5100 fi
5101
5102 if test $found = "no" ; then
5103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5105 fi
5106
5107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5109 fi
5110
5111 CFLAGS="$CFLAGS -Wformat"
5112
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
5114 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
5115 cacheid=xorg_cv_cc_flag__Wformat
5116 if eval \${$cacheid+:} false; then :
5117 $as_echo_n "(cached) " >&6
5118 else
5119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5120 /* end confdefs.h. */
5121 int i;
5122 int
5123 main ()
5124 {
5125
5126 ;
5127 return 0;
5128 }
5129 _ACEOF
5130 if ac_fn_c_try_link "$LINENO"; then :
5131 eval $cacheid=yes
5132 else
5133 eval $cacheid=no
5134 fi
5135 rm -f core conftest.err conftest.$ac_objext \
5136 conftest$ac_exeext conftest.$ac_ext
5137 fi
5138
5139
5140 CFLAGS="$xorg_testset_save_CFLAGS"
5141
5142 eval supported=\$$cacheid
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5144 $as_echo "$supported" >&6; }
5145 if test "$supported" = "yes" ; then
5146 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
5147 found="yes"
5148 fi
5149 fi
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167 xorg_testset_save_CFLAGS="$CFLAGS"
5168
5169 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5170 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5172 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5173 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 int i;
5179 _ACEOF
5180 if ac_fn_c_try_compile "$LINENO"; then :
5181 xorg_cv_cc_flag_unknown_warning_option=yes
5182 else
5183 xorg_cv_cc_flag_unknown_warning_option=no
5184 fi
5185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5186 fi
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5188 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5190 CFLAGS="$xorg_testset_save_CFLAGS"
5191 fi
5192
5193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5196 fi
5197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5199 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5200 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 int i;
5206 _ACEOF
5207 if ac_fn_c_try_compile "$LINENO"; then :
5208 xorg_cv_cc_flag_unused_command_line_argument=yes
5209 else
5210 xorg_cv_cc_flag_unused_command_line_argument=no
5211 fi
5212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5213 fi
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5215 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5217 CFLAGS="$xorg_testset_save_CFLAGS"
5218 fi
5219
5220 found="no"
5221
5222 if test $found = "no" ; then
5223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5225 fi
5226
5227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5229 fi
5230
5231 CFLAGS="$CFLAGS -Wstrict-prototypes"
5232
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
5234 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
5235 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
5236 if eval \${$cacheid+:} false; then :
5237 $as_echo_n "(cached) " >&6
5238 else
5239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5240 /* end confdefs.h. */
5241 int i;
5242 int
5243 main ()
5244 {
5245
5246 ;
5247 return 0;
5248 }
5249 _ACEOF
5250 if ac_fn_c_try_link "$LINENO"; then :
5251 eval $cacheid=yes
5252 else
5253 eval $cacheid=no
5254 fi
5255 rm -f core conftest.err conftest.$ac_objext \
5256 conftest$ac_exeext conftest.$ac_ext
5257 fi
5258
5259
5260 CFLAGS="$xorg_testset_save_CFLAGS"
5261
5262 eval supported=\$$cacheid
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5264 $as_echo "$supported" >&6; }
5265 if test "$supported" = "yes" ; then
5266 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
5267 found="yes"
5268 fi
5269 fi
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285 xorg_testset_save_CFLAGS="$CFLAGS"
5286
5287 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5288 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5290 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5291 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295 /* end confdefs.h. */
5296 int i;
5297 _ACEOF
5298 if ac_fn_c_try_compile "$LINENO"; then :
5299 xorg_cv_cc_flag_unknown_warning_option=yes
5300 else
5301 xorg_cv_cc_flag_unknown_warning_option=no
5302 fi
5303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 fi
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5306 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5308 CFLAGS="$xorg_testset_save_CFLAGS"
5309 fi
5310
5311 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5314 fi
5315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5317 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5318 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
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"; then :
5326 xorg_cv_cc_flag_unused_command_line_argument=yes
5327 else
5328 xorg_cv_cc_flag_unused_command_line_argument=no
5329 fi
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5333 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5335 CFLAGS="$xorg_testset_save_CFLAGS"
5336 fi
5337
5338 found="no"
5339
5340 if test $found = "no" ; then
5341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5343 fi
5344
5345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5347 fi
5348
5349 CFLAGS="$CFLAGS -Wmissing-prototypes"
5350
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
5352 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
5353 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
5354 if eval \${$cacheid+:} false; then :
5355 $as_echo_n "(cached) " >&6
5356 else
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5359 int i;
5360 int
5361 main ()
5362 {
5363
5364 ;
5365 return 0;
5366 }
5367 _ACEOF
5368 if ac_fn_c_try_link "$LINENO"; then :
5369 eval $cacheid=yes
5370 else
5371 eval $cacheid=no
5372 fi
5373 rm -f core conftest.err conftest.$ac_objext \
5374 conftest$ac_exeext conftest.$ac_ext
5375 fi
5376
5377
5378 CFLAGS="$xorg_testset_save_CFLAGS"
5379
5380 eval supported=\$$cacheid
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5382 $as_echo "$supported" >&6; }
5383 if test "$supported" = "yes" ; then
5384 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
5385 found="yes"
5386 fi
5387 fi
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403 xorg_testset_save_CFLAGS="$CFLAGS"
5404
5405 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5408 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5409 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5410 $as_echo_n "(cached) " >&6
5411 else
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5414 int i;
5415 _ACEOF
5416 if ac_fn_c_try_compile "$LINENO"; then :
5417 xorg_cv_cc_flag_unknown_warning_option=yes
5418 else
5419 xorg_cv_cc_flag_unknown_warning_option=no
5420 fi
5421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5422 fi
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5424 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5426 CFLAGS="$xorg_testset_save_CFLAGS"
5427 fi
5428
5429 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5432 fi
5433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5435 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5436 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5441 int i;
5442 _ACEOF
5443 if ac_fn_c_try_compile "$LINENO"; then :
5444 xorg_cv_cc_flag_unused_command_line_argument=yes
5445 else
5446 xorg_cv_cc_flag_unused_command_line_argument=no
5447 fi
5448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5451 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5453 CFLAGS="$xorg_testset_save_CFLAGS"
5454 fi
5455
5456 found="no"
5457
5458 if test $found = "no" ; then
5459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5460 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5461 fi
5462
5463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5465 fi
5466
5467 CFLAGS="$CFLAGS -Wnested-externs"
5468
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
5470 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
5471 cacheid=xorg_cv_cc_flag__Wnested_externs
5472 if eval \${$cacheid+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5477 int i;
5478 int
5479 main ()
5480 {
5481
5482 ;
5483 return 0;
5484 }
5485 _ACEOF
5486 if ac_fn_c_try_link "$LINENO"; then :
5487 eval $cacheid=yes
5488 else
5489 eval $cacheid=no
5490 fi
5491 rm -f core conftest.err conftest.$ac_objext \
5492 conftest$ac_exeext conftest.$ac_ext
5493 fi
5494
5495
5496 CFLAGS="$xorg_testset_save_CFLAGS"
5497
5498 eval supported=\$$cacheid
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5500 $as_echo "$supported" >&6; }
5501 if test "$supported" = "yes" ; then
5502 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
5503 found="yes"
5504 fi
5505 fi
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521 xorg_testset_save_CFLAGS="$CFLAGS"
5522
5523 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5524 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5526 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5527 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5531 /* end confdefs.h. */
5532 int i;
5533 _ACEOF
5534 if ac_fn_c_try_compile "$LINENO"; then :
5535 xorg_cv_cc_flag_unknown_warning_option=yes
5536 else
5537 xorg_cv_cc_flag_unknown_warning_option=no
5538 fi
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 fi
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5542 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5543 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5544 CFLAGS="$xorg_testset_save_CFLAGS"
5545 fi
5546
5547 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5548 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5550 fi
5551 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5553 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5554 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5555 $as_echo_n "(cached) " >&6
5556 else
5557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5558 /* end confdefs.h. */
5559 int i;
5560 _ACEOF
5561 if ac_fn_c_try_compile "$LINENO"; then :
5562 xorg_cv_cc_flag_unused_command_line_argument=yes
5563 else
5564 xorg_cv_cc_flag_unused_command_line_argument=no
5565 fi
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5567 fi
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5569 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5570 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5571 CFLAGS="$xorg_testset_save_CFLAGS"
5572 fi
5573
5574 found="no"
5575
5576 if test $found = "no" ; then
5577 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5578 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5579 fi
5580
5581 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5583 fi
5584
5585 CFLAGS="$CFLAGS -Wbad-function-cast"
5586
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
5588 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
5589 cacheid=xorg_cv_cc_flag__Wbad_function_cast
5590 if eval \${$cacheid+:} false; then :
5591 $as_echo_n "(cached) " >&6
5592 else
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5595 int i;
5596 int
5597 main ()
5598 {
5599
5600 ;
5601 return 0;
5602 }
5603 _ACEOF
5604 if ac_fn_c_try_link "$LINENO"; then :
5605 eval $cacheid=yes
5606 else
5607 eval $cacheid=no
5608 fi
5609 rm -f core conftest.err conftest.$ac_objext \
5610 conftest$ac_exeext conftest.$ac_ext
5611 fi
5612
5613
5614 CFLAGS="$xorg_testset_save_CFLAGS"
5615
5616 eval supported=\$$cacheid
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5618 $as_echo "$supported" >&6; }
5619 if test "$supported" = "yes" ; then
5620 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
5621 found="yes"
5622 fi
5623 fi
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639 xorg_testset_save_CFLAGS="$CFLAGS"
5640
5641 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5642 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5644 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5645 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5650 int i;
5651 _ACEOF
5652 if ac_fn_c_try_compile "$LINENO"; then :
5653 xorg_cv_cc_flag_unknown_warning_option=yes
5654 else
5655 xorg_cv_cc_flag_unknown_warning_option=no
5656 fi
5657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5658 fi
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5660 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5661 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5662 CFLAGS="$xorg_testset_save_CFLAGS"
5663 fi
5664
5665 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5666 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5668 fi
5669 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5671 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5672 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5673 $as_echo_n "(cached) " >&6
5674 else
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677 int i;
5678 _ACEOF
5679 if ac_fn_c_try_compile "$LINENO"; then :
5680 xorg_cv_cc_flag_unused_command_line_argument=yes
5681 else
5682 xorg_cv_cc_flag_unused_command_line_argument=no
5683 fi
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 fi
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5687 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5688 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5689 CFLAGS="$xorg_testset_save_CFLAGS"
5690 fi
5691
5692 found="no"
5693
5694 if test $found = "no" ; then
5695 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5696 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5697 fi
5698
5699 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5701 fi
5702
5703 CFLAGS="$CFLAGS -Wold-style-definition"
5704
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
5706 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
5707 cacheid=xorg_cv_cc_flag__Wold_style_definition
5708 if eval \${$cacheid+:} false; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 int i;
5714 int
5715 main ()
5716 {
5717
5718 ;
5719 return 0;
5720 }
5721 _ACEOF
5722 if ac_fn_c_try_link "$LINENO"; then :
5723 eval $cacheid=yes
5724 else
5725 eval $cacheid=no
5726 fi
5727 rm -f core conftest.err conftest.$ac_objext \
5728 conftest$ac_exeext conftest.$ac_ext
5729 fi
5730
5731
5732 CFLAGS="$xorg_testset_save_CFLAGS"
5733
5734 eval supported=\$$cacheid
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5736 $as_echo "$supported" >&6; }
5737 if test "$supported" = "yes" ; then
5738 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
5739 found="yes"
5740 fi
5741 fi
5742
5743 if test $found = "no" ; then
5744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5746 fi
5747
5748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5750 fi
5751
5752 CFLAGS="$CFLAGS -fd"
5753
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
5755 $as_echo_n "checking if $CC supports -fd... " >&6; }
5756 cacheid=xorg_cv_cc_flag__fd
5757 if eval \${$cacheid+:} false; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5761 /* end confdefs.h. */
5762 int i;
5763 int
5764 main ()
5765 {
5766
5767 ;
5768 return 0;
5769 }
5770 _ACEOF
5771 if ac_fn_c_try_link "$LINENO"; then :
5772 eval $cacheid=yes
5773 else
5774 eval $cacheid=no
5775 fi
5776 rm -f core conftest.err conftest.$ac_objext \
5777 conftest$ac_exeext conftest.$ac_ext
5778 fi
5779
5780
5781 CFLAGS="$xorg_testset_save_CFLAGS"
5782
5783 eval supported=\$$cacheid
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5785 $as_echo "$supported" >&6; }
5786 if test "$supported" = "yes" ; then
5787 BASE_CFLAGS="$BASE_CFLAGS -fd"
5788 found="yes"
5789 fi
5790 fi
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806 xorg_testset_save_CFLAGS="$CFLAGS"
5807
5808 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5809 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5811 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5812 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817 int i;
5818 _ACEOF
5819 if ac_fn_c_try_compile "$LINENO"; then :
5820 xorg_cv_cc_flag_unknown_warning_option=yes
5821 else
5822 xorg_cv_cc_flag_unknown_warning_option=no
5823 fi
5824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5825 fi
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5827 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5829 CFLAGS="$xorg_testset_save_CFLAGS"
5830 fi
5831
5832 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5835 fi
5836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5838 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5839 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5844 int i;
5845 _ACEOF
5846 if ac_fn_c_try_compile "$LINENO"; then :
5847 xorg_cv_cc_flag_unused_command_line_argument=yes
5848 else
5849 xorg_cv_cc_flag_unused_command_line_argument=no
5850 fi
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852 fi
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5854 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5856 CFLAGS="$xorg_testset_save_CFLAGS"
5857 fi
5858
5859 found="no"
5860
5861 if test $found = "no" ; then
5862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5864 fi
5865
5866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5868 fi
5869
5870 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
5871
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
5873 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
5874 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
5875 if eval \${$cacheid+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5879 /* end confdefs.h. */
5880 int i;
5881 int
5882 main ()
5883 {
5884
5885 ;
5886 return 0;
5887 }
5888 _ACEOF
5889 if ac_fn_c_try_link "$LINENO"; then :
5890 eval $cacheid=yes
5891 else
5892 eval $cacheid=no
5893 fi
5894 rm -f core conftest.err conftest.$ac_objext \
5895 conftest$ac_exeext conftest.$ac_ext
5896 fi
5897
5898
5899 CFLAGS="$xorg_testset_save_CFLAGS"
5900
5901 eval supported=\$$cacheid
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
5903 $as_echo "$supported" >&6; }
5904 if test "$supported" = "yes" ; then
5905 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
5906 found="yes"
5907 fi
5908 fi
5909
5910
5911
5912
5913
5914 # This chunk adds additional warnings that could catch undesired effects.
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928 xorg_testset_save_CFLAGS="$CFLAGS"
5929
5930 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
5931 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
5933 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
5934 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
5935 $as_echo_n "(cached) " >&6
5936 else
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5939 int i;
5940 _ACEOF
5941 if ac_fn_c_try_compile "$LINENO"; then :
5942 xorg_cv_cc_flag_unknown_warning_option=yes
5943 else
5944 xorg_cv_cc_flag_unknown_warning_option=no
5945 fi
5946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5947 fi
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
5949 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
5950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
5951 CFLAGS="$xorg_testset_save_CFLAGS"
5952 fi
5953
5954 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
5955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5957 fi
5958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
5960 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
5961 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5965 /* end confdefs.h. */
5966 int i;
5967 _ACEOF
5968 if ac_fn_c_try_compile "$LINENO"; then :
5969 xorg_cv_cc_flag_unused_command_line_argument=yes
5970 else
5971 xorg_cv_cc_flag_unused_command_line_argument=no
5972 fi
5973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5974 fi
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
5976 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
5977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
5978 CFLAGS="$xorg_testset_save_CFLAGS"
5979 fi
5980
5981 found="no"
5982
5983 if test $found = "no" ; then
5984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
5985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
5986 fi
5987
5988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
5989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
5990 fi
5991
5992 CFLAGS="$CFLAGS -Wunused"
5993
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
5995 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
5996 cacheid=xorg_cv_cc_flag__Wunused
5997 if eval \${$cacheid+:} false; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6002 int i;
6003 int
6004 main ()
6005 {
6006
6007 ;
6008 return 0;
6009 }
6010 _ACEOF
6011 if ac_fn_c_try_link "$LINENO"; then :
6012 eval $cacheid=yes
6013 else
6014 eval $cacheid=no
6015 fi
6016 rm -f core conftest.err conftest.$ac_objext \
6017 conftest$ac_exeext conftest.$ac_ext
6018 fi
6019
6020
6021 CFLAGS="$xorg_testset_save_CFLAGS"
6022
6023 eval supported=\$$cacheid
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6025 $as_echo "$supported" >&6; }
6026 if test "$supported" = "yes" ; then
6027 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
6028 found="yes"
6029 fi
6030 fi
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046 xorg_testset_save_CFLAGS="$CFLAGS"
6047
6048 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6049 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6051 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6052 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6057 int i;
6058 _ACEOF
6059 if ac_fn_c_try_compile "$LINENO"; then :
6060 xorg_cv_cc_flag_unknown_warning_option=yes
6061 else
6062 xorg_cv_cc_flag_unknown_warning_option=no
6063 fi
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 fi
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6067 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6068 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6069 CFLAGS="$xorg_testset_save_CFLAGS"
6070 fi
6071
6072 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6075 fi
6076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6078 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6079 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6084 int i;
6085 _ACEOF
6086 if ac_fn_c_try_compile "$LINENO"; then :
6087 xorg_cv_cc_flag_unused_command_line_argument=yes
6088 else
6089 xorg_cv_cc_flag_unused_command_line_argument=no
6090 fi
6091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 fi
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6094 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6095 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6096 CFLAGS="$xorg_testset_save_CFLAGS"
6097 fi
6098
6099 found="no"
6100
6101 if test $found = "no" ; then
6102 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6103 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6104 fi
6105
6106 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6107 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6108 fi
6109
6110 CFLAGS="$CFLAGS -Wuninitialized"
6111
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
6113 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
6114 cacheid=xorg_cv_cc_flag__Wuninitialized
6115 if eval \${$cacheid+:} false; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6120 int i;
6121 int
6122 main ()
6123 {
6124
6125 ;
6126 return 0;
6127 }
6128 _ACEOF
6129 if ac_fn_c_try_link "$LINENO"; then :
6130 eval $cacheid=yes
6131 else
6132 eval $cacheid=no
6133 fi
6134 rm -f core conftest.err conftest.$ac_objext \
6135 conftest$ac_exeext conftest.$ac_ext
6136 fi
6137
6138
6139 CFLAGS="$xorg_testset_save_CFLAGS"
6140
6141 eval supported=\$$cacheid
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6143 $as_echo "$supported" >&6; }
6144 if test "$supported" = "yes" ; then
6145 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
6146 found="yes"
6147 fi
6148 fi
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164 xorg_testset_save_CFLAGS="$CFLAGS"
6165
6166 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6167 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6169 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6170 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172 else
6173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175 int i;
6176 _ACEOF
6177 if ac_fn_c_try_compile "$LINENO"; then :
6178 xorg_cv_cc_flag_unknown_warning_option=yes
6179 else
6180 xorg_cv_cc_flag_unknown_warning_option=no
6181 fi
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 fi
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6185 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6186 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6187 CFLAGS="$xorg_testset_save_CFLAGS"
6188 fi
6189
6190 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6193 fi
6194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6196 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6197 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6198 $as_echo_n "(cached) " >&6
6199 else
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 int i;
6203 _ACEOF
6204 if ac_fn_c_try_compile "$LINENO"; then :
6205 xorg_cv_cc_flag_unused_command_line_argument=yes
6206 else
6207 xorg_cv_cc_flag_unused_command_line_argument=no
6208 fi
6209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6210 fi
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6212 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6213 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6214 CFLAGS="$xorg_testset_save_CFLAGS"
6215 fi
6216
6217 found="no"
6218
6219 if test $found = "no" ; then
6220 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6222 fi
6223
6224 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6226 fi
6227
6228 CFLAGS="$CFLAGS -Wshadow"
6229
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
6231 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
6232 cacheid=xorg_cv_cc_flag__Wshadow
6233 if eval \${$cacheid+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6238 int i;
6239 int
6240 main ()
6241 {
6242
6243 ;
6244 return 0;
6245 }
6246 _ACEOF
6247 if ac_fn_c_try_link "$LINENO"; then :
6248 eval $cacheid=yes
6249 else
6250 eval $cacheid=no
6251 fi
6252 rm -f core conftest.err conftest.$ac_objext \
6253 conftest$ac_exeext conftest.$ac_ext
6254 fi
6255
6256
6257 CFLAGS="$xorg_testset_save_CFLAGS"
6258
6259 eval supported=\$$cacheid
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6261 $as_echo "$supported" >&6; }
6262 if test "$supported" = "yes" ; then
6263 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
6264 found="yes"
6265 fi
6266 fi
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282 xorg_testset_save_CFLAGS="$CFLAGS"
6283
6284 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6287 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6288 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6289 $as_echo_n "(cached) " >&6
6290 else
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6293 int i;
6294 _ACEOF
6295 if ac_fn_c_try_compile "$LINENO"; then :
6296 xorg_cv_cc_flag_unknown_warning_option=yes
6297 else
6298 xorg_cv_cc_flag_unknown_warning_option=no
6299 fi
6300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6301 fi
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6303 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6304 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6305 CFLAGS="$xorg_testset_save_CFLAGS"
6306 fi
6307
6308 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6309 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6310 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6311 fi
6312 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6314 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6315 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6316 $as_echo_n "(cached) " >&6
6317 else
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6320 int i;
6321 _ACEOF
6322 if ac_fn_c_try_compile "$LINENO"; then :
6323 xorg_cv_cc_flag_unused_command_line_argument=yes
6324 else
6325 xorg_cv_cc_flag_unused_command_line_argument=no
6326 fi
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328 fi
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6330 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6331 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6332 CFLAGS="$xorg_testset_save_CFLAGS"
6333 fi
6334
6335 found="no"
6336
6337 if test $found = "no" ; then
6338 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6339 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6340 fi
6341
6342 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6344 fi
6345
6346 CFLAGS="$CFLAGS -Wmissing-noreturn"
6347
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
6349 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
6350 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
6351 if eval \${$cacheid+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6356 int i;
6357 int
6358 main ()
6359 {
6360
6361 ;
6362 return 0;
6363 }
6364 _ACEOF
6365 if ac_fn_c_try_link "$LINENO"; then :
6366 eval $cacheid=yes
6367 else
6368 eval $cacheid=no
6369 fi
6370 rm -f core conftest.err conftest.$ac_objext \
6371 conftest$ac_exeext conftest.$ac_ext
6372 fi
6373
6374
6375 CFLAGS="$xorg_testset_save_CFLAGS"
6376
6377 eval supported=\$$cacheid
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6379 $as_echo "$supported" >&6; }
6380 if test "$supported" = "yes" ; then
6381 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
6382 found="yes"
6383 fi
6384 fi
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400 xorg_testset_save_CFLAGS="$CFLAGS"
6401
6402 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6405 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6406 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6407 $as_echo_n "(cached) " >&6
6408 else
6409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6410 /* end confdefs.h. */
6411 int i;
6412 _ACEOF
6413 if ac_fn_c_try_compile "$LINENO"; then :
6414 xorg_cv_cc_flag_unknown_warning_option=yes
6415 else
6416 xorg_cv_cc_flag_unknown_warning_option=no
6417 fi
6418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6419 fi
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6421 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6422 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6423 CFLAGS="$xorg_testset_save_CFLAGS"
6424 fi
6425
6426 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6427 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6428 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6429 fi
6430 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6432 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6433 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6434 $as_echo_n "(cached) " >&6
6435 else
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6438 int i;
6439 _ACEOF
6440 if ac_fn_c_try_compile "$LINENO"; then :
6441 xorg_cv_cc_flag_unused_command_line_argument=yes
6442 else
6443 xorg_cv_cc_flag_unused_command_line_argument=no
6444 fi
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446 fi
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6448 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6449 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6450 CFLAGS="$xorg_testset_save_CFLAGS"
6451 fi
6452
6453 found="no"
6454
6455 if test $found = "no" ; then
6456 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6457 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6458 fi
6459
6460 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6461 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6462 fi
6463
6464 CFLAGS="$CFLAGS -Wmissing-format-attribute"
6465
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
6467 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
6468 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
6469 if eval \${$cacheid+:} false; then :
6470 $as_echo_n "(cached) " >&6
6471 else
6472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6473 /* end confdefs.h. */
6474 int i;
6475 int
6476 main ()
6477 {
6478
6479 ;
6480 return 0;
6481 }
6482 _ACEOF
6483 if ac_fn_c_try_link "$LINENO"; then :
6484 eval $cacheid=yes
6485 else
6486 eval $cacheid=no
6487 fi
6488 rm -f core conftest.err conftest.$ac_objext \
6489 conftest$ac_exeext conftest.$ac_ext
6490 fi
6491
6492
6493 CFLAGS="$xorg_testset_save_CFLAGS"
6494
6495 eval supported=\$$cacheid
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6497 $as_echo "$supported" >&6; }
6498 if test "$supported" = "yes" ; then
6499 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
6500 found="yes"
6501 fi
6502 fi
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518 xorg_testset_save_CFLAGS="$CFLAGS"
6519
6520 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6523 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6524 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6525 $as_echo_n "(cached) " >&6
6526 else
6527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6528 /* end confdefs.h. */
6529 int i;
6530 _ACEOF
6531 if ac_fn_c_try_compile "$LINENO"; then :
6532 xorg_cv_cc_flag_unknown_warning_option=yes
6533 else
6534 xorg_cv_cc_flag_unknown_warning_option=no
6535 fi
6536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 fi
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6539 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6540 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6541 CFLAGS="$xorg_testset_save_CFLAGS"
6542 fi
6543
6544 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6545 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6546 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6547 fi
6548 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6550 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6551 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6552 $as_echo_n "(cached) " >&6
6553 else
6554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6555 /* end confdefs.h. */
6556 int i;
6557 _ACEOF
6558 if ac_fn_c_try_compile "$LINENO"; then :
6559 xorg_cv_cc_flag_unused_command_line_argument=yes
6560 else
6561 xorg_cv_cc_flag_unused_command_line_argument=no
6562 fi
6563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6564 fi
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6566 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6568 CFLAGS="$xorg_testset_save_CFLAGS"
6569 fi
6570
6571 found="no"
6572
6573 if test $found = "no" ; then
6574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6576 fi
6577
6578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6580 fi
6581
6582 CFLAGS="$CFLAGS -Wredundant-decls"
6583
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
6585 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
6586 cacheid=xorg_cv_cc_flag__Wredundant_decls
6587 if eval \${$cacheid+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592 int i;
6593 int
6594 main ()
6595 {
6596
6597 ;
6598 return 0;
6599 }
6600 _ACEOF
6601 if ac_fn_c_try_link "$LINENO"; then :
6602 eval $cacheid=yes
6603 else
6604 eval $cacheid=no
6605 fi
6606 rm -f core conftest.err conftest.$ac_objext \
6607 conftest$ac_exeext conftest.$ac_ext
6608 fi
6609
6610
6611 CFLAGS="$xorg_testset_save_CFLAGS"
6612
6613 eval supported=\$$cacheid
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6615 $as_echo "$supported" >&6; }
6616 if test "$supported" = "yes" ; then
6617 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
6618 found="yes"
6619 fi
6620 fi
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636 xorg_testset_save_CFLAGS="$CFLAGS"
6637
6638 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6641 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6642 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6643 $as_echo_n "(cached) " >&6
6644 else
6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646 /* end confdefs.h. */
6647 int i;
6648 _ACEOF
6649 if ac_fn_c_try_compile "$LINENO"; then :
6650 xorg_cv_cc_flag_unknown_warning_option=yes
6651 else
6652 xorg_cv_cc_flag_unknown_warning_option=no
6653 fi
6654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6655 fi
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6657 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6659 CFLAGS="$xorg_testset_save_CFLAGS"
6660 fi
6661
6662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6665 fi
6666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6668 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6669 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673 /* end confdefs.h. */
6674 int i;
6675 _ACEOF
6676 if ac_fn_c_try_compile "$LINENO"; then :
6677 xorg_cv_cc_flag_unused_command_line_argument=yes
6678 else
6679 xorg_cv_cc_flag_unused_command_line_argument=no
6680 fi
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682 fi
6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6684 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6685 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6686 CFLAGS="$xorg_testset_save_CFLAGS"
6687 fi
6688
6689 found="no"
6690
6691 if test $found = "no" ; then
6692 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6694 fi
6695
6696 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6697 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6698 fi
6699
6700 CFLAGS="$CFLAGS -Wlogical-op"
6701
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
6703 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
6704 cacheid=xorg_cv_cc_flag__Wlogical_op
6705 if eval \${$cacheid+:} false; then :
6706 $as_echo_n "(cached) " >&6
6707 else
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6710 int i;
6711 int
6712 main ()
6713 {
6714
6715 ;
6716 return 0;
6717 }
6718 _ACEOF
6719 if ac_fn_c_try_link "$LINENO"; then :
6720 eval $cacheid=yes
6721 else
6722 eval $cacheid=no
6723 fi
6724 rm -f core conftest.err conftest.$ac_objext \
6725 conftest$ac_exeext conftest.$ac_ext
6726 fi
6727
6728
6729 CFLAGS="$xorg_testset_save_CFLAGS"
6730
6731 eval supported=\$$cacheid
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6733 $as_echo "$supported" >&6; }
6734 if test "$supported" = "yes" ; then
6735 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
6736 found="yes"
6737 fi
6738 fi
6739
6740
6741
6742 # These are currently disabled because they are noisy. They will be enabled
6743 # in the future once the codebase is sufficiently modernized to silence
6744 # them. For now, I don't want them to drown out the other warnings.
6745 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
6746 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
6747 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
6748
6749 # Turn some warnings into errors, so we don't accidently get successful builds
6750 # when there are problems that should be fixed.
6751
6752 if test "x$SELECTIVE_WERROR" = "xyes" ; then
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766 xorg_testset_save_CFLAGS="$CFLAGS"
6767
6768 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6769 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6771 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6772 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6773 $as_echo_n "(cached) " >&6
6774 else
6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6776 /* end confdefs.h. */
6777 int i;
6778 _ACEOF
6779 if ac_fn_c_try_compile "$LINENO"; then :
6780 xorg_cv_cc_flag_unknown_warning_option=yes
6781 else
6782 xorg_cv_cc_flag_unknown_warning_option=no
6783 fi
6784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 fi
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6787 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6788 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6789 CFLAGS="$xorg_testset_save_CFLAGS"
6790 fi
6791
6792 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6795 fi
6796 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6798 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6799 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6803 /* end confdefs.h. */
6804 int i;
6805 _ACEOF
6806 if ac_fn_c_try_compile "$LINENO"; then :
6807 xorg_cv_cc_flag_unused_command_line_argument=yes
6808 else
6809 xorg_cv_cc_flag_unused_command_line_argument=no
6810 fi
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 fi
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6814 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6815 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6816 CFLAGS="$xorg_testset_save_CFLAGS"
6817 fi
6818
6819 found="no"
6820
6821 if test $found = "no" ; then
6822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6824 fi
6825
6826 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6828 fi
6829
6830 CFLAGS="$CFLAGS -Werror=implicit"
6831
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
6833 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
6834 cacheid=xorg_cv_cc_flag__Werror_implicit
6835 if eval \${$cacheid+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6840 int i;
6841 int
6842 main ()
6843 {
6844
6845 ;
6846 return 0;
6847 }
6848 _ACEOF
6849 if ac_fn_c_try_link "$LINENO"; then :
6850 eval $cacheid=yes
6851 else
6852 eval $cacheid=no
6853 fi
6854 rm -f core conftest.err conftest.$ac_objext \
6855 conftest$ac_exeext conftest.$ac_ext
6856 fi
6857
6858
6859 CFLAGS="$xorg_testset_save_CFLAGS"
6860
6861 eval supported=\$$cacheid
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6863 $as_echo "$supported" >&6; }
6864 if test "$supported" = "yes" ; then
6865 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
6866 found="yes"
6867 fi
6868 fi
6869
6870 if test $found = "no" ; then
6871 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6872 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6873 fi
6874
6875 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6876 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6877 fi
6878
6879 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6880
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
6882 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
6883 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
6884 if eval \${$cacheid+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886 else
6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6888 /* end confdefs.h. */
6889 int i;
6890 int
6891 main ()
6892 {
6893
6894 ;
6895 return 0;
6896 }
6897 _ACEOF
6898 if ac_fn_c_try_link "$LINENO"; then :
6899 eval $cacheid=yes
6900 else
6901 eval $cacheid=no
6902 fi
6903 rm -f core conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6905 fi
6906
6907
6908 CFLAGS="$xorg_testset_save_CFLAGS"
6909
6910 eval supported=\$$cacheid
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
6912 $as_echo "$supported" >&6; }
6913 if test "$supported" = "yes" ; then
6914 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
6915 found="yes"
6916 fi
6917 fi
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933 xorg_testset_save_CFLAGS="$CFLAGS"
6934
6935 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
6936 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
6938 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
6939 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
6940 $as_echo_n "(cached) " >&6
6941 else
6942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6943 /* end confdefs.h. */
6944 int i;
6945 _ACEOF
6946 if ac_fn_c_try_compile "$LINENO"; then :
6947 xorg_cv_cc_flag_unknown_warning_option=yes
6948 else
6949 xorg_cv_cc_flag_unknown_warning_option=no
6950 fi
6951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6952 fi
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
6954 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
6955 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
6956 CFLAGS="$xorg_testset_save_CFLAGS"
6957 fi
6958
6959 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
6960 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6962 fi
6963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
6965 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
6966 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
6967 $as_echo_n "(cached) " >&6
6968 else
6969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h. */
6971 int i;
6972 _ACEOF
6973 if ac_fn_c_try_compile "$LINENO"; then :
6974 xorg_cv_cc_flag_unused_command_line_argument=yes
6975 else
6976 xorg_cv_cc_flag_unused_command_line_argument=no
6977 fi
6978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6979 fi
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
6981 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
6982 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
6983 CFLAGS="$xorg_testset_save_CFLAGS"
6984 fi
6985
6986 found="no"
6987
6988 if test $found = "no" ; then
6989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
6990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
6991 fi
6992
6993 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
6994 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
6995 fi
6996
6997 CFLAGS="$CFLAGS -Werror=nonnull"
6998
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
7000 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
7001 cacheid=xorg_cv_cc_flag__Werror_nonnull
7002 if eval \${$cacheid+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7007 int i;
7008 int
7009 main ()
7010 {
7011
7012 ;
7013 return 0;
7014 }
7015 _ACEOF
7016 if ac_fn_c_try_link "$LINENO"; then :
7017 eval $cacheid=yes
7018 else
7019 eval $cacheid=no
7020 fi
7021 rm -f core conftest.err conftest.$ac_objext \
7022 conftest$ac_exeext conftest.$ac_ext
7023 fi
7024
7025
7026 CFLAGS="$xorg_testset_save_CFLAGS"
7027
7028 eval supported=\$$cacheid
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7030 $as_echo "$supported" >&6; }
7031 if test "$supported" = "yes" ; then
7032 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
7033 found="yes"
7034 fi
7035 fi
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051 xorg_testset_save_CFLAGS="$CFLAGS"
7052
7053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7056 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7057 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7058 $as_echo_n "(cached) " >&6
7059 else
7060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7062 int i;
7063 _ACEOF
7064 if ac_fn_c_try_compile "$LINENO"; then :
7065 xorg_cv_cc_flag_unknown_warning_option=yes
7066 else
7067 xorg_cv_cc_flag_unknown_warning_option=no
7068 fi
7069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 fi
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7072 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7074 CFLAGS="$xorg_testset_save_CFLAGS"
7075 fi
7076
7077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7080 fi
7081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7083 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7084 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7088 /* end confdefs.h. */
7089 int i;
7090 _ACEOF
7091 if ac_fn_c_try_compile "$LINENO"; then :
7092 xorg_cv_cc_flag_unused_command_line_argument=yes
7093 else
7094 xorg_cv_cc_flag_unused_command_line_argument=no
7095 fi
7096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097 fi
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7099 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7101 CFLAGS="$xorg_testset_save_CFLAGS"
7102 fi
7103
7104 found="no"
7105
7106 if test $found = "no" ; then
7107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7109 fi
7110
7111 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7113 fi
7114
7115 CFLAGS="$CFLAGS -Werror=init-self"
7116
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
7118 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
7119 cacheid=xorg_cv_cc_flag__Werror_init_self
7120 if eval \${$cacheid+:} false; then :
7121 $as_echo_n "(cached) " >&6
7122 else
7123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7124 /* end confdefs.h. */
7125 int i;
7126 int
7127 main ()
7128 {
7129
7130 ;
7131 return 0;
7132 }
7133 _ACEOF
7134 if ac_fn_c_try_link "$LINENO"; then :
7135 eval $cacheid=yes
7136 else
7137 eval $cacheid=no
7138 fi
7139 rm -f core conftest.err conftest.$ac_objext \
7140 conftest$ac_exeext conftest.$ac_ext
7141 fi
7142
7143
7144 CFLAGS="$xorg_testset_save_CFLAGS"
7145
7146 eval supported=\$$cacheid
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7148 $as_echo "$supported" >&6; }
7149 if test "$supported" = "yes" ; then
7150 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
7151 found="yes"
7152 fi
7153 fi
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169 xorg_testset_save_CFLAGS="$CFLAGS"
7170
7171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7174 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7175 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7180 int i;
7181 _ACEOF
7182 if ac_fn_c_try_compile "$LINENO"; then :
7183 xorg_cv_cc_flag_unknown_warning_option=yes
7184 else
7185 xorg_cv_cc_flag_unknown_warning_option=no
7186 fi
7187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7188 fi
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7190 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7192 CFLAGS="$xorg_testset_save_CFLAGS"
7193 fi
7194
7195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7198 fi
7199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7201 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7202 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206 /* end confdefs.h. */
7207 int i;
7208 _ACEOF
7209 if ac_fn_c_try_compile "$LINENO"; then :
7210 xorg_cv_cc_flag_unused_command_line_argument=yes
7211 else
7212 xorg_cv_cc_flag_unused_command_line_argument=no
7213 fi
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215 fi
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7217 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7219 CFLAGS="$xorg_testset_save_CFLAGS"
7220 fi
7221
7222 found="no"
7223
7224 if test $found = "no" ; then
7225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7227 fi
7228
7229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7231 fi
7232
7233 CFLAGS="$CFLAGS -Werror=main"
7234
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
7236 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
7237 cacheid=xorg_cv_cc_flag__Werror_main
7238 if eval \${$cacheid+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243 int i;
7244 int
7245 main ()
7246 {
7247
7248 ;
7249 return 0;
7250 }
7251 _ACEOF
7252 if ac_fn_c_try_link "$LINENO"; then :
7253 eval $cacheid=yes
7254 else
7255 eval $cacheid=no
7256 fi
7257 rm -f core conftest.err conftest.$ac_objext \
7258 conftest$ac_exeext conftest.$ac_ext
7259 fi
7260
7261
7262 CFLAGS="$xorg_testset_save_CFLAGS"
7263
7264 eval supported=\$$cacheid
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7266 $as_echo "$supported" >&6; }
7267 if test "$supported" = "yes" ; then
7268 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
7269 found="yes"
7270 fi
7271 fi
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287 xorg_testset_save_CFLAGS="$CFLAGS"
7288
7289 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7290 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7292 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7293 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7294 $as_echo_n "(cached) " >&6
7295 else
7296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297 /* end confdefs.h. */
7298 int i;
7299 _ACEOF
7300 if ac_fn_c_try_compile "$LINENO"; then :
7301 xorg_cv_cc_flag_unknown_warning_option=yes
7302 else
7303 xorg_cv_cc_flag_unknown_warning_option=no
7304 fi
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 fi
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7308 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7310 CFLAGS="$xorg_testset_save_CFLAGS"
7311 fi
7312
7313 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7316 fi
7317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7319 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7320 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7321 $as_echo_n "(cached) " >&6
7322 else
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"; then :
7328 xorg_cv_cc_flag_unused_command_line_argument=yes
7329 else
7330 xorg_cv_cc_flag_unused_command_line_argument=no
7331 fi
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 fi
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7335 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7337 CFLAGS="$xorg_testset_save_CFLAGS"
7338 fi
7339
7340 found="no"
7341
7342 if test $found = "no" ; then
7343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7345 fi
7346
7347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7349 fi
7350
7351 CFLAGS="$CFLAGS -Werror=missing-braces"
7352
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
7354 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
7355 cacheid=xorg_cv_cc_flag__Werror_missing_braces
7356 if eval \${$cacheid+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7360 /* end confdefs.h. */
7361 int i;
7362 int
7363 main ()
7364 {
7365
7366 ;
7367 return 0;
7368 }
7369 _ACEOF
7370 if ac_fn_c_try_link "$LINENO"; then :
7371 eval $cacheid=yes
7372 else
7373 eval $cacheid=no
7374 fi
7375 rm -f core conftest.err conftest.$ac_objext \
7376 conftest$ac_exeext conftest.$ac_ext
7377 fi
7378
7379
7380 CFLAGS="$xorg_testset_save_CFLAGS"
7381
7382 eval supported=\$$cacheid
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7384 $as_echo "$supported" >&6; }
7385 if test "$supported" = "yes" ; then
7386 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
7387 found="yes"
7388 fi
7389 fi
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405 xorg_testset_save_CFLAGS="$CFLAGS"
7406
7407 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7410 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7411 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7415 /* end confdefs.h. */
7416 int i;
7417 _ACEOF
7418 if ac_fn_c_try_compile "$LINENO"; then :
7419 xorg_cv_cc_flag_unknown_warning_option=yes
7420 else
7421 xorg_cv_cc_flag_unknown_warning_option=no
7422 fi
7423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424 fi
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7426 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7428 CFLAGS="$xorg_testset_save_CFLAGS"
7429 fi
7430
7431 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7434 fi
7435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7437 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7438 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h. */
7443 int i;
7444 _ACEOF
7445 if ac_fn_c_try_compile "$LINENO"; then :
7446 xorg_cv_cc_flag_unused_command_line_argument=yes
7447 else
7448 xorg_cv_cc_flag_unused_command_line_argument=no
7449 fi
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 fi
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7453 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7455 CFLAGS="$xorg_testset_save_CFLAGS"
7456 fi
7457
7458 found="no"
7459
7460 if test $found = "no" ; then
7461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7463 fi
7464
7465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7467 fi
7468
7469 CFLAGS="$CFLAGS -Werror=sequence-point"
7470
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
7472 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
7473 cacheid=xorg_cv_cc_flag__Werror_sequence_point
7474 if eval \${$cacheid+:} false; then :
7475 $as_echo_n "(cached) " >&6
7476 else
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7479 int i;
7480 int
7481 main ()
7482 {
7483
7484 ;
7485 return 0;
7486 }
7487 _ACEOF
7488 if ac_fn_c_try_link "$LINENO"; then :
7489 eval $cacheid=yes
7490 else
7491 eval $cacheid=no
7492 fi
7493 rm -f core conftest.err conftest.$ac_objext \
7494 conftest$ac_exeext conftest.$ac_ext
7495 fi
7496
7497
7498 CFLAGS="$xorg_testset_save_CFLAGS"
7499
7500 eval supported=\$$cacheid
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7502 $as_echo "$supported" >&6; }
7503 if test "$supported" = "yes" ; then
7504 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
7505 found="yes"
7506 fi
7507 fi
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523 xorg_testset_save_CFLAGS="$CFLAGS"
7524
7525 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7526 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7528 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7529 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7530 $as_echo_n "(cached) " >&6
7531 else
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7534 int i;
7535 _ACEOF
7536 if ac_fn_c_try_compile "$LINENO"; then :
7537 xorg_cv_cc_flag_unknown_warning_option=yes
7538 else
7539 xorg_cv_cc_flag_unknown_warning_option=no
7540 fi
7541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542 fi
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7544 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7546 CFLAGS="$xorg_testset_save_CFLAGS"
7547 fi
7548
7549 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7552 fi
7553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7555 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7556 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7557 $as_echo_n "(cached) " >&6
7558 else
7559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7560 /* end confdefs.h. */
7561 int i;
7562 _ACEOF
7563 if ac_fn_c_try_compile "$LINENO"; then :
7564 xorg_cv_cc_flag_unused_command_line_argument=yes
7565 else
7566 xorg_cv_cc_flag_unused_command_line_argument=no
7567 fi
7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569 fi
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7571 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7573 CFLAGS="$xorg_testset_save_CFLAGS"
7574 fi
7575
7576 found="no"
7577
7578 if test $found = "no" ; then
7579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7581 fi
7582
7583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7585 fi
7586
7587 CFLAGS="$CFLAGS -Werror=return-type"
7588
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
7590 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
7591 cacheid=xorg_cv_cc_flag__Werror_return_type
7592 if eval \${$cacheid+:} false; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7596 /* end confdefs.h. */
7597 int i;
7598 int
7599 main ()
7600 {
7601
7602 ;
7603 return 0;
7604 }
7605 _ACEOF
7606 if ac_fn_c_try_link "$LINENO"; then :
7607 eval $cacheid=yes
7608 else
7609 eval $cacheid=no
7610 fi
7611 rm -f core conftest.err conftest.$ac_objext \
7612 conftest$ac_exeext conftest.$ac_ext
7613 fi
7614
7615
7616 CFLAGS="$xorg_testset_save_CFLAGS"
7617
7618 eval supported=\$$cacheid
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7620 $as_echo "$supported" >&6; }
7621 if test "$supported" = "yes" ; then
7622 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
7623 found="yes"
7624 fi
7625 fi
7626
7627 if test $found = "no" ; then
7628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7630 fi
7631
7632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7634 fi
7635
7636 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7637
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
7639 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
7640 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
7641 if eval \${$cacheid+:} false; then :
7642 $as_echo_n "(cached) " >&6
7643 else
7644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646 int i;
7647 int
7648 main ()
7649 {
7650
7651 ;
7652 return 0;
7653 }
7654 _ACEOF
7655 if ac_fn_c_try_link "$LINENO"; then :
7656 eval $cacheid=yes
7657 else
7658 eval $cacheid=no
7659 fi
7660 rm -f core conftest.err conftest.$ac_objext \
7661 conftest$ac_exeext conftest.$ac_ext
7662 fi
7663
7664
7665 CFLAGS="$xorg_testset_save_CFLAGS"
7666
7667 eval supported=\$$cacheid
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7669 $as_echo "$supported" >&6; }
7670 if test "$supported" = "yes" ; then
7671 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
7672 found="yes"
7673 fi
7674 fi
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690 xorg_testset_save_CFLAGS="$CFLAGS"
7691
7692 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7693 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7695 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7696 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7701 int i;
7702 _ACEOF
7703 if ac_fn_c_try_compile "$LINENO"; then :
7704 xorg_cv_cc_flag_unknown_warning_option=yes
7705 else
7706 xorg_cv_cc_flag_unknown_warning_option=no
7707 fi
7708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7709 fi
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7711 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7712 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7713 CFLAGS="$xorg_testset_save_CFLAGS"
7714 fi
7715
7716 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7717 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7719 fi
7720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7722 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7723 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7724 $as_echo_n "(cached) " >&6
7725 else
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7728 int i;
7729 _ACEOF
7730 if ac_fn_c_try_compile "$LINENO"; then :
7731 xorg_cv_cc_flag_unused_command_line_argument=yes
7732 else
7733 xorg_cv_cc_flag_unused_command_line_argument=no
7734 fi
7735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7736 fi
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7738 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7739 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7740 CFLAGS="$xorg_testset_save_CFLAGS"
7741 fi
7742
7743 found="no"
7744
7745 if test $found = "no" ; then
7746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7748 fi
7749
7750 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7751 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7752 fi
7753
7754 CFLAGS="$CFLAGS -Werror=trigraphs"
7755
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
7757 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
7758 cacheid=xorg_cv_cc_flag__Werror_trigraphs
7759 if eval \${$cacheid+:} false; then :
7760 $as_echo_n "(cached) " >&6
7761 else
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7764 int i;
7765 int
7766 main ()
7767 {
7768
7769 ;
7770 return 0;
7771 }
7772 _ACEOF
7773 if ac_fn_c_try_link "$LINENO"; then :
7774 eval $cacheid=yes
7775 else
7776 eval $cacheid=no
7777 fi
7778 rm -f core conftest.err conftest.$ac_objext \
7779 conftest$ac_exeext conftest.$ac_ext
7780 fi
7781
7782
7783 CFLAGS="$xorg_testset_save_CFLAGS"
7784
7785 eval supported=\$$cacheid
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7787 $as_echo "$supported" >&6; }
7788 if test "$supported" = "yes" ; then
7789 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
7790 found="yes"
7791 fi
7792 fi
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808 xorg_testset_save_CFLAGS="$CFLAGS"
7809
7810 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7811 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7813 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7814 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7815 $as_echo_n "(cached) " >&6
7816 else
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7819 int i;
7820 _ACEOF
7821 if ac_fn_c_try_compile "$LINENO"; then :
7822 xorg_cv_cc_flag_unknown_warning_option=yes
7823 else
7824 xorg_cv_cc_flag_unknown_warning_option=no
7825 fi
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7827 fi
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7829 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7830 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7831 CFLAGS="$xorg_testset_save_CFLAGS"
7832 fi
7833
7834 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7835 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7837 fi
7838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7840 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7841 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7842 $as_echo_n "(cached) " >&6
7843 else
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7846 int i;
7847 _ACEOF
7848 if ac_fn_c_try_compile "$LINENO"; then :
7849 xorg_cv_cc_flag_unused_command_line_argument=yes
7850 else
7851 xorg_cv_cc_flag_unused_command_line_argument=no
7852 fi
7853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7854 fi
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7856 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7857 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7858 CFLAGS="$xorg_testset_save_CFLAGS"
7859 fi
7860
7861 found="no"
7862
7863 if test $found = "no" ; then
7864 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7866 fi
7867
7868 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7869 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7870 fi
7871
7872 CFLAGS="$CFLAGS -Werror=array-bounds"
7873
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
7875 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
7876 cacheid=xorg_cv_cc_flag__Werror_array_bounds
7877 if eval \${$cacheid+:} false; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881 /* end confdefs.h. */
7882 int i;
7883 int
7884 main ()
7885 {
7886
7887 ;
7888 return 0;
7889 }
7890 _ACEOF
7891 if ac_fn_c_try_link "$LINENO"; then :
7892 eval $cacheid=yes
7893 else
7894 eval $cacheid=no
7895 fi
7896 rm -f core conftest.err conftest.$ac_objext \
7897 conftest$ac_exeext conftest.$ac_ext
7898 fi
7899
7900
7901 CFLAGS="$xorg_testset_save_CFLAGS"
7902
7903 eval supported=\$$cacheid
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
7905 $as_echo "$supported" >&6; }
7906 if test "$supported" = "yes" ; then
7907 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
7908 found="yes"
7909 fi
7910 fi
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926 xorg_testset_save_CFLAGS="$CFLAGS"
7927
7928 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
7929 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
7931 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
7932 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937 int i;
7938 _ACEOF
7939 if ac_fn_c_try_compile "$LINENO"; then :
7940 xorg_cv_cc_flag_unknown_warning_option=yes
7941 else
7942 xorg_cv_cc_flag_unknown_warning_option=no
7943 fi
7944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945 fi
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
7947 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
7948 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
7949 CFLAGS="$xorg_testset_save_CFLAGS"
7950 fi
7951
7952 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
7953 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7954 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7955 fi
7956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
7958 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
7959 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
7960 $as_echo_n "(cached) " >&6
7961 else
7962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h. */
7964 int i;
7965 _ACEOF
7966 if ac_fn_c_try_compile "$LINENO"; then :
7967 xorg_cv_cc_flag_unused_command_line_argument=yes
7968 else
7969 xorg_cv_cc_flag_unused_command_line_argument=no
7970 fi
7971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7972 fi
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
7974 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
7975 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
7976 CFLAGS="$xorg_testset_save_CFLAGS"
7977 fi
7978
7979 found="no"
7980
7981 if test $found = "no" ; then
7982 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
7983 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
7984 fi
7985
7986 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
7987 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
7988 fi
7989
7990 CFLAGS="$CFLAGS -Werror=write-strings"
7991
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
7993 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
7994 cacheid=xorg_cv_cc_flag__Werror_write_strings
7995 if eval \${$cacheid+:} false; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7999 /* end confdefs.h. */
8000 int i;
8001 int
8002 main ()
8003 {
8004
8005 ;
8006 return 0;
8007 }
8008 _ACEOF
8009 if ac_fn_c_try_link "$LINENO"; then :
8010 eval $cacheid=yes
8011 else
8012 eval $cacheid=no
8013 fi
8014 rm -f core conftest.err conftest.$ac_objext \
8015 conftest$ac_exeext conftest.$ac_ext
8016 fi
8017
8018
8019 CFLAGS="$xorg_testset_save_CFLAGS"
8020
8021 eval supported=\$$cacheid
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8023 $as_echo "$supported" >&6; }
8024 if test "$supported" = "yes" ; then
8025 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
8026 found="yes"
8027 fi
8028 fi
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044 xorg_testset_save_CFLAGS="$CFLAGS"
8045
8046 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8049 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8050 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8051 $as_echo_n "(cached) " >&6
8052 else
8053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8054 /* end confdefs.h. */
8055 int i;
8056 _ACEOF
8057 if ac_fn_c_try_compile "$LINENO"; then :
8058 xorg_cv_cc_flag_unknown_warning_option=yes
8059 else
8060 xorg_cv_cc_flag_unknown_warning_option=no
8061 fi
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 fi
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8065 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8066 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8067 CFLAGS="$xorg_testset_save_CFLAGS"
8068 fi
8069
8070 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8073 fi
8074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8076 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8077 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8078 $as_echo_n "(cached) " >&6
8079 else
8080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8081 /* end confdefs.h. */
8082 int i;
8083 _ACEOF
8084 if ac_fn_c_try_compile "$LINENO"; then :
8085 xorg_cv_cc_flag_unused_command_line_argument=yes
8086 else
8087 xorg_cv_cc_flag_unused_command_line_argument=no
8088 fi
8089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8090 fi
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8092 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8093 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8094 CFLAGS="$xorg_testset_save_CFLAGS"
8095 fi
8096
8097 found="no"
8098
8099 if test $found = "no" ; then
8100 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8101 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8102 fi
8103
8104 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8105 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8106 fi
8107
8108 CFLAGS="$CFLAGS -Werror=address"
8109
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
8111 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
8112 cacheid=xorg_cv_cc_flag__Werror_address
8113 if eval \${$cacheid+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8118 int i;
8119 int
8120 main ()
8121 {
8122
8123 ;
8124 return 0;
8125 }
8126 _ACEOF
8127 if ac_fn_c_try_link "$LINENO"; then :
8128 eval $cacheid=yes
8129 else
8130 eval $cacheid=no
8131 fi
8132 rm -f core conftest.err conftest.$ac_objext \
8133 conftest$ac_exeext conftest.$ac_ext
8134 fi
8135
8136
8137 CFLAGS="$xorg_testset_save_CFLAGS"
8138
8139 eval supported=\$$cacheid
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8141 $as_echo "$supported" >&6; }
8142 if test "$supported" = "yes" ; then
8143 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
8144 found="yes"
8145 fi
8146 fi
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162 xorg_testset_save_CFLAGS="$CFLAGS"
8163
8164 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8165 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8167 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8168 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8169 $as_echo_n "(cached) " >&6
8170 else
8171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8172 /* end confdefs.h. */
8173 int i;
8174 _ACEOF
8175 if ac_fn_c_try_compile "$LINENO"; then :
8176 xorg_cv_cc_flag_unknown_warning_option=yes
8177 else
8178 xorg_cv_cc_flag_unknown_warning_option=no
8179 fi
8180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8181 fi
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8183 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8184 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8185 CFLAGS="$xorg_testset_save_CFLAGS"
8186 fi
8187
8188 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8191 fi
8192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8194 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8195 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 int i;
8201 _ACEOF
8202 if ac_fn_c_try_compile "$LINENO"; then :
8203 xorg_cv_cc_flag_unused_command_line_argument=yes
8204 else
8205 xorg_cv_cc_flag_unused_command_line_argument=no
8206 fi
8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 fi
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8210 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8211 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8212 CFLAGS="$xorg_testset_save_CFLAGS"
8213 fi
8214
8215 found="no"
8216
8217 if test $found = "no" ; then
8218 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8219 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8220 fi
8221
8222 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8223 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8224 fi
8225
8226 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
8227
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
8229 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
8230 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
8231 if eval \${$cacheid+:} false; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8236 int i;
8237 int
8238 main ()
8239 {
8240
8241 ;
8242 return 0;
8243 }
8244 _ACEOF
8245 if ac_fn_c_try_link "$LINENO"; then :
8246 eval $cacheid=yes
8247 else
8248 eval $cacheid=no
8249 fi
8250 rm -f core conftest.err conftest.$ac_objext \
8251 conftest$ac_exeext conftest.$ac_ext
8252 fi
8253
8254
8255 CFLAGS="$xorg_testset_save_CFLAGS"
8256
8257 eval supported=\$$cacheid
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8259 $as_echo "$supported" >&6; }
8260 if test "$supported" = "yes" ; then
8261 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
8262 found="yes"
8263 fi
8264 fi
8265
8266 if test $found = "no" ; then
8267 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8268 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8269 fi
8270
8271 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8272 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8273 fi
8274
8275 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8276
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
8278 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
8279 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
8280 if eval \${$cacheid+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8284 /* end confdefs.h. */
8285 int i;
8286 int
8287 main ()
8288 {
8289
8290 ;
8291 return 0;
8292 }
8293 _ACEOF
8294 if ac_fn_c_try_link "$LINENO"; then :
8295 eval $cacheid=yes
8296 else
8297 eval $cacheid=no
8298 fi
8299 rm -f core conftest.err conftest.$ac_objext \
8300 conftest$ac_exeext conftest.$ac_ext
8301 fi
8302
8303
8304 CFLAGS="$xorg_testset_save_CFLAGS"
8305
8306 eval supported=\$$cacheid
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8308 $as_echo "$supported" >&6; }
8309 if test "$supported" = "yes" ; then
8310 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
8311 found="yes"
8312 fi
8313 fi
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329 xorg_testset_save_CFLAGS="$CFLAGS"
8330
8331 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8332 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8334 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8335 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 int i;
8341 _ACEOF
8342 if ac_fn_c_try_compile "$LINENO"; then :
8343 xorg_cv_cc_flag_unknown_warning_option=yes
8344 else
8345 xorg_cv_cc_flag_unknown_warning_option=no
8346 fi
8347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8348 fi
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8350 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8352 CFLAGS="$xorg_testset_save_CFLAGS"
8353 fi
8354
8355 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8357 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8358 fi
8359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8361 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8362 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8363 $as_echo_n "(cached) " >&6
8364 else
8365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8366 /* end confdefs.h. */
8367 int i;
8368 _ACEOF
8369 if ac_fn_c_try_compile "$LINENO"; then :
8370 xorg_cv_cc_flag_unused_command_line_argument=yes
8371 else
8372 xorg_cv_cc_flag_unused_command_line_argument=no
8373 fi
8374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8375 fi
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8377 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8379 CFLAGS="$xorg_testset_save_CFLAGS"
8380 fi
8381
8382 found="no"
8383
8384 if test $found = "no" ; then
8385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8386 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8387 fi
8388
8389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8391 fi
8392
8393 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
8394
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
8396 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
8397 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
8398 if eval \${$cacheid+:} false; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8403 int i;
8404 int
8405 main ()
8406 {
8407
8408 ;
8409 return 0;
8410 }
8411 _ACEOF
8412 if ac_fn_c_try_link "$LINENO"; then :
8413 eval $cacheid=yes
8414 else
8415 eval $cacheid=no
8416 fi
8417 rm -f core conftest.err conftest.$ac_objext \
8418 conftest$ac_exeext conftest.$ac_ext
8419 fi
8420
8421
8422 CFLAGS="$xorg_testset_save_CFLAGS"
8423
8424 eval supported=\$$cacheid
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8426 $as_echo "$supported" >&6; }
8427 if test "$supported" = "yes" ; then
8428 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
8429 found="yes"
8430 fi
8431 fi
8432
8433 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
8434 else
8435 { $as_echo "$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
8436 $as_echo "$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;}
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450 xorg_testset_save_CFLAGS="$CFLAGS"
8451
8452 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8453 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8455 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8456 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8457 $as_echo_n "(cached) " >&6
8458 else
8459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8460 /* end confdefs.h. */
8461 int i;
8462 _ACEOF
8463 if ac_fn_c_try_compile "$LINENO"; then :
8464 xorg_cv_cc_flag_unknown_warning_option=yes
8465 else
8466 xorg_cv_cc_flag_unknown_warning_option=no
8467 fi
8468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8469 fi
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8471 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8472 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8473 CFLAGS="$xorg_testset_save_CFLAGS"
8474 fi
8475
8476 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8479 fi
8480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8482 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8483 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8488 int i;
8489 _ACEOF
8490 if ac_fn_c_try_compile "$LINENO"; then :
8491 xorg_cv_cc_flag_unused_command_line_argument=yes
8492 else
8493 xorg_cv_cc_flag_unused_command_line_argument=no
8494 fi
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496 fi
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8498 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8499 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8500 CFLAGS="$xorg_testset_save_CFLAGS"
8501 fi
8502
8503 found="no"
8504
8505 if test $found = "no" ; then
8506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8508 fi
8509
8510 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8512 fi
8513
8514 CFLAGS="$CFLAGS -Wimplicit"
8515
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
8517 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
8518 cacheid=xorg_cv_cc_flag__Wimplicit
8519 if eval \${$cacheid+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8523 /* end confdefs.h. */
8524 int i;
8525 int
8526 main ()
8527 {
8528
8529 ;
8530 return 0;
8531 }
8532 _ACEOF
8533 if ac_fn_c_try_link "$LINENO"; then :
8534 eval $cacheid=yes
8535 else
8536 eval $cacheid=no
8537 fi
8538 rm -f core conftest.err conftest.$ac_objext \
8539 conftest$ac_exeext conftest.$ac_ext
8540 fi
8541
8542
8543 CFLAGS="$xorg_testset_save_CFLAGS"
8544
8545 eval supported=\$$cacheid
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8547 $as_echo "$supported" >&6; }
8548 if test "$supported" = "yes" ; then
8549 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
8550 found="yes"
8551 fi
8552 fi
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568 xorg_testset_save_CFLAGS="$CFLAGS"
8569
8570 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8573 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8574 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8575 $as_echo_n "(cached) " >&6
8576 else
8577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8578 /* end confdefs.h. */
8579 int i;
8580 _ACEOF
8581 if ac_fn_c_try_compile "$LINENO"; then :
8582 xorg_cv_cc_flag_unknown_warning_option=yes
8583 else
8584 xorg_cv_cc_flag_unknown_warning_option=no
8585 fi
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8587 fi
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8589 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8591 CFLAGS="$xorg_testset_save_CFLAGS"
8592 fi
8593
8594 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8597 fi
8598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8600 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8601 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605 /* end confdefs.h. */
8606 int i;
8607 _ACEOF
8608 if ac_fn_c_try_compile "$LINENO"; then :
8609 xorg_cv_cc_flag_unused_command_line_argument=yes
8610 else
8611 xorg_cv_cc_flag_unused_command_line_argument=no
8612 fi
8613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8614 fi
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8616 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8617 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8618 CFLAGS="$xorg_testset_save_CFLAGS"
8619 fi
8620
8621 found="no"
8622
8623 if test $found = "no" ; then
8624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8626 fi
8627
8628 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8630 fi
8631
8632 CFLAGS="$CFLAGS -Wnonnull"
8633
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
8635 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
8636 cacheid=xorg_cv_cc_flag__Wnonnull
8637 if eval \${$cacheid+:} false; then :
8638 $as_echo_n "(cached) " >&6
8639 else
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8642 int i;
8643 int
8644 main ()
8645 {
8646
8647 ;
8648 return 0;
8649 }
8650 _ACEOF
8651 if ac_fn_c_try_link "$LINENO"; then :
8652 eval $cacheid=yes
8653 else
8654 eval $cacheid=no
8655 fi
8656 rm -f core conftest.err conftest.$ac_objext \
8657 conftest$ac_exeext conftest.$ac_ext
8658 fi
8659
8660
8661 CFLAGS="$xorg_testset_save_CFLAGS"
8662
8663 eval supported=\$$cacheid
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8665 $as_echo "$supported" >&6; }
8666 if test "$supported" = "yes" ; then
8667 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
8668 found="yes"
8669 fi
8670 fi
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686 xorg_testset_save_CFLAGS="$CFLAGS"
8687
8688 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8691 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8692 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696 /* end confdefs.h. */
8697 int i;
8698 _ACEOF
8699 if ac_fn_c_try_compile "$LINENO"; then :
8700 xorg_cv_cc_flag_unknown_warning_option=yes
8701 else
8702 xorg_cv_cc_flag_unknown_warning_option=no
8703 fi
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705 fi
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8707 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8708 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8709 CFLAGS="$xorg_testset_save_CFLAGS"
8710 fi
8711
8712 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8715 fi
8716 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8718 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8719 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8720 $as_echo_n "(cached) " >&6
8721 else
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8724 int i;
8725 _ACEOF
8726 if ac_fn_c_try_compile "$LINENO"; then :
8727 xorg_cv_cc_flag_unused_command_line_argument=yes
8728 else
8729 xorg_cv_cc_flag_unused_command_line_argument=no
8730 fi
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 fi
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8734 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8735 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8736 CFLAGS="$xorg_testset_save_CFLAGS"
8737 fi
8738
8739 found="no"
8740
8741 if test $found = "no" ; then
8742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8744 fi
8745
8746 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8748 fi
8749
8750 CFLAGS="$CFLAGS -Winit-self"
8751
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
8753 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
8754 cacheid=xorg_cv_cc_flag__Winit_self
8755 if eval \${$cacheid+:} false; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 int i;
8761 int
8762 main ()
8763 {
8764
8765 ;
8766 return 0;
8767 }
8768 _ACEOF
8769 if ac_fn_c_try_link "$LINENO"; then :
8770 eval $cacheid=yes
8771 else
8772 eval $cacheid=no
8773 fi
8774 rm -f core conftest.err conftest.$ac_objext \
8775 conftest$ac_exeext conftest.$ac_ext
8776 fi
8777
8778
8779 CFLAGS="$xorg_testset_save_CFLAGS"
8780
8781 eval supported=\$$cacheid
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8783 $as_echo "$supported" >&6; }
8784 if test "$supported" = "yes" ; then
8785 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
8786 found="yes"
8787 fi
8788 fi
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804 xorg_testset_save_CFLAGS="$CFLAGS"
8805
8806 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8807 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8809 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8810 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8811 $as_echo_n "(cached) " >&6
8812 else
8813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8814 /* end confdefs.h. */
8815 int i;
8816 _ACEOF
8817 if ac_fn_c_try_compile "$LINENO"; then :
8818 xorg_cv_cc_flag_unknown_warning_option=yes
8819 else
8820 xorg_cv_cc_flag_unknown_warning_option=no
8821 fi
8822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8823 fi
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8825 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8826 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8827 CFLAGS="$xorg_testset_save_CFLAGS"
8828 fi
8829
8830 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8833 fi
8834 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8836 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8837 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8841 /* end confdefs.h. */
8842 int i;
8843 _ACEOF
8844 if ac_fn_c_try_compile "$LINENO"; then :
8845 xorg_cv_cc_flag_unused_command_line_argument=yes
8846 else
8847 xorg_cv_cc_flag_unused_command_line_argument=no
8848 fi
8849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8850 fi
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8852 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8853 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8854 CFLAGS="$xorg_testset_save_CFLAGS"
8855 fi
8856
8857 found="no"
8858
8859 if test $found = "no" ; then
8860 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8862 fi
8863
8864 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8866 fi
8867
8868 CFLAGS="$CFLAGS -Wmain"
8869
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
8871 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
8872 cacheid=xorg_cv_cc_flag__Wmain
8873 if eval \${$cacheid+:} false; then :
8874 $as_echo_n "(cached) " >&6
8875 else
8876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8877 /* end confdefs.h. */
8878 int i;
8879 int
8880 main ()
8881 {
8882
8883 ;
8884 return 0;
8885 }
8886 _ACEOF
8887 if ac_fn_c_try_link "$LINENO"; then :
8888 eval $cacheid=yes
8889 else
8890 eval $cacheid=no
8891 fi
8892 rm -f core conftest.err conftest.$ac_objext \
8893 conftest$ac_exeext conftest.$ac_ext
8894 fi
8895
8896
8897 CFLAGS="$xorg_testset_save_CFLAGS"
8898
8899 eval supported=\$$cacheid
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
8901 $as_echo "$supported" >&6; }
8902 if test "$supported" = "yes" ; then
8903 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
8904 found="yes"
8905 fi
8906 fi
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922 xorg_testset_save_CFLAGS="$CFLAGS"
8923
8924 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
8925 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
8927 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
8928 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8933 int i;
8934 _ACEOF
8935 if ac_fn_c_try_compile "$LINENO"; then :
8936 xorg_cv_cc_flag_unknown_warning_option=yes
8937 else
8938 xorg_cv_cc_flag_unknown_warning_option=no
8939 fi
8940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8941 fi
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
8943 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
8944 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
8945 CFLAGS="$xorg_testset_save_CFLAGS"
8946 fi
8947
8948 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
8949 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8951 fi
8952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
8954 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
8955 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8960 int i;
8961 _ACEOF
8962 if ac_fn_c_try_compile "$LINENO"; then :
8963 xorg_cv_cc_flag_unused_command_line_argument=yes
8964 else
8965 xorg_cv_cc_flag_unused_command_line_argument=no
8966 fi
8967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968 fi
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
8970 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
8971 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
8972 CFLAGS="$xorg_testset_save_CFLAGS"
8973 fi
8974
8975 found="no"
8976
8977 if test $found = "no" ; then
8978 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
8979 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
8980 fi
8981
8982 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
8983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
8984 fi
8985
8986 CFLAGS="$CFLAGS -Wmissing-braces"
8987
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
8989 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
8990 cacheid=xorg_cv_cc_flag__Wmissing_braces
8991 if eval \${$cacheid+:} false; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996 int i;
8997 int
8998 main ()
8999 {
9000
9001 ;
9002 return 0;
9003 }
9004 _ACEOF
9005 if ac_fn_c_try_link "$LINENO"; then :
9006 eval $cacheid=yes
9007 else
9008 eval $cacheid=no
9009 fi
9010 rm -f core conftest.err conftest.$ac_objext \
9011 conftest$ac_exeext conftest.$ac_ext
9012 fi
9013
9014
9015 CFLAGS="$xorg_testset_save_CFLAGS"
9016
9017 eval supported=\$$cacheid
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9019 $as_echo "$supported" >&6; }
9020 if test "$supported" = "yes" ; then
9021 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
9022 found="yes"
9023 fi
9024 fi
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040 xorg_testset_save_CFLAGS="$CFLAGS"
9041
9042 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9043 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9045 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9046 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9047 $as_echo_n "(cached) " >&6
9048 else
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9051 int i;
9052 _ACEOF
9053 if ac_fn_c_try_compile "$LINENO"; then :
9054 xorg_cv_cc_flag_unknown_warning_option=yes
9055 else
9056 xorg_cv_cc_flag_unknown_warning_option=no
9057 fi
9058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059 fi
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9061 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9062 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9063 CFLAGS="$xorg_testset_save_CFLAGS"
9064 fi
9065
9066 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9067 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9069 fi
9070 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9072 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9073 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9074 $as_echo_n "(cached) " >&6
9075 else
9076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9077 /* end confdefs.h. */
9078 int i;
9079 _ACEOF
9080 if ac_fn_c_try_compile "$LINENO"; then :
9081 xorg_cv_cc_flag_unused_command_line_argument=yes
9082 else
9083 xorg_cv_cc_flag_unused_command_line_argument=no
9084 fi
9085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9086 fi
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9088 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9089 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9090 CFLAGS="$xorg_testset_save_CFLAGS"
9091 fi
9092
9093 found="no"
9094
9095 if test $found = "no" ; then
9096 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9097 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9098 fi
9099
9100 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9102 fi
9103
9104 CFLAGS="$CFLAGS -Wsequence-point"
9105
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
9107 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
9108 cacheid=xorg_cv_cc_flag__Wsequence_point
9109 if eval \${$cacheid+:} false; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h. */
9114 int i;
9115 int
9116 main ()
9117 {
9118
9119 ;
9120 return 0;
9121 }
9122 _ACEOF
9123 if ac_fn_c_try_link "$LINENO"; then :
9124 eval $cacheid=yes
9125 else
9126 eval $cacheid=no
9127 fi
9128 rm -f core conftest.err conftest.$ac_objext \
9129 conftest$ac_exeext conftest.$ac_ext
9130 fi
9131
9132
9133 CFLAGS="$xorg_testset_save_CFLAGS"
9134
9135 eval supported=\$$cacheid
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9137 $as_echo "$supported" >&6; }
9138 if test "$supported" = "yes" ; then
9139 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
9140 found="yes"
9141 fi
9142 fi
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158 xorg_testset_save_CFLAGS="$CFLAGS"
9159
9160 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9161 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9163 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9164 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9165 $as_echo_n "(cached) " >&6
9166 else
9167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9168 /* end confdefs.h. */
9169 int i;
9170 _ACEOF
9171 if ac_fn_c_try_compile "$LINENO"; then :
9172 xorg_cv_cc_flag_unknown_warning_option=yes
9173 else
9174 xorg_cv_cc_flag_unknown_warning_option=no
9175 fi
9176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9177 fi
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9179 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9180 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9181 CFLAGS="$xorg_testset_save_CFLAGS"
9182 fi
9183
9184 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9187 fi
9188 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9190 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9191 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9192 $as_echo_n "(cached) " >&6
9193 else
9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9196 int i;
9197 _ACEOF
9198 if ac_fn_c_try_compile "$LINENO"; then :
9199 xorg_cv_cc_flag_unused_command_line_argument=yes
9200 else
9201 xorg_cv_cc_flag_unused_command_line_argument=no
9202 fi
9203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204 fi
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9206 $as_echo "$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 -Wreturn-type"
9223
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
9225 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
9226 cacheid=xorg_cv_cc_flag__Wreturn_type
9227 if eval \${$cacheid+:} false; then :
9228 $as_echo_n "(cached) " >&6
9229 else
9230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9231 /* end confdefs.h. */
9232 int i;
9233 int
9234 main ()
9235 {
9236
9237 ;
9238 return 0;
9239 }
9240 _ACEOF
9241 if ac_fn_c_try_link "$LINENO"; then :
9242 eval $cacheid=yes
9243 else
9244 eval $cacheid=no
9245 fi
9246 rm -f core conftest.err conftest.$ac_objext \
9247 conftest$ac_exeext conftest.$ac_ext
9248 fi
9249
9250
9251 CFLAGS="$xorg_testset_save_CFLAGS"
9252
9253 eval supported=\$$cacheid
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9255 $as_echo "$supported" >&6; }
9256 if test "$supported" = "yes" ; then
9257 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
9258 found="yes"
9259 fi
9260 fi
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276 xorg_testset_save_CFLAGS="$CFLAGS"
9277
9278 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9281 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9282 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9283 $as_echo_n "(cached) " >&6
9284 else
9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9286 /* end confdefs.h. */
9287 int i;
9288 _ACEOF
9289 if ac_fn_c_try_compile "$LINENO"; then :
9290 xorg_cv_cc_flag_unknown_warning_option=yes
9291 else
9292 xorg_cv_cc_flag_unknown_warning_option=no
9293 fi
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 fi
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9297 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9298 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9299 CFLAGS="$xorg_testset_save_CFLAGS"
9300 fi
9301
9302 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9303 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9305 fi
9306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9308 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9309 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9310 $as_echo_n "(cached) " >&6
9311 else
9312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9313 /* end confdefs.h. */
9314 int i;
9315 _ACEOF
9316 if ac_fn_c_try_compile "$LINENO"; then :
9317 xorg_cv_cc_flag_unused_command_line_argument=yes
9318 else
9319 xorg_cv_cc_flag_unused_command_line_argument=no
9320 fi
9321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 fi
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9324 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9325 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9326 CFLAGS="$xorg_testset_save_CFLAGS"
9327 fi
9328
9329 found="no"
9330
9331 if test $found = "no" ; then
9332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9334 fi
9335
9336 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9337 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9338 fi
9339
9340 CFLAGS="$CFLAGS -Wtrigraphs"
9341
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
9343 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
9344 cacheid=xorg_cv_cc_flag__Wtrigraphs
9345 if eval \${$cacheid+:} false; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9350 int i;
9351 int
9352 main ()
9353 {
9354
9355 ;
9356 return 0;
9357 }
9358 _ACEOF
9359 if ac_fn_c_try_link "$LINENO"; then :
9360 eval $cacheid=yes
9361 else
9362 eval $cacheid=no
9363 fi
9364 rm -f core conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9366 fi
9367
9368
9369 CFLAGS="$xorg_testset_save_CFLAGS"
9370
9371 eval supported=\$$cacheid
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9373 $as_echo "$supported" >&6; }
9374 if test "$supported" = "yes" ; then
9375 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
9376 found="yes"
9377 fi
9378 fi
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394 xorg_testset_save_CFLAGS="$CFLAGS"
9395
9396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9399 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9400 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h. */
9405 int i;
9406 _ACEOF
9407 if ac_fn_c_try_compile "$LINENO"; then :
9408 xorg_cv_cc_flag_unknown_warning_option=yes
9409 else
9410 xorg_cv_cc_flag_unknown_warning_option=no
9411 fi
9412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9413 fi
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9415 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9416 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9417 CFLAGS="$xorg_testset_save_CFLAGS"
9418 fi
9419
9420 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9421 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9423 fi
9424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9426 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9427 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9428 $as_echo_n "(cached) " >&6
9429 else
9430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9431 /* end confdefs.h. */
9432 int i;
9433 _ACEOF
9434 if ac_fn_c_try_compile "$LINENO"; then :
9435 xorg_cv_cc_flag_unused_command_line_argument=yes
9436 else
9437 xorg_cv_cc_flag_unused_command_line_argument=no
9438 fi
9439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9440 fi
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9442 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9444 CFLAGS="$xorg_testset_save_CFLAGS"
9445 fi
9446
9447 found="no"
9448
9449 if test $found = "no" ; then
9450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9452 fi
9453
9454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9456 fi
9457
9458 CFLAGS="$CFLAGS -Warray-bounds"
9459
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
9461 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
9462 cacheid=xorg_cv_cc_flag__Warray_bounds
9463 if eval \${$cacheid+:} false; then :
9464 $as_echo_n "(cached) " >&6
9465 else
9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9468 int i;
9469 int
9470 main ()
9471 {
9472
9473 ;
9474 return 0;
9475 }
9476 _ACEOF
9477 if ac_fn_c_try_link "$LINENO"; then :
9478 eval $cacheid=yes
9479 else
9480 eval $cacheid=no
9481 fi
9482 rm -f core conftest.err conftest.$ac_objext \
9483 conftest$ac_exeext conftest.$ac_ext
9484 fi
9485
9486
9487 CFLAGS="$xorg_testset_save_CFLAGS"
9488
9489 eval supported=\$$cacheid
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9491 $as_echo "$supported" >&6; }
9492 if test "$supported" = "yes" ; then
9493 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
9494 found="yes"
9495 fi
9496 fi
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512 xorg_testset_save_CFLAGS="$CFLAGS"
9513
9514 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9515 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9517 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9518 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9519 $as_echo_n "(cached) " >&6
9520 else
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522 /* end confdefs.h. */
9523 int i;
9524 _ACEOF
9525 if ac_fn_c_try_compile "$LINENO"; then :
9526 xorg_cv_cc_flag_unknown_warning_option=yes
9527 else
9528 xorg_cv_cc_flag_unknown_warning_option=no
9529 fi
9530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9531 fi
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9533 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9535 CFLAGS="$xorg_testset_save_CFLAGS"
9536 fi
9537
9538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9541 fi
9542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9544 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9545 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9546 $as_echo_n "(cached) " >&6
9547 else
9548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9549 /* end confdefs.h. */
9550 int i;
9551 _ACEOF
9552 if ac_fn_c_try_compile "$LINENO"; then :
9553 xorg_cv_cc_flag_unused_command_line_argument=yes
9554 else
9555 xorg_cv_cc_flag_unused_command_line_argument=no
9556 fi
9557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9558 fi
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9560 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9561 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9562 CFLAGS="$xorg_testset_save_CFLAGS"
9563 fi
9564
9565 found="no"
9566
9567 if test $found = "no" ; then
9568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9570 fi
9571
9572 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9573 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9574 fi
9575
9576 CFLAGS="$CFLAGS -Wwrite-strings"
9577
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
9579 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
9580 cacheid=xorg_cv_cc_flag__Wwrite_strings
9581 if eval \${$cacheid+:} false; then :
9582 $as_echo_n "(cached) " >&6
9583 else
9584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585 /* end confdefs.h. */
9586 int i;
9587 int
9588 main ()
9589 {
9590
9591 ;
9592 return 0;
9593 }
9594 _ACEOF
9595 if ac_fn_c_try_link "$LINENO"; then :
9596 eval $cacheid=yes
9597 else
9598 eval $cacheid=no
9599 fi
9600 rm -f core conftest.err conftest.$ac_objext \
9601 conftest$ac_exeext conftest.$ac_ext
9602 fi
9603
9604
9605 CFLAGS="$xorg_testset_save_CFLAGS"
9606
9607 eval supported=\$$cacheid
9608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9609 $as_echo "$supported" >&6; }
9610 if test "$supported" = "yes" ; then
9611 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
9612 found="yes"
9613 fi
9614 fi
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630 xorg_testset_save_CFLAGS="$CFLAGS"
9631
9632 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9635 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9636 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9637 $as_echo_n "(cached) " >&6
9638 else
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9641 int i;
9642 _ACEOF
9643 if ac_fn_c_try_compile "$LINENO"; then :
9644 xorg_cv_cc_flag_unknown_warning_option=yes
9645 else
9646 xorg_cv_cc_flag_unknown_warning_option=no
9647 fi
9648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9649 fi
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9651 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9653 CFLAGS="$xorg_testset_save_CFLAGS"
9654 fi
9655
9656 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9659 fi
9660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9662 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9663 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9664 $as_echo_n "(cached) " >&6
9665 else
9666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9667 /* end confdefs.h. */
9668 int i;
9669 _ACEOF
9670 if ac_fn_c_try_compile "$LINENO"; then :
9671 xorg_cv_cc_flag_unused_command_line_argument=yes
9672 else
9673 xorg_cv_cc_flag_unused_command_line_argument=no
9674 fi
9675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9676 fi
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9678 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9680 CFLAGS="$xorg_testset_save_CFLAGS"
9681 fi
9682
9683 found="no"
9684
9685 if test $found = "no" ; then
9686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9688 fi
9689
9690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9692 fi
9693
9694 CFLAGS="$CFLAGS -Waddress"
9695
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
9697 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
9698 cacheid=xorg_cv_cc_flag__Waddress
9699 if eval \${$cacheid+:} false; then :
9700 $as_echo_n "(cached) " >&6
9701 else
9702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h. */
9704 int i;
9705 int
9706 main ()
9707 {
9708
9709 ;
9710 return 0;
9711 }
9712 _ACEOF
9713 if ac_fn_c_try_link "$LINENO"; then :
9714 eval $cacheid=yes
9715 else
9716 eval $cacheid=no
9717 fi
9718 rm -f core conftest.err conftest.$ac_objext \
9719 conftest$ac_exeext conftest.$ac_ext
9720 fi
9721
9722
9723 CFLAGS="$xorg_testset_save_CFLAGS"
9724
9725 eval supported=\$$cacheid
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9727 $as_echo "$supported" >&6; }
9728 if test "$supported" = "yes" ; then
9729 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
9730 found="yes"
9731 fi
9732 fi
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748 xorg_testset_save_CFLAGS="$CFLAGS"
9749
9750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9753 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9754 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9755 $as_echo_n "(cached) " >&6
9756 else
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758 /* end confdefs.h. */
9759 int i;
9760 _ACEOF
9761 if ac_fn_c_try_compile "$LINENO"; then :
9762 xorg_cv_cc_flag_unknown_warning_option=yes
9763 else
9764 xorg_cv_cc_flag_unknown_warning_option=no
9765 fi
9766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9767 fi
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9769 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9771 CFLAGS="$xorg_testset_save_CFLAGS"
9772 fi
9773
9774 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9777 fi
9778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9780 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9781 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9782 $as_echo_n "(cached) " >&6
9783 else
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"; then :
9789 xorg_cv_cc_flag_unused_command_line_argument=yes
9790 else
9791 xorg_cv_cc_flag_unused_command_line_argument=no
9792 fi
9793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794 fi
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9796 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9798 CFLAGS="$xorg_testset_save_CFLAGS"
9799 fi
9800
9801 found="no"
9802
9803 if test $found = "no" ; then
9804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9806 fi
9807
9808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9810 fi
9811
9812 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
9813
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
9815 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
9816 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
9817 if eval \${$cacheid+:} false; then :
9818 $as_echo_n "(cached) " >&6
9819 else
9820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9821 /* end confdefs.h. */
9822 int i;
9823 int
9824 main ()
9825 {
9826
9827 ;
9828 return 0;
9829 }
9830 _ACEOF
9831 if ac_fn_c_try_link "$LINENO"; then :
9832 eval $cacheid=yes
9833 else
9834 eval $cacheid=no
9835 fi
9836 rm -f core conftest.err conftest.$ac_objext \
9837 conftest$ac_exeext conftest.$ac_ext
9838 fi
9839
9840
9841 CFLAGS="$xorg_testset_save_CFLAGS"
9842
9843 eval supported=\$$cacheid
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9845 $as_echo "$supported" >&6; }
9846 if test "$supported" = "yes" ; then
9847 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
9848 found="yes"
9849 fi
9850 fi
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866 xorg_testset_save_CFLAGS="$CFLAGS"
9867
9868 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
9869 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
9871 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
9872 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
9873 $as_echo_n "(cached) " >&6
9874 else
9875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9876 /* end confdefs.h. */
9877 int i;
9878 _ACEOF
9879 if ac_fn_c_try_compile "$LINENO"; then :
9880 xorg_cv_cc_flag_unknown_warning_option=yes
9881 else
9882 xorg_cv_cc_flag_unknown_warning_option=no
9883 fi
9884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9885 fi
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
9887 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
9888 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
9889 CFLAGS="$xorg_testset_save_CFLAGS"
9890 fi
9891
9892 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
9893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9895 fi
9896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
9898 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
9899 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
9900 $as_echo_n "(cached) " >&6
9901 else
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9904 int i;
9905 _ACEOF
9906 if ac_fn_c_try_compile "$LINENO"; then :
9907 xorg_cv_cc_flag_unused_command_line_argument=yes
9908 else
9909 xorg_cv_cc_flag_unused_command_line_argument=no
9910 fi
9911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9912 fi
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
9914 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
9915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
9916 CFLAGS="$xorg_testset_save_CFLAGS"
9917 fi
9918
9919 found="no"
9920
9921 if test $found = "no" ; then
9922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
9923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9924 fi
9925
9926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
9927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
9928 fi
9929
9930 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
9931
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
9933 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
9934 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
9935 if eval \${$cacheid+:} false; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 int i;
9941 int
9942 main ()
9943 {
9944
9945 ;
9946 return 0;
9947 }
9948 _ACEOF
9949 if ac_fn_c_try_link "$LINENO"; then :
9950 eval $cacheid=yes
9951 else
9952 eval $cacheid=no
9953 fi
9954 rm -f core conftest.err conftest.$ac_objext \
9955 conftest$ac_exeext conftest.$ac_ext
9956 fi
9957
9958
9959 CFLAGS="$xorg_testset_save_CFLAGS"
9960
9961 eval supported=\$$cacheid
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
9963 $as_echo "$supported" >&6; }
9964 if test "$supported" = "yes" ; then
9965 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
9966 found="yes"
9967 fi
9968 fi
9969
9970
9971 fi
9972
9973
9974
9975
9976
9977
9978
9979 CWARNFLAGS="$BASE_CFLAGS"
9980 if test "x$GCC" = xyes ; then
9981 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
9982 fi
9983
9984
9985
9986
9987
9988
9989
9990
9991 # Check whether --enable-strict-compilation was given.
9992 if test "${enable_strict_compilation+set}" = set; then :
9993 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
9994 else
9995 STRICT_COMPILE=no
9996 fi
9997
9998
9999
10000
10001
10002
10003 STRICT_CFLAGS=""
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017 xorg_testset_save_CFLAGS="$CFLAGS"
10018
10019 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10022 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10023 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10024 $as_echo_n "(cached) " >&6
10025 else
10026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h. */
10028 int i;
10029 _ACEOF
10030 if ac_fn_c_try_compile "$LINENO"; then :
10031 xorg_cv_cc_flag_unknown_warning_option=yes
10032 else
10033 xorg_cv_cc_flag_unknown_warning_option=no
10034 fi
10035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10036 fi
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10038 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10039 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10040 CFLAGS="$xorg_testset_save_CFLAGS"
10041 fi
10042
10043 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10044 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10045 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10046 fi
10047 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10049 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10050 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10051 $as_echo_n "(cached) " >&6
10052 else
10053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10054 /* end confdefs.h. */
10055 int i;
10056 _ACEOF
10057 if ac_fn_c_try_compile "$LINENO"; then :
10058 xorg_cv_cc_flag_unused_command_line_argument=yes
10059 else
10060 xorg_cv_cc_flag_unused_command_line_argument=no
10061 fi
10062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10063 fi
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10065 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10066 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10067 CFLAGS="$xorg_testset_save_CFLAGS"
10068 fi
10069
10070 found="no"
10071
10072 if test $found = "no" ; then
10073 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10075 fi
10076
10077 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10078 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10079 fi
10080
10081 CFLAGS="$CFLAGS -pedantic"
10082
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
10084 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
10085 cacheid=xorg_cv_cc_flag__pedantic
10086 if eval \${$cacheid+:} false; then :
10087 $as_echo_n "(cached) " >&6
10088 else
10089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090 /* end confdefs.h. */
10091 int i;
10092 int
10093 main ()
10094 {
10095
10096 ;
10097 return 0;
10098 }
10099 _ACEOF
10100 if ac_fn_c_try_link "$LINENO"; then :
10101 eval $cacheid=yes
10102 else
10103 eval $cacheid=no
10104 fi
10105 rm -f core conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107 fi
10108
10109
10110 CFLAGS="$xorg_testset_save_CFLAGS"
10111
10112 eval supported=\$$cacheid
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10114 $as_echo "$supported" >&6; }
10115 if test "$supported" = "yes" ; then
10116 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
10117 found="yes"
10118 fi
10119 fi
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135 xorg_testset_save_CFLAGS="$CFLAGS"
10136
10137 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10140 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10141 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10142 $as_echo_n "(cached) " >&6
10143 else
10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10146 int i;
10147 _ACEOF
10148 if ac_fn_c_try_compile "$LINENO"; then :
10149 xorg_cv_cc_flag_unknown_warning_option=yes
10150 else
10151 xorg_cv_cc_flag_unknown_warning_option=no
10152 fi
10153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154 fi
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10156 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10157 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10158 CFLAGS="$xorg_testset_save_CFLAGS"
10159 fi
10160
10161 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10162 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10163 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10164 fi
10165 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10167 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10168 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10169 $as_echo_n "(cached) " >&6
10170 else
10171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10172 /* end confdefs.h. */
10173 int i;
10174 _ACEOF
10175 if ac_fn_c_try_compile "$LINENO"; then :
10176 xorg_cv_cc_flag_unused_command_line_argument=yes
10177 else
10178 xorg_cv_cc_flag_unused_command_line_argument=no
10179 fi
10180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10181 fi
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10183 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10184 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10185 CFLAGS="$xorg_testset_save_CFLAGS"
10186 fi
10187
10188 found="no"
10189
10190 if test $found = "no" ; then
10191 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10193 fi
10194
10195 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10196 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10197 fi
10198
10199 CFLAGS="$CFLAGS -Werror"
10200
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
10202 $as_echo_n "checking if $CC supports -Werror... " >&6; }
10203 cacheid=xorg_cv_cc_flag__Werror
10204 if eval \${$cacheid+:} false; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10209 int i;
10210 int
10211 main ()
10212 {
10213
10214 ;
10215 return 0;
10216 }
10217 _ACEOF
10218 if ac_fn_c_try_link "$LINENO"; then :
10219 eval $cacheid=yes
10220 else
10221 eval $cacheid=no
10222 fi
10223 rm -f core conftest.err conftest.$ac_objext \
10224 conftest$ac_exeext conftest.$ac_ext
10225 fi
10226
10227
10228 CFLAGS="$xorg_testset_save_CFLAGS"
10229
10230 eval supported=\$$cacheid
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10232 $as_echo "$supported" >&6; }
10233 if test "$supported" = "yes" ; then
10234 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
10235 found="yes"
10236 fi
10237 fi
10238
10239 if test $found = "no" ; then
10240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10241 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10242 fi
10243
10244 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10246 fi
10247
10248 CFLAGS="$CFLAGS -errwarn"
10249
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
10251 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
10252 cacheid=xorg_cv_cc_flag__errwarn
10253 if eval \${$cacheid+:} false; then :
10254 $as_echo_n "(cached) " >&6
10255 else
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257 /* end confdefs.h. */
10258 int i;
10259 int
10260 main ()
10261 {
10262
10263 ;
10264 return 0;
10265 }
10266 _ACEOF
10267 if ac_fn_c_try_link "$LINENO"; then :
10268 eval $cacheid=yes
10269 else
10270 eval $cacheid=no
10271 fi
10272 rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 fi
10275
10276
10277 CFLAGS="$xorg_testset_save_CFLAGS"
10278
10279 eval supported=\$$cacheid
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10281 $as_echo "$supported" >&6; }
10282 if test "$supported" = "yes" ; then
10283 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
10284 found="yes"
10285 fi
10286 fi
10287
10288
10289
10290 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
10291 # activate it with -Werror, so we add it here explicitly.
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305 xorg_testset_save_CFLAGS="$CFLAGS"
10306
10307 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
10308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
10310 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
10311 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
10312 $as_echo_n "(cached) " >&6
10313 else
10314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10315 /* end confdefs.h. */
10316 int i;
10317 _ACEOF
10318 if ac_fn_c_try_compile "$LINENO"; then :
10319 xorg_cv_cc_flag_unknown_warning_option=yes
10320 else
10321 xorg_cv_cc_flag_unknown_warning_option=no
10322 fi
10323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10324 fi
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
10326 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
10327 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
10328 CFLAGS="$xorg_testset_save_CFLAGS"
10329 fi
10330
10331 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
10332 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10333 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10334 fi
10335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
10337 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
10338 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
10339 $as_echo_n "(cached) " >&6
10340 else
10341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10343 int i;
10344 _ACEOF
10345 if ac_fn_c_try_compile "$LINENO"; then :
10346 xorg_cv_cc_flag_unused_command_line_argument=yes
10347 else
10348 xorg_cv_cc_flag_unused_command_line_argument=no
10349 fi
10350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10351 fi
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
10353 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
10354 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
10355 CFLAGS="$xorg_testset_save_CFLAGS"
10356 fi
10357
10358 found="no"
10359
10360 if test $found = "no" ; then
10361 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
10362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10363 fi
10364
10365 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
10366 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
10367 fi
10368
10369 CFLAGS="$CFLAGS -Werror=attributes"
10370
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
10372 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
10373 cacheid=xorg_cv_cc_flag__Werror_attributes
10374 if eval \${$cacheid+:} false; then :
10375 $as_echo_n "(cached) " >&6
10376 else
10377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378 /* end confdefs.h. */
10379 int i;
10380 int
10381 main ()
10382 {
10383
10384 ;
10385 return 0;
10386 }
10387 _ACEOF
10388 if ac_fn_c_try_link "$LINENO"; then :
10389 eval $cacheid=yes
10390 else
10391 eval $cacheid=no
10392 fi
10393 rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395 fi
10396
10397
10398 CFLAGS="$xorg_testset_save_CFLAGS"
10399
10400 eval supported=\$$cacheid
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
10402 $as_echo "$supported" >&6; }
10403 if test "$supported" = "yes" ; then
10404 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
10405 found="yes"
10406 fi
10407 fi
10408
10409
10410
10411 if test "x$STRICT_COMPILE" = "xyes"; then
10412 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
10413 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
10414 fi
10415
10416
10417
10418
10419
10420
10421 cat >>confdefs.h <<_ACEOF
10422 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
10423 _ACEOF
10424
10425 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
10426 if test "x$PVM" = "x"; then
10427 PVM="0"
10428 fi
10429
10430 cat >>confdefs.h <<_ACEOF
10431 #define PACKAGE_VERSION_MINOR $PVM
10432 _ACEOF
10433
10434 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
10435 if test "x$PVP" = "x"; then
10436 PVP="0"
10437 fi
10438
10439 cat >>confdefs.h <<_ACEOF
10440 #define PACKAGE_VERSION_PATCHLEVEL $PVP
10441 _ACEOF
10442
10443
10444
10445 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
10446 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
10447 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
10448 echo 'git directory not found: installing possibly empty changelog.' >&2)"
10449
10450
10451
10452
10453 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
10454 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
10455 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
10456 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
10457 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
10458
10459
10460
10461
10462
10463
10464 if test x$APP_MAN_SUFFIX = x ; then
10465 APP_MAN_SUFFIX=1
10466 fi
10467 if test x$APP_MAN_DIR = x ; then
10468 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
10469 fi
10470
10471 if test x$LIB_MAN_SUFFIX = x ; then
10472 LIB_MAN_SUFFIX=3
10473 fi
10474 if test x$LIB_MAN_DIR = x ; then
10475 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
10476 fi
10477
10478 if test x$FILE_MAN_SUFFIX = x ; then
10479 case $host_os in
10480 solaris*) FILE_MAN_SUFFIX=4 ;;
10481 *) FILE_MAN_SUFFIX=5 ;;
10482 esac
10483 fi
10484 if test x$FILE_MAN_DIR = x ; then
10485 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
10486 fi
10487
10488 if test x$MISC_MAN_SUFFIX = x ; then
10489 case $host_os in
10490 solaris*) MISC_MAN_SUFFIX=5 ;;
10491 *) MISC_MAN_SUFFIX=7 ;;
10492 esac
10493 fi
10494 if test x$MISC_MAN_DIR = x ; then
10495 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
10496 fi
10497
10498 if test x$DRIVER_MAN_SUFFIX = x ; then
10499 case $host_os in
10500 solaris*) DRIVER_MAN_SUFFIX=7 ;;
10501 *) DRIVER_MAN_SUFFIX=4 ;;
10502 esac
10503 fi
10504 if test x$DRIVER_MAN_DIR = x ; then
10505 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
10506 fi
10507
10508 if test x$ADMIN_MAN_SUFFIX = x ; then
10509 case $host_os in
10510 solaris*) ADMIN_MAN_SUFFIX=1m ;;
10511 *) ADMIN_MAN_SUFFIX=8 ;;
10512 esac
10513 fi
10514 if test x$ADMIN_MAN_DIR = x ; then
10515 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
10516 fi
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532 XORG_MAN_PAGE="X Version 11"
10533
10534 MAN_SUBSTS="\
10535 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10536 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
10537 -e 's|__xservername__|Xorg|g' \
10538 -e 's|__xconfigfile__|xorg.conf|g' \
10539 -e 's|__projectroot__|\$(prefix)|g' \
10540 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
10541 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
10542 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
10543 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
10544 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
10545 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
10546 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
10547
10548
10549
10550 # Check whether --enable-silent-rules was given.
10551 if test "${enable_silent_rules+set}" = set; then :
10552 enableval=$enable_silent_rules;
10553 fi
10554
10555 case $enable_silent_rules in # (((
10556 yes) AM_DEFAULT_VERBOSITY=0;;
10557 no) AM_DEFAULT_VERBOSITY=1;;
10558 *) AM_DEFAULT_VERBOSITY=0;;
10559 esac
10560 am_make=${MAKE-make}
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
10562 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
10563 if ${am_cv_make_support_nested_variables+:} false; then :
10564 $as_echo_n "(cached) " >&6
10565 else
10566 if $as_echo 'TRUE=$(BAR$(V))
10567 BAR0=false
10568 BAR1=true
10569 V=1
10570 am__doit:
10571 @$(TRUE)
10572 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
10573 am_cv_make_support_nested_variables=yes
10574 else
10575 am_cv_make_support_nested_variables=no
10576 fi
10577 fi
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
10579 $as_echo "$am_cv_make_support_nested_variables" >&6; }
10580 if test $am_cv_make_support_nested_variables = yes; then
10581 AM_V='$(V)'
10582 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
10583 else
10584 AM_V=$AM_DEFAULT_VERBOSITY
10585 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
10586 fi
10587 AM_BACKSLASH='\'
10588
10589
10590
10591 ac_config_headers="$ac_config_headers config.h"
10592
10593
10594 if test -n "$ac_tool_prefix"; then
10595 for ac_prog in ar lib "link -lib"
10596 do
10597 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10598 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10600 $as_echo_n "checking for $ac_word... " >&6; }
10601 if ${ac_cv_prog_AR+:} false; then :
10602 $as_echo_n "(cached) " >&6
10603 else
10604 if test -n "$AR"; then
10605 ac_cv_prog_AR="$AR" # Let the user override the test.
10606 else
10607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608 for as_dir in $PATH
10609 do
10610 IFS=$as_save_IFS
10611 test -z "$as_dir" && as_dir=.
10612 for ac_exec_ext in '' $ac_executable_extensions; do
10613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10614 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10616 break 2
10617 fi
10618 done
10619 done
10620 IFS=$as_save_IFS
10621
10622 fi
10623 fi
10624 AR=$ac_cv_prog_AR
10625 if test -n "$AR"; then
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10627 $as_echo "$AR" >&6; }
10628 else
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 $as_echo "no" >&6; }
10631 fi
10632
10633
10634 test -n "$AR" && break
10635 done
10636 fi
10637 if test -z "$AR"; then
10638 ac_ct_AR=$AR
10639 for ac_prog in ar lib "link -lib"
10640 do
10641 # Extract the first word of "$ac_prog", so it can be a program name with args.
10642 set dummy $ac_prog; ac_word=$2
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10644 $as_echo_n "checking for $ac_word... " >&6; }
10645 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10646 $as_echo_n "(cached) " >&6
10647 else
10648 if test -n "$ac_ct_AR"; then
10649 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10650 else
10651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10652 for as_dir in $PATH
10653 do
10654 IFS=$as_save_IFS
10655 test -z "$as_dir" && as_dir=.
10656 for ac_exec_ext in '' $ac_executable_extensions; do
10657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10658 ac_cv_prog_ac_ct_AR="$ac_prog"
10659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10660 break 2
10661 fi
10662 done
10663 done
10664 IFS=$as_save_IFS
10665
10666 fi
10667 fi
10668 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10669 if test -n "$ac_ct_AR"; then
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10671 $as_echo "$ac_ct_AR" >&6; }
10672 else
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10674 $as_echo "no" >&6; }
10675 fi
10676
10677
10678 test -n "$ac_ct_AR" && break
10679 done
10680
10681 if test "x$ac_ct_AR" = x; then
10682 AR="false"
10683 else
10684 case $cross_compiling:$ac_tool_warned in
10685 yes:)
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10688 ac_tool_warned=yes ;;
10689 esac
10690 AR=$ac_ct_AR
10691 fi
10692 fi
10693
10694 : ${AR=ar}
10695
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
10697 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
10698 if ${am_cv_ar_interface+:} false; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 am_cv_ar_interface=ar
10702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10703 /* end confdefs.h. */
10704 int some_variable = 0;
10705 _ACEOF
10706 if ac_fn_c_try_compile "$LINENO"; then :
10707 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
10708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
10709 (eval $am_ar_try) 2>&5
10710 ac_status=$?
10711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10712 test $ac_status = 0; }
10713 if test "$ac_status" -eq 0; then
10714 am_cv_ar_interface=ar
10715 else
10716 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
10717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
10718 (eval $am_ar_try) 2>&5
10719 ac_status=$?
10720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10721 test $ac_status = 0; }
10722 if test "$ac_status" -eq 0; then
10723 am_cv_ar_interface=lib
10724 else
10725 am_cv_ar_interface=unknown
10726 fi
10727 fi
10728 rm -f conftest.lib libconftest.a
10729
10730 fi
10731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10732
10733 fi
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
10735 $as_echo "$am_cv_ar_interface" >&6; }
10736
10737 case $am_cv_ar_interface in
10738 ar)
10739 ;;
10740 lib)
10741 # Microsoft lib, so override with the ar-lib wrapper script.
10742 # FIXME: It is wrong to rewrite AR.
10743 # But if we don't then we get into trouble of one sort or another.
10744 # A longer-term fix would be to have automake use am__AR in this case,
10745 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
10746 # similar.
10747 AR="$am_aux_dir/ar-lib $AR"
10748 ;;
10749 unknown)
10750 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
10751 ;;
10752 esac
10753
10754 if test -n "$ac_tool_prefix"; then
10755 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10756 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10758 $as_echo_n "checking for $ac_word... " >&6; }
10759 if ${ac_cv_prog_RANLIB+:} false; then :
10760 $as_echo_n "(cached) " >&6
10761 else
10762 if test -n "$RANLIB"; then
10763 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10764 else
10765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10766 for as_dir in $PATH
10767 do
10768 IFS=$as_save_IFS
10769 test -z "$as_dir" && as_dir=.
10770 for ac_exec_ext in '' $ac_executable_extensions; do
10771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10772 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10774 break 2
10775 fi
10776 done
10777 done
10778 IFS=$as_save_IFS
10779
10780 fi
10781 fi
10782 RANLIB=$ac_cv_prog_RANLIB
10783 if test -n "$RANLIB"; then
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10785 $as_echo "$RANLIB" >&6; }
10786 else
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788 $as_echo "no" >&6; }
10789 fi
10790
10791
10792 fi
10793 if test -z "$ac_cv_prog_RANLIB"; then
10794 ac_ct_RANLIB=$RANLIB
10795 # Extract the first word of "ranlib", so it can be a program name with args.
10796 set dummy ranlib; ac_word=$2
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10798 $as_echo_n "checking for $ac_word... " >&6; }
10799 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10800 $as_echo_n "(cached) " >&6
10801 else
10802 if test -n "$ac_ct_RANLIB"; then
10803 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10804 else
10805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10806 for as_dir in $PATH
10807 do
10808 IFS=$as_save_IFS
10809 test -z "$as_dir" && as_dir=.
10810 for ac_exec_ext in '' $ac_executable_extensions; do
10811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10812 ac_cv_prog_ac_ct_RANLIB="ranlib"
10813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10814 break 2
10815 fi
10816 done
10817 done
10818 IFS=$as_save_IFS
10819
10820 fi
10821 fi
10822 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10823 if test -n "$ac_ct_RANLIB"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10825 $as_echo "$ac_ct_RANLIB" >&6; }
10826 else
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10829 fi
10830
10831 if test "x$ac_ct_RANLIB" = x; then
10832 RANLIB=":"
10833 else
10834 case $cross_compiling:$ac_tool_warned in
10835 yes:)
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10838 ac_tool_warned=yes ;;
10839 esac
10840 RANLIB=$ac_ct_RANLIB
10841 fi
10842 else
10843 RANLIB="$ac_cv_prog_RANLIB"
10844 fi
10845
10846
10847
10848
10849
10850
10851
10852
10853 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
10854 if test -n "$ac_tool_prefix"; then
10855 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
10856 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10858 $as_echo_n "checking for $ac_word... " >&6; }
10859 if ${ac_cv_path_PKG_CONFIG+:} false; then :
10860 $as_echo_n "(cached) " >&6
10861 else
10862 case $PKG_CONFIG in
10863 [\\/]* | ?:[\\/]*)
10864 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10865 ;;
10866 *)
10867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10868 for as_dir in $PATH
10869 do
10870 IFS=$as_save_IFS
10871 test -z "$as_dir" && as_dir=.
10872 for ac_exec_ext in '' $ac_executable_extensions; do
10873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10874 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10876 break 2
10877 fi
10878 done
10879 done
10880 IFS=$as_save_IFS
10881
10882 ;;
10883 esac
10884 fi
10885 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10886 if test -n "$PKG_CONFIG"; then
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
10888 $as_echo "$PKG_CONFIG" >&6; }
10889 else
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; }
10892 fi
10893
10894
10895 fi
10896 if test -z "$ac_cv_path_PKG_CONFIG"; then
10897 ac_pt_PKG_CONFIG=$PKG_CONFIG
10898 # Extract the first word of "pkg-config", so it can be a program name with args.
10899 set dummy pkg-config; ac_word=$2
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10901 $as_echo_n "checking for $ac_word... " >&6; }
10902 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
10903 $as_echo_n "(cached) " >&6
10904 else
10905 case $ac_pt_PKG_CONFIG in
10906 [\\/]* | ?:[\\/]*)
10907 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
10908 ;;
10909 *)
10910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911 for as_dir in $PATH
10912 do
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10917 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10919 break 2
10920 fi
10921 done
10922 done
10923 IFS=$as_save_IFS
10924
10925 ;;
10926 esac
10927 fi
10928 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
10929 if test -n "$ac_pt_PKG_CONFIG"; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
10931 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
10932 else
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10934 $as_echo "no" >&6; }
10935 fi
10936
10937 if test "x$ac_pt_PKG_CONFIG" = x; then
10938 PKG_CONFIG=""
10939 else
10940 case $cross_compiling:$ac_tool_warned in
10941 yes:)
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10943 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10944 ac_tool_warned=yes ;;
10945 esac
10946 PKG_CONFIG=$ac_pt_PKG_CONFIG
10947 fi
10948 else
10949 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
10950 fi
10951
10952 fi
10953 if test -n "$PKG_CONFIG"; then
10954 _pkg_min_version=0.9.0
10955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
10956 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
10957 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10959 $as_echo "yes" >&6; }
10960 else
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10962 $as_echo "no" >&6; }
10963 PKG_CONFIG=""
10964 fi
10965 fi
10966
10967
10968 pkg_failed=no
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PKGDEPS" >&5
10970 $as_echo_n "checking for PKGDEPS... " >&6; }
10971
10972 if test -n "$PKGDEPS_CFLAGS"; then
10973 pkg_cv_PKGDEPS_CFLAGS="$PKGDEPS_CFLAGS"
10974 elif test -n "$PKG_CONFIG"; then
10975 if test -n "$PKG_CONFIG" && \
10976 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11\""; } >&5
10977 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11") 2>&5
10978 ac_status=$?
10979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10980 test $ac_status = 0; }; then
10981 pkg_cv_PKGDEPS_CFLAGS=`$PKG_CONFIG --cflags "xaw7 xmu xt >= 1.0 x11" 2>/dev/null`
10982 test "x$?" != "x0" && pkg_failed=yes
10983 else
10984 pkg_failed=yes
10985 fi
10986 else
10987 pkg_failed=untried
10988 fi
10989 if test -n "$PKGDEPS_LIBS"; then
10990 pkg_cv_PKGDEPS_LIBS="$PKGDEPS_LIBS"
10991 elif test -n "$PKG_CONFIG"; then
10992 if test -n "$PKG_CONFIG" && \
10993 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xaw7 xmu xt >= 1.0 x11\""; } >&5
10994 ($PKG_CONFIG --exists --print-errors "xaw7 xmu xt >= 1.0 x11") 2>&5
10995 ac_status=$?
10996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10997 test $ac_status = 0; }; then
10998 pkg_cv_PKGDEPS_LIBS=`$PKG_CONFIG --libs "xaw7 xmu xt >= 1.0 x11" 2>/dev/null`
10999 test "x$?" != "x0" && pkg_failed=yes
11000 else
11001 pkg_failed=yes
11002 fi
11003 else
11004 pkg_failed=untried
11005 fi
11006
11007
11008
11009 if test $pkg_failed = yes; then
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11011 $as_echo "no" >&6; }
11012
11013 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11014 _pkg_short_errors_supported=yes
11015 else
11016 _pkg_short_errors_supported=no
11017 fi
11018 if test $_pkg_short_errors_supported = yes; then
11019 PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11" 2>&1`
11020 else
11021 PKGDEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xaw7 xmu xt >= 1.0 x11" 2>&1`
11022 fi
11023 # Put the nasty error message in config.log where it belongs
11024 echo "$PKGDEPS_PKG_ERRORS" >&5
11025
11026 as_fn_error $? "Package requirements (xaw7 xmu xt >= 1.0 x11) were not met:
11027
11028 $PKGDEPS_PKG_ERRORS
11029
11030 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11031 installed software in a non-standard prefix.
11032
11033 Alternatively, you may set the environment variables PKGDEPS_CFLAGS
11034 and PKGDEPS_LIBS to avoid the need to call pkg-config.
11035 See the pkg-config man page for more details." "$LINENO" 5
11036 elif test $pkg_failed = untried; then
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11038 $as_echo "no" >&6; }
11039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11040 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11041 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11042 is in your PATH or set the PKG_CONFIG environment variable to the full
11043 path to pkg-config.
11044
11045 Alternatively, you may set the environment variables PKGDEPS_CFLAGS
11046 and PKGDEPS_LIBS to avoid the need to call pkg-config.
11047 See the pkg-config man page for more details.
11048
11049 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11050 See \`config.log' for more details" "$LINENO" 5; }
11051 else
11052 PKGDEPS_CFLAGS=$pkg_cv_PKGDEPS_CFLAGS
11053 PKGDEPS_LIBS=$pkg_cv_PKGDEPS_LIBS
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11055 $as_echo "yes" >&6; }
11056
11057 fi
11058
11059
11060 # Check whether --with-lispdir was given.
11061 if test "${with_lispdir+set}" = set; then :
11062 withval=$with_lispdir; lispdir="$withval"
11063 else
11064 lispdir=${libdir}/X11/xedit/lisp
11065 fi
11066
11067 LISPDIR=$lispdir
11068
11069
11070 ac_fn_c_check_decl "$LINENO" "_SC_PAGESIZE" "ac_cv_have_decl__SC_PAGESIZE" "$ac_includes_default"
11071 if test "x$ac_cv_have_decl__SC_PAGESIZE" = xyes; then :
11072 ac_have_decl=1
11073 else
11074 ac_have_decl=0
11075 fi
11076
11077 cat >>confdefs.h <<_ACEOF
11078 #define HAVE_DECL__SC_PAGESIZE $ac_have_decl
11079 _ACEOF
11080
11081 for ac_func in getpagesize
11082 do :
11083 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
11084 if test "x$ac_cv_func_getpagesize" = xyes; then :
11085 cat >>confdefs.h <<_ACEOF
11086 #define HAVE_GETPAGESIZE 1
11087 _ACEOF
11088
11089 fi
11090 done
11091
11092
11093 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
11094 if test "x$ac_cv_func_realpath" = xyes; then :
11095
11096 else
11097 have_realpath=yes
11098 fi
11099
11100 if test x$have_realpath = xyes; then
11101 NEED_REALPATH_TRUE=
11102 NEED_REALPATH_FALSE='#'
11103 else
11104 NEED_REALPATH_TRUE='#'
11105 NEED_REALPATH_FALSE=
11106 fi
11107
11108 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
11109 if test "x$ac_cv_func_strcasecmp" = xyes; then :
11110
11111 else
11112 have_strcasecmp=yes
11113 fi
11114
11115 if test x$have_strcasecmp = xyes; then
11116 NEED_STRCASECMP_TRUE=
11117 NEED_STRCASECMP_FALSE='#'
11118 else
11119 NEED_STRCASECMP_TRUE='#'
11120 NEED_STRCASECMP_FALSE=
11121 fi
11122
11123 ac_fn_c_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
11124 if test "x$ac_cv_func_unsetenv" = xyes; then :
11125
11126 else
11127 have_unsetenv=yes
11128 fi
11129
11130 if test x$have_unsetenv = xyes; then
11131 NEED_UNSETENV_TRUE=
11132 NEED_UNSETENV_FALSE='#'
11133 else
11134 NEED_UNSETENV_TRUE='#'
11135 NEED_UNSETENV_FALSE=
11136 fi
11137
11138
11139
11140 pkg_failed=no
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for APPDEFS" >&5
11142 $as_echo_n "checking for APPDEFS... " >&6; }
11143
11144 if test -n "$APPDEFS_CFLAGS"; then
11145 pkg_cv_APPDEFS_CFLAGS="$APPDEFS_CFLAGS"
11146 elif test -n "$PKG_CONFIG"; then
11147 if test -n "$PKG_CONFIG" && \
11148 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11149 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11150 ac_status=$?
11151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11152 test $ac_status = 0; }; then
11153 pkg_cv_APPDEFS_CFLAGS=`$PKG_CONFIG --cflags "xt" 2>/dev/null`
11154 test "x$?" != "x0" && pkg_failed=yes
11155 else
11156 pkg_failed=yes
11157 fi
11158 else
11159 pkg_failed=untried
11160 fi
11161 if test -n "$APPDEFS_LIBS"; then
11162 pkg_cv_APPDEFS_LIBS="$APPDEFS_LIBS"
11163 elif test -n "$PKG_CONFIG"; then
11164 if test -n "$PKG_CONFIG" && \
11165 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xt\""; } >&5
11166 ($PKG_CONFIG --exists --print-errors "xt") 2>&5
11167 ac_status=$?
11168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11169 test $ac_status = 0; }; then
11170 pkg_cv_APPDEFS_LIBS=`$PKG_CONFIG --libs "xt" 2>/dev/null`
11171 test "x$?" != "x0" && pkg_failed=yes
11172 else
11173 pkg_failed=yes
11174 fi
11175 else
11176 pkg_failed=untried
11177 fi
11178
11179
11180
11181 if test $pkg_failed = yes; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11183 $as_echo "no" >&6; }
11184
11185 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11186 _pkg_short_errors_supported=yes
11187 else
11188 _pkg_short_errors_supported=no
11189 fi
11190 if test $_pkg_short_errors_supported = yes; then
11191 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xt" 2>&1`
11192 else
11193 APPDEFS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xt" 2>&1`
11194 fi
11195 # Put the nasty error message in config.log where it belongs
11196 echo "$APPDEFS_PKG_ERRORS" >&5
11197
11198 as_fn_error $? "Package requirements (xt) were not met:
11199
11200 $APPDEFS_PKG_ERRORS
11201
11202 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11203 installed software in a non-standard prefix.
11204
11205 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11206 and APPDEFS_LIBS to avoid the need to call pkg-config.
11207 See the pkg-config man page for more details." "$LINENO" 5
11208 elif test $pkg_failed = untried; then
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11210 $as_echo "no" >&6; }
11211 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11212 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11213 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11214 is in your PATH or set the PKG_CONFIG environment variable to the full
11215 path to pkg-config.
11216
11217 Alternatively, you may set the environment variables APPDEFS_CFLAGS
11218 and APPDEFS_LIBS to avoid the need to call pkg-config.
11219 See the pkg-config man page for more details.
11220
11221 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11222 See \`config.log' for more details" "$LINENO" 5; }
11223 else
11224 APPDEFS_CFLAGS=$pkg_cv_APPDEFS_CFLAGS
11225 APPDEFS_LIBS=$pkg_cv_APPDEFS_LIBS
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11227 $as_echo "yes" >&6; }
11228
11229 fi
11230 xt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt`
11231
11232 # Check whether --with-appdefaultdir was given.
11233 if test "${with_appdefaultdir+set}" = set; then :
11234 withval=$with_appdefaultdir; appdefaultdir="$withval"
11235 else
11236 appdefaultdir="${xt_appdefaultdir}"
11237 fi
11238
11239
11240
11241
11242 ac_config_files="$ac_config_files Makefile man/Makefile"
11243
11244 cat >confcache <<\_ACEOF
11245 # This file is a shell script that caches the results of configure
11246 # tests run on this system so they can be shared between configure
11247 # scripts and configure runs, see configure's option --config-cache.
11248 # It is not useful on other systems. If it contains results you don't
11249 # want to keep, you may remove or edit it.
11250 #
11251 # config.status only pays attention to the cache file if you give it
11252 # the --recheck option to rerun configure.
11253 #
11254 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11255 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11256 # following values.
11257
11258 _ACEOF
11259
11260 # The following way of writing the cache mishandles newlines in values,
11261 # but we know of no workaround that is simple, portable, and efficient.
11262 # So, we kill variables containing newlines.
11263 # Ultrix sh set writes to stderr and can't be redirected directly,
11264 # and sets the high bit in the cache file unless we assign to the vars.
11265 (
11266 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11267 eval ac_val=\$$ac_var
11268 case $ac_val in #(
11269 *${as_nl}*)
11270 case $ac_var in #(
11271 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11272 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11273 esac
11274 case $ac_var in #(
11275 _ | IFS | as_nl) ;; #(
11276 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11277 *) { eval $ac_var=; unset $ac_var;} ;;
11278 esac ;;
11279 esac
11280 done
11281
11282 (set) 2>&1 |
11283 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11284 *${as_nl}ac_space=\ *)
11285 # `set' does not quote correctly, so add quotes: double-quote
11286 # substitution turns \\\\ into \\, and sed turns \\ into \.
11287 sed -n \
11288 "s/'/'\\\\''/g;
11289 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11290 ;; #(
11291 *)
11292 # `set' quotes correctly as required by POSIX, so do not add quotes.
11293 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11294 ;;
11295 esac |
11296 sort
11297 ) |
11298 sed '
11299 /^ac_cv_env_/b end
11300 t clear
11301 :clear
11302 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11303 t end
11304 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11305 :end' >>confcache
11306 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11307 if test -w "$cache_file"; then
11308 if test "x$cache_file" != "x/dev/null"; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11310 $as_echo "$as_me: updating cache $cache_file" >&6;}
11311 if test ! -f "$cache_file" || test -h "$cache_file"; then
11312 cat confcache >"$cache_file"
11313 else
11314 case $cache_file in #(
11315 */* | ?:*)
11316 mv -f confcache "$cache_file"$$ &&
11317 mv -f "$cache_file"$$ "$cache_file" ;; #(
11318 *)
11319 mv -f confcache "$cache_file" ;;
11320 esac
11321 fi
11322 fi
11323 else
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11325 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11326 fi
11327 fi
11328 rm -f confcache
11329
11330 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11331 # Let make expand exec_prefix.
11332 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11333
11334 DEFS=-DHAVE_CONFIG_H
11335
11336 ac_libobjs=
11337 ac_ltlibobjs=
11338 U=
11339 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11340 # 1. Remove the extension, and $U if already installed.
11341 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11342 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11343 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11344 # will be set to the directory where LIBOBJS objects are built.
11345 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11346 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11347 done
11348 LIBOBJS=$ac_libobjs
11349
11350 LTLIBOBJS=$ac_ltlibobjs
11351
11352
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11354 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11355 if test -n "$am_sleep_pid"; then
11356 # Hide warnings about reused PIDs.
11357 wait $am_sleep_pid 2>/dev/null
11358 fi
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11360 $as_echo "done" >&6; }
11361 if test -n "$EXEEXT"; then
11362 am__EXEEXT_TRUE=
11363 am__EXEEXT_FALSE='#'
11364 else
11365 am__EXEEXT_TRUE='#'
11366 am__EXEEXT_FALSE=
11367 fi
11368
11369 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11370 as_fn_error $? "conditional \"AMDEP\" was never defined.
11371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11372 fi
11373 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11374 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11376 fi
11377 if test -z "${NEED_REALPATH_TRUE}" && test -z "${NEED_REALPATH_FALSE}"; then
11378 as_fn_error $? "conditional \"NEED_REALPATH\" was never defined.
11379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11380 fi
11381 if test -z "${NEED_STRCASECMP_TRUE}" && test -z "${NEED_STRCASECMP_FALSE}"; then
11382 as_fn_error $? "conditional \"NEED_STRCASECMP\" was never defined.
11383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11384 fi
11385 if test -z "${NEED_UNSETENV_TRUE}" && test -z "${NEED_UNSETENV_FALSE}"; then
11386 as_fn_error $? "conditional \"NEED_UNSETENV\" was never defined.
11387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11388 fi
11389
11390 : "${CONFIG_STATUS=./config.status}"
11391 ac_write_fail=0
11392 ac_clean_files_save=$ac_clean_files
11393 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11395 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11396 as_write_fail=0
11397 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11398 #! $SHELL
11399 # Generated by $as_me.
11400 # Run this file to recreate the current configuration.
11401 # Compiler output produced by configure, useful for debugging
11402 # configure, is in config.log if it exists.
11403
11404 debug=false
11405 ac_cs_recheck=false
11406 ac_cs_silent=false
11407
11408 SHELL=\${CONFIG_SHELL-$SHELL}
11409 export SHELL
11410 _ASEOF
11411 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11412 ## -------------------- ##
11413 ## M4sh Initialization. ##
11414 ## -------------------- ##
11415
11416 # Be more Bourne compatible
11417 DUALCASE=1; export DUALCASE # for MKS sh
11418 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11419 emulate sh
11420 NULLCMD=:
11421 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11422 # is contrary to our usage. Disable this feature.
11423 alias -g '${1+"$@"}'='"$@"'
11424 setopt NO_GLOB_SUBST
11425 else
11426 case `(set -o) 2>/dev/null` in #(
11427 *posix*) :
11428 set -o posix ;; #(
11429 *) :
11430 ;;
11431 esac
11432 fi
11433
11434
11435 as_nl='
11436 '
11437 export as_nl
11438 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11439 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11440 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11441 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11442 # Prefer a ksh shell builtin over an external printf program on Solaris,
11443 # but without wasting forks for bash or zsh.
11444 if test -z "$BASH_VERSION$ZSH_VERSION" \
11445 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11446 as_echo='print -r --'
11447 as_echo_n='print -rn --'
11448 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11449 as_echo='printf %s\n'
11450 as_echo_n='printf %s'
11451 else
11452 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11453 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11454 as_echo_n='/usr/ucb/echo -n'
11455 else
11456 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11457 as_echo_n_body='eval
11458 arg=$1;
11459 case $arg in #(
11460 *"$as_nl"*)
11461 expr "X$arg" : "X\\(.*\\)$as_nl";
11462 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11463 esac;
11464 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11465 '
11466 export as_echo_n_body
11467 as_echo_n='sh -c $as_echo_n_body as_echo'
11468 fi
11469 export as_echo_body
11470 as_echo='sh -c $as_echo_body as_echo'
11471 fi
11472
11473 # The user is always right.
11474 if test "${PATH_SEPARATOR+set}" != set; then
11475 PATH_SEPARATOR=:
11476 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11477 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11478 PATH_SEPARATOR=';'
11479 }
11480 fi
11481
11482
11483 # IFS
11484 # We need space, tab and new line, in precisely that order. Quoting is
11485 # there to prevent editors from complaining about space-tab.
11486 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11487 # splitting by setting IFS to empty value.)
11488 IFS=" "" $as_nl"
11489
11490 # Find who we are. Look in the path if we contain no directory separator.
11491 as_myself=
11492 case $0 in #((
11493 *[\\/]* ) as_myself=$0 ;;
11494 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11495 for as_dir in $PATH
11496 do
11497 IFS=$as_save_IFS
11498 test -z "$as_dir" && as_dir=.
11499 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11500 done
11501 IFS=$as_save_IFS
11502
11503 ;;
11504 esac
11505 # We did not find ourselves, most probably we were run as `sh COMMAND'
11506 # in which case we are not to be found in the path.
11507 if test "x$as_myself" = x; then
11508 as_myself=$0
11509 fi
11510 if test ! -f "$as_myself"; then
11511 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11512 exit 1
11513 fi
11514
11515 # Unset variables that we do not need and which cause bugs (e.g. in
11516 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11517 # suppresses any "Segmentation fault" message there. '((' could
11518 # trigger a bug in pdksh 5.2.14.
11519 for as_var in BASH_ENV ENV MAIL MAILPATH
11520 do eval test x\${$as_var+set} = xset \
11521 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11522 done
11523 PS1='$ '
11524 PS2='> '
11525 PS4='+ '
11526
11527 # NLS nuisances.
11528 LC_ALL=C
11529 export LC_ALL
11530 LANGUAGE=C
11531 export LANGUAGE
11532
11533 # CDPATH.
11534 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11535
11536
11537 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11538 # ----------------------------------------
11539 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11540 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11541 # script with STATUS, using 1 if that was 0.
11542 as_fn_error ()
11543 {
11544 as_status=$1; test $as_status -eq 0 && as_status=1
11545 if test "$4"; then
11546 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11547 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11548 fi
11549 $as_echo "$as_me: error: $2" >&2
11550 as_fn_exit $as_status
11551 } # as_fn_error
11552
11553
11554 # as_fn_set_status STATUS
11555 # -----------------------
11556 # Set $? to STATUS, without forking.
11557 as_fn_set_status ()
11558 {
11559 return $1
11560 } # as_fn_set_status
11561
11562 # as_fn_exit STATUS
11563 # -----------------
11564 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11565 as_fn_exit ()
11566 {
11567 set +e
11568 as_fn_set_status $1
11569 exit $1
11570 } # as_fn_exit
11571
11572 # as_fn_unset VAR
11573 # ---------------
11574 # Portably unset VAR.
11575 as_fn_unset ()
11576 {
11577 { eval $1=; unset $1;}
11578 }
11579 as_unset=as_fn_unset
11580 # as_fn_append VAR VALUE
11581 # ----------------------
11582 # Append the text in VALUE to the end of the definition contained in VAR. Take
11583 # advantage of any shell optimizations that allow amortized linear growth over
11584 # repeated appends, instead of the typical quadratic growth present in naive
11585 # implementations.
11586 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11587 eval 'as_fn_append ()
11588 {
11589 eval $1+=\$2
11590 }'
11591 else
11592 as_fn_append ()
11593 {
11594 eval $1=\$$1\$2
11595 }
11596 fi # as_fn_append
11597
11598 # as_fn_arith ARG...
11599 # ------------------
11600 # Perform arithmetic evaluation on the ARGs, and store the result in the
11601 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11602 # must be portable across $(()) and expr.
11603 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11604 eval 'as_fn_arith ()
11605 {
11606 as_val=$(( $* ))
11607 }'
11608 else
11609 as_fn_arith ()
11610 {
11611 as_val=`expr "$@" || test $? -eq 1`
11612 }
11613 fi # as_fn_arith
11614
11615
11616 if expr a : '\(a\)' >/dev/null 2>&1 &&
11617 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11618 as_expr=expr
11619 else
11620 as_expr=false
11621 fi
11622
11623 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11624 as_basename=basename
11625 else
11626 as_basename=false
11627 fi
11628
11629 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11630 as_dirname=dirname
11631 else
11632 as_dirname=false
11633 fi
11634
11635 as_me=`$as_basename -- "$0" ||
11636 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11637 X"$0" : 'X\(//\)$' \| \
11638 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11639 $as_echo X/"$0" |
11640 sed '/^.*\/\([^/][^/]*\)\/*$/{
11641 s//\1/
11642 q
11643 }
11644 /^X\/\(\/\/\)$/{
11645 s//\1/
11646 q
11647 }
11648 /^X\/\(\/\).*/{
11649 s//\1/
11650 q
11651 }
11652 s/.*/./; q'`
11653
11654 # Avoid depending upon Character Ranges.
11655 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11656 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11657 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11658 as_cr_digits='0123456789'
11659 as_cr_alnum=$as_cr_Letters$as_cr_digits
11660
11661 ECHO_C= ECHO_N= ECHO_T=
11662 case `echo -n x` in #(((((
11663 -n*)
11664 case `echo 'xy\c'` in
11665 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11666 xy) ECHO_C='\c';;
11667 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11668 ECHO_T=' ';;
11669 esac;;
11670 *)
11671 ECHO_N='-n';;
11672 esac
11673
11674 rm -f conf$$ conf$$.exe conf$$.file
11675 if test -d conf$$.dir; then
11676 rm -f conf$$.dir/conf$$.file
11677 else
11678 rm -f conf$$.dir
11679 mkdir conf$$.dir 2>/dev/null
11680 fi
11681 if (echo >conf$$.file) 2>/dev/null; then
11682 if ln -s conf$$.file conf$$ 2>/dev/null; then
11683 as_ln_s='ln -s'
11684 # ... but there are two gotchas:
11685 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11686 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11687 # In both cases, we have to default to `cp -pR'.
11688 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11689 as_ln_s='cp -pR'
11690 elif ln conf$$.file conf$$ 2>/dev/null; then
11691 as_ln_s=ln
11692 else
11693 as_ln_s='cp -pR'
11694 fi
11695 else
11696 as_ln_s='cp -pR'
11697 fi
11698 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11699 rmdir conf$$.dir 2>/dev/null
11700
11701
11702 # as_fn_mkdir_p
11703 # -------------
11704 # Create "$as_dir" as a directory, including parents if necessary.
11705 as_fn_mkdir_p ()
11706 {
11707
11708 case $as_dir in #(
11709 -*) as_dir=./$as_dir;;
11710 esac
11711 test -d "$as_dir" || eval $as_mkdir_p || {
11712 as_dirs=
11713 while :; do
11714 case $as_dir in #(
11715 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11716 *) as_qdir=$as_dir;;
11717 esac
11718 as_dirs="'$as_qdir' $as_dirs"
11719 as_dir=`$as_dirname -- "$as_dir" ||
11720 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11721 X"$as_dir" : 'X\(//\)[^/]' \| \
11722 X"$as_dir" : 'X\(//\)$' \| \
11723 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11724 $as_echo X"$as_dir" |
11725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11726 s//\1/
11727 q
11728 }
11729 /^X\(\/\/\)[^/].*/{
11730 s//\1/
11731 q
11732 }
11733 /^X\(\/\/\)$/{
11734 s//\1/
11735 q
11736 }
11737 /^X\(\/\).*/{
11738 s//\1/
11739 q
11740 }
11741 s/.*/./; q'`
11742 test -d "$as_dir" && break
11743 done
11744 test -z "$as_dirs" || eval "mkdir $as_dirs"
11745 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11746
11747
11748 } # as_fn_mkdir_p
11749 if mkdir -p . 2>/dev/null; then
11750 as_mkdir_p='mkdir -p "$as_dir"'
11751 else
11752 test -d ./-p && rmdir ./-p
11753 as_mkdir_p=false
11754 fi
11755
11756
11757 # as_fn_executable_p FILE
11758 # -----------------------
11759 # Test if FILE is an executable regular file.
11760 as_fn_executable_p ()
11761 {
11762 test -f "$1" && test -x "$1"
11763 } # as_fn_executable_p
11764 as_test_x='test -x'
11765 as_executable_p=as_fn_executable_p
11766
11767 # Sed expression to map a string onto a valid CPP name.
11768 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11769
11770 # Sed expression to map a string onto a valid variable name.
11771 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11772
11773
11774 exec 6>&1
11775 ## ----------------------------------- ##
11776 ## Main body of $CONFIG_STATUS script. ##
11777 ## ----------------------------------- ##
11778 _ASEOF
11779 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11780
11781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11782 # Save the log message, to keep $0 and so on meaningful, and to
11783 # report actual input values of CONFIG_FILES etc. instead of their
11784 # values after options handling.
11785 ac_log="
11786 This file was extended by xedit $as_me 1.2.2, which was
11787 generated by GNU Autoconf 2.69. Invocation command line was
11788
11789 CONFIG_FILES = $CONFIG_FILES
11790 CONFIG_HEADERS = $CONFIG_HEADERS
11791 CONFIG_LINKS = $CONFIG_LINKS
11792 CONFIG_COMMANDS = $CONFIG_COMMANDS
11793 $ $0 $@
11794
11795 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11796 "
11797
11798 _ACEOF
11799
11800 case $ac_config_files in *"
11801 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11802 esac
11803
11804 case $ac_config_headers in *"
11805 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11806 esac
11807
11808
11809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11810 # Files that config.status was made for.
11811 config_files="$ac_config_files"
11812 config_headers="$ac_config_headers"
11813 config_commands="$ac_config_commands"
11814
11815 _ACEOF
11816
11817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11818 ac_cs_usage="\
11819 \`$as_me' instantiates files and other configuration actions
11820 from templates according to the current configuration. Unless the files
11821 and actions are specified as TAGs, all are instantiated by default.
11822
11823 Usage: $0 [OPTION]... [TAG]...
11824
11825 -h, --help print this help, then exit
11826 -V, --version print version number and configuration settings, then exit
11827 --config print configuration, then exit
11828 -q, --quiet, --silent
11829 do not print progress messages
11830 -d, --debug don't remove temporary files
11831 --recheck update $as_me by reconfiguring in the same conditions
11832 --file=FILE[:TEMPLATE]
11833 instantiate the configuration file FILE
11834 --header=FILE[:TEMPLATE]
11835 instantiate the configuration header FILE
11836
11837 Configuration files:
11838 $config_files
11839
11840 Configuration headers:
11841 $config_headers
11842
11843 Configuration commands:
11844 $config_commands
11845
11846 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
11847
11848 _ACEOF
11849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11850 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11851 ac_cs_version="\\
11852 xedit config.status 1.2.2
11853 configured by $0, generated by GNU Autoconf 2.69,
11854 with options \\"\$ac_cs_config\\"
11855
11856 Copyright (C) 2012 Free Software Foundation, Inc.
11857 This config.status script is free software; the Free Software Foundation
11858 gives unlimited permission to copy, distribute and modify it."
11859
11860 ac_pwd='$ac_pwd'
11861 srcdir='$srcdir'
11862 INSTALL='$INSTALL'
11863 MKDIR_P='$MKDIR_P'
11864 AWK='$AWK'
11865 test -n "\$AWK" || AWK=awk
11866 _ACEOF
11867
11868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11869 # The default lists apply if the user does not specify any file.
11870 ac_need_defaults=:
11871 while test $# != 0
11872 do
11873 case $1 in
11874 --*=?*)
11875 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11876 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11877 ac_shift=:
11878 ;;
11879 --*=)
11880 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11881 ac_optarg=
11882 ac_shift=:
11883 ;;
11884 *)
11885 ac_option=$1
11886 ac_optarg=$2
11887 ac_shift=shift
11888 ;;
11889 esac
11890
11891 case $ac_option in
11892 # Handling of the options.
11893 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11894 ac_cs_recheck=: ;;
11895 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11896 $as_echo "$ac_cs_version"; exit ;;
11897 --config | --confi | --conf | --con | --co | --c )
11898 $as_echo "$ac_cs_config"; exit ;;
11899 --debug | --debu | --deb | --de | --d | -d )
11900 debug=: ;;
11901 --file | --fil | --fi | --f )
11902 $ac_shift
11903 case $ac_optarg in
11904 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11905 '') as_fn_error $? "missing file argument" ;;
11906 esac
11907 as_fn_append CONFIG_FILES " '$ac_optarg'"
11908 ac_need_defaults=false;;
11909 --header | --heade | --head | --hea )
11910 $ac_shift
11911 case $ac_optarg in
11912 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11913 esac
11914 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11915 ac_need_defaults=false;;
11916 --he | --h)
11917 # Conflict between --help and --header
11918 as_fn_error $? "ambiguous option: \`$1'
11919 Try \`$0 --help' for more information.";;
11920 --help | --hel | -h )
11921 $as_echo "$ac_cs_usage"; exit ;;
11922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11923 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11924 ac_cs_silent=: ;;
11925
11926 # This is an error.
11927 -*) as_fn_error $? "unrecognized option: \`$1'
11928 Try \`$0 --help' for more information." ;;
11929
11930 *) as_fn_append ac_config_targets " $1"
11931 ac_need_defaults=false ;;
11932
11933 esac
11934 shift
11935 done
11936
11937 ac_configure_extra_args=
11938
11939 if $ac_cs_silent; then
11940 exec 6>/dev/null
11941 ac_configure_extra_args="$ac_configure_extra_args --silent"
11942 fi
11943
11944 _ACEOF
11945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11946 if \$ac_cs_recheck; then
11947 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11948 shift
11949 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11950 CONFIG_SHELL='$SHELL'
11951 export CONFIG_SHELL
11952 exec "\$@"
11953 fi
11954
11955 _ACEOF
11956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11957 exec 5>>config.log
11958 {
11959 echo
11960 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11961 ## Running $as_me. ##
11962 _ASBOX
11963 $as_echo "$ac_log"
11964 } >&5
11965
11966 _ACEOF
11967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11968 #
11969 # INIT-COMMANDS
11970 #
11971 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11972
11973 _ACEOF
11974
11975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11976
11977 # Handling of arguments.
11978 for ac_config_target in $ac_config_targets
11979 do
11980 case $ac_config_target in
11981 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11982 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11983 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11984 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11985
11986 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11987 esac
11988 done
11989
11990
11991 # If the user did not use the arguments to specify the items to instantiate,
11992 # then the envvar interface is used. Set only those that are not.
11993 # We use the long form for the default assignment because of an extremely
11994 # bizarre bug on SunOS 4.1.3.
11995 if $ac_need_defaults; then
11996 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11997 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11998 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11999 fi
12000
12001 # Have a temporary directory for convenience. Make it in the build tree
12002 # simply because there is no reason against having it here, and in addition,
12003 # creating and moving files from /tmp can sometimes cause problems.
12004 # Hook for its removal unless debugging.
12005 # Note that there is a small window in which the directory will not be cleaned:
12006 # after its creation but before its name has been assigned to `$tmp'.
12007 $debug ||
12008 {
12009 tmp= ac_tmp=
12010 trap 'exit_status=$?
12011 : "${ac_tmp:=$tmp}"
12012 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12013 ' 0
12014 trap 'as_fn_exit 1' 1 2 13 15
12015 }
12016 # Create a (secure) tmp directory for tmp files.
12017
12018 {
12019 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12020 test -d "$tmp"
12021 } ||
12022 {
12023 tmp=./conf$$-$RANDOM
12024 (umask 077 && mkdir "$tmp")
12025 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12026 ac_tmp=$tmp
12027
12028 # Set up the scripts for CONFIG_FILES section.
12029 # No need to generate them if there are no CONFIG_FILES.
12030 # This happens for instance with `./config.status config.h'.
12031 if test -n "$CONFIG_FILES"; then
12032
12033
12034 ac_cr=`echo X | tr X '\015'`
12035 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12036 # But we know of no other shell where ac_cr would be empty at this
12037 # point, so we can use a bashism as a fallback.
12038 if test "x$ac_cr" = x; then
12039 eval ac_cr=\$\'\\r\'
12040 fi
12041 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12042 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12043 ac_cs_awk_cr='\\r'
12044 else
12045 ac_cs_awk_cr=$ac_cr
12046 fi
12047
12048 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12049 _ACEOF
12050
12051
12052 {
12053 echo "cat >conf$$subs.awk <<_ACEOF" &&
12054 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12055 echo "_ACEOF"
12056 } >conf$$subs.sh ||
12057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12058 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12059 ac_delim='%!_!# '
12060 for ac_last_try in false false false false false :; do
12061 . ./conf$$subs.sh ||
12062 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12063
12064 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12065 if test $ac_delim_n = $ac_delim_num; then
12066 break
12067 elif $ac_last_try; then
12068 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12069 else
12070 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12071 fi
12072 done
12073 rm -f conf$$subs.sh
12074
12075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12076 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12077 _ACEOF
12078 sed -n '
12079 h
12080 s/^/S["/; s/!.*/"]=/
12081 p
12082 g
12083 s/^[^!]*!//
12084 :repl
12085 t repl
12086 s/'"$ac_delim"'$//
12087 t delim
12088 :nl
12089 h
12090 s/\(.\{148\}\)..*/\1/
12091 t more1
12092 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12093 p
12094 n
12095 b repl
12096 :more1
12097 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12098 p
12099 g
12100 s/.\{148\}//
12101 t nl
12102 :delim
12103 h
12104 s/\(.\{148\}\)..*/\1/
12105 t more2
12106 s/["\\]/\\&/g; s/^/"/; s/$/"/
12107 p
12108 b
12109 :more2
12110 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12111 p
12112 g
12113 s/.\{148\}//
12114 t delim
12115 ' <conf$$subs.awk | sed '
12116 /^[^""]/{
12117 N
12118 s/\n//
12119 }
12120 ' >>$CONFIG_STATUS || ac_write_fail=1
12121 rm -f conf$$subs.awk
12122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12123 _ACAWK
12124 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12125 for (key in S) S_is_set[key] = 1
12126 FS = ""
12127
12128 }
12129 {
12130 line = $ 0
12131 nfields = split(line, field, "@")
12132 substed = 0
12133 len = length(field[1])
12134 for (i = 2; i < nfields; i++) {
12135 key = field[i]
12136 keylen = length(key)
12137 if (S_is_set[key]) {
12138 value = S[key]
12139 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12140 len += length(value) + length(field[++i])
12141 substed = 1
12142 } else
12143 len += 1 + keylen
12144 }
12145
12146 print line
12147 }
12148
12149 _ACAWK
12150 _ACEOF
12151 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12152 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12153 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12154 else
12155 cat
12156 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12157 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12158 _ACEOF
12159
12160 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12161 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12162 # trailing colons and then remove the whole line if VPATH becomes empty
12163 # (actually we leave an empty line to preserve line numbers).
12164 if test "x$srcdir" = x.; then
12165 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12166 h
12167 s///
12168 s/^/:/
12169 s/[ ]*$/:/
12170 s/:\$(srcdir):/:/g
12171 s/:\${srcdir}:/:/g
12172 s/:@srcdir@:/:/g
12173 s/^:*//
12174 s/:*$//
12175 x
12176 s/\(=[ ]*\).*/\1/
12177 G
12178 s/\n//
12179 s/^[^=]*=[ ]*$//
12180 }'
12181 fi
12182
12183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12184 fi # test -n "$CONFIG_FILES"
12185
12186 # Set up the scripts for CONFIG_HEADERS section.
12187 # No need to generate them if there are no CONFIG_HEADERS.
12188 # This happens for instance with `./config.status Makefile'.
12189 if test -n "$CONFIG_HEADERS"; then
12190 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12191 BEGIN {
12192 _ACEOF
12193
12194 # Transform confdefs.h into an awk script `defines.awk', embedded as
12195 # here-document in config.status, that substitutes the proper values into
12196 # config.h.in to produce config.h.
12197
12198 # Create a delimiter string that does not exist in confdefs.h, to ease
12199 # handling of long lines.
12200 ac_delim='%!_!# '
12201 for ac_last_try in false false :; do
12202 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12203 if test -z "$ac_tt"; then
12204 break
12205 elif $ac_last_try; then
12206 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12207 else
12208 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12209 fi
12210 done
12211
12212 # For the awk script, D is an array of macro values keyed by name,
12213 # likewise P contains macro parameters if any. Preserve backslash
12214 # newline sequences.
12215
12216 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12217 sed -n '
12218 s/.\{148\}/&'"$ac_delim"'/g
12219 t rset
12220 :rset
12221 s/^[ ]*#[ ]*define[ ][ ]*/ /
12222 t def
12223 d
12224 :def
12225 s/\\$//
12226 t bsnl
12227 s/["\\]/\\&/g
12228 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12229 D["\1"]=" \3"/p
12230 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12231 d
12232 :bsnl
12233 s/["\\]/\\&/g
12234 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12235 D["\1"]=" \3\\\\\\n"\\/p
12236 t cont
12237 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12238 t cont
12239 d
12240 :cont
12241 n
12242 s/.\{148\}/&'"$ac_delim"'/g
12243 t clear
12244 :clear
12245 s/\\$//
12246 t bsnlc
12247 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12248 d
12249 :bsnlc
12250 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12251 b cont
12252 ' <confdefs.h | sed '
12253 s/'"$ac_delim"'/"\\\
12254 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12255
12256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12257 for (key in D) D_is_set[key] = 1
12258 FS = ""
12259 }
12260 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12261 line = \$ 0
12262 split(line, arg, " ")
12263 if (arg[1] == "#") {
12264 defundef = arg[2]
12265 mac1 = arg[3]
12266 } else {
12267 defundef = substr(arg[1], 2)
12268 mac1 = arg[2]
12269 }
12270 split(mac1, mac2, "(") #)
12271 macro = mac2[1]
12272 prefix = substr(line, 1, index(line, defundef) - 1)
12273 if (D_is_set[macro]) {
12274 # Preserve the white space surrounding the "#".
12275 print prefix "define", macro P[macro] D[macro]
12276 next
12277 } else {
12278 # Replace #undef with comments. This is necessary, for example,
12279 # in the case of _POSIX_SOURCE, which is predefined and required
12280 # on some systems where configure will not decide to define it.
12281 if (defundef == "undef") {
12282 print "/*", prefix defundef, macro, "*/"
12283 next
12284 }
12285 }
12286 }
12287 { print }
12288 _ACAWK
12289 _ACEOF
12290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12291 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12292 fi # test -n "$CONFIG_HEADERS"
12293
12294
12295 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12296 shift
12297 for ac_tag
12298 do
12299 case $ac_tag in
12300 :[FHLC]) ac_mode=$ac_tag; continue;;
12301 esac
12302 case $ac_mode$ac_tag in
12303 :[FHL]*:*);;
12304 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12305 :[FH]-) ac_tag=-:-;;
12306 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12307 esac
12308 ac_save_IFS=$IFS
12309 IFS=:
12310 set x $ac_tag
12311 IFS=$ac_save_IFS
12312 shift
12313 ac_file=$1
12314 shift
12315
12316 case $ac_mode in
12317 :L) ac_source=$1;;
12318 :[FH])
12319 ac_file_inputs=
12320 for ac_f
12321 do
12322 case $ac_f in
12323 -) ac_f="$ac_tmp/stdin";;
12324 *) # Look for the file first in the build tree, then in the source tree
12325 # (if the path is not absolute). The absolute path cannot be DOS-style,
12326 # because $ac_f cannot contain `:'.
12327 test -f "$ac_f" ||
12328 case $ac_f in
12329 [\\/$]*) false;;
12330 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12331 esac ||
12332 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12333 esac
12334 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12335 as_fn_append ac_file_inputs " '$ac_f'"
12336 done
12337
12338 # Let's still pretend it is `configure' which instantiates (i.e., don't
12339 # use $as_me), people would be surprised to read:
12340 # /* config.h. Generated by config.status. */
12341 configure_input='Generated from '`
12342 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12343 `' by configure.'
12344 if test x"$ac_file" != x-; then
12345 configure_input="$ac_file. $configure_input"
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12347 $as_echo "$as_me: creating $ac_file" >&6;}
12348 fi
12349 # Neutralize special characters interpreted by sed in replacement strings.
12350 case $configure_input in #(
12351 *\&* | *\|* | *\\* )
12352 ac_sed_conf_input=`$as_echo "$configure_input" |
12353 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12354 *) ac_sed_conf_input=$configure_input;;
12355 esac
12356
12357 case $ac_tag in
12358 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12359 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12360 esac
12361 ;;
12362 esac
12363
12364 ac_dir=`$as_dirname -- "$ac_file" ||
12365 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12366 X"$ac_file" : 'X\(//\)[^/]' \| \
12367 X"$ac_file" : 'X\(//\)$' \| \
12368 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12369 $as_echo X"$ac_file" |
12370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12371 s//\1/
12372 q
12373 }
12374 /^X\(\/\/\)[^/].*/{
12375 s//\1/
12376 q
12377 }
12378 /^X\(\/\/\)$/{
12379 s//\1/
12380 q
12381 }
12382 /^X\(\/\).*/{
12383 s//\1/
12384 q
12385 }
12386 s/.*/./; q'`
12387 as_dir="$ac_dir"; as_fn_mkdir_p
12388 ac_builddir=.
12389
12390 case "$ac_dir" in
12391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12392 *)
12393 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12394 # A ".." for each directory in $ac_dir_suffix.
12395 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12396 case $ac_top_builddir_sub in
12397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12399 esac ;;
12400 esac
12401 ac_abs_top_builddir=$ac_pwd
12402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12403 # for backward compatibility:
12404 ac_top_builddir=$ac_top_build_prefix
12405
12406 case $srcdir in
12407 .) # We are building in place.
12408 ac_srcdir=.
12409 ac_top_srcdir=$ac_top_builddir_sub
12410 ac_abs_top_srcdir=$ac_pwd ;;
12411 [\\/]* | ?:[\\/]* ) # Absolute name.
12412 ac_srcdir=$srcdir$ac_dir_suffix;
12413 ac_top_srcdir=$srcdir
12414 ac_abs_top_srcdir=$srcdir ;;
12415 *) # Relative name.
12416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12417 ac_top_srcdir=$ac_top_build_prefix$srcdir
12418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12419 esac
12420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12421
12422
12423 case $ac_mode in
12424 :F)
12425 #
12426 # CONFIG_FILE
12427 #
12428
12429 case $INSTALL in
12430 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12431 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12432 esac
12433 ac_MKDIR_P=$MKDIR_P
12434 case $MKDIR_P in
12435 [\\/$]* | ?:[\\/]* ) ;;
12436 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12437 esac
12438 _ACEOF
12439
12440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12441 # If the template does not know about datarootdir, expand it.
12442 # FIXME: This hack should be removed a few years after 2.60.
12443 ac_datarootdir_hack=; ac_datarootdir_seen=
12444 ac_sed_dataroot='
12445 /datarootdir/ {
12446 p
12447 q
12448 }
12449 /@datadir@/p
12450 /@docdir@/p
12451 /@infodir@/p
12452 /@localedir@/p
12453 /@mandir@/p'
12454 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12455 *datarootdir*) ac_datarootdir_seen=yes;;
12456 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12458 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12459 _ACEOF
12460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12461 ac_datarootdir_hack='
12462 s&@datadir@&$datadir&g
12463 s&@docdir@&$docdir&g
12464 s&@infodir@&$infodir&g
12465 s&@localedir@&$localedir&g
12466 s&@mandir@&$mandir&g
12467 s&\\\${datarootdir}&$datarootdir&g' ;;
12468 esac
12469 _ACEOF
12470
12471 # Neutralize VPATH when `$srcdir' = `.'.
12472 # Shell code in configure.ac might set extrasub.
12473 # FIXME: do we really want to maintain this feature?
12474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12475 ac_sed_extra="$ac_vpsub
12476 $extrasub
12477 _ACEOF
12478 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12479 :t
12480 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12481 s|@configure_input@|$ac_sed_conf_input|;t t
12482 s&@top_builddir@&$ac_top_builddir_sub&;t t
12483 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12484 s&@srcdir@&$ac_srcdir&;t t
12485 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12486 s&@top_srcdir@&$ac_top_srcdir&;t t
12487 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12488 s&@builddir@&$ac_builddir&;t t
12489 s&@abs_builddir@&$ac_abs_builddir&;t t
12490 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12491 s&@INSTALL@&$ac_INSTALL&;t t
12492 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12493 $ac_datarootdir_hack
12494 "
12495 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12496 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12497
12498 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12499 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12500 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12501 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12503 which seems to be undefined. Please make sure it is defined" >&5
12504 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12505 which seems to be undefined. Please make sure it is defined" >&2;}
12506
12507 rm -f "$ac_tmp/stdin"
12508 case $ac_file in
12509 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12510 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12511 esac \
12512 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12513 ;;
12514 :H)
12515 #
12516 # CONFIG_HEADER
12517 #
12518 if test x"$ac_file" != x-; then
12519 {
12520 $as_echo "/* $configure_input */" \
12521 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12522 } >"$ac_tmp/config.h" \
12523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12524 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12526 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12527 else
12528 rm -f "$ac_file"
12529 mv "$ac_tmp/config.h" "$ac_file" \
12530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12531 fi
12532 else
12533 $as_echo "/* $configure_input */" \
12534 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12535 || as_fn_error $? "could not create -" "$LINENO" 5
12536 fi
12537 # Compute "$ac_file"'s index in $config_headers.
12538 _am_arg="$ac_file"
12539 _am_stamp_count=1
12540 for _am_header in $config_headers :; do
12541 case $_am_header in
12542 $_am_arg | $_am_arg:* )
12543 break ;;
12544 * )
12545 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12546 esac
12547 done
12548 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12549 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12550 X"$_am_arg" : 'X\(//\)[^/]' \| \
12551 X"$_am_arg" : 'X\(//\)$' \| \
12552 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12553 $as_echo X"$_am_arg" |
12554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12555 s//\1/
12556 q
12557 }
12558 /^X\(\/\/\)[^/].*/{
12559 s//\1/
12560 q
12561 }
12562 /^X\(\/\/\)$/{
12563 s//\1/
12564 q
12565 }
12566 /^X\(\/\).*/{
12567 s//\1/
12568 q
12569 }
12570 s/.*/./; q'`/stamp-h$_am_stamp_count
12571 ;;
12572
12573 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12574 $as_echo "$as_me: executing $ac_file commands" >&6;}
12575 ;;
12576 esac
12577
12578
12579 case $ac_file$ac_mode in
12580 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12581 # Older Autoconf quotes --file arguments for eval, but not when files
12582 # are listed without --file. Let's play safe and only enable the eval
12583 # if we detect the quoting.
12584 case $CONFIG_FILES in
12585 *\'*) eval set x "$CONFIG_FILES" ;;
12586 *) set x $CONFIG_FILES ;;
12587 esac
12588 shift
12589 for mf
12590 do
12591 # Strip MF so we end up with the name of the file.
12592 mf=`echo "$mf" | sed -e 's/:.*$//'`
12593 # Check whether this is an Automake generated Makefile or not.
12594 # We used to match only the files named 'Makefile.in', but
12595 # some people rename them; so instead we look at the file content.
12596 # Grep'ing the first line is not enough: some people post-process
12597 # each Makefile.in and add a new line on top of each file to say so.
12598 # Grep'ing the whole file is not good either: AIX grep has a line
12599 # limit of 2048, but all sed's we know have understand at least 4000.
12600 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12601 dirpart=`$as_dirname -- "$mf" ||
12602 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12603 X"$mf" : 'X\(//\)[^/]' \| \
12604 X"$mf" : 'X\(//\)$' \| \
12605 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12606 $as_echo X"$mf" |
12607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12608 s//\1/
12609 q
12610 }
12611 /^X\(\/\/\)[^/].*/{
12612 s//\1/
12613 q
12614 }
12615 /^X\(\/\/\)$/{
12616 s//\1/
12617 q
12618 }
12619 /^X\(\/\).*/{
12620 s//\1/
12621 q
12622 }
12623 s/.*/./; q'`
12624 else
12625 continue
12626 fi
12627 # Extract the definition of DEPDIR, am__include, and am__quote
12628 # from the Makefile without running 'make'.
12629 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12630 test -z "$DEPDIR" && continue
12631 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12632 test -z "$am__include" && continue
12633 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12634 # Find all dependency output files, they are included files with
12635 # $(DEPDIR) in their names. We invoke sed twice because it is the
12636 # simplest approach to changing $(DEPDIR) to its actual value in the
12637 # expansion.
12638 for file in `sed -n "
12639 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12640 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
12641 # Make sure the directory exists.
12642 test -f "$dirpart/$file" && continue
12643 fdir=`$as_dirname -- "$file" ||
12644 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12645 X"$file" : 'X\(//\)[^/]' \| \
12646 X"$file" : 'X\(//\)$' \| \
12647 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12648 $as_echo X"$file" |
12649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12650 s//\1/
12651 q
12652 }
12653 /^X\(\/\/\)[^/].*/{
12654 s//\1/
12655 q
12656 }
12657 /^X\(\/\/\)$/{
12658 s//\1/
12659 q
12660 }
12661 /^X\(\/\).*/{
12662 s//\1/
12663 q
12664 }
12665 s/.*/./; q'`
12666 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12667 # echo "creating $dirpart/$file"
12668 echo '# dummy' > "$dirpart/$file"
12669 done
12670 done
12671 }
12672 ;;
12673
12674 esac
12675 done # for ac_tag
12676
12677
12678 as_fn_exit 0
12679 _ACEOF
12680 ac_clean_files=$ac_clean_files_save
12681
12682 test $ac_write_fail = 0 ||
12683 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12684
12685
12686 # configure is writing to config.log, and then calls config.status.
12687 # config.status does its own redirection, appending to config.log.
12688 # Unfortunately, on DOS this fails, as config.log is still kept open
12689 # by configure, so config.status won't be able to write to it; its
12690 # output is simply discarded. So we exec the FD to /dev/null,
12691 # effectively closing config.log, so it can be properly (re)opened and
12692 # appended to by config.status. When coming back to configure, we
12693 # need to make the FD available again.
12694 if test "$no_create" != yes; then
12695 ac_cs_success=:
12696 ac_config_status_args=
12697 test "$silent" = yes &&
12698 ac_config_status_args="$ac_config_status_args --quiet"
12699 exec 5>/dev/null
12700 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12701 exec 5>>config.log
12702 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12703 # would make configure fail if this is the last instruction.
12704 $ac_cs_success || as_fn_exit 1
12705 fi
12706 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12708 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12709 fi
12710
12711