configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for xwininfo 1.1.1.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212 fi; }
213 IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
242 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243 $0: about your system, including any error possibly output
244 $0: before this message. Then install a modern shell, or
245 $0: manually run the script under such a shell if you do
246 $0: have one."
247 fi
248 exit 1
249 fi
250 fi
251 fi
252 SHELL=${CONFIG_SHELL-/bin/sh}
253 export SHELL
254 # Unset more variables known to interfere with behavior of common tools.
255 CLICOLOR_FORCE= GREP_OPTIONS=
256 unset CLICOLOR_FORCE GREP_OPTIONS
257
258 ## --------------------- ##
259 ## M4sh Shell Functions. ##
260 ## --------------------- ##
261 # as_fn_unset VAR
262 # ---------------
263 # Portably unset VAR.
264 as_fn_unset ()
265 {
266 { eval $1=; unset $1;}
267 }
268 as_unset=as_fn_unset
269
270 # as_fn_set_status STATUS
271 # -----------------------
272 # Set $? to STATUS, without forking.
273 as_fn_set_status ()
274 {
275 return $1
276 } # as_fn_set_status
277
278 # as_fn_exit STATUS
279 # -----------------
280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 as_fn_exit ()
282 {
283 set +e
284 as_fn_set_status $1
285 exit $1
286 } # as_fn_exit
287
288 # as_fn_mkdir_p
289 # -------------
290 # Create "$as_dir" as a directory, including parents if necessary.
291 as_fn_mkdir_p ()
292 {
293
294 case $as_dir in #(
295 -*) as_dir=./$as_dir;;
296 esac
297 test -d "$as_dir" || eval $as_mkdir_p || {
298 as_dirs=
299 while :; do
300 case $as_dir in #(
301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 *) as_qdir=$as_dir;;
303 esac
304 as_dirs="'$as_qdir' $as_dirs"
305 as_dir=`$as_dirname -- "$as_dir" ||
306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307 X"$as_dir" : 'X\(//\)[^/]' \| \
308 X"$as_dir" : 'X\(//\)$' \| \
309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310 $as_echo X"$as_dir" |
311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)[^/].*/{
316 s//\1/
317 q
318 }
319 /^X\(\/\/\)$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\).*/{
324 s//\1/
325 q
326 }
327 s/.*/./; q'`
328 test -d "$as_dir" && break
329 done
330 test -z "$as_dirs" || eval "mkdir $as_dirs"
331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
332
333
334 } # as_fn_mkdir_p
335 # as_fn_append VAR VALUE
336 # ----------------------
337 # Append the text in VALUE to the end of the definition contained in VAR. Take
338 # advantage of any shell optimizations that allow amortized linear growth over
339 # repeated appends, instead of the typical quadratic growth present in naive
340 # implementations.
341 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342 eval 'as_fn_append ()
343 {
344 eval $1+=\$2
345 }'
346 else
347 as_fn_append ()
348 {
349 eval $1=\$$1\$2
350 }
351 fi # as_fn_append
352
353 # as_fn_arith ARG...
354 # ------------------
355 # Perform arithmetic evaluation on the ARGs, and store the result in the
356 # global $as_val. Take advantage of shells that can avoid forks. The arguments
357 # must be portable across $(()) and expr.
358 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
359 eval 'as_fn_arith ()
360 {
361 as_val=$(( $* ))
362 }'
363 else
364 as_fn_arith ()
365 {
366 as_val=`expr "$@" || test $? -eq 1`
367 }
368 fi # as_fn_arith
369
370
371 # as_fn_error STATUS ERROR [LINENO LOG_FD]
372 # ----------------------------------------
373 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375 # script with STATUS, using 1 if that was 0.
376 as_fn_error ()
377 {
378 as_status=$1; test $as_status -eq 0 && as_status=1
379 if test "$4"; then
380 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 fi
383 $as_echo "$as_me: error: $2" >&2
384 as_fn_exit $as_status
385 } # as_fn_error
386
387 if expr a : '\(a\)' >/dev/null 2>&1 &&
388 test "X`expr 00001 : '.*\(...\)'`" = X001; then
389 as_expr=expr
390 else
391 as_expr=false
392 fi
393
394 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
395 as_basename=basename
396 else
397 as_basename=false
398 fi
399
400 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
401 as_dirname=dirname
402 else
403 as_dirname=false
404 fi
405
406 as_me=`$as_basename -- "$0" ||
407 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408 X"$0" : 'X\(//\)$' \| \
409 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 $as_echo X/"$0" |
411 sed '/^.*\/\([^/][^/]*\)\/*$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\/\)$/{
416 s//\1/
417 q
418 }
419 /^X\/\(\/\).*/{
420 s//\1/
421 q
422 }
423 s/.*/./; q'`
424
425 # Avoid depending upon Character Ranges.
426 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429 as_cr_digits='0123456789'
430 as_cr_alnum=$as_cr_Letters$as_cr_digits
431
432
433 as_lineno_1=$LINENO as_lineno_1a=$LINENO
434 as_lineno_2=$LINENO as_lineno_2a=$LINENO
435 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464 ECHO_C= ECHO_N= ECHO_T=
465 case `echo -n x` in #(((((
466 -n*)
467 case `echo 'xy\c'` in
468 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 xy) ECHO_C='\c';;
470 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 ECHO_T=' ';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 rm -f conf$$ conf$$.exe conf$$.file
478 if test -d conf$$.dir; then
479 rm -f conf$$.dir/conf$$.file
480 else
481 rm -f conf$$.dir
482 mkdir conf$$.dir 2>/dev/null
483 fi
484 if (echo >conf$$.file) 2>/dev/null; then
485 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 as_ln_s='ln -s'
487 # ... but there are two gotchas:
488 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
489 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
490 # In both cases, we have to default to `cp -p'.
491 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 as_ln_s='cp -p'
493 elif ln conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s=ln
495 else
496 as_ln_s='cp -p'
497 fi
498 else
499 as_ln_s='cp -p'
500 fi
501 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
502 rmdir conf$$.dir 2>/dev/null
503
504 if mkdir -p . 2>/dev/null; then
505 as_mkdir_p='mkdir -p "$as_dir"'
506 else
507 test -d ./-p && rmdir ./-p
508 as_mkdir_p=false
509 fi
510
511 if test -x / >/dev/null 2>&1; then
512 as_test_x='test -x'
513 else
514 if ls -dL / >/dev/null 2>&1; then
515 as_ls_L_option=L
516 else
517 as_ls_L_option=
518 fi
519 as_test_x='
520 eval sh -c '\''
521 if test -d "$1"; then
522 test -d "$1/.";
523 else
524 case $1 in #(
525 -*)set "./$1";;
526 esac;
527 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
528 ???[sx]*):;;*)false;;esac;fi
529 '\'' sh
530 '
531 fi
532 as_executable_p=$as_test_x
533
534 # Sed expression to map a string onto a valid CPP name.
535 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536
537 # Sed expression to map a string onto a valid variable name.
538 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539
540
541 test -n "$DJDIR" || exec 7<&0 </dev/null
542 exec 6>&1
543
544 # Name of the host.
545 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
546 # so uname gets run too.
547 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548
549 #
550 # Initializations.
551 #
552 ac_default_prefix=/usr/local
553 ac_clean_files=
554 ac_config_libobj_dir=.
555 LIBOBJS=
556 cross_compiling=no
557 subdirs=
558 MFLAGS=
559 MAKEFLAGS=
560
561 # Identity of this package.
562 PACKAGE_NAME='xwininfo'
563 PACKAGE_TARNAME='xwininfo'
564 PACKAGE_VERSION='1.1.1'
565 PACKAGE_STRING='xwininfo 1.1.1'
566 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
567 PACKAGE_URL=''
568
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 XLIB_LIBS
609 XLIB_CFLAGS
610 XWININFO_LIBS
611 XWININFO_CFLAGS
612 LIBOBJS
613 AM_BACKSLASH
614 AM_DEFAULT_VERBOSITY
615 MAN_SUBSTS
616 XORG_MAN_PAGE
617 ADMIN_MAN_DIR
618 DRIVER_MAN_DIR
619 MISC_MAN_DIR
620 FILE_MAN_DIR
621 LIB_MAN_DIR
622 APP_MAN_DIR
623 ADMIN_MAN_SUFFIX
624 DRIVER_MAN_SUFFIX
625 MISC_MAN_SUFFIX
626 FILE_MAN_SUFFIX
627 LIB_MAN_SUFFIX
628 APP_MAN_SUFFIX
629 SED
630 host_os
631 host_vendor
632 host_cpu
633 host
634 build_os
635 build_vendor
636 build_cpu
637 build
638 INSTALL_CMD
639 PKG_CONFIG
640 CHANGELOG_CMD
641 CWARNFLAGS
642 EGREP
643 GREP
644 CPP
645 am__fastdepCC_FALSE
646 am__fastdepCC_TRUE
647 CCDEPMODE
648 AMDEPBACKSLASH
649 AMDEP_FALSE
650 AMDEP_TRUE
651 am__quote
652 am__include
653 DEPDIR
654 OBJEXT
655 EXEEXT
656 ac_ct_CC
657 CPPFLAGS
658 LDFLAGS
659 CFLAGS
660 CC
661 MAINT
662 MAINTAINER_MODE_FALSE
663 MAINTAINER_MODE_TRUE
664 am__untar
665 am__tar
666 AMTAR
667 am__leading_dot
668 SET_MAKE
669 AWK
670 mkdir_p
671 MKDIR_P
672 INSTALL_STRIP_PROGRAM
673 STRIP
674 install_sh
675 MAKEINFO
676 AUTOHEADER
677 AUTOMAKE
678 AUTOCONF
679 ACLOCAL
680 VERSION
681 PACKAGE
682 CYGPATH_W
683 am__isrc
684 INSTALL_DATA
685 INSTALL_SCRIPT
686 INSTALL_PROGRAM
687 target_alias
688 host_alias
689 build_alias
690 LIBS
691 ECHO_T
692 ECHO_N
693 ECHO_C
694 DEFS
695 mandir
696 localedir
697 libdir
698 psdir
699 pdfdir
700 dvidir
701 htmldir
702 infodir
703 docdir
704 oldincludedir
705 includedir
706 localstatedir
707 sharedstatedir
708 sysconfdir
709 datadir
710 datarootdir
711 libexecdir
712 sbindir
713 bindir
714 program_transform_name
715 prefix
716 exec_prefix
717 PACKAGE_URL
718 PACKAGE_BUGREPORT
719 PACKAGE_STRING
720 PACKAGE_VERSION
721 PACKAGE_TARNAME
722 PACKAGE_NAME
723 PATH_SEPARATOR
724 SHELL'
725 ac_subst_files=''
726 ac_user_opts='
727 enable_option_checking
728 enable_maintainer_mode
729 enable_dependency_tracking
730 enable_strict_compilation
731 enable_silent_rules
732 with_xcb_icccm
733 '
734 ac_precious_vars='build_alias
735 host_alias
736 target_alias
737 CC
738 CFLAGS
739 LDFLAGS
740 LIBS
741 CPPFLAGS
742 CPP
743 PKG_CONFIG
744 XWININFO_CFLAGS
745 XWININFO_LIBS
746 XLIB_CFLAGS
747 XLIB_LIBS'
748
749
750 # Initialize some variables set by options.
751 ac_init_help=
752 ac_init_version=false
753 ac_unrecognized_opts=
754 ac_unrecognized_sep=
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
757 cache_file=/dev/null
758 exec_prefix=NONE
759 no_create=
760 no_recursion=
761 prefix=NONE
762 program_prefix=NONE
763 program_suffix=NONE
764 program_transform_name=s,x,x,
765 silent=
766 site=
767 srcdir=
768 verbose=
769 x_includes=NONE
770 x_libraries=NONE
771
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir='${exec_prefix}/bin'
779 sbindir='${exec_prefix}/sbin'
780 libexecdir='${exec_prefix}/libexec'
781 datarootdir='${prefix}/share'
782 datadir='${datarootdir}'
783 sysconfdir='${prefix}/etc'
784 sharedstatedir='${prefix}/com'
785 localstatedir='${prefix}/var'
786 includedir='${prefix}/include'
787 oldincludedir='/usr/include'
788 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir='${datarootdir}/info'
790 htmldir='${docdir}'
791 dvidir='${docdir}'
792 pdfdir='${docdir}'
793 psdir='${docdir}'
794 libdir='${exec_prefix}/lib'
795 localedir='${datarootdir}/locale'
796 mandir='${datarootdir}/man'
797
798 ac_prev=
799 ac_dashdash=
800 for ac_option
801 do
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\$ac_option
805 ac_prev=
806 continue
807 fi
808
809 case $ac_option in
810 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
811 *=) ac_optarg= ;;
812 *) ac_optarg=yes ;;
813 esac
814
815 # Accept the important Cygnus configure options, so we can diagnose typos.
816
817 case $ac_dashdash$ac_option in
818 --)
819 ac_dashdash=yes ;;
820
821 -bindir | --bindir | --bindi | --bind | --bin | --bi)
822 ac_prev=bindir ;;
823 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
824 bindir=$ac_optarg ;;
825
826 -build | --build | --buil | --bui | --bu)
827 ac_prev=build_alias ;;
828 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
829 build_alias=$ac_optarg ;;
830
831 -cache-file | --cache-file | --cache-fil | --cache-fi \
832 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
833 ac_prev=cache_file ;;
834 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
835 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
836 cache_file=$ac_optarg ;;
837
838 --config-cache | -C)
839 cache_file=config.cache ;;
840
841 -datadir | --datadir | --datadi | --datad)
842 ac_prev=datadir ;;
843 -datadir=* | --datadir=* | --datadi=* | --datad=*)
844 datadir=$ac_optarg ;;
845
846 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
847 | --dataroo | --dataro | --datar)
848 ac_prev=datarootdir ;;
849 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
850 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
851 datarootdir=$ac_optarg ;;
852
853 -disable-* | --disable-*)
854 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
855 # Reject names that are not valid shell variable names.
856 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
857 as_fn_error $? "invalid feature name: $ac_useropt"
858 ac_useropt_orig=$ac_useropt
859 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
860 case $ac_user_opts in
861 *"
862 "enable_$ac_useropt"
863 "*) ;;
864 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
865 ac_unrecognized_sep=', ';;
866 esac
867 eval enable_$ac_useropt=no ;;
868
869 -docdir | --docdir | --docdi | --doc | --do)
870 ac_prev=docdir ;;
871 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
872 docdir=$ac_optarg ;;
873
874 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
875 ac_prev=dvidir ;;
876 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
877 dvidir=$ac_optarg ;;
878
879 -enable-* | --enable-*)
880 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
881 # Reject names that are not valid shell variable names.
882 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
883 as_fn_error $? "invalid feature name: $ac_useropt"
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
887 *"
888 "enable_$ac_useropt"
889 "*) ;;
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
892 esac
893 eval enable_$ac_useropt=\$ac_optarg ;;
894
895 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
896 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
897 | --exec | --exe | --ex)
898 ac_prev=exec_prefix ;;
899 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
900 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
901 | --exec=* | --exe=* | --ex=*)
902 exec_prefix=$ac_optarg ;;
903
904 -gas | --gas | --ga | --g)
905 # Obsolete; use --with-gas.
906 with_gas=yes ;;
907
908 -help | --help | --hel | --he | -h)
909 ac_init_help=long ;;
910 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
911 ac_init_help=recursive ;;
912 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
913 ac_init_help=short ;;
914
915 -host | --host | --hos | --ho)
916 ac_prev=host_alias ;;
917 -host=* | --host=* | --hos=* | --ho=*)
918 host_alias=$ac_optarg ;;
919
920 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
921 ac_prev=htmldir ;;
922 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
923 | --ht=*)
924 htmldir=$ac_optarg ;;
925
926 -includedir | --includedir | --includedi | --included | --include \
927 | --includ | --inclu | --incl | --inc)
928 ac_prev=includedir ;;
929 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
930 | --includ=* | --inclu=* | --incl=* | --inc=*)
931 includedir=$ac_optarg ;;
932
933 -infodir | --infodir | --infodi | --infod | --info | --inf)
934 ac_prev=infodir ;;
935 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
936 infodir=$ac_optarg ;;
937
938 -libdir | --libdir | --libdi | --libd)
939 ac_prev=libdir ;;
940 -libdir=* | --libdir=* | --libdi=* | --libd=*)
941 libdir=$ac_optarg ;;
942
943 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
944 | --libexe | --libex | --libe)
945 ac_prev=libexecdir ;;
946 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
947 | --libexe=* | --libex=* | --libe=*)
948 libexecdir=$ac_optarg ;;
949
950 -localedir | --localedir | --localedi | --localed | --locale)
951 ac_prev=localedir ;;
952 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
953 localedir=$ac_optarg ;;
954
955 -localstatedir | --localstatedir | --localstatedi | --localstated \
956 | --localstate | --localstat | --localsta | --localst | --locals)
957 ac_prev=localstatedir ;;
958 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
959 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
960 localstatedir=$ac_optarg ;;
961
962 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
963 ac_prev=mandir ;;
964 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
965 mandir=$ac_optarg ;;
966
967 -nfp | --nfp | --nf)
968 # Obsolete; use --without-fp.
969 with_fp=no ;;
970
971 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
972 | --no-cr | --no-c | -n)
973 no_create=yes ;;
974
975 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
976 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
977 no_recursion=yes ;;
978
979 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
980 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
981 | --oldin | --oldi | --old | --ol | --o)
982 ac_prev=oldincludedir ;;
983 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
984 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
985 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
986 oldincludedir=$ac_optarg ;;
987
988 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
989 ac_prev=prefix ;;
990 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
991 prefix=$ac_optarg ;;
992
993 -program-prefix | --program-prefix | --program-prefi | --program-pref \
994 | --program-pre | --program-pr | --program-p)
995 ac_prev=program_prefix ;;
996 -program-prefix=* | --program-prefix=* | --program-prefi=* \
997 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
998 program_prefix=$ac_optarg ;;
999
1000 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1001 | --program-suf | --program-su | --program-s)
1002 ac_prev=program_suffix ;;
1003 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1004 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1005 program_suffix=$ac_optarg ;;
1006
1007 -program-transform-name | --program-transform-name \
1008 | --program-transform-nam | --program-transform-na \
1009 | --program-transform-n | --program-transform- \
1010 | --program-transform | --program-transfor \
1011 | --program-transfo | --program-transf \
1012 | --program-trans | --program-tran \
1013 | --progr-tra | --program-tr | --program-t)
1014 ac_prev=program_transform_name ;;
1015 -program-transform-name=* | --program-transform-name=* \
1016 | --program-transform-nam=* | --program-transform-na=* \
1017 | --program-transform-n=* | --program-transform-=* \
1018 | --program-transform=* | --program-transfor=* \
1019 | --program-transfo=* | --program-transf=* \
1020 | --program-trans=* | --program-tran=* \
1021 | --progr-tra=* | --program-tr=* | --program-t=*)
1022 program_transform_name=$ac_optarg ;;
1023
1024 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1025 ac_prev=pdfdir ;;
1026 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1027 pdfdir=$ac_optarg ;;
1028
1029 -psdir | --psdir | --psdi | --psd | --ps)
1030 ac_prev=psdir ;;
1031 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1032 psdir=$ac_optarg ;;
1033
1034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1035 | -silent | --silent | --silen | --sile | --sil)
1036 silent=yes ;;
1037
1038 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1039 ac_prev=sbindir ;;
1040 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1041 | --sbi=* | --sb=*)
1042 sbindir=$ac_optarg ;;
1043
1044 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1045 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1046 | --sharedst | --shareds | --shared | --share | --shar \
1047 | --sha | --sh)
1048 ac_prev=sharedstatedir ;;
1049 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1050 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1051 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1052 | --sha=* | --sh=*)
1053 sharedstatedir=$ac_optarg ;;
1054
1055 -site | --site | --sit)
1056 ac_prev=site ;;
1057 -site=* | --site=* | --sit=*)
1058 site=$ac_optarg ;;
1059
1060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1061 ac_prev=srcdir ;;
1062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1063 srcdir=$ac_optarg ;;
1064
1065 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1066 | --syscon | --sysco | --sysc | --sys | --sy)
1067 ac_prev=sysconfdir ;;
1068 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1069 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1070 sysconfdir=$ac_optarg ;;
1071
1072 -target | --target | --targe | --targ | --tar | --ta | --t)
1073 ac_prev=target_alias ;;
1074 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1075 target_alias=$ac_optarg ;;
1076
1077 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1078 verbose=yes ;;
1079
1080 -version | --version | --versio | --versi | --vers | -V)
1081 ac_init_version=: ;;
1082
1083 -with-* | --with-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error $? "invalid package name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1091 *"
1092 "with_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval with_$ac_useropt=\$ac_optarg ;;
1098
1099 -without-* | --without-*)
1100 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1101 # Reject names that are not valid shell variable names.
1102 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1103 as_fn_error $? "invalid package name: $ac_useropt"
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1107 *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1112 esac
1113 eval with_$ac_useropt=no ;;
1114
1115 --x)
1116 # Obsolete; use --with-x.
1117 with_x=yes ;;
1118
1119 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1120 | --x-incl | --x-inc | --x-in | --x-i)
1121 ac_prev=x_includes ;;
1122 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1123 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1124 x_includes=$ac_optarg ;;
1125
1126 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1127 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1128 ac_prev=x_libraries ;;
1129 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1130 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1131 x_libraries=$ac_optarg ;;
1132
1133 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1134 Try \`$0 --help' for more information"
1135 ;;
1136
1137 *=*)
1138 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1139 # Reject names that are not valid shell variable names.
1140 case $ac_envvar in #(
1141 '' | [0-9]* | *[!_$as_cr_alnum]* )
1142 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1143 esac
1144 eval $ac_envvar=\$ac_optarg
1145 export $ac_envvar ;;
1146
1147 *)
1148 # FIXME: should be removed in autoconf 3.0.
1149 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1150 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1151 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1152 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1153 ;;
1154
1155 esac
1156 done
1157
1158 if test -n "$ac_prev"; then
1159 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1160 as_fn_error $? "missing argument to $ac_option"
1161 fi
1162
1163 if test -n "$ac_unrecognized_opts"; then
1164 case $enable_option_checking in
1165 no) ;;
1166 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1167 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1168 esac
1169 fi
1170
1171 # Check all directory arguments for consistency.
1172 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
1176 do
1177 eval ac_val=\$$ac_var
1178 # Remove trailing slashes.
1179 case $ac_val in
1180 */ )
1181 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1182 eval $ac_var=\$ac_val;;
1183 esac
1184 # Be sure to have absolute directory names.
1185 case $ac_val in
1186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1188 esac
1189 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1190 done
1191
1192 # There might be people who depend on the old broken behavior: `$host'
1193 # used to hold the argument of --host etc.
1194 # FIXME: To remove some day.
1195 build=$build_alias
1196 host=$host_alias
1197 target=$target_alias
1198
1199 # FIXME: To remove some day.
1200 if test "x$host_alias" != x; then
1201 if test "x$build_alias" = x; then
1202 cross_compiling=maybe
1203 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1204 If a cross compiler is detected then cross compile mode will be used" >&2
1205 elif test "x$build_alias" != "x$host_alias"; then
1206 cross_compiling=yes
1207 fi
1208 fi
1209
1210 ac_tool_prefix=
1211 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1212
1213 test "$silent" = yes && exec 6>/dev/null
1214
1215
1216 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1217 ac_ls_di=`ls -di .` &&
1218 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1219 as_fn_error $? "working directory cannot be determined"
1220 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1221 as_fn_error $? "pwd does not report name of working directory"
1222
1223
1224 # Find the source files, if location was not specified.
1225 if test -z "$srcdir"; then
1226 ac_srcdir_defaulted=yes
1227 # Try the directory containing this script, then the parent directory.
1228 ac_confdir=`$as_dirname -- "$as_myself" ||
1229 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230 X"$as_myself" : 'X\(//\)[^/]' \| \
1231 X"$as_myself" : 'X\(//\)$' \| \
1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1233 $as_echo X"$as_myself" |
1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\/\)[^/].*/{
1239 s//\1/
1240 q
1241 }
1242 /^X\(\/\/\)$/{
1243 s//\1/
1244 q
1245 }
1246 /^X\(\/\).*/{
1247 s//\1/
1248 q
1249 }
1250 s/.*/./; q'`
1251 srcdir=$ac_confdir
1252 if test ! -r "$srcdir/$ac_unique_file"; then
1253 srcdir=..
1254 fi
1255 else
1256 ac_srcdir_defaulted=no
1257 fi
1258 if test ! -r "$srcdir/$ac_unique_file"; then
1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1261 fi
1262 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1263 ac_abs_confdir=`(
1264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1265 pwd)`
1266 # When building in place, set srcdir=.
1267 if test "$ac_abs_confdir" = "$ac_pwd"; then
1268 srcdir=.
1269 fi
1270 # Remove unnecessary trailing slashes from srcdir.
1271 # Double slashes in file names in object file debugging info
1272 # mess up M-x gdb in Emacs.
1273 case $srcdir in
1274 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1275 esac
1276 for ac_var in $ac_precious_vars; do
1277 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_env_${ac_var}_value=\$${ac_var}
1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1280 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1281 done
1282
1283 #
1284 # Report the --help message.
1285 #
1286 if test "$ac_init_help" = "long"; then
1287 # Omit some internal or obsolete options to make the list less imposing.
1288 # This message is too long to be a string in the A/UX 3.1 sh.
1289 cat <<_ACEOF
1290 \`configure' configures xwininfo 1.1.1 to adapt to many kinds of systems.
1291
1292 Usage: $0 [OPTION]... [VAR=VALUE]...
1293
1294 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1295 VAR=VALUE. See below for descriptions of some of the useful variables.
1296
1297 Defaults for the options are specified in brackets.
1298
1299 Configuration:
1300 -h, --help display this help and exit
1301 --help=short display options specific to this package
1302 --help=recursive display the short help of all the included packages
1303 -V, --version display version information and exit
1304 -q, --quiet, --silent do not print \`checking ...' messages
1305 --cache-file=FILE cache test results in FILE [disabled]
1306 -C, --config-cache alias for \`--cache-file=config.cache'
1307 -n, --no-create do not create output files
1308 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1309
1310 Installation directories:
1311 --prefix=PREFIX install architecture-independent files in PREFIX
1312 [$ac_default_prefix]
1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1314 [PREFIX]
1315
1316 By default, \`make install' will install all the files in
1317 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1318 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1319 for instance \`--prefix=\$HOME'.
1320
1321 For better control, use the options below.
1322
1323 Fine tuning of the installation directories:
1324 --bindir=DIR user executables [EPREFIX/bin]
1325 --sbindir=DIR system admin executables [EPREFIX/sbin]
1326 --libexecdir=DIR program executables [EPREFIX/libexec]
1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1330 --libdir=DIR object code libraries [EPREFIX/lib]
1331 --includedir=DIR C header files [PREFIX/include]
1332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1335 --infodir=DIR info documentation [DATAROOTDIR/info]
1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1337 --mandir=DIR man documentation [DATAROOTDIR/man]
1338 --docdir=DIR documentation root [DATAROOTDIR/doc/xwininfo]
1339 --htmldir=DIR html documentation [DOCDIR]
1340 --dvidir=DIR dvi documentation [DOCDIR]
1341 --pdfdir=DIR pdf documentation [DOCDIR]
1342 --psdir=DIR ps documentation [DOCDIR]
1343 _ACEOF
1344
1345 cat <<\_ACEOF
1346
1347 Program names:
1348 --program-prefix=PREFIX prepend PREFIX to installed program names
1349 --program-suffix=SUFFIX append SUFFIX to installed program names
1350 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1351
1352 System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355 _ACEOF
1356 fi
1357
1358 if test -n "$ac_init_help"; then
1359 case $ac_init_help in
1360 short | recursive ) echo "Configuration of xwininfo 1.1.1:";;
1361 esac
1362 cat <<\_ACEOF
1363
1364 Optional Features:
1365 --disable-option-checking ignore unrecognized --enable/--with options
1366 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1367 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1368 --enable-maintainer-mode enable make rules and dependencies not useful
1369 (and sometimes confusing) to the casual installer
1370 --disable-dependency-tracking speeds up one-time build
1371 --enable-dependency-tracking do not reject slow dependency extractors
1372 --enable-strict-compilation
1373 Enable all warnings from compiler and make them
1374 errors (default: disabled)
1375 --enable-silent-rules less verbose build output (undo: `make V=1')
1376 --disable-silent-rules verbose build output (undo: `make V=0')
1377
1378 Optional Packages:
1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1381 --with-xcb-icccm use xcb-icccm (default: no)
1382
1383 Some influential environment variables:
1384 CC C compiler command
1385 CFLAGS C compiler flags
1386 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1387 nonstandard directory <lib dir>
1388 LIBS libraries to pass to the linker, e.g. -l<library>
1389 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1390 you have headers in a nonstandard directory <include dir>
1391 CPP C preprocessor
1392 PKG_CONFIG path to pkg-config utility
1393 XWININFO_CFLAGS
1394 C compiler flags for XWININFO, overriding pkg-config
1395 XWININFO_LIBS
1396 linker flags for XWININFO, overriding pkg-config
1397 XLIB_CFLAGS C compiler flags for XLIB, overriding pkg-config
1398 XLIB_LIBS linker flags for XLIB, overriding pkg-config
1399
1400 Use these variables to override the choices made by `configure' or to help
1401 it to find libraries and programs with nonstandard names/locations.
1402
1403 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1404 _ACEOF
1405 ac_status=$?
1406 fi
1407
1408 if test "$ac_init_help" = "recursive"; then
1409 # If there are subdirs, report their specific --help.
1410 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1411 test -d "$ac_dir" ||
1412 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1413 continue
1414 ac_builddir=.
1415
1416 case "$ac_dir" in
1417 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 *)
1419 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1420 # A ".." for each directory in $ac_dir_suffix.
1421 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1422 case $ac_top_builddir_sub in
1423 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1424 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1425 esac ;;
1426 esac
1427 ac_abs_top_builddir=$ac_pwd
1428 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1429 # for backward compatibility:
1430 ac_top_builddir=$ac_top_build_prefix
1431
1432 case $srcdir in
1433 .) # We are building in place.
1434 ac_srcdir=.
1435 ac_top_srcdir=$ac_top_builddir_sub
1436 ac_abs_top_srcdir=$ac_pwd ;;
1437 [\\/]* | ?:[\\/]* ) # Absolute name.
1438 ac_srcdir=$srcdir$ac_dir_suffix;
1439 ac_top_srcdir=$srcdir
1440 ac_abs_top_srcdir=$srcdir ;;
1441 *) # Relative name.
1442 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1443 ac_top_srcdir=$ac_top_build_prefix$srcdir
1444 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1445 esac
1446 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1447
1448 cd "$ac_dir" || { ac_status=$?; continue; }
1449 # Check for guested configure.
1450 if test -f "$ac_srcdir/configure.gnu"; then
1451 echo &&
1452 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1453 elif test -f "$ac_srcdir/configure"; then
1454 echo &&
1455 $SHELL "$ac_srcdir/configure" --help=recursive
1456 else
1457 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1458 fi || ac_status=$?
1459 cd "$ac_pwd" || { ac_status=$?; break; }
1460 done
1461 fi
1462
1463 test -n "$ac_init_help" && exit $ac_status
1464 if $ac_init_version; then
1465 cat <<\_ACEOF
1466 xwininfo configure 1.1.1
1467 generated by GNU Autoconf 2.68
1468
1469 Copyright (C) 2010 Free Software Foundation, Inc.
1470 This configure script is free software; the Free Software Foundation
1471 gives unlimited permission to copy, distribute and modify it.
1472 _ACEOF
1473 exit
1474 fi
1475
1476 ## ------------------------ ##
1477 ## Autoconf initialization. ##
1478 ## ------------------------ ##
1479
1480 # ac_fn_c_try_compile LINENO
1481 # --------------------------
1482 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1483 ac_fn_c_try_compile ()
1484 {
1485 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1486 rm -f conftest.$ac_objext
1487 if { { ac_try="$ac_compile"
1488 case "(($ac_try" in
1489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1490 *) ac_try_echo=$ac_try;;
1491 esac
1492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1493 $as_echo "$ac_try_echo"; } >&5
1494 (eval "$ac_compile") 2>conftest.err
1495 ac_status=$?
1496 if test -s conftest.err; then
1497 grep -v '^ *+' conftest.err >conftest.er1
1498 cat conftest.er1 >&5
1499 mv -f conftest.er1 conftest.err
1500 fi
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; } && {
1503 test -z "$ac_c_werror_flag" ||
1504 test ! -s conftest.err
1505 } && test -s conftest.$ac_objext; then :
1506 ac_retval=0
1507 else
1508 $as_echo "$as_me: failed program was:" >&5
1509 sed 's/^/| /' conftest.$ac_ext >&5
1510
1511 ac_retval=1
1512 fi
1513 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1514 as_fn_set_status $ac_retval
1515
1516 } # ac_fn_c_try_compile
1517
1518 # ac_fn_c_try_cpp LINENO
1519 # ----------------------
1520 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1521 ac_fn_c_try_cpp ()
1522 {
1523 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1524 if { { ac_try="$ac_cpp conftest.$ac_ext"
1525 case "(($ac_try" in
1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1527 *) ac_try_echo=$ac_try;;
1528 esac
1529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1530 $as_echo "$ac_try_echo"; } >&5
1531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1532 ac_status=$?
1533 if test -s conftest.err; then
1534 grep -v '^ *+' conftest.err >conftest.er1
1535 cat conftest.er1 >&5
1536 mv -f conftest.er1 conftest.err
1537 fi
1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1539 test $ac_status = 0; } > conftest.i && {
1540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1541 test ! -s conftest.err
1542 }; then :
1543 ac_retval=0
1544 else
1545 $as_echo "$as_me: failed program was:" >&5
1546 sed 's/^/| /' conftest.$ac_ext >&5
1547
1548 ac_retval=1
1549 fi
1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1551 as_fn_set_status $ac_retval
1552
1553 } # ac_fn_c_try_cpp
1554
1555 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1556 # -------------------------------------------------------
1557 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1558 # the include files in INCLUDES and setting the cache variable VAR
1559 # accordingly.
1560 ac_fn_c_check_header_mongrel ()
1561 {
1562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563 if eval \${$3+:} false; then :
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1565 $as_echo_n "checking for $2... " >&6; }
1566 if eval \${$3+:} false; then :
1567 $as_echo_n "(cached) " >&6
1568 fi
1569 eval ac_res=\$$3
1570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1571 $as_echo "$ac_res" >&6; }
1572 else
1573 # Is the header compilable?
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1575 $as_echo_n "checking $2 usability... " >&6; }
1576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1577 /* end confdefs.h. */
1578 $4
1579 #include <$2>
1580 _ACEOF
1581 if ac_fn_c_try_compile "$LINENO"; then :
1582 ac_header_compiler=yes
1583 else
1584 ac_header_compiler=no
1585 fi
1586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1588 $as_echo "$ac_header_compiler" >&6; }
1589
1590 # Is the header present?
1591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1592 $as_echo_n "checking $2 presence... " >&6; }
1593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1594 /* end confdefs.h. */
1595 #include <$2>
1596 _ACEOF
1597 if ac_fn_c_try_cpp "$LINENO"; then :
1598 ac_header_preproc=yes
1599 else
1600 ac_header_preproc=no
1601 fi
1602 rm -f conftest.err conftest.i conftest.$ac_ext
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1604 $as_echo "$ac_header_preproc" >&6; }
1605
1606 # So? What about this header?
1607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1608 yes:no: )
1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1610 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1612 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1613 ;;
1614 no:yes:* )
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1616 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1618 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1620 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1622 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1624 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1625 ( $as_echo "## ---------------------------------------------------------------------- ##
1626 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1627 ## ---------------------------------------------------------------------- ##"
1628 ) | sed "s/^/$as_me: WARNING: /" >&2
1629 ;;
1630 esac
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632 $as_echo_n "checking for $2... " >&6; }
1633 if eval \${$3+:} false; then :
1634 $as_echo_n "(cached) " >&6
1635 else
1636 eval "$3=\$ac_header_compiler"
1637 fi
1638 eval ac_res=\$$3
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640 $as_echo "$ac_res" >&6; }
1641 fi
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643
1644 } # ac_fn_c_check_header_mongrel
1645
1646 # ac_fn_c_try_run LINENO
1647 # ----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1649 # that executables *can* be run.
1650 ac_fn_c_try_run ()
1651 {
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 if { { ac_try="$ac_link"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>&5
1661 ac_status=$?
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1664 { { case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_try") 2>&5
1671 ac_status=$?
1672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; }; }; then :
1674 ac_retval=0
1675 else
1676 $as_echo "$as_me: program exited with status $ac_status" >&5
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=$ac_status
1681 fi
1682 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_run
1687
1688 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1689 # -------------------------------------------------------
1690 # Tests whether HEADER exists and can be compiled using the include files in
1691 # INCLUDES, setting the cache variable VAR accordingly.
1692 ac_fn_c_check_header_compile ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1696 $as_echo_n "checking for $2... " >&6; }
1697 if eval \${$3+:} false; then :
1698 $as_echo_n "(cached) " >&6
1699 else
1700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1701 /* end confdefs.h. */
1702 $4
1703 #include <$2>
1704 _ACEOF
1705 if ac_fn_c_try_compile "$LINENO"; then :
1706 eval "$3=yes"
1707 else
1708 eval "$3=no"
1709 fi
1710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1711 fi
1712 eval ac_res=\$$3
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1714 $as_echo "$ac_res" >&6; }
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716
1717 } # ac_fn_c_check_header_compile
1718
1719 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1720 # ---------------------------------------------
1721 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1722 # accordingly.
1723 ac_fn_c_check_decl ()
1724 {
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 as_decl_name=`echo $2|sed 's/ *(.*//'`
1727 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1729 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1730 if eval \${$3+:} false; then :
1731 $as_echo_n "(cached) " >&6
1732 else
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 $4
1736 int
1737 main ()
1738 {
1739 #ifndef $as_decl_name
1740 #ifdef __cplusplus
1741 (void) $as_decl_use;
1742 #else
1743 (void) $as_decl_name;
1744 #endif
1745 #endif
1746
1747 ;
1748 return 0;
1749 }
1750 _ACEOF
1751 if ac_fn_c_try_compile "$LINENO"; then :
1752 eval "$3=yes"
1753 else
1754 eval "$3=no"
1755 fi
1756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1757 fi
1758 eval ac_res=\$$3
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1760 $as_echo "$ac_res" >&6; }
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762
1763 } # ac_fn_c_check_decl
1764
1765 # ac_fn_c_try_link LINENO
1766 # -----------------------
1767 # Try to link conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_link ()
1769 {
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext conftest$ac_exeext
1772 if { { ac_try="$ac_link"
1773 case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_link") 2>conftest.err
1780 ac_status=$?
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1785 fi
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest$ac_exeext && {
1791 test "$cross_compiling" = yes ||
1792 $as_test_x conftest$ac_exeext
1793 }; then :
1794 ac_retval=0
1795 else
1796 $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799 ac_retval=1
1800 fi
1801 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1802 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1803 # interfere with the next link command; also delete a directory that is
1804 # left behind by Apple's compiler. We do this before executing the actions.
1805 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807 as_fn_set_status $ac_retval
1808
1809 } # ac_fn_c_try_link
1810
1811 # ac_fn_c_check_func LINENO FUNC VAR
1812 # ----------------------------------
1813 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1814 ac_fn_c_check_func ()
1815 {
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if eval \${$3+:} false; then :
1820 $as_echo_n "(cached) " >&6
1821 else
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1824 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1826 #define $2 innocuous_$2
1827
1828 /* System header to define __stub macros and hopefully few prototypes,
1829 which can conflict with char $2 (); below.
1830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1831 <limits.h> exists even on freestanding compilers. */
1832
1833 #ifdef __STDC__
1834 # include <limits.h>
1835 #else
1836 # include <assert.h>
1837 #endif
1838
1839 #undef $2
1840
1841 /* Override any GCC internal prototype to avoid an error.
1842 Use char because int might match the return type of a GCC
1843 builtin and then its argument prototype would still apply. */
1844 #ifdef __cplusplus
1845 extern "C"
1846 #endif
1847 char $2 ();
1848 /* The GNU C library defines this for functions which it implements
1849 to always fail with ENOSYS. Some functions are actually named
1850 something starting with __ and the normal name is an alias. */
1851 #if defined __stub_$2 || defined __stub___$2
1852 choke me
1853 #endif
1854
1855 int
1856 main ()
1857 {
1858 return $2 ();
1859 ;
1860 return 0;
1861 }
1862 _ACEOF
1863 if ac_fn_c_try_link "$LINENO"; then :
1864 eval "$3=yes"
1865 else
1866 eval "$3=no"
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext \
1869 conftest$ac_exeext conftest.$ac_ext
1870 fi
1871 eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
1876 } # ac_fn_c_check_func
1877 cat >config.log <<_ACEOF
1878 This file contains any messages produced by compilers while
1879 running configure, to aid debugging if configure makes a mistake.
1880
1881 It was created by xwininfo $as_me 1.1.1, which was
1882 generated by GNU Autoconf 2.68. Invocation command line was
1883
1884 $ $0 $@
1885
1886 _ACEOF
1887 exec 5>>config.log
1888 {
1889 cat <<_ASUNAME
1890 ## --------- ##
1891 ## Platform. ##
1892 ## --------- ##
1893
1894 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1895 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1896 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1897 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1898 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1899
1900 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1901 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1902
1903 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1904 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1905 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1906 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1907 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1908 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1909 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1910
1911 _ASUNAME
1912
1913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914 for as_dir in $PATH
1915 do
1916 IFS=$as_save_IFS
1917 test -z "$as_dir" && as_dir=.
1918 $as_echo "PATH: $as_dir"
1919 done
1920 IFS=$as_save_IFS
1921
1922 } >&5
1923
1924 cat >&5 <<_ACEOF
1925
1926
1927 ## ----------- ##
1928 ## Core tests. ##
1929 ## ----------- ##
1930
1931 _ACEOF
1932
1933
1934 # Keep a trace of the command line.
1935 # Strip out --no-create and --no-recursion so they do not pile up.
1936 # Strip out --silent because we don't want to record it for future runs.
1937 # Also quote any args containing shell meta-characters.
1938 # Make two passes to allow for proper duplicate-argument suppression.
1939 ac_configure_args=
1940 ac_configure_args0=
1941 ac_configure_args1=
1942 ac_must_keep_next=false
1943 for ac_pass in 1 2
1944 do
1945 for ac_arg
1946 do
1947 case $ac_arg in
1948 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1950 | -silent | --silent | --silen | --sile | --sil)
1951 continue ;;
1952 *\'*)
1953 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1954 esac
1955 case $ac_pass in
1956 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1957 2)
1958 as_fn_append ac_configure_args1 " '$ac_arg'"
1959 if test $ac_must_keep_next = true; then
1960 ac_must_keep_next=false # Got value, back to normal.
1961 else
1962 case $ac_arg in
1963 *=* | --config-cache | -C | -disable-* | --disable-* \
1964 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1965 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1966 | -with-* | --with-* | -without-* | --without-* | --x)
1967 case "$ac_configure_args0 " in
1968 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1969 esac
1970 ;;
1971 -* ) ac_must_keep_next=true ;;
1972 esac
1973 fi
1974 as_fn_append ac_configure_args " '$ac_arg'"
1975 ;;
1976 esac
1977 done
1978 done
1979 { ac_configure_args0=; unset ac_configure_args0;}
1980 { ac_configure_args1=; unset ac_configure_args1;}
1981
1982 # When interrupted or exit'd, cleanup temporary files, and complete
1983 # config.log. We remove comments because anyway the quotes in there
1984 # would cause problems or look ugly.
1985 # WARNING: Use '\'' to represent an apostrophe within the trap.
1986 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1987 trap 'exit_status=$?
1988 # Save into config.log some information that might help in debugging.
1989 {
1990 echo
1991
1992 $as_echo "## ---------------- ##
1993 ## Cache variables. ##
1994 ## ---------------- ##"
1995 echo
1996 # The following way of writing the cache mishandles newlines in values,
1997 (
1998 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1999 eval ac_val=\$$ac_var
2000 case $ac_val in #(
2001 *${as_nl}*)
2002 case $ac_var in #(
2003 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2004 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2005 esac
2006 case $ac_var in #(
2007 _ | IFS | as_nl) ;; #(
2008 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2009 *) { eval $ac_var=; unset $ac_var;} ;;
2010 esac ;;
2011 esac
2012 done
2013 (set) 2>&1 |
2014 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2015 *${as_nl}ac_space=\ *)
2016 sed -n \
2017 "s/'\''/'\''\\\\'\'''\''/g;
2018 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2019 ;; #(
2020 *)
2021 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2022 ;;
2023 esac |
2024 sort
2025 )
2026 echo
2027
2028 $as_echo "## ----------------- ##
2029 ## Output variables. ##
2030 ## ----------------- ##"
2031 echo
2032 for ac_var in $ac_subst_vars
2033 do
2034 eval ac_val=\$$ac_var
2035 case $ac_val in
2036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 esac
2038 $as_echo "$ac_var='\''$ac_val'\''"
2039 done | sort
2040 echo
2041
2042 if test -n "$ac_subst_files"; then
2043 $as_echo "## ------------------- ##
2044 ## File substitutions. ##
2045 ## ------------------- ##"
2046 echo
2047 for ac_var in $ac_subst_files
2048 do
2049 eval ac_val=\$$ac_var
2050 case $ac_val in
2051 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2052 esac
2053 $as_echo "$ac_var='\''$ac_val'\''"
2054 done | sort
2055 echo
2056 fi
2057
2058 if test -s confdefs.h; then
2059 $as_echo "## ----------- ##
2060 ## confdefs.h. ##
2061 ## ----------- ##"
2062 echo
2063 cat confdefs.h
2064 echo
2065 fi
2066 test "$ac_signal" != 0 &&
2067 $as_echo "$as_me: caught signal $ac_signal"
2068 $as_echo "$as_me: exit $exit_status"
2069 } >&5
2070 rm -f core *.core core.conftest.* &&
2071 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2072 exit $exit_status
2073 ' 0
2074 for ac_signal in 1 2 13 15; do
2075 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2076 done
2077 ac_signal=0
2078
2079 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2080 rm -f -r conftest* confdefs.h
2081
2082 $as_echo "/* confdefs.h */" > confdefs.h
2083
2084 # Predefined preprocessor variables.
2085
2086 cat >>confdefs.h <<_ACEOF
2087 #define PACKAGE_NAME "$PACKAGE_NAME"
2088 _ACEOF
2089
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2092 _ACEOF
2093
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2096 _ACEOF
2097
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_STRING "$PACKAGE_STRING"
2100 _ACEOF
2101
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2104 _ACEOF
2105
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_URL "$PACKAGE_URL"
2108 _ACEOF
2109
2110
2111 # Let the site file select an alternate cache file if it wants to.
2112 # Prefer an explicitly selected file to automatically selected ones.
2113 ac_site_file1=NONE
2114 ac_site_file2=NONE
2115 if test -n "$CONFIG_SITE"; then
2116 # We do not want a PATH search for config.site.
2117 case $CONFIG_SITE in #((
2118 -*) ac_site_file1=./$CONFIG_SITE;;
2119 */*) ac_site_file1=$CONFIG_SITE;;
2120 *) ac_site_file1=./$CONFIG_SITE;;
2121 esac
2122 elif test "x$prefix" != xNONE; then
2123 ac_site_file1=$prefix/share/config.site
2124 ac_site_file2=$prefix/etc/config.site
2125 else
2126 ac_site_file1=$ac_default_prefix/share/config.site
2127 ac_site_file2=$ac_default_prefix/etc/config.site
2128 fi
2129 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2130 do
2131 test "x$ac_site_file" = xNONE && continue
2132 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2134 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2135 sed 's/^/| /' "$ac_site_file" >&5
2136 . "$ac_site_file" \
2137 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2139 as_fn_error $? "failed to load site script $ac_site_file
2140 See \`config.log' for more details" "$LINENO" 5; }
2141 fi
2142 done
2143
2144 if test -r "$cache_file"; then
2145 # Some versions of bash will fail to source /dev/null (special files
2146 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2147 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2149 $as_echo "$as_me: loading cache $cache_file" >&6;}
2150 case $cache_file in
2151 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2152 *) . "./$cache_file";;
2153 esac
2154 fi
2155 else
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2157 $as_echo "$as_me: creating cache $cache_file" >&6;}
2158 >$cache_file
2159 fi
2160
2161 # Check that the precious variables saved in the cache have kept the same
2162 # value.
2163 ac_cache_corrupted=false
2164 for ac_var in $ac_precious_vars; do
2165 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2166 eval ac_new_set=\$ac_env_${ac_var}_set
2167 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2168 eval ac_new_val=\$ac_env_${ac_var}_value
2169 case $ac_old_set,$ac_new_set in
2170 set,)
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2172 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2173 ac_cache_corrupted=: ;;
2174 ,set)
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2176 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2177 ac_cache_corrupted=: ;;
2178 ,);;
2179 *)
2180 if test "x$ac_old_val" != "x$ac_new_val"; then
2181 # differences in whitespace do not lead to failure.
2182 ac_old_val_w=`echo x $ac_old_val`
2183 ac_new_val_w=`echo x $ac_new_val`
2184 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2186 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2187 ac_cache_corrupted=:
2188 else
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2190 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2191 eval $ac_var=\$ac_old_val
2192 fi
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2194 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2196 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2197 fi;;
2198 esac
2199 # Pass precious variables to config.status.
2200 if test "$ac_new_set" = set; then
2201 case $ac_new_val in
2202 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2203 *) ac_arg=$ac_var=$ac_new_val ;;
2204 esac
2205 case " $ac_configure_args " in
2206 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2207 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2208 esac
2209 fi
2210 done
2211 if $ac_cache_corrupted; then
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2215 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2216 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2217 fi
2218 ## -------------------- ##
2219 ## Main body of script. ##
2220 ## -------------------- ##
2221
2222 ac_ext=c
2223 ac_cpp='$CPP $CPPFLAGS'
2224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2227
2228
2229 am__api_version='1.11'
2230
2231 ac_aux_dir=
2232 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2233 if test -f "$ac_dir/install-sh"; then
2234 ac_aux_dir=$ac_dir
2235 ac_install_sh="$ac_aux_dir/install-sh -c"
2236 break
2237 elif test -f "$ac_dir/install.sh"; then
2238 ac_aux_dir=$ac_dir
2239 ac_install_sh="$ac_aux_dir/install.sh -c"
2240 break
2241 elif test -f "$ac_dir/shtool"; then
2242 ac_aux_dir=$ac_dir
2243 ac_install_sh="$ac_aux_dir/shtool install -c"
2244 break
2245 fi
2246 done
2247 if test -z "$ac_aux_dir"; then
2248 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2249 fi
2250
2251 # These three variables are undocumented and unsupported,
2252 # and are intended to be withdrawn in a future Autoconf release.
2253 # They can cause serious problems if a builder's source tree is in a directory
2254 # whose full name contains unusual characters.
2255 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2256 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2257 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2258
2259
2260 # Find a good install program. We prefer a C program (faster),
2261 # so one script is as good as another. But avoid the broken or
2262 # incompatible versions:
2263 # SysV /etc/install, /usr/sbin/install
2264 # SunOS /usr/etc/install
2265 # IRIX /sbin/install
2266 # AIX /bin/install
2267 # AmigaOS /C/install, which installs bootblocks on floppy discs
2268 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2271 # OS/2's system install, which has a completely different semantic
2272 # ./install, which can be erroneously created by make from ./install.sh.
2273 # Reject install programs that cannot install multiple files.
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2275 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2276 if test -z "$INSTALL"; then
2277 if ${ac_cv_path_install+:} false; then :
2278 $as_echo_n "(cached) " >&6
2279 else
2280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 for as_dir in $PATH
2282 do
2283 IFS=$as_save_IFS
2284 test -z "$as_dir" && as_dir=.
2285 # Account for people who put trailing slashes in PATH elements.
2286 case $as_dir/ in #((
2287 ./ | .// | /[cC]/* | \
2288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2289 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2290 /usr/ucb/* ) ;;
2291 *)
2292 # OSF1 and SCO ODT 3.0 have their own names for install.
2293 # Don't use installbsd from OSF since it installs stuff as root
2294 # by default.
2295 for ac_prog in ginstall scoinst install; do
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2298 if test $ac_prog = install &&
2299 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2300 # AIX install. It has an incompatible calling convention.
2301 :
2302 elif test $ac_prog = install &&
2303 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2304 # program-specific install script used by HP pwplus--don't use.
2305 :
2306 else
2307 rm -rf conftest.one conftest.two conftest.dir
2308 echo one > conftest.one
2309 echo two > conftest.two
2310 mkdir conftest.dir
2311 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2312 test -s conftest.one && test -s conftest.two &&
2313 test -s conftest.dir/conftest.one &&
2314 test -s conftest.dir/conftest.two
2315 then
2316 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2317 break 3
2318 fi
2319 fi
2320 fi
2321 done
2322 done
2323 ;;
2324 esac
2325
2326 done
2327 IFS=$as_save_IFS
2328
2329 rm -rf conftest.one conftest.two conftest.dir
2330
2331 fi
2332 if test "${ac_cv_path_install+set}" = set; then
2333 INSTALL=$ac_cv_path_install
2334 else
2335 # As a last resort, use the slow shell script. Don't cache a
2336 # value for INSTALL within a source directory, because that will
2337 # break other packages using the cache if that directory is
2338 # removed, or if the value is a relative name.
2339 INSTALL=$ac_install_sh
2340 fi
2341 fi
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2343 $as_echo "$INSTALL" >&6; }
2344
2345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2346 # It thinks the first close brace ends the variable substitution.
2347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2348
2349 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2350
2351 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2352
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2354 $as_echo_n "checking whether build environment is sane... " >&6; }
2355 # Just in case
2356 sleep 1
2357 echo timestamp > conftest.file
2358 # Reject unsafe characters in $srcdir or the absolute working directory
2359 # name. Accept space and tab only in the latter.
2360 am_lf='
2361 '
2362 case `pwd` in
2363 *[\\\"\#\$\&\'\`$am_lf]*)
2364 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2365 esac
2366 case $srcdir in
2367 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2368 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2369 esac
2370
2371 # Do `set' in a subshell so we don't clobber the current shell's
2372 # arguments. Must try -L first in case configure is actually a
2373 # symlink; some systems play weird games with the mod time of symlinks
2374 # (eg FreeBSD returns the mod time of the symlink's containing
2375 # directory).
2376 if (
2377 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2378 if test "$*" = "X"; then
2379 # -L didn't work.
2380 set X `ls -t "$srcdir/configure" conftest.file`
2381 fi
2382 rm -f conftest.file
2383 if test "$*" != "X $srcdir/configure conftest.file" \
2384 && test "$*" != "X conftest.file $srcdir/configure"; then
2385
2386 # If neither matched, then we have a broken ls. This can happen
2387 # if, for instance, CONFIG_SHELL is bash and it inherits a
2388 # broken ls alias from the environment. This has actually
2389 # happened. Such a system could not be considered "sane".
2390 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2391 alias in your environment" "$LINENO" 5
2392 fi
2393
2394 test "$2" = conftest.file
2395 )
2396 then
2397 # Ok.
2398 :
2399 else
2400 as_fn_error $? "newly created file is older than distributed files!
2401 Check your system clock" "$LINENO" 5
2402 fi
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2404 $as_echo "yes" >&6; }
2405 test "$program_prefix" != NONE &&
2406 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2407 # Use a double $ so make ignores it.
2408 test "$program_suffix" != NONE &&
2409 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2410 # Double any \ or $.
2411 # By default was `s,x,x', remove it if useless.
2412 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2413 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2414
2415 # expand $ac_aux_dir to an absolute path
2416 am_aux_dir=`cd $ac_aux_dir && pwd`
2417
2418 if test x"${MISSING+set}" != xset; then
2419 case $am_aux_dir in
2420 *\ * | *\ *)
2421 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2422 *)
2423 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2424 esac
2425 fi
2426 # Use eval to expand $SHELL
2427 if eval "$MISSING --run true"; then
2428 am_missing_run="$MISSING --run "
2429 else
2430 am_missing_run=
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2432 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2433 fi
2434
2435 if test x"${install_sh}" != xset; then
2436 case $am_aux_dir in
2437 *\ * | *\ *)
2438 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2439 *)
2440 install_sh="\${SHELL} $am_aux_dir/install-sh"
2441 esac
2442 fi
2443
2444 # Installed binaries are usually stripped using `strip' when the user
2445 # run `make install-strip'. However `strip' might not be the right
2446 # tool to use in cross-compilation environments, therefore Automake
2447 # will honor the `STRIP' environment variable to overrule this program.
2448 if test "$cross_compiling" != no; then
2449 if test -n "$ac_tool_prefix"; then
2450 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2451 set dummy ${ac_tool_prefix}strip; ac_word=$2
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2453 $as_echo_n "checking for $ac_word... " >&6; }
2454 if ${ac_cv_prog_STRIP+:} false; then :
2455 $as_echo_n "(cached) " >&6
2456 else
2457 if test -n "$STRIP"; then
2458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2459 else
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2461 for as_dir in $PATH
2462 do
2463 IFS=$as_save_IFS
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2469 break 2
2470 fi
2471 done
2472 done
2473 IFS=$as_save_IFS
2474
2475 fi
2476 fi
2477 STRIP=$ac_cv_prog_STRIP
2478 if test -n "$STRIP"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2480 $as_echo "$STRIP" >&6; }
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2483 $as_echo "no" >&6; }
2484 fi
2485
2486
2487 fi
2488 if test -z "$ac_cv_prog_STRIP"; then
2489 ac_ct_STRIP=$STRIP
2490 # Extract the first word of "strip", so it can be a program name with args.
2491 set dummy strip; ac_word=$2
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2493 $as_echo_n "checking for $ac_word... " >&6; }
2494 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2495 $as_echo_n "(cached) " >&6
2496 else
2497 if test -n "$ac_ct_STRIP"; then
2498 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2499 else
2500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2501 for as_dir in $PATH
2502 do
2503 IFS=$as_save_IFS
2504 test -z "$as_dir" && as_dir=.
2505 for ac_exec_ext in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_ac_ct_STRIP="strip"
2508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2509 break 2
2510 fi
2511 done
2512 done
2513 IFS=$as_save_IFS
2514
2515 fi
2516 fi
2517 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2518 if test -n "$ac_ct_STRIP"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2520 $as_echo "$ac_ct_STRIP" >&6; }
2521 else
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2523 $as_echo "no" >&6; }
2524 fi
2525
2526 if test "x$ac_ct_STRIP" = x; then
2527 STRIP=":"
2528 else
2529 case $cross_compiling:$ac_tool_warned in
2530 yes:)
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2533 ac_tool_warned=yes ;;
2534 esac
2535 STRIP=$ac_ct_STRIP
2536 fi
2537 else
2538 STRIP="$ac_cv_prog_STRIP"
2539 fi
2540
2541 fi
2542 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2543
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2545 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2546 if test -z "$MKDIR_P"; then
2547 if ${ac_cv_path_mkdir+:} false; then :
2548 $as_echo_n "(cached) " >&6
2549 else
2550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2551 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2552 do
2553 IFS=$as_save_IFS
2554 test -z "$as_dir" && as_dir=.
2555 for ac_prog in mkdir gmkdir; do
2556 for ac_exec_ext in '' $ac_executable_extensions; do
2557 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2558 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2559 'mkdir (GNU coreutils) '* | \
2560 'mkdir (coreutils) '* | \
2561 'mkdir (fileutils) '4.1*)
2562 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2563 break 3;;
2564 esac
2565 done
2566 done
2567 done
2568 IFS=$as_save_IFS
2569
2570 fi
2571
2572 test -d ./--version && rmdir ./--version
2573 if test "${ac_cv_path_mkdir+set}" = set; then
2574 MKDIR_P="$ac_cv_path_mkdir -p"
2575 else
2576 # As a last resort, use the slow shell script. Don't cache a
2577 # value for MKDIR_P within a source directory, because that will
2578 # break other packages using the cache if that directory is
2579 # removed, or if the value is a relative name.
2580 MKDIR_P="$ac_install_sh -d"
2581 fi
2582 fi
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2584 $as_echo "$MKDIR_P" >&6; }
2585
2586 mkdir_p="$MKDIR_P"
2587 case $mkdir_p in
2588 [\\/$]* | ?:[\\/]*) ;;
2589 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2590 esac
2591
2592 for ac_prog in gawk mawk nawk awk
2593 do
2594 # Extract the first word of "$ac_prog", so it can be a program name with args.
2595 set dummy $ac_prog; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if ${ac_cv_prog_AWK+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test -n "$AWK"; then
2602 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2611 ac_cv_prog_AWK="$ac_prog"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 AWK=$ac_cv_prog_AWK
2622 if test -n "$AWK"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2624 $as_echo "$AWK" >&6; }
2625 else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2628 fi
2629
2630
2631 test -n "$AWK" && break
2632 done
2633
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2635 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2636 set x ${MAKE-make}
2637 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2638 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 cat >conftest.make <<\_ACEOF
2642 SHELL = /bin/sh
2643 all:
2644 @echo '@@@%%%=$(MAKE)=@@@%%%'
2645 _ACEOF
2646 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2647 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2648 *@@@%%%=?*=@@@%%%*)
2649 eval ac_cv_prog_make_${ac_make}_set=yes;;
2650 *)
2651 eval ac_cv_prog_make_${ac_make}_set=no;;
2652 esac
2653 rm -f conftest.make
2654 fi
2655 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657 $as_echo "yes" >&6; }
2658 SET_MAKE=
2659 else
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2661 $as_echo "no" >&6; }
2662 SET_MAKE="MAKE=${MAKE-make}"
2663 fi
2664
2665 rm -rf .tst 2>/dev/null
2666 mkdir .tst 2>/dev/null
2667 if test -d .tst; then
2668 am__leading_dot=.
2669 else
2670 am__leading_dot=_
2671 fi
2672 rmdir .tst 2>/dev/null
2673
2674 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2675 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2676 # is not polluted with repeated "-I."
2677 am__isrc=' -I$(srcdir)'
2678 # test to see if srcdir already configured
2679 if test -f $srcdir/config.status; then
2680 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2681 fi
2682 fi
2683
2684 # test whether we have cygpath
2685 if test -z "$CYGPATH_W"; then
2686 if (cygpath --version) >/dev/null 2>/dev/null; then
2687 CYGPATH_W='cygpath -w'
2688 else
2689 CYGPATH_W=echo
2690 fi
2691 fi
2692
2693
2694 # Define the identity of the package.
2695 PACKAGE='xwininfo'
2696 VERSION='1.1.1'
2697
2698
2699 cat >>confdefs.h <<_ACEOF
2700 #define PACKAGE "$PACKAGE"
2701 _ACEOF
2702
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define VERSION "$VERSION"
2706 _ACEOF
2707
2708 # Some tools Automake needs.
2709
2710 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2711
2712
2713 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2714
2715
2716 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2717
2718
2719 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2720
2721
2722 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2723
2724 # We need awk for the "check" target. The system "awk" is bad on
2725 # some platforms.
2726 # Always define AMTAR for backward compatibility.
2727
2728 AMTAR=${AMTAR-"${am_missing_run}tar"}
2729
2730 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2731
2732
2733
2734
2735
2736
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2738 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2739 # Check whether --enable-maintainer-mode was given.
2740 if test "${enable_maintainer_mode+set}" = set; then :
2741 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2742 else
2743 USE_MAINTAINER_MODE=no
2744 fi
2745
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2747 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2748 if test $USE_MAINTAINER_MODE = yes; then
2749 MAINTAINER_MODE_TRUE=
2750 MAINTAINER_MODE_FALSE='#'
2751 else
2752 MAINTAINER_MODE_TRUE='#'
2753 MAINTAINER_MODE_FALSE=
2754 fi
2755
2756 MAINT=$MAINTAINER_MODE_TRUE
2757
2758
2759
2760 # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773 ac_config_headers="$ac_config_headers config.h"
2774
2775
2776 DEPDIR="${am__leading_dot}deps"
2777
2778 ac_config_commands="$ac_config_commands depfiles"
2779
2780
2781 am_make=${MAKE-make}
2782 cat > confinc << 'END'
2783 am__doit:
2784 @echo this is the am__doit target
2785 .PHONY: am__doit
2786 END
2787 # If we don't find an include directive, just comment out the code.
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2789 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2790 am__include="#"
2791 am__quote=
2792 _am_result=none
2793 # First try GNU make style include.
2794 echo "include confinc" > confmf
2795 # Ignore all kinds of additional output from `make'.
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=GNU
2801 ;;
2802 esac
2803 # Now try BSD make style include.
2804 if test "$am__include" = "#"; then
2805 echo '.include "confinc"' > confmf
2806 case `$am_make -s -f confmf 2> /dev/null` in #(
2807 *the\ am__doit\ target*)
2808 am__include=.include
2809 am__quote="\""
2810 _am_result=BSD
2811 ;;
2812 esac
2813 fi
2814
2815
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2817 $as_echo "$_am_result" >&6; }
2818 rm -f confinc confmf
2819
2820 # Check whether --enable-dependency-tracking was given.
2821 if test "${enable_dependency_tracking+set}" = set; then :
2822 enableval=$enable_dependency_tracking;
2823 fi
2824
2825 if test "x$enable_dependency_tracking" != xno; then
2826 am_depcomp="$ac_aux_dir/depcomp"
2827 AMDEPBACKSLASH='\'
2828 fi
2829 if test "x$enable_dependency_tracking" != xno; then
2830 AMDEP_TRUE=
2831 AMDEP_FALSE='#'
2832 else
2833 AMDEP_TRUE='#'
2834 AMDEP_FALSE=
2835 fi
2836
2837
2838 ac_ext=c
2839 ac_cpp='$CPP $CPPFLAGS'
2840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843 if test -n "$ac_tool_prefix"; then
2844 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2845 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2847 $as_echo_n "checking for $ac_word... " >&6; }
2848 if ${ac_cv_prog_CC+:} false; then :
2849 $as_echo_n "(cached) " >&6
2850 else
2851 if test -n "$CC"; then
2852 ac_cv_prog_CC="$CC" # Let the user override the test.
2853 else
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855 for as_dir in $PATH
2856 do
2857 IFS=$as_save_IFS
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2861 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 break 2
2864 fi
2865 done
2866 done
2867 IFS=$as_save_IFS
2868
2869 fi
2870 fi
2871 CC=$ac_cv_prog_CC
2872 if test -n "$CC"; then
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2874 $as_echo "$CC" >&6; }
2875 else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 $as_echo "no" >&6; }
2878 fi
2879
2880
2881 fi
2882 if test -z "$ac_cv_prog_CC"; then
2883 ac_ct_CC=$CC
2884 # Extract the first word of "gcc", so it can be a program name with args.
2885 set dummy gcc; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$ac_ct_CC"; then
2892 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2896 do
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 ac_cv_prog_ac_ct_CC="gcc"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2904 fi
2905 done
2906 done
2907 IFS=$as_save_IFS
2908
2909 fi
2910 fi
2911 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2912 if test -n "$ac_ct_CC"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2914 $as_echo "$ac_ct_CC" >&6; }
2915 else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2918 fi
2919
2920 if test "x$ac_ct_CC" = x; then
2921 CC=""
2922 else
2923 case $cross_compiling:$ac_tool_warned in
2924 yes:)
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2927 ac_tool_warned=yes ;;
2928 esac
2929 CC=$ac_ct_CC
2930 fi
2931 else
2932 CC="$ac_cv_prog_CC"
2933 fi
2934
2935 if test -z "$CC"; then
2936 if test -n "$ac_tool_prefix"; then
2937 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2938 set dummy ${ac_tool_prefix}cc; ac_word=$2
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940 $as_echo_n "checking for $ac_word... " >&6; }
2941 if ${ac_cv_prog_CC+:} false; then :
2942 $as_echo_n "(cached) " >&6
2943 else
2944 if test -n "$CC"; then
2945 ac_cv_prog_CC="$CC" # Let the user override the test.
2946 else
2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2948 for as_dir in $PATH
2949 do
2950 IFS=$as_save_IFS
2951 test -z "$as_dir" && as_dir=.
2952 for ac_exec_ext in '' $ac_executable_extensions; do
2953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954 ac_cv_prog_CC="${ac_tool_prefix}cc"
2955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2956 break 2
2957 fi
2958 done
2959 done
2960 IFS=$as_save_IFS
2961
2962 fi
2963 fi
2964 CC=$ac_cv_prog_CC
2965 if test -n "$CC"; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967 $as_echo "$CC" >&6; }
2968 else
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 fi
2972
2973
2974 fi
2975 fi
2976 if test -z "$CC"; then
2977 # Extract the first word of "cc", so it can be a program name with args.
2978 set dummy cc; ac_word=$2
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2980 $as_echo_n "checking for $ac_word... " >&6; }
2981 if ${ac_cv_prog_CC+:} false; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 if test -n "$CC"; then
2985 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 else
2987 ac_prog_rejected=no
2988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 for as_dir in $PATH
2990 do
2991 IFS=$as_save_IFS
2992 test -z "$as_dir" && as_dir=.
2993 for ac_exec_ext in '' $ac_executable_extensions; do
2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2995 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2996 ac_prog_rejected=yes
2997 continue
2998 fi
2999 ac_cv_prog_CC="cc"
3000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3001 break 2
3002 fi
3003 done
3004 done
3005 IFS=$as_save_IFS
3006
3007 if test $ac_prog_rejected = yes; then
3008 # We found a bogon in the path, so make sure we never use it.
3009 set dummy $ac_cv_prog_CC
3010 shift
3011 if test $# != 0; then
3012 # We chose a different compiler from the bogus one.
3013 # However, it has the same basename, so the bogon will be chosen
3014 # first if we set CC to just the basename; use the full file name.
3015 shift
3016 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3017 fi
3018 fi
3019 fi
3020 fi
3021 CC=$ac_cv_prog_CC
3022 if test -n "$CC"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3024 $as_echo "$CC" >&6; }
3025 else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030
3031 fi
3032 if test -z "$CC"; then
3033 if test -n "$ac_tool_prefix"; then
3034 for ac_prog in cl.exe
3035 do
3036 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3037 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3039 $as_echo_n "checking for $ac_word... " >&6; }
3040 if ${ac_cv_prog_CC+:} false; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test -n "$CC"; then
3044 ac_cv_prog_CC="$CC" # Let the user override the test.
3045 else
3046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047 for as_dir in $PATH
3048 do
3049 IFS=$as_save_IFS
3050 test -z "$as_dir" && as_dir=.
3051 for ac_exec_ext in '' $ac_executable_extensions; do
3052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3053 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3055 break 2
3056 fi
3057 done
3058 done
3059 IFS=$as_save_IFS
3060
3061 fi
3062 fi
3063 CC=$ac_cv_prog_CC
3064 if test -n "$CC"; then
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3066 $as_echo "$CC" >&6; }
3067 else
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3069 $as_echo "no" >&6; }
3070 fi
3071
3072
3073 test -n "$CC" && break
3074 done
3075 fi
3076 if test -z "$CC"; then
3077 ac_ct_CC=$CC
3078 for ac_prog in cl.exe
3079 do
3080 # Extract the first word of "$ac_prog", so it can be a program name with args.
3081 set dummy $ac_prog; ac_word=$2
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3085 $as_echo_n "(cached) " >&6
3086 else
3087 if test -n "$ac_ct_CC"; then
3088 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3092 do
3093 IFS=$as_save_IFS
3094 test -z "$as_dir" && as_dir=.
3095 for ac_exec_ext in '' $ac_executable_extensions; do
3096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097 ac_cv_prog_ac_ct_CC="$ac_prog"
3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 break 2
3100 fi
3101 done
3102 done
3103 IFS=$as_save_IFS
3104
3105 fi
3106 fi
3107 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3108 if test -n "$ac_ct_CC"; then
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3110 $as_echo "$ac_ct_CC" >&6; }
3111 else
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113 $as_echo "no" >&6; }
3114 fi
3115
3116
3117 test -n "$ac_ct_CC" && break
3118 done
3119
3120 if test "x$ac_ct_CC" = x; then
3121 CC=""
3122 else
3123 case $cross_compiling:$ac_tool_warned in
3124 yes:)
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127 ac_tool_warned=yes ;;
3128 esac
3129 CC=$ac_ct_CC
3130 fi
3131 fi
3132
3133 fi
3134
3135
3136 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 as_fn_error $? "no acceptable C compiler found in \$PATH
3139 See \`config.log' for more details" "$LINENO" 5; }
3140
3141 # Provide some information about the compiler.
3142 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3143 set X $ac_compile
3144 ac_compiler=$2
3145 for ac_option in --version -v -V -qversion; do
3146 { { ac_try="$ac_compiler $ac_option >&5"
3147 case "(($ac_try" in
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3150 esac
3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 $as_echo "$ac_try_echo"; } >&5
3153 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3154 ac_status=$?
3155 if test -s conftest.err; then
3156 sed '10a\
3157 ... rest of stderr output deleted ...
3158 10q' conftest.err >conftest.er1
3159 cat conftest.er1 >&5
3160 fi
3161 rm -f conftest.er1 conftest.err
3162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163 test $ac_status = 0; }
3164 done
3165
3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 /* end confdefs.h. */
3168
3169 int
3170 main ()
3171 {
3172
3173 ;
3174 return 0;
3175 }
3176 _ACEOF
3177 ac_clean_files_save=$ac_clean_files
3178 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3179 # Try to create an executable without -o first, disregard a.out.
3180 # It will help us diagnose broken compilers, and finding out an intuition
3181 # of exeext.
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3183 $as_echo_n "checking whether the C compiler works... " >&6; }
3184 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3185
3186 # The possible output files:
3187 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3188
3189 ac_rmfiles=
3190 for ac_file in $ac_files
3191 do
3192 case $ac_file in
3193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3194 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3195 esac
3196 done
3197 rm -f $ac_rmfiles
3198
3199 if { { ac_try="$ac_link_default"
3200 case "(($ac_try" in
3201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3202 *) ac_try_echo=$ac_try;;
3203 esac
3204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3205 $as_echo "$ac_try_echo"; } >&5
3206 (eval "$ac_link_default") 2>&5
3207 ac_status=$?
3208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3209 test $ac_status = 0; }; then :
3210 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3211 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3212 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3213 # so that the user can short-circuit this test for compilers unknown to
3214 # Autoconf.
3215 for ac_file in $ac_files ''
3216 do
3217 test -f "$ac_file" || continue
3218 case $ac_file in
3219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3220 ;;
3221 [ab].out )
3222 # We found the default executable, but exeext='' is most
3223 # certainly right.
3224 break;;
3225 *.* )
3226 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3227 then :; else
3228 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229 fi
3230 # We set ac_cv_exeext here because the later test for it is not
3231 # safe: cross compilers may not add the suffix if given an `-o'
3232 # argument, so we may need to know it at that point already.
3233 # Even if this section looks crufty: it has the advantage of
3234 # actually working.
3235 break;;
3236 * )
3237 break;;
3238 esac
3239 done
3240 test "$ac_cv_exeext" = no && ac_cv_exeext=
3241
3242 else
3243 ac_file=''
3244 fi
3245 if test -z "$ac_file"; then :
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3247 $as_echo "no" >&6; }
3248 $as_echo "$as_me: failed program was:" >&5
3249 sed 's/^/| /' conftest.$ac_ext >&5
3250
3251 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3253 as_fn_error 77 "C compiler cannot create executables
3254 See \`config.log' for more details" "$LINENO" 5; }
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3257 $as_echo "yes" >&6; }
3258 fi
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3260 $as_echo_n "checking for C compiler default output file name... " >&6; }
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3262 $as_echo "$ac_file" >&6; }
3263 ac_exeext=$ac_cv_exeext
3264
3265 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3266 ac_clean_files=$ac_clean_files_save
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3268 $as_echo_n "checking for suffix of executables... " >&6; }
3269 if { { ac_try="$ac_link"
3270 case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273 esac
3274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275 $as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_link") 2>&5
3277 ac_status=$?
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; then :
3280 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3281 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3282 # work properly (i.e., refer to `conftest.exe'), while it won't with
3283 # `rm'.
3284 for ac_file in conftest.exe conftest conftest.*; do
3285 test -f "$ac_file" || continue
3286 case $ac_file in
3287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3288 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289 break;;
3290 * ) break;;
3291 esac
3292 done
3293 else
3294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3295 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3296 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3297 See \`config.log' for more details" "$LINENO" 5; }
3298 fi
3299 rm -f conftest conftest$ac_cv_exeext
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3301 $as_echo "$ac_cv_exeext" >&6; }
3302
3303 rm -f conftest.$ac_ext
3304 EXEEXT=$ac_cv_exeext
3305 ac_exeext=$EXEEXT
3306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3307 /* end confdefs.h. */
3308 #include <stdio.h>
3309 int
3310 main ()
3311 {
3312 FILE *f = fopen ("conftest.out", "w");
3313 return ferror (f) || fclose (f) != 0;
3314
3315 ;
3316 return 0;
3317 }
3318 _ACEOF
3319 ac_clean_files="$ac_clean_files conftest.out"
3320 # Check that the compiler produces executables we can run. If not, either
3321 # the compiler is broken, or we cross compile.
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3323 $as_echo_n "checking whether we are cross compiling... " >&6; }
3324 if test "$cross_compiling" != yes; then
3325 { { ac_try="$ac_link"
3326 case "(($ac_try" in
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3331 $as_echo "$ac_try_echo"; } >&5
3332 (eval "$ac_link") 2>&5
3333 ac_status=$?
3334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3335 test $ac_status = 0; }
3336 if { ac_try='./conftest$ac_cv_exeext'
3337 { { case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340 esac
3341 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342 $as_echo "$ac_try_echo"; } >&5
3343 (eval "$ac_try") 2>&5
3344 ac_status=$?
3345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }; }; then
3347 cross_compiling=no
3348 else
3349 if test "$cross_compiling" = maybe; then
3350 cross_compiling=yes
3351 else
3352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3354 as_fn_error $? "cannot run C compiled programs.
3355 If you meant to cross compile, use \`--host'.
3356 See \`config.log' for more details" "$LINENO" 5; }
3357 fi
3358 fi
3359 fi
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3361 $as_echo "$cross_compiling" >&6; }
3362
3363 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3364 ac_clean_files=$ac_clean_files_save
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3366 $as_echo_n "checking for suffix of object files... " >&6; }
3367 if ${ac_cv_objext+:} false; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3372
3373 int
3374 main ()
3375 {
3376
3377 ;
3378 return 0;
3379 }
3380 _ACEOF
3381 rm -f conftest.o conftest.obj
3382 if { { ac_try="$ac_compile"
3383 case "(($ac_try" in
3384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385 *) ac_try_echo=$ac_try;;
3386 esac
3387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3388 $as_echo "$ac_try_echo"; } >&5
3389 (eval "$ac_compile") 2>&5
3390 ac_status=$?
3391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3392 test $ac_status = 0; }; then :
3393 for ac_file in conftest.o conftest.obj conftest.*; do
3394 test -f "$ac_file" || continue;
3395 case $ac_file in
3396 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3397 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3398 break;;
3399 esac
3400 done
3401 else
3402 $as_echo "$as_me: failed program was:" >&5
3403 sed 's/^/| /' conftest.$ac_ext >&5
3404
3405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 as_fn_error $? "cannot compute suffix of object files: cannot compile
3408 See \`config.log' for more details" "$LINENO" 5; }
3409 fi
3410 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3411 fi
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3413 $as_echo "$ac_cv_objext" >&6; }
3414 OBJEXT=$ac_cv_objext
3415 ac_objext=$OBJEXT
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3417 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3418 if ${ac_cv_c_compiler_gnu+:} false; then :
3419 $as_echo_n "(cached) " >&6
3420 else
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3423
3424 int
3425 main ()
3426 {
3427 #ifndef __GNUC__
3428 choke me
3429 #endif
3430
3431 ;
3432 return 0;
3433 }
3434 _ACEOF
3435 if ac_fn_c_try_compile "$LINENO"; then :
3436 ac_compiler_gnu=yes
3437 else
3438 ac_compiler_gnu=no
3439 fi
3440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3442
3443 fi
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3445 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3446 if test $ac_compiler_gnu = yes; then
3447 GCC=yes
3448 else
3449 GCC=
3450 fi
3451 ac_test_CFLAGS=${CFLAGS+set}
3452 ac_save_CFLAGS=$CFLAGS
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3454 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3455 if ${ac_cv_prog_cc_g+:} false; then :
3456 $as_echo_n "(cached) " >&6
3457 else
3458 ac_save_c_werror_flag=$ac_c_werror_flag
3459 ac_c_werror_flag=yes
3460 ac_cv_prog_cc_g=no
3461 CFLAGS="-g"
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464
3465 int
3466 main ()
3467 {
3468
3469 ;
3470 return 0;
3471 }
3472 _ACEOF
3473 if ac_fn_c_try_compile "$LINENO"; then :
3474 ac_cv_prog_cc_g=yes
3475 else
3476 CFLAGS=""
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3479
3480 int
3481 main ()
3482 {
3483
3484 ;
3485 return 0;
3486 }
3487 _ACEOF
3488 if ac_fn_c_try_compile "$LINENO"; then :
3489
3490 else
3491 ac_c_werror_flag=$ac_save_c_werror_flag
3492 CFLAGS="-g"
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3495
3496 int
3497 main ()
3498 {
3499
3500 ;
3501 return 0;
3502 }
3503 _ACEOF
3504 if ac_fn_c_try_compile "$LINENO"; then :
3505 ac_cv_prog_cc_g=yes
3506 fi
3507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 fi
3509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510 fi
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 ac_c_werror_flag=$ac_save_c_werror_flag
3513 fi
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3515 $as_echo "$ac_cv_prog_cc_g" >&6; }
3516 if test "$ac_test_CFLAGS" = set; then
3517 CFLAGS=$ac_save_CFLAGS
3518 elif test $ac_cv_prog_cc_g = yes; then
3519 if test "$GCC" = yes; then
3520 CFLAGS="-g -O2"
3521 else
3522 CFLAGS="-g"
3523 fi
3524 else
3525 if test "$GCC" = yes; then
3526 CFLAGS="-O2"
3527 else
3528 CFLAGS=
3529 fi
3530 fi
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3532 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3533 if ${ac_cv_prog_cc_c89+:} false; then :
3534 $as_echo_n "(cached) " >&6
3535 else
3536 ac_cv_prog_cc_c89=no
3537 ac_save_CC=$CC
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3540 #include <stdarg.h>
3541 #include <stdio.h>
3542 #include <sys/types.h>
3543 #include <sys/stat.h>
3544 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3545 struct buf { int x; };
3546 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3547 static char *e (p, i)
3548 char **p;
3549 int i;
3550 {
3551 return p[i];
3552 }
3553 static char *f (char * (*g) (char **, int), char **p, ...)
3554 {
3555 char *s;
3556 va_list v;
3557 va_start (v,p);
3558 s = g (p, va_arg (v,int));
3559 va_end (v);
3560 return s;
3561 }
3562
3563 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3564 function prototypes and stuff, but not '\xHH' hex character constants.
3565 These don't provoke an error unfortunately, instead are silently treated
3566 as 'x'. The following induces an error, until -std is added to get
3567 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3568 array size at least. It's necessary to write '\x00'==0 to get something
3569 that's true only with -std. */
3570 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3571
3572 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3573 inside strings and character constants. */
3574 #define FOO(x) 'x'
3575 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3576
3577 int test (int i, double x);
3578 struct s1 {int (*f) (int a);};
3579 struct s2 {int (*f) (double a);};
3580 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3581 int argc;
3582 char **argv;
3583 int
3584 main ()
3585 {
3586 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3587 ;
3588 return 0;
3589 }
3590 _ACEOF
3591 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3592 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3593 do
3594 CC="$ac_save_CC $ac_arg"
3595 if ac_fn_c_try_compile "$LINENO"; then :
3596 ac_cv_prog_cc_c89=$ac_arg
3597 fi
3598 rm -f core conftest.err conftest.$ac_objext
3599 test "x$ac_cv_prog_cc_c89" != "xno" && break
3600 done
3601 rm -f conftest.$ac_ext
3602 CC=$ac_save_CC
3603
3604 fi
3605 # AC_CACHE_VAL
3606 case "x$ac_cv_prog_cc_c89" in
3607 x)
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3609 $as_echo "none needed" >&6; } ;;
3610 xno)
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3612 $as_echo "unsupported" >&6; } ;;
3613 *)
3614 CC="$CC $ac_cv_prog_cc_c89"
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3616 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3617 esac
3618 if test "x$ac_cv_prog_cc_c89" != xno; then :
3619
3620 fi
3621
3622 ac_ext=c
3623 ac_cpp='$CPP $CPPFLAGS'
3624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627
3628 depcc="$CC" am_compiler_list=
3629
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3631 $as_echo_n "checking dependency style of $depcc... " >&6; }
3632 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3636 # We make a subdir and do the tests there. Otherwise we can end up
3637 # making bogus files that we don't know about and never remove. For
3638 # instance it was reported that on HP-UX the gcc test will end up
3639 # making a dummy file named `D' -- because `-MD' means `put the output
3640 # in D'.
3641 mkdir conftest.dir
3642 # Copy depcomp to subdir because otherwise we won't find it if we're
3643 # using a relative directory.
3644 cp "$am_depcomp" conftest.dir
3645 cd conftest.dir
3646 # We will build objects and dependencies in a subdirectory because
3647 # it helps to detect inapplicable dependency modes. For instance
3648 # both Tru64's cc and ICC support -MD to output dependencies as a
3649 # side effect of compilation, but ICC will put the dependencies in
3650 # the current directory while Tru64 will put them in the object
3651 # directory.
3652 mkdir sub
3653
3654 am_cv_CC_dependencies_compiler_type=none
3655 if test "$am_compiler_list" = ""; then
3656 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3657 fi
3658 am__universal=false
3659 case " $depcc " in #(
3660 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3661 esac
3662
3663 for depmode in $am_compiler_list; do
3664 # Setup a source with many dependencies, because some compilers
3665 # like to wrap large dependency lists on column 80 (with \), and
3666 # we should not choose a depcomp mode which is confused by this.
3667 #
3668 # We need to recreate these files for each test, as the compiler may
3669 # overwrite some of them when testing with obscure command lines.
3670 # This happens at least with the AIX C compiler.
3671 : > sub/conftest.c
3672 for i in 1 2 3 4 5 6; do
3673 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3674 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3675 # Solaris 8's {/usr,}/bin/sh.
3676 touch sub/conftst$i.h
3677 done
3678 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3679
3680 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3681 # mode. It turns out that the SunPro C++ compiler does not properly
3682 # handle `-M -o', and we need to detect this. Also, some Intel
3683 # versions had trouble with output in subdirs
3684 am__obj=sub/conftest.${OBJEXT-o}
3685 am__minus_obj="-o $am__obj"
3686 case $depmode in
3687 gcc)
3688 # This depmode causes a compiler race in universal mode.
3689 test "$am__universal" = false || continue
3690 ;;
3691 nosideeffect)
3692 # after this tag, mechanisms are not by side-effect, so they'll
3693 # only be used when explicitly requested
3694 if test "x$enable_dependency_tracking" = xyes; then
3695 continue
3696 else
3697 break
3698 fi
3699 ;;
3700 msvisualcpp | msvcmsys)
3701 # This compiler won't grok `-c -o', but also, the minuso test has
3702 # not run yet. These depmodes are late enough in the game, and
3703 # so weak that their functioning should not be impacted.
3704 am__obj=conftest.${OBJEXT-o}
3705 am__minus_obj=
3706 ;;
3707 none) break ;;
3708 esac
3709 if depmode=$depmode \
3710 source=sub/conftest.c object=$am__obj \
3711 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3712 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3713 >/dev/null 2>conftest.err &&
3714 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3715 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3716 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3717 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3718 # icc doesn't choke on unknown options, it will just issue warnings
3719 # or remarks (even with -Werror). So we grep stderr for any message
3720 # that says an option was ignored or not supported.
3721 # When given -MP, icc 7.0 and 7.1 complain thusly:
3722 # icc: Command line warning: ignoring option '-M'; no argument required
3723 # The diagnosis changed in icc 8.0:
3724 # icc: Command line remark: option '-MP' not supported
3725 if (grep 'ignoring option' conftest.err ||
3726 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3727 am_cv_CC_dependencies_compiler_type=$depmode
3728 break
3729 fi
3730 fi
3731 done
3732
3733 cd ..
3734 rm -rf conftest.dir
3735 else
3736 am_cv_CC_dependencies_compiler_type=none
3737 fi
3738
3739 fi
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3741 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3742 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3743
3744 if
3745 test "x$enable_dependency_tracking" != xno \
3746 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3747 am__fastdepCC_TRUE=
3748 am__fastdepCC_FALSE='#'
3749 else
3750 am__fastdepCC_TRUE='#'
3751 am__fastdepCC_FALSE=
3752 fi
3753
3754
3755
3756 ac_ext=c
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3762 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3763 # On Suns, sometimes $CPP names a directory.
3764 if test -n "$CPP" && test -d "$CPP"; then
3765 CPP=
3766 fi
3767 if test -z "$CPP"; then
3768 if ${ac_cv_prog_CPP+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 # Double quotes because CPP needs to be expanded
3772 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3773 do
3774 ac_preproc_ok=false
3775 for ac_c_preproc_warn_flag in '' yes
3776 do
3777 # Use a header file that comes with gcc, so configuring glibc
3778 # with a fresh cross-compiler works.
3779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3780 # <limits.h> exists even on freestanding compilers.
3781 # On the NeXT, cc -E runs the code through the compiler's parser,
3782 # not just through cpp. "Syntax error" is here to catch this case.
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3785 #ifdef __STDC__
3786 # include <limits.h>
3787 #else
3788 # include <assert.h>
3789 #endif
3790 Syntax error
3791 _ACEOF
3792 if ac_fn_c_try_cpp "$LINENO"; then :
3793
3794 else
3795 # Broken: fails on valid input.
3796 continue
3797 fi
3798 rm -f conftest.err conftest.i conftest.$ac_ext
3799
3800 # OK, works on sane cases. Now check whether nonexistent headers
3801 # can be detected and how.
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3804 #include <ac_nonexistent.h>
3805 _ACEOF
3806 if ac_fn_c_try_cpp "$LINENO"; then :
3807 # Broken: success on invalid input.
3808 continue
3809 else
3810 # Passes both tests.
3811 ac_preproc_ok=:
3812 break
3813 fi
3814 rm -f conftest.err conftest.i conftest.$ac_ext
3815
3816 done
3817 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3818 rm -f conftest.i conftest.err conftest.$ac_ext
3819 if $ac_preproc_ok; then :
3820 break
3821 fi
3822
3823 done
3824 ac_cv_prog_CPP=$CPP
3825
3826 fi
3827 CPP=$ac_cv_prog_CPP
3828 else
3829 ac_cv_prog_CPP=$CPP
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3832 $as_echo "$CPP" >&6; }
3833 ac_preproc_ok=false
3834 for ac_c_preproc_warn_flag in '' yes
3835 do
3836 # Use a header file that comes with gcc, so configuring glibc
3837 # with a fresh cross-compiler works.
3838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3839 # <limits.h> exists even on freestanding compilers.
3840 # On the NeXT, cc -E runs the code through the compiler's parser,
3841 # not just through cpp. "Syntax error" is here to catch this case.
3842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3843 /* end confdefs.h. */
3844 #ifdef __STDC__
3845 # include <limits.h>
3846 #else
3847 # include <assert.h>
3848 #endif
3849 Syntax error
3850 _ACEOF
3851 if ac_fn_c_try_cpp "$LINENO"; then :
3852
3853 else
3854 # Broken: fails on valid input.
3855 continue
3856 fi
3857 rm -f conftest.err conftest.i conftest.$ac_ext
3858
3859 # OK, works on sane cases. Now check whether nonexistent headers
3860 # can be detected and how.
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3862 /* end confdefs.h. */
3863 #include <ac_nonexistent.h>
3864 _ACEOF
3865 if ac_fn_c_try_cpp "$LINENO"; then :
3866 # Broken: success on invalid input.
3867 continue
3868 else
3869 # Passes both tests.
3870 ac_preproc_ok=:
3871 break
3872 fi
3873 rm -f conftest.err conftest.i conftest.$ac_ext
3874
3875 done
3876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3877 rm -f conftest.i conftest.err conftest.$ac_ext
3878 if $ac_preproc_ok; then :
3879
3880 else
3881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3883 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3884 See \`config.log' for more details" "$LINENO" 5; }
3885 fi
3886
3887 ac_ext=c
3888 ac_cpp='$CPP $CPPFLAGS'
3889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892
3893
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3895 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3896 if ${ac_cv_path_GREP+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -z "$GREP"; then
3900 ac_path_GREP_found=false
3901 # Loop through the user's path and test for each of PROGNAME-LIST
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3904 do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_prog in grep ggrep; do
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3910 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3911 # Check for GNU ac_path_GREP and select it if it is found.
3912 # Check for GNU $ac_path_GREP
3913 case `"$ac_path_GREP" --version 2>&1` in
3914 *GNU*)
3915 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3916 *)
3917 ac_count=0
3918 $as_echo_n 0123456789 >"conftest.in"
3919 while :
3920 do
3921 cat "conftest.in" "conftest.in" >"conftest.tmp"
3922 mv "conftest.tmp" "conftest.in"
3923 cp "conftest.in" "conftest.nl"
3924 $as_echo 'GREP' >> "conftest.nl"
3925 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3926 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3927 as_fn_arith $ac_count + 1 && ac_count=$as_val
3928 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3929 # Best one so far, save it but keep looking for a better one
3930 ac_cv_path_GREP="$ac_path_GREP"
3931 ac_path_GREP_max=$ac_count
3932 fi
3933 # 10*(2^10) chars as input seems more than enough
3934 test $ac_count -gt 10 && break
3935 done
3936 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3937 esac
3938
3939 $ac_path_GREP_found && break 3
3940 done
3941 done
3942 done
3943 IFS=$as_save_IFS
3944 if test -z "$ac_cv_path_GREP"; then
3945 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3946 fi
3947 else
3948 ac_cv_path_GREP=$GREP
3949 fi
3950
3951 fi
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3953 $as_echo "$ac_cv_path_GREP" >&6; }
3954 GREP="$ac_cv_path_GREP"
3955
3956
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3958 $as_echo_n "checking for egrep... " >&6; }
3959 if ${ac_cv_path_EGREP+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3963 then ac_cv_path_EGREP="$GREP -E"
3964 else
3965 if test -z "$EGREP"; then
3966 ac_path_EGREP_found=false
3967 # Loop through the user's path and test for each of PROGNAME-LIST
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3970 do
3971 IFS=$as_save_IFS
3972 test -z "$as_dir" && as_dir=.
3973 for ac_prog in egrep; do
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3976 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3977 # Check for GNU ac_path_EGREP and select it if it is found.
3978 # Check for GNU $ac_path_EGREP
3979 case `"$ac_path_EGREP" --version 2>&1` in
3980 *GNU*)
3981 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3982 *)
3983 ac_count=0
3984 $as_echo_n 0123456789 >"conftest.in"
3985 while :
3986 do
3987 cat "conftest.in" "conftest.in" >"conftest.tmp"
3988 mv "conftest.tmp" "conftest.in"
3989 cp "conftest.in" "conftest.nl"
3990 $as_echo 'EGREP' >> "conftest.nl"
3991 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3992 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3993 as_fn_arith $ac_count + 1 && ac_count=$as_val
3994 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3995 # Best one so far, save it but keep looking for a better one
3996 ac_cv_path_EGREP="$ac_path_EGREP"
3997 ac_path_EGREP_max=$ac_count
3998 fi
3999 # 10*(2^10) chars as input seems more than enough
4000 test $ac_count -gt 10 && break
4001 done
4002 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4003 esac
4004
4005 $ac_path_EGREP_found && break 3
4006 done
4007 done
4008 done
4009 IFS=$as_save_IFS
4010 if test -z "$ac_cv_path_EGREP"; then
4011 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4012 fi
4013 else
4014 ac_cv_path_EGREP=$EGREP
4015 fi
4016
4017 fi
4018 fi
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4020 $as_echo "$ac_cv_path_EGREP" >&6; }
4021 EGREP="$ac_cv_path_EGREP"
4022
4023
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4025 $as_echo_n "checking for ANSI C header files... " >&6; }
4026 if ${ac_cv_header_stdc+:} false; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4031 #include <stdlib.h>
4032 #include <stdarg.h>
4033 #include <string.h>
4034 #include <float.h>
4035
4036 int
4037 main ()
4038 {
4039
4040 ;
4041 return 0;
4042 }
4043 _ACEOF
4044 if ac_fn_c_try_compile "$LINENO"; then :
4045 ac_cv_header_stdc=yes
4046 else
4047 ac_cv_header_stdc=no
4048 fi
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050
4051 if test $ac_cv_header_stdc = yes; then
4052 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055 #include <string.h>
4056
4057 _ACEOF
4058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4059 $EGREP "memchr" >/dev/null 2>&1; then :
4060
4061 else
4062 ac_cv_header_stdc=no
4063 fi
4064 rm -f conftest*
4065
4066 fi
4067
4068 if test $ac_cv_header_stdc = yes; then
4069 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4072 #include <stdlib.h>
4073
4074 _ACEOF
4075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4076 $EGREP "free" >/dev/null 2>&1; then :
4077
4078 else
4079 ac_cv_header_stdc=no
4080 fi
4081 rm -f conftest*
4082
4083 fi
4084
4085 if test $ac_cv_header_stdc = yes; then
4086 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4087 if test "$cross_compiling" = yes; then :
4088 :
4089 else
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092 #include <ctype.h>
4093 #include <stdlib.h>
4094 #if ((' ' & 0x0FF) == 0x020)
4095 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4096 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4097 #else
4098 # define ISLOWER(c) \
4099 (('a' <= (c) && (c) <= 'i') \
4100 || ('j' <= (c) && (c) <= 'r') \
4101 || ('s' <= (c) && (c) <= 'z'))
4102 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4103 #endif
4104
4105 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4106 int
4107 main ()
4108 {
4109 int i;
4110 for (i = 0; i < 256; i++)
4111 if (XOR (islower (i), ISLOWER (i))
4112 || toupper (i) != TOUPPER (i))
4113 return 2;
4114 return 0;
4115 }
4116 _ACEOF
4117 if ac_fn_c_try_run "$LINENO"; then :
4118
4119 else
4120 ac_cv_header_stdc=no
4121 fi
4122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4123 conftest.$ac_objext conftest.beam conftest.$ac_ext
4124 fi
4125
4126 fi
4127 fi
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4129 $as_echo "$ac_cv_header_stdc" >&6; }
4130 if test $ac_cv_header_stdc = yes; then
4131
4132 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4133
4134 fi
4135
4136 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4137 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4138 inttypes.h stdint.h unistd.h
4139 do :
4140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4141 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4142 "
4143 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4144 cat >>confdefs.h <<_ACEOF
4145 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4146 _ACEOF
4147
4148 fi
4149
4150 done
4151
4152
4153
4154 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4155 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4156 MINIX=yes
4157 else
4158 MINIX=
4159 fi
4160
4161
4162 if test "$MINIX" = yes; then
4163
4164 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4165
4166
4167 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4168
4169
4170 $as_echo "#define _MINIX 1" >>confdefs.h
4171
4172 fi
4173
4174
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4176 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4177 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181 /* end confdefs.h. */
4182
4183 # define __EXTENSIONS__ 1
4184 $ac_includes_default
4185 int
4186 main ()
4187 {
4188
4189 ;
4190 return 0;
4191 }
4192 _ACEOF
4193 if ac_fn_c_try_compile "$LINENO"; then :
4194 ac_cv_safe_to_define___extensions__=yes
4195 else
4196 ac_cv_safe_to_define___extensions__=no
4197 fi
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199 fi
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4201 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4202 test $ac_cv_safe_to_define___extensions__ = yes &&
4203 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4204
4205 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4206
4207 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4208
4209 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4210
4211 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4212
4213
4214
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4216 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4217 if ${ac_cv_prog_cc_c99+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 ac_cv_prog_cc_c99=no
4221 ac_save_CC=$CC
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 #include <stdarg.h>
4225 #include <stdbool.h>
4226 #include <stdlib.h>
4227 #include <wchar.h>
4228 #include <stdio.h>
4229
4230 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4231 #define debug(...) fprintf (stderr, __VA_ARGS__)
4232 #define showlist(...) puts (#__VA_ARGS__)
4233 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4234 static void
4235 test_varargs_macros (void)
4236 {
4237 int x = 1234;
4238 int y = 5678;
4239 debug ("Flag");
4240 debug ("X = %d\n", x);
4241 showlist (The first, second, and third items.);
4242 report (x>y, "x is %d but y is %d", x, y);
4243 }
4244
4245 // Check long long types.
4246 #define BIG64 18446744073709551615ull
4247 #define BIG32 4294967295ul
4248 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4249 #if !BIG_OK
4250 your preprocessor is broken;
4251 #endif
4252 #if BIG_OK
4253 #else
4254 your preprocessor is broken;
4255 #endif
4256 static long long int bignum = -9223372036854775807LL;
4257 static unsigned long long int ubignum = BIG64;
4258
4259 struct incomplete_array
4260 {
4261 int datasize;
4262 double data[];
4263 };
4264
4265 struct named_init {
4266 int number;
4267 const wchar_t *name;
4268 double average;
4269 };
4270
4271 typedef const char *ccp;
4272
4273 static inline int
4274 test_restrict (ccp restrict text)
4275 {
4276 // See if C++-style comments work.
4277 // Iterate through items via the restricted pointer.
4278 // Also check for declarations in for loops.
4279 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4280 continue;
4281 return 0;
4282 }
4283
4284 // Check varargs and va_copy.
4285 static void
4286 test_varargs (const char *format, ...)
4287 {
4288 va_list args;
4289 va_start (args, format);
4290 va_list args_copy;
4291 va_copy (args_copy, args);
4292
4293 const char *str;
4294 int number;
4295 float fnumber;
4296
4297 while (*format)
4298 {
4299 switch (*format++)
4300 {
4301 case 's': // string
4302 str = va_arg (args_copy, const char *);
4303 break;
4304 case 'd': // int
4305 number = va_arg (args_copy, int);
4306 break;
4307 case 'f': // float
4308 fnumber = va_arg (args_copy, double);
4309 break;
4310 default:
4311 break;
4312 }
4313 }
4314 va_end (args_copy);
4315 va_end (args);
4316 }
4317
4318 int
4319 main ()
4320 {
4321
4322 // Check bool.
4323 _Bool success = false;
4324
4325 // Check restrict.
4326 if (test_restrict ("String literal") == 0)
4327 success = true;
4328 char *restrict newvar = "Another string";
4329
4330 // Check varargs.
4331 test_varargs ("s, d' f .", "string", 65, 34.234);
4332 test_varargs_macros ();
4333
4334 // Check flexible array members.
4335 struct incomplete_array *ia =
4336 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4337 ia->datasize = 10;
4338 for (int i = 0; i < ia->datasize; ++i)
4339 ia->data[i] = i * 1.234;
4340
4341 // Check named initializers.
4342 struct named_init ni = {
4343 .number = 34,
4344 .name = L"Test wide string",
4345 .average = 543.34343,
4346 };
4347
4348 ni.number = 58;
4349
4350 int dynamic_array[ni.number];
4351 dynamic_array[ni.number - 1] = 543;
4352
4353 // work around unused variable warnings
4354 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4355 || dynamic_array[ni.number - 1] != 543);
4356
4357 ;
4358 return 0;
4359 }
4360 _ACEOF
4361 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4362 do
4363 CC="$ac_save_CC $ac_arg"
4364 if ac_fn_c_try_compile "$LINENO"; then :
4365 ac_cv_prog_cc_c99=$ac_arg
4366 fi
4367 rm -f core conftest.err conftest.$ac_objext
4368 test "x$ac_cv_prog_cc_c99" != "xno" && break
4369 done
4370 rm -f conftest.$ac_ext
4371 CC=$ac_save_CC
4372
4373 fi
4374 # AC_CACHE_VAL
4375 case "x$ac_cv_prog_cc_c99" in
4376 x)
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4378 $as_echo "none needed" >&6; } ;;
4379 xno)
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4381 $as_echo "unsupported" >&6; } ;;
4382 *)
4383 CC="$CC $ac_cv_prog_cc_c99"
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4385 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4386 esac
4387 if test "x$ac_cv_prog_cc_c99" != xno; then :
4388
4389 fi
4390
4391
4392
4393
4394 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4395 if test -n "$ac_tool_prefix"; then
4396 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4397 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4399 $as_echo_n "checking for $ac_word... " >&6; }
4400 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4401 $as_echo_n "(cached) " >&6
4402 else
4403 case $PKG_CONFIG in
4404 [\\/]* | ?:[\\/]*)
4405 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4406 ;;
4407 *)
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4410 do
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4418 fi
4419 done
4420 done
4421 IFS=$as_save_IFS
4422
4423 ;;
4424 esac
4425 fi
4426 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4427 if test -n "$PKG_CONFIG"; then
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4429 $as_echo "$PKG_CONFIG" >&6; }
4430 else
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4432 $as_echo "no" >&6; }
4433 fi
4434
4435
4436 fi
4437 if test -z "$ac_cv_path_PKG_CONFIG"; then
4438 ac_pt_PKG_CONFIG=$PKG_CONFIG
4439 # Extract the first word of "pkg-config", so it can be a program name with args.
4440 set dummy pkg-config; ac_word=$2
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4442 $as_echo_n "checking for $ac_word... " >&6; }
4443 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4444 $as_echo_n "(cached) " >&6
4445 else
4446 case $ac_pt_PKG_CONFIG in
4447 [\\/]* | ?:[\\/]*)
4448 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4449 ;;
4450 *)
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 for as_dir in $PATH
4453 do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4460 break 2
4461 fi
4462 done
4463 done
4464 IFS=$as_save_IFS
4465
4466 ;;
4467 esac
4468 fi
4469 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4470 if test -n "$ac_pt_PKG_CONFIG"; then
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4472 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4473 else
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4476 fi
4477
4478 if test "x$ac_pt_PKG_CONFIG" = x; then
4479 PKG_CONFIG=""
4480 else
4481 case $cross_compiling:$ac_tool_warned in
4482 yes:)
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned=yes ;;
4486 esac
4487 PKG_CONFIG=$ac_pt_PKG_CONFIG
4488 fi
4489 else
4490 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4491 fi
4492
4493 fi
4494 if test -n "$PKG_CONFIG"; then
4495 _pkg_min_version=0.9.0
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4497 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4498 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4500 $as_echo "yes" >&6; }
4501 else
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4503 $as_echo "no" >&6; }
4504 PKG_CONFIG=""
4505 fi
4506
4507 fi
4508 # Make sure we can run config.sub.
4509 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4510 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4511
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4513 $as_echo_n "checking build system type... " >&6; }
4514 if ${ac_cv_build+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 ac_build_alias=$build_alias
4518 test "x$ac_build_alias" = x &&
4519 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4520 test "x$ac_build_alias" = x &&
4521 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4522 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4523 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4524
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4527 $as_echo "$ac_cv_build" >&6; }
4528 case $ac_cv_build in
4529 *-*-*) ;;
4530 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4531 esac
4532 build=$ac_cv_build
4533 ac_save_IFS=$IFS; IFS='-'
4534 set x $ac_cv_build
4535 shift
4536 build_cpu=$1
4537 build_vendor=$2
4538 shift; shift
4539 # Remember, the first character of IFS is used to create $*,
4540 # except with old shells:
4541 build_os=$*
4542 IFS=$ac_save_IFS
4543 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4544
4545
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4547 $as_echo_n "checking host system type... " >&6; }
4548 if ${ac_cv_host+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550 else
4551 if test "x$host_alias" = x; then
4552 ac_cv_host=$ac_cv_build
4553 else
4554 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4555 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4556 fi
4557
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4560 $as_echo "$ac_cv_host" >&6; }
4561 case $ac_cv_host in
4562 *-*-*) ;;
4563 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4564 esac
4565 host=$ac_cv_host
4566 ac_save_IFS=$IFS; IFS='-'
4567 set x $ac_cv_host
4568 shift
4569 host_cpu=$1
4570 host_vendor=$2
4571 shift; shift
4572 # Remember, the first character of IFS is used to create $*,
4573 # except with old shells:
4574 host_os=$*
4575 IFS=$ac_save_IFS
4576 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4577
4578
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4580 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4581 if ${ac_cv_path_SED+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583 else
4584 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4585 for ac_i in 1 2 3 4 5 6 7; do
4586 ac_script="$ac_script$as_nl$ac_script"
4587 done
4588 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4589 { ac_script=; unset ac_script;}
4590 if test -z "$SED"; then
4591 ac_path_SED_found=false
4592 # Loop through the user's path and test for each of PROGNAME-LIST
4593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4594 for as_dir in $PATH
4595 do
4596 IFS=$as_save_IFS
4597 test -z "$as_dir" && as_dir=.
4598 for ac_prog in sed gsed; do
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4601 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4602 # Check for GNU ac_path_SED and select it if it is found.
4603 # Check for GNU $ac_path_SED
4604 case `"$ac_path_SED" --version 2>&1` in
4605 *GNU*)
4606 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4607 *)
4608 ac_count=0
4609 $as_echo_n 0123456789 >"conftest.in"
4610 while :
4611 do
4612 cat "conftest.in" "conftest.in" >"conftest.tmp"
4613 mv "conftest.tmp" "conftest.in"
4614 cp "conftest.in" "conftest.nl"
4615 $as_echo '' >> "conftest.nl"
4616 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4618 as_fn_arith $ac_count + 1 && ac_count=$as_val
4619 if test $ac_count -gt ${ac_path_SED_max-0}; then
4620 # Best one so far, save it but keep looking for a better one
4621 ac_cv_path_SED="$ac_path_SED"
4622 ac_path_SED_max=$ac_count
4623 fi
4624 # 10*(2^10) chars as input seems more than enough
4625 test $ac_count -gt 10 && break
4626 done
4627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4628 esac
4629
4630 $ac_path_SED_found && break 3
4631 done
4632 done
4633 done
4634 IFS=$as_save_IFS
4635 if test -z "$ac_cv_path_SED"; then
4636 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4637 fi
4638 else
4639 ac_cv_path_SED=$SED
4640 fi
4641
4642 fi
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4644 $as_echo "$ac_cv_path_SED" >&6; }
4645 SED="$ac_cv_path_SED"
4646 rm -f conftest.sed
4647
4648
4649
4650
4651
4652 if test "x$GCC" = xyes ; then
4653 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4654 -Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4655 -Wbad-function-cast -Wformat=2"
4656 case `$CC -dumpversion` in
4657 3.4.* | 4.*)
4658 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4659 ;;
4660 esac
4661 else
4662 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4663 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4664 SUNCC="yes"
4665 else
4666 SUNCC="no"
4667 fi
4668
4669 if test "x$SUNCC" = "xyes"; then
4670 CWARNFLAGS="-v"
4671 fi
4672 fi
4673
4674
4675
4676 # If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4677
4678
4679
4680 # Check whether --enable-strict-compilation was given.
4681 if test "${enable_strict_compilation+set}" = set; then :
4682 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4683 else
4684 STRICT_COMPILE=no
4685 fi
4686
4687 if test "x$STRICT_COMPILE" = "xyes"; then
4688 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4689 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4690 SUNCC="yes"
4691 else
4692 SUNCC="no"
4693 fi
4694
4695 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4696 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
4697 INTELCC="yes"
4698 else
4699 INTELCC="no"
4700 fi
4701
4702 if test "x$GCC" = xyes ; then
4703 STRICT_CFLAGS="-pedantic -Werror"
4704 elif test "x$SUNCC" = "xyes"; then
4705 STRICT_CFLAGS="-errwarn"
4706 elif test "x$INTELCC" = "xyes"; then
4707 STRICT_CFLAGS="-Werror"
4708 fi
4709 fi
4710 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
4711
4712
4713
4714
4715 cat >>confdefs.h <<_ACEOF
4716 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
4717 _ACEOF
4718
4719 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
4720 if test "x$PVM" = "x"; then
4721 PVM="0"
4722 fi
4723
4724 cat >>confdefs.h <<_ACEOF
4725 #define PACKAGE_VERSION_MINOR $PVM
4726 _ACEOF
4727
4728 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
4729 if test "x$PVP" = "x"; then
4730 PVP="0"
4731 fi
4732
4733 cat >>confdefs.h <<_ACEOF
4734 #define PACKAGE_VERSION_PATCHLEVEL $PVP
4735 _ACEOF
4736
4737
4738
4739 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
4740 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
4741 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
4742 echo 'git directory not found: installing possibly empty changelog.' >&2)"
4743
4744
4745
4746
4747 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
4748 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
4749 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
4750 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
4751 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
4752
4753
4754
4755
4756
4757
4758 if test x$APP_MAN_SUFFIX = x ; then
4759 APP_MAN_SUFFIX=1
4760 fi
4761 if test x$APP_MAN_DIR = x ; then
4762 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
4763 fi
4764
4765 if test x$LIB_MAN_SUFFIX = x ; then
4766 LIB_MAN_SUFFIX=3
4767 fi
4768 if test x$LIB_MAN_DIR = x ; then
4769 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
4770 fi
4771
4772 if test x$FILE_MAN_SUFFIX = x ; then
4773 case $host_os in
4774 solaris*) FILE_MAN_SUFFIX=4 ;;
4775 *) FILE_MAN_SUFFIX=5 ;;
4776 esac
4777 fi
4778 if test x$FILE_MAN_DIR = x ; then
4779 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
4780 fi
4781
4782 if test x$MISC_MAN_SUFFIX = x ; then
4783 case $host_os in
4784 solaris*) MISC_MAN_SUFFIX=5 ;;
4785 *) MISC_MAN_SUFFIX=7 ;;
4786 esac
4787 fi
4788 if test x$MISC_MAN_DIR = x ; then
4789 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
4790 fi
4791
4792 if test x$DRIVER_MAN_SUFFIX = x ; then
4793 case $host_os in
4794 solaris*) DRIVER_MAN_SUFFIX=7 ;;
4795 *) DRIVER_MAN_SUFFIX=4 ;;
4796 esac
4797 fi
4798 if test x$DRIVER_MAN_DIR = x ; then
4799 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
4800 fi
4801
4802 if test x$ADMIN_MAN_SUFFIX = x ; then
4803 case $host_os in
4804 solaris*) ADMIN_MAN_SUFFIX=1m ;;
4805 *) ADMIN_MAN_SUFFIX=8 ;;
4806 esac
4807 fi
4808 if test x$ADMIN_MAN_DIR = x ; then
4809 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
4810 fi
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826 XORG_MAN_PAGE="X Version 11"
4827
4828 MAN_SUBSTS="\
4829 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4830 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4831 -e 's|__xservername__|Xorg|g' \
4832 -e 's|__xconfigfile__|xorg.conf|g' \
4833 -e 's|__projectroot__|\$(prefix)|g' \
4834 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
4835 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4836 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4837 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4838 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4839 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4840 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4841
4842
4843
4844 # Check whether --enable-silent-rules was given.
4845 if test "${enable_silent_rules+set}" = set; then :
4846 enableval=$enable_silent_rules;
4847 fi
4848
4849 case $enable_silent_rules in
4850 yes) AM_DEFAULT_VERBOSITY=0;;
4851 no) AM_DEFAULT_VERBOSITY=1;;
4852 *) AM_DEFAULT_VERBOSITY=0;;
4853 esac
4854 AM_BACKSLASH='\'
4855
4856
4857
4858 for ac_func in strlcat
4859 do :
4860 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
4861 if test "x$ac_cv_func_strlcat" = xyes; then :
4862 cat >>confdefs.h <<_ACEOF
4863 #define HAVE_STRLCAT 1
4864 _ACEOF
4865
4866 fi
4867 done
4868
4869
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5
4871 $as_echo_n "checking for working strnlen... " >&6; }
4872 if ${ac_cv_func_strnlen_working+:} false; then :
4873 $as_echo_n "(cached) " >&6
4874 else
4875 if test "$cross_compiling" = yes; then :
4876 # Guess no on AIX systems, yes otherwise.
4877 case "$host_os" in
4878 aix*) ac_cv_func_strnlen_working=no;;
4879 *) ac_cv_func_strnlen_working=yes;;
4880 esac
4881 else
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884 $ac_includes_default
4885 int
4886 main ()
4887 {
4888
4889 #define S "foobar"
4890 #define S_LEN (sizeof S - 1)
4891
4892 /* At least one implementation is buggy: that of AIX 4.3 would
4893 give strnlen (S, 1) == 3. */
4894
4895 int i;
4896 for (i = 0; i < S_LEN + 1; ++i)
4897 {
4898 int expected = i <= S_LEN ? i : S_LEN;
4899 if (strnlen (S, i) != expected)
4900 return 1;
4901 }
4902 return 0;
4903
4904 ;
4905 return 0;
4906 }
4907 _ACEOF
4908 if ac_fn_c_try_run "$LINENO"; then :
4909 ac_cv_func_strnlen_working=yes
4910 else
4911 ac_cv_func_strnlen_working=no
4912 fi
4913 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4914 conftest.$ac_objext conftest.beam conftest.$ac_ext
4915 fi
4916
4917 fi
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5
4919 $as_echo "$ac_cv_func_strnlen_working" >&6; }
4920 test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in
4921 *" strnlen.$ac_objext "* ) ;;
4922 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext"
4923 ;;
4924 esac
4925
4926
4927 if test "x$ac_cv_func_strnlen_working" = xyes; then
4928
4929 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
4930
4931 fi
4932
4933 # Check for iconv in libc, then libiconv
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv" >&5
4935 $as_echo_n "checking for library containing iconv... " >&6; }
4936 if ${ac_cv_search_iconv+:} false; then :
4937 $as_echo_n "(cached) " >&6
4938 else
4939 ac_func_search_save_LIBS=$LIBS
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4942
4943 /* Override any GCC internal prototype to avoid an error.
4944 Use char because int might match the return type of a GCC
4945 builtin and then its argument prototype would still apply. */
4946 #ifdef __cplusplus
4947 extern "C"
4948 #endif
4949 char iconv ();
4950 int
4951 main ()
4952 {
4953 return iconv ();
4954 ;
4955 return 0;
4956 }
4957 _ACEOF
4958 for ac_lib in '' iconv; do
4959 if test -z "$ac_lib"; then
4960 ac_res="none required"
4961 else
4962 ac_res=-l$ac_lib
4963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4964 fi
4965 if ac_fn_c_try_link "$LINENO"; then :
4966 ac_cv_search_iconv=$ac_res
4967 fi
4968 rm -f core conftest.err conftest.$ac_objext \
4969 conftest$ac_exeext
4970 if ${ac_cv_search_iconv+:} false; then :
4971 break
4972 fi
4973 done
4974 if ${ac_cv_search_iconv+:} false; then :
4975
4976 else
4977 ac_cv_search_iconv=no
4978 fi
4979 rm conftest.$ac_ext
4980 LIBS=$ac_func_search_save_LIBS
4981 fi
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv" >&5
4983 $as_echo "$ac_cv_search_iconv" >&6; }
4984 ac_res=$ac_cv_search_iconv
4985 if test "$ac_res" != no; then :
4986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4987
4988 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
4989
4990 fi
4991
4992
4993 # Allow using xcb-icccm, but don't make it the default while the API is
4994 # still being changed.
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use xcb-icccm library" >&5
4996 $as_echo_n "checking whether to use xcb-icccm library... " >&6; }
4997
4998 # Check whether --with-xcb-icccm was given.
4999 if test "${with_xcb_icccm+set}" = set; then :
5000 withval=$with_xcb_icccm;
5001 else
5002 with_xcb_icccm=no
5003 fi
5004
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xcb_icccm" >&5
5006 $as_echo "$with_xcb_icccm" >&6; }
5007 if test "x$with_xcb_icccm" != xno ; then
5008
5009 $as_echo "#define USE_XCB_ICCCM 1" >>confdefs.h
5010
5011 xcb_icccm_pc="xcb-icccm"
5012 fi
5013
5014 # Checks for pkg-config packages
5015
5016 pkg_failed=no
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XWININFO" >&5
5018 $as_echo_n "checking for XWININFO... " >&6; }
5019
5020 if test -n "$XWININFO_CFLAGS"; then
5021 pkg_cv_XWININFO_CFLAGS="$XWININFO_CFLAGS"
5022 elif test -n "$PKG_CONFIG"; then
5023 if test -n "$PKG_CONFIG" && \
5024 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6 xcb-shape \${xcb_icccm_pc}\""; } >&5
5025 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}") 2>&5
5026 ac_status=$?
5027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5028 test $ac_status = 0; }; then
5029 pkg_cv_XWININFO_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>/dev/null`
5030 else
5031 pkg_failed=yes
5032 fi
5033 else
5034 pkg_failed=untried
5035 fi
5036 if test -n "$XWININFO_LIBS"; then
5037 pkg_cv_XWININFO_LIBS="$XWININFO_LIBS"
5038 elif test -n "$PKG_CONFIG"; then
5039 if test -n "$PKG_CONFIG" && \
5040 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6 xcb-shape \${xcb_icccm_pc}\""; } >&5
5041 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}") 2>&5
5042 ac_status=$?
5043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044 test $ac_status = 0; }; then
5045 pkg_cv_XWININFO_LIBS=`$PKG_CONFIG --libs "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>/dev/null`
5046 else
5047 pkg_failed=yes
5048 fi
5049 else
5050 pkg_failed=untried
5051 fi
5052
5053
5054
5055 if test $pkg_failed = yes; then
5056
5057 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5058 _pkg_short_errors_supported=yes
5059 else
5060 _pkg_short_errors_supported=no
5061 fi
5062 if test $_pkg_short_errors_supported = yes; then
5063 XWININFO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>&1`
5064 else
5065 XWININFO_PKG_ERRORS=`$PKG_CONFIG --print-errors "xcb >= 1.6 xcb-shape ${xcb_icccm_pc}" 2>&1`
5066 fi
5067 # Put the nasty error message in config.log where it belongs
5068 echo "$XWININFO_PKG_ERRORS" >&5
5069
5070 as_fn_error $? "Package requirements (xcb >= 1.6 xcb-shape ${xcb_icccm_pc}) were not met:
5071
5072 $XWININFO_PKG_ERRORS
5073
5074 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5075 installed software in a non-standard prefix.
5076
5077 Alternatively, you may set the environment variables XWININFO_CFLAGS
5078 and XWININFO_LIBS to avoid the need to call pkg-config.
5079 See the pkg-config man page for more details.
5080 " "$LINENO" 5
5081 elif test $pkg_failed = untried; then
5082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5084 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5085 is in your PATH or set the PKG_CONFIG environment variable to the full
5086 path to pkg-config.
5087
5088 Alternatively, you may set the environment variables XWININFO_CFLAGS
5089 and XWININFO_LIBS to avoid the need to call pkg-config.
5090 See the pkg-config man page for more details.
5091
5092 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5093 See \`config.log' for more details" "$LINENO" 5; }
5094 else
5095 XWININFO_CFLAGS=$pkg_cv_XWININFO_CFLAGS
5096 XWININFO_LIBS=$pkg_cv_XWININFO_LIBS
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5098 $as_echo "yes" >&6; }
5099 :
5100 fi
5101
5102 # Even when using xcb, xproto is still required for Xfuncproto.h
5103 # and libX11 headers for cursorfont.h
5104
5105 pkg_failed=no
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB" >&5
5107 $as_echo_n "checking for XLIB... " >&6; }
5108
5109 if test -n "$XLIB_CFLAGS"; then
5110 pkg_cv_XLIB_CFLAGS="$XLIB_CFLAGS"
5111 elif test -n "$PKG_CONFIG"; then
5112 if test -n "$PKG_CONFIG" && \
5113 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
5114 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
5115 ac_status=$?
5116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5117 test $ac_status = 0; }; then
5118 pkg_cv_XLIB_CFLAGS=`$PKG_CONFIG --cflags "x11 xproto >= 7.0.17" 2>/dev/null`
5119 else
5120 pkg_failed=yes
5121 fi
5122 else
5123 pkg_failed=untried
5124 fi
5125 if test -n "$XLIB_LIBS"; then
5126 pkg_cv_XLIB_LIBS="$XLIB_LIBS"
5127 elif test -n "$PKG_CONFIG"; then
5128 if test -n "$PKG_CONFIG" && \
5129 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xproto >= 7.0.17\""; } >&5
5130 ($PKG_CONFIG --exists --print-errors "x11 xproto >= 7.0.17") 2>&5
5131 ac_status=$?
5132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5133 test $ac_status = 0; }; then
5134 pkg_cv_XLIB_LIBS=`$PKG_CONFIG --libs "x11 xproto >= 7.0.17" 2>/dev/null`
5135 else
5136 pkg_failed=yes
5137 fi
5138 else
5139 pkg_failed=untried
5140 fi
5141
5142
5143
5144 if test $pkg_failed = yes; then
5145
5146 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5147 _pkg_short_errors_supported=yes
5148 else
5149 _pkg_short_errors_supported=no
5150 fi
5151 if test $_pkg_short_errors_supported = yes; then
5152 XLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xproto >= 7.0.17" 2>&1`
5153 else
5154 XLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xproto >= 7.0.17" 2>&1`
5155 fi
5156 # Put the nasty error message in config.log where it belongs
5157 echo "$XLIB_PKG_ERRORS" >&5
5158
5159 as_fn_error $? "Package requirements (x11 xproto >= 7.0.17) were not met:
5160
5161 $XLIB_PKG_ERRORS
5162
5163 Consider adjusting the PKG_CONFIG_PATH environment variable if you
5164 installed software in a non-standard prefix.
5165
5166 Alternatively, you may set the environment variables XLIB_CFLAGS
5167 and XLIB_LIBS to avoid the need to call pkg-config.
5168 See the pkg-config man page for more details.
5169 " "$LINENO" 5
5170 elif test $pkg_failed = untried; then
5171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5173 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
5174 is in your PATH or set the PKG_CONFIG environment variable to the full
5175 path to pkg-config.
5176
5177 Alternatively, you may set the environment variables XLIB_CFLAGS
5178 and XLIB_LIBS to avoid the need to call pkg-config.
5179 See the pkg-config man page for more details.
5180
5181 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
5182 See \`config.log' for more details" "$LINENO" 5; }
5183 else
5184 XLIB_CFLAGS=$pkg_cv_XLIB_CFLAGS
5185 XLIB_LIBS=$pkg_cv_XLIB_LIBS
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5187 $as_echo "yes" >&6; }
5188 :
5189 fi
5190 XWININFO_CFLAGS="${XWININFO_CFLAGS} ${XLIB_CFLAGS}"
5191
5192 ac_config_files="$ac_config_files Makefile"
5193
5194 cat >confcache <<\_ACEOF
5195 # This file is a shell script that caches the results of configure
5196 # tests run on this system so they can be shared between configure
5197 # scripts and configure runs, see configure's option --config-cache.
5198 # It is not useful on other systems. If it contains results you don't
5199 # want to keep, you may remove or edit it.
5200 #
5201 # config.status only pays attention to the cache file if you give it
5202 # the --recheck option to rerun configure.
5203 #
5204 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5205 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5206 # following values.
5207
5208 _ACEOF
5209
5210 # The following way of writing the cache mishandles newlines in values,
5211 # but we know of no workaround that is simple, portable, and efficient.
5212 # So, we kill variables containing newlines.
5213 # Ultrix sh set writes to stderr and can't be redirected directly,
5214 # and sets the high bit in the cache file unless we assign to the vars.
5215 (
5216 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5217 eval ac_val=\$$ac_var
5218 case $ac_val in #(
5219 *${as_nl}*)
5220 case $ac_var in #(
5221 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5222 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5223 esac
5224 case $ac_var in #(
5225 _ | IFS | as_nl) ;; #(
5226 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5227 *) { eval $ac_var=; unset $ac_var;} ;;
5228 esac ;;
5229 esac
5230 done
5231
5232 (set) 2>&1 |
5233 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5234 *${as_nl}ac_space=\ *)
5235 # `set' does not quote correctly, so add quotes: double-quote
5236 # substitution turns \\\\ into \\, and sed turns \\ into \.
5237 sed -n \
5238 "s/'/'\\\\''/g;
5239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5240 ;; #(
5241 *)
5242 # `set' quotes correctly as required by POSIX, so do not add quotes.
5243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5244 ;;
5245 esac |
5246 sort
5247 ) |
5248 sed '
5249 /^ac_cv_env_/b end
5250 t clear
5251 :clear
5252 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5253 t end
5254 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5255 :end' >>confcache
5256 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5257 if test -w "$cache_file"; then
5258 if test "x$cache_file" != "x/dev/null"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5260 $as_echo "$as_me: updating cache $cache_file" >&6;}
5261 if test ! -f "$cache_file" || test -h "$cache_file"; then
5262 cat confcache >"$cache_file"
5263 else
5264 case $cache_file in #(
5265 */* | ?:*)
5266 mv -f confcache "$cache_file"$$ &&
5267 mv -f "$cache_file"$$ "$cache_file" ;; #(
5268 *)
5269 mv -f confcache "$cache_file" ;;
5270 esac
5271 fi
5272 fi
5273 else
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5275 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5276 fi
5277 fi
5278 rm -f confcache
5279
5280 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5281 # Let make expand exec_prefix.
5282 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5283
5284 DEFS=-DHAVE_CONFIG_H
5285
5286 ac_libobjs=
5287 ac_ltlibobjs=
5288 U=
5289 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5290 # 1. Remove the extension, and $U if already installed.
5291 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5292 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5293 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5294 # will be set to the directory where LIBOBJS objects are built.
5295 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5296 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5297 done
5298 LIBOBJS=$ac_libobjs
5299
5300 LTLIBOBJS=$ac_ltlibobjs
5301
5302
5303 if test -n "$EXEEXT"; then
5304 am__EXEEXT_TRUE=
5305 am__EXEEXT_FALSE='#'
5306 else
5307 am__EXEEXT_TRUE='#'
5308 am__EXEEXT_FALSE=
5309 fi
5310
5311 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5312 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
5313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5314 fi
5315 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5316 as_fn_error $? "conditional \"AMDEP\" was never defined.
5317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5318 fi
5319 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5320 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
5321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5322 fi
5323
5324 : "${CONFIG_STATUS=./config.status}"
5325 ac_write_fail=0
5326 ac_clean_files_save=$ac_clean_files
5327 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5329 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5330 as_write_fail=0
5331 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5332 #! $SHELL
5333 # Generated by $as_me.
5334 # Run this file to recreate the current configuration.
5335 # Compiler output produced by configure, useful for debugging
5336 # configure, is in config.log if it exists.
5337
5338 debug=false
5339 ac_cs_recheck=false
5340 ac_cs_silent=false
5341
5342 SHELL=\${CONFIG_SHELL-$SHELL}
5343 export SHELL
5344 _ASEOF
5345 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5346 ## -------------------- ##
5347 ## M4sh Initialization. ##
5348 ## -------------------- ##
5349
5350 # Be more Bourne compatible
5351 DUALCASE=1; export DUALCASE # for MKS sh
5352 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5353 emulate sh
5354 NULLCMD=:
5355 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5356 # is contrary to our usage. Disable this feature.
5357 alias -g '${1+"$@"}'='"$@"'
5358 setopt NO_GLOB_SUBST
5359 else
5360 case `(set -o) 2>/dev/null` in #(
5361 *posix*) :
5362 set -o posix ;; #(
5363 *) :
5364 ;;
5365 esac
5366 fi
5367
5368
5369 as_nl='
5370 '
5371 export as_nl
5372 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5373 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5374 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5375 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5376 # Prefer a ksh shell builtin over an external printf program on Solaris,
5377 # but without wasting forks for bash or zsh.
5378 if test -z "$BASH_VERSION$ZSH_VERSION" \
5379 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5380 as_echo='print -r --'
5381 as_echo_n='print -rn --'
5382 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5383 as_echo='printf %s\n'
5384 as_echo_n='printf %s'
5385 else
5386 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5387 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5388 as_echo_n='/usr/ucb/echo -n'
5389 else
5390 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5391 as_echo_n_body='eval
5392 arg=$1;
5393 case $arg in #(
5394 *"$as_nl"*)
5395 expr "X$arg" : "X\\(.*\\)$as_nl";
5396 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5397 esac;
5398 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5399 '
5400 export as_echo_n_body
5401 as_echo_n='sh -c $as_echo_n_body as_echo'
5402 fi
5403 export as_echo_body
5404 as_echo='sh -c $as_echo_body as_echo'
5405 fi
5406
5407 # The user is always right.
5408 if test "${PATH_SEPARATOR+set}" != set; then
5409 PATH_SEPARATOR=:
5410 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5411 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5412 PATH_SEPARATOR=';'
5413 }
5414 fi
5415
5416
5417 # IFS
5418 # We need space, tab and new line, in precisely that order. Quoting is
5419 # there to prevent editors from complaining about space-tab.
5420 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5421 # splitting by setting IFS to empty value.)
5422 IFS=" "" $as_nl"
5423
5424 # Find who we are. Look in the path if we contain no directory separator.
5425 as_myself=
5426 case $0 in #((
5427 *[\\/]* ) as_myself=$0 ;;
5428 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5430 do
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5434 done
5435 IFS=$as_save_IFS
5436
5437 ;;
5438 esac
5439 # We did not find ourselves, most probably we were run as `sh COMMAND'
5440 # in which case we are not to be found in the path.
5441 if test "x$as_myself" = x; then
5442 as_myself=$0
5443 fi
5444 if test ! -f "$as_myself"; then
5445 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5446 exit 1
5447 fi
5448
5449 # Unset variables that we do not need and which cause bugs (e.g. in
5450 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5451 # suppresses any "Segmentation fault" message there. '((' could
5452 # trigger a bug in pdksh 5.2.14.
5453 for as_var in BASH_ENV ENV MAIL MAILPATH
5454 do eval test x\${$as_var+set} = xset \
5455 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5456 done
5457 PS1='$ '
5458 PS2='> '
5459 PS4='+ '
5460
5461 # NLS nuisances.
5462 LC_ALL=C
5463 export LC_ALL
5464 LANGUAGE=C
5465 export LANGUAGE
5466
5467 # CDPATH.
5468 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5469
5470
5471 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5472 # ----------------------------------------
5473 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5474 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5475 # script with STATUS, using 1 if that was 0.
5476 as_fn_error ()
5477 {
5478 as_status=$1; test $as_status -eq 0 && as_status=1
5479 if test "$4"; then
5480 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5481 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5482 fi
5483 $as_echo "$as_me: error: $2" >&2
5484 as_fn_exit $as_status
5485 } # as_fn_error
5486
5487
5488 # as_fn_set_status STATUS
5489 # -----------------------
5490 # Set $? to STATUS, without forking.
5491 as_fn_set_status ()
5492 {
5493 return $1
5494 } # as_fn_set_status
5495
5496 # as_fn_exit STATUS
5497 # -----------------
5498 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5499 as_fn_exit ()
5500 {
5501 set +e
5502 as_fn_set_status $1
5503 exit $1
5504 } # as_fn_exit
5505
5506 # as_fn_unset VAR
5507 # ---------------
5508 # Portably unset VAR.
5509 as_fn_unset ()
5510 {
5511 { eval $1=; unset $1;}
5512 }
5513 as_unset=as_fn_unset
5514 # as_fn_append VAR VALUE
5515 # ----------------------
5516 # Append the text in VALUE to the end of the definition contained in VAR. Take
5517 # advantage of any shell optimizations that allow amortized linear growth over
5518 # repeated appends, instead of the typical quadratic growth present in naive
5519 # implementations.
5520 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5521 eval 'as_fn_append ()
5522 {
5523 eval $1+=\$2
5524 }'
5525 else
5526 as_fn_append ()
5527 {
5528 eval $1=\$$1\$2
5529 }
5530 fi # as_fn_append
5531
5532 # as_fn_arith ARG...
5533 # ------------------
5534 # Perform arithmetic evaluation on the ARGs, and store the result in the
5535 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5536 # must be portable across $(()) and expr.
5537 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5538 eval 'as_fn_arith ()
5539 {
5540 as_val=$(( $* ))
5541 }'
5542 else
5543 as_fn_arith ()
5544 {
5545 as_val=`expr "$@" || test $? -eq 1`
5546 }
5547 fi # as_fn_arith
5548
5549
5550 if expr a : '\(a\)' >/dev/null 2>&1 &&
5551 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5552 as_expr=expr
5553 else
5554 as_expr=false
5555 fi
5556
5557 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5558 as_basename=basename
5559 else
5560 as_basename=false
5561 fi
5562
5563 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5564 as_dirname=dirname
5565 else
5566 as_dirname=false
5567 fi
5568
5569 as_me=`$as_basename -- "$0" ||
5570 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5571 X"$0" : 'X\(//\)$' \| \
5572 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5573 $as_echo X/"$0" |
5574 sed '/^.*\/\([^/][^/]*\)\/*$/{
5575 s//\1/
5576 q
5577 }
5578 /^X\/\(\/\/\)$/{
5579 s//\1/
5580 q
5581 }
5582 /^X\/\(\/\).*/{
5583 s//\1/
5584 q
5585 }
5586 s/.*/./; q'`
5587
5588 # Avoid depending upon Character Ranges.
5589 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5590 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5591 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5592 as_cr_digits='0123456789'
5593 as_cr_alnum=$as_cr_Letters$as_cr_digits
5594
5595 ECHO_C= ECHO_N= ECHO_T=
5596 case `echo -n x` in #(((((
5597 -n*)
5598 case `echo 'xy\c'` in
5599 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5600 xy) ECHO_C='\c';;
5601 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5602 ECHO_T=' ';;
5603 esac;;
5604 *)
5605 ECHO_N='-n';;
5606 esac
5607
5608 rm -f conf$$ conf$$.exe conf$$.file
5609 if test -d conf$$.dir; then
5610 rm -f conf$$.dir/conf$$.file
5611 else
5612 rm -f conf$$.dir
5613 mkdir conf$$.dir 2>/dev/null
5614 fi
5615 if (echo >conf$$.file) 2>/dev/null; then
5616 if ln -s conf$$.file conf$$ 2>/dev/null; then
5617 as_ln_s='ln -s'
5618 # ... but there are two gotchas:
5619 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5620 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5621 # In both cases, we have to default to `cp -p'.
5622 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5623 as_ln_s='cp -p'
5624 elif ln conf$$.file conf$$ 2>/dev/null; then
5625 as_ln_s=ln
5626 else
5627 as_ln_s='cp -p'
5628 fi
5629 else
5630 as_ln_s='cp -p'
5631 fi
5632 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5633 rmdir conf$$.dir 2>/dev/null
5634
5635
5636 # as_fn_mkdir_p
5637 # -------------
5638 # Create "$as_dir" as a directory, including parents if necessary.
5639 as_fn_mkdir_p ()
5640 {
5641
5642 case $as_dir in #(
5643 -*) as_dir=./$as_dir;;
5644 esac
5645 test -d "$as_dir" || eval $as_mkdir_p || {
5646 as_dirs=
5647 while :; do
5648 case $as_dir in #(
5649 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5650 *) as_qdir=$as_dir;;
5651 esac
5652 as_dirs="'$as_qdir' $as_dirs"
5653 as_dir=`$as_dirname -- "$as_dir" ||
5654 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5655 X"$as_dir" : 'X\(//\)[^/]' \| \
5656 X"$as_dir" : 'X\(//\)$' \| \
5657 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5658 $as_echo X"$as_dir" |
5659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5660 s//\1/
5661 q
5662 }
5663 /^X\(\/\/\)[^/].*/{
5664 s//\1/
5665 q
5666 }
5667 /^X\(\/\/\)$/{
5668 s//\1/
5669 q
5670 }
5671 /^X\(\/\).*/{
5672 s//\1/
5673 q
5674 }
5675 s/.*/./; q'`
5676 test -d "$as_dir" && break
5677 done
5678 test -z "$as_dirs" || eval "mkdir $as_dirs"
5679 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5680
5681
5682 } # as_fn_mkdir_p
5683 if mkdir -p . 2>/dev/null; then
5684 as_mkdir_p='mkdir -p "$as_dir"'
5685 else
5686 test -d ./-p && rmdir ./-p
5687 as_mkdir_p=false
5688 fi
5689
5690 if test -x / >/dev/null 2>&1; then
5691 as_test_x='test -x'
5692 else
5693 if ls -dL / >/dev/null 2>&1; then
5694 as_ls_L_option=L
5695 else
5696 as_ls_L_option=
5697 fi
5698 as_test_x='
5699 eval sh -c '\''
5700 if test -d "$1"; then
5701 test -d "$1/.";
5702 else
5703 case $1 in #(
5704 -*)set "./$1";;
5705 esac;
5706 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5707 ???[sx]*):;;*)false;;esac;fi
5708 '\'' sh
5709 '
5710 fi
5711 as_executable_p=$as_test_x
5712
5713 # Sed expression to map a string onto a valid CPP name.
5714 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5715
5716 # Sed expression to map a string onto a valid variable name.
5717 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5718
5719
5720 exec 6>&1
5721 ## ----------------------------------- ##
5722 ## Main body of $CONFIG_STATUS script. ##
5723 ## ----------------------------------- ##
5724 _ASEOF
5725 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5726
5727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5728 # Save the log message, to keep $0 and so on meaningful, and to
5729 # report actual input values of CONFIG_FILES etc. instead of their
5730 # values after options handling.
5731 ac_log="
5732 This file was extended by xwininfo $as_me 1.1.1, which was
5733 generated by GNU Autoconf 2.68. Invocation command line was
5734
5735 CONFIG_FILES = $CONFIG_FILES
5736 CONFIG_HEADERS = $CONFIG_HEADERS
5737 CONFIG_LINKS = $CONFIG_LINKS
5738 CONFIG_COMMANDS = $CONFIG_COMMANDS
5739 $ $0 $@
5740
5741 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5742 "
5743
5744 _ACEOF
5745
5746 case $ac_config_files in *"
5747 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5748 esac
5749
5750 case $ac_config_headers in *"
5751 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5752 esac
5753
5754
5755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5756 # Files that config.status was made for.
5757 config_files="$ac_config_files"
5758 config_headers="$ac_config_headers"
5759 config_commands="$ac_config_commands"
5760
5761 _ACEOF
5762
5763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5764 ac_cs_usage="\
5765 \`$as_me' instantiates files and other configuration actions
5766 from templates according to the current configuration. Unless the files
5767 and actions are specified as TAGs, all are instantiated by default.
5768
5769 Usage: $0 [OPTION]... [TAG]...
5770
5771 -h, --help print this help, then exit
5772 -V, --version print version number and configuration settings, then exit
5773 --config print configuration, then exit
5774 -q, --quiet, --silent
5775 do not print progress messages
5776 -d, --debug don't remove temporary files
5777 --recheck update $as_me by reconfiguring in the same conditions
5778 --file=FILE[:TEMPLATE]
5779 instantiate the configuration file FILE
5780 --header=FILE[:TEMPLATE]
5781 instantiate the configuration header FILE
5782
5783 Configuration files:
5784 $config_files
5785
5786 Configuration headers:
5787 $config_headers
5788
5789 Configuration commands:
5790 $config_commands
5791
5792 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
5793
5794 _ACEOF
5795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5796 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5797 ac_cs_version="\\
5798 xwininfo config.status 1.1.1
5799 configured by $0, generated by GNU Autoconf 2.68,
5800 with options \\"\$ac_cs_config\\"
5801
5802 Copyright (C) 2010 Free Software Foundation, Inc.
5803 This config.status script is free software; the Free Software Foundation
5804 gives unlimited permission to copy, distribute and modify it."
5805
5806 ac_pwd='$ac_pwd'
5807 srcdir='$srcdir'
5808 INSTALL='$INSTALL'
5809 MKDIR_P='$MKDIR_P'
5810 AWK='$AWK'
5811 test -n "\$AWK" || AWK=awk
5812 _ACEOF
5813
5814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5815 # The default lists apply if the user does not specify any file.
5816 ac_need_defaults=:
5817 while test $# != 0
5818 do
5819 case $1 in
5820 --*=?*)
5821 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5822 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5823 ac_shift=:
5824 ;;
5825 --*=)
5826 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5827 ac_optarg=
5828 ac_shift=:
5829 ;;
5830 *)
5831 ac_option=$1
5832 ac_optarg=$2
5833 ac_shift=shift
5834 ;;
5835 esac
5836
5837 case $ac_option in
5838 # Handling of the options.
5839 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5840 ac_cs_recheck=: ;;
5841 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5842 $as_echo "$ac_cs_version"; exit ;;
5843 --config | --confi | --conf | --con | --co | --c )
5844 $as_echo "$ac_cs_config"; exit ;;
5845 --debug | --debu | --deb | --de | --d | -d )
5846 debug=: ;;
5847 --file | --fil | --fi | --f )
5848 $ac_shift
5849 case $ac_optarg in
5850 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5851 '') as_fn_error $? "missing file argument" ;;
5852 esac
5853 as_fn_append CONFIG_FILES " '$ac_optarg'"
5854 ac_need_defaults=false;;
5855 --header | --heade | --head | --hea )
5856 $ac_shift
5857 case $ac_optarg in
5858 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5859 esac
5860 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5861 ac_need_defaults=false;;
5862 --he | --h)
5863 # Conflict between --help and --header
5864 as_fn_error $? "ambiguous option: \`$1'
5865 Try \`$0 --help' for more information.";;
5866 --help | --hel | -h )
5867 $as_echo "$ac_cs_usage"; exit ;;
5868 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5869 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5870 ac_cs_silent=: ;;
5871
5872 # This is an error.
5873 -*) as_fn_error $? "unrecognized option: \`$1'
5874 Try \`$0 --help' for more information." ;;
5875
5876 *) as_fn_append ac_config_targets " $1"
5877 ac_need_defaults=false ;;
5878
5879 esac
5880 shift
5881 done
5882
5883 ac_configure_extra_args=
5884
5885 if $ac_cs_silent; then
5886 exec 6>/dev/null
5887 ac_configure_extra_args="$ac_configure_extra_args --silent"
5888 fi
5889
5890 _ACEOF
5891 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5892 if \$ac_cs_recheck; then
5893 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5894 shift
5895 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5896 CONFIG_SHELL='$SHELL'
5897 export CONFIG_SHELL
5898 exec "\$@"
5899 fi
5900
5901 _ACEOF
5902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5903 exec 5>>config.log
5904 {
5905 echo
5906 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5907 ## Running $as_me. ##
5908 _ASBOX
5909 $as_echo "$ac_log"
5910 } >&5
5911
5912 _ACEOF
5913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5914 #
5915 # INIT-COMMANDS
5916 #
5917 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5918
5919 _ACEOF
5920
5921 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5922
5923 # Handling of arguments.
5924 for ac_config_target in $ac_config_targets
5925 do
5926 case $ac_config_target in
5927 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5928 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5929 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5930
5931 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5932 esac
5933 done
5934
5935
5936 # If the user did not use the arguments to specify the items to instantiate,
5937 # then the envvar interface is used. Set only those that are not.
5938 # We use the long form for the default assignment because of an extremely
5939 # bizarre bug on SunOS 4.1.3.
5940 if $ac_need_defaults; then
5941 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5942 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5943 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5944 fi
5945
5946 # Have a temporary directory for convenience. Make it in the build tree
5947 # simply because there is no reason against having it here, and in addition,
5948 # creating and moving files from /tmp can sometimes cause problems.
5949 # Hook for its removal unless debugging.
5950 # Note that there is a small window in which the directory will not be cleaned:
5951 # after its creation but before its name has been assigned to `$tmp'.
5952 $debug ||
5953 {
5954 tmp= ac_tmp=
5955 trap 'exit_status=$?
5956 : "${ac_tmp:=$tmp}"
5957 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
5958 ' 0
5959 trap 'as_fn_exit 1' 1 2 13 15
5960 }
5961 # Create a (secure) tmp directory for tmp files.
5962
5963 {
5964 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5965 test -d "$tmp"
5966 } ||
5967 {
5968 tmp=./conf$$-$RANDOM
5969 (umask 077 && mkdir "$tmp")
5970 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
5971 ac_tmp=$tmp
5972
5973 # Set up the scripts for CONFIG_FILES section.
5974 # No need to generate them if there are no CONFIG_FILES.
5975 # This happens for instance with `./config.status config.h'.
5976 if test -n "$CONFIG_FILES"; then
5977
5978
5979 ac_cr=`echo X | tr X '\015'`
5980 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5981 # But we know of no other shell where ac_cr would be empty at this
5982 # point, so we can use a bashism as a fallback.
5983 if test "x$ac_cr" = x; then
5984 eval ac_cr=\$\'\\r\'
5985 fi
5986 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5987 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5988 ac_cs_awk_cr='\\r'
5989 else
5990 ac_cs_awk_cr=$ac_cr
5991 fi
5992
5993 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
5994 _ACEOF
5995
5996
5997 {
5998 echo "cat >conf$$subs.awk <<_ACEOF" &&
5999 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6000 echo "_ACEOF"
6001 } >conf$$subs.sh ||
6002 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6003 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6004 ac_delim='%!_!# '
6005 for ac_last_try in false false false false false :; do
6006 . ./conf$$subs.sh ||
6007 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6008
6009 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6010 if test $ac_delim_n = $ac_delim_num; then
6011 break
6012 elif $ac_last_try; then
6013 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6014 else
6015 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6016 fi
6017 done
6018 rm -f conf$$subs.sh
6019
6020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6021 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6022 _ACEOF
6023 sed -n '
6024 h
6025 s/^/S["/; s/!.*/"]=/
6026 p
6027 g
6028 s/^[^!]*!//
6029 :repl
6030 t repl
6031 s/'"$ac_delim"'$//
6032 t delim
6033 :nl
6034 h
6035 s/\(.\{148\}\)..*/\1/
6036 t more1
6037 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6038 p
6039 n
6040 b repl
6041 :more1
6042 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6043 p
6044 g
6045 s/.\{148\}//
6046 t nl
6047 :delim
6048 h
6049 s/\(.\{148\}\)..*/\1/
6050 t more2
6051 s/["\\]/\\&/g; s/^/"/; s/$/"/
6052 p
6053 b
6054 :more2
6055 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6056 p
6057 g
6058 s/.\{148\}//
6059 t delim
6060 ' <conf$$subs.awk | sed '
6061 /^[^""]/{
6062 N
6063 s/\n//
6064 }
6065 ' >>$CONFIG_STATUS || ac_write_fail=1
6066 rm -f conf$$subs.awk
6067 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6068 _ACAWK
6069 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6070 for (key in S) S_is_set[key] = 1
6071 FS = ""
6072
6073 }
6074 {
6075 line = $ 0
6076 nfields = split(line, field, "@")
6077 substed = 0
6078 len = length(field[1])
6079 for (i = 2; i < nfields; i++) {
6080 key = field[i]
6081 keylen = length(key)
6082 if (S_is_set[key]) {
6083 value = S[key]
6084 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6085 len += length(value) + length(field[++i])
6086 substed = 1
6087 } else
6088 len += 1 + keylen
6089 }
6090
6091 print line
6092 }
6093
6094 _ACAWK
6095 _ACEOF
6096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6097 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6098 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6099 else
6100 cat
6101 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6102 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6103 _ACEOF
6104
6105 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6106 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6107 # trailing colons and then remove the whole line if VPATH becomes empty
6108 # (actually we leave an empty line to preserve line numbers).
6109 if test "x$srcdir" = x.; then
6110 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6111 h
6112 s///
6113 s/^/:/
6114 s/[ ]*$/:/
6115 s/:\$(srcdir):/:/g
6116 s/:\${srcdir}:/:/g
6117 s/:@srcdir@:/:/g
6118 s/^:*//
6119 s/:*$//
6120 x
6121 s/\(=[ ]*\).*/\1/
6122 G
6123 s/\n//
6124 s/^[^=]*=[ ]*$//
6125 }'
6126 fi
6127
6128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6129 fi # test -n "$CONFIG_FILES"
6130
6131 # Set up the scripts for CONFIG_HEADERS section.
6132 # No need to generate them if there are no CONFIG_HEADERS.
6133 # This happens for instance with `./config.status Makefile'.
6134 if test -n "$CONFIG_HEADERS"; then
6135 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6136 BEGIN {
6137 _ACEOF
6138
6139 # Transform confdefs.h into an awk script `defines.awk', embedded as
6140 # here-document in config.status, that substitutes the proper values into
6141 # config.h.in to produce config.h.
6142
6143 # Create a delimiter string that does not exist in confdefs.h, to ease
6144 # handling of long lines.
6145 ac_delim='%!_!# '
6146 for ac_last_try in false false :; do
6147 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6148 if test -z "$ac_tt"; then
6149 break
6150 elif $ac_last_try; then
6151 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6152 else
6153 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6154 fi
6155 done
6156
6157 # For the awk script, D is an array of macro values keyed by name,
6158 # likewise P contains macro parameters if any. Preserve backslash
6159 # newline sequences.
6160
6161 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6162 sed -n '
6163 s/.\{148\}/&'"$ac_delim"'/g
6164 t rset
6165 :rset
6166 s/^[ ]*#[ ]*define[ ][ ]*/ /
6167 t def
6168 d
6169 :def
6170 s/\\$//
6171 t bsnl
6172 s/["\\]/\\&/g
6173 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6174 D["\1"]=" \3"/p
6175 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6176 d
6177 :bsnl
6178 s/["\\]/\\&/g
6179 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6180 D["\1"]=" \3\\\\\\n"\\/p
6181 t cont
6182 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6183 t cont
6184 d
6185 :cont
6186 n
6187 s/.\{148\}/&'"$ac_delim"'/g
6188 t clear
6189 :clear
6190 s/\\$//
6191 t bsnlc
6192 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6193 d
6194 :bsnlc
6195 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6196 b cont
6197 ' <confdefs.h | sed '
6198 s/'"$ac_delim"'/"\\\
6199 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6200
6201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6202 for (key in D) D_is_set[key] = 1
6203 FS = ""
6204 }
6205 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6206 line = \$ 0
6207 split(line, arg, " ")
6208 if (arg[1] == "#") {
6209 defundef = arg[2]
6210 mac1 = arg[3]
6211 } else {
6212 defundef = substr(arg[1], 2)
6213 mac1 = arg[2]
6214 }
6215 split(mac1, mac2, "(") #)
6216 macro = mac2[1]
6217 prefix = substr(line, 1, index(line, defundef) - 1)
6218 if (D_is_set[macro]) {
6219 # Preserve the white space surrounding the "#".
6220 print prefix "define", macro P[macro] D[macro]
6221 next
6222 } else {
6223 # Replace #undef with comments. This is necessary, for example,
6224 # in the case of _POSIX_SOURCE, which is predefined and required
6225 # on some systems where configure will not decide to define it.
6226 if (defundef == "undef") {
6227 print "/*", prefix defundef, macro, "*/"
6228 next
6229 }
6230 }
6231 }
6232 { print }
6233 _ACAWK
6234 _ACEOF
6235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6236 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6237 fi # test -n "$CONFIG_HEADERS"
6238
6239
6240 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
6241 shift
6242 for ac_tag
6243 do
6244 case $ac_tag in
6245 :[FHLC]) ac_mode=$ac_tag; continue;;
6246 esac
6247 case $ac_mode$ac_tag in
6248 :[FHL]*:*);;
6249 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6250 :[FH]-) ac_tag=-:-;;
6251 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6252 esac
6253 ac_save_IFS=$IFS
6254 IFS=:
6255 set x $ac_tag
6256 IFS=$ac_save_IFS
6257 shift
6258 ac_file=$1
6259 shift
6260
6261 case $ac_mode in
6262 :L) ac_source=$1;;
6263 :[FH])
6264 ac_file_inputs=
6265 for ac_f
6266 do
6267 case $ac_f in
6268 -) ac_f="$ac_tmp/stdin";;
6269 *) # Look for the file first in the build tree, then in the source tree
6270 # (if the path is not absolute). The absolute path cannot be DOS-style,
6271 # because $ac_f cannot contain `:'.
6272 test -f "$ac_f" ||
6273 case $ac_f in
6274 [\\/$]*) false;;
6275 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6276 esac ||
6277 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6278 esac
6279 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6280 as_fn_append ac_file_inputs " '$ac_f'"
6281 done
6282
6283 # Let's still pretend it is `configure' which instantiates (i.e., don't
6284 # use $as_me), people would be surprised to read:
6285 # /* config.h. Generated by config.status. */
6286 configure_input='Generated from '`
6287 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6288 `' by configure.'
6289 if test x"$ac_file" != x-; then
6290 configure_input="$ac_file. $configure_input"
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6292 $as_echo "$as_me: creating $ac_file" >&6;}
6293 fi
6294 # Neutralize special characters interpreted by sed in replacement strings.
6295 case $configure_input in #(
6296 *\&* | *\|* | *\\* )
6297 ac_sed_conf_input=`$as_echo "$configure_input" |
6298 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6299 *) ac_sed_conf_input=$configure_input;;
6300 esac
6301
6302 case $ac_tag in
6303 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6304 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6305 esac
6306 ;;
6307 esac
6308
6309 ac_dir=`$as_dirname -- "$ac_file" ||
6310 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6311 X"$ac_file" : 'X\(//\)[^/]' \| \
6312 X"$ac_file" : 'X\(//\)$' \| \
6313 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6314 $as_echo X"$ac_file" |
6315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6316 s//\1/
6317 q
6318 }
6319 /^X\(\/\/\)[^/].*/{
6320 s//\1/
6321 q
6322 }
6323 /^X\(\/\/\)$/{
6324 s//\1/
6325 q
6326 }
6327 /^X\(\/\).*/{
6328 s//\1/
6329 q
6330 }
6331 s/.*/./; q'`
6332 as_dir="$ac_dir"; as_fn_mkdir_p
6333 ac_builddir=.
6334
6335 case "$ac_dir" in
6336 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6337 *)
6338 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6339 # A ".." for each directory in $ac_dir_suffix.
6340 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6341 case $ac_top_builddir_sub in
6342 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6343 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6344 esac ;;
6345 esac
6346 ac_abs_top_builddir=$ac_pwd
6347 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6348 # for backward compatibility:
6349 ac_top_builddir=$ac_top_build_prefix
6350
6351 case $srcdir in
6352 .) # We are building in place.
6353 ac_srcdir=.
6354 ac_top_srcdir=$ac_top_builddir_sub
6355 ac_abs_top_srcdir=$ac_pwd ;;
6356 [\\/]* | ?:[\\/]* ) # Absolute name.
6357 ac_srcdir=$srcdir$ac_dir_suffix;
6358 ac_top_srcdir=$srcdir
6359 ac_abs_top_srcdir=$srcdir ;;
6360 *) # Relative name.
6361 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6362 ac_top_srcdir=$ac_top_build_prefix$srcdir
6363 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6364 esac
6365 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6366
6367
6368 case $ac_mode in
6369 :F)
6370 #
6371 # CONFIG_FILE
6372 #
6373
6374 case $INSTALL in
6375 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6376 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6377 esac
6378 ac_MKDIR_P=$MKDIR_P
6379 case $MKDIR_P in
6380 [\\/$]* | ?:[\\/]* ) ;;
6381 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6382 esac
6383 _ACEOF
6384
6385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6386 # If the template does not know about datarootdir, expand it.
6387 # FIXME: This hack should be removed a few years after 2.60.
6388 ac_datarootdir_hack=; ac_datarootdir_seen=
6389 ac_sed_dataroot='
6390 /datarootdir/ {
6391 p
6392 q
6393 }
6394 /@datadir@/p
6395 /@docdir@/p
6396 /@infodir@/p
6397 /@localedir@/p
6398 /@mandir@/p'
6399 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6400 *datarootdir*) ac_datarootdir_seen=yes;;
6401 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6403 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6404 _ACEOF
6405 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6406 ac_datarootdir_hack='
6407 s&@datadir@&$datadir&g
6408 s&@docdir@&$docdir&g
6409 s&@infodir@&$infodir&g
6410 s&@localedir@&$localedir&g
6411 s&@mandir@&$mandir&g
6412 s&\\\${datarootdir}&$datarootdir&g' ;;
6413 esac
6414 _ACEOF
6415
6416 # Neutralize VPATH when `$srcdir' = `.'.
6417 # Shell code in configure.ac might set extrasub.
6418 # FIXME: do we really want to maintain this feature?
6419 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6420 ac_sed_extra="$ac_vpsub
6421 $extrasub
6422 _ACEOF
6423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6424 :t
6425 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6426 s|@configure_input@|$ac_sed_conf_input|;t t
6427 s&@top_builddir@&$ac_top_builddir_sub&;t t
6428 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6429 s&@srcdir@&$ac_srcdir&;t t
6430 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6431 s&@top_srcdir@&$ac_top_srcdir&;t t
6432 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6433 s&@builddir@&$ac_builddir&;t t
6434 s&@abs_builddir@&$ac_abs_builddir&;t t
6435 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6436 s&@INSTALL@&$ac_INSTALL&;t t
6437 s&@MKDIR_P@&$ac_MKDIR_P&;t t
6438 $ac_datarootdir_hack
6439 "
6440 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6441 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6442
6443 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6444 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6445 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6446 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6448 which seems to be undefined. Please make sure it is defined" >&5
6449 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6450 which seems to be undefined. Please make sure it is defined" >&2;}
6451
6452 rm -f "$ac_tmp/stdin"
6453 case $ac_file in
6454 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6455 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6456 esac \
6457 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6458 ;;
6459 :H)
6460 #
6461 # CONFIG_HEADER
6462 #
6463 if test x"$ac_file" != x-; then
6464 {
6465 $as_echo "/* $configure_input */" \
6466 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6467 } >"$ac_tmp/config.h" \
6468 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6469 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6471 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6472 else
6473 rm -f "$ac_file"
6474 mv "$ac_tmp/config.h" "$ac_file" \
6475 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6476 fi
6477 else
6478 $as_echo "/* $configure_input */" \
6479 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6480 || as_fn_error $? "could not create -" "$LINENO" 5
6481 fi
6482 # Compute "$ac_file"'s index in $config_headers.
6483 _am_arg="$ac_file"
6484 _am_stamp_count=1
6485 for _am_header in $config_headers :; do
6486 case $_am_header in
6487 $_am_arg | $_am_arg:* )
6488 break ;;
6489 * )
6490 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6491 esac
6492 done
6493 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6494 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6495 X"$_am_arg" : 'X\(//\)[^/]' \| \
6496 X"$_am_arg" : 'X\(//\)$' \| \
6497 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6498 $as_echo X"$_am_arg" |
6499 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6500 s//\1/
6501 q
6502 }
6503 /^X\(\/\/\)[^/].*/{
6504 s//\1/
6505 q
6506 }
6507 /^X\(\/\/\)$/{
6508 s//\1/
6509 q
6510 }
6511 /^X\(\/\).*/{
6512 s//\1/
6513 q
6514 }
6515 s/.*/./; q'`/stamp-h$_am_stamp_count
6516 ;;
6517
6518 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6519 $as_echo "$as_me: executing $ac_file commands" >&6;}
6520 ;;
6521 esac
6522
6523
6524 case $ac_file$ac_mode in
6525 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6526 # Autoconf 2.62 quotes --file arguments for eval, but not when files
6527 # are listed without --file. Let's play safe and only enable the eval
6528 # if we detect the quoting.
6529 case $CONFIG_FILES in
6530 *\'*) eval set x "$CONFIG_FILES" ;;
6531 *) set x $CONFIG_FILES ;;
6532 esac
6533 shift
6534 for mf
6535 do
6536 # Strip MF so we end up with the name of the file.
6537 mf=`echo "$mf" | sed -e 's/:.*$//'`
6538 # Check whether this is an Automake generated Makefile or not.
6539 # We used to match only the files named `Makefile.in', but
6540 # some people rename them; so instead we look at the file content.
6541 # Grep'ing the first line is not enough: some people post-process
6542 # each Makefile.in and add a new line on top of each file to say so.
6543 # Grep'ing the whole file is not good either: AIX grep has a line
6544 # limit of 2048, but all sed's we know have understand at least 4000.
6545 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6546 dirpart=`$as_dirname -- "$mf" ||
6547 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6548 X"$mf" : 'X\(//\)[^/]' \| \
6549 X"$mf" : 'X\(//\)$' \| \
6550 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6551 $as_echo X"$mf" |
6552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6553 s//\1/
6554 q
6555 }
6556 /^X\(\/\/\)[^/].*/{
6557 s//\1/
6558 q
6559 }
6560 /^X\(\/\/\)$/{
6561 s//\1/
6562 q
6563 }
6564 /^X\(\/\).*/{
6565 s//\1/
6566 q
6567 }
6568 s/.*/./; q'`
6569 else
6570 continue
6571 fi
6572 # Extract the definition of DEPDIR, am__include, and am__quote
6573 # from the Makefile without running `make'.
6574 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6575 test -z "$DEPDIR" && continue
6576 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6577 test -z "am__include" && continue
6578 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6579 # When using ansi2knr, U may be empty or an underscore; expand it
6580 U=`sed -n 's/^U = //p' < "$mf"`
6581 # Find all dependency output files, they are included files with
6582 # $(DEPDIR) in their names. We invoke sed twice because it is the
6583 # simplest approach to changing $(DEPDIR) to its actual value in the
6584 # expansion.
6585 for file in `sed -n "
6586 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6587 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6588 # Make sure the directory exists.
6589 test -f "$dirpart/$file" && continue
6590 fdir=`$as_dirname -- "$file" ||
6591 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6592 X"$file" : 'X\(//\)[^/]' \| \
6593 X"$file" : 'X\(//\)$' \| \
6594 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6595 $as_echo X"$file" |
6596 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6597 s//\1/
6598 q
6599 }
6600 /^X\(\/\/\)[^/].*/{
6601 s//\1/
6602 q
6603 }
6604 /^X\(\/\/\)$/{
6605 s//\1/
6606 q
6607 }
6608 /^X\(\/\).*/{
6609 s//\1/
6610 q
6611 }
6612 s/.*/./; q'`
6613 as_dir=$dirpart/$fdir; as_fn_mkdir_p
6614 # echo "creating $dirpart/$file"
6615 echo '# dummy' > "$dirpart/$file"
6616 done
6617 done
6618 }
6619 ;;
6620
6621 esac
6622 done # for ac_tag
6623
6624
6625 as_fn_exit 0
6626 _ACEOF
6627 ac_clean_files=$ac_clean_files_save
6628
6629 test $ac_write_fail = 0 ||
6630 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6631
6632
6633 # configure is writing to config.log, and then calls config.status.
6634 # config.status does its own redirection, appending to config.log.
6635 # Unfortunately, on DOS this fails, as config.log is still kept open
6636 # by configure, so config.status won't be able to write to it; its
6637 # output is simply discarded. So we exec the FD to /dev/null,
6638 # effectively closing config.log, so it can be properly (re)opened and
6639 # appended to by config.status. When coming back to configure, we
6640 # need to make the FD available again.
6641 if test "$no_create" != yes; then
6642 ac_cs_success=:
6643 ac_config_status_args=
6644 test "$silent" = yes &&
6645 ac_config_status_args="$ac_config_status_args --quiet"
6646 exec 5>/dev/null
6647 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6648 exec 5>>config.log
6649 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6650 # would make configure fail if this is the last instruction.
6651 $ac_cs_success || as_fn_exit 1
6652 fi
6653 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6655 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6656 fi
6657
6658