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