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