VirtualBox

source: vbox/trunk/src/VBox/RDP/client/configure@ 30263

最後變更 在這個檔案從30263是 18866,由 vboxsync 提交於 16 年 前

*: VBOX_WITHOUT_LINUX_COMPILER_H -> VBOX_WITH_LINUX_COMPILER_H. TODO: regenerate RDP/client/configure.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:executable 設為 *
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 340.1 KB
 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61 for rdesktop 1.6.0.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
13# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
27fi
28
29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
59
60
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
80IFS=$as_save_IFS
81
82 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell [email protected] about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463}
464
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
481esac
482
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552exec 7<&0 </dev/null 6>&1
553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
563ac_clean_files=
564ac_config_libobj_dir=.
565LIBOBJS=
566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
572# Identity of this package.
573PACKAGE_NAME='rdesktop'
574PACKAGE_TARNAME='rdesktop'
575PACKAGE_VERSION='1.6.0'
576PACKAGE_STRING='rdesktop 1.6.0'
577PACKAGE_BUGREPORT=''
578
579ac_unique_file="rdesktop.c"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
583#ifdef HAVE_SYS_TYPES_H
584# include <sys/types.h>
585#endif
586#ifdef HAVE_SYS_STAT_H
587# include <sys/stat.h>
588#endif
589#ifdef STDC_HEADERS
590# include <stdlib.h>
591# include <stddef.h>
592#else
593# ifdef HAVE_STDLIB_H
594# include <stdlib.h>
595# endif
596#endif
597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599# include <memory.h>
600# endif
601# include <string.h>
602#endif
603#ifdef HAVE_STRINGS_H
604# include <strings.h>
605#endif
606#ifdef HAVE_INTTYPES_H
607# include <inttypes.h>
608#endif
609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
613# include <unistd.h>
614#endif"
615
616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653CC
654CFLAGS
655LDFLAGS
656CPPFLAGS
657ac_ct_CC
658EXEEXT
659OBJEXT
660INSTALL_PROGRAM
661INSTALL_SCRIPT
662INSTALL_DATA
663CPP
664GREP
665EGREP
666XMKMF
667X_CFLAGS
668X_PRE_LIBS
669X_LIBS
670X_EXTRA_LIBS
671PKG_CONFIG
672STRIP
673ssldir
674PCSCLITE_CFLAGS
675PCSCLITE_LIBS
676SCARDOBJ
677VNCINC
678LDVNC
679VNCLINK
680RDP2VNCTARGET
681LIBAO_CFLAGS
682LIBAO_LIBS
683ALSA_CFLAGS
684ALSA_LIBS
685LIBSAMPLERATE_CFLAGS
686LIBSAMPLERATE_LIBS
687SOUNDOBJ
688LIBOBJS
689LIBICONV
690build
691build_cpu
692build_vendor
693build_os
694host
695host_cpu
696host_vendor
697host_os
698LTLIBOBJS'
699ac_subst_files=''
700 ac_precious_vars='build_alias
701host_alias
702target_alias
703CC
704CFLAGS
705LDFLAGS
706LIBS
707CPPFLAGS
708CPP
709XMKMF
710PKG_CONFIG
711PCSCLITE_CFLAGS
712PCSCLITE_LIBS
713LIBAO_CFLAGS
714LIBAO_LIBS
715ALSA_CFLAGS
716ALSA_LIBS
717LIBSAMPLERATE_CFLAGS
718LIBSAMPLERATE_LIBS'
719
720
721# Initialize some variables set by options.
722ac_init_help=
723ac_init_version=false
724# The variables have the same names as the options, with
725# dashes changed to underlines.
726cache_file=/dev/null
727exec_prefix=NONE
728no_create=
729no_recursion=
730prefix=NONE
731program_prefix=NONE
732program_suffix=NONE
733program_transform_name=s,x,x,
734silent=
735site=
736srcdir=
737verbose=
738x_includes=NONE
739x_libraries=NONE
740
741# Installation directory options.
742# These are left unexpanded so users can "make install exec_prefix=/foo"
743# and all the variables that are supposed to be based on exec_prefix
744# by default will actually change.
745# Use braces instead of parens because sh, perl, etc. also accept them.
746# (The list follows the same order as the GNU Coding Standards.)
747bindir='${exec_prefix}/bin'
748sbindir='${exec_prefix}/sbin'
749libexecdir='${exec_prefix}/libexec'
750datarootdir='${prefix}/share'
751datadir='${datarootdir}'
752sysconfdir='${prefix}/etc'
753sharedstatedir='${prefix}/com'
754localstatedir='${prefix}/var'
755includedir='${prefix}/include'
756oldincludedir='/usr/include'
757docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
758infodir='${datarootdir}/info'
759htmldir='${docdir}'
760dvidir='${docdir}'
761pdfdir='${docdir}'
762psdir='${docdir}'
763libdir='${exec_prefix}/lib'
764localedir='${datarootdir}/locale'
765mandir='${datarootdir}/man'
766
767ac_prev=
768ac_dashdash=
769for ac_option
770do
771 # If the previous option needs an argument, assign it.
772 if test -n "$ac_prev"; then
773 eval $ac_prev=\$ac_option
774 ac_prev=
775 continue
776 fi
777
778 case $ac_option in
779 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
780 *) ac_optarg=yes ;;
781 esac
782
783 # Accept the important Cygnus configure options, so we can diagnose typos.
784
785 case $ac_dashdash$ac_option in
786 --)
787 ac_dashdash=yes ;;
788
789 -bindir | --bindir | --bindi | --bind | --bin | --bi)
790 ac_prev=bindir ;;
791 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
792 bindir=$ac_optarg ;;
793
794 -build | --build | --buil | --bui | --bu)
795 ac_prev=build_alias ;;
796 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
797 build_alias=$ac_optarg ;;
798
799 -cache-file | --cache-file | --cache-fil | --cache-fi \
800 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
801 ac_prev=cache_file ;;
802 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
803 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
804 cache_file=$ac_optarg ;;
805
806 --config-cache | -C)
807 cache_file=config.cache ;;
808
809 -datadir | --datadir | --datadi | --datad)
810 ac_prev=datadir ;;
811 -datadir=* | --datadir=* | --datadi=* | --datad=*)
812 datadir=$ac_optarg ;;
813
814 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
815 | --dataroo | --dataro | --datar)
816 ac_prev=datarootdir ;;
817 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
818 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
819 datarootdir=$ac_optarg ;;
820
821 -disable-* | --disable-*)
822 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
823 # Reject names that are not valid shell variable names.
824 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
825 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
826 { (exit 1); exit 1; }; }
827 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
828 eval enable_$ac_feature=no ;;
829
830 -docdir | --docdir | --docdi | --doc | --do)
831 ac_prev=docdir ;;
832 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
833 docdir=$ac_optarg ;;
834
835 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
836 ac_prev=dvidir ;;
837 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
838 dvidir=$ac_optarg ;;
839
840 -enable-* | --enable-*)
841 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
842 # Reject names that are not valid shell variable names.
843 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
844 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
845 { (exit 1); exit 1; }; }
846 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
847 eval enable_$ac_feature=\$ac_optarg ;;
848
849 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
850 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
851 | --exec | --exe | --ex)
852 ac_prev=exec_prefix ;;
853 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
854 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
855 | --exec=* | --exe=* | --ex=*)
856 exec_prefix=$ac_optarg ;;
857
858 -gas | --gas | --ga | --g)
859 # Obsolete; use --with-gas.
860 with_gas=yes ;;
861
862 -help | --help | --hel | --he | -h)
863 ac_init_help=long ;;
864 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
865 ac_init_help=recursive ;;
866 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
867 ac_init_help=short ;;
868
869 -host | --host | --hos | --ho)
870 ac_prev=host_alias ;;
871 -host=* | --host=* | --hos=* | --ho=*)
872 host_alias=$ac_optarg ;;
873
874 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
875 ac_prev=htmldir ;;
876 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
877 | --ht=*)
878 htmldir=$ac_optarg ;;
879
880 -includedir | --includedir | --includedi | --included | --include \
881 | --includ | --inclu | --incl | --inc)
882 ac_prev=includedir ;;
883 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
884 | --includ=* | --inclu=* | --incl=* | --inc=*)
885 includedir=$ac_optarg ;;
886
887 -infodir | --infodir | --infodi | --infod | --info | --inf)
888 ac_prev=infodir ;;
889 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
890 infodir=$ac_optarg ;;
891
892 -libdir | --libdir | --libdi | --libd)
893 ac_prev=libdir ;;
894 -libdir=* | --libdir=* | --libdi=* | --libd=*)
895 libdir=$ac_optarg ;;
896
897 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
898 | --libexe | --libex | --libe)
899 ac_prev=libexecdir ;;
900 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
901 | --libexe=* | --libex=* | --libe=*)
902 libexecdir=$ac_optarg ;;
903
904 -localedir | --localedir | --localedi | --localed | --locale)
905 ac_prev=localedir ;;
906 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
907 localedir=$ac_optarg ;;
908
909 -localstatedir | --localstatedir | --localstatedi | --localstated \
910 | --localstate | --localstat | --localsta | --localst | --locals)
911 ac_prev=localstatedir ;;
912 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
913 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
914 localstatedir=$ac_optarg ;;
915
916 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
917 ac_prev=mandir ;;
918 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
919 mandir=$ac_optarg ;;
920
921 -nfp | --nfp | --nf)
922 # Obsolete; use --without-fp.
923 with_fp=no ;;
924
925 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
926 | --no-cr | --no-c | -n)
927 no_create=yes ;;
928
929 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
930 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
931 no_recursion=yes ;;
932
933 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
934 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
935 | --oldin | --oldi | --old | --ol | --o)
936 ac_prev=oldincludedir ;;
937 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
938 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
939 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
940 oldincludedir=$ac_optarg ;;
941
942 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
943 ac_prev=prefix ;;
944 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
945 prefix=$ac_optarg ;;
946
947 -program-prefix | --program-prefix | --program-prefi | --program-pref \
948 | --program-pre | --program-pr | --program-p)
949 ac_prev=program_prefix ;;
950 -program-prefix=* | --program-prefix=* | --program-prefi=* \
951 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
952 program_prefix=$ac_optarg ;;
953
954 -program-suffix | --program-suffix | --program-suffi | --program-suff \
955 | --program-suf | --program-su | --program-s)
956 ac_prev=program_suffix ;;
957 -program-suffix=* | --program-suffix=* | --program-suffi=* \
958 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
959 program_suffix=$ac_optarg ;;
960
961 -program-transform-name | --program-transform-name \
962 | --program-transform-nam | --program-transform-na \
963 | --program-transform-n | --program-transform- \
964 | --program-transform | --program-transfor \
965 | --program-transfo | --program-transf \
966 | --program-trans | --program-tran \
967 | --progr-tra | --program-tr | --program-t)
968 ac_prev=program_transform_name ;;
969 -program-transform-name=* | --program-transform-name=* \
970 | --program-transform-nam=* | --program-transform-na=* \
971 | --program-transform-n=* | --program-transform-=* \
972 | --program-transform=* | --program-transfor=* \
973 | --program-transfo=* | --program-transf=* \
974 | --program-trans=* | --program-tran=* \
975 | --progr-tra=* | --program-tr=* | --program-t=*)
976 program_transform_name=$ac_optarg ;;
977
978 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
979 ac_prev=pdfdir ;;
980 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
981 pdfdir=$ac_optarg ;;
982
983 -psdir | --psdir | --psdi | --psd | --ps)
984 ac_prev=psdir ;;
985 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
986 psdir=$ac_optarg ;;
987
988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
989 | -silent | --silent | --silen | --sile | --sil)
990 silent=yes ;;
991
992 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
993 ac_prev=sbindir ;;
994 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
995 | --sbi=* | --sb=*)
996 sbindir=$ac_optarg ;;
997
998 -sharedstatedir | --sharedstatedir | --sharedstatedi \
999 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1000 | --sharedst | --shareds | --shared | --share | --shar \
1001 | --sha | --sh)
1002 ac_prev=sharedstatedir ;;
1003 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1004 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1005 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1006 | --sha=* | --sh=*)
1007 sharedstatedir=$ac_optarg ;;
1008
1009 -site | --site | --sit)
1010 ac_prev=site ;;
1011 -site=* | --site=* | --sit=*)
1012 site=$ac_optarg ;;
1013
1014 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1015 ac_prev=srcdir ;;
1016 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1017 srcdir=$ac_optarg ;;
1018
1019 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1020 | --syscon | --sysco | --sysc | --sys | --sy)
1021 ac_prev=sysconfdir ;;
1022 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1023 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1024 sysconfdir=$ac_optarg ;;
1025
1026 -target | --target | --targe | --targ | --tar | --ta | --t)
1027 ac_prev=target_alias ;;
1028 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1029 target_alias=$ac_optarg ;;
1030
1031 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1032 verbose=yes ;;
1033
1034 -version | --version | --versio | --versi | --vers | -V)
1035 ac_init_version=: ;;
1036
1037 -with-* | --with-*)
1038 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1041 { echo "$as_me: error: invalid package name: $ac_package" >&2
1042 { (exit 1); exit 1; }; }
1043 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1044 eval with_$ac_package=\$ac_optarg ;;
1045
1046 -without-* | --without-*)
1047 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1050 { echo "$as_me: error: invalid package name: $ac_package" >&2
1051 { (exit 1); exit 1; }; }
1052 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1053 eval with_$ac_package=no ;;
1054
1055 --x)
1056 # Obsolete; use --with-x.
1057 with_x=yes ;;
1058
1059 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1060 | --x-incl | --x-inc | --x-in | --x-i)
1061 ac_prev=x_includes ;;
1062 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1063 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1064 x_includes=$ac_optarg ;;
1065
1066 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1067 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1068 ac_prev=x_libraries ;;
1069 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1070 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1071 x_libraries=$ac_optarg ;;
1072
1073 -*) { echo "$as_me: error: unrecognized option: $ac_option
1074Try \`$0 --help' for more information." >&2
1075 { (exit 1); exit 1; }; }
1076 ;;
1077
1078 *=*)
1079 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1080 # Reject names that are not valid shell variable names.
1081 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1082 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1083 { (exit 1); exit 1; }; }
1084 eval $ac_envvar=\$ac_optarg
1085 export $ac_envvar ;;
1086
1087 *)
1088 # FIXME: should be removed in autoconf 3.0.
1089 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1090 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1091 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1092 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1093 ;;
1094
1095 esac
1096done
1097
1098if test -n "$ac_prev"; then
1099 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1100 { echo "$as_me: error: missing argument to $ac_option" >&2
1101 { (exit 1); exit 1; }; }
1102fi
1103
1104# Be sure to have absolute directory names.
1105for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1106 datadir sysconfdir sharedstatedir localstatedir includedir \
1107 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1108 libdir localedir mandir
1109do
1110 eval ac_val=\$$ac_var
1111 case $ac_val in
1112 [\\/$]* | ?:[\\/]* ) continue;;
1113 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1114 esac
1115 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1116 { (exit 1); exit 1; }; }
1117done
1118
1119# There might be people who depend on the old broken behavior: `$host'
1120# used to hold the argument of --host etc.
1121# FIXME: To remove some day.
1122build=$build_alias
1123host=$host_alias
1124target=$target_alias
1125
1126# FIXME: To remove some day.
1127if test "x$host_alias" != x; then
1128 if test "x$build_alias" = x; then
1129 cross_compiling=maybe
1130 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1131 If a cross compiler is detected then cross compile mode will be used." >&2
1132 elif test "x$build_alias" != "x$host_alias"; then
1133 cross_compiling=yes
1134 fi
1135fi
1136
1137ac_tool_prefix=
1138test -n "$host_alias" && ac_tool_prefix=$host_alias-
1139
1140test "$silent" = yes && exec 6>/dev/null
1141
1142
1143ac_pwd=`pwd` && test -n "$ac_pwd" &&
1144ac_ls_di=`ls -di .` &&
1145ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1146 { echo "$as_me: error: Working directory cannot be determined" >&2
1147 { (exit 1); exit 1; }; }
1148test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1149 { echo "$as_me: error: pwd does not report name of working directory" >&2
1150 { (exit 1); exit 1; }; }
1151
1152
1153# Find the source files, if location was not specified.
1154if test -z "$srcdir"; then
1155 ac_srcdir_defaulted=yes
1156 # Try the directory containing this script, then the parent directory.
1157 ac_confdir=`$as_dirname -- "$0" ||
1158$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1159 X"$0" : 'X\(//\)[^/]' \| \
1160 X"$0" : 'X\(//\)$' \| \
1161 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1162echo X"$0" |
1163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1164 s//\1/
1165 q
1166 }
1167 /^X\(\/\/\)[^/].*/{
1168 s//\1/
1169 q
1170 }
1171 /^X\(\/\/\)$/{
1172 s//\1/
1173 q
1174 }
1175 /^X\(\/\).*/{
1176 s//\1/
1177 q
1178 }
1179 s/.*/./; q'`
1180 srcdir=$ac_confdir
1181 if test ! -r "$srcdir/$ac_unique_file"; then
1182 srcdir=..
1183 fi
1184else
1185 ac_srcdir_defaulted=no
1186fi
1187if test ! -r "$srcdir/$ac_unique_file"; then
1188 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1189 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1190 { (exit 1); exit 1; }; }
1191fi
1192ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1193ac_abs_confdir=`(
1194 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1195 { (exit 1); exit 1; }; }
1196 pwd)`
1197# When building in place, set srcdir=.
1198if test "$ac_abs_confdir" = "$ac_pwd"; then
1199 srcdir=.
1200fi
1201# Remove unnecessary trailing slashes from srcdir.
1202# Double slashes in file names in object file debugging info
1203# mess up M-x gdb in Emacs.
1204case $srcdir in
1205*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1206esac
1207for ac_var in $ac_precious_vars; do
1208 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1209 eval ac_env_${ac_var}_value=\$${ac_var}
1210 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1211 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1212done
1213
1214#
1215# Report the --help message.
1216#
1217if test "$ac_init_help" = "long"; then
1218 # Omit some internal or obsolete options to make the list less imposing.
1219 # This message is too long to be a string in the A/UX 3.1 sh.
1220 cat <<_ACEOF
1221\`configure' configures rdesktop 1.6.0 to adapt to many kinds of systems.
1222
1223Usage: $0 [OPTION]... [VAR=VALUE]...
1224
1225To assign environment variables (e.g., CC, CFLAGS...), specify them as
1226VAR=VALUE. See below for descriptions of some of the useful variables.
1227
1228Defaults for the options are specified in brackets.
1229
1230Configuration:
1231 -h, --help display this help and exit
1232 --help=short display options specific to this package
1233 --help=recursive display the short help of all the included packages
1234 -V, --version display version information and exit
1235 -q, --quiet, --silent do not print \`checking...' messages
1236 --cache-file=FILE cache test results in FILE [disabled]
1237 -C, --config-cache alias for \`--cache-file=config.cache'
1238 -n, --no-create do not create output files
1239 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1240
1241Installation directories:
1242 --prefix=PREFIX install architecture-independent files in PREFIX
1243 [$ac_default_prefix]
1244 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1245 [PREFIX]
1246
1247By default, \`make install' will install all the files in
1248\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1249an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1250for instance \`--prefix=\$HOME'.
1251
1252For better control, use the options below.
1253
1254Fine tuning of the installation directories:
1255 --bindir=DIR user executables [EPREFIX/bin]
1256 --sbindir=DIR system admin executables [EPREFIX/sbin]
1257 --libexecdir=DIR program executables [EPREFIX/libexec]
1258 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1259 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1260 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1261 --libdir=DIR object code libraries [EPREFIX/lib]
1262 --includedir=DIR C header files [PREFIX/include]
1263 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1264 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1265 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1266 --infodir=DIR info documentation [DATAROOTDIR/info]
1267 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1268 --mandir=DIR man documentation [DATAROOTDIR/man]
1269 --docdir=DIR documentation root [DATAROOTDIR/doc/rdesktop]
1270 --htmldir=DIR html documentation [DOCDIR]
1271 --dvidir=DIR dvi documentation [DOCDIR]
1272 --pdfdir=DIR pdf documentation [DOCDIR]
1273 --psdir=DIR ps documentation [DOCDIR]
1274_ACEOF
1275
1276 cat <<\_ACEOF
1277
1278X features:
1279 --x-includes=DIR X include files are in DIR
1280 --x-libraries=DIR X library files are in DIR
1281
1282System types:
1283 --build=BUILD configure for building on BUILD [guessed]
1284 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1285_ACEOF
1286fi
1287
1288if test -n "$ac_init_help"; then
1289 case $ac_init_help in
1290 short | recursive ) echo "Configuration of rdesktop 1.6.0:";;
1291 esac
1292 cat <<\_ACEOF
1293
1294Optional Features:
1295 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1296 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1297 --enable-static-openssl link OpenSSL statically
1298 --enable-smartcard Enables smart-card support.
1299
1300 --enable-static-libsamplerate link libsamplerate statically
1301 --disable-largefile omit support for large files
1302
1303Optional Packages:
1304 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1305 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1306 --with-x use the X Window System
1307 --with-openssl=DIR look for OpenSSL at DIR/include, DIR/lib
1308 --with-egd-socket=PATH look for Entropy Gathering Daemon socket at PATH
1309 --with-libvncserver-config=CMD use CMD as libvncserver-config
1310 --with-libvncserver make rdp2vnc
1311 --with-sound select sound system ("oss", "sgi", "sun", "alsa" or "libao")
1312 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1313 --with-ipv6 enable IPv6-support
1314 --with-debug enable protocol debugging output
1315 --with-debug-kbd enable debugging of keyboard handling
1316 --with-debug-rdp5 enable debugging of RDP5 code
1317 --with-debug-clipboard enable debugging of clipboard code
1318 --with-debug-sound enable debugging of sound code
1319 --with-debug-channel enable debugging of virtual channel code
1320 --with-debug-seamless enable debugging of SeamlessRDP code
1321 --with-debug-smartcard enable debugging of smart-card code
1322
1323Some influential environment variables:
1324 CC C compiler command
1325 CFLAGS C compiler flags
1326 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1327 nonstandard directory <lib dir>
1328 LIBS libraries to pass to the linker, e.g. -l<library>
1329 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1330 you have headers in a nonstandard directory <include dir>
1331 CPP C preprocessor
1332 XMKMF Path to xmkmf, Makefile generator for X Window System
1333 PKG_CONFIG path to pkg-config utility
1334 PCSCLITE_CFLAGS
1335 C compiler flags for PCSCLITE, overriding pkg-config
1336 PCSCLITE_LIBS
1337 linker flags for PCSCLITE, overriding pkg-config
1338 LIBAO_CFLAGS
1339 C compiler flags for LIBAO, overriding pkg-config
1340 LIBAO_LIBS linker flags for LIBAO, overriding pkg-config
1341 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1342 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1343 LIBSAMPLERATE_CFLAGS
1344 C compiler flags for LIBSAMPLERATE, overriding pkg-config
1345 LIBSAMPLERATE_LIBS
1346 linker flags for LIBSAMPLERATE, overriding pkg-config
1347
1348Use these variables to override the choices made by `configure' or to help
1349it to find libraries and programs with nonstandard names/locations.
1350
1351_ACEOF
1352ac_status=$?
1353fi
1354
1355if test "$ac_init_help" = "recursive"; then
1356 # If there are subdirs, report their specific --help.
1357 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1358 test -d "$ac_dir" || continue
1359 ac_builddir=.
1360
1361case "$ac_dir" in
1362.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1363*)
1364 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1365 # A ".." for each directory in $ac_dir_suffix.
1366 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1367 case $ac_top_builddir_sub in
1368 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1369 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1370 esac ;;
1371esac
1372ac_abs_top_builddir=$ac_pwd
1373ac_abs_builddir=$ac_pwd$ac_dir_suffix
1374# for backward compatibility:
1375ac_top_builddir=$ac_top_build_prefix
1376
1377case $srcdir in
1378 .) # We are building in place.
1379 ac_srcdir=.
1380 ac_top_srcdir=$ac_top_builddir_sub
1381 ac_abs_top_srcdir=$ac_pwd ;;
1382 [\\/]* | ?:[\\/]* ) # Absolute name.
1383 ac_srcdir=$srcdir$ac_dir_suffix;
1384 ac_top_srcdir=$srcdir
1385 ac_abs_top_srcdir=$srcdir ;;
1386 *) # Relative name.
1387 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1388 ac_top_srcdir=$ac_top_build_prefix$srcdir
1389 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1390esac
1391ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1392
1393 cd "$ac_dir" || { ac_status=$?; continue; }
1394 # Check for guested configure.
1395 if test -f "$ac_srcdir/configure.gnu"; then
1396 echo &&
1397 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1398 elif test -f "$ac_srcdir/configure"; then
1399 echo &&
1400 $SHELL "$ac_srcdir/configure" --help=recursive
1401 else
1402 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1403 fi || ac_status=$?
1404 cd "$ac_pwd" || { ac_status=$?; break; }
1405 done
1406fi
1407
1408test -n "$ac_init_help" && exit $ac_status
1409if $ac_init_version; then
1410 cat <<\_ACEOF
1411rdesktop configure 1.6.0
1412generated by GNU Autoconf 2.61
1413
1414Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14152002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1416This configure script is free software; the Free Software Foundation
1417gives unlimited permission to copy, distribute and modify it.
1418_ACEOF
1419 exit
1420fi
1421cat >config.log <<_ACEOF
1422This file contains any messages produced by compilers while
1423running configure, to aid debugging if configure makes a mistake.
1424
1425It was created by rdesktop $as_me 1.6.0, which was
1426generated by GNU Autoconf 2.61. Invocation command line was
1427
1428 $ $0 $@
1429
1430_ACEOF
1431exec 5>>config.log
1432{
1433cat <<_ASUNAME
1434## --------- ##
1435## Platform. ##
1436## --------- ##
1437
1438hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1439uname -m = `(uname -m) 2>/dev/null || echo unknown`
1440uname -r = `(uname -r) 2>/dev/null || echo unknown`
1441uname -s = `(uname -s) 2>/dev/null || echo unknown`
1442uname -v = `(uname -v) 2>/dev/null || echo unknown`
1443
1444/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1445/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1446
1447/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1448/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1449/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1450/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1451/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1452/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1453/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1454
1455_ASUNAME
1456
1457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1458for as_dir in $PATH
1459do
1460 IFS=$as_save_IFS
1461 test -z "$as_dir" && as_dir=.
1462 echo "PATH: $as_dir"
1463done
1464IFS=$as_save_IFS
1465
1466} >&5
1467
1468cat >&5 <<_ACEOF
1469
1470
1471## ----------- ##
1472## Core tests. ##
1473## ----------- ##
1474
1475_ACEOF
1476
1477
1478# Keep a trace of the command line.
1479# Strip out --no-create and --no-recursion so they do not pile up.
1480# Strip out --silent because we don't want to record it for future runs.
1481# Also quote any args containing shell meta-characters.
1482# Make two passes to allow for proper duplicate-argument suppression.
1483ac_configure_args=
1484ac_configure_args0=
1485ac_configure_args1=
1486ac_must_keep_next=false
1487for ac_pass in 1 2
1488do
1489 for ac_arg
1490 do
1491 case $ac_arg in
1492 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1493 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1494 | -silent | --silent | --silen | --sile | --sil)
1495 continue ;;
1496 *\'*)
1497 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1498 esac
1499 case $ac_pass in
1500 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1501 2)
1502 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1503 if test $ac_must_keep_next = true; then
1504 ac_must_keep_next=false # Got value, back to normal.
1505 else
1506 case $ac_arg in
1507 *=* | --config-cache | -C | -disable-* | --disable-* \
1508 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1509 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1510 | -with-* | --with-* | -without-* | --without-* | --x)
1511 case "$ac_configure_args0 " in
1512 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1513 esac
1514 ;;
1515 -* ) ac_must_keep_next=true ;;
1516 esac
1517 fi
1518 ac_configure_args="$ac_configure_args '$ac_arg'"
1519 ;;
1520 esac
1521 done
1522done
1523$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1524$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1525
1526# When interrupted or exit'd, cleanup temporary files, and complete
1527# config.log. We remove comments because anyway the quotes in there
1528# would cause problems or look ugly.
1529# WARNING: Use '\'' to represent an apostrophe within the trap.
1530# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1531trap 'exit_status=$?
1532 # Save into config.log some information that might help in debugging.
1533 {
1534 echo
1535
1536 cat <<\_ASBOX
1537## ---------------- ##
1538## Cache variables. ##
1539## ---------------- ##
1540_ASBOX
1541 echo
1542 # The following way of writing the cache mishandles newlines in values,
1543(
1544 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1545 eval ac_val=\$$ac_var
1546 case $ac_val in #(
1547 *${as_nl}*)
1548 case $ac_var in #(
1549 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1550echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1551 esac
1552 case $ac_var in #(
1553 _ | IFS | as_nl) ;; #(
1554 *) $as_unset $ac_var ;;
1555 esac ;;
1556 esac
1557 done
1558 (set) 2>&1 |
1559 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1560 *${as_nl}ac_space=\ *)
1561 sed -n \
1562 "s/'\''/'\''\\\\'\'''\''/g;
1563 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1564 ;; #(
1565 *)
1566 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1567 ;;
1568 esac |
1569 sort
1570)
1571 echo
1572
1573 cat <<\_ASBOX
1574## ----------------- ##
1575## Output variables. ##
1576## ----------------- ##
1577_ASBOX
1578 echo
1579 for ac_var in $ac_subst_vars
1580 do
1581 eval ac_val=\$$ac_var
1582 case $ac_val in
1583 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1584 esac
1585 echo "$ac_var='\''$ac_val'\''"
1586 done | sort
1587 echo
1588
1589 if test -n "$ac_subst_files"; then
1590 cat <<\_ASBOX
1591## ------------------- ##
1592## File substitutions. ##
1593## ------------------- ##
1594_ASBOX
1595 echo
1596 for ac_var in $ac_subst_files
1597 do
1598 eval ac_val=\$$ac_var
1599 case $ac_val in
1600 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1601 esac
1602 echo "$ac_var='\''$ac_val'\''"
1603 done | sort
1604 echo
1605 fi
1606
1607 if test -s confdefs.h; then
1608 cat <<\_ASBOX
1609## ----------- ##
1610## confdefs.h. ##
1611## ----------- ##
1612_ASBOX
1613 echo
1614 cat confdefs.h
1615 echo
1616 fi
1617 test "$ac_signal" != 0 &&
1618 echo "$as_me: caught signal $ac_signal"
1619 echo "$as_me: exit $exit_status"
1620 } >&5
1621 rm -f core *.core core.conftest.* &&
1622 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1623 exit $exit_status
1624' 0
1625for ac_signal in 1 2 13 15; do
1626 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1627done
1628ac_signal=0
1629
1630# confdefs.h avoids OS command line length limits that DEFS can exceed.
1631rm -f -r conftest* confdefs.h
1632
1633# Predefined preprocessor variables.
1634
1635cat >>confdefs.h <<_ACEOF
1636#define PACKAGE_NAME "$PACKAGE_NAME"
1637_ACEOF
1638
1639
1640cat >>confdefs.h <<_ACEOF
1641#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1642_ACEOF
1643
1644
1645cat >>confdefs.h <<_ACEOF
1646#define PACKAGE_VERSION "$PACKAGE_VERSION"
1647_ACEOF
1648
1649
1650cat >>confdefs.h <<_ACEOF
1651#define PACKAGE_STRING "$PACKAGE_STRING"
1652_ACEOF
1653
1654
1655cat >>confdefs.h <<_ACEOF
1656#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1657_ACEOF
1658
1659
1660# Let the site file select an alternate cache file if it wants to.
1661# Prefer explicitly selected file to automatically selected ones.
1662if test -n "$CONFIG_SITE"; then
1663 set x "$CONFIG_SITE"
1664elif test "x$prefix" != xNONE; then
1665 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1666else
1667 set x "$ac_default_prefix/share/config.site" \
1668 "$ac_default_prefix/etc/config.site"
1669fi
1670shift
1671for ac_site_file
1672do
1673 if test -r "$ac_site_file"; then
1674 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1675echo "$as_me: loading site script $ac_site_file" >&6;}
1676 sed 's/^/| /' "$ac_site_file" >&5
1677 . "$ac_site_file"
1678 fi
1679done
1680
1681if test -r "$cache_file"; then
1682 # Some versions of bash will fail to source /dev/null (special
1683 # files actually), so we avoid doing that.
1684 if test -f "$cache_file"; then
1685 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1686echo "$as_me: loading cache $cache_file" >&6;}
1687 case $cache_file in
1688 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1689 *) . "./$cache_file";;
1690 esac
1691 fi
1692else
1693 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1694echo "$as_me: creating cache $cache_file" >&6;}
1695 >$cache_file
1696fi
1697
1698# Check that the precious variables saved in the cache have kept the same
1699# value.
1700ac_cache_corrupted=false
1701for ac_var in $ac_precious_vars; do
1702 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1703 eval ac_new_set=\$ac_env_${ac_var}_set
1704 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1705 eval ac_new_val=\$ac_env_${ac_var}_value
1706 case $ac_old_set,$ac_new_set in
1707 set,)
1708 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1709echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1710 ac_cache_corrupted=: ;;
1711 ,set)
1712 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1713echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1714 ac_cache_corrupted=: ;;
1715 ,);;
1716 *)
1717 if test "x$ac_old_val" != "x$ac_new_val"; then
1718 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1719echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1720 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1721echo "$as_me: former value: $ac_old_val" >&2;}
1722 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1723echo "$as_me: current value: $ac_new_val" >&2;}
1724 ac_cache_corrupted=:
1725 fi;;
1726 esac
1727 # Pass precious variables to config.status.
1728 if test "$ac_new_set" = set; then
1729 case $ac_new_val in
1730 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1731 *) ac_arg=$ac_var=$ac_new_val ;;
1732 esac
1733 case " $ac_configure_args " in
1734 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1735 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1736 esac
1737 fi
1738done
1739if $ac_cache_corrupted; then
1740 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1741echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1742 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1743echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1744 { (exit 1); exit 1; }; }
1745fi
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771ac_ext=c
1772ac_cpp='$CPP $CPPFLAGS'
1773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1775ac_compiler_gnu=$ac_cv_c_compiler_gnu
1776
1777
1778
1779
1780
1781ac_ext=c
1782ac_cpp='$CPP $CPPFLAGS'
1783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1785ac_compiler_gnu=$ac_cv_c_compiler_gnu
1786if test -n "$ac_tool_prefix"; then
1787 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1788set dummy ${ac_tool_prefix}gcc; ac_word=$2
1789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1791if test "${ac_cv_prog_CC+set}" = set; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1793else
1794 if test -n "$CC"; then
1795 ac_cv_prog_CC="$CC" # Let the user override the test.
1796else
1797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798for as_dir in $PATH
1799do
1800 IFS=$as_save_IFS
1801 test -z "$as_dir" && as_dir=.
1802 for ac_exec_ext in '' $ac_executable_extensions; do
1803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1804 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1806 break 2
1807 fi
1808done
1809done
1810IFS=$as_save_IFS
1811
1812fi
1813fi
1814CC=$ac_cv_prog_CC
1815if test -n "$CC"; then
1816 { echo "$as_me:$LINENO: result: $CC" >&5
1817echo "${ECHO_T}$CC" >&6; }
1818else
1819 { echo "$as_me:$LINENO: result: no" >&5
1820echo "${ECHO_T}no" >&6; }
1821fi
1822
1823
1824fi
1825if test -z "$ac_cv_prog_CC"; then
1826 ac_ct_CC=$CC
1827 # Extract the first word of "gcc", so it can be a program name with args.
1828set dummy gcc; ac_word=$2
1829{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1830echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1831if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1832 echo $ECHO_N "(cached) $ECHO_C" >&6
1833else
1834 if test -n "$ac_ct_CC"; then
1835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1836else
1837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838for as_dir in $PATH
1839do
1840 IFS=$as_save_IFS
1841 test -z "$as_dir" && as_dir=.
1842 for ac_exec_ext in '' $ac_executable_extensions; do
1843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1844 ac_cv_prog_ac_ct_CC="gcc"
1845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846 break 2
1847 fi
1848done
1849done
1850IFS=$as_save_IFS
1851
1852fi
1853fi
1854ac_ct_CC=$ac_cv_prog_ac_ct_CC
1855if test -n "$ac_ct_CC"; then
1856 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1857echo "${ECHO_T}$ac_ct_CC" >&6; }
1858else
1859 { echo "$as_me:$LINENO: result: no" >&5
1860echo "${ECHO_T}no" >&6; }
1861fi
1862
1863 if test "x$ac_ct_CC" = x; then
1864 CC=""
1865 else
1866 case $cross_compiling:$ac_tool_warned in
1867yes:)
1868{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1869whose name does not start with the host triplet. If you think this
1870configuration is useful to you, please write to [email protected]." >&5
1871echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1872whose name does not start with the host triplet. If you think this
1873configuration is useful to you, please write to [email protected]." >&2;}
1874ac_tool_warned=yes ;;
1875esac
1876 CC=$ac_ct_CC
1877 fi
1878else
1879 CC="$ac_cv_prog_CC"
1880fi
1881
1882if test -z "$CC"; then
1883 if test -n "$ac_tool_prefix"; then
1884 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1885set dummy ${ac_tool_prefix}cc; ac_word=$2
1886{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1888if test "${ac_cv_prog_CC+set}" = set; then
1889 echo $ECHO_N "(cached) $ECHO_C" >&6
1890else
1891 if test -n "$CC"; then
1892 ac_cv_prog_CC="$CC" # Let the user override the test.
1893else
1894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895for as_dir in $PATH
1896do
1897 IFS=$as_save_IFS
1898 test -z "$as_dir" && as_dir=.
1899 for ac_exec_ext in '' $ac_executable_extensions; do
1900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1901 ac_cv_prog_CC="${ac_tool_prefix}cc"
1902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1903 break 2
1904 fi
1905done
1906done
1907IFS=$as_save_IFS
1908
1909fi
1910fi
1911CC=$ac_cv_prog_CC
1912if test -n "$CC"; then
1913 { echo "$as_me:$LINENO: result: $CC" >&5
1914echo "${ECHO_T}$CC" >&6; }
1915else
1916 { echo "$as_me:$LINENO: result: no" >&5
1917echo "${ECHO_T}no" >&6; }
1918fi
1919
1920
1921 fi
1922fi
1923if test -z "$CC"; then
1924 # Extract the first word of "cc", so it can be a program name with args.
1925set dummy cc; ac_word=$2
1926{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1928if test "${ac_cv_prog_CC+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1930else
1931 if test -n "$CC"; then
1932 ac_cv_prog_CC="$CC" # Let the user override the test.
1933else
1934 ac_prog_rejected=no
1935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1936for as_dir in $PATH
1937do
1938 IFS=$as_save_IFS
1939 test -z "$as_dir" && as_dir=.
1940 for ac_exec_ext in '' $ac_executable_extensions; do
1941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1942 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1943 ac_prog_rejected=yes
1944 continue
1945 fi
1946 ac_cv_prog_CC="cc"
1947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1948 break 2
1949 fi
1950done
1951done
1952IFS=$as_save_IFS
1953
1954if test $ac_prog_rejected = yes; then
1955 # We found a bogon in the path, so make sure we never use it.
1956 set dummy $ac_cv_prog_CC
1957 shift
1958 if test $# != 0; then
1959 # We chose a different compiler from the bogus one.
1960 # However, it has the same basename, so the bogon will be chosen
1961 # first if we set CC to just the basename; use the full file name.
1962 shift
1963 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1964 fi
1965fi
1966fi
1967fi
1968CC=$ac_cv_prog_CC
1969if test -n "$CC"; then
1970 { echo "$as_me:$LINENO: result: $CC" >&5
1971echo "${ECHO_T}$CC" >&6; }
1972else
1973 { echo "$as_me:$LINENO: result: no" >&5
1974echo "${ECHO_T}no" >&6; }
1975fi
1976
1977
1978fi
1979if test -z "$CC"; then
1980 if test -n "$ac_tool_prefix"; then
1981 for ac_prog in cl.exe
1982 do
1983 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1984set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1985{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1987if test "${ac_cv_prog_CC+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
1990 if test -n "$CC"; then
1991 ac_cv_prog_CC="$CC" # Let the user override the test.
1992else
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 for ac_exec_ext in '' $ac_executable_extensions; do
1999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2000 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 break 2
2003 fi
2004done
2005done
2006IFS=$as_save_IFS
2007
2008fi
2009fi
2010CC=$ac_cv_prog_CC
2011if test -n "$CC"; then
2012 { echo "$as_me:$LINENO: result: $CC" >&5
2013echo "${ECHO_T}$CC" >&6; }
2014else
2015 { echo "$as_me:$LINENO: result: no" >&5
2016echo "${ECHO_T}no" >&6; }
2017fi
2018
2019
2020 test -n "$CC" && break
2021 done
2022fi
2023if test -z "$CC"; then
2024 ac_ct_CC=$CC
2025 for ac_prog in cl.exe
2026do
2027 # Extract the first word of "$ac_prog", so it can be a program name with args.
2028set dummy $ac_prog; ac_word=$2
2029{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2031if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033else
2034 if test -n "$ac_ct_CC"; then
2035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2036else
2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038for as_dir in $PATH
2039do
2040 IFS=$as_save_IFS
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2044 ac_cv_prog_ac_ct_CC="$ac_prog"
2045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 break 2
2047 fi
2048done
2049done
2050IFS=$as_save_IFS
2051
2052fi
2053fi
2054ac_ct_CC=$ac_cv_prog_ac_ct_CC
2055if test -n "$ac_ct_CC"; then
2056 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2057echo "${ECHO_T}$ac_ct_CC" >&6; }
2058else
2059 { echo "$as_me:$LINENO: result: no" >&5
2060echo "${ECHO_T}no" >&6; }
2061fi
2062
2063
2064 test -n "$ac_ct_CC" && break
2065done
2066
2067 if test "x$ac_ct_CC" = x; then
2068 CC=""
2069 else
2070 case $cross_compiling:$ac_tool_warned in
2071yes:)
2072{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2073whose name does not start with the host triplet. If you think this
2074configuration is useful to you, please write to [email protected]." >&5
2075echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2076whose name does not start with the host triplet. If you think this
2077configuration is useful to you, please write to [email protected]." >&2;}
2078ac_tool_warned=yes ;;
2079esac
2080 CC=$ac_ct_CC
2081 fi
2082fi
2083
2084fi
2085
2086
2087test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2088See \`config.log' for more details." >&5
2089echo "$as_me: error: no acceptable C compiler found in \$PATH
2090See \`config.log' for more details." >&2;}
2091 { (exit 1); exit 1; }; }
2092
2093# Provide some information about the compiler.
2094echo "$as_me:$LINENO: checking for C compiler version" >&5
2095ac_compiler=`set X $ac_compile; echo $2`
2096{ (ac_try="$ac_compiler --version >&5"
2097case "(($ac_try" in
2098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099 *) ac_try_echo=$ac_try;;
2100esac
2101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2102 (eval "$ac_compiler --version >&5") 2>&5
2103 ac_status=$?
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }
2106{ (ac_try="$ac_compiler -v >&5"
2107case "(($ac_try" in
2108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109 *) ac_try_echo=$ac_try;;
2110esac
2111eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2112 (eval "$ac_compiler -v >&5") 2>&5
2113 ac_status=$?
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }
2116{ (ac_try="$ac_compiler -V >&5"
2117case "(($ac_try" in
2118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2119 *) ac_try_echo=$ac_try;;
2120esac
2121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2122 (eval "$ac_compiler -V >&5") 2>&5
2123 ac_status=$?
2124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2125 (exit $ac_status); }
2126
2127cat >conftest.$ac_ext <<_ACEOF
2128/* confdefs.h. */
2129_ACEOF
2130cat confdefs.h >>conftest.$ac_ext
2131cat >>conftest.$ac_ext <<_ACEOF
2132/* end confdefs.h. */
2133
2134int
2135main ()
2136{
2137
2138 ;
2139 return 0;
2140}
2141_ACEOF
2142ac_clean_files_save=$ac_clean_files
2143ac_clean_files="$ac_clean_files a.out a.exe b.out"
2144# Try to create an executable without -o first, disregard a.out.
2145# It will help us diagnose broken compilers, and finding out an intuition
2146# of exeext.
2147{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2148echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2149ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2150#
2151# List of possible output files, starting from the most likely.
2152# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2153# only as a last resort. b.out is created by i960 compilers.
2154ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2155#
2156# The IRIX 6 linker writes into existing files which may not be
2157# executable, retaining their permissions. Remove them first so a
2158# subsequent execution test works.
2159ac_rmfiles=
2160for ac_file in $ac_files
2161do
2162 case $ac_file in
2163 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2164 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2165 esac
2166done
2167rm -f $ac_rmfiles
2168
2169if { (ac_try="$ac_link_default"
2170case "(($ac_try" in
2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2172 *) ac_try_echo=$ac_try;;
2173esac
2174eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2175 (eval "$ac_link_default") 2>&5
2176 ac_status=$?
2177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2178 (exit $ac_status); }; then
2179 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2180# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2181# in a Makefile. We should not override ac_cv_exeext if it was cached,
2182# so that the user can short-circuit this test for compilers unknown to
2183# Autoconf.
2184for ac_file in $ac_files ''
2185do
2186 test -f "$ac_file" || continue
2187 case $ac_file in
2188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2189 ;;
2190 [ab].out )
2191 # We found the default executable, but exeext='' is most
2192 # certainly right.
2193 break;;
2194 *.* )
2195 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2196 then :; else
2197 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 fi
2199 # We set ac_cv_exeext here because the later test for it is not
2200 # safe: cross compilers may not add the suffix if given an `-o'
2201 # argument, so we may need to know it at that point already.
2202 # Even if this section looks crufty: it has the advantage of
2203 # actually working.
2204 break;;
2205 * )
2206 break;;
2207 esac
2208done
2209test "$ac_cv_exeext" = no && ac_cv_exeext=
2210
2211else
2212 ac_file=''
2213fi
2214
2215{ echo "$as_me:$LINENO: result: $ac_file" >&5
2216echo "${ECHO_T}$ac_file" >&6; }
2217if test -z "$ac_file"; then
2218 echo "$as_me: failed program was:" >&5
2219sed 's/^/| /' conftest.$ac_ext >&5
2220
2221{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2222See \`config.log' for more details." >&5
2223echo "$as_me: error: C compiler cannot create executables
2224See \`config.log' for more details." >&2;}
2225 { (exit 77); exit 77; }; }
2226fi
2227
2228ac_exeext=$ac_cv_exeext
2229
2230# Check that the compiler produces executables we can run. If not, either
2231# the compiler is broken, or we cross compile.
2232{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2233echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2234# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2235# If not cross compiling, check that we can run a simple program.
2236if test "$cross_compiling" != yes; then
2237 if { ac_try='./$ac_file'
2238 { (case "(($ac_try" in
2239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240 *) ac_try_echo=$ac_try;;
2241esac
2242eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2243 (eval "$ac_try") 2>&5
2244 ac_status=$?
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; }; then
2247 cross_compiling=no
2248 else
2249 if test "$cross_compiling" = maybe; then
2250 cross_compiling=yes
2251 else
2252 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2253If you meant to cross compile, use \`--host'.
2254See \`config.log' for more details." >&5
2255echo "$as_me: error: cannot run C compiled programs.
2256If you meant to cross compile, use \`--host'.
2257See \`config.log' for more details." >&2;}
2258 { (exit 1); exit 1; }; }
2259 fi
2260 fi
2261fi
2262{ echo "$as_me:$LINENO: result: yes" >&5
2263echo "${ECHO_T}yes" >&6; }
2264
2265rm -f a.out a.exe conftest$ac_cv_exeext b.out
2266ac_clean_files=$ac_clean_files_save
2267# Check that the compiler produces executables we can run. If not, either
2268# the compiler is broken, or we cross compile.
2269{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2270echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2271{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2272echo "${ECHO_T}$cross_compiling" >&6; }
2273
2274{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2275echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2276if { (ac_try="$ac_link"
2277case "(($ac_try" in
2278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2279 *) ac_try_echo=$ac_try;;
2280esac
2281eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2282 (eval "$ac_link") 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; then
2286 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2287# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2288# work properly (i.e., refer to `conftest.exe'), while it won't with
2289# `rm'.
2290for ac_file in conftest.exe conftest conftest.*; do
2291 test -f "$ac_file" || continue
2292 case $ac_file in
2293 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2294 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2295 break;;
2296 * ) break;;
2297 esac
2298done
2299else
2300 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2301See \`config.log' for more details." >&5
2302echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2303See \`config.log' for more details." >&2;}
2304 { (exit 1); exit 1; }; }
2305fi
2306
2307rm -f conftest$ac_cv_exeext
2308{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2309echo "${ECHO_T}$ac_cv_exeext" >&6; }
2310
2311rm -f conftest.$ac_ext
2312EXEEXT=$ac_cv_exeext
2313ac_exeext=$EXEEXT
2314{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2315echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2316if test "${ac_cv_objext+set}" = set; then
2317 echo $ECHO_N "(cached) $ECHO_C" >&6
2318else
2319 cat >conftest.$ac_ext <<_ACEOF
2320/* confdefs.h. */
2321_ACEOF
2322cat confdefs.h >>conftest.$ac_ext
2323cat >>conftest.$ac_ext <<_ACEOF
2324/* end confdefs.h. */
2325
2326int
2327main ()
2328{
2329
2330 ;
2331 return 0;
2332}
2333_ACEOF
2334rm -f conftest.o conftest.obj
2335if { (ac_try="$ac_compile"
2336case "(($ac_try" in
2337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2338 *) ac_try_echo=$ac_try;;
2339esac
2340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2341 (eval "$ac_compile") 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; then
2345 for ac_file in conftest.o conftest.obj conftest.*; do
2346 test -f "$ac_file" || continue;
2347 case $ac_file in
2348 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2349 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2350 break;;
2351 esac
2352done
2353else
2354 echo "$as_me: failed program was:" >&5
2355sed 's/^/| /' conftest.$ac_ext >&5
2356
2357{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2358See \`config.log' for more details." >&5
2359echo "$as_me: error: cannot compute suffix of object files: cannot compile
2360See \`config.log' for more details." >&2;}
2361 { (exit 1); exit 1; }; }
2362fi
2363
2364rm -f conftest.$ac_cv_objext conftest.$ac_ext
2365fi
2366{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2367echo "${ECHO_T}$ac_cv_objext" >&6; }
2368OBJEXT=$ac_cv_objext
2369ac_objext=$OBJEXT
2370{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2371echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2372if test "${ac_cv_c_compiler_gnu+set}" = set; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2374else
2375 cat >conftest.$ac_ext <<_ACEOF
2376/* confdefs.h. */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
2380/* end confdefs.h. */
2381
2382int
2383main ()
2384{
2385#ifndef __GNUC__
2386 choke me
2387#endif
2388
2389 ;
2390 return 0;
2391}
2392_ACEOF
2393rm -f conftest.$ac_objext
2394if { (ac_try="$ac_compile"
2395case "(($ac_try" in
2396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2397 *) ac_try_echo=$ac_try;;
2398esac
2399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2400 (eval "$ac_compile") 2>conftest.er1
2401 ac_status=$?
2402 grep -v '^ *+' conftest.er1 >conftest.err
2403 rm -f conftest.er1
2404 cat conftest.err >&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } && {
2407 test -z "$ac_c_werror_flag" ||
2408 test ! -s conftest.err
2409 } && test -s conftest.$ac_objext; then
2410 ac_compiler_gnu=yes
2411else
2412 echo "$as_me: failed program was:" >&5
2413sed 's/^/| /' conftest.$ac_ext >&5
2414
2415 ac_compiler_gnu=no
2416fi
2417
2418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419ac_cv_c_compiler_gnu=$ac_compiler_gnu
2420
2421fi
2422{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2424GCC=`test $ac_compiler_gnu = yes && echo yes`
2425ac_test_CFLAGS=${CFLAGS+set}
2426ac_save_CFLAGS=$CFLAGS
2427{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2429if test "${ac_cv_prog_cc_g+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2431else
2432 ac_save_c_werror_flag=$ac_c_werror_flag
2433 ac_c_werror_flag=yes
2434 ac_cv_prog_cc_g=no
2435 CFLAGS="-g"
2436 cat >conftest.$ac_ext <<_ACEOF
2437/* confdefs.h. */
2438_ACEOF
2439cat confdefs.h >>conftest.$ac_ext
2440cat >>conftest.$ac_ext <<_ACEOF
2441/* end confdefs.h. */
2442
2443int
2444main ()
2445{
2446
2447 ;
2448 return 0;
2449}
2450_ACEOF
2451rm -f conftest.$ac_objext
2452if { (ac_try="$ac_compile"
2453case "(($ac_try" in
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2456esac
2457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_compile") 2>conftest.er1
2459 ac_status=$?
2460 grep -v '^ *+' conftest.er1 >conftest.err
2461 rm -f conftest.er1
2462 cat conftest.err >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } && {
2465 test -z "$ac_c_werror_flag" ||
2466 test ! -s conftest.err
2467 } && test -s conftest.$ac_objext; then
2468 ac_cv_prog_cc_g=yes
2469else
2470 echo "$as_me: failed program was:" >&5
2471sed 's/^/| /' conftest.$ac_ext >&5
2472
2473 CFLAGS=""
2474 cat >conftest.$ac_ext <<_ACEOF
2475/* confdefs.h. */
2476_ACEOF
2477cat confdefs.h >>conftest.$ac_ext
2478cat >>conftest.$ac_ext <<_ACEOF
2479/* end confdefs.h. */
2480
2481int
2482main ()
2483{
2484
2485 ;
2486 return 0;
2487}
2488_ACEOF
2489rm -f conftest.$ac_objext
2490if { (ac_try="$ac_compile"
2491case "(($ac_try" in
2492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2493 *) ac_try_echo=$ac_try;;
2494esac
2495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2496 (eval "$ac_compile") 2>conftest.er1
2497 ac_status=$?
2498 grep -v '^ *+' conftest.er1 >conftest.err
2499 rm -f conftest.er1
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } && {
2503 test -z "$ac_c_werror_flag" ||
2504 test ! -s conftest.err
2505 } && test -s conftest.$ac_objext; then
2506 :
2507else
2508 echo "$as_me: failed program was:" >&5
2509sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 ac_c_werror_flag=$ac_save_c_werror_flag
2512 CFLAGS="-g"
2513 cat >conftest.$ac_ext <<_ACEOF
2514/* confdefs.h. */
2515_ACEOF
2516cat confdefs.h >>conftest.$ac_ext
2517cat >>conftest.$ac_ext <<_ACEOF
2518/* end confdefs.h. */
2519
2520int
2521main ()
2522{
2523
2524 ;
2525 return 0;
2526}
2527_ACEOF
2528rm -f conftest.$ac_objext
2529if { (ac_try="$ac_compile"
2530case "(($ac_try" in
2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532 *) ac_try_echo=$ac_try;;
2533esac
2534eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2535 (eval "$ac_compile") 2>conftest.er1
2536 ac_status=$?
2537 grep -v '^ *+' conftest.er1 >conftest.err
2538 rm -f conftest.er1
2539 cat conftest.err >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); } && {
2542 test -z "$ac_c_werror_flag" ||
2543 test ! -s conftest.err
2544 } && test -s conftest.$ac_objext; then
2545 ac_cv_prog_cc_g=yes
2546else
2547 echo "$as_me: failed program was:" >&5
2548sed 's/^/| /' conftest.$ac_ext >&5
2549
2550
2551fi
2552
2553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554fi
2555
2556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2557fi
2558
2559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2560 ac_c_werror_flag=$ac_save_c_werror_flag
2561fi
2562{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2563echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2564if test "$ac_test_CFLAGS" = set; then
2565 CFLAGS=$ac_save_CFLAGS
2566elif test $ac_cv_prog_cc_g = yes; then
2567 if test "$GCC" = yes; then
2568 CFLAGS="-g -O2"
2569 else
2570 CFLAGS="-g"
2571 fi
2572else
2573 if test "$GCC" = yes; then
2574 CFLAGS="-O2"
2575 else
2576 CFLAGS=
2577 fi
2578fi
2579{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2580echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2581if test "${ac_cv_prog_cc_c89+set}" = set; then
2582 echo $ECHO_N "(cached) $ECHO_C" >&6
2583else
2584 ac_cv_prog_cc_c89=no
2585ac_save_CC=$CC
2586cat >conftest.$ac_ext <<_ACEOF
2587/* confdefs.h. */
2588_ACEOF
2589cat confdefs.h >>conftest.$ac_ext
2590cat >>conftest.$ac_ext <<_ACEOF
2591/* end confdefs.h. */
2592#include <stdarg.h>
2593#include <stdio.h>
2594#include <sys/types.h>
2595#include <sys/stat.h>
2596/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2597struct buf { int x; };
2598FILE * (*rcsopen) (struct buf *, struct stat *, int);
2599static char *e (p, i)
2600 char **p;
2601 int i;
2602{
2603 return p[i];
2604}
2605static char *f (char * (*g) (char **, int), char **p, ...)
2606{
2607 char *s;
2608 va_list v;
2609 va_start (v,p);
2610 s = g (p, va_arg (v,int));
2611 va_end (v);
2612 return s;
2613}
2614
2615/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2616 function prototypes and stuff, but not '\xHH' hex character constants.
2617 These don't provoke an error unfortunately, instead are silently treated
2618 as 'x'. The following induces an error, until -std is added to get
2619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2620 array size at least. It's necessary to write '\x00'==0 to get something
2621 that's true only with -std. */
2622int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2623
2624/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2625 inside strings and character constants. */
2626#define FOO(x) 'x'
2627int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2628
2629int test (int i, double x);
2630struct s1 {int (*f) (int a);};
2631struct s2 {int (*f) (double a);};
2632int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2633int argc;
2634char **argv;
2635int
2636main ()
2637{
2638return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2639 ;
2640 return 0;
2641}
2642_ACEOF
2643for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2645do
2646 CC="$ac_save_CC $ac_arg"
2647 rm -f conftest.$ac_objext
2648if { (ac_try="$ac_compile"
2649case "(($ac_try" in
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2652esac
2653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_compile") 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } && {
2661 test -z "$ac_c_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest.$ac_objext; then
2664 ac_cv_prog_cc_c89=$ac_arg
2665else
2666 echo "$as_me: failed program was:" >&5
2667sed 's/^/| /' conftest.$ac_ext >&5
2668
2669
2670fi
2671
2672rm -f core conftest.err conftest.$ac_objext
2673 test "x$ac_cv_prog_cc_c89" != "xno" && break
2674done
2675rm -f conftest.$ac_ext
2676CC=$ac_save_CC
2677
2678fi
2679# AC_CACHE_VAL
2680case "x$ac_cv_prog_cc_c89" in
2681 x)
2682 { echo "$as_me:$LINENO: result: none needed" >&5
2683echo "${ECHO_T}none needed" >&6; } ;;
2684 xno)
2685 { echo "$as_me:$LINENO: result: unsupported" >&5
2686echo "${ECHO_T}unsupported" >&6; } ;;
2687 *)
2688 CC="$CC $ac_cv_prog_cc_c89"
2689 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2690echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2691esac
2692
2693
2694ac_ext=c
2695ac_cpp='$CPP $CPPFLAGS'
2696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699
2700if test "$GCC" = yes; then
2701 CFLAGS="$CFLAGS -Wall"
2702fi
2703
2704ac_aux_dir=
2705for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2706 if test -f "$ac_dir/install-sh"; then
2707 ac_aux_dir=$ac_dir
2708 ac_install_sh="$ac_aux_dir/install-sh -c"
2709 break
2710 elif test -f "$ac_dir/install.sh"; then
2711 ac_aux_dir=$ac_dir
2712 ac_install_sh="$ac_aux_dir/install.sh -c"
2713 break
2714 elif test -f "$ac_dir/shtool"; then
2715 ac_aux_dir=$ac_dir
2716 ac_install_sh="$ac_aux_dir/shtool install -c"
2717 break
2718 fi
2719done
2720if test -z "$ac_aux_dir"; then
2721 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2722echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2723 { (exit 1); exit 1; }; }
2724fi
2725
2726# These three variables are undocumented and unsupported,
2727# and are intended to be withdrawn in a future Autoconf release.
2728# They can cause serious problems if a builder's source tree is in a directory
2729# whose full name contains unusual characters.
2730ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2731ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2732ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2733
2734
2735# Find a good install program. We prefer a C program (faster),
2736# so one script is as good as another. But avoid the broken or
2737# incompatible versions:
2738# SysV /etc/install, /usr/sbin/install
2739# SunOS /usr/etc/install
2740# IRIX /sbin/install
2741# AIX /bin/install
2742# AmigaOS /C/install, which installs bootblocks on floppy discs
2743# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2744# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2745# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2746# OS/2's system install, which has a completely different semantic
2747# ./install, which can be erroneously created by make from ./install.sh.
2748{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2749echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2750if test -z "$INSTALL"; then
2751if test "${ac_cv_path_install+set}" = set; then
2752 echo $ECHO_N "(cached) $ECHO_C" >&6
2753else
2754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2755for as_dir in $PATH
2756do
2757 IFS=$as_save_IFS
2758 test -z "$as_dir" && as_dir=.
2759 # Account for people who put trailing slashes in PATH elements.
2760case $as_dir/ in
2761 ./ | .// | /cC/* | \
2762 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2763 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2764 /usr/ucb/* ) ;;
2765 *)
2766 # OSF1 and SCO ODT 3.0 have their own names for install.
2767 # Don't use installbsd from OSF since it installs stuff as root
2768 # by default.
2769 for ac_prog in ginstall scoinst install; do
2770 for ac_exec_ext in '' $ac_executable_extensions; do
2771 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2772 if test $ac_prog = install &&
2773 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2774 # AIX install. It has an incompatible calling convention.
2775 :
2776 elif test $ac_prog = install &&
2777 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2778 # program-specific install script used by HP pwplus--don't use.
2779 :
2780 else
2781 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2782 break 3
2783 fi
2784 fi
2785 done
2786 done
2787 ;;
2788esac
2789done
2790IFS=$as_save_IFS
2791
2792
2793fi
2794 if test "${ac_cv_path_install+set}" = set; then
2795 INSTALL=$ac_cv_path_install
2796 else
2797 # As a last resort, use the slow shell script. Don't cache a
2798 # value for INSTALL within a source directory, because that will
2799 # break other packages using the cache if that directory is
2800 # removed, or if the value is a relative name.
2801 INSTALL=$ac_install_sh
2802 fi
2803fi
2804{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2805echo "${ECHO_T}$INSTALL" >&6; }
2806
2807# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2808# It thinks the first close brace ends the variable substitution.
2809test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2810
2811test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2812
2813test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2814
2815ac_ext=c
2816ac_cpp='$CPP $CPPFLAGS'
2817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2819ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820
2821
2822ac_ext=c
2823ac_cpp='$CPP $CPPFLAGS'
2824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2826ac_compiler_gnu=$ac_cv_c_compiler_gnu
2827{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2828echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2829# On Suns, sometimes $CPP names a directory.
2830if test -n "$CPP" && test -d "$CPP"; then
2831 CPP=
2832fi
2833if test -z "$CPP"; then
2834 if test "${ac_cv_prog_CPP+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2836else
2837 # Double quotes because CPP needs to be expanded
2838 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2839 do
2840 ac_preproc_ok=false
2841for ac_c_preproc_warn_flag in '' yes
2842do
2843 # Use a header file that comes with gcc, so configuring glibc
2844 # with a fresh cross-compiler works.
2845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2846 # <limits.h> exists even on freestanding compilers.
2847 # On the NeXT, cc -E runs the code through the compiler's parser,
2848 # not just through cpp. "Syntax error" is here to catch this case.
2849 cat >conftest.$ac_ext <<_ACEOF
2850/* confdefs.h. */
2851_ACEOF
2852cat confdefs.h >>conftest.$ac_ext
2853cat >>conftest.$ac_ext <<_ACEOF
2854/* end confdefs.h. */
2855#ifdef __STDC__
2856# include <limits.h>
2857#else
2858# include <assert.h>
2859#endif
2860 Syntax error
2861_ACEOF
2862if { (ac_try="$ac_cpp conftest.$ac_ext"
2863case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866esac
2867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2869 ac_status=$?
2870 grep -v '^ *+' conftest.er1 >conftest.err
2871 rm -f conftest.er1
2872 cat conftest.err >&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); } >/dev/null && {
2875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2876 test ! -s conftest.err
2877 }; then
2878 :
2879else
2880 echo "$as_me: failed program was:" >&5
2881sed 's/^/| /' conftest.$ac_ext >&5
2882
2883 # Broken: fails on valid input.
2884continue
2885fi
2886
2887rm -f conftest.err conftest.$ac_ext
2888
2889 # OK, works on sane cases. Now check whether nonexistent headers
2890 # can be detected and how.
2891 cat >conftest.$ac_ext <<_ACEOF
2892/* confdefs.h. */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h. */
2897#include <ac_nonexistent.h>
2898_ACEOF
2899if { (ac_try="$ac_cpp conftest.$ac_ext"
2900case "(($ac_try" in
2901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902 *) ac_try_echo=$ac_try;;
2903esac
2904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } >/dev/null && {
2912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2913 test ! -s conftest.err
2914 }; then
2915 # Broken: success on invalid input.
2916continue
2917else
2918 echo "$as_me: failed program was:" >&5
2919sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 # Passes both tests.
2922ac_preproc_ok=:
2923break
2924fi
2925
2926rm -f conftest.err conftest.$ac_ext
2927
2928done
2929# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2930rm -f conftest.err conftest.$ac_ext
2931if $ac_preproc_ok; then
2932 break
2933fi
2934
2935 done
2936 ac_cv_prog_CPP=$CPP
2937
2938fi
2939 CPP=$ac_cv_prog_CPP
2940else
2941 ac_cv_prog_CPP=$CPP
2942fi
2943{ echo "$as_me:$LINENO: result: $CPP" >&5
2944echo "${ECHO_T}$CPP" >&6; }
2945ac_preproc_ok=false
2946for ac_c_preproc_warn_flag in '' yes
2947do
2948 # Use a header file that comes with gcc, so configuring glibc
2949 # with a fresh cross-compiler works.
2950 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2951 # <limits.h> exists even on freestanding compilers.
2952 # On the NeXT, cc -E runs the code through the compiler's parser,
2953 # not just through cpp. "Syntax error" is here to catch this case.
2954 cat >conftest.$ac_ext <<_ACEOF
2955/* confdefs.h. */
2956_ACEOF
2957cat confdefs.h >>conftest.$ac_ext
2958cat >>conftest.$ac_ext <<_ACEOF
2959/* end confdefs.h. */
2960#ifdef __STDC__
2961# include <limits.h>
2962#else
2963# include <assert.h>
2964#endif
2965 Syntax error
2966_ACEOF
2967if { (ac_try="$ac_cpp conftest.$ac_ext"
2968case "(($ac_try" in
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2971esac
2972eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2974 ac_status=$?
2975 grep -v '^ *+' conftest.er1 >conftest.err
2976 rm -f conftest.er1
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } >/dev/null && {
2980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2981 test ! -s conftest.err
2982 }; then
2983 :
2984else
2985 echo "$as_me: failed program was:" >&5
2986sed 's/^/| /' conftest.$ac_ext >&5
2987
2988 # Broken: fails on valid input.
2989continue
2990fi
2991
2992rm -f conftest.err conftest.$ac_ext
2993
2994 # OK, works on sane cases. Now check whether nonexistent headers
2995 # can be detected and how.
2996 cat >conftest.$ac_ext <<_ACEOF
2997/* confdefs.h. */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h. */
3002#include <ac_nonexistent.h>
3003_ACEOF
3004if { (ac_try="$ac_cpp conftest.$ac_ext"
3005case "(($ac_try" in
3006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3008esac
3009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3011 ac_status=$?
3012 grep -v '^ *+' conftest.er1 >conftest.err
3013 rm -f conftest.er1
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } >/dev/null && {
3017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3018 test ! -s conftest.err
3019 }; then
3020 # Broken: success on invalid input.
3021continue
3022else
3023 echo "$as_me: failed program was:" >&5
3024sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 # Passes both tests.
3027ac_preproc_ok=:
3028break
3029fi
3030
3031rm -f conftest.err conftest.$ac_ext
3032
3033done
3034# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3035rm -f conftest.err conftest.$ac_ext
3036if $ac_preproc_ok; then
3037 :
3038else
3039 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3040See \`config.log' for more details." >&5
3041echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3042See \`config.log' for more details." >&2;}
3043 { (exit 1); exit 1; }; }
3044fi
3045
3046ac_ext=c
3047ac_cpp='$CPP $CPPFLAGS'
3048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3050ac_compiler_gnu=$ac_cv_c_compiler_gnu
3051
3052
3053{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3054echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3055if test "${ac_cv_path_GREP+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057else
3058 # Extract the first word of "grep ggrep" to use in msg output
3059if test -z "$GREP"; then
3060set dummy grep ggrep; ac_prog_name=$2
3061if test "${ac_cv_path_GREP+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064 ac_path_GREP_found=false
3065# Loop through the user's path and test for each of PROGNAME-LIST
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3068do
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_prog in grep ggrep; do
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3074 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3075 # Check for GNU ac_path_GREP and select it if it is found.
3076 # Check for GNU $ac_path_GREP
3077case `"$ac_path_GREP" --version 2>&1` in
3078*GNU*)
3079 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3080*)
3081 ac_count=0
3082 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3083 while :
3084 do
3085 cat "conftest.in" "conftest.in" >"conftest.tmp"
3086 mv "conftest.tmp" "conftest.in"
3087 cp "conftest.in" "conftest.nl"
3088 echo 'GREP' >> "conftest.nl"
3089 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3091 ac_count=`expr $ac_count + 1`
3092 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3093 # Best one so far, save it but keep looking for a better one
3094 ac_cv_path_GREP="$ac_path_GREP"
3095 ac_path_GREP_max=$ac_count
3096 fi
3097 # 10*(2^10) chars as input seems more than enough
3098 test $ac_count -gt 10 && break
3099 done
3100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3101esac
3102
3103
3104 $ac_path_GREP_found && break 3
3105 done
3106done
3107
3108done
3109IFS=$as_save_IFS
3110
3111
3112fi
3113
3114GREP="$ac_cv_path_GREP"
3115if test -z "$GREP"; then
3116 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3117echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3118 { (exit 1); exit 1; }; }
3119fi
3120
3121else
3122 ac_cv_path_GREP=$GREP
3123fi
3124
3125
3126fi
3127{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3128echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3129 GREP="$ac_cv_path_GREP"
3130
3131
3132{ echo "$as_me:$LINENO: checking for egrep" >&5
3133echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3134if test "${ac_cv_path_EGREP+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136else
3137 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3138 then ac_cv_path_EGREP="$GREP -E"
3139 else
3140 # Extract the first word of "egrep" to use in msg output
3141if test -z "$EGREP"; then
3142set dummy egrep; ac_prog_name=$2
3143if test "${ac_cv_path_EGREP+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3145else
3146 ac_path_EGREP_found=false
3147# Loop through the user's path and test for each of PROGNAME-LIST
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_prog in egrep; do
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3156 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3157 # Check for GNU ac_path_EGREP and select it if it is found.
3158 # Check for GNU $ac_path_EGREP
3159case `"$ac_path_EGREP" --version 2>&1` in
3160*GNU*)
3161 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3162*)
3163 ac_count=0
3164 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3165 while :
3166 do
3167 cat "conftest.in" "conftest.in" >"conftest.tmp"
3168 mv "conftest.tmp" "conftest.in"
3169 cp "conftest.in" "conftest.nl"
3170 echo 'EGREP' >> "conftest.nl"
3171 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3172 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3173 ac_count=`expr $ac_count + 1`
3174 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3175 # Best one so far, save it but keep looking for a better one
3176 ac_cv_path_EGREP="$ac_path_EGREP"
3177 ac_path_EGREP_max=$ac_count
3178 fi
3179 # 10*(2^10) chars as input seems more than enough
3180 test $ac_count -gt 10 && break
3181 done
3182 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3183esac
3184
3185
3186 $ac_path_EGREP_found && break 3
3187 done
3188done
3189
3190done
3191IFS=$as_save_IFS
3192
3193
3194fi
3195
3196EGREP="$ac_cv_path_EGREP"
3197if test -z "$EGREP"; then
3198 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3199echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3200 { (exit 1); exit 1; }; }
3201fi
3202
3203else
3204 ac_cv_path_EGREP=$EGREP
3205fi
3206
3207
3208 fi
3209fi
3210{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3211echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3212 EGREP="$ac_cv_path_EGREP"
3213
3214
3215{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3216echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3217if test "${ac_cv_header_stdc+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219else
3220 cat >conftest.$ac_ext <<_ACEOF
3221/* confdefs.h. */
3222_ACEOF
3223cat confdefs.h >>conftest.$ac_ext
3224cat >>conftest.$ac_ext <<_ACEOF
3225/* end confdefs.h. */
3226#include <stdlib.h>
3227#include <stdarg.h>
3228#include <string.h>
3229#include <float.h>
3230
3231int
3232main ()
3233{
3234
3235 ;
3236 return 0;
3237}
3238_ACEOF
3239rm -f conftest.$ac_objext
3240if { (ac_try="$ac_compile"
3241case "(($ac_try" in
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3244esac
3245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_compile") 2>conftest.er1
3247 ac_status=$?
3248 grep -v '^ *+' conftest.er1 >conftest.err
3249 rm -f conftest.er1
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } && {
3253 test -z "$ac_c_werror_flag" ||
3254 test ! -s conftest.err
3255 } && test -s conftest.$ac_objext; then
3256 ac_cv_header_stdc=yes
3257else
3258 echo "$as_me: failed program was:" >&5
3259sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 ac_cv_header_stdc=no
3262fi
3263
3264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265
3266if test $ac_cv_header_stdc = yes; then
3267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3268 cat >conftest.$ac_ext <<_ACEOF
3269/* confdefs.h. */
3270_ACEOF
3271cat confdefs.h >>conftest.$ac_ext
3272cat >>conftest.$ac_ext <<_ACEOF
3273/* end confdefs.h. */
3274#include <string.h>
3275
3276_ACEOF
3277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3278 $EGREP "memchr" >/dev/null 2>&1; then
3279 :
3280else
3281 ac_cv_header_stdc=no
3282fi
3283rm -f conftest*
3284
3285fi
3286
3287if test $ac_cv_header_stdc = yes; then
3288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3289 cat >conftest.$ac_ext <<_ACEOF
3290/* confdefs.h. */
3291_ACEOF
3292cat confdefs.h >>conftest.$ac_ext
3293cat >>conftest.$ac_ext <<_ACEOF
3294/* end confdefs.h. */
3295#include <stdlib.h>
3296
3297_ACEOF
3298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3299 $EGREP "free" >/dev/null 2>&1; then
3300 :
3301else
3302 ac_cv_header_stdc=no
3303fi
3304rm -f conftest*
3305
3306fi
3307
3308if test $ac_cv_header_stdc = yes; then
3309 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3310 if test "$cross_compiling" = yes; then
3311 :
3312else
3313 cat >conftest.$ac_ext <<_ACEOF
3314/* confdefs.h. */
3315_ACEOF
3316cat confdefs.h >>conftest.$ac_ext
3317cat >>conftest.$ac_ext <<_ACEOF
3318/* end confdefs.h. */
3319#include <ctype.h>
3320#include <stdlib.h>
3321#if ((' ' & 0x0FF) == 0x020)
3322# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3323# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3324#else
3325# define ISLOWER(c) \
3326 (('a' <= (c) && (c) <= 'i') \
3327 || ('j' <= (c) && (c) <= 'r') \
3328 || ('s' <= (c) && (c) <= 'z'))
3329# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3330#endif
3331
3332#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3333int
3334main ()
3335{
3336 int i;
3337 for (i = 0; i < 256; i++)
3338 if (XOR (islower (i), ISLOWER (i))
3339 || toupper (i) != TOUPPER (i))
3340 return 2;
3341 return 0;
3342}
3343_ACEOF
3344rm -f conftest$ac_exeext
3345if { (ac_try="$ac_link"
3346case "(($ac_try" in
3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348 *) ac_try_echo=$ac_try;;
3349esac
3350eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351 (eval "$ac_link") 2>&5
3352 ac_status=$?
3353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3355 { (case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_try") 2>&5
3361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); }; }; then
3364 :
3365else
3366 echo "$as_me: program exited with status $ac_status" >&5
3367echo "$as_me: failed program was:" >&5
3368sed 's/^/| /' conftest.$ac_ext >&5
3369
3370( exit $ac_status )
3371ac_cv_header_stdc=no
3372fi
3373rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3374fi
3375
3376
3377fi
3378fi
3379{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3380echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3381if test $ac_cv_header_stdc = yes; then
3382
3383cat >>confdefs.h <<\_ACEOF
3384#define STDC_HEADERS 1
3385_ACEOF
3386
3387fi
3388
3389# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3400 inttypes.h stdint.h unistd.h
3401do
3402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3403{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3404echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407else
3408 cat >conftest.$ac_ext <<_ACEOF
3409/* confdefs.h. */
3410_ACEOF
3411cat confdefs.h >>conftest.$ac_ext
3412cat >>conftest.$ac_ext <<_ACEOF
3413/* end confdefs.h. */
3414$ac_includes_default
3415
3416#include <$ac_header>
3417_ACEOF
3418rm -f conftest.$ac_objext
3419if { (ac_try="$ac_compile"
3420case "(($ac_try" in
3421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3423esac
3424eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3425 (eval "$ac_compile") 2>conftest.er1
3426 ac_status=$?
3427 grep -v '^ *+' conftest.er1 >conftest.err
3428 rm -f conftest.er1
3429 cat conftest.err >&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } && {
3432 test -z "$ac_c_werror_flag" ||
3433 test ! -s conftest.err
3434 } && test -s conftest.$ac_objext; then
3435 eval "$as_ac_Header=yes"
3436else
3437 echo "$as_me: failed program was:" >&5
3438sed 's/^/| /' conftest.$ac_ext >&5
3439
3440 eval "$as_ac_Header=no"
3441fi
3442
3443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3444fi
3445ac_res=`eval echo '${'$as_ac_Header'}'`
3446 { echo "$as_me:$LINENO: result: $ac_res" >&5
3447echo "${ECHO_T}$ac_res" >&6; }
3448if test `eval echo '${'$as_ac_Header'}'` = yes; then
3449 cat >>confdefs.h <<_ACEOF
3450#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3451_ACEOF
3452
3453fi
3454
3455done
3456
3457
3458{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3459echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
3460if test "${ac_cv_c_bigendian+set}" = set; then
3461 echo $ECHO_N "(cached) $ECHO_C" >&6
3462else
3463 # See if sys/param.h defines the BYTE_ORDER macro.
3464cat >conftest.$ac_ext <<_ACEOF
3465/* confdefs.h. */
3466_ACEOF
3467cat confdefs.h >>conftest.$ac_ext
3468cat >>conftest.$ac_ext <<_ACEOF
3469/* end confdefs.h. */
3470#include <sys/types.h>
3471#include <sys/param.h>
3472
3473int
3474main ()
3475{
3476#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
3477 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
3478 bogus endian macros
3479#endif
3480
3481 ;
3482 return 0;
3483}
3484_ACEOF
3485rm -f conftest.$ac_objext
3486if { (ac_try="$ac_compile"
3487case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490esac
3491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_compile") 2>conftest.er1
3493 ac_status=$?
3494 grep -v '^ *+' conftest.er1 >conftest.err
3495 rm -f conftest.er1
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } && {
3499 test -z "$ac_c_werror_flag" ||
3500 test ! -s conftest.err
3501 } && test -s conftest.$ac_objext; then
3502 # It does; now see whether it defined to BIG_ENDIAN or not.
3503cat >conftest.$ac_ext <<_ACEOF
3504/* confdefs.h. */
3505_ACEOF
3506cat confdefs.h >>conftest.$ac_ext
3507cat >>conftest.$ac_ext <<_ACEOF
3508/* end confdefs.h. */
3509#include <sys/types.h>
3510#include <sys/param.h>
3511
3512int
3513main ()
3514{
3515#if BYTE_ORDER != BIG_ENDIAN
3516 not big endian
3517#endif
3518
3519 ;
3520 return 0;
3521}
3522_ACEOF
3523rm -f conftest.$ac_objext
3524if { (ac_try="$ac_compile"
3525case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528esac
3529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530 (eval "$ac_compile") 2>conftest.er1
3531 ac_status=$?
3532 grep -v '^ *+' conftest.er1 >conftest.err
3533 rm -f conftest.er1
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } && {
3537 test -z "$ac_c_werror_flag" ||
3538 test ! -s conftest.err
3539 } && test -s conftest.$ac_objext; then
3540 ac_cv_c_bigendian=yes
3541else
3542 echo "$as_me: failed program was:" >&5
3543sed 's/^/| /' conftest.$ac_ext >&5
3544
3545 ac_cv_c_bigendian=no
3546fi
3547
3548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3549else
3550 echo "$as_me: failed program was:" >&5
3551sed 's/^/| /' conftest.$ac_ext >&5
3552
3553 # It does not; compile a test program.
3554if test "$cross_compiling" = yes; then
3555 # try to guess the endianness by grepping values into an object file
3556 ac_cv_c_bigendian=unknown
3557 cat >conftest.$ac_ext <<_ACEOF
3558/* confdefs.h. */
3559_ACEOF
3560cat confdefs.h >>conftest.$ac_ext
3561cat >>conftest.$ac_ext <<_ACEOF
3562/* end confdefs.h. */
3563short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3564short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3565void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3566short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3567short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3568void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3569int
3570main ()
3571{
3572 _ascii (); _ebcdic ();
3573 ;
3574 return 0;
3575}
3576_ACEOF
3577rm -f conftest.$ac_objext
3578if { (ac_try="$ac_compile"
3579case "(($ac_try" in
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3582esac
3583eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_compile") 2>conftest.er1
3585 ac_status=$?
3586 grep -v '^ *+' conftest.er1 >conftest.err
3587 rm -f conftest.er1
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } && {
3591 test -z "$ac_c_werror_flag" ||
3592 test ! -s conftest.err
3593 } && test -s conftest.$ac_objext; then
3594 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3595 ac_cv_c_bigendian=yes
3596fi
3597if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3598 if test "$ac_cv_c_bigendian" = unknown; then
3599 ac_cv_c_bigendian=no
3600 else
3601 # finding both strings is unlikely to happen, but who knows?
3602 ac_cv_c_bigendian=unknown
3603 fi
3604fi
3605else
3606 echo "$as_me: failed program was:" >&5
3607sed 's/^/| /' conftest.$ac_ext >&5
3608
3609
3610fi
3611
3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3613else
3614 cat >conftest.$ac_ext <<_ACEOF
3615/* confdefs.h. */
3616_ACEOF
3617cat confdefs.h >>conftest.$ac_ext
3618cat >>conftest.$ac_ext <<_ACEOF
3619/* end confdefs.h. */
3620$ac_includes_default
3621int
3622main ()
3623{
3624
3625 /* Are we little or big endian? From Harbison&Steele. */
3626 union
3627 {
3628 long int l;
3629 char c[sizeof (long int)];
3630 } u;
3631 u.l = 1;
3632 return u.c[sizeof (long int) - 1] == 1;
3633
3634 ;
3635 return 0;
3636}
3637_ACEOF
3638rm -f conftest$ac_exeext
3639if { (ac_try="$ac_link"
3640case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643esac
3644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3645 (eval "$ac_link") 2>&5
3646 ac_status=$?
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3649 { (case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3652esac
3653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654 (eval "$ac_try") 2>&5
3655 ac_status=$?
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; }; then
3658 ac_cv_c_bigendian=no
3659else
3660 echo "$as_me: program exited with status $ac_status" >&5
3661echo "$as_me: failed program was:" >&5
3662sed 's/^/| /' conftest.$ac_ext >&5
3663
3664( exit $ac_status )
3665ac_cv_c_bigendian=yes
3666fi
3667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3668fi
3669
3670
3671fi
3672
3673rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3674fi
3675{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3676echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
3677case $ac_cv_c_bigendian in
3678 yes)
3679 cat >>confdefs.h <<\_ACEOF
3680#define B_ENDIAN 1
3681_ACEOF
3682 ;;
3683 no)
3684 cat >>confdefs.h <<\_ACEOF
3685#define L_ENDIAN 1
3686_ACEOF
3687 ;;
3688 *)
3689 { { echo "$as_me:$LINENO: error: unknown endianness
3690presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3691echo "$as_me: error: unknown endianness
3692presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3693 { (exit 1); exit 1; }; } ;;
3694esac
3695
3696{ echo "$as_me:$LINENO: checking for X" >&5
3697echo $ECHO_N "checking for X... $ECHO_C" >&6; }
3698
3699
3700# Check whether --with-x was given.
3701if test "${with_x+set}" = set; then
3702 withval=$with_x;
3703fi
3704
3705# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3706if test "x$with_x" = xno; then
3707 # The user explicitly disabled X.
3708 have_x=disabled
3709else
3710 case $x_includes,$x_libraries in #(
3711 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3712echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3713 { (exit 1); exit 1; }; };; #(
3714 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3715 echo $ECHO_N "(cached) $ECHO_C" >&6
3716else
3717 # One or both of the vars are not set, and there is no cached value.
3718ac_x_includes=no ac_x_libraries=no
3719rm -f -r conftest.dir
3720if mkdir conftest.dir; then
3721 cd conftest.dir
3722 cat >Imakefile <<'_ACEOF'
3723incroot:
3724 @echo incroot='${INCROOT}'
3725usrlibdir:
3726 @echo usrlibdir='${USRLIBDIR}'
3727libdir:
3728 @echo libdir='${LIBDIR}'
3729_ACEOF
3730 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3731 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3732 for ac_var in incroot usrlibdir libdir; do
3733 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3734 done
3735 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3736 for ac_extension in a so sl; do
3737 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3738 test -f "$ac_im_libdir/libX11.$ac_extension"; then
3739 ac_im_usrlibdir=$ac_im_libdir; break
3740 fi
3741 done
3742 # Screen out bogus values from the imake configuration. They are
3743 # bogus both because they are the default anyway, and because
3744 # using them would break gcc on systems where it needs fixed includes.
3745 case $ac_im_incroot in
3746 /usr/include) ac_x_includes= ;;
3747 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3748 esac
3749 case $ac_im_usrlibdir in
3750 /usr/lib | /lib) ;;
3751 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3752 esac
3753 fi
3754 cd ..
3755 rm -f -r conftest.dir
3756fi
3757
3758# Standard set of common directories for X headers.
3759# Check X11 before X11Rn because it is often a symlink to the current release.
3760ac_x_header_dirs='
3761/usr/X11/include
3762/usr/X11R6/include
3763/usr/X11R5/include
3764/usr/X11R4/include
3765
3766/usr/include/X11
3767/usr/include/X11R6
3768/usr/include/X11R5
3769/usr/include/X11R4
3770
3771/usr/local/X11/include
3772/usr/local/X11R6/include
3773/usr/local/X11R5/include
3774/usr/local/X11R4/include
3775
3776/usr/local/include/X11
3777/usr/local/include/X11R6
3778/usr/local/include/X11R5
3779/usr/local/include/X11R4
3780
3781/usr/X386/include
3782/usr/x386/include
3783/usr/XFree86/include/X11
3784
3785/usr/include
3786/usr/local/include
3787/usr/unsupported/include
3788/usr/athena/include
3789/usr/local/x11r5/include
3790/usr/lpp/Xamples/include
3791
3792/usr/openwin/include
3793/usr/openwin/share/include'
3794
3795if test "$ac_x_includes" = no; then
3796 # Guess where to find include files, by looking for Xlib.h.
3797 # First, try using that file with no special directory specified.
3798 cat >conftest.$ac_ext <<_ACEOF
3799/* confdefs.h. */
3800_ACEOF
3801cat confdefs.h >>conftest.$ac_ext
3802cat >>conftest.$ac_ext <<_ACEOF
3803/* end confdefs.h. */
3804#include <X11/Xlib.h>
3805_ACEOF
3806if { (ac_try="$ac_cpp conftest.$ac_ext"
3807case "(($ac_try" in
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3810esac
3811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } >/dev/null && {
3819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3821 }; then
3822 # We can compile using X headers with no special include directory.
3823ac_x_includes=
3824else
3825 echo "$as_me: failed program was:" >&5
3826sed 's/^/| /' conftest.$ac_ext >&5
3827
3828 for ac_dir in $ac_x_header_dirs; do
3829 if test -r "$ac_dir/X11/Xlib.h"; then
3830 ac_x_includes=$ac_dir
3831 break
3832 fi
3833done
3834fi
3835
3836rm -f conftest.err conftest.$ac_ext
3837fi # $ac_x_includes = no
3838
3839if test "$ac_x_libraries" = no; then
3840 # Check for the libraries.
3841 # See if we find them without any special options.
3842 # Don't add to $LIBS permanently.
3843 ac_save_LIBS=$LIBS
3844 LIBS="-lX11 $LIBS"
3845 cat >conftest.$ac_ext <<_ACEOF
3846/* confdefs.h. */
3847_ACEOF
3848cat confdefs.h >>conftest.$ac_ext
3849cat >>conftest.$ac_ext <<_ACEOF
3850/* end confdefs.h. */
3851#include <X11/Xlib.h>
3852int
3853main ()
3854{
3855XrmInitialize ()
3856 ;
3857 return 0;
3858}
3859_ACEOF
3860rm -f conftest.$ac_objext conftest$ac_exeext
3861if { (ac_try="$ac_link"
3862case "(($ac_try" in
3863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864 *) ac_try_echo=$ac_try;;
3865esac
3866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3867 (eval "$ac_link") 2>conftest.er1
3868 ac_status=$?
3869 grep -v '^ *+' conftest.er1 >conftest.err
3870 rm -f conftest.er1
3871 cat conftest.err >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } && {
3874 test -z "$ac_c_werror_flag" ||
3875 test ! -s conftest.err
3876 } && test -s conftest$ac_exeext &&
3877 $as_test_x conftest$ac_exeext; then
3878 LIBS=$ac_save_LIBS
3879# We can link X programs with no special library path.
3880ac_x_libraries=
3881else
3882 echo "$as_me: failed program was:" >&5
3883sed 's/^/| /' conftest.$ac_ext >&5
3884
3885 LIBS=$ac_save_LIBS
3886for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3887do
3888 # Don't even attempt the hair of trying to link an X program!
3889 for ac_extension in a so sl; do
3890 if test -r "$ac_dir/libX11.$ac_extension"; then
3891 ac_x_libraries=$ac_dir
3892 break 2
3893 fi
3894 done
3895done
3896fi
3897
3898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3899 conftest$ac_exeext conftest.$ac_ext
3900fi # $ac_x_libraries = no
3901
3902case $ac_x_includes,$ac_x_libraries in #(
3903 no,* | *,no | *\'*)
3904 # Didn't find X, or a directory has "'" in its name.
3905 ac_cv_have_x="have_x=no";; #(
3906 *)
3907 # Record where we found X for the cache.
3908 ac_cv_have_x="have_x=yes\
3909 ac_x_includes='$ac_x_includes'\
3910 ac_x_libraries='$ac_x_libraries'"
3911esac
3912fi
3913;; #(
3914 *) have_x=yes;;
3915 esac
3916 eval "$ac_cv_have_x"
3917fi # $with_x != no
3918
3919if test "$have_x" != yes; then
3920 { echo "$as_me:$LINENO: result: $have_x" >&5
3921echo "${ECHO_T}$have_x" >&6; }
3922 no_x=yes
3923else
3924 # If each of the values was on the command line, it overrides each guess.
3925 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3926 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3927 # Update the cache value to reflect the command line values.
3928 ac_cv_have_x="have_x=yes\
3929 ac_x_includes='$x_includes'\
3930 ac_x_libraries='$x_libraries'"
3931 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3932echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3933fi
3934
3935if test "$no_x" = yes; then
3936 # Not all programs may use this symbol, but it does not hurt to define it.
3937
3938cat >>confdefs.h <<\_ACEOF
3939#define X_DISPLAY_MISSING 1
3940_ACEOF
3941
3942 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3943else
3944 if test -n "$x_includes"; then
3945 X_CFLAGS="$X_CFLAGS -I$x_includes"
3946 fi
3947
3948 # It would also be nice to do this for all -L options, not just this one.
3949 if test -n "$x_libraries"; then
3950 X_LIBS="$X_LIBS -L$x_libraries"
3951 # For Solaris; some versions of Sun CC require a space after -R and
3952 # others require no space. Words are not sufficient . . . .
3953 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3954echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3955 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3956 ac_xsave_c_werror_flag=$ac_c_werror_flag
3957 ac_c_werror_flag=yes
3958 cat >conftest.$ac_ext <<_ACEOF
3959/* confdefs.h. */
3960_ACEOF
3961cat confdefs.h >>conftest.$ac_ext
3962cat >>conftest.$ac_ext <<_ACEOF
3963/* end confdefs.h. */
3964
3965int
3966main ()
3967{
3968
3969 ;
3970 return 0;
3971}
3972_ACEOF
3973rm -f conftest.$ac_objext conftest$ac_exeext
3974if { (ac_try="$ac_link"
3975case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978esac
3979eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980 (eval "$ac_link") 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } && {
3987 test -z "$ac_c_werror_flag" ||
3988 test ! -s conftest.err
3989 } && test -s conftest$ac_exeext &&
3990 $as_test_x conftest$ac_exeext; then
3991 { echo "$as_me:$LINENO: result: no" >&5
3992echo "${ECHO_T}no" >&6; }
3993 X_LIBS="$X_LIBS -R$x_libraries"
3994else
3995 echo "$as_me: failed program was:" >&5
3996sed 's/^/| /' conftest.$ac_ext >&5
3997
3998 LIBS="$ac_xsave_LIBS -R $x_libraries"
3999 cat >conftest.$ac_ext <<_ACEOF
4000/* confdefs.h. */
4001_ACEOF
4002cat confdefs.h >>conftest.$ac_ext
4003cat >>conftest.$ac_ext <<_ACEOF
4004/* end confdefs.h. */
4005
4006int
4007main ()
4008{
4009
4010 ;
4011 return 0;
4012}
4013_ACEOF
4014rm -f conftest.$ac_objext conftest$ac_exeext
4015if { (ac_try="$ac_link"
4016case "(($ac_try" in
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4019esac
4020eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_link") 2>conftest.er1
4022 ac_status=$?
4023 grep -v '^ *+' conftest.er1 >conftest.err
4024 rm -f conftest.er1
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest$ac_exeext &&
4031 $as_test_x conftest$ac_exeext; then
4032 { echo "$as_me:$LINENO: result: yes" >&5
4033echo "${ECHO_T}yes" >&6; }
4034 X_LIBS="$X_LIBS -R $x_libraries"
4035else
4036 echo "$as_me: failed program was:" >&5
4037sed 's/^/| /' conftest.$ac_ext >&5
4038
4039 { echo "$as_me:$LINENO: result: neither works" >&5
4040echo "${ECHO_T}neither works" >&6; }
4041fi
4042
4043rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4044 conftest$ac_exeext conftest.$ac_ext
4045fi
4046
4047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4048 conftest$ac_exeext conftest.$ac_ext
4049 ac_c_werror_flag=$ac_xsave_c_werror_flag
4050 LIBS=$ac_xsave_LIBS
4051 fi
4052
4053 # Check for system-dependent libraries X programs must link with.
4054 # Do this before checking for the system-independent R6 libraries
4055 # (-lICE), since we may need -lsocket or whatever for X linking.
4056
4057 if test "$ISC" = yes; then
4058 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4059 else
4060 # Martyn Johnson says this is needed for Ultrix, if the X
4061 # libraries were built with DECnet support. And Karl Berry says
4062 # the Alpha needs dnet_stub (dnet does not exist).
4063 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4064 cat >conftest.$ac_ext <<_ACEOF
4065/* confdefs.h. */
4066_ACEOF
4067cat confdefs.h >>conftest.$ac_ext
4068cat >>conftest.$ac_ext <<_ACEOF
4069/* end confdefs.h. */
4070
4071/* Override any GCC internal prototype to avoid an error.
4072 Use char because int might match the return type of a GCC
4073 builtin and then its argument prototype would still apply. */
4074#ifdef __cplusplus
4075extern "C"
4076#endif
4077char XOpenDisplay ();
4078int
4079main ()
4080{
4081return XOpenDisplay ();
4082 ;
4083 return 0;
4084}
4085_ACEOF
4086rm -f conftest.$ac_objext conftest$ac_exeext
4087if { (ac_try="$ac_link"
4088case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091esac
4092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4093 (eval "$ac_link") 2>conftest.er1
4094 ac_status=$?
4095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } && {
4100 test -z "$ac_c_werror_flag" ||
4101 test ! -s conftest.err
4102 } && test -s conftest$ac_exeext &&
4103 $as_test_x conftest$ac_exeext; then
4104 :
4105else
4106 echo "$as_me: failed program was:" >&5
4107sed 's/^/| /' conftest.$ac_ext >&5
4108
4109 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4110echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
4111if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114 ac_check_lib_save_LIBS=$LIBS
4115LIBS="-ldnet $LIBS"
4116cat >conftest.$ac_ext <<_ACEOF
4117/* confdefs.h. */
4118_ACEOF
4119cat confdefs.h >>conftest.$ac_ext
4120cat >>conftest.$ac_ext <<_ACEOF
4121/* end confdefs.h. */
4122
4123/* Override any GCC internal prototype to avoid an error.
4124 Use char because int might match the return type of a GCC
4125 builtin and then its argument prototype would still apply. */
4126#ifdef __cplusplus
4127extern "C"
4128#endif
4129char dnet_ntoa ();
4130int
4131main ()
4132{
4133return dnet_ntoa ();
4134 ;
4135 return 0;
4136}
4137_ACEOF
4138rm -f conftest.$ac_objext conftest$ac_exeext
4139if { (ac_try="$ac_link"
4140case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143esac
4144eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_link") 2>conftest.er1
4146 ac_status=$?
4147 grep -v '^ *+' conftest.er1 >conftest.err
4148 rm -f conftest.er1
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } && {
4152 test -z "$ac_c_werror_flag" ||
4153 test ! -s conftest.err
4154 } && test -s conftest$ac_exeext &&
4155 $as_test_x conftest$ac_exeext; then
4156 ac_cv_lib_dnet_dnet_ntoa=yes
4157else
4158 echo "$as_me: failed program was:" >&5
4159sed 's/^/| /' conftest.$ac_ext >&5
4160
4161 ac_cv_lib_dnet_dnet_ntoa=no
4162fi
4163
4164rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4165 conftest$ac_exeext conftest.$ac_ext
4166LIBS=$ac_check_lib_save_LIBS
4167fi
4168{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4169echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4170if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4171 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4172fi
4173
4174 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4175 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4176echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
4177if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179else
4180 ac_check_lib_save_LIBS=$LIBS
4181LIBS="-ldnet_stub $LIBS"
4182cat >conftest.$ac_ext <<_ACEOF
4183/* confdefs.h. */
4184_ACEOF
4185cat confdefs.h >>conftest.$ac_ext
4186cat >>conftest.$ac_ext <<_ACEOF
4187/* end confdefs.h. */
4188
4189/* Override any GCC internal prototype to avoid an error.
4190 Use char because int might match the return type of a GCC
4191 builtin and then its argument prototype would still apply. */
4192#ifdef __cplusplus
4193extern "C"
4194#endif
4195char dnet_ntoa ();
4196int
4197main ()
4198{
4199return dnet_ntoa ();
4200 ;
4201 return 0;
4202}
4203_ACEOF
4204rm -f conftest.$ac_objext conftest$ac_exeext
4205if { (ac_try="$ac_link"
4206case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209esac
4210eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4211 (eval "$ac_link") 2>conftest.er1
4212 ac_status=$?
4213 grep -v '^ *+' conftest.er1 >conftest.err
4214 rm -f conftest.er1
4215 cat conftest.err >&5
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); } && {
4218 test -z "$ac_c_werror_flag" ||
4219 test ! -s conftest.err
4220 } && test -s conftest$ac_exeext &&
4221 $as_test_x conftest$ac_exeext; then
4222 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4223else
4224 echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4227 ac_cv_lib_dnet_stub_dnet_ntoa=no
4228fi
4229
4230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4231 conftest$ac_exeext conftest.$ac_ext
4232LIBS=$ac_check_lib_save_LIBS
4233fi
4234{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4235echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4236if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4237 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4238fi
4239
4240 fi
4241fi
4242
4243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4244 conftest$ac_exeext conftest.$ac_ext
4245 LIBS="$ac_xsave_LIBS"
4246
4247 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
4248 # to get the SysV transport functions.
4249 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4250 # needs -lnsl.
4251 # The nsl library prevents programs from opening the X display
4252 # on Irix 5.2, according to T.E. Dickey.
4253 # The functions gethostbyname, getservbyname, and inet_addr are
4254 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4255 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4256echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4257if test "${ac_cv_func_gethostbyname+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259else
4260 cat >conftest.$ac_ext <<_ACEOF
4261/* confdefs.h. */
4262_ACEOF
4263cat confdefs.h >>conftest.$ac_ext
4264cat >>conftest.$ac_ext <<_ACEOF
4265/* end confdefs.h. */
4266/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4268#define gethostbyname innocuous_gethostbyname
4269
4270/* System header to define __stub macros and hopefully few prototypes,
4271 which can conflict with char gethostbyname (); below.
4272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4273 <limits.h> exists even on freestanding compilers. */
4274
4275#ifdef __STDC__
4276# include <limits.h>
4277#else
4278# include <assert.h>
4279#endif
4280
4281#undef gethostbyname
4282
4283/* Override any GCC internal prototype to avoid an error.
4284 Use char because int might match the return type of a GCC
4285 builtin and then its argument prototype would still apply. */
4286#ifdef __cplusplus
4287extern "C"
4288#endif
4289char gethostbyname ();
4290/* The GNU C library defines this for functions which it implements
4291 to always fail with ENOSYS. Some functions are actually named
4292 something starting with __ and the normal name is an alias. */
4293#if defined __stub_gethostbyname || defined __stub___gethostbyname
4294choke me
4295#endif
4296
4297int
4298main ()
4299{
4300return gethostbyname ();
4301 ;
4302 return 0;
4303}
4304_ACEOF
4305rm -f conftest.$ac_objext conftest$ac_exeext
4306if { (ac_try="$ac_link"
4307case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310esac
4311eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_link") 2>conftest.er1
4313 ac_status=$?
4314 grep -v '^ *+' conftest.er1 >conftest.err
4315 rm -f conftest.er1
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } && {
4319 test -z "$ac_c_werror_flag" ||
4320 test ! -s conftest.err
4321 } && test -s conftest$ac_exeext &&
4322 $as_test_x conftest$ac_exeext; then
4323 ac_cv_func_gethostbyname=yes
4324else
4325 echo "$as_me: failed program was:" >&5
4326sed 's/^/| /' conftest.$ac_ext >&5
4327
4328 ac_cv_func_gethostbyname=no
4329fi
4330
4331rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4332 conftest$ac_exeext conftest.$ac_ext
4333fi
4334{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4335echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4336
4337 if test $ac_cv_func_gethostbyname = no; then
4338 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4339echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4340if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342else
4343 ac_check_lib_save_LIBS=$LIBS
4344LIBS="-lnsl $LIBS"
4345cat >conftest.$ac_ext <<_ACEOF
4346/* confdefs.h. */
4347_ACEOF
4348cat confdefs.h >>conftest.$ac_ext
4349cat >>conftest.$ac_ext <<_ACEOF
4350/* end confdefs.h. */
4351
4352/* Override any GCC internal prototype to avoid an error.
4353 Use char because int might match the return type of a GCC
4354 builtin and then its argument prototype would still apply. */
4355#ifdef __cplusplus
4356extern "C"
4357#endif
4358char gethostbyname ();
4359int
4360main ()
4361{
4362return gethostbyname ();
4363 ;
4364 return 0;
4365}
4366_ACEOF
4367rm -f conftest.$ac_objext conftest$ac_exeext
4368if { (ac_try="$ac_link"
4369case "(($ac_try" in
4370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371 *) ac_try_echo=$ac_try;;
4372esac
4373eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4374 (eval "$ac_link") 2>conftest.er1
4375 ac_status=$?
4376 grep -v '^ *+' conftest.er1 >conftest.err
4377 rm -f conftest.er1
4378 cat conftest.err >&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); } && {
4381 test -z "$ac_c_werror_flag" ||
4382 test ! -s conftest.err
4383 } && test -s conftest$ac_exeext &&
4384 $as_test_x conftest$ac_exeext; then
4385 ac_cv_lib_nsl_gethostbyname=yes
4386else
4387 echo "$as_me: failed program was:" >&5
4388sed 's/^/| /' conftest.$ac_ext >&5
4389
4390 ac_cv_lib_nsl_gethostbyname=no
4391fi
4392
4393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4394 conftest$ac_exeext conftest.$ac_ext
4395LIBS=$ac_check_lib_save_LIBS
4396fi
4397{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4398echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
4399if test $ac_cv_lib_nsl_gethostbyname = yes; then
4400 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4401fi
4402
4403 if test $ac_cv_lib_nsl_gethostbyname = no; then
4404 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4405echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
4406if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4407 echo $ECHO_N "(cached) $ECHO_C" >&6
4408else
4409 ac_check_lib_save_LIBS=$LIBS
4410LIBS="-lbsd $LIBS"
4411cat >conftest.$ac_ext <<_ACEOF
4412/* confdefs.h. */
4413_ACEOF
4414cat confdefs.h >>conftest.$ac_ext
4415cat >>conftest.$ac_ext <<_ACEOF
4416/* end confdefs.h. */
4417
4418/* Override any GCC internal prototype to avoid an error.
4419 Use char because int might match the return type of a GCC
4420 builtin and then its argument prototype would still apply. */
4421#ifdef __cplusplus
4422extern "C"
4423#endif
4424char gethostbyname ();
4425int
4426main ()
4427{
4428return gethostbyname ();
4429 ;
4430 return 0;
4431}
4432_ACEOF
4433rm -f conftest.$ac_objext conftest$ac_exeext
4434if { (ac_try="$ac_link"
4435case "(($ac_try" in
4436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437 *) ac_try_echo=$ac_try;;
4438esac
4439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4440 (eval "$ac_link") 2>conftest.er1
4441 ac_status=$?
4442 grep -v '^ *+' conftest.er1 >conftest.err
4443 rm -f conftest.er1
4444 cat conftest.err >&5
4445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4446 (exit $ac_status); } && {
4447 test -z "$ac_c_werror_flag" ||
4448 test ! -s conftest.err
4449 } && test -s conftest$ac_exeext &&
4450 $as_test_x conftest$ac_exeext; then
4451 ac_cv_lib_bsd_gethostbyname=yes
4452else
4453 echo "$as_me: failed program was:" >&5
4454sed 's/^/| /' conftest.$ac_ext >&5
4455
4456 ac_cv_lib_bsd_gethostbyname=no
4457fi
4458
4459rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4460 conftest$ac_exeext conftest.$ac_ext
4461LIBS=$ac_check_lib_save_LIBS
4462fi
4463{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4464echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
4465if test $ac_cv_lib_bsd_gethostbyname = yes; then
4466 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4467fi
4468
4469 fi
4470 fi
4471
4472 # [email protected] says without -lsocket,
4473 # socket/setsockopt and other routines are undefined under SCO ODT
4474 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4475 # on later versions), says Simon Leinen: it contains gethostby*
4476 # variants that don't use the name server (or something). -lsocket
4477 # must be given before -lnsl if both are needed. We assume that
4478 # if connect needs -lnsl, so does gethostbyname.
4479 { echo "$as_me:$LINENO: checking for connect" >&5
4480echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
4481if test "${ac_cv_func_connect+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4483else
4484 cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h. */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4489/* end confdefs.h. */
4490/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4491 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4492#define connect innocuous_connect
4493
4494/* System header to define __stub macros and hopefully few prototypes,
4495 which can conflict with char connect (); below.
4496 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4497 <limits.h> exists even on freestanding compilers. */
4498
4499#ifdef __STDC__
4500# include <limits.h>
4501#else
4502# include <assert.h>
4503#endif
4504
4505#undef connect
4506
4507/* Override any GCC internal prototype to avoid an error.
4508 Use char because int might match the return type of a GCC
4509 builtin and then its argument prototype would still apply. */
4510#ifdef __cplusplus
4511extern "C"
4512#endif
4513char connect ();
4514/* The GNU C library defines this for functions which it implements
4515 to always fail with ENOSYS. Some functions are actually named
4516 something starting with __ and the normal name is an alias. */
4517#if defined __stub_connect || defined __stub___connect
4518choke me
4519#endif
4520
4521int
4522main ()
4523{
4524return connect ();
4525 ;
4526 return 0;
4527}
4528_ACEOF
4529rm -f conftest.$ac_objext conftest$ac_exeext
4530if { (ac_try="$ac_link"
4531case "(($ac_try" in
4532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4533 *) ac_try_echo=$ac_try;;
4534esac
4535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4536 (eval "$ac_link") 2>conftest.er1
4537 ac_status=$?
4538 grep -v '^ *+' conftest.er1 >conftest.err
4539 rm -f conftest.er1
4540 cat conftest.err >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } && {
4543 test -z "$ac_c_werror_flag" ||
4544 test ! -s conftest.err
4545 } && test -s conftest$ac_exeext &&
4546 $as_test_x conftest$ac_exeext; then
4547 ac_cv_func_connect=yes
4548else
4549 echo "$as_me: failed program was:" >&5
4550sed 's/^/| /' conftest.$ac_ext >&5
4551
4552 ac_cv_func_connect=no
4553fi
4554
4555rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4556 conftest$ac_exeext conftest.$ac_ext
4557fi
4558{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4559echo "${ECHO_T}$ac_cv_func_connect" >&6; }
4560
4561 if test $ac_cv_func_connect = no; then
4562 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4563echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
4564if test "${ac_cv_lib_socket_connect+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4566else
4567 ac_check_lib_save_LIBS=$LIBS
4568LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4569cat >conftest.$ac_ext <<_ACEOF
4570/* confdefs.h. */
4571_ACEOF
4572cat confdefs.h >>conftest.$ac_ext
4573cat >>conftest.$ac_ext <<_ACEOF
4574/* end confdefs.h. */
4575
4576/* Override any GCC internal prototype to avoid an error.
4577 Use char because int might match the return type of a GCC
4578 builtin and then its argument prototype would still apply. */
4579#ifdef __cplusplus
4580extern "C"
4581#endif
4582char connect ();
4583int
4584main ()
4585{
4586return connect ();
4587 ;
4588 return 0;
4589}
4590_ACEOF
4591rm -f conftest.$ac_objext conftest$ac_exeext
4592if { (ac_try="$ac_link"
4593case "(($ac_try" in
4594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4596esac
4597eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4598 (eval "$ac_link") 2>conftest.er1
4599 ac_status=$?
4600 grep -v '^ *+' conftest.er1 >conftest.err
4601 rm -f conftest.er1
4602 cat conftest.err >&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); } && {
4605 test -z "$ac_c_werror_flag" ||
4606 test ! -s conftest.err
4607 } && test -s conftest$ac_exeext &&
4608 $as_test_x conftest$ac_exeext; then
4609 ac_cv_lib_socket_connect=yes
4610else
4611 echo "$as_me: failed program was:" >&5
4612sed 's/^/| /' conftest.$ac_ext >&5
4613
4614 ac_cv_lib_socket_connect=no
4615fi
4616
4617rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4618 conftest$ac_exeext conftest.$ac_ext
4619LIBS=$ac_check_lib_save_LIBS
4620fi
4621{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4622echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
4623if test $ac_cv_lib_socket_connect = yes; then
4624 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4625fi
4626
4627 fi
4628
4629 # Guillermo Gomez says -lposix is necessary on A/UX.
4630 { echo "$as_me:$LINENO: checking for remove" >&5
4631echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
4632if test "${ac_cv_func_remove+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4634else
4635 cat >conftest.$ac_ext <<_ACEOF
4636/* confdefs.h. */
4637_ACEOF
4638cat confdefs.h >>conftest.$ac_ext
4639cat >>conftest.$ac_ext <<_ACEOF
4640/* end confdefs.h. */
4641/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4643#define remove innocuous_remove
4644
4645/* System header to define __stub macros and hopefully few prototypes,
4646 which can conflict with char remove (); below.
4647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4648 <limits.h> exists even on freestanding compilers. */
4649
4650#ifdef __STDC__
4651# include <limits.h>
4652#else
4653# include <assert.h>
4654#endif
4655
4656#undef remove
4657
4658/* Override any GCC internal prototype to avoid an error.
4659 Use char because int might match the return type of a GCC
4660 builtin and then its argument prototype would still apply. */
4661#ifdef __cplusplus
4662extern "C"
4663#endif
4664char remove ();
4665/* The GNU C library defines this for functions which it implements
4666 to always fail with ENOSYS. Some functions are actually named
4667 something starting with __ and the normal name is an alias. */
4668#if defined __stub_remove || defined __stub___remove
4669choke me
4670#endif
4671
4672int
4673main ()
4674{
4675return remove ();
4676 ;
4677 return 0;
4678}
4679_ACEOF
4680rm -f conftest.$ac_objext conftest$ac_exeext
4681if { (ac_try="$ac_link"
4682case "(($ac_try" in
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4685esac
4686eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_link") 2>conftest.er1
4688 ac_status=$?
4689 grep -v '^ *+' conftest.er1 >conftest.err
4690 rm -f conftest.er1
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } && {
4694 test -z "$ac_c_werror_flag" ||
4695 test ! -s conftest.err
4696 } && test -s conftest$ac_exeext &&
4697 $as_test_x conftest$ac_exeext; then
4698 ac_cv_func_remove=yes
4699else
4700 echo "$as_me: failed program was:" >&5
4701sed 's/^/| /' conftest.$ac_ext >&5
4702
4703 ac_cv_func_remove=no
4704fi
4705
4706rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4707 conftest$ac_exeext conftest.$ac_ext
4708fi
4709{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4710echo "${ECHO_T}$ac_cv_func_remove" >&6; }
4711
4712 if test $ac_cv_func_remove = no; then
4713 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4714echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
4715if test "${ac_cv_lib_posix_remove+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4717else
4718 ac_check_lib_save_LIBS=$LIBS
4719LIBS="-lposix $LIBS"
4720cat >conftest.$ac_ext <<_ACEOF
4721/* confdefs.h. */
4722_ACEOF
4723cat confdefs.h >>conftest.$ac_ext
4724cat >>conftest.$ac_ext <<_ACEOF
4725/* end confdefs.h. */
4726
4727/* Override any GCC internal prototype to avoid an error.
4728 Use char because int might match the return type of a GCC
4729 builtin and then its argument prototype would still apply. */
4730#ifdef __cplusplus
4731extern "C"
4732#endif
4733char remove ();
4734int
4735main ()
4736{
4737return remove ();
4738 ;
4739 return 0;
4740}
4741_ACEOF
4742rm -f conftest.$ac_objext conftest$ac_exeext
4743if { (ac_try="$ac_link"
4744case "(($ac_try" in
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747esac
4748eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4749 (eval "$ac_link") 2>conftest.er1
4750 ac_status=$?
4751 grep -v '^ *+' conftest.er1 >conftest.err
4752 rm -f conftest.er1
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } && {
4756 test -z "$ac_c_werror_flag" ||
4757 test ! -s conftest.err
4758 } && test -s conftest$ac_exeext &&
4759 $as_test_x conftest$ac_exeext; then
4760 ac_cv_lib_posix_remove=yes
4761else
4762 echo "$as_me: failed program was:" >&5
4763sed 's/^/| /' conftest.$ac_ext >&5
4764
4765 ac_cv_lib_posix_remove=no
4766fi
4767
4768rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4769 conftest$ac_exeext conftest.$ac_ext
4770LIBS=$ac_check_lib_save_LIBS
4771fi
4772{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4773echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
4774if test $ac_cv_lib_posix_remove = yes; then
4775 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4776fi
4777
4778 fi
4779
4780 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4781 { echo "$as_me:$LINENO: checking for shmat" >&5
4782echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
4783if test "${ac_cv_func_shmat+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4785else
4786 cat >conftest.$ac_ext <<_ACEOF
4787/* confdefs.h. */
4788_ACEOF
4789cat confdefs.h >>conftest.$ac_ext
4790cat >>conftest.$ac_ext <<_ACEOF
4791/* end confdefs.h. */
4792/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4794#define shmat innocuous_shmat
4795
4796/* System header to define __stub macros and hopefully few prototypes,
4797 which can conflict with char shmat (); below.
4798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4799 <limits.h> exists even on freestanding compilers. */
4800
4801#ifdef __STDC__
4802# include <limits.h>
4803#else
4804# include <assert.h>
4805#endif
4806
4807#undef shmat
4808
4809/* Override any GCC internal prototype to avoid an error.
4810 Use char because int might match the return type of a GCC
4811 builtin and then its argument prototype would still apply. */
4812#ifdef __cplusplus
4813extern "C"
4814#endif
4815char shmat ();
4816/* The GNU C library defines this for functions which it implements
4817 to always fail with ENOSYS. Some functions are actually named
4818 something starting with __ and the normal name is an alias. */
4819#if defined __stub_shmat || defined __stub___shmat
4820choke me
4821#endif
4822
4823int
4824main ()
4825{
4826return shmat ();
4827 ;
4828 return 0;
4829}
4830_ACEOF
4831rm -f conftest.$ac_objext conftest$ac_exeext
4832if { (ac_try="$ac_link"
4833case "(($ac_try" in
4834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4835 *) ac_try_echo=$ac_try;;
4836esac
4837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838 (eval "$ac_link") 2>conftest.er1
4839 ac_status=$?
4840 grep -v '^ *+' conftest.er1 >conftest.err
4841 rm -f conftest.er1
4842 cat conftest.err >&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } && {
4845 test -z "$ac_c_werror_flag" ||
4846 test ! -s conftest.err
4847 } && test -s conftest$ac_exeext &&
4848 $as_test_x conftest$ac_exeext; then
4849 ac_cv_func_shmat=yes
4850else
4851 echo "$as_me: failed program was:" >&5
4852sed 's/^/| /' conftest.$ac_ext >&5
4853
4854 ac_cv_func_shmat=no
4855fi
4856
4857rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4858 conftest$ac_exeext conftest.$ac_ext
4859fi
4860{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4861echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
4862
4863 if test $ac_cv_func_shmat = no; then
4864 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4865echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
4866if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4867 echo $ECHO_N "(cached) $ECHO_C" >&6
4868else
4869 ac_check_lib_save_LIBS=$LIBS
4870LIBS="-lipc $LIBS"
4871cat >conftest.$ac_ext <<_ACEOF
4872/* confdefs.h. */
4873_ACEOF
4874cat confdefs.h >>conftest.$ac_ext
4875cat >>conftest.$ac_ext <<_ACEOF
4876/* end confdefs.h. */
4877
4878/* Override any GCC internal prototype to avoid an error.
4879 Use char because int might match the return type of a GCC
4880 builtin and then its argument prototype would still apply. */
4881#ifdef __cplusplus
4882extern "C"
4883#endif
4884char shmat ();
4885int
4886main ()
4887{
4888return shmat ();
4889 ;
4890 return 0;
4891}
4892_ACEOF
4893rm -f conftest.$ac_objext conftest$ac_exeext
4894if { (ac_try="$ac_link"
4895case "(($ac_try" in
4896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897 *) ac_try_echo=$ac_try;;
4898esac
4899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4900 (eval "$ac_link") 2>conftest.er1
4901 ac_status=$?
4902 grep -v '^ *+' conftest.er1 >conftest.err
4903 rm -f conftest.er1
4904 cat conftest.err >&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); } && {
4907 test -z "$ac_c_werror_flag" ||
4908 test ! -s conftest.err
4909 } && test -s conftest$ac_exeext &&
4910 $as_test_x conftest$ac_exeext; then
4911 ac_cv_lib_ipc_shmat=yes
4912else
4913 echo "$as_me: failed program was:" >&5
4914sed 's/^/| /' conftest.$ac_ext >&5
4915
4916 ac_cv_lib_ipc_shmat=no
4917fi
4918
4919rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4920 conftest$ac_exeext conftest.$ac_ext
4921LIBS=$ac_check_lib_save_LIBS
4922fi
4923{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4924echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
4925if test $ac_cv_lib_ipc_shmat = yes; then
4926 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4927fi
4928
4929 fi
4930 fi
4931
4932 # Check for libraries that X11R6 Xt/Xaw programs need.
4933 ac_save_LDFLAGS=$LDFLAGS
4934 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4935 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4936 # check for ICE first), but we must link in the order -lSM -lICE or
4937 # we get undefined symbols. So assume we have SM if we have ICE.
4938 # These have to be linked with before -lX11, unlike the other
4939 # libraries we check for below, so use a different variable.
4940 # John Interrante, Karl Berry
4941 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4942echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
4943if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4945else
4946 ac_check_lib_save_LIBS=$LIBS
4947LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4948cat >conftest.$ac_ext <<_ACEOF
4949/* confdefs.h. */
4950_ACEOF
4951cat confdefs.h >>conftest.$ac_ext
4952cat >>conftest.$ac_ext <<_ACEOF
4953/* end confdefs.h. */
4954
4955/* Override any GCC internal prototype to avoid an error.
4956 Use char because int might match the return type of a GCC
4957 builtin and then its argument prototype would still apply. */
4958#ifdef __cplusplus
4959extern "C"
4960#endif
4961char IceConnectionNumber ();
4962int
4963main ()
4964{
4965return IceConnectionNumber ();
4966 ;
4967 return 0;
4968}
4969_ACEOF
4970rm -f conftest.$ac_objext conftest$ac_exeext
4971if { (ac_try="$ac_link"
4972case "(($ac_try" in
4973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4974 *) ac_try_echo=$ac_try;;
4975esac
4976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4977 (eval "$ac_link") 2>conftest.er1
4978 ac_status=$?
4979 grep -v '^ *+' conftest.er1 >conftest.err
4980 rm -f conftest.er1
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } && {
4984 test -z "$ac_c_werror_flag" ||
4985 test ! -s conftest.err
4986 } && test -s conftest$ac_exeext &&
4987 $as_test_x conftest$ac_exeext; then
4988 ac_cv_lib_ICE_IceConnectionNumber=yes
4989else
4990 echo "$as_me: failed program was:" >&5
4991sed 's/^/| /' conftest.$ac_ext >&5
4992
4993 ac_cv_lib_ICE_IceConnectionNumber=no
4994fi
4995
4996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4997 conftest$ac_exeext conftest.$ac_ext
4998LIBS=$ac_check_lib_save_LIBS
4999fi
5000{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
5001echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
5002if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
5003 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
5004fi
5005
5006 LDFLAGS=$ac_save_LDFLAGS
5007
5008fi
5009
5010if test "$no_x" = "yes"; then
5011 echo
5012 echo "ERROR: Could not find X Window System headers/libraries."
5013 if test -f /etc/debian_version; then
5014 echo "Probably you need to install the libx11-dev package."
5015 elif test -f /etc/redhat-release; then
5016 echo "Probably you need to install the libX11-devel package."
5017 fi
5018 echo "To specify paths manually, use the options --x-includes and --x-libraries."
5019 echo
5020 exit 1
5021fi
5022
5023# Extract the first word of "pkg-config", so it can be a program name with args.
5024set dummy pkg-config; ac_word=$2
5025{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5026echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5027if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5028 echo $ECHO_N "(cached) $ECHO_C" >&6
5029else
5030 case $PKG_CONFIG in
5031 [\\/]* | ?:[\\/]*)
5032 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5033 ;;
5034 *)
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036for as_dir in $PATH
5037do
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 for ac_exec_ext in '' $ac_executable_extensions; do
5041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5042 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5044 break 2
5045 fi
5046done
5047done
5048IFS=$as_save_IFS
5049
5050 ;;
5051esac
5052fi
5053PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5054if test -n "$PKG_CONFIG"; then
5055 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5056echo "${ECHO_T}$PKG_CONFIG" >&6; }
5057else
5058 { echo "$as_me:$LINENO: result: no" >&5
5059echo "${ECHO_T}no" >&6; }
5060fi
5061
5062
5063
5064{ echo "$as_me:$LINENO: checking for library containing socket" >&5
5065echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6; }
5066if test "${ac_cv_search_socket+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069 ac_func_search_save_LIBS=$LIBS
5070cat >conftest.$ac_ext <<_ACEOF
5071/* confdefs.h. */
5072_ACEOF
5073cat confdefs.h >>conftest.$ac_ext
5074cat >>conftest.$ac_ext <<_ACEOF
5075/* end confdefs.h. */
5076
5077/* Override any GCC internal prototype to avoid an error.
5078 Use char because int might match the return type of a GCC
5079 builtin and then its argument prototype would still apply. */
5080#ifdef __cplusplus
5081extern "C"
5082#endif
5083char socket ();
5084int
5085main ()
5086{
5087return socket ();
5088 ;
5089 return 0;
5090}
5091_ACEOF
5092for ac_lib in '' socket; do
5093 if test -z "$ac_lib"; then
5094 ac_res="none required"
5095 else
5096 ac_res=-l$ac_lib
5097 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5098 fi
5099 rm -f conftest.$ac_objext conftest$ac_exeext
5100if { (ac_try="$ac_link"
5101case "(($ac_try" in
5102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5103 *) ac_try_echo=$ac_try;;
5104esac
5105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5106 (eval "$ac_link") 2>conftest.er1
5107 ac_status=$?
5108 grep -v '^ *+' conftest.er1 >conftest.err
5109 rm -f conftest.er1
5110 cat conftest.err >&5
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); } && {
5113 test -z "$ac_c_werror_flag" ||
5114 test ! -s conftest.err
5115 } && test -s conftest$ac_exeext &&
5116 $as_test_x conftest$ac_exeext; then
5117 ac_cv_search_socket=$ac_res
5118else
5119 echo "$as_me: failed program was:" >&5
5120sed 's/^/| /' conftest.$ac_ext >&5
5121
5122
5123fi
5124
5125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5126 conftest$ac_exeext
5127 if test "${ac_cv_search_socket+set}" = set; then
5128 break
5129fi
5130done
5131if test "${ac_cv_search_socket+set}" = set; then
5132 :
5133else
5134 ac_cv_search_socket=no
5135fi
5136rm conftest.$ac_ext
5137LIBS=$ac_func_search_save_LIBS
5138fi
5139{ echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
5140echo "${ECHO_T}$ac_cv_search_socket" >&6; }
5141ac_res=$ac_cv_search_socket
5142if test "$ac_res" != no; then
5143 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5144
5145fi
5146
5147{ echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
5148echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6; }
5149if test "${ac_cv_search_inet_aton+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5151else
5152 ac_func_search_save_LIBS=$LIBS
5153cat >conftest.$ac_ext <<_ACEOF
5154/* confdefs.h. */
5155_ACEOF
5156cat confdefs.h >>conftest.$ac_ext
5157cat >>conftest.$ac_ext <<_ACEOF
5158/* end confdefs.h. */
5159
5160/* Override any GCC internal prototype to avoid an error.
5161 Use char because int might match the return type of a GCC
5162 builtin and then its argument prototype would still apply. */
5163#ifdef __cplusplus
5164extern "C"
5165#endif
5166char inet_aton ();
5167int
5168main ()
5169{
5170return inet_aton ();
5171 ;
5172 return 0;
5173}
5174_ACEOF
5175for ac_lib in '' resolv; do
5176 if test -z "$ac_lib"; then
5177 ac_res="none required"
5178 else
5179 ac_res=-l$ac_lib
5180 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5181 fi
5182 rm -f conftest.$ac_objext conftest$ac_exeext
5183if { (ac_try="$ac_link"
5184case "(($ac_try" in
5185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186 *) ac_try_echo=$ac_try;;
5187esac
5188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5189 (eval "$ac_link") 2>conftest.er1
5190 ac_status=$?
5191 grep -v '^ *+' conftest.er1 >conftest.err
5192 rm -f conftest.er1
5193 cat conftest.err >&5
5194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195 (exit $ac_status); } && {
5196 test -z "$ac_c_werror_flag" ||
5197 test ! -s conftest.err
5198 } && test -s conftest$ac_exeext &&
5199 $as_test_x conftest$ac_exeext; then
5200 ac_cv_search_inet_aton=$ac_res
5201else
5202 echo "$as_me: failed program was:" >&5
5203sed 's/^/| /' conftest.$ac_ext >&5
5204
5205
5206fi
5207
5208rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5209 conftest$ac_exeext
5210 if test "${ac_cv_search_inet_aton+set}" = set; then
5211 break
5212fi
5213done
5214if test "${ac_cv_search_inet_aton+set}" = set; then
5215 :
5216else
5217 ac_cv_search_inet_aton=no
5218fi
5219rm conftest.$ac_ext
5220LIBS=$ac_func_search_save_LIBS
5221fi
5222{ echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
5223echo "${ECHO_T}$ac_cv_search_inet_aton" >&6; }
5224ac_res=$ac_cv_search_inet_aton
5225if test "$ac_res" != no; then
5226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5227
5228fi
5229
5230
5231if test "${ac_cv_header_sys_select_h+set}" = set; then
5232 { echo "$as_me:$LINENO: checking for sys/select.h" >&5
5233echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
5234if test "${ac_cv_header_sys_select_h+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236fi
5237{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
5238echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
5239else
5240 # Is the header compilable?
5241{ echo "$as_me:$LINENO: checking sys/select.h usability" >&5
5242echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6; }
5243cat >conftest.$ac_ext <<_ACEOF
5244/* confdefs.h. */
5245_ACEOF
5246cat confdefs.h >>conftest.$ac_ext
5247cat >>conftest.$ac_ext <<_ACEOF
5248/* end confdefs.h. */
5249$ac_includes_default
5250#include <sys/select.h>
5251_ACEOF
5252rm -f conftest.$ac_objext
5253if { (ac_try="$ac_compile"
5254case "(($ac_try" in
5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256 *) ac_try_echo=$ac_try;;
5257esac
5258eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259 (eval "$ac_compile") 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } && {
5266 test -z "$ac_c_werror_flag" ||
5267 test ! -s conftest.err
5268 } && test -s conftest.$ac_objext; then
5269 ac_header_compiler=yes
5270else
5271 echo "$as_me: failed program was:" >&5
5272sed 's/^/| /' conftest.$ac_ext >&5
5273
5274 ac_header_compiler=no
5275fi
5276
5277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5279echo "${ECHO_T}$ac_header_compiler" >&6; }
5280
5281# Is the header present?
5282{ echo "$as_me:$LINENO: checking sys/select.h presence" >&5
5283echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6; }
5284cat >conftest.$ac_ext <<_ACEOF
5285/* confdefs.h. */
5286_ACEOF
5287cat confdefs.h >>conftest.$ac_ext
5288cat >>conftest.$ac_ext <<_ACEOF
5289/* end confdefs.h. */
5290#include <sys/select.h>
5291_ACEOF
5292if { (ac_try="$ac_cpp conftest.$ac_ext"
5293case "(($ac_try" in
5294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5295 *) ac_try_echo=$ac_try;;
5296esac
5297eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5299 ac_status=$?
5300 grep -v '^ *+' conftest.er1 >conftest.err
5301 rm -f conftest.er1
5302 cat conftest.err >&5
5303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5304 (exit $ac_status); } >/dev/null && {
5305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5306 test ! -s conftest.err
5307 }; then
5308 ac_header_preproc=yes
5309else
5310 echo "$as_me: failed program was:" >&5
5311sed 's/^/| /' conftest.$ac_ext >&5
5312
5313 ac_header_preproc=no
5314fi
5315
5316rm -f conftest.err conftest.$ac_ext
5317{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5318echo "${ECHO_T}$ac_header_preproc" >&6; }
5319
5320# So? What about this header?
5321case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5322 yes:no: )
5323 { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
5324echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5325 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
5326echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
5327 ac_header_preproc=yes
5328 ;;
5329 no:yes:* )
5330 { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
5331echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
5332 { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
5333echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
5334 { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
5335echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
5336 { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
5337echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
5338 { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
5339echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
5340 { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
5341echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
5342
5343 ;;
5344esac
5345{ echo "$as_me:$LINENO: checking for sys/select.h" >&5
5346echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6; }
5347if test "${ac_cv_header_sys_select_h+set}" = set; then
5348 echo $ECHO_N "(cached) $ECHO_C" >&6
5349else
5350 ac_cv_header_sys_select_h=$ac_header_preproc
5351fi
5352{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
5353echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6; }
5354
5355fi
5356if test $ac_cv_header_sys_select_h = yes; then
5357 cat >>confdefs.h <<\_ACEOF
5358#define HAVE_SYS_SELECT_H 1
5359_ACEOF
5360
5361fi
5362
5363
5364if test "${ac_cv_header_sys_modem_h+set}" = set; then
5365 { echo "$as_me:$LINENO: checking for sys/modem.h" >&5
5366echo $ECHO_N "checking for sys/modem.h... $ECHO_C" >&6; }
5367if test "${ac_cv_header_sys_modem_h+set}" = set; then
5368 echo $ECHO_N "(cached) $ECHO_C" >&6
5369fi
5370{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_modem_h" >&5
5371echo "${ECHO_T}$ac_cv_header_sys_modem_h" >&6; }
5372else
5373 # Is the header compilable?
5374{ echo "$as_me:$LINENO: checking sys/modem.h usability" >&5
5375echo $ECHO_N "checking sys/modem.h usability... $ECHO_C" >&6; }
5376cat >conftest.$ac_ext <<_ACEOF
5377/* confdefs.h. */
5378_ACEOF
5379cat confdefs.h >>conftest.$ac_ext
5380cat >>conftest.$ac_ext <<_ACEOF
5381/* end confdefs.h. */
5382$ac_includes_default
5383#include <sys/modem.h>
5384_ACEOF
5385rm -f conftest.$ac_objext
5386if { (ac_try="$ac_compile"
5387case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5390esac
5391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_compile") 2>conftest.er1
5393 ac_status=$?
5394 grep -v '^ *+' conftest.er1 >conftest.err
5395 rm -f conftest.er1
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } && {
5399 test -z "$ac_c_werror_flag" ||
5400 test ! -s conftest.err
5401 } && test -s conftest.$ac_objext; then
5402 ac_header_compiler=yes
5403else
5404 echo "$as_me: failed program was:" >&5
5405sed 's/^/| /' conftest.$ac_ext >&5
5406
5407 ac_header_compiler=no
5408fi
5409
5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5412echo "${ECHO_T}$ac_header_compiler" >&6; }
5413
5414# Is the header present?
5415{ echo "$as_me:$LINENO: checking sys/modem.h presence" >&5
5416echo $ECHO_N "checking sys/modem.h presence... $ECHO_C" >&6; }
5417cat >conftest.$ac_ext <<_ACEOF
5418/* confdefs.h. */
5419_ACEOF
5420cat confdefs.h >>conftest.$ac_ext
5421cat >>conftest.$ac_ext <<_ACEOF
5422/* end confdefs.h. */
5423#include <sys/modem.h>
5424_ACEOF
5425if { (ac_try="$ac_cpp conftest.$ac_ext"
5426case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429esac
5430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5432 ac_status=$?
5433 grep -v '^ *+' conftest.er1 >conftest.err
5434 rm -f conftest.er1
5435 cat conftest.err >&5
5436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437 (exit $ac_status); } >/dev/null && {
5438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5439 test ! -s conftest.err
5440 }; then
5441 ac_header_preproc=yes
5442else
5443 echo "$as_me: failed program was:" >&5
5444sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 ac_header_preproc=no
5447fi
5448
5449rm -f conftest.err conftest.$ac_ext
5450{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5451echo "${ECHO_T}$ac_header_preproc" >&6; }
5452
5453# So? What about this header?
5454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5455 yes:no: )
5456 { echo "$as_me:$LINENO: WARNING: sys/modem.h: accepted by the compiler, rejected by the preprocessor!" >&5
5457echo "$as_me: WARNING: sys/modem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5458 { echo "$as_me:$LINENO: WARNING: sys/modem.h: proceeding with the compiler's result" >&5
5459echo "$as_me: WARNING: sys/modem.h: proceeding with the compiler's result" >&2;}
5460 ac_header_preproc=yes
5461 ;;
5462 no:yes:* )
5463 { echo "$as_me:$LINENO: WARNING: sys/modem.h: present but cannot be compiled" >&5
5464echo "$as_me: WARNING: sys/modem.h: present but cannot be compiled" >&2;}
5465 { echo "$as_me:$LINENO: WARNING: sys/modem.h: check for missing prerequisite headers?" >&5
5466echo "$as_me: WARNING: sys/modem.h: check for missing prerequisite headers?" >&2;}
5467 { echo "$as_me:$LINENO: WARNING: sys/modem.h: see the Autoconf documentation" >&5
5468echo "$as_me: WARNING: sys/modem.h: see the Autoconf documentation" >&2;}
5469 { echo "$as_me:$LINENO: WARNING: sys/modem.h: section \"Present But Cannot Be Compiled\"" >&5
5470echo "$as_me: WARNING: sys/modem.h: section \"Present But Cannot Be Compiled\"" >&2;}
5471 { echo "$as_me:$LINENO: WARNING: sys/modem.h: proceeding with the preprocessor's result" >&5
5472echo "$as_me: WARNING: sys/modem.h: proceeding with the preprocessor's result" >&2;}
5473 { echo "$as_me:$LINENO: WARNING: sys/modem.h: in the future, the compiler will take precedence" >&5
5474echo "$as_me: WARNING: sys/modem.h: in the future, the compiler will take precedence" >&2;}
5475
5476 ;;
5477esac
5478{ echo "$as_me:$LINENO: checking for sys/modem.h" >&5
5479echo $ECHO_N "checking for sys/modem.h... $ECHO_C" >&6; }
5480if test "${ac_cv_header_sys_modem_h+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482else
5483 ac_cv_header_sys_modem_h=$ac_header_preproc
5484fi
5485{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_modem_h" >&5
5486echo "${ECHO_T}$ac_cv_header_sys_modem_h" >&6; }
5487
5488fi
5489if test $ac_cv_header_sys_modem_h = yes; then
5490 cat >>confdefs.h <<\_ACEOF
5491#define HAVE_SYS_MODEM_H 1
5492_ACEOF
5493
5494fi
5495
5496
5497if test "${ac_cv_header_sys_filio_h+set}" = set; then
5498 { echo "$as_me:$LINENO: checking for sys/filio.h" >&5
5499echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
5500if test "${ac_cv_header_sys_filio_h+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502fi
5503{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
5504echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
5505else
5506 # Is the header compilable?
5507{ echo "$as_me:$LINENO: checking sys/filio.h usability" >&5
5508echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6; }
5509cat >conftest.$ac_ext <<_ACEOF
5510/* confdefs.h. */
5511_ACEOF
5512cat confdefs.h >>conftest.$ac_ext
5513cat >>conftest.$ac_ext <<_ACEOF
5514/* end confdefs.h. */
5515$ac_includes_default
5516#include <sys/filio.h>
5517_ACEOF
5518rm -f conftest.$ac_objext
5519if { (ac_try="$ac_compile"
5520case "(($ac_try" in
5521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522 *) ac_try_echo=$ac_try;;
5523esac
5524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525 (eval "$ac_compile") 2>conftest.er1
5526 ac_status=$?
5527 grep -v '^ *+' conftest.er1 >conftest.err
5528 rm -f conftest.er1
5529 cat conftest.err >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); } && {
5532 test -z "$ac_c_werror_flag" ||
5533 test ! -s conftest.err
5534 } && test -s conftest.$ac_objext; then
5535 ac_header_compiler=yes
5536else
5537 echo "$as_me: failed program was:" >&5
5538sed 's/^/| /' conftest.$ac_ext >&5
5539
5540 ac_header_compiler=no
5541fi
5542
5543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5544{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5545echo "${ECHO_T}$ac_header_compiler" >&6; }
5546
5547# Is the header present?
5548{ echo "$as_me:$LINENO: checking sys/filio.h presence" >&5
5549echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6; }
5550cat >conftest.$ac_ext <<_ACEOF
5551/* confdefs.h. */
5552_ACEOF
5553cat confdefs.h >>conftest.$ac_ext
5554cat >>conftest.$ac_ext <<_ACEOF
5555/* end confdefs.h. */
5556#include <sys/filio.h>
5557_ACEOF
5558if { (ac_try="$ac_cpp conftest.$ac_ext"
5559case "(($ac_try" in
5560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561 *) ac_try_echo=$ac_try;;
5562esac
5563eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5565 ac_status=$?
5566 grep -v '^ *+' conftest.er1 >conftest.err
5567 rm -f conftest.er1
5568 cat conftest.err >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); } >/dev/null && {
5571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5572 test ! -s conftest.err
5573 }; then
5574 ac_header_preproc=yes
5575else
5576 echo "$as_me: failed program was:" >&5
5577sed 's/^/| /' conftest.$ac_ext >&5
5578
5579 ac_header_preproc=no
5580fi
5581
5582rm -f conftest.err conftest.$ac_ext
5583{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5584echo "${ECHO_T}$ac_header_preproc" >&6; }
5585
5586# So? What about this header?
5587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5588 yes:no: )
5589 { echo "$as_me:$LINENO: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&5
5590echo "$as_me: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5591 { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the compiler's result" >&5
5592echo "$as_me: WARNING: sys/filio.h: proceeding with the compiler's result" >&2;}
5593 ac_header_preproc=yes
5594 ;;
5595 no:yes:* )
5596 { echo "$as_me:$LINENO: WARNING: sys/filio.h: present but cannot be compiled" >&5
5597echo "$as_me: WARNING: sys/filio.h: present but cannot be compiled" >&2;}
5598 { echo "$as_me:$LINENO: WARNING: sys/filio.h: check for missing prerequisite headers?" >&5
5599echo "$as_me: WARNING: sys/filio.h: check for missing prerequisite headers?" >&2;}
5600 { echo "$as_me:$LINENO: WARNING: sys/filio.h: see the Autoconf documentation" >&5
5601echo "$as_me: WARNING: sys/filio.h: see the Autoconf documentation" >&2;}
5602 { echo "$as_me:$LINENO: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&5
5603echo "$as_me: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&2;}
5604 { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&5
5605echo "$as_me: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&2;}
5606 { echo "$as_me:$LINENO: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&5
5607echo "$as_me: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&2;}
5608
5609 ;;
5610esac
5611{ echo "$as_me:$LINENO: checking for sys/filio.h" >&5
5612echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6; }
5613if test "${ac_cv_header_sys_filio_h+set}" = set; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5615else
5616 ac_cv_header_sys_filio_h=$ac_header_preproc
5617fi
5618{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
5619echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6; }
5620
5621fi
5622if test $ac_cv_header_sys_filio_h = yes; then
5623 cat >>confdefs.h <<\_ACEOF
5624#define HAVE_SYS_FILIO_H 1
5625_ACEOF
5626
5627fi
5628
5629
5630if test "${ac_cv_header_sys_strtio_h+set}" = set; then
5631 { echo "$as_me:$LINENO: checking for sys/strtio.h" >&5
5632echo $ECHO_N "checking for sys/strtio.h... $ECHO_C" >&6; }
5633if test "${ac_cv_header_sys_strtio_h+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5635fi
5636{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_strtio_h" >&5
5637echo "${ECHO_T}$ac_cv_header_sys_strtio_h" >&6; }
5638else
5639 # Is the header compilable?
5640{ echo "$as_me:$LINENO: checking sys/strtio.h usability" >&5
5641echo $ECHO_N "checking sys/strtio.h usability... $ECHO_C" >&6; }
5642cat >conftest.$ac_ext <<_ACEOF
5643/* confdefs.h. */
5644_ACEOF
5645cat confdefs.h >>conftest.$ac_ext
5646cat >>conftest.$ac_ext <<_ACEOF
5647/* end confdefs.h. */
5648$ac_includes_default
5649#include <sys/strtio.h>
5650_ACEOF
5651rm -f conftest.$ac_objext
5652if { (ac_try="$ac_compile"
5653case "(($ac_try" in
5654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5655 *) ac_try_echo=$ac_try;;
5656esac
5657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5658 (eval "$ac_compile") 2>conftest.er1
5659 ac_status=$?
5660 grep -v '^ *+' conftest.er1 >conftest.err
5661 rm -f conftest.er1
5662 cat conftest.err >&5
5663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664 (exit $ac_status); } && {
5665 test -z "$ac_c_werror_flag" ||
5666 test ! -s conftest.err
5667 } && test -s conftest.$ac_objext; then
5668 ac_header_compiler=yes
5669else
5670 echo "$as_me: failed program was:" >&5
5671sed 's/^/| /' conftest.$ac_ext >&5
5672
5673 ac_header_compiler=no
5674fi
5675
5676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5678echo "${ECHO_T}$ac_header_compiler" >&6; }
5679
5680# Is the header present?
5681{ echo "$as_me:$LINENO: checking sys/strtio.h presence" >&5
5682echo $ECHO_N "checking sys/strtio.h presence... $ECHO_C" >&6; }
5683cat >conftest.$ac_ext <<_ACEOF
5684/* confdefs.h. */
5685_ACEOF
5686cat confdefs.h >>conftest.$ac_ext
5687cat >>conftest.$ac_ext <<_ACEOF
5688/* end confdefs.h. */
5689#include <sys/strtio.h>
5690_ACEOF
5691if { (ac_try="$ac_cpp conftest.$ac_ext"
5692case "(($ac_try" in
5693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694 *) ac_try_echo=$ac_try;;
5695esac
5696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5698 ac_status=$?
5699 grep -v '^ *+' conftest.er1 >conftest.err
5700 rm -f conftest.er1
5701 cat conftest.err >&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } >/dev/null && {
5704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5705 test ! -s conftest.err
5706 }; then
5707 ac_header_preproc=yes
5708else
5709 echo "$as_me: failed program was:" >&5
5710sed 's/^/| /' conftest.$ac_ext >&5
5711
5712 ac_header_preproc=no
5713fi
5714
5715rm -f conftest.err conftest.$ac_ext
5716{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5717echo "${ECHO_T}$ac_header_preproc" >&6; }
5718
5719# So? What about this header?
5720case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5721 yes:no: )
5722 { echo "$as_me:$LINENO: WARNING: sys/strtio.h: accepted by the compiler, rejected by the preprocessor!" >&5
5723echo "$as_me: WARNING: sys/strtio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: sys/strtio.h: proceeding with the compiler's result" >&5
5725echo "$as_me: WARNING: sys/strtio.h: proceeding with the compiler's result" >&2;}
5726 ac_header_preproc=yes
5727 ;;
5728 no:yes:* )
5729 { echo "$as_me:$LINENO: WARNING: sys/strtio.h: present but cannot be compiled" >&5
5730echo "$as_me: WARNING: sys/strtio.h: present but cannot be compiled" >&2;}
5731 { echo "$as_me:$LINENO: WARNING: sys/strtio.h: check for missing prerequisite headers?" >&5
5732echo "$as_me: WARNING: sys/strtio.h: check for missing prerequisite headers?" >&2;}
5733 { echo "$as_me:$LINENO: WARNING: sys/strtio.h: see the Autoconf documentation" >&5
5734echo "$as_me: WARNING: sys/strtio.h: see the Autoconf documentation" >&2;}
5735 { echo "$as_me:$LINENO: WARNING: sys/strtio.h: section \"Present But Cannot Be Compiled\"" >&5
5736echo "$as_me: WARNING: sys/strtio.h: section \"Present But Cannot Be Compiled\"" >&2;}
5737 { echo "$as_me:$LINENO: WARNING: sys/strtio.h: proceeding with the preprocessor's result" >&5
5738echo "$as_me: WARNING: sys/strtio.h: proceeding with the preprocessor's result" >&2;}
5739 { echo "$as_me:$LINENO: WARNING: sys/strtio.h: in the future, the compiler will take precedence" >&5
5740echo "$as_me: WARNING: sys/strtio.h: in the future, the compiler will take precedence" >&2;}
5741
5742 ;;
5743esac
5744{ echo "$as_me:$LINENO: checking for sys/strtio.h" >&5
5745echo $ECHO_N "checking for sys/strtio.h... $ECHO_C" >&6; }
5746if test "${ac_cv_header_sys_strtio_h+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748else
5749 ac_cv_header_sys_strtio_h=$ac_header_preproc
5750fi
5751{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_strtio_h" >&5
5752echo "${ECHO_T}$ac_cv_header_sys_strtio_h" >&6; }
5753
5754fi
5755if test $ac_cv_header_sys_strtio_h = yes; then
5756 cat >>confdefs.h <<\_ACEOF
5757#define HAVE_SYS_STRTIO_H 1
5758_ACEOF
5759
5760fi
5761
5762
5763if test "${ac_cv_header_locale_h+set}" = set; then
5764 { echo "$as_me:$LINENO: checking for locale.h" >&5
5765echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
5766if test "${ac_cv_header_locale_h+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5768fi
5769{ echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
5770echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
5771else
5772 # Is the header compilable?
5773{ echo "$as_me:$LINENO: checking locale.h usability" >&5
5774echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
5775cat >conftest.$ac_ext <<_ACEOF
5776/* confdefs.h. */
5777_ACEOF
5778cat confdefs.h >>conftest.$ac_ext
5779cat >>conftest.$ac_ext <<_ACEOF
5780/* end confdefs.h. */
5781$ac_includes_default
5782#include <locale.h>
5783_ACEOF
5784rm -f conftest.$ac_objext
5785if { (ac_try="$ac_compile"
5786case "(($ac_try" in
5787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5788 *) ac_try_echo=$ac_try;;
5789esac
5790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_compile") 2>conftest.er1
5792 ac_status=$?
5793 grep -v '^ *+' conftest.er1 >conftest.err
5794 rm -f conftest.er1
5795 cat conftest.err >&5
5796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5797 (exit $ac_status); } && {
5798 test -z "$ac_c_werror_flag" ||
5799 test ! -s conftest.err
5800 } && test -s conftest.$ac_objext; then
5801 ac_header_compiler=yes
5802else
5803 echo "$as_me: failed program was:" >&5
5804sed 's/^/| /' conftest.$ac_ext >&5
5805
5806 ac_header_compiler=no
5807fi
5808
5809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5810{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5811echo "${ECHO_T}$ac_header_compiler" >&6; }
5812
5813# Is the header present?
5814{ echo "$as_me:$LINENO: checking locale.h presence" >&5
5815echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
5816cat >conftest.$ac_ext <<_ACEOF
5817/* confdefs.h. */
5818_ACEOF
5819cat confdefs.h >>conftest.$ac_ext
5820cat >>conftest.$ac_ext <<_ACEOF
5821/* end confdefs.h. */
5822#include <locale.h>
5823_ACEOF
5824if { (ac_try="$ac_cpp conftest.$ac_ext"
5825case "(($ac_try" in
5826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827 *) ac_try_echo=$ac_try;;
5828esac
5829eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5831 ac_status=$?
5832 grep -v '^ *+' conftest.er1 >conftest.err
5833 rm -f conftest.er1
5834 cat conftest.err >&5
5835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836 (exit $ac_status); } >/dev/null && {
5837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5838 test ! -s conftest.err
5839 }; then
5840 ac_header_preproc=yes
5841else
5842 echo "$as_me: failed program was:" >&5
5843sed 's/^/| /' conftest.$ac_ext >&5
5844
5845 ac_header_preproc=no
5846fi
5847
5848rm -f conftest.err conftest.$ac_ext
5849{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5850echo "${ECHO_T}$ac_header_preproc" >&6; }
5851
5852# So? What about this header?
5853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5854 yes:no: )
5855 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
5856echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5857 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
5858echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
5859 ac_header_preproc=yes
5860 ;;
5861 no:yes:* )
5862 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
5863echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
5864 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
5865echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
5867echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
5869echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
5870 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
5871echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
5872 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
5873echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
5874
5875 ;;
5876esac
5877{ echo "$as_me:$LINENO: checking for locale.h" >&5
5878echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
5879if test "${ac_cv_header_locale_h+set}" = set; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881else
5882 ac_cv_header_locale_h=$ac_header_preproc
5883fi
5884{ echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
5885echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
5886
5887fi
5888if test $ac_cv_header_locale_h = yes; then
5889 cat >>confdefs.h <<\_ACEOF
5890#define HAVE_LOCALE_H 1
5891_ACEOF
5892
5893fi
5894
5895
5896if test "${ac_cv_header_langinfo_h+set}" = set; then
5897 { echo "$as_me:$LINENO: checking for langinfo.h" >&5
5898echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6; }
5899if test "${ac_cv_header_langinfo_h+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901fi
5902{ echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
5903echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6; }
5904else
5905 # Is the header compilable?
5906{ echo "$as_me:$LINENO: checking langinfo.h usability" >&5
5907echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6; }
5908cat >conftest.$ac_ext <<_ACEOF
5909/* confdefs.h. */
5910_ACEOF
5911cat confdefs.h >>conftest.$ac_ext
5912cat >>conftest.$ac_ext <<_ACEOF
5913/* end confdefs.h. */
5914$ac_includes_default
5915#include <langinfo.h>
5916_ACEOF
5917rm -f conftest.$ac_objext
5918if { (ac_try="$ac_compile"
5919case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922esac
5923eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_compile") 2>conftest.er1
5925 ac_status=$?
5926 grep -v '^ *+' conftest.er1 >conftest.err
5927 rm -f conftest.er1
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } && {
5931 test -z "$ac_c_werror_flag" ||
5932 test ! -s conftest.err
5933 } && test -s conftest.$ac_objext; then
5934 ac_header_compiler=yes
5935else
5936 echo "$as_me: failed program was:" >&5
5937sed 's/^/| /' conftest.$ac_ext >&5
5938
5939 ac_header_compiler=no
5940fi
5941
5942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5944echo "${ECHO_T}$ac_header_compiler" >&6; }
5945
5946# Is the header present?
5947{ echo "$as_me:$LINENO: checking langinfo.h presence" >&5
5948echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6; }
5949cat >conftest.$ac_ext <<_ACEOF
5950/* confdefs.h. */
5951_ACEOF
5952cat confdefs.h >>conftest.$ac_ext
5953cat >>conftest.$ac_ext <<_ACEOF
5954/* end confdefs.h. */
5955#include <langinfo.h>
5956_ACEOF
5957if { (ac_try="$ac_cpp conftest.$ac_ext"
5958case "(($ac_try" in
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5961esac
5962eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5964 ac_status=$?
5965 grep -v '^ *+' conftest.er1 >conftest.err
5966 rm -f conftest.er1
5967 cat conftest.err >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } >/dev/null && {
5970 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5971 test ! -s conftest.err
5972 }; then
5973 ac_header_preproc=yes
5974else
5975 echo "$as_me: failed program was:" >&5
5976sed 's/^/| /' conftest.$ac_ext >&5
5977
5978 ac_header_preproc=no
5979fi
5980
5981rm -f conftest.err conftest.$ac_ext
5982{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5983echo "${ECHO_T}$ac_header_preproc" >&6; }
5984
5985# So? What about this header?
5986case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5987 yes:no: )
5988 { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
5989echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5990 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
5991echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
5992 ac_header_preproc=yes
5993 ;;
5994 no:yes:* )
5995 { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
5996echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
5997 { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
5998echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
5999 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
6000echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
6001 { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
6002echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
6003 { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
6004echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
6005 { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
6006echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
6007
6008 ;;
6009esac
6010{ echo "$as_me:$LINENO: checking for langinfo.h" >&5
6011echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6; }
6012if test "${ac_cv_header_langinfo_h+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6014else
6015 ac_cv_header_langinfo_h=$ac_header_preproc
6016fi
6017{ echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
6018echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6; }
6019
6020fi
6021if test $ac_cv_header_langinfo_h = yes; then
6022 cat >>confdefs.h <<\_ACEOF
6023#define HAVE_LANGINFO_H 1
6024_ACEOF
6025
6026fi
6027
6028
6029
6030if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6032set dummy ${ac_tool_prefix}strip; ac_word=$2
6033{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6034echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6035if test "${ac_cv_prog_STRIP+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
6038 if test -n "$STRIP"; then
6039 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052done
6053done
6054IFS=$as_save_IFS
6055
6056fi
6057fi
6058STRIP=$ac_cv_prog_STRIP
6059if test -n "$STRIP"; then
6060 { echo "$as_me:$LINENO: result: $STRIP" >&5
6061echo "${ECHO_T}$STRIP" >&6; }
6062else
6063 { echo "$as_me:$LINENO: result: no" >&5
6064echo "${ECHO_T}no" >&6; }
6065fi
6066
6067
6068fi
6069if test -z "$ac_cv_prog_STRIP"; then
6070 ac_ct_STRIP=$STRIP
6071 # Extract the first word of "strip", so it can be a program name with args.
6072set dummy strip; ac_word=$2
6073{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6075if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6077else
6078 if test -n "$ac_ct_STRIP"; then
6079 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6080else
6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088 ac_cv_prog_ac_ct_STRIP="strip"
6089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6091 fi
6092done
6093done
6094IFS=$as_save_IFS
6095
6096fi
6097fi
6098ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6099if test -n "$ac_ct_STRIP"; then
6100 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6101echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6102else
6103 { echo "$as_me:$LINENO: result: no" >&5
6104echo "${ECHO_T}no" >&6; }
6105fi
6106
6107 if test "x$ac_ct_STRIP" = x; then
6108 STRIP=":"
6109 else
6110 case $cross_compiling:$ac_tool_warned in
6111yes:)
6112{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6113whose name does not start with the host triplet. If you think this
6114configuration is useful to you, please write to [email protected]." >&5
6115echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6116whose name does not start with the host triplet. If you think this
6117configuration is useful to you, please write to [email protected]." >&2;}
6118ac_tool_warned=yes ;;
6119esac
6120 STRIP=$ac_ct_STRIP
6121 fi
6122else
6123 STRIP="$ac_cv_prog_STRIP"
6124fi
6125
6126
6127
6128
6129rpath=""
6130
6131#
6132# OpenSSL detection borrowed from stunnel
6133#
6134checkssldir() { :
6135 if test -f "$1/include/openssl/ssl.h"; then
6136 ssldir="$1"
6137 return 0
6138 fi
6139 return 1
6140}
6141{ echo "$as_me:$LINENO: checking for OpenSSL directory" >&5
6142echo $ECHO_N "checking for OpenSSL directory... $ECHO_C" >&6; }
6143
6144# Check whether --with-openssl was given.
6145if test "${with_openssl+set}" = set; then
6146 withval=$with_openssl;
6147 checkssldir "$withval"
6148
6149else
6150
6151 for maindir in /usr/local /usr/lib /usr/pkg /usr /var/ssl /opt; do
6152 for dir in $maindir $maindir/openssl $maindir/ssl; do
6153 checkssldir $dir && break 2
6154 done
6155 done
6156
6157
6158fi
6159
6160if test -z "$ssldir"; then
6161 { echo "$as_me:$LINENO: result: Not found" >&5
6162echo "${ECHO_T}Not found" >&6; }
6163 echo
6164 echo "ERROR: Could not find OpenSSL headers/libraries."
6165 if test -f /etc/debian_version; then
6166 echo "Probably you need to install the libssl-dev package."
6167 elif test -f /etc/redhat-release; then
6168 echo "Probably you need to install the openssl-devel package."
6169 fi
6170 echo "To specify a path manually, use the --with-openssl option."
6171 echo
6172 exit 1
6173fi
6174{ echo "$as_me:$LINENO: result: $ssldir" >&5
6175echo "${ECHO_T}$ssldir" >&6; }
6176
6177cat >>confdefs.h <<_ACEOF
6178#define ssldir "$ssldir"
6179_ACEOF
6180
6181
6182CFLAGS="$CFLAGS -I$ssldir/include"
6183# Check whether --enable-static-openssl was given.
6184if test "${enable_static_openssl+set}" = set; then
6185 enableval=$enable_static_openssl;
6186LIBS="$LIBS $ssldir/lib/libcrypto.a"
6187
6188else
6189
6190LIBS="$LIBS -L$ssldir/lib -lcrypto"
6191rpath="$rpath:$ssldir/lib"
6192
6193fi
6194
6195
6196
6197
6198if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6199 if test -n "$ac_tool_prefix"; then
6200 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6201set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6202{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6204if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6205 echo $ECHO_N "(cached) $ECHO_C" >&6
6206else
6207 case $PKG_CONFIG in
6208 [\\/]* | ?:[\\/]*)
6209 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6210 ;;
6211 *)
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213for as_dir in $PATH
6214do
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6219 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6222 fi
6223done
6224done
6225IFS=$as_save_IFS
6226
6227 ;;
6228esac
6229fi
6230PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6231if test -n "$PKG_CONFIG"; then
6232 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6233echo "${ECHO_T}$PKG_CONFIG" >&6; }
6234else
6235 { echo "$as_me:$LINENO: result: no" >&5
6236echo "${ECHO_T}no" >&6; }
6237fi
6238
6239
6240fi
6241if test -z "$ac_cv_path_PKG_CONFIG"; then
6242 ac_pt_PKG_CONFIG=$PKG_CONFIG
6243 # Extract the first word of "pkg-config", so it can be a program name with args.
6244set dummy pkg-config; ac_word=$2
6245{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6246echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6247if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249else
6250 case $ac_pt_PKG_CONFIG in
6251 [\\/]* | ?:[\\/]*)
6252 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6253 ;;
6254 *)
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258 IFS=$as_save_IFS
6259 test -z "$as_dir" && as_dir=.
6260 for ac_exec_ext in '' $ac_executable_extensions; do
6261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264 break 2
6265 fi
6266done
6267done
6268IFS=$as_save_IFS
6269
6270 ;;
6271esac
6272fi
6273ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6274if test -n "$ac_pt_PKG_CONFIG"; then
6275 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6276echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
6277else
6278 { echo "$as_me:$LINENO: result: no" >&5
6279echo "${ECHO_T}no" >&6; }
6280fi
6281
6282 if test "x$ac_pt_PKG_CONFIG" = x; then
6283 PKG_CONFIG=""
6284 else
6285 case $cross_compiling:$ac_tool_warned in
6286yes:)
6287{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6288whose name does not start with the host triplet. If you think this
6289configuration is useful to you, please write to [email protected]." >&5
6290echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6291whose name does not start with the host triplet. If you think this
6292configuration is useful to you, please write to [email protected]." >&2;}
6293ac_tool_warned=yes ;;
6294esac
6295 PKG_CONFIG=$ac_pt_PKG_CONFIG
6296 fi
6297else
6298 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6299fi
6300
6301fi
6302if test -n "$PKG_CONFIG"; then
6303 _pkg_min_version=0.9.0
6304 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6305echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
6306 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6307 { echo "$as_me:$LINENO: result: yes" >&5
6308echo "${ECHO_T}yes" >&6; }
6309 else
6310 { echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6; }
6312 PKG_CONFIG=""
6313 fi
6314
6315fi
6316# Check whether --enable-smartcard was given.
6317if test "${enable_smartcard+set}" = set; then
6318 enableval=$enable_smartcard;
6319 case "$OSTYPE" in
6320 darwin*)
6321 if test "${ac_cv_header_PCSC_pcsclite_h+set}" = set; then
6322 { echo "$as_me:$LINENO: checking for PCSC/pcsclite.h" >&5
6323echo $ECHO_N "checking for PCSC/pcsclite.h... $ECHO_C" >&6; }
6324if test "${ac_cv_header_PCSC_pcsclite_h+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326fi
6327{ echo "$as_me:$LINENO: result: $ac_cv_header_PCSC_pcsclite_h" >&5
6328echo "${ECHO_T}$ac_cv_header_PCSC_pcsclite_h" >&6; }
6329else
6330 # Is the header compilable?
6331{ echo "$as_me:$LINENO: checking PCSC/pcsclite.h usability" >&5
6332echo $ECHO_N "checking PCSC/pcsclite.h usability... $ECHO_C" >&6; }
6333cat >conftest.$ac_ext <<_ACEOF
6334/* confdefs.h. */
6335_ACEOF
6336cat confdefs.h >>conftest.$ac_ext
6337cat >>conftest.$ac_ext <<_ACEOF
6338/* end confdefs.h. */
6339$ac_includes_default
6340#include <PCSC/pcsclite.h>
6341_ACEOF
6342rm -f conftest.$ac_objext
6343if { (ac_try="$ac_compile"
6344case "(($ac_try" in
6345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346 *) ac_try_echo=$ac_try;;
6347esac
6348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_compile") 2>conftest.er1
6350 ac_status=$?
6351 grep -v '^ *+' conftest.er1 >conftest.err
6352 rm -f conftest.er1
6353 cat conftest.err >&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } && {
6356 test -z "$ac_c_werror_flag" ||
6357 test ! -s conftest.err
6358 } && test -s conftest.$ac_objext; then
6359 ac_header_compiler=yes
6360else
6361 echo "$as_me: failed program was:" >&5
6362sed 's/^/| /' conftest.$ac_ext >&5
6363
6364 ac_header_compiler=no
6365fi
6366
6367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6369echo "${ECHO_T}$ac_header_compiler" >&6; }
6370
6371# Is the header present?
6372{ echo "$as_me:$LINENO: checking PCSC/pcsclite.h presence" >&5
6373echo $ECHO_N "checking PCSC/pcsclite.h presence... $ECHO_C" >&6; }
6374cat >conftest.$ac_ext <<_ACEOF
6375/* confdefs.h. */
6376_ACEOF
6377cat confdefs.h >>conftest.$ac_ext
6378cat >>conftest.$ac_ext <<_ACEOF
6379/* end confdefs.h. */
6380#include <PCSC/pcsclite.h>
6381_ACEOF
6382if { (ac_try="$ac_cpp conftest.$ac_ext"
6383case "(($ac_try" in
6384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6385 *) ac_try_echo=$ac_try;;
6386esac
6387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6389 ac_status=$?
6390 grep -v '^ *+' conftest.er1 >conftest.err
6391 rm -f conftest.er1
6392 cat conftest.err >&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); } >/dev/null && {
6395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6396 test ! -s conftest.err
6397 }; then
6398 ac_header_preproc=yes
6399else
6400 echo "$as_me: failed program was:" >&5
6401sed 's/^/| /' conftest.$ac_ext >&5
6402
6403 ac_header_preproc=no
6404fi
6405
6406rm -f conftest.err conftest.$ac_ext
6407{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6408echo "${ECHO_T}$ac_header_preproc" >&6; }
6409
6410# So? What about this header?
6411case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6412 yes:no: )
6413 { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: accepted by the compiler, rejected by the preprocessor!" >&5
6414echo "$as_me: WARNING: PCSC/pcsclite.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: proceeding with the compiler's result" >&5
6416echo "$as_me: WARNING: PCSC/pcsclite.h: proceeding with the compiler's result" >&2;}
6417 ac_header_preproc=yes
6418 ;;
6419 no:yes:* )
6420 { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: present but cannot be compiled" >&5
6421echo "$as_me: WARNING: PCSC/pcsclite.h: present but cannot be compiled" >&2;}
6422 { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: check for missing prerequisite headers?" >&5
6423echo "$as_me: WARNING: PCSC/pcsclite.h: check for missing prerequisite headers?" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: see the Autoconf documentation" >&5
6425echo "$as_me: WARNING: PCSC/pcsclite.h: see the Autoconf documentation" >&2;}
6426 { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: section \"Present But Cannot Be Compiled\"" >&5
6427echo "$as_me: WARNING: PCSC/pcsclite.h: section \"Present But Cannot Be Compiled\"" >&2;}
6428 { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: proceeding with the preprocessor's result" >&5
6429echo "$as_me: WARNING: PCSC/pcsclite.h: proceeding with the preprocessor's result" >&2;}
6430 { echo "$as_me:$LINENO: WARNING: PCSC/pcsclite.h: in the future, the compiler will take precedence" >&5
6431echo "$as_me: WARNING: PCSC/pcsclite.h: in the future, the compiler will take precedence" >&2;}
6432
6433 ;;
6434esac
6435{ echo "$as_me:$LINENO: checking for PCSC/pcsclite.h" >&5
6436echo $ECHO_N "checking for PCSC/pcsclite.h... $ECHO_C" >&6; }
6437if test "${ac_cv_header_PCSC_pcsclite_h+set}" = set; then
6438 echo $ECHO_N "(cached) $ECHO_C" >&6
6439else
6440 ac_cv_header_PCSC_pcsclite_h=$ac_header_preproc
6441fi
6442{ echo "$as_me:$LINENO: result: $ac_cv_header_PCSC_pcsclite_h" >&5
6443echo "${ECHO_T}$ac_cv_header_PCSC_pcsclite_h" >&6; }
6444
6445fi
6446if test $ac_cv_header_PCSC_pcsclite_h = yes; then
6447 WITH_SCARD=1
6448else
6449 WITH_SCARD=0
6450fi
6451
6452
6453 PCSCLITE_CFLAGS=""
6454 PCSCLITE_LIBS="-framework PCSC"
6455 ;;
6456 *)
6457 if test -n "$PKG_CONFIG"; then
6458
6459pkg_failed=no
6460{ echo "$as_me:$LINENO: checking for PCSCLITE" >&5
6461echo $ECHO_N "checking for PCSCLITE... $ECHO_C" >&6; }
6462
6463if test -n "$PKG_CONFIG"; then
6464 if test -n "$PCSCLITE_CFLAGS"; then
6465 pkg_cv_PCSCLITE_CFLAGS="$PCSCLITE_CFLAGS"
6466 else
6467 if test -n "$PKG_CONFIG" && \
6468 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcsclite\"") >&5
6469 ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
6470 ac_status=$?
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; then
6473 pkg_cv_PCSCLITE_CFLAGS=`$PKG_CONFIG --cflags "libpcsclite" 2>/dev/null`
6474else
6475 pkg_failed=yes
6476fi
6477 fi
6478else
6479 pkg_failed=untried
6480fi
6481if test -n "$PKG_CONFIG"; then
6482 if test -n "$PCSCLITE_LIBS"; then
6483 pkg_cv_PCSCLITE_LIBS="$PCSCLITE_LIBS"
6484 else
6485 if test -n "$PKG_CONFIG" && \
6486 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libpcsclite\"") >&5
6487 ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
6488 ac_status=$?
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; then
6491 pkg_cv_PCSCLITE_LIBS=`$PKG_CONFIG --libs "libpcsclite" 2>/dev/null`
6492else
6493 pkg_failed=yes
6494fi
6495 fi
6496else
6497 pkg_failed=untried
6498fi
6499
6500
6501
6502if test $pkg_failed = yes; then
6503
6504if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6505 _pkg_short_errors_supported=yes
6506else
6507 _pkg_short_errors_supported=no
6508fi
6509 if test $_pkg_short_errors_supported = yes; then
6510 PCSCLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libpcsclite"`
6511 else
6512 PCSCLITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpcsclite"`
6513 fi
6514 # Put the nasty error message in config.log where it belongs
6515 echo "$PCSCLITE_PKG_ERRORS" >&5
6516
6517 { echo "$as_me:$LINENO: result: no" >&5
6518echo "${ECHO_T}no" >&6; }
6519 WITH_SCARD=0
6520elif test $pkg_failed = untried; then
6521 WITH_SCARD=0
6522else
6523 PCSCLITE_CFLAGS=$pkg_cv_PCSCLITE_CFLAGS
6524 PCSCLITE_LIBS=$pkg_cv_PCSCLITE_LIBS
6525 { echo "$as_me:$LINENO: result: yes" >&5
6526echo "${ECHO_T}yes" >&6; }
6527 WITH_SCARD=1
6528fi
6529 fi
6530 ;;
6531 esac
6532
6533 if test x"$WITH_SCARD" = "x1"; then
6534 SCARDOBJ="scard.o"
6535 CFLAGS="$CFLAGS $PCSCLITE_CFLAGS"
6536 LIBS="$LIBS $PCSCLITE_LIBS"
6537 cat >>confdefs.h <<\_ACEOF
6538#define WITH_SCARD 1
6539_ACEOF
6540
6541 fi
6542
6543 { echo "$as_me:$LINENO: checking for old version of PCSC" >&5
6544echo $ECHO_N "checking for old version of PCSC... $ECHO_C" >&6; }
6545 cat >conftest.$ac_ext <<_ACEOF
6546/* confdefs.h. */
6547_ACEOF
6548cat confdefs.h >>conftest.$ac_ext
6549cat >>conftest.$ac_ext <<_ACEOF
6550/* end confdefs.h. */
6551
6552 #include <stdlib.h>
6553 #ifdef __APPLE__
6554 #include <PCSC/wintypes.h>
6555 #include <PCSC/winscard.h>
6556 #else
6557 #include <winscard.h>
6558 #endif
6559
6560int
6561main ()
6562{
6563SCardControl(NULL, NULL, 0, NULL, NULL);
6564 ;
6565 return 0;
6566}
6567_ACEOF
6568rm -f conftest.$ac_objext conftest$ac_exeext
6569if { (ac_try="$ac_link"
6570case "(($ac_try" in
6571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6573esac
6574eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575 (eval "$ac_link") 2>conftest.er1
6576 ac_status=$?
6577 grep -v '^ *+' conftest.er1 >conftest.err
6578 rm -f conftest.er1
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } && {
6582 test -z "$ac_c_werror_flag" ||
6583 test ! -s conftest.err
6584 } && test -s conftest$ac_exeext &&
6585 $as_test_x conftest$ac_exeext; then
6586 { echo "$as_me:$LINENO: result: yes" >&5
6587echo "${ECHO_T}yes" >&6; }
6588cat >>confdefs.h <<\_ACEOF
6589#define WITH_PCSC120 1
6590_ACEOF
6591
6592else
6593 echo "$as_me: failed program was:" >&5
6594sed 's/^/| /' conftest.$ac_ext >&5
6595
6596 { echo "$as_me:$LINENO: result: no" >&5
6597echo "${ECHO_T}no" >&6; }
6598
6599fi
6600
6601rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6602 conftest$ac_exeext conftest.$ac_ext
6603
6604fi
6605
6606
6607
6608
6609#
6610# Alignment
6611#
6612{ echo "$as_me:$LINENO: checking if architecture needs alignment" >&5
6613echo $ECHO_N "checking if architecture needs alignment... $ECHO_C" >&6; }
6614if test "$cross_compiling" = yes; then
6615 { echo "$as_me:$LINENO: result: assuming yes" >&5
6616echo "${ECHO_T}assuming yes" >&6; }
6617 cat >>confdefs.h <<\_ACEOF
6618#define NEED_ALIGN 1
6619_ACEOF
6620
6621else
6622 cat >conftest.$ac_ext <<_ACEOF
6623/* confdefs.h. */
6624_ACEOF
6625cat confdefs.h >>conftest.$ac_ext
6626cat >>conftest.$ac_ext <<_ACEOF
6627/* end confdefs.h. */
6628
6629#include <stdlib.h>
6630#include <signal.h>
6631int main(int argc, char **argv)
6632{
6633 unsigned char test[8] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 };
6634 signal(SIGBUS, exit);
6635 signal(SIGABRT, exit);
6636 signal(SIGSEGV, exit);
6637 if (*((unsigned int *)(test + 1)) != 0x55443322 && *((unsigned int *)(test + 1)) != 0x22334455) {
6638 return 1;
6639 }
6640 return 0;
6641}
6642_ACEOF
6643rm -f conftest$ac_exeext
6644if { (ac_try="$ac_link"
6645case "(($ac_try" in
6646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6647 *) ac_try_echo=$ac_try;;
6648esac
6649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6650 (eval "$ac_link") 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6654 { (case "(($ac_try" in
6655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6656 *) ac_try_echo=$ac_try;;
6657esac
6658eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6659 (eval "$ac_try") 2>&5
6660 ac_status=$?
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); }; }; then
6663 { echo "$as_me:$LINENO: result: no" >&5
6664echo "${ECHO_T}no" >&6; }
6665else
6666 echo "$as_me: program exited with status $ac_status" >&5
6667echo "$as_me: failed program was:" >&5
6668sed 's/^/| /' conftest.$ac_ext >&5
6669
6670( exit $ac_status )
6671{ echo "$as_me:$LINENO: result: yes" >&5
6672echo "${ECHO_T}yes" >&6; }
6673 cat >>confdefs.h <<\_ACEOF
6674#define NEED_ALIGN 1
6675_ACEOF
6676
6677fi
6678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6679fi
6680
6681
6682
6683#
6684# linux/compiler.h
6685#
6686echo "$as_me:$LINENO: checking if linux/compiler.h is required" >&5
6687echo $ECHO_N "checking if linux/compiler.h is required... $ECHO_C" >&6
6688cat >conftest.$ac_ext <<_ACEOF
6689/* confdefs.h. */
6690_ACEOF
6691cat confdefs.h >>conftest.$ac_ext
6692cat >>conftest.$ac_ext <<_ACEOF
6693/* end confdefs.h. */
6694
6695#include <linux/compiler.h>
6696
6697int
6698main ()
6699{
6700
6701 ;
6702 return 0;
6703}
6704_ACEOF
6705rm -f conftest.$ac_objext
6706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6707 (eval $ac_compile) 2>conftest.er1
6708 ac_status=$?
6709 grep -v '^ *+' conftest.er1 >conftest.err
6710 rm -f conftest.er1
6711 cat conftest.err >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); } &&
6714 { ac_try='test -z "$ac_c_werror_flag"
6715 || test ! -s conftest.err'
6716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 (eval $ac_try) 2>&5
6718 ac_status=$?
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); }; } &&
6721 { ac_try='test -s conftest.$ac_objext'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6723 (eval $ac_try) 2>&5
6724 ac_status=$?
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; }; then
6727 echo "$as_me:$LINENO: result: yes" >&5
6728echo "${ECHO_T}yes" >&6
6729 cat >>confdefs.h <<\_ACEOF
6730#define VBOX_WITH_LINUX_COMPILER_H 1
6731_ACEOF
6732
6733else
6734 echo "$as_me: failed program was:" >&5
6735sed 's/^/| /' conftest.$ac_ext >&5
6736
6737echo "$as_me:$LINENO: result: no" >&5
6738echo "${ECHO_T}no" >&6
6739
6740fi
6741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6742
6743
6744
6745#
6746# EGD
6747#
6748
6749# Check whether --with-egd-socket was given.
6750if test "${with_egd_socket+set}" = set; then
6751 withval=$with_egd_socket; EGD_SOCKET="$withval"
6752else
6753 EGD_SOCKET="/var/run/egd-pool"
6754
6755fi
6756
6757cat >>confdefs.h <<_ACEOF
6758#define EGD_SOCKET "$EGD_SOCKET"
6759_ACEOF
6760
6761
6762
6763#
6764# rdp2vnc
6765#
6766vncserverconfig=libvncserver-config
6767
6768# Check whether --with-libvncserver-config was given.
6769if test "${with_libvncserver_config+set}" = set; then
6770 withval=$with_libvncserver_config; vncserverconfig="$withval"
6771
6772fi
6773
6774
6775# Check whether --with-libvncserver was given.
6776if test "${with_libvncserver+set}" = set; then
6777 withval=$with_libvncserver;
6778 VNCINC=`$vncserverconfig --cflags`
6779
6780 LDVNC=`$vncserverconfig --libs`
6781
6782 VNCLINK=`$vncserverconfig --link`
6783
6784 RDP2VNCTARGET="rdp2vnc"
6785
6786
6787
6788fi
6789
6790
6791#
6792# sound
6793#
6794
6795sound="yes"
6796
6797# Check whether --with-sound was given.
6798if test "${with_sound+set}" = set; then
6799 withval=$with_sound;
6800 sound="$withval"
6801
6802fi
6803
6804
6805if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
6806 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
6807echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
6808if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810fi
6811{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
6812echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
6813else
6814 # Is the header compilable?
6815{ echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
6816echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
6817cat >conftest.$ac_ext <<_ACEOF
6818/* confdefs.h. */
6819_ACEOF
6820cat confdefs.h >>conftest.$ac_ext
6821cat >>conftest.$ac_ext <<_ACEOF
6822/* end confdefs.h. */
6823$ac_includes_default
6824#include <sys/soundcard.h>
6825_ACEOF
6826rm -f conftest.$ac_objext
6827if { (ac_try="$ac_compile"
6828case "(($ac_try" in
6829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6831esac
6832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_compile") 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && {
6840 test -z "$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6842 } && test -s conftest.$ac_objext; then
6843 ac_header_compiler=yes
6844else
6845 echo "$as_me: failed program was:" >&5
6846sed 's/^/| /' conftest.$ac_ext >&5
6847
6848 ac_header_compiler=no
6849fi
6850
6851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6852{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6853echo "${ECHO_T}$ac_header_compiler" >&6; }
6854
6855# Is the header present?
6856{ echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
6857echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
6858cat >conftest.$ac_ext <<_ACEOF
6859/* confdefs.h. */
6860_ACEOF
6861cat confdefs.h >>conftest.$ac_ext
6862cat >>conftest.$ac_ext <<_ACEOF
6863/* end confdefs.h. */
6864#include <sys/soundcard.h>
6865_ACEOF
6866if { (ac_try="$ac_cpp conftest.$ac_ext"
6867case "(($ac_try" in
6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6870esac
6871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6873 ac_status=$?
6874 grep -v '^ *+' conftest.er1 >conftest.err
6875 rm -f conftest.er1
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } >/dev/null && {
6879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6880 test ! -s conftest.err
6881 }; then
6882 ac_header_preproc=yes
6883else
6884 echo "$as_me: failed program was:" >&5
6885sed 's/^/| /' conftest.$ac_ext >&5
6886
6887 ac_header_preproc=no
6888fi
6889
6890rm -f conftest.err conftest.$ac_ext
6891{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6892echo "${ECHO_T}$ac_header_preproc" >&6; }
6893
6894# So? What about this header?
6895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6896 yes:no: )
6897 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
6898echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6899 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
6900echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
6901 ac_header_preproc=yes
6902 ;;
6903 no:yes:* )
6904 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
6905echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
6906 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
6907echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
6908 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
6909echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
6910 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
6911echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
6912 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
6913echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
6914 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
6915echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
6916
6917 ;;
6918esac
6919{ echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
6920echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
6921if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
6922 echo $ECHO_N "(cached) $ECHO_C" >&6
6923else
6924 ac_cv_header_sys_soundcard_h=$ac_header_preproc
6925fi
6926{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
6927echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
6928
6929fi
6930if test $ac_cv_header_sys_soundcard_h = yes; then
6931 HAVE_OSS=1
6932else
6933 HAVE_OSS=0
6934fi
6935
6936
6937if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
6938 { echo "$as_me:$LINENO: checking for dmedia/audio.h" >&5
6939echo $ECHO_N "checking for dmedia/audio.h... $ECHO_C" >&6; }
6940if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942fi
6943{ echo "$as_me:$LINENO: result: $ac_cv_header_dmedia_audio_h" >&5
6944echo "${ECHO_T}$ac_cv_header_dmedia_audio_h" >&6; }
6945else
6946 # Is the header compilable?
6947{ echo "$as_me:$LINENO: checking dmedia/audio.h usability" >&5
6948echo $ECHO_N "checking dmedia/audio.h usability... $ECHO_C" >&6; }
6949cat >conftest.$ac_ext <<_ACEOF
6950/* confdefs.h. */
6951_ACEOF
6952cat confdefs.h >>conftest.$ac_ext
6953cat >>conftest.$ac_ext <<_ACEOF
6954/* end confdefs.h. */
6955$ac_includes_default
6956#include <dmedia/audio.h>
6957_ACEOF
6958rm -f conftest.$ac_objext
6959if { (ac_try="$ac_compile"
6960case "(($ac_try" in
6961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6962 *) ac_try_echo=$ac_try;;
6963esac
6964eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6965 (eval "$ac_compile") 2>conftest.er1
6966 ac_status=$?
6967 grep -v '^ *+' conftest.er1 >conftest.err
6968 rm -f conftest.er1
6969 cat conftest.err >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } && {
6972 test -z "$ac_c_werror_flag" ||
6973 test ! -s conftest.err
6974 } && test -s conftest.$ac_objext; then
6975 ac_header_compiler=yes
6976else
6977 echo "$as_me: failed program was:" >&5
6978sed 's/^/| /' conftest.$ac_ext >&5
6979
6980 ac_header_compiler=no
6981fi
6982
6983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6985echo "${ECHO_T}$ac_header_compiler" >&6; }
6986
6987# Is the header present?
6988{ echo "$as_me:$LINENO: checking dmedia/audio.h presence" >&5
6989echo $ECHO_N "checking dmedia/audio.h presence... $ECHO_C" >&6; }
6990cat >conftest.$ac_ext <<_ACEOF
6991/* confdefs.h. */
6992_ACEOF
6993cat confdefs.h >>conftest.$ac_ext
6994cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h. */
6996#include <dmedia/audio.h>
6997_ACEOF
6998if { (ac_try="$ac_cpp conftest.$ac_ext"
6999case "(($ac_try" in
7000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001 *) ac_try_echo=$ac_try;;
7002esac
7003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7005 ac_status=$?
7006 grep -v '^ *+' conftest.er1 >conftest.err
7007 rm -f conftest.er1
7008 cat conftest.err >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } >/dev/null && {
7011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7012 test ! -s conftest.err
7013 }; then
7014 ac_header_preproc=yes
7015else
7016 echo "$as_me: failed program was:" >&5
7017sed 's/^/| /' conftest.$ac_ext >&5
7018
7019 ac_header_preproc=no
7020fi
7021
7022rm -f conftest.err conftest.$ac_ext
7023{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7024echo "${ECHO_T}$ac_header_preproc" >&6; }
7025
7026# So? What about this header?
7027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7028 yes:no: )
7029 { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: accepted by the compiler, rejected by the preprocessor!" >&5
7030echo "$as_me: WARNING: dmedia/audio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7031 { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: proceeding with the compiler's result" >&5
7032echo "$as_me: WARNING: dmedia/audio.h: proceeding with the compiler's result" >&2;}
7033 ac_header_preproc=yes
7034 ;;
7035 no:yes:* )
7036 { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: present but cannot be compiled" >&5
7037echo "$as_me: WARNING: dmedia/audio.h: present but cannot be compiled" >&2;}
7038 { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: check for missing prerequisite headers?" >&5
7039echo "$as_me: WARNING: dmedia/audio.h: check for missing prerequisite headers?" >&2;}
7040 { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: see the Autoconf documentation" >&5
7041echo "$as_me: WARNING: dmedia/audio.h: see the Autoconf documentation" >&2;}
7042 { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: section \"Present But Cannot Be Compiled\"" >&5
7043echo "$as_me: WARNING: dmedia/audio.h: section \"Present But Cannot Be Compiled\"" >&2;}
7044 { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: proceeding with the preprocessor's result" >&5
7045echo "$as_me: WARNING: dmedia/audio.h: proceeding with the preprocessor's result" >&2;}
7046 { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: in the future, the compiler will take precedence" >&5
7047echo "$as_me: WARNING: dmedia/audio.h: in the future, the compiler will take precedence" >&2;}
7048
7049 ;;
7050esac
7051{ echo "$as_me:$LINENO: checking for dmedia/audio.h" >&5
7052echo $ECHO_N "checking for dmedia/audio.h... $ECHO_C" >&6; }
7053if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7055else
7056 ac_cv_header_dmedia_audio_h=$ac_header_preproc
7057fi
7058{ echo "$as_me:$LINENO: result: $ac_cv_header_dmedia_audio_h" >&5
7059echo "${ECHO_T}$ac_cv_header_dmedia_audio_h" >&6; }
7060
7061fi
7062if test $ac_cv_header_dmedia_audio_h = yes; then
7063 HAVE_SGI=1
7064else
7065 HAVE_SGI=0
7066fi
7067
7068
7069if test "${ac_cv_header_sys_audioio_h+set}" = set; then
7070 { echo "$as_me:$LINENO: checking for sys/audioio.h" >&5
7071echo $ECHO_N "checking for sys/audioio.h... $ECHO_C" >&6; }
7072if test "${ac_cv_header_sys_audioio_h+set}" = set; then
7073 echo $ECHO_N "(cached) $ECHO_C" >&6
7074fi
7075{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_audioio_h" >&5
7076echo "${ECHO_T}$ac_cv_header_sys_audioio_h" >&6; }
7077else
7078 # Is the header compilable?
7079{ echo "$as_me:$LINENO: checking sys/audioio.h usability" >&5
7080echo $ECHO_N "checking sys/audioio.h usability... $ECHO_C" >&6; }
7081cat >conftest.$ac_ext <<_ACEOF
7082/* confdefs.h. */
7083_ACEOF
7084cat confdefs.h >>conftest.$ac_ext
7085cat >>conftest.$ac_ext <<_ACEOF
7086/* end confdefs.h. */
7087$ac_includes_default
7088#include <sys/audioio.h>
7089_ACEOF
7090rm -f conftest.$ac_objext
7091if { (ac_try="$ac_compile"
7092case "(($ac_try" in
7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094 *) ac_try_echo=$ac_try;;
7095esac
7096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7097 (eval "$ac_compile") 2>conftest.er1
7098 ac_status=$?
7099 grep -v '^ *+' conftest.er1 >conftest.err
7100 rm -f conftest.er1
7101 cat conftest.err >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103 (exit $ac_status); } && {
7104 test -z "$ac_c_werror_flag" ||
7105 test ! -s conftest.err
7106 } && test -s conftest.$ac_objext; then
7107 ac_header_compiler=yes
7108else
7109 echo "$as_me: failed program was:" >&5
7110sed 's/^/| /' conftest.$ac_ext >&5
7111
7112 ac_header_compiler=no
7113fi
7114
7115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7116{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7117echo "${ECHO_T}$ac_header_compiler" >&6; }
7118
7119# Is the header present?
7120{ echo "$as_me:$LINENO: checking sys/audioio.h presence" >&5
7121echo $ECHO_N "checking sys/audioio.h presence... $ECHO_C" >&6; }
7122cat >conftest.$ac_ext <<_ACEOF
7123/* confdefs.h. */
7124_ACEOF
7125cat confdefs.h >>conftest.$ac_ext
7126cat >>conftest.$ac_ext <<_ACEOF
7127/* end confdefs.h. */
7128#include <sys/audioio.h>
7129_ACEOF
7130if { (ac_try="$ac_cpp conftest.$ac_ext"
7131case "(($ac_try" in
7132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7133 *) ac_try_echo=$ac_try;;
7134esac
7135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7137 ac_status=$?
7138 grep -v '^ *+' conftest.er1 >conftest.err
7139 rm -f conftest.er1
7140 cat conftest.err >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } >/dev/null && {
7143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7144 test ! -s conftest.err
7145 }; then
7146 ac_header_preproc=yes
7147else
7148 echo "$as_me: failed program was:" >&5
7149sed 's/^/| /' conftest.$ac_ext >&5
7150
7151 ac_header_preproc=no
7152fi
7153
7154rm -f conftest.err conftest.$ac_ext
7155{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7156echo "${ECHO_T}$ac_header_preproc" >&6; }
7157
7158# So? What about this header?
7159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7160 yes:no: )
7161 { echo "$as_me:$LINENO: WARNING: sys/audioio.h: accepted by the compiler, rejected by the preprocessor!" >&5
7162echo "$as_me: WARNING: sys/audioio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7163 { echo "$as_me:$LINENO: WARNING: sys/audioio.h: proceeding with the compiler's result" >&5
7164echo "$as_me: WARNING: sys/audioio.h: proceeding with the compiler's result" >&2;}
7165 ac_header_preproc=yes
7166 ;;
7167 no:yes:* )
7168 { echo "$as_me:$LINENO: WARNING: sys/audioio.h: present but cannot be compiled" >&5
7169echo "$as_me: WARNING: sys/audioio.h: present but cannot be compiled" >&2;}
7170 { echo "$as_me:$LINENO: WARNING: sys/audioio.h: check for missing prerequisite headers?" >&5
7171echo "$as_me: WARNING: sys/audioio.h: check for missing prerequisite headers?" >&2;}
7172 { echo "$as_me:$LINENO: WARNING: sys/audioio.h: see the Autoconf documentation" >&5
7173echo "$as_me: WARNING: sys/audioio.h: see the Autoconf documentation" >&2;}
7174 { echo "$as_me:$LINENO: WARNING: sys/audioio.h: section \"Present But Cannot Be Compiled\"" >&5
7175echo "$as_me: WARNING: sys/audioio.h: section \"Present But Cannot Be Compiled\"" >&2;}
7176 { echo "$as_me:$LINENO: WARNING: sys/audioio.h: proceeding with the preprocessor's result" >&5
7177echo "$as_me: WARNING: sys/audioio.h: proceeding with the preprocessor's result" >&2;}
7178 { echo "$as_me:$LINENO: WARNING: sys/audioio.h: in the future, the compiler will take precedence" >&5
7179echo "$as_me: WARNING: sys/audioio.h: in the future, the compiler will take precedence" >&2;}
7180
7181 ;;
7182esac
7183{ echo "$as_me:$LINENO: checking for sys/audioio.h" >&5
7184echo $ECHO_N "checking for sys/audioio.h... $ECHO_C" >&6; }
7185if test "${ac_cv_header_sys_audioio_h+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7187else
7188 ac_cv_header_sys_audioio_h=$ac_header_preproc
7189fi
7190{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_audioio_h" >&5
7191echo "${ECHO_T}$ac_cv_header_sys_audioio_h" >&6; }
7192
7193fi
7194if test $ac_cv_header_sys_audioio_h = yes; then
7195 HAVE_SUN=1
7196else
7197 HAVE_SUN=0
7198fi
7199
7200
7201
7202# Check whether --enable-static-libsamplerate was given.
7203if test "${enable_static_libsamplerate+set}" = set; then
7204 enableval=$enable_static_libsamplerate; static_libsamplerate=yes
7205else
7206 static_libsamplerate=no
7207fi
7208
7209
7210if test -n "$PKG_CONFIG"; then
7211
7212pkg_failed=no
7213{ echo "$as_me:$LINENO: checking for LIBAO" >&5
7214echo $ECHO_N "checking for LIBAO... $ECHO_C" >&6; }
7215
7216if test -n "$PKG_CONFIG"; then
7217 if test -n "$LIBAO_CFLAGS"; then
7218 pkg_cv_LIBAO_CFLAGS="$LIBAO_CFLAGS"
7219 else
7220 if test -n "$PKG_CONFIG" && \
7221 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ao\"") >&5
7222 ($PKG_CONFIG --exists --print-errors "ao") 2>&5
7223 ac_status=$?
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }; then
7226 pkg_cv_LIBAO_CFLAGS=`$PKG_CONFIG --cflags "ao" 2>/dev/null`
7227else
7228 pkg_failed=yes
7229fi
7230 fi
7231else
7232 pkg_failed=untried
7233fi
7234if test -n "$PKG_CONFIG"; then
7235 if test -n "$LIBAO_LIBS"; then
7236 pkg_cv_LIBAO_LIBS="$LIBAO_LIBS"
7237 else
7238 if test -n "$PKG_CONFIG" && \
7239 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"ao\"") >&5
7240 ($PKG_CONFIG --exists --print-errors "ao") 2>&5
7241 ac_status=$?
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); }; then
7244 pkg_cv_LIBAO_LIBS=`$PKG_CONFIG --libs "ao" 2>/dev/null`
7245else
7246 pkg_failed=yes
7247fi
7248 fi
7249else
7250 pkg_failed=untried
7251fi
7252
7253
7254
7255if test $pkg_failed = yes; then
7256
7257if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7258 _pkg_short_errors_supported=yes
7259else
7260 _pkg_short_errors_supported=no
7261fi
7262 if test $_pkg_short_errors_supported = yes; then
7263 LIBAO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "ao"`
7264 else
7265 LIBAO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "ao"`
7266 fi
7267 # Put the nasty error message in config.log where it belongs
7268 echo "$LIBAO_PKG_ERRORS" >&5
7269
7270 { echo "$as_me:$LINENO: result: no" >&5
7271echo "${ECHO_T}no" >&6; }
7272 HAVE_LIBAO=0
7273elif test $pkg_failed = untried; then
7274 HAVE_LIBAO=0
7275else
7276 LIBAO_CFLAGS=$pkg_cv_LIBAO_CFLAGS
7277 LIBAO_LIBS=$pkg_cv_LIBAO_LIBS
7278 { echo "$as_me:$LINENO: result: yes" >&5
7279echo "${ECHO_T}yes" >&6; }
7280 HAVE_LIBAO=1
7281fi
7282
7283pkg_failed=no
7284{ echo "$as_me:$LINENO: checking for ALSA" >&5
7285echo $ECHO_N "checking for ALSA... $ECHO_C" >&6; }
7286
7287if test -n "$PKG_CONFIG"; then
7288 if test -n "$ALSA_CFLAGS"; then
7289 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
7290 else
7291 if test -n "$PKG_CONFIG" && \
7292 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
7293 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
7294 ac_status=$?
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); }; then
7297 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
7298else
7299 pkg_failed=yes
7300fi
7301 fi
7302else
7303 pkg_failed=untried
7304fi
7305if test -n "$PKG_CONFIG"; then
7306 if test -n "$ALSA_LIBS"; then
7307 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
7308 else
7309 if test -n "$PKG_CONFIG" && \
7310 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"alsa\"") >&5
7311 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
7312 ac_status=$?
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); }; then
7315 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
7316else
7317 pkg_failed=yes
7318fi
7319 fi
7320else
7321 pkg_failed=untried
7322fi
7323
7324
7325
7326if test $pkg_failed = yes; then
7327
7328if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7329 _pkg_short_errors_supported=yes
7330else
7331 _pkg_short_errors_supported=no
7332fi
7333 if test $_pkg_short_errors_supported = yes; then
7334 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "alsa"`
7335 else
7336 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "alsa"`
7337 fi
7338 # Put the nasty error message in config.log where it belongs
7339 echo "$ALSA_PKG_ERRORS" >&5
7340
7341 { echo "$as_me:$LINENO: result: no" >&5
7342echo "${ECHO_T}no" >&6; }
7343 HAVE_ALSA=0
7344elif test $pkg_failed = untried; then
7345 HAVE_ALSA=0
7346else
7347 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
7348 ALSA_LIBS=$pkg_cv_ALSA_LIBS
7349 { echo "$as_me:$LINENO: result: yes" >&5
7350echo "${ECHO_T}yes" >&6; }
7351 HAVE_ALSA=1
7352fi
7353
7354pkg_failed=no
7355{ echo "$as_me:$LINENO: checking for LIBSAMPLERATE" >&5
7356echo $ECHO_N "checking for LIBSAMPLERATE... $ECHO_C" >&6; }
7357
7358if test -n "$PKG_CONFIG"; then
7359 if test -n "$LIBSAMPLERATE_CFLAGS"; then
7360 pkg_cv_LIBSAMPLERATE_CFLAGS="$LIBSAMPLERATE_CFLAGS"
7361 else
7362 if test -n "$PKG_CONFIG" && \
7363 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate\"") >&5
7364 ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
7365 ac_status=$?
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; then
7368 pkg_cv_LIBSAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate" 2>/dev/null`
7369else
7370 pkg_failed=yes
7371fi
7372 fi
7373else
7374 pkg_failed=untried
7375fi
7376if test -n "$PKG_CONFIG"; then
7377 if test -n "$LIBSAMPLERATE_LIBS"; then
7378 pkg_cv_LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS"
7379 else
7380 if test -n "$PKG_CONFIG" && \
7381 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"samplerate\"") >&5
7382 ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
7383 ac_status=$?
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; then
7386 pkg_cv_LIBSAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate" 2>/dev/null`
7387else
7388 pkg_failed=yes
7389fi
7390 fi
7391else
7392 pkg_failed=untried
7393fi
7394
7395
7396
7397if test $pkg_failed = yes; then
7398
7399if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7400 _pkg_short_errors_supported=yes
7401else
7402 _pkg_short_errors_supported=no
7403fi
7404 if test $_pkg_short_errors_supported = yes; then
7405 LIBSAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "samplerate"`
7406 else
7407 LIBSAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "samplerate"`
7408 fi
7409 # Put the nasty error message in config.log where it belongs
7410 echo "$LIBSAMPLERATE_PKG_ERRORS" >&5
7411
7412 { echo "$as_me:$LINENO: result: no" >&5
7413echo "${ECHO_T}no" >&6; }
7414 HAVE_LIBSAMPLERATE=0
7415elif test $pkg_failed = untried; then
7416 HAVE_LIBSAMPLERATE=0
7417else
7418 LIBSAMPLERATE_CFLAGS=$pkg_cv_LIBSAMPLERATE_CFLAGS
7419 LIBSAMPLERATE_LIBS=$pkg_cv_LIBSAMPLERATE_LIBS
7420 { echo "$as_me:$LINENO: result: yes" >&5
7421echo "${ECHO_T}yes" >&6; }
7422 HAVE_LIBSAMPLERATE=1
7423fi
7424 if test x"$HAVE_LIBSAMPLERATE" = "x1"; then
7425 cat >>confdefs.h <<\_ACEOF
7426#define HAVE_LIBSAMPLERATE 1
7427_ACEOF
7428
7429 if test x"$static_libsamplerate" = "xyes"; then
7430 _libsamplerate_libdir=`$PKG_CONFIG --errors-to-stdout --variable=libdir samplerate`
7431 LIBSAMPLERATE_LIBS="$_libsamplerate_libdir""/libsamplerate.a"
7432 fi
7433 LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS -lm"
7434 fi
7435fi
7436
7437if test "$sound" != "no"; then
7438 SOUNDOBJ="$SOUNDOBJ rdpsnd.o rdpsnd_dsp.o"
7439 CFLAGS="$CFLAGS $LIBSAMPLERATE_CFLAGS"
7440 LIBS="$LIBS $LIBSAMPLERATE_LIBS"
7441 cat >>confdefs.h <<\_ACEOF
7442#define WITH_RDPSND 1
7443_ACEOF
7444
7445fi
7446
7447case $sound in
7448 yes)
7449 if test x"$HAVE_OSS" = "x1"; then
7450 SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
7451 cat >>confdefs.h <<\_ACEOF
7452#define RDPSND_OSS 1
7453_ACEOF
7454
7455 fi
7456
7457 if test x"$HAVE_SGI" = "x1"; then
7458 SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
7459 LIBS="$LIBS -laudio"
7460 cat >>confdefs.h <<\_ACEOF
7461#define RDPSND_SGI 1
7462_ACEOF
7463
7464 fi
7465
7466 if test x"$HAVE_SUN" = "x1"; then
7467 SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
7468 cat >>confdefs.h <<\_ACEOF
7469#define RDPSND_SUN 1
7470_ACEOF
7471
7472 fi
7473
7474 if test x"$HAVE_ALSA" = "x1"; then
7475 SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
7476 CFLAGS="$CFLAGS $ALSA_CFLAGS"
7477 LIBS="$LIBS $ALSA_LIBS"
7478 cat >>confdefs.h <<\_ACEOF
7479#define RDPSND_ALSA 1
7480_ACEOF
7481
7482 fi
7483
7484 if test x"$HAVE_LIBAO" = "x1"; then
7485 SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
7486 CFLAGS="$CFLAGS $LIBAO_CFLAGS"
7487 LIBS="$LIBS $LIBAO_LIBS"
7488 cat >>confdefs.h <<\_ACEOF
7489#define RDPSND_LIBAO 1
7490_ACEOF
7491
7492 fi
7493
7494 ;;
7495
7496 oss)
7497 if test x"$HAVE_OSS" = "x1"; then
7498 SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
7499 cat >>confdefs.h <<\_ACEOF
7500#define RDPSND_OSS 1
7501_ACEOF
7502
7503 else
7504 { { echo "$as_me:$LINENO: error: Selected sound system is not available." >&5
7505echo "$as_me: error: Selected sound system is not available." >&2;}
7506 { (exit 1); exit 1; }; }
7507 fi
7508 ;;
7509
7510 sgi)
7511 if test x"$HAVE_SGI" = "x1"; then
7512 SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
7513 LIBS="$LIBS -laudio"
7514 cat >>confdefs.h <<\_ACEOF
7515#define RDPSND_SGI 1
7516_ACEOF
7517
7518 else
7519 { { echo "$as_me:$LINENO: error: Selected sound system is not available." >&5
7520echo "$as_me: error: Selected sound system is not available." >&2;}
7521 { (exit 1); exit 1; }; }
7522 fi
7523 ;;
7524
7525 sun)
7526 if test x"$HAVE_SUN" = "x1"; then
7527 SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
7528 cat >>confdefs.h <<\_ACEOF
7529#define RDPSND_SUN 1
7530_ACEOF
7531
7532 else
7533 { { echo "$as_me:$LINENO: error: Selected sound system is not available." >&5
7534echo "$as_me: error: Selected sound system is not available." >&2;}
7535 { (exit 1); exit 1; }; }
7536 fi
7537 ;;
7538
7539 alsa)
7540 if test x"$HAVE_ALSA" = "x1"; then
7541 SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
7542 CFLAGS="$CFLAGS $ALSA_CFLAGS"
7543 LIBS="$LIBS $ALSA_LIBS"
7544 cat >>confdefs.h <<\_ACEOF
7545#define RDPSND_ALSA 1
7546_ACEOF
7547
7548 else
7549 { { echo "$as_me:$LINENO: error: Selected sound system is not available." >&5
7550echo "$as_me: error: Selected sound system is not available." >&2;}
7551 { (exit 1); exit 1; }; }
7552 fi
7553 ;;
7554
7555 libao)
7556 if test x"$HAVE_LIBAO" = "x1"; then
7557 SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
7558 CFLAGS="$CFLAGS $LIBAO_CFLAGS"
7559 LIBS="$LIBS $LIBAO_LIBS"
7560 cat >>confdefs.h <<\_ACEOF
7561#define RDPSND_LIBAO 1
7562_ACEOF
7563
7564 else
7565 { { echo "$as_me:$LINENO: error: Selected sound system is not available." >&5
7566echo "$as_me: error: Selected sound system is not available." >&2;}
7567 { (exit 1); exit 1; }; }
7568 fi
7569 ;;
7570
7571 no)
7572 ;;
7573
7574 *)
7575 { echo "$as_me:$LINENO: WARNING: sound support disabled" >&5
7576echo "$as_me: WARNING: sound support disabled" >&2;}
7577 { echo "$as_me:$LINENO: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&5
7578echo "$as_me: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&2;}
7579 ;;
7580esac
7581
7582
7583
7584#
7585# dirfd
7586#
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597ac_header_dirent=no
7598for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7599 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7600{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7601echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
7602if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604else
7605 cat >conftest.$ac_ext <<_ACEOF
7606/* confdefs.h. */
7607_ACEOF
7608cat confdefs.h >>conftest.$ac_ext
7609cat >>conftest.$ac_ext <<_ACEOF
7610/* end confdefs.h. */
7611#include <sys/types.h>
7612#include <$ac_hdr>
7613
7614int
7615main ()
7616{
7617if ((DIR *) 0)
7618return 0;
7619 ;
7620 return 0;
7621}
7622_ACEOF
7623rm -f conftest.$ac_objext
7624if { (ac_try="$ac_compile"
7625case "(($ac_try" in
7626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7628esac
7629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630 (eval "$ac_compile") 2>conftest.er1
7631 ac_status=$?
7632 grep -v '^ *+' conftest.er1 >conftest.err
7633 rm -f conftest.er1
7634 cat conftest.err >&5
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } && {
7637 test -z "$ac_c_werror_flag" ||
7638 test ! -s conftest.err
7639 } && test -s conftest.$ac_objext; then
7640 eval "$as_ac_Header=yes"
7641else
7642 echo "$as_me: failed program was:" >&5
7643sed 's/^/| /' conftest.$ac_ext >&5
7644
7645 eval "$as_ac_Header=no"
7646fi
7647
7648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649fi
7650ac_res=`eval echo '${'$as_ac_Header'}'`
7651 { echo "$as_me:$LINENO: result: $ac_res" >&5
7652echo "${ECHO_T}$ac_res" >&6; }
7653if test `eval echo '${'$as_ac_Header'}'` = yes; then
7654 cat >>confdefs.h <<_ACEOF
7655#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7656_ACEOF
7657
7658ac_header_dirent=$ac_hdr; break
7659fi
7660
7661done
7662# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7663if test $ac_header_dirent = dirent.h; then
7664 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7665echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7666if test "${ac_cv_search_opendir+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7668else
7669 ac_func_search_save_LIBS=$LIBS
7670cat >conftest.$ac_ext <<_ACEOF
7671/* confdefs.h. */
7672_ACEOF
7673cat confdefs.h >>conftest.$ac_ext
7674cat >>conftest.$ac_ext <<_ACEOF
7675/* end confdefs.h. */
7676
7677/* Override any GCC internal prototype to avoid an error.
7678 Use char because int might match the return type of a GCC
7679 builtin and then its argument prototype would still apply. */
7680#ifdef __cplusplus
7681extern "C"
7682#endif
7683char opendir ();
7684int
7685main ()
7686{
7687return opendir ();
7688 ;
7689 return 0;
7690}
7691_ACEOF
7692for ac_lib in '' dir; do
7693 if test -z "$ac_lib"; then
7694 ac_res="none required"
7695 else
7696 ac_res=-l$ac_lib
7697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7698 fi
7699 rm -f conftest.$ac_objext conftest$ac_exeext
7700if { (ac_try="$ac_link"
7701case "(($ac_try" in
7702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7703 *) ac_try_echo=$ac_try;;
7704esac
7705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706 (eval "$ac_link") 2>conftest.er1
7707 ac_status=$?
7708 grep -v '^ *+' conftest.er1 >conftest.err
7709 rm -f conftest.er1
7710 cat conftest.err >&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && {
7713 test -z "$ac_c_werror_flag" ||
7714 test ! -s conftest.err
7715 } && test -s conftest$ac_exeext &&
7716 $as_test_x conftest$ac_exeext; then
7717 ac_cv_search_opendir=$ac_res
7718else
7719 echo "$as_me: failed program was:" >&5
7720sed 's/^/| /' conftest.$ac_ext >&5
7721
7722
7723fi
7724
7725rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7726 conftest$ac_exeext
7727 if test "${ac_cv_search_opendir+set}" = set; then
7728 break
7729fi
7730done
7731if test "${ac_cv_search_opendir+set}" = set; then
7732 :
7733else
7734 ac_cv_search_opendir=no
7735fi
7736rm conftest.$ac_ext
7737LIBS=$ac_func_search_save_LIBS
7738fi
7739{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7740echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7741ac_res=$ac_cv_search_opendir
7742if test "$ac_res" != no; then
7743 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7744
7745fi
7746
7747else
7748 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
7749echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
7750if test "${ac_cv_search_opendir+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752else
7753 ac_func_search_save_LIBS=$LIBS
7754cat >conftest.$ac_ext <<_ACEOF
7755/* confdefs.h. */
7756_ACEOF
7757cat confdefs.h >>conftest.$ac_ext
7758cat >>conftest.$ac_ext <<_ACEOF
7759/* end confdefs.h. */
7760
7761/* Override any GCC internal prototype to avoid an error.
7762 Use char because int might match the return type of a GCC
7763 builtin and then its argument prototype would still apply. */
7764#ifdef __cplusplus
7765extern "C"
7766#endif
7767char opendir ();
7768int
7769main ()
7770{
7771return opendir ();
7772 ;
7773 return 0;
7774}
7775_ACEOF
7776for ac_lib in '' x; do
7777 if test -z "$ac_lib"; then
7778 ac_res="none required"
7779 else
7780 ac_res=-l$ac_lib
7781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7782 fi
7783 rm -f conftest.$ac_objext conftest$ac_exeext
7784if { (ac_try="$ac_link"
7785case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788esac
7789eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7790 (eval "$ac_link") 2>conftest.er1
7791 ac_status=$?
7792 grep -v '^ *+' conftest.er1 >conftest.err
7793 rm -f conftest.er1
7794 cat conftest.err >&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } && {
7797 test -z "$ac_c_werror_flag" ||
7798 test ! -s conftest.err
7799 } && test -s conftest$ac_exeext &&
7800 $as_test_x conftest$ac_exeext; then
7801 ac_cv_search_opendir=$ac_res
7802else
7803 echo "$as_me: failed program was:" >&5
7804sed 's/^/| /' conftest.$ac_ext >&5
7805
7806
7807fi
7808
7809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7810 conftest$ac_exeext
7811 if test "${ac_cv_search_opendir+set}" = set; then
7812 break
7813fi
7814done
7815if test "${ac_cv_search_opendir+set}" = set; then
7816 :
7817else
7818 ac_cv_search_opendir=no
7819fi
7820rm conftest.$ac_ext
7821LIBS=$ac_func_search_save_LIBS
7822fi
7823{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7824echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
7825ac_res=$ac_cv_search_opendir
7826if test "$ac_res" != no; then
7827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7828
7829fi
7830
7831fi
7832
7833 dirfd_headers='
7834#if HAVE_DIRENT_H
7835# include <dirent.h>
7836#else /* not HAVE_DIRENT_H */
7837# define dirent direct
7838# if HAVE_SYS_NDIR_H
7839# include <sys/ndir.h>
7840# endif /* HAVE_SYS_NDIR_H */
7841# if HAVE_SYS_DIR_H
7842# include <sys/dir.h>
7843# endif /* HAVE_SYS_DIR_H */
7844# if HAVE_NDIR_H
7845# include <ndir.h>
7846# endif /* HAVE_NDIR_H */
7847#endif /* HAVE_DIRENT_H */
7848'
7849
7850for ac_func in dirfd
7851do
7852as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7853{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7854echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7855if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7857else
7858 cat >conftest.$ac_ext <<_ACEOF
7859/* confdefs.h. */
7860_ACEOF
7861cat confdefs.h >>conftest.$ac_ext
7862cat >>conftest.$ac_ext <<_ACEOF
7863/* end confdefs.h. */
7864/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7866#define $ac_func innocuous_$ac_func
7867
7868/* System header to define __stub macros and hopefully few prototypes,
7869 which can conflict with char $ac_func (); below.
7870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7871 <limits.h> exists even on freestanding compilers. */
7872
7873#ifdef __STDC__
7874# include <limits.h>
7875#else
7876# include <assert.h>
7877#endif
7878
7879#undef $ac_func
7880
7881/* Override any GCC internal prototype to avoid an error.
7882 Use char because int might match the return type of a GCC
7883 builtin and then its argument prototype would still apply. */
7884#ifdef __cplusplus
7885extern "C"
7886#endif
7887char $ac_func ();
7888/* The GNU C library defines this for functions which it implements
7889 to always fail with ENOSYS. Some functions are actually named
7890 something starting with __ and the normal name is an alias. */
7891#if defined __stub_$ac_func || defined __stub___$ac_func
7892choke me
7893#endif
7894
7895int
7896main ()
7897{
7898return $ac_func ();
7899 ;
7900 return 0;
7901}
7902_ACEOF
7903rm -f conftest.$ac_objext conftest$ac_exeext
7904if { (ac_try="$ac_link"
7905case "(($ac_try" in
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7908esac
7909eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_link") 2>conftest.er1
7911 ac_status=$?
7912 grep -v '^ *+' conftest.er1 >conftest.err
7913 rm -f conftest.er1
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } && {
7917 test -z "$ac_c_werror_flag" ||
7918 test ! -s conftest.err
7919 } && test -s conftest$ac_exeext &&
7920 $as_test_x conftest$ac_exeext; then
7921 eval "$as_ac_var=yes"
7922else
7923 echo "$as_me: failed program was:" >&5
7924sed 's/^/| /' conftest.$ac_ext >&5
7925
7926 eval "$as_ac_var=no"
7927fi
7928
7929rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7930 conftest$ac_exeext conftest.$ac_ext
7931fi
7932ac_res=`eval echo '${'$as_ac_var'}'`
7933 { echo "$as_me:$LINENO: result: $ac_res" >&5
7934echo "${ECHO_T}$ac_res" >&6; }
7935if test `eval echo '${'$as_ac_var'}'` = yes; then
7936 cat >>confdefs.h <<_ACEOF
7937#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7938_ACEOF
7939
7940fi
7941done
7942
7943 { echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
7944echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6; }
7945if test "${ac_cv_have_decl_dirfd+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7947else
7948 cat >conftest.$ac_ext <<_ACEOF
7949/* confdefs.h. */
7950_ACEOF
7951cat confdefs.h >>conftest.$ac_ext
7952cat >>conftest.$ac_ext <<_ACEOF
7953/* end confdefs.h. */
7954$dirfd_headers
7955
7956int
7957main ()
7958{
7959#ifndef dirfd
7960 (void) dirfd;
7961#endif
7962
7963 ;
7964 return 0;
7965}
7966_ACEOF
7967rm -f conftest.$ac_objext
7968if { (ac_try="$ac_compile"
7969case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7972esac
7973eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7974 (eval "$ac_compile") 2>conftest.er1
7975 ac_status=$?
7976 grep -v '^ *+' conftest.er1 >conftest.err
7977 rm -f conftest.er1
7978 cat conftest.err >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); } && {
7981 test -z "$ac_c_werror_flag" ||
7982 test ! -s conftest.err
7983 } && test -s conftest.$ac_objext; then
7984 ac_cv_have_decl_dirfd=yes
7985else
7986 echo "$as_me: failed program was:" >&5
7987sed 's/^/| /' conftest.$ac_ext >&5
7988
7989 ac_cv_have_decl_dirfd=no
7990fi
7991
7992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7993fi
7994{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
7995echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6; }
7996if test $ac_cv_have_decl_dirfd = yes; then
7997
7998cat >>confdefs.h <<_ACEOF
7999#define HAVE_DECL_DIRFD 1
8000_ACEOF
8001
8002
8003else
8004 cat >>confdefs.h <<_ACEOF
8005#define HAVE_DECL_DIRFD 0
8006_ACEOF
8007
8008
8009fi
8010
8011
8012
8013 { echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
8014echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6; }
8015if test "${jm_cv_func_dirfd_macro+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8017else
8018 cat >conftest.$ac_ext <<_ACEOF
8019/* confdefs.h. */
8020_ACEOF
8021cat confdefs.h >>conftest.$ac_ext
8022cat >>conftest.$ac_ext <<_ACEOF
8023/* end confdefs.h. */
8024$dirfd_headers
8025#ifdef dirfd
8026 dirent_header_defines_dirfd
8027#endif
8028_ACEOF
8029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8030 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
8031 jm_cv_func_dirfd_macro=yes
8032else
8033 jm_cv_func_dirfd_macro=no
8034fi
8035rm -f conftest*
8036
8037fi
8038{ echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
8039echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6; }
8040
8041 # Use the replacement only if we have no function, macro,
8042 # or declaration with that name.
8043 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
8044 = no,no,no; then
8045
8046for ac_func in dirfd
8047do
8048as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8049{ echo "$as_me:$LINENO: checking for $ac_func" >&5
8050echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8051if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8053else
8054 cat >conftest.$ac_ext <<_ACEOF
8055/* confdefs.h. */
8056_ACEOF
8057cat confdefs.h >>conftest.$ac_ext
8058cat >>conftest.$ac_ext <<_ACEOF
8059/* end confdefs.h. */
8060/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8062#define $ac_func innocuous_$ac_func
8063
8064/* System header to define __stub macros and hopefully few prototypes,
8065 which can conflict with char $ac_func (); below.
8066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8067 <limits.h> exists even on freestanding compilers. */
8068
8069#ifdef __STDC__
8070# include <limits.h>
8071#else
8072# include <assert.h>
8073#endif
8074
8075#undef $ac_func
8076
8077/* Override any GCC internal prototype to avoid an error.
8078 Use char because int might match the return type of a GCC
8079 builtin and then its argument prototype would still apply. */
8080#ifdef __cplusplus
8081extern "C"
8082#endif
8083char $ac_func ();
8084/* The GNU C library defines this for functions which it implements
8085 to always fail with ENOSYS. Some functions are actually named
8086 something starting with __ and the normal name is an alias. */
8087#if defined __stub_$ac_func || defined __stub___$ac_func
8088choke me
8089#endif
8090
8091int
8092main ()
8093{
8094return $ac_func ();
8095 ;
8096 return 0;
8097}
8098_ACEOF
8099rm -f conftest.$ac_objext conftest$ac_exeext
8100if { (ac_try="$ac_link"
8101case "(($ac_try" in
8102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8103 *) ac_try_echo=$ac_try;;
8104esac
8105eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8106 (eval "$ac_link") 2>conftest.er1
8107 ac_status=$?
8108 grep -v '^ *+' conftest.er1 >conftest.err
8109 rm -f conftest.er1
8110 cat conftest.err >&5
8111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8112 (exit $ac_status); } && {
8113 test -z "$ac_c_werror_flag" ||
8114 test ! -s conftest.err
8115 } && test -s conftest$ac_exeext &&
8116 $as_test_x conftest$ac_exeext; then
8117 eval "$as_ac_var=yes"
8118else
8119 echo "$as_me: failed program was:" >&5
8120sed 's/^/| /' conftest.$ac_ext >&5
8121
8122 eval "$as_ac_var=no"
8123fi
8124
8125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8126 conftest$ac_exeext conftest.$ac_ext
8127fi
8128ac_res=`eval echo '${'$as_ac_var'}'`
8129 { echo "$as_me:$LINENO: result: $ac_res" >&5
8130echo "${ECHO_T}$ac_res" >&6; }
8131if test `eval echo '${'$as_ac_var'}'` = yes; then
8132 cat >>confdefs.h <<_ACEOF
8133#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8134_ACEOF
8135
8136else
8137 case " $LIBOBJS " in
8138 *" $ac_func.$ac_objext "* ) ;;
8139 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8140 ;;
8141esac
8142
8143fi
8144done
8145
8146
8147 { echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
8148echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6; }
8149if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8151else
8152
8153 dirfd_save_CFLAGS=$CFLAGS
8154 for ac_expr in d_fd dd_fd; do
8155
8156 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
8157 cat >conftest.$ac_ext <<_ACEOF
8158/* confdefs.h. */
8159_ACEOF
8160cat confdefs.h >>conftest.$ac_ext
8161cat >>conftest.$ac_ext <<_ACEOF
8162/* end confdefs.h. */
8163$dirfd_headers
8164
8165int
8166main ()
8167{
8168DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
8169 ;
8170 return 0;
8171}
8172_ACEOF
8173rm -f conftest.$ac_objext
8174if { (ac_try="$ac_compile"
8175case "(($ac_try" in
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8178esac
8179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_compile") 2>conftest.er1
8181 ac_status=$?
8182 grep -v '^ *+' conftest.er1 >conftest.err
8183 rm -f conftest.er1
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && {
8187 test -z "$ac_c_werror_flag" ||
8188 test ! -s conftest.err
8189 } && test -s conftest.$ac_objext; then
8190 dir_fd_found=yes
8191
8192else
8193 echo "$as_me: failed program was:" >&5
8194sed 's/^/| /' conftest.$ac_ext >&5
8195
8196
8197fi
8198
8199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8200 CFLAGS=$dirfd_save_CFLAGS
8201 test "$dir_fd_found" = yes && break
8202 done
8203 test "$dir_fd_found" = yes || ac_expr=no_such_member
8204
8205 gl_cv_sys_dir_fd_member_name=$ac_expr
8206
8207
8208fi
8209{ echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
8210echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6; }
8211 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
8212
8213cat >>confdefs.h <<_ACEOF
8214#define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
8215_ACEOF
8216
8217 fi
8218
8219
8220 fi
8221
8222
8223#
8224# iconv
8225#
8226
8227
8228
8229
8230
8231
8232
8233# Check whether --with-libiconv-prefix was given.
8234if test "${with_libiconv_prefix+set}" = set; then
8235 withval=$with_libiconv_prefix;
8236 for dir in `echo "$withval" | tr : ' '`; do
8237 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
8238 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
8239 done
8240
8241fi
8242
8243 if test "${ac_cv_header_iconv_h+set}" = set; then
8244 { echo "$as_me:$LINENO: checking for iconv.h" >&5
8245echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
8246if test "${ac_cv_header_iconv_h+set}" = set; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8248fi
8249{ echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
8250echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
8251else
8252 # Is the header compilable?
8253{ echo "$as_me:$LINENO: checking iconv.h usability" >&5
8254echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
8255cat >conftest.$ac_ext <<_ACEOF
8256/* confdefs.h. */
8257_ACEOF
8258cat confdefs.h >>conftest.$ac_ext
8259cat >>conftest.$ac_ext <<_ACEOF
8260/* end confdefs.h. */
8261$ac_includes_default
8262#include <iconv.h>
8263_ACEOF
8264rm -f conftest.$ac_objext
8265if { (ac_try="$ac_compile"
8266case "(($ac_try" in
8267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8269esac
8270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_compile") 2>conftest.er1
8272 ac_status=$?
8273 grep -v '^ *+' conftest.er1 >conftest.err
8274 rm -f conftest.er1
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && {
8278 test -z "$ac_c_werror_flag" ||
8279 test ! -s conftest.err
8280 } && test -s conftest.$ac_objext; then
8281 ac_header_compiler=yes
8282else
8283 echo "$as_me: failed program was:" >&5
8284sed 's/^/| /' conftest.$ac_ext >&5
8285
8286 ac_header_compiler=no
8287fi
8288
8289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8290{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8291echo "${ECHO_T}$ac_header_compiler" >&6; }
8292
8293# Is the header present?
8294{ echo "$as_me:$LINENO: checking iconv.h presence" >&5
8295echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
8296cat >conftest.$ac_ext <<_ACEOF
8297/* confdefs.h. */
8298_ACEOF
8299cat confdefs.h >>conftest.$ac_ext
8300cat >>conftest.$ac_ext <<_ACEOF
8301/* end confdefs.h. */
8302#include <iconv.h>
8303_ACEOF
8304if { (ac_try="$ac_cpp conftest.$ac_ext"
8305case "(($ac_try" in
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8308esac
8309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8311 ac_status=$?
8312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } >/dev/null && {
8317 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8318 test ! -s conftest.err
8319 }; then
8320 ac_header_preproc=yes
8321else
8322 echo "$as_me: failed program was:" >&5
8323sed 's/^/| /' conftest.$ac_ext >&5
8324
8325 ac_header_preproc=no
8326fi
8327
8328rm -f conftest.err conftest.$ac_ext
8329{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8330echo "${ECHO_T}$ac_header_preproc" >&6; }
8331
8332# So? What about this header?
8333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8334 yes:no: )
8335 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
8336echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8337 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
8338echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
8339 ac_header_preproc=yes
8340 ;;
8341 no:yes:* )
8342 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
8343echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
8344 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
8345echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
8346 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
8347echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
8348 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
8349echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
8350 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
8351echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
8352 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
8353echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
8354
8355 ;;
8356esac
8357{ echo "$as_me:$LINENO: checking for iconv.h" >&5
8358echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
8359if test "${ac_cv_header_iconv_h+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361else
8362 ac_cv_header_iconv_h=$ac_header_preproc
8363fi
8364{ echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
8365echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
8366
8367fi
8368if test $ac_cv_header_iconv_h = yes; then
8369 cat >>confdefs.h <<\_ACEOF
8370#define HAVE_ICONV_H 1
8371_ACEOF
8372
8373fi
8374
8375
8376
8377 { echo "$as_me:$LINENO: checking for iconv" >&5
8378echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
8379if test "${am_cv_func_iconv+set}" = set; then
8380 echo $ECHO_N "(cached) $ECHO_C" >&6
8381else
8382
8383 am_cv_func_iconv="no, consider installing GNU libiconv"
8384 am_cv_lib_iconv=no
8385 cat >conftest.$ac_ext <<_ACEOF
8386/* confdefs.h. */
8387_ACEOF
8388cat confdefs.h >>conftest.$ac_ext
8389cat >>conftest.$ac_ext <<_ACEOF
8390/* end confdefs.h. */
8391#include <stdlib.h>
8392#include <iconv.h>
8393int
8394main ()
8395{
8396iconv_t cd = iconv_open("","");
8397 iconv(cd,NULL,NULL,NULL,NULL);
8398 iconv_close(cd);
8399 ;
8400 return 0;
8401}
8402_ACEOF
8403rm -f conftest.$ac_objext conftest$ac_exeext
8404if { (ac_try="$ac_link"
8405case "(($ac_try" in
8406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407 *) ac_try_echo=$ac_try;;
8408esac
8409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_link") 2>conftest.er1
8411 ac_status=$?
8412 grep -v '^ *+' conftest.er1 >conftest.err
8413 rm -f conftest.er1
8414 cat conftest.err >&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } && {
8417 test -z "$ac_c_werror_flag" ||
8418 test ! -s conftest.err
8419 } && test -s conftest$ac_exeext &&
8420 $as_test_x conftest$ac_exeext; then
8421 am_cv_func_iconv=yes
8422else
8423 echo "$as_me: failed program was:" >&5
8424sed 's/^/| /' conftest.$ac_ext >&5
8425
8426
8427fi
8428
8429rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8430 conftest$ac_exeext conftest.$ac_ext
8431 if test "$am_cv_func_iconv" != yes; then
8432 am_save_LIBS="$LIBS"
8433 LIBS="$LIBS -liconv"
8434 cat >conftest.$ac_ext <<_ACEOF
8435/* confdefs.h. */
8436_ACEOF
8437cat confdefs.h >>conftest.$ac_ext
8438cat >>conftest.$ac_ext <<_ACEOF
8439/* end confdefs.h. */
8440#include <stdlib.h>
8441#include <iconv.h>
8442int
8443main ()
8444{
8445iconv_t cd = iconv_open("","");
8446 iconv(cd,NULL,NULL,NULL,NULL);
8447 iconv_close(cd);
8448 ;
8449 return 0;
8450}
8451_ACEOF
8452rm -f conftest.$ac_objext conftest$ac_exeext
8453if { (ac_try="$ac_link"
8454case "(($ac_try" in
8455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8456 *) ac_try_echo=$ac_try;;
8457esac
8458eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8459 (eval "$ac_link") 2>conftest.er1
8460 ac_status=$?
8461 grep -v '^ *+' conftest.er1 >conftest.err
8462 rm -f conftest.er1
8463 cat conftest.err >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); } && {
8466 test -z "$ac_c_werror_flag" ||
8467 test ! -s conftest.err
8468 } && test -s conftest$ac_exeext &&
8469 $as_test_x conftest$ac_exeext; then
8470 am_cv_lib_iconv=yes
8471 am_cv_func_iconv=yes
8472else
8473 echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5
8475
8476
8477fi
8478
8479rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8480 conftest$ac_exeext conftest.$ac_ext
8481 LIBS="$am_save_LIBS"
8482 fi
8483
8484fi
8485{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8486echo "${ECHO_T}$am_cv_func_iconv" >&6; }
8487 if test "$am_cv_func_iconv" = yes; then
8488
8489cat >>confdefs.h <<\_ACEOF
8490#define HAVE_ICONV 1
8491_ACEOF
8492
8493 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
8494echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
8495 if test "${am_cv_proto_iconv+set}" = set; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8497else
8498
8499 cat >conftest.$ac_ext <<_ACEOF
8500/* confdefs.h. */
8501_ACEOF
8502cat confdefs.h >>conftest.$ac_ext
8503cat >>conftest.$ac_ext <<_ACEOF
8504/* end confdefs.h. */
8505
8506#include <stdlib.h>
8507#include <iconv.h>
8508extern
8509#ifdef __cplusplus
8510"C"
8511#endif
8512#if defined(__STDC__) || defined(__cplusplus)
8513size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8514#else
8515size_t iconv();
8516#endif
8517
8518int
8519main ()
8520{
8521
8522 ;
8523 return 0;
8524}
8525_ACEOF
8526rm -f conftest.$ac_objext
8527if { (ac_try="$ac_compile"
8528case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531esac
8532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_compile") 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } && {
8540 test -z "$ac_c_werror_flag" ||
8541 test ! -s conftest.err
8542 } && test -s conftest.$ac_objext; then
8543 am_cv_proto_iconv_arg1=""
8544else
8545 echo "$as_me: failed program was:" >&5
8546sed 's/^/| /' conftest.$ac_ext >&5
8547
8548 am_cv_proto_iconv_arg1="const"
8549fi
8550
8551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8552 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8553fi
8554
8555 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8556 { echo "$as_me:$LINENO: result: ${ac_t:-
8557 }$am_cv_proto_iconv" >&5
8558echo "${ECHO_T}${ac_t:-
8559 }$am_cv_proto_iconv" >&6; }
8560
8561cat >>confdefs.h <<_ACEOF
8562#define ICONV_CONST $am_cv_proto_iconv_arg1
8563_ACEOF
8564
8565 fi
8566 LIBICONV=
8567 if test "$am_cv_lib_iconv" = yes; then
8568 LIBICONV="-liconv"
8569 fi
8570
8571
8572LIBS="$LIBS $LIBICONV"
8573
8574#
8575# socklen_t
8576# from curl
8577
8578
8579
8580
8581 { echo "$as_me:$LINENO: checking for socklen_t" >&5
8582echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
8583if test "${ac_cv_type_socklen_t+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8585else
8586 cat >conftest.$ac_ext <<_ACEOF
8587/* confdefs.h. */
8588_ACEOF
8589cat confdefs.h >>conftest.$ac_ext
8590cat >>conftest.$ac_ext <<_ACEOF
8591/* end confdefs.h. */
8592#include <sys/types.h>
8593#include <sys/socket.h>
8594
8595typedef socklen_t ac__type_new_;
8596int
8597main ()
8598{
8599if ((ac__type_new_ *) 0)
8600 return 0;
8601if (sizeof (ac__type_new_))
8602 return 0;
8603 ;
8604 return 0;
8605}
8606_ACEOF
8607rm -f conftest.$ac_objext
8608if { (ac_try="$ac_compile"
8609case "(($ac_try" in
8610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8611 *) ac_try_echo=$ac_try;;
8612esac
8613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8614 (eval "$ac_compile") 2>conftest.er1
8615 ac_status=$?
8616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } && {
8621 test -z "$ac_c_werror_flag" ||
8622 test ! -s conftest.err
8623 } && test -s conftest.$ac_objext; then
8624 ac_cv_type_socklen_t=yes
8625else
8626 echo "$as_me: failed program was:" >&5
8627sed 's/^/| /' conftest.$ac_ext >&5
8628
8629 ac_cv_type_socklen_t=no
8630fi
8631
8632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8633fi
8634{ echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
8635echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
8636if test $ac_cv_type_socklen_t = yes; then
8637 :
8638else
8639
8640 { echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
8641echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6; }
8642 if test "${socklen_t_equiv+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8644else
8645
8646 # Systems have either "struct sockaddr *" or
8647 # "void *" as the second argument to getpeername
8648 socklen_t_equiv=
8649 for arg2 in "struct sockaddr" void; do
8650 for t in int size_t unsigned long "unsigned long"; do
8651 cat >conftest.$ac_ext <<_ACEOF
8652/* confdefs.h. */
8653_ACEOF
8654cat confdefs.h >>conftest.$ac_ext
8655cat >>conftest.$ac_ext <<_ACEOF
8656/* end confdefs.h. */
8657
8658 #include <sys/types.h>
8659 #include <sys/socket.h>
8660
8661 int getpeername (int, $arg2 *, $t *);
8662
8663int
8664main ()
8665{
8666
8667 $t len;
8668 getpeername(0,0,&len);
8669
8670 ;
8671 return 0;
8672}
8673_ACEOF
8674rm -f conftest.$ac_objext
8675if { (ac_try="$ac_compile"
8676case "(($ac_try" in
8677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8678 *) ac_try_echo=$ac_try;;
8679esac
8680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8681 (eval "$ac_compile") 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } && {
8688 test -z "$ac_c_werror_flag" ||
8689 test ! -s conftest.err
8690 } && test -s conftest.$ac_objext; then
8691
8692 socklen_t_equiv="$t"
8693 break
8694
8695else
8696 echo "$as_me: failed program was:" >&5
8697sed 's/^/| /' conftest.$ac_ext >&5
8698
8699
8700fi
8701
8702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703 done
8704 done
8705
8706 if test "x$socklen_t_equiv" = x; then
8707 { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
8708echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
8709 { (exit 1); exit 1; }; }
8710 fi
8711
8712fi
8713
8714 { echo "$as_me:$LINENO: result: $socklen_t_equiv" >&5
8715echo "${ECHO_T}$socklen_t_equiv" >&6; }
8716
8717cat >>confdefs.h <<_ACEOF
8718#define socklen_t $socklen_t_equiv
8719_ACEOF
8720
8721fi
8722
8723
8724
8725#
8726# statfs stuff
8727#
8728
8729for ac_header in sys/vfs.h
8730do
8731as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8732if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8737fi
8738ac_res=`eval echo '${'$as_ac_Header'}'`
8739 { echo "$as_me:$LINENO: result: $ac_res" >&5
8740echo "${ECHO_T}$ac_res" >&6; }
8741else
8742 # Is the header compilable?
8743{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8745cat >conftest.$ac_ext <<_ACEOF
8746/* confdefs.h. */
8747_ACEOF
8748cat confdefs.h >>conftest.$ac_ext
8749cat >>conftest.$ac_ext <<_ACEOF
8750/* end confdefs.h. */
8751$ac_includes_default
8752#include <$ac_header>
8753_ACEOF
8754rm -f conftest.$ac_objext
8755if { (ac_try="$ac_compile"
8756case "(($ac_try" in
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8759esac
8760eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_compile") 2>conftest.er1
8762 ac_status=$?
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } && {
8768 test -z "$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 } && test -s conftest.$ac_objext; then
8771 ac_header_compiler=yes
8772else
8773 echo "$as_me: failed program was:" >&5
8774sed 's/^/| /' conftest.$ac_ext >&5
8775
8776 ac_header_compiler=no
8777fi
8778
8779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8781echo "${ECHO_T}$ac_header_compiler" >&6; }
8782
8783# Is the header present?
8784{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8785echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8786cat >conftest.$ac_ext <<_ACEOF
8787/* confdefs.h. */
8788_ACEOF
8789cat confdefs.h >>conftest.$ac_ext
8790cat >>conftest.$ac_ext <<_ACEOF
8791/* end confdefs.h. */
8792#include <$ac_header>
8793_ACEOF
8794if { (ac_try="$ac_cpp conftest.$ac_ext"
8795case "(($ac_try" in
8796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797 *) ac_try_echo=$ac_try;;
8798esac
8799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8801 ac_status=$?
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } >/dev/null && {
8807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8808 test ! -s conftest.err
8809 }; then
8810 ac_header_preproc=yes
8811else
8812 echo "$as_me: failed program was:" >&5
8813sed 's/^/| /' conftest.$ac_ext >&5
8814
8815 ac_header_preproc=no
8816fi
8817
8818rm -f conftest.err conftest.$ac_ext
8819{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8820echo "${ECHO_T}$ac_header_preproc" >&6; }
8821
8822# So? What about this header?
8823case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8824 yes:no: )
8825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8826echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8828echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8829 ac_header_preproc=yes
8830 ;;
8831 no:yes:* )
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8833echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8835echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8837echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8839echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8841echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8843echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8844
8845 ;;
8846esac
8847{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8851else
8852 eval "$as_ac_Header=\$ac_header_preproc"
8853fi
8854ac_res=`eval echo '${'$as_ac_Header'}'`
8855 { echo "$as_me:$LINENO: result: $ac_res" >&5
8856echo "${ECHO_T}$ac_res" >&6; }
8857
8858fi
8859if test `eval echo '${'$as_ac_Header'}'` = yes; then
8860 cat >>confdefs.h <<_ACEOF
8861#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8862_ACEOF
8863
8864fi
8865
8866done
8867
8868
8869for ac_header in sys/statvfs.h
8870do
8871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8873 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8875if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8877fi
8878ac_res=`eval echo '${'$as_ac_Header'}'`
8879 { echo "$as_me:$LINENO: result: $ac_res" >&5
8880echo "${ECHO_T}$ac_res" >&6; }
8881else
8882 # Is the header compilable?
8883{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8884echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8885cat >conftest.$ac_ext <<_ACEOF
8886/* confdefs.h. */
8887_ACEOF
8888cat confdefs.h >>conftest.$ac_ext
8889cat >>conftest.$ac_ext <<_ACEOF
8890/* end confdefs.h. */
8891$ac_includes_default
8892#include <$ac_header>
8893_ACEOF
8894rm -f conftest.$ac_objext
8895if { (ac_try="$ac_compile"
8896case "(($ac_try" in
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8899esac
8900eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8901 (eval "$ac_compile") 2>conftest.er1
8902 ac_status=$?
8903 grep -v '^ *+' conftest.er1 >conftest.err
8904 rm -f conftest.er1
8905 cat conftest.err >&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } && {
8908 test -z "$ac_c_werror_flag" ||
8909 test ! -s conftest.err
8910 } && test -s conftest.$ac_objext; then
8911 ac_header_compiler=yes
8912else
8913 echo "$as_me: failed program was:" >&5
8914sed 's/^/| /' conftest.$ac_ext >&5
8915
8916 ac_header_compiler=no
8917fi
8918
8919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8920{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8921echo "${ECHO_T}$ac_header_compiler" >&6; }
8922
8923# Is the header present?
8924{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8925echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8926cat >conftest.$ac_ext <<_ACEOF
8927/* confdefs.h. */
8928_ACEOF
8929cat confdefs.h >>conftest.$ac_ext
8930cat >>conftest.$ac_ext <<_ACEOF
8931/* end confdefs.h. */
8932#include <$ac_header>
8933_ACEOF
8934if { (ac_try="$ac_cpp conftest.$ac_ext"
8935case "(($ac_try" in
8936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8937 *) ac_try_echo=$ac_try;;
8938esac
8939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } >/dev/null && {
8947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8948 test ! -s conftest.err
8949 }; then
8950 ac_header_preproc=yes
8951else
8952 echo "$as_me: failed program was:" >&5
8953sed 's/^/| /' conftest.$ac_ext >&5
8954
8955 ac_header_preproc=no
8956fi
8957
8958rm -f conftest.err conftest.$ac_ext
8959{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8960echo "${ECHO_T}$ac_header_preproc" >&6; }
8961
8962# So? What about this header?
8963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8964 yes:no: )
8965 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8967 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8969 ac_header_preproc=yes
8970 ;;
8971 no:yes:* )
8972 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8974 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8975echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8976 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8978 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8979echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8982 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8984
8985 ;;
8986esac
8987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8991else
8992 eval "$as_ac_Header=\$ac_header_preproc"
8993fi
8994ac_res=`eval echo '${'$as_ac_Header'}'`
8995 { echo "$as_me:$LINENO: result: $ac_res" >&5
8996echo "${ECHO_T}$ac_res" >&6; }
8997
8998fi
8999if test `eval echo '${'$as_ac_Header'}'` = yes; then
9000 cat >>confdefs.h <<_ACEOF
9001#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9002_ACEOF
9003
9004fi
9005
9006done
9007
9008
9009for ac_header in sys/statfs.h
9010do
9011as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9014echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9015if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9016 echo $ECHO_N "(cached) $ECHO_C" >&6
9017fi
9018ac_res=`eval echo '${'$as_ac_Header'}'`
9019 { echo "$as_me:$LINENO: result: $ac_res" >&5
9020echo "${ECHO_T}$ac_res" >&6; }
9021else
9022 # Is the header compilable?
9023{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9024echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9025cat >conftest.$ac_ext <<_ACEOF
9026/* confdefs.h. */
9027_ACEOF
9028cat confdefs.h >>conftest.$ac_ext
9029cat >>conftest.$ac_ext <<_ACEOF
9030/* end confdefs.h. */
9031$ac_includes_default
9032#include <$ac_header>
9033_ACEOF
9034rm -f conftest.$ac_objext
9035if { (ac_try="$ac_compile"
9036case "(($ac_try" in
9037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038 *) ac_try_echo=$ac_try;;
9039esac
9040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041 (eval "$ac_compile") 2>conftest.er1
9042 ac_status=$?
9043 grep -v '^ *+' conftest.er1 >conftest.err
9044 rm -f conftest.er1
9045 cat conftest.err >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } && {
9048 test -z "$ac_c_werror_flag" ||
9049 test ! -s conftest.err
9050 } && test -s conftest.$ac_objext; then
9051 ac_header_compiler=yes
9052else
9053 echo "$as_me: failed program was:" >&5
9054sed 's/^/| /' conftest.$ac_ext >&5
9055
9056 ac_header_compiler=no
9057fi
9058
9059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9060{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9061echo "${ECHO_T}$ac_header_compiler" >&6; }
9062
9063# Is the header present?
9064{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9065echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9066cat >conftest.$ac_ext <<_ACEOF
9067/* confdefs.h. */
9068_ACEOF
9069cat confdefs.h >>conftest.$ac_ext
9070cat >>conftest.$ac_ext <<_ACEOF
9071/* end confdefs.h. */
9072#include <$ac_header>
9073_ACEOF
9074if { (ac_try="$ac_cpp conftest.$ac_ext"
9075case "(($ac_try" in
9076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9077 *) ac_try_echo=$ac_try;;
9078esac
9079eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9081 ac_status=$?
9082 grep -v '^ *+' conftest.er1 >conftest.err
9083 rm -f conftest.er1
9084 cat conftest.err >&5
9085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086 (exit $ac_status); } >/dev/null && {
9087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9088 test ! -s conftest.err
9089 }; then
9090 ac_header_preproc=yes
9091else
9092 echo "$as_me: failed program was:" >&5
9093sed 's/^/| /' conftest.$ac_ext >&5
9094
9095 ac_header_preproc=no
9096fi
9097
9098rm -f conftest.err conftest.$ac_ext
9099{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9100echo "${ECHO_T}$ac_header_preproc" >&6; }
9101
9102# So? What about this header?
9103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9104 yes:no: )
9105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9106echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9108echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9109 ac_header_preproc=yes
9110 ;;
9111 no:yes:* )
9112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9113echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9115echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9117echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9119echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9121echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9123echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9124
9125 ;;
9126esac
9127{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9128echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9130 echo $ECHO_N "(cached) $ECHO_C" >&6
9131else
9132 eval "$as_ac_Header=\$ac_header_preproc"
9133fi
9134ac_res=`eval echo '${'$as_ac_Header'}'`
9135 { echo "$as_me:$LINENO: result: $ac_res" >&5
9136echo "${ECHO_T}$ac_res" >&6; }
9137
9138fi
9139if test `eval echo '${'$as_ac_Header'}'` = yes; then
9140 cat >>confdefs.h <<_ACEOF
9141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9142_ACEOF
9143
9144fi
9145
9146done
9147
9148
9149for ac_header in sys/param.h
9150do
9151as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9153 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9155if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9157fi
9158ac_res=`eval echo '${'$as_ac_Header'}'`
9159 { echo "$as_me:$LINENO: result: $ac_res" >&5
9160echo "${ECHO_T}$ac_res" >&6; }
9161else
9162 # Is the header compilable?
9163{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9164echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9165cat >conftest.$ac_ext <<_ACEOF
9166/* confdefs.h. */
9167_ACEOF
9168cat confdefs.h >>conftest.$ac_ext
9169cat >>conftest.$ac_ext <<_ACEOF
9170/* end confdefs.h. */
9171$ac_includes_default
9172#include <$ac_header>
9173_ACEOF
9174rm -f conftest.$ac_objext
9175if { (ac_try="$ac_compile"
9176case "(($ac_try" in
9177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9178 *) ac_try_echo=$ac_try;;
9179esac
9180eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181 (eval "$ac_compile") 2>conftest.er1
9182 ac_status=$?
9183 grep -v '^ *+' conftest.er1 >conftest.err
9184 rm -f conftest.er1
9185 cat conftest.err >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } && {
9188 test -z "$ac_c_werror_flag" ||
9189 test ! -s conftest.err
9190 } && test -s conftest.$ac_objext; then
9191 ac_header_compiler=yes
9192else
9193 echo "$as_me: failed program was:" >&5
9194sed 's/^/| /' conftest.$ac_ext >&5
9195
9196 ac_header_compiler=no
9197fi
9198
9199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9200{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9201echo "${ECHO_T}$ac_header_compiler" >&6; }
9202
9203# Is the header present?
9204{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9205echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9206cat >conftest.$ac_ext <<_ACEOF
9207/* confdefs.h. */
9208_ACEOF
9209cat confdefs.h >>conftest.$ac_ext
9210cat >>conftest.$ac_ext <<_ACEOF
9211/* end confdefs.h. */
9212#include <$ac_header>
9213_ACEOF
9214if { (ac_try="$ac_cpp conftest.$ac_ext"
9215case "(($ac_try" in
9216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217 *) ac_try_echo=$ac_try;;
9218esac
9219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9221 ac_status=$?
9222 grep -v '^ *+' conftest.er1 >conftest.err
9223 rm -f conftest.er1
9224 cat conftest.err >&5
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); } >/dev/null && {
9227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9228 test ! -s conftest.err
9229 }; then
9230 ac_header_preproc=yes
9231else
9232 echo "$as_me: failed program was:" >&5
9233sed 's/^/| /' conftest.$ac_ext >&5
9234
9235 ac_header_preproc=no
9236fi
9237
9238rm -f conftest.err conftest.$ac_ext
9239{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9240echo "${ECHO_T}$ac_header_preproc" >&6; }
9241
9242# So? What about this header?
9243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9244 yes:no: )
9245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9246echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9248echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9249 ac_header_preproc=yes
9250 ;;
9251 no:yes:* )
9252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9253echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9255echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9257echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9259echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9261echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9263echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9264
9265 ;;
9266esac
9267{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9268echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9269if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9270 echo $ECHO_N "(cached) $ECHO_C" >&6
9271else
9272 eval "$as_ac_Header=\$ac_header_preproc"
9273fi
9274ac_res=`eval echo '${'$as_ac_Header'}'`
9275 { echo "$as_me:$LINENO: result: $ac_res" >&5
9276echo "${ECHO_T}$ac_res" >&6; }
9277
9278fi
9279if test `eval echo '${'$as_ac_Header'}'` = yes; then
9280 cat >>confdefs.h <<_ACEOF
9281#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9282_ACEOF
9283
9284fi
9285
9286done
9287
9288
9289mount_includes="\
9290 $ac_includes_default
9291 #if HAVE_SYS_PARAM_H
9292 # include <sys/param.h>
9293 #endif
9294 "
9295
9296
9297for ac_header in sys/mount.h
9298do
9299as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9300{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9301echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9304else
9305 cat >conftest.$ac_ext <<_ACEOF
9306/* confdefs.h. */
9307_ACEOF
9308cat confdefs.h >>conftest.$ac_ext
9309cat >>conftest.$ac_ext <<_ACEOF
9310/* end confdefs.h. */
9311$mount_includes
9312
9313#include <$ac_header>
9314_ACEOF
9315rm -f conftest.$ac_objext
9316if { (ac_try="$ac_compile"
9317case "(($ac_try" in
9318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9319 *) ac_try_echo=$ac_try;;
9320esac
9321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9322 (eval "$ac_compile") 2>conftest.er1
9323 ac_status=$?
9324 grep -v '^ *+' conftest.er1 >conftest.err
9325 rm -f conftest.er1
9326 cat conftest.err >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); } && {
9329 test -z "$ac_c_werror_flag" ||
9330 test ! -s conftest.err
9331 } && test -s conftest.$ac_objext; then
9332 eval "$as_ac_Header=yes"
9333else
9334 echo "$as_me: failed program was:" >&5
9335sed 's/^/| /' conftest.$ac_ext >&5
9336
9337 eval "$as_ac_Header=no"
9338fi
9339
9340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9341fi
9342ac_res=`eval echo '${'$as_ac_Header'}'`
9343 { echo "$as_me:$LINENO: result: $ac_res" >&5
9344echo "${ECHO_T}$ac_res" >&6; }
9345if test `eval echo '${'$as_ac_Header'}'` = yes; then
9346 cat >>confdefs.h <<_ACEOF
9347#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9348_ACEOF
9349
9350fi
9351
9352done
9353
9354
9355#################################################
9356# these tests are taken from the GNU fileutils package
9357{ echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
9358echo "$as_me: checking how to get filesystem space usage..." >&6;}
9359space=no
9360
9361# Test for statvfs64.
9362if test $space = no; then
9363 # SVR4
9364 { echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
9365echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6; }
9366if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
9367 echo $ECHO_N "(cached) $ECHO_C" >&6
9368else
9369 if test "$cross_compiling" = yes; then
9370 fu_cv_sys_stat_statvfs64=cross
9371else
9372 cat >conftest.$ac_ext <<_ACEOF
9373/* confdefs.h. */
9374_ACEOF
9375cat confdefs.h >>conftest.$ac_ext
9376cat >>conftest.$ac_ext <<_ACEOF
9377/* end confdefs.h. */
9378
9379#if defined(HAVE_UNISTD_H)
9380#include <unistd.h>
9381#endif
9382#include <sys/types.h>
9383#include <sys/statvfs.h>
9384 main ()
9385 {
9386 struct statvfs64 fsd;
9387 exit (statvfs64 (".", &fsd));
9388 }
9389_ACEOF
9390rm -f conftest$ac_exeext
9391if { (ac_try="$ac_link"
9392case "(($ac_try" in
9393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9394 *) ac_try_echo=$ac_try;;
9395esac
9396eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9397 (eval "$ac_link") 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9401 { (case "(($ac_try" in
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9404esac
9405eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_try") 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; }; then
9410 fu_cv_sys_stat_statvfs64=yes
9411else
9412 echo "$as_me: program exited with status $ac_status" >&5
9413echo "$as_me: failed program was:" >&5
9414sed 's/^/| /' conftest.$ac_ext >&5
9415
9416( exit $ac_status )
9417fu_cv_sys_stat_statvfs64=no
9418fi
9419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9420fi
9421
9422
9423fi
9424{ echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
9425echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6; }
9426 if test $fu_cv_sys_stat_statvfs64 = yes; then
9427 space=yes
9428
9429cat >>confdefs.h <<\_ACEOF
9430#define STAT_STATVFS64 1
9431_ACEOF
9432
9433 fi
9434fi
9435
9436# Perform only the link test since it seems there are no variants of the
9437# statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
9438# because that got a false positive on SCO OSR5. Adding the declaration
9439# of a `struct statvfs' causes this test to fail (as it should) on such
9440# systems. That system is reported to work fine with STAT_STATFS4 which
9441# is what it gets when this test fails.
9442if test $space = no; then
9443 # SVR4
9444 { echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
9445echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6; }
9446if test "${fu_cv_sys_stat_statvfs+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9448else
9449 cat >conftest.$ac_ext <<_ACEOF
9450/* confdefs.h. */
9451_ACEOF
9452cat confdefs.h >>conftest.$ac_ext
9453cat >>conftest.$ac_ext <<_ACEOF
9454/* end confdefs.h. */
9455#include <sys/types.h>
9456#include <sys/statvfs.h>
9457int
9458main ()
9459{
9460struct statvfs fsd; statvfs (0, &fsd);
9461 ;
9462 return 0;
9463}
9464_ACEOF
9465rm -f conftest.$ac_objext conftest$ac_exeext
9466if { (ac_try="$ac_link"
9467case "(($ac_try" in
9468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9469 *) ac_try_echo=$ac_try;;
9470esac
9471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9472 (eval "$ac_link") 2>conftest.er1
9473 ac_status=$?
9474 grep -v '^ *+' conftest.er1 >conftest.err
9475 rm -f conftest.er1
9476 cat conftest.err >&5
9477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478 (exit $ac_status); } && {
9479 test -z "$ac_c_werror_flag" ||
9480 test ! -s conftest.err
9481 } && test -s conftest$ac_exeext &&
9482 $as_test_x conftest$ac_exeext; then
9483 fu_cv_sys_stat_statvfs=yes
9484else
9485 echo "$as_me: failed program was:" >&5
9486sed 's/^/| /' conftest.$ac_ext >&5
9487
9488 fu_cv_sys_stat_statvfs=no
9489fi
9490
9491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9492 conftest$ac_exeext conftest.$ac_ext
9493fi
9494{ echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
9495echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6; }
9496 if test $fu_cv_sys_stat_statvfs = yes; then
9497 space=yes
9498
9499cat >>confdefs.h <<\_ACEOF
9500#define STAT_STATVFS 1
9501_ACEOF
9502
9503 fi
9504fi
9505
9506if test $space = no; then
9507 # DEC Alpha running OSF/1
9508 { echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
9509echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6; }
9510 if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9512else
9513 if test "$cross_compiling" = yes; then
9514 fu_cv_sys_stat_statfs3_osf1=no
9515else
9516 cat >conftest.$ac_ext <<_ACEOF
9517/* confdefs.h. */
9518_ACEOF
9519cat confdefs.h >>conftest.$ac_ext
9520cat >>conftest.$ac_ext <<_ACEOF
9521/* end confdefs.h. */
9522
9523#include <sys/param.h>
9524#include <sys/types.h>
9525#include <sys/mount.h>
9526 main ()
9527 {
9528 struct statfs fsd;
9529 fsd.f_fsize = 0;
9530 exit (statfs (".", &fsd, sizeof (struct statfs)));
9531 }
9532_ACEOF
9533rm -f conftest$ac_exeext
9534if { (ac_try="$ac_link"
9535case "(($ac_try" in
9536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9537 *) ac_try_echo=$ac_try;;
9538esac
9539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9540 (eval "$ac_link") 2>&5
9541 ac_status=$?
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9544 { (case "(($ac_try" in
9545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546 *) ac_try_echo=$ac_try;;
9547esac
9548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_try") 2>&5
9550 ac_status=$?
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); }; }; then
9553 fu_cv_sys_stat_statfs3_osf1=yes
9554else
9555 echo "$as_me: program exited with status $ac_status" >&5
9556echo "$as_me: failed program was:" >&5
9557sed 's/^/| /' conftest.$ac_ext >&5
9558
9559( exit $ac_status )
9560fu_cv_sys_stat_statfs3_osf1=no
9561fi
9562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9563fi
9564
9565
9566fi
9567
9568
9569
9570#C_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
9571 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
9572 space=yes
9573
9574cat >>confdefs.h <<\_ACEOF
9575#define STAT_STATFS3_OSF1 1
9576_ACEOF
9577
9578 fi
9579fi
9580
9581if test $space = no; then
9582# AIX
9583 { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
9584echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6; }
9585 if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9587else
9588 if test "$cross_compiling" = yes; then
9589 fu_cv_sys_stat_statfs2_bsize=no
9590else
9591 cat >conftest.$ac_ext <<_ACEOF
9592/* confdefs.h. */
9593_ACEOF
9594cat confdefs.h >>conftest.$ac_ext
9595cat >>conftest.$ac_ext <<_ACEOF
9596/* end confdefs.h. */
9597
9598#ifdef HAVE_SYS_PARAM_H
9599#include <sys/param.h>
9600#endif
9601#ifdef HAVE_SYS_MOUNT_H
9602#include <sys/mount.h>
9603#endif
9604#ifdef HAVE_SYS_VFS_H
9605#include <sys/vfs.h>
9606#endif
9607 main ()
9608 {
9609 struct statfs fsd;
9610 fsd.f_bsize = 0;
9611 exit (statfs (".", &fsd));
9612 }
9613_ACEOF
9614rm -f conftest$ac_exeext
9615if { (ac_try="$ac_link"
9616case "(($ac_try" in
9617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618 *) ac_try_echo=$ac_try;;
9619esac
9620eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9621 (eval "$ac_link") 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9625 { (case "(($ac_try" in
9626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9627 *) ac_try_echo=$ac_try;;
9628esac
9629eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9630 (eval "$ac_try") 2>&5
9631 ac_status=$?
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; }; then
9634 fu_cv_sys_stat_statfs2_bsize=yes
9635else
9636 echo "$as_me: program exited with status $ac_status" >&5
9637echo "$as_me: failed program was:" >&5
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
9640( exit $ac_status )
9641fu_cv_sys_stat_statfs2_bsize=no
9642fi
9643rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9644fi
9645
9646
9647fi
9648
9649 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
9650echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6; }
9651 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
9652 space=yes
9653
9654cat >>confdefs.h <<\_ACEOF
9655#define STAT_STATFS2_BSIZE 1
9656_ACEOF
9657
9658 fi
9659fi
9660
9661if test $space = no; then
9662# SVR3
9663 { echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
9664echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6; }
9665 if test "${fu_cv_sys_stat_statfs4+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9667else
9668 if test "$cross_compiling" = yes; then
9669 fu_cv_sys_stat_statfs4=no
9670else
9671 cat >conftest.$ac_ext <<_ACEOF
9672/* confdefs.h. */
9673_ACEOF
9674cat confdefs.h >>conftest.$ac_ext
9675cat >>conftest.$ac_ext <<_ACEOF
9676/* end confdefs.h. */
9677#include <sys/types.h>
9678#include <sys/statfs.h>
9679 main ()
9680 {
9681 struct statfs fsd;
9682 exit (statfs (".", &fsd, sizeof fsd, 0));
9683 }
9684_ACEOF
9685rm -f conftest$ac_exeext
9686if { (ac_try="$ac_link"
9687case "(($ac_try" in
9688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9690esac
9691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_link") 2>&5
9693 ac_status=$?
9694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9696 { (case "(($ac_try" in
9697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9698 *) ac_try_echo=$ac_try;;
9699esac
9700eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_try") 2>&5
9702 ac_status=$?
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; }; then
9705 fu_cv_sys_stat_statfs4=yes
9706else
9707 echo "$as_me: program exited with status $ac_status" >&5
9708echo "$as_me: failed program was:" >&5
9709sed 's/^/| /' conftest.$ac_ext >&5
9710
9711( exit $ac_status )
9712fu_cv_sys_stat_statfs4=no
9713fi
9714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9715fi
9716
9717
9718fi
9719
9720 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
9721echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6; }
9722 if test $fu_cv_sys_stat_statfs4 = yes; then
9723 space=yes
9724
9725cat >>confdefs.h <<\_ACEOF
9726#define STAT_STATFS4 1
9727_ACEOF
9728
9729 fi
9730fi
9731
9732if test $space = no; then
9733# 4.4BSD and NetBSD
9734 { echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
9735echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6; }
9736 if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9738else
9739 if test "$cross_compiling" = yes; then
9740 fu_cv_sys_stat_statfs2_fsize=no
9741else
9742 cat >conftest.$ac_ext <<_ACEOF
9743/* confdefs.h. */
9744_ACEOF
9745cat confdefs.h >>conftest.$ac_ext
9746cat >>conftest.$ac_ext <<_ACEOF
9747/* end confdefs.h. */
9748#include <sys/types.h>
9749#ifdef HAVE_SYS_PARAM_H
9750#include <sys/param.h>
9751#endif
9752#ifdef HAVE_SYS_MOUNT_H
9753#include <sys/mount.h>
9754#endif
9755 main ()
9756 {
9757 struct statfs fsd;
9758 fsd.f_fsize = 0;
9759 exit (statfs (".", &fsd));
9760 }
9761_ACEOF
9762rm -f conftest$ac_exeext
9763if { (ac_try="$ac_link"
9764case "(($ac_try" in
9765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766 *) ac_try_echo=$ac_try;;
9767esac
9768eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769 (eval "$ac_link") 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9773 { (case "(($ac_try" in
9774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9775 *) ac_try_echo=$ac_try;;
9776esac
9777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9778 (eval "$ac_try") 2>&5
9779 ac_status=$?
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 fu_cv_sys_stat_statfs2_fsize=yes
9783else
9784 echo "$as_me: program exited with status $ac_status" >&5
9785echo "$as_me: failed program was:" >&5
9786sed 's/^/| /' conftest.$ac_ext >&5
9787
9788( exit $ac_status )
9789fu_cv_sys_stat_statfs2_fsize=no
9790fi
9791rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9792fi
9793
9794
9795fi
9796
9797 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
9798echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6; }
9799 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
9800 space=yes
9801
9802cat >>confdefs.h <<\_ACEOF
9803#define STAT_STATFS2_FSIZE 1
9804_ACEOF
9805
9806 fi
9807fi
9808
9809if test $space = no; then
9810 # Ultrix
9811 { echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
9812echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6; }
9813 if test "${fu_cv_sys_stat_fs_data+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815else
9816 if test "$cross_compiling" = yes; then
9817 fu_cv_sys_stat_fs_data=no
9818else
9819 cat >conftest.$ac_ext <<_ACEOF
9820/* confdefs.h. */
9821_ACEOF
9822cat confdefs.h >>conftest.$ac_ext
9823cat >>conftest.$ac_ext <<_ACEOF
9824/* end confdefs.h. */
9825#include <sys/types.h>
9826#ifdef HAVE_SYS_PARAM_H
9827#include <sys/param.h>
9828#endif
9829#ifdef HAVE_SYS_MOUNT_H
9830#include <sys/mount.h>
9831#endif
9832#ifdef HAVE_SYS_FS_TYPES_H
9833#include <sys/fs_types.h>
9834#endif
9835 main ()
9836 {
9837 struct fs_data fsd;
9838 /* Ultrix's statfs returns 1 for success,
9839 0 for not mounted, -1 for failure. */
9840 exit (statfs (".", &fsd) != 1);
9841 }
9842_ACEOF
9843rm -f conftest$ac_exeext
9844if { (ac_try="$ac_link"
9845case "(($ac_try" in
9846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847 *) ac_try_echo=$ac_try;;
9848esac
9849eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9850 (eval "$ac_link") 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9854 { (case "(($ac_try" in
9855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9856 *) ac_try_echo=$ac_try;;
9857esac
9858eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9859 (eval "$ac_try") 2>&5
9860 ac_status=$?
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; }; then
9863 fu_cv_sys_stat_fs_data=yes
9864else
9865 echo "$as_me: program exited with status $ac_status" >&5
9866echo "$as_me: failed program was:" >&5
9867sed 's/^/| /' conftest.$ac_ext >&5
9868
9869( exit $ac_status )
9870fu_cv_sys_stat_fs_data=no
9871fi
9872rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9873fi
9874
9875
9876fi
9877
9878 { echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
9879echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6; }
9880 if test $fu_cv_sys_stat_fs_data = yes; then
9881 space=yes
9882
9883cat >>confdefs.h <<\_ACEOF
9884#define STAT_STATFS2_FS_DATA 1
9885_ACEOF
9886
9887 fi
9888fi
9889
9890 statxfs_includes="\
9891$ac_includes_default
9892#if HAVE_SYS_STATVFS_H
9893# include <sys/statvfs.h>
9894#endif
9895#if HAVE_SYS_VFS_H
9896# include <sys/vfs.h>
9897#endif
9898#if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
9899# if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
9900/* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
9901# include <sys/param.h>
9902# include <sys/mount.h>
9903# elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
9904/* Ultrix 4.4 needs these for the declaration of struct statfs. */
9905# include <netinet/in.h>
9906# include <nfs/nfs_clnt.h>
9907# include <nfs/vfs.h>
9908# endif
9909#endif
9910"
9911
9912{ echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
9913echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6; }
9914if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
9915 echo $ECHO_N "(cached) $ECHO_C" >&6
9916else
9917 cat >conftest.$ac_ext <<_ACEOF
9918/* confdefs.h. */
9919_ACEOF
9920cat confdefs.h >>conftest.$ac_ext
9921cat >>conftest.$ac_ext <<_ACEOF
9922/* end confdefs.h. */
9923$statxfs_includes
9924
9925int
9926main ()
9927{
9928static struct statfs ac_aggr;
9929if (ac_aggr.f_namemax)
9930return 0;
9931 ;
9932 return 0;
9933}
9934_ACEOF
9935rm -f conftest.$ac_objext
9936if { (ac_try="$ac_compile"
9937case "(($ac_try" in
9938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9939 *) ac_try_echo=$ac_try;;
9940esac
9941eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9942 (eval "$ac_compile") 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } && {
9949 test -z "$ac_c_werror_flag" ||
9950 test ! -s conftest.err
9951 } && test -s conftest.$ac_objext; then
9952 ac_cv_member_struct_statfs_f_namemax=yes
9953else
9954 echo "$as_me: failed program was:" >&5
9955sed 's/^/| /' conftest.$ac_ext >&5
9956
9957 cat >conftest.$ac_ext <<_ACEOF
9958/* confdefs.h. */
9959_ACEOF
9960cat confdefs.h >>conftest.$ac_ext
9961cat >>conftest.$ac_ext <<_ACEOF
9962/* end confdefs.h. */
9963$statxfs_includes
9964
9965int
9966main ()
9967{
9968static struct statfs ac_aggr;
9969if (sizeof ac_aggr.f_namemax)
9970return 0;
9971 ;
9972 return 0;
9973}
9974_ACEOF
9975rm -f conftest.$ac_objext
9976if { (ac_try="$ac_compile"
9977case "(($ac_try" in
9978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9979 *) ac_try_echo=$ac_try;;
9980esac
9981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9982 (eval "$ac_compile") 2>conftest.er1
9983 ac_status=$?
9984 grep -v '^ *+' conftest.er1 >conftest.err
9985 rm -f conftest.er1
9986 cat conftest.err >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); } && {
9989 test -z "$ac_c_werror_flag" ||
9990 test ! -s conftest.err
9991 } && test -s conftest.$ac_objext; then
9992 ac_cv_member_struct_statfs_f_namemax=yes
9993else
9994 echo "$as_me: failed program was:" >&5
9995sed 's/^/| /' conftest.$ac_ext >&5
9996
9997 ac_cv_member_struct_statfs_f_namemax=no
9998fi
9999
10000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10001fi
10002
10003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10004fi
10005{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
10006echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6; }
10007if test $ac_cv_member_struct_statfs_f_namemax = yes; then
10008
10009cat >>confdefs.h <<_ACEOF
10010#define HAVE_STRUCT_STATFS_F_NAMEMAX 1
10011_ACEOF
10012
10013
10014fi
10015
10016{ echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
10017echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6; }
10018if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
10019 echo $ECHO_N "(cached) $ECHO_C" >&6
10020else
10021 cat >conftest.$ac_ext <<_ACEOF
10022/* confdefs.h. */
10023_ACEOF
10024cat confdefs.h >>conftest.$ac_ext
10025cat >>conftest.$ac_ext <<_ACEOF
10026/* end confdefs.h. */
10027$statxfs_includes
10028
10029int
10030main ()
10031{
10032static struct statvfs ac_aggr;
10033if (ac_aggr.f_namemax)
10034return 0;
10035 ;
10036 return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext
10040if { (ac_try="$ac_compile"
10041case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10044esac
10045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_compile") 2>conftest.er1
10047 ac_status=$?
10048 grep -v '^ *+' conftest.er1 >conftest.err
10049 rm -f conftest.er1
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } && {
10053 test -z "$ac_c_werror_flag" ||
10054 test ! -s conftest.err
10055 } && test -s conftest.$ac_objext; then
10056 ac_cv_member_struct_statvfs_f_namemax=yes
10057else
10058 echo "$as_me: failed program was:" >&5
10059sed 's/^/| /' conftest.$ac_ext >&5
10060
10061 cat >conftest.$ac_ext <<_ACEOF
10062/* confdefs.h. */
10063_ACEOF
10064cat confdefs.h >>conftest.$ac_ext
10065cat >>conftest.$ac_ext <<_ACEOF
10066/* end confdefs.h. */
10067$statxfs_includes
10068
10069int
10070main ()
10071{
10072static struct statvfs ac_aggr;
10073if (sizeof ac_aggr.f_namemax)
10074return 0;
10075 ;
10076 return 0;
10077}
10078_ACEOF
10079rm -f conftest.$ac_objext
10080if { (ac_try="$ac_compile"
10081case "(($ac_try" in
10082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10083 *) ac_try_echo=$ac_try;;
10084esac
10085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10086 (eval "$ac_compile") 2>conftest.er1
10087 ac_status=$?
10088 grep -v '^ *+' conftest.er1 >conftest.err
10089 rm -f conftest.er1
10090 cat conftest.err >&5
10091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10092 (exit $ac_status); } && {
10093 test -z "$ac_c_werror_flag" ||
10094 test ! -s conftest.err
10095 } && test -s conftest.$ac_objext; then
10096 ac_cv_member_struct_statvfs_f_namemax=yes
10097else
10098 echo "$as_me: failed program was:" >&5
10099sed 's/^/| /' conftest.$ac_ext >&5
10100
10101 ac_cv_member_struct_statvfs_f_namemax=no
10102fi
10103
10104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10105fi
10106
10107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10108fi
10109{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
10110echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6; }
10111if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
10112
10113cat >>confdefs.h <<_ACEOF
10114#define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
10115_ACEOF
10116
10117
10118fi
10119
10120{ echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
10121echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6; }
10122if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10124else
10125 cat >conftest.$ac_ext <<_ACEOF
10126/* confdefs.h. */
10127_ACEOF
10128cat confdefs.h >>conftest.$ac_ext
10129cat >>conftest.$ac_ext <<_ACEOF
10130/* end confdefs.h. */
10131$statxfs_includes
10132
10133int
10134main ()
10135{
10136static struct statfs ac_aggr;
10137if (ac_aggr.f_namelen)
10138return 0;
10139 ;
10140 return 0;
10141}
10142_ACEOF
10143rm -f conftest.$ac_objext
10144if { (ac_try="$ac_compile"
10145case "(($ac_try" in
10146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10147 *) ac_try_echo=$ac_try;;
10148esac
10149eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10150 (eval "$ac_compile") 2>conftest.er1
10151 ac_status=$?
10152 grep -v '^ *+' conftest.er1 >conftest.err
10153 rm -f conftest.er1
10154 cat conftest.err >&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); } && {
10157 test -z "$ac_c_werror_flag" ||
10158 test ! -s conftest.err
10159 } && test -s conftest.$ac_objext; then
10160 ac_cv_member_struct_statfs_f_namelen=yes
10161else
10162 echo "$as_me: failed program was:" >&5
10163sed 's/^/| /' conftest.$ac_ext >&5
10164
10165 cat >conftest.$ac_ext <<_ACEOF
10166/* confdefs.h. */
10167_ACEOF
10168cat confdefs.h >>conftest.$ac_ext
10169cat >>conftest.$ac_ext <<_ACEOF
10170/* end confdefs.h. */
10171$statxfs_includes
10172
10173int
10174main ()
10175{
10176static struct statfs ac_aggr;
10177if (sizeof ac_aggr.f_namelen)
10178return 0;
10179 ;
10180 return 0;
10181}
10182_ACEOF
10183rm -f conftest.$ac_objext
10184if { (ac_try="$ac_compile"
10185case "(($ac_try" in
10186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10188esac
10189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_compile") 2>conftest.er1
10191 ac_status=$?
10192 grep -v '^ *+' conftest.er1 >conftest.err
10193 rm -f conftest.er1
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } && {
10197 test -z "$ac_c_werror_flag" ||
10198 test ! -s conftest.err
10199 } && test -s conftest.$ac_objext; then
10200 ac_cv_member_struct_statfs_f_namelen=yes
10201else
10202 echo "$as_me: failed program was:" >&5
10203sed 's/^/| /' conftest.$ac_ext >&5
10204
10205 ac_cv_member_struct_statfs_f_namelen=no
10206fi
10207
10208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10209fi
10210
10211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10212fi
10213{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
10214echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6; }
10215if test $ac_cv_member_struct_statfs_f_namelen = yes; then
10216
10217cat >>confdefs.h <<_ACEOF
10218#define HAVE_STRUCT_STATFS_F_NAMELEN 1
10219_ACEOF
10220
10221
10222fi
10223
10224{ echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
10225echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6; }
10226if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228else
10229 cat >conftest.$ac_ext <<_ACEOF
10230/* confdefs.h. */
10231_ACEOF
10232cat confdefs.h >>conftest.$ac_ext
10233cat >>conftest.$ac_ext <<_ACEOF
10234/* end confdefs.h. */
10235$statxfs_includes
10236
10237int
10238main ()
10239{
10240static struct statvfs ac_aggr;
10241if (ac_aggr.f_namelen)
10242return 0;
10243 ;
10244 return 0;
10245}
10246_ACEOF
10247rm -f conftest.$ac_objext
10248if { (ac_try="$ac_compile"
10249case "(($ac_try" in
10250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10251 *) ac_try_echo=$ac_try;;
10252esac
10253eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10254 (eval "$ac_compile") 2>conftest.er1
10255 ac_status=$?
10256 grep -v '^ *+' conftest.er1 >conftest.err
10257 rm -f conftest.er1
10258 cat conftest.err >&5
10259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10260 (exit $ac_status); } && {
10261 test -z "$ac_c_werror_flag" ||
10262 test ! -s conftest.err
10263 } && test -s conftest.$ac_objext; then
10264 ac_cv_member_struct_statvfs_f_namelen=yes
10265else
10266 echo "$as_me: failed program was:" >&5
10267sed 's/^/| /' conftest.$ac_ext >&5
10268
10269 cat >conftest.$ac_ext <<_ACEOF
10270/* confdefs.h. */
10271_ACEOF
10272cat confdefs.h >>conftest.$ac_ext
10273cat >>conftest.$ac_ext <<_ACEOF
10274/* end confdefs.h. */
10275$statxfs_includes
10276
10277int
10278main ()
10279{
10280static struct statvfs ac_aggr;
10281if (sizeof ac_aggr.f_namelen)
10282return 0;
10283 ;
10284 return 0;
10285}
10286_ACEOF
10287rm -f conftest.$ac_objext
10288if { (ac_try="$ac_compile"
10289case "(($ac_try" in
10290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291 *) ac_try_echo=$ac_try;;
10292esac
10293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294 (eval "$ac_compile") 2>conftest.er1
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } && {
10301 test -z "$ac_c_werror_flag" ||
10302 test ! -s conftest.err
10303 } && test -s conftest.$ac_objext; then
10304 ac_cv_member_struct_statvfs_f_namelen=yes
10305else
10306 echo "$as_me: failed program was:" >&5
10307sed 's/^/| /' conftest.$ac_ext >&5
10308
10309 ac_cv_member_struct_statvfs_f_namelen=no
10310fi
10311
10312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10313fi
10314
10315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10316fi
10317{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
10318echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6; }
10319if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
10320
10321cat >>confdefs.h <<_ACEOF
10322#define HAVE_STRUCT_STATVFS_F_NAMELEN 1
10323_ACEOF
10324
10325
10326fi
10327
10328
10329#
10330# Large file support
10331#
10332# Check whether --enable-largefile was given.
10333if test "${enable_largefile+set}" = set; then
10334 enableval=$enable_largefile;
10335fi
10336
10337if test "$enable_largefile" != no; then
10338
10339 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
10340echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
10341if test "${ac_cv_sys_largefile_CC+set}" = set; then
10342 echo $ECHO_N "(cached) $ECHO_C" >&6
10343else
10344 ac_cv_sys_largefile_CC=no
10345 if test "$GCC" != yes; then
10346 ac_save_CC=$CC
10347 while :; do
10348 # IRIX 6.2 and later do not support large files by default,
10349 # so use the C compiler's -n32 option if that helps.
10350 cat >conftest.$ac_ext <<_ACEOF
10351/* confdefs.h. */
10352_ACEOF
10353cat confdefs.h >>conftest.$ac_ext
10354cat >>conftest.$ac_ext <<_ACEOF
10355/* end confdefs.h. */
10356#include <sys/types.h>
10357 /* Check that off_t can represent 2**63 - 1 correctly.
10358 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10359 since some C++ compilers masquerading as C compilers
10360 incorrectly reject 9223372036854775807. */
10361#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10363 && LARGE_OFF_T % 2147483647 == 1)
10364 ? 1 : -1];
10365int
10366main ()
10367{
10368
10369 ;
10370 return 0;
10371}
10372_ACEOF
10373 rm -f conftest.$ac_objext
10374if { (ac_try="$ac_compile"
10375case "(($ac_try" in
10376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10377 *) ac_try_echo=$ac_try;;
10378esac
10379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10380 (eval "$ac_compile") 2>conftest.er1
10381 ac_status=$?
10382 grep -v '^ *+' conftest.er1 >conftest.err
10383 rm -f conftest.er1
10384 cat conftest.err >&5
10385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); } && {
10387 test -z "$ac_c_werror_flag" ||
10388 test ! -s conftest.err
10389 } && test -s conftest.$ac_objext; then
10390 break
10391else
10392 echo "$as_me: failed program was:" >&5
10393sed 's/^/| /' conftest.$ac_ext >&5
10394
10395
10396fi
10397
10398rm -f core conftest.err conftest.$ac_objext
10399 CC="$CC -n32"
10400 rm -f conftest.$ac_objext
10401if { (ac_try="$ac_compile"
10402case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10405esac
10406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_compile") 2>conftest.er1
10408 ac_status=$?
10409 grep -v '^ *+' conftest.er1 >conftest.err
10410 rm -f conftest.er1
10411 cat conftest.err >&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } && {
10414 test -z "$ac_c_werror_flag" ||
10415 test ! -s conftest.err
10416 } && test -s conftest.$ac_objext; then
10417 ac_cv_sys_largefile_CC=' -n32'; break
10418else
10419 echo "$as_me: failed program was:" >&5
10420sed 's/^/| /' conftest.$ac_ext >&5
10421
10422
10423fi
10424
10425rm -f core conftest.err conftest.$ac_objext
10426 break
10427 done
10428 CC=$ac_save_CC
10429 rm -f conftest.$ac_ext
10430 fi
10431fi
10432{ echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
10433echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
10434 if test "$ac_cv_sys_largefile_CC" != no; then
10435 CC=$CC$ac_cv_sys_largefile_CC
10436 fi
10437
10438 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10439echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
10440if test "${ac_cv_sys_file_offset_bits+set}" = set; then
10441 echo $ECHO_N "(cached) $ECHO_C" >&6
10442else
10443 while :; do
10444 cat >conftest.$ac_ext <<_ACEOF
10445/* confdefs.h. */
10446_ACEOF
10447cat confdefs.h >>conftest.$ac_ext
10448cat >>conftest.$ac_ext <<_ACEOF
10449/* end confdefs.h. */
10450#include <sys/types.h>
10451 /* Check that off_t can represent 2**63 - 1 correctly.
10452 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10453 since some C++ compilers masquerading as C compilers
10454 incorrectly reject 9223372036854775807. */
10455#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10456 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10457 && LARGE_OFF_T % 2147483647 == 1)
10458 ? 1 : -1];
10459int
10460main ()
10461{
10462
10463 ;
10464 return 0;
10465}
10466_ACEOF
10467rm -f conftest.$ac_objext
10468if { (ac_try="$ac_compile"
10469case "(($ac_try" in
10470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471 *) ac_try_echo=$ac_try;;
10472esac
10473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474 (eval "$ac_compile") 2>conftest.er1
10475 ac_status=$?
10476 grep -v '^ *+' conftest.er1 >conftest.err
10477 rm -f conftest.er1
10478 cat conftest.err >&5
10479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480 (exit $ac_status); } && {
10481 test -z "$ac_c_werror_flag" ||
10482 test ! -s conftest.err
10483 } && test -s conftest.$ac_objext; then
10484 ac_cv_sys_file_offset_bits=no; break
10485else
10486 echo "$as_me: failed program was:" >&5
10487sed 's/^/| /' conftest.$ac_ext >&5
10488
10489
10490fi
10491
10492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10493 cat >conftest.$ac_ext <<_ACEOF
10494/* confdefs.h. */
10495_ACEOF
10496cat confdefs.h >>conftest.$ac_ext
10497cat >>conftest.$ac_ext <<_ACEOF
10498/* end confdefs.h. */
10499#define _FILE_OFFSET_BITS 64
10500#include <sys/types.h>
10501 /* Check that off_t can represent 2**63 - 1 correctly.
10502 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10503 since some C++ compilers masquerading as C compilers
10504 incorrectly reject 9223372036854775807. */
10505#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10506 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10507 && LARGE_OFF_T % 2147483647 == 1)
10508 ? 1 : -1];
10509int
10510main ()
10511{
10512
10513 ;
10514 return 0;
10515}
10516_ACEOF
10517rm -f conftest.$ac_objext
10518if { (ac_try="$ac_compile"
10519case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10522esac
10523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_compile") 2>conftest.er1
10525 ac_status=$?
10526 grep -v '^ *+' conftest.er1 >conftest.err
10527 rm -f conftest.er1
10528 cat conftest.err >&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); } && {
10531 test -z "$ac_c_werror_flag" ||
10532 test ! -s conftest.err
10533 } && test -s conftest.$ac_objext; then
10534 ac_cv_sys_file_offset_bits=64; break
10535else
10536 echo "$as_me: failed program was:" >&5
10537sed 's/^/| /' conftest.$ac_ext >&5
10538
10539
10540fi
10541
10542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10543 ac_cv_sys_file_offset_bits=unknown
10544 break
10545done
10546fi
10547{ echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
10548echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
10549case $ac_cv_sys_file_offset_bits in #(
10550 no | unknown) ;;
10551 *)
10552cat >>confdefs.h <<_ACEOF
10553#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10554_ACEOF
10555;;
10556esac
10557rm -f conftest*
10558 if test $ac_cv_sys_file_offset_bits = unknown; then
10559 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
10560echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
10561if test "${ac_cv_sys_large_files+set}" = set; then
10562 echo $ECHO_N "(cached) $ECHO_C" >&6
10563else
10564 while :; do
10565 cat >conftest.$ac_ext <<_ACEOF
10566/* confdefs.h. */
10567_ACEOF
10568cat confdefs.h >>conftest.$ac_ext
10569cat >>conftest.$ac_ext <<_ACEOF
10570/* end confdefs.h. */
10571#include <sys/types.h>
10572 /* Check that off_t can represent 2**63 - 1 correctly.
10573 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10574 since some C++ compilers masquerading as C compilers
10575 incorrectly reject 9223372036854775807. */
10576#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10577 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10578 && LARGE_OFF_T % 2147483647 == 1)
10579 ? 1 : -1];
10580int
10581main ()
10582{
10583
10584 ;
10585 return 0;
10586}
10587_ACEOF
10588rm -f conftest.$ac_objext
10589if { (ac_try="$ac_compile"
10590case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10593esac
10594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10595 (eval "$ac_compile") 2>conftest.er1
10596 ac_status=$?
10597 grep -v '^ *+' conftest.er1 >conftest.err
10598 rm -f conftest.er1
10599 cat conftest.err >&5
10600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10601 (exit $ac_status); } && {
10602 test -z "$ac_c_werror_flag" ||
10603 test ! -s conftest.err
10604 } && test -s conftest.$ac_objext; then
10605 ac_cv_sys_large_files=no; break
10606else
10607 echo "$as_me: failed program was:" >&5
10608sed 's/^/| /' conftest.$ac_ext >&5
10609
10610
10611fi
10612
10613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10614 cat >conftest.$ac_ext <<_ACEOF
10615/* confdefs.h. */
10616_ACEOF
10617cat confdefs.h >>conftest.$ac_ext
10618cat >>conftest.$ac_ext <<_ACEOF
10619/* end confdefs.h. */
10620#define _LARGE_FILES 1
10621#include <sys/types.h>
10622 /* Check that off_t can represent 2**63 - 1 correctly.
10623 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10624 since some C++ compilers masquerading as C compilers
10625 incorrectly reject 9223372036854775807. */
10626#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10627 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10628 && LARGE_OFF_T % 2147483647 == 1)
10629 ? 1 : -1];
10630int
10631main ()
10632{
10633
10634 ;
10635 return 0;
10636}
10637_ACEOF
10638rm -f conftest.$ac_objext
10639if { (ac_try="$ac_compile"
10640case "(($ac_try" in
10641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10642 *) ac_try_echo=$ac_try;;
10643esac
10644eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10645 (eval "$ac_compile") 2>conftest.er1
10646 ac_status=$?
10647 grep -v '^ *+' conftest.er1 >conftest.err
10648 rm -f conftest.er1
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } && {
10652 test -z "$ac_c_werror_flag" ||
10653 test ! -s conftest.err
10654 } && test -s conftest.$ac_objext; then
10655 ac_cv_sys_large_files=1; break
10656else
10657 echo "$as_me: failed program was:" >&5
10658sed 's/^/| /' conftest.$ac_ext >&5
10659
10660
10661fi
10662
10663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10664 ac_cv_sys_large_files=unknown
10665 break
10666done
10667fi
10668{ echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
10669echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
10670case $ac_cv_sys_large_files in #(
10671 no | unknown) ;;
10672 *)
10673cat >>confdefs.h <<_ACEOF
10674#define _LARGE_FILES $ac_cv_sys_large_files
10675_ACEOF
10676;;
10677esac
10678rm -f conftest*
10679 fi
10680fi
10681
10682
10683#
10684# mntent
10685#
10686if test "${ac_cv_header_mntent_h+set}" = set; then
10687 { echo "$as_me:$LINENO: checking for mntent.h" >&5
10688echo $ECHO_N "checking for mntent.h... $ECHO_C" >&6; }
10689if test "${ac_cv_header_mntent_h+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10691fi
10692{ echo "$as_me:$LINENO: result: $ac_cv_header_mntent_h" >&5
10693echo "${ECHO_T}$ac_cv_header_mntent_h" >&6; }
10694else
10695 # Is the header compilable?
10696{ echo "$as_me:$LINENO: checking mntent.h usability" >&5
10697echo $ECHO_N "checking mntent.h usability... $ECHO_C" >&6; }
10698cat >conftest.$ac_ext <<_ACEOF
10699/* confdefs.h. */
10700_ACEOF
10701cat confdefs.h >>conftest.$ac_ext
10702cat >>conftest.$ac_ext <<_ACEOF
10703/* end confdefs.h. */
10704$ac_includes_default
10705#include <mntent.h>
10706_ACEOF
10707rm -f conftest.$ac_objext
10708if { (ac_try="$ac_compile"
10709case "(($ac_try" in
10710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711 *) ac_try_echo=$ac_try;;
10712esac
10713eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10714 (eval "$ac_compile") 2>conftest.er1
10715 ac_status=$?
10716 grep -v '^ *+' conftest.er1 >conftest.err
10717 rm -f conftest.er1
10718 cat conftest.err >&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); } && {
10721 test -z "$ac_c_werror_flag" ||
10722 test ! -s conftest.err
10723 } && test -s conftest.$ac_objext; then
10724 ac_header_compiler=yes
10725else
10726 echo "$as_me: failed program was:" >&5
10727sed 's/^/| /' conftest.$ac_ext >&5
10728
10729 ac_header_compiler=no
10730fi
10731
10732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10733{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10734echo "${ECHO_T}$ac_header_compiler" >&6; }
10735
10736# Is the header present?
10737{ echo "$as_me:$LINENO: checking mntent.h presence" >&5
10738echo $ECHO_N "checking mntent.h presence... $ECHO_C" >&6; }
10739cat >conftest.$ac_ext <<_ACEOF
10740/* confdefs.h. */
10741_ACEOF
10742cat confdefs.h >>conftest.$ac_ext
10743cat >>conftest.$ac_ext <<_ACEOF
10744/* end confdefs.h. */
10745#include <mntent.h>
10746_ACEOF
10747if { (ac_try="$ac_cpp conftest.$ac_ext"
10748case "(($ac_try" in
10749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10750 *) ac_try_echo=$ac_try;;
10751esac
10752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10754 ac_status=$?
10755 grep -v '^ *+' conftest.er1 >conftest.err
10756 rm -f conftest.er1
10757 cat conftest.err >&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); } >/dev/null && {
10760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10761 test ! -s conftest.err
10762 }; then
10763 ac_header_preproc=yes
10764else
10765 echo "$as_me: failed program was:" >&5
10766sed 's/^/| /' conftest.$ac_ext >&5
10767
10768 ac_header_preproc=no
10769fi
10770
10771rm -f conftest.err conftest.$ac_ext
10772{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10773echo "${ECHO_T}$ac_header_preproc" >&6; }
10774
10775# So? What about this header?
10776case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10777 yes:no: )
10778 { echo "$as_me:$LINENO: WARNING: mntent.h: accepted by the compiler, rejected by the preprocessor!" >&5
10779echo "$as_me: WARNING: mntent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10780 { echo "$as_me:$LINENO: WARNING: mntent.h: proceeding with the compiler's result" >&5
10781echo "$as_me: WARNING: mntent.h: proceeding with the compiler's result" >&2;}
10782 ac_header_preproc=yes
10783 ;;
10784 no:yes:* )
10785 { echo "$as_me:$LINENO: WARNING: mntent.h: present but cannot be compiled" >&5
10786echo "$as_me: WARNING: mntent.h: present but cannot be compiled" >&2;}
10787 { echo "$as_me:$LINENO: WARNING: mntent.h: check for missing prerequisite headers?" >&5
10788echo "$as_me: WARNING: mntent.h: check for missing prerequisite headers?" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: mntent.h: see the Autoconf documentation" >&5
10790echo "$as_me: WARNING: mntent.h: see the Autoconf documentation" >&2;}
10791 { echo "$as_me:$LINENO: WARNING: mntent.h: section \"Present But Cannot Be Compiled\"" >&5
10792echo "$as_me: WARNING: mntent.h: section \"Present But Cannot Be Compiled\"" >&2;}
10793 { echo "$as_me:$LINENO: WARNING: mntent.h: proceeding with the preprocessor's result" >&5
10794echo "$as_me: WARNING: mntent.h: proceeding with the preprocessor's result" >&2;}
10795 { echo "$as_me:$LINENO: WARNING: mntent.h: in the future, the compiler will take precedence" >&5
10796echo "$as_me: WARNING: mntent.h: in the future, the compiler will take precedence" >&2;}
10797
10798 ;;
10799esac
10800{ echo "$as_me:$LINENO: checking for mntent.h" >&5
10801echo $ECHO_N "checking for mntent.h... $ECHO_C" >&6; }
10802if test "${ac_cv_header_mntent_h+set}" = set; then
10803 echo $ECHO_N "(cached) $ECHO_C" >&6
10804else
10805 ac_cv_header_mntent_h=$ac_header_preproc
10806fi
10807{ echo "$as_me:$LINENO: result: $ac_cv_header_mntent_h" >&5
10808echo "${ECHO_T}$ac_cv_header_mntent_h" >&6; }
10809
10810fi
10811if test $ac_cv_header_mntent_h = yes; then
10812 cat >>confdefs.h <<\_ACEOF
10813#define HAVE_MNTENT_H 1
10814_ACEOF
10815
10816fi
10817
10818
10819
10820for ac_func in setmntent
10821do
10822as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10823{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10824echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10825if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10827else
10828 cat >conftest.$ac_ext <<_ACEOF
10829/* confdefs.h. */
10830_ACEOF
10831cat confdefs.h >>conftest.$ac_ext
10832cat >>conftest.$ac_ext <<_ACEOF
10833/* end confdefs.h. */
10834/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10836#define $ac_func innocuous_$ac_func
10837
10838/* System header to define __stub macros and hopefully few prototypes,
10839 which can conflict with char $ac_func (); below.
10840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10841 <limits.h> exists even on freestanding compilers. */
10842
10843#ifdef __STDC__
10844# include <limits.h>
10845#else
10846# include <assert.h>
10847#endif
10848
10849#undef $ac_func
10850
10851/* Override any GCC internal prototype to avoid an error.
10852 Use char because int might match the return type of a GCC
10853 builtin and then its argument prototype would still apply. */
10854#ifdef __cplusplus
10855extern "C"
10856#endif
10857char $ac_func ();
10858/* The GNU C library defines this for functions which it implements
10859 to always fail with ENOSYS. Some functions are actually named
10860 something starting with __ and the normal name is an alias. */
10861#if defined __stub_$ac_func || defined __stub___$ac_func
10862choke me
10863#endif
10864
10865int
10866main ()
10867{
10868return $ac_func ();
10869 ;
10870 return 0;
10871}
10872_ACEOF
10873rm -f conftest.$ac_objext conftest$ac_exeext
10874if { (ac_try="$ac_link"
10875case "(($ac_try" in
10876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10877 *) ac_try_echo=$ac_try;;
10878esac
10879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10880 (eval "$ac_link") 2>conftest.er1
10881 ac_status=$?
10882 grep -v '^ *+' conftest.er1 >conftest.err
10883 rm -f conftest.er1
10884 cat conftest.err >&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); } && {
10887 test -z "$ac_c_werror_flag" ||
10888 test ! -s conftest.err
10889 } && test -s conftest$ac_exeext &&
10890 $as_test_x conftest$ac_exeext; then
10891 eval "$as_ac_var=yes"
10892else
10893 echo "$as_me: failed program was:" >&5
10894sed 's/^/| /' conftest.$ac_ext >&5
10895
10896 eval "$as_ac_var=no"
10897fi
10898
10899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10900 conftest$ac_exeext conftest.$ac_ext
10901fi
10902ac_res=`eval echo '${'$as_ac_var'}'`
10903 { echo "$as_me:$LINENO: result: $ac_res" >&5
10904echo "${ECHO_T}$ac_res" >&6; }
10905if test `eval echo '${'$as_ac_var'}'` = yes; then
10906 cat >>confdefs.h <<_ACEOF
10907#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10908_ACEOF
10909
10910fi
10911done
10912
10913
10914#
10915# IPv6
10916#
10917
10918# Check whether --with-ipv6 was given.
10919if test "${with_ipv6+set}" = set; then
10920 withval=$with_ipv6;
10921 if test $withval != "no";
10922 then
10923 cat >>confdefs.h <<\_ACEOF
10924#define IPv6 1
10925_ACEOF
10926
10927 fi
10928
10929fi
10930
10931
10932
10933#
10934# debugging
10935#
10936
10937# Check whether --with-debug was given.
10938if test "${with_debug+set}" = set; then
10939 withval=$with_debug;
10940 if test $withval != "no";
10941 then
10942 cat >>confdefs.h <<\_ACEOF
10943#define WITH_DEBUG 1
10944_ACEOF
10945
10946 fi
10947
10948fi
10949
10950
10951
10952# Check whether --with-debug-kbd was given.
10953if test "${with_debug_kbd+set}" = set; then
10954 withval=$with_debug_kbd;
10955 if test $withval != "no";
10956 then
10957 cat >>confdefs.h <<\_ACEOF
10958#define WITH_DEBUG_KBD 1
10959_ACEOF
10960
10961 fi
10962
10963fi
10964
10965
10966
10967# Check whether --with-debug-rdp5 was given.
10968if test "${with_debug_rdp5+set}" = set; then
10969 withval=$with_debug_rdp5;
10970 if test $withval != "no";
10971 then
10972 cat >>confdefs.h <<\_ACEOF
10973#define WITH_DEBUG_RDP5 1
10974_ACEOF
10975
10976 fi
10977
10978fi
10979
10980
10981
10982# Check whether --with-debug-clipboard was given.
10983if test "${with_debug_clipboard+set}" = set; then
10984 withval=$with_debug_clipboard;
10985 if test $withval != "no";
10986 then
10987 cat >>confdefs.h <<\_ACEOF
10988#define WITH_DEBUG_CLIPBOARD 1
10989_ACEOF
10990
10991 fi
10992
10993fi
10994
10995
10996
10997# Check whether --with-debug-sound was given.
10998if test "${with_debug_sound+set}" = set; then
10999 withval=$with_debug_sound;
11000 if test $withval != "no";
11001 then
11002 cat >>confdefs.h <<\_ACEOF
11003#define WITH_DEBUG_SOUND 1
11004_ACEOF
11005
11006 fi
11007
11008fi
11009
11010
11011
11012# Check whether --with-debug-channel was given.
11013if test "${with_debug_channel+set}" = set; then
11014 withval=$with_debug_channel;
11015 if test $withval != "no";
11016 then
11017 cat >>confdefs.h <<\_ACEOF
11018#define WITH_DEBUG_CHANNEL 1
11019_ACEOF
11020
11021 fi
11022
11023fi
11024
11025
11026
11027# Check whether --with-debug-seamless was given.
11028if test "${with_debug_seamless+set}" = set; then
11029 withval=$with_debug_seamless;
11030 if test $withval != "no";
11031 then
11032 cat >>confdefs.h <<\_ACEOF
11033#define WITH_DEBUG_SEAMLESS 1
11034_ACEOF
11035
11036 fi
11037
11038fi
11039
11040
11041
11042# Check whether --with-debug-smartcard was given.
11043if test "${with_debug_smartcard+set}" = set; then
11044 withval=$with_debug_smartcard;
11045 if test $withval != "no";
11046 then
11047 if test x"$WITH_SCARD" = "x1"; then
11048 cat >>confdefs.h <<\_ACEOF
11049#define WITH_DEBUG_SCARD 1
11050_ACEOF
11051
11052 fi
11053 fi
11054
11055fi
11056
11057
11058#
11059# target-specific stuff
11060#
11061# strip leading colon from rpath
11062rpath=`echo $rpath |sed 's/^://'`
11063# Make sure we can run config.sub.
11064$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
11065 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
11066echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
11067 { (exit 1); exit 1; }; }
11068
11069{ echo "$as_me:$LINENO: checking build system type" >&5
11070echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
11071if test "${ac_cv_build+set}" = set; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073else
11074 ac_build_alias=$build_alias
11075test "x$ac_build_alias" = x &&
11076 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
11077test "x$ac_build_alias" = x &&
11078 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
11079echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
11080 { (exit 1); exit 1; }; }
11081ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
11082 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
11083echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
11084 { (exit 1); exit 1; }; }
11085
11086fi
11087{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
11088echo "${ECHO_T}$ac_cv_build" >&6; }
11089case $ac_cv_build in
11090*-*-*) ;;
11091*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
11092echo "$as_me: error: invalid value of canonical build" >&2;}
11093 { (exit 1); exit 1; }; };;
11094esac
11095build=$ac_cv_build
11096ac_save_IFS=$IFS; IFS='-'
11097set x $ac_cv_build
11098shift
11099build_cpu=$1
11100build_vendor=$2
11101shift; shift
11102# Remember, the first character of IFS is used to create $*,
11103# except with old shells:
11104build_os=$*
11105IFS=$ac_save_IFS
11106case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
11107
11108
11109{ echo "$as_me:$LINENO: checking host system type" >&5
11110echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
11111if test "${ac_cv_host+set}" = set; then
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11113else
11114 if test "x$host_alias" = x; then
11115 ac_cv_host=$ac_cv_build
11116else
11117 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
11118 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
11119echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
11120 { (exit 1); exit 1; }; }
11121fi
11122
11123fi
11124{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
11125echo "${ECHO_T}$ac_cv_host" >&6; }
11126case $ac_cv_host in
11127*-*-*) ;;
11128*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
11129echo "$as_me: error: invalid value of canonical host" >&2;}
11130 { (exit 1); exit 1; }; };;
11131esac
11132host=$ac_cv_host
11133ac_save_IFS=$IFS; IFS='-'
11134set x $ac_cv_host
11135shift
11136host_cpu=$1
11137host_vendor=$2
11138shift; shift
11139# Remember, the first character of IFS is used to create $*,
11140# except with old shells:
11141host_os=$*
11142IFS=$ac_save_IFS
11143case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
11144
11145
11146case "$host" in
11147*-*-solaris*)
11148 LDFLAGS="$LDFLAGS -R$rpath"
11149 ;;
11150*-dec-osf*)
11151 LDFLAGS="$LDFLAGS -Wl,-rpath,$rpath"
11152 ;;
11153*-*-hpux*)
11154 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
11155 ;;
11156*-*-irix6.5*)
11157 LIBS="$LIBS -L$ssldir/lib32 -lcrypto"
11158 CFLAGS="$CFLAGS -D__SGI_IRIX__"
11159 ;;
11160esac
11161
11162
11163ac_config_files="$ac_config_files Makefile"
11164
11165cat >confcache <<\_ACEOF
11166# This file is a shell script that caches the results of configure
11167# tests run on this system so they can be shared between configure
11168# scripts and configure runs, see configure's option --config-cache.
11169# It is not useful on other systems. If it contains results you don't
11170# want to keep, you may remove or edit it.
11171#
11172# config.status only pays attention to the cache file if you give it
11173# the --recheck option to rerun configure.
11174#
11175# `ac_cv_env_foo' variables (set or unset) will be overridden when
11176# loading this file, other *unset* `ac_cv_foo' will be assigned the
11177# following values.
11178
11179_ACEOF
11180
11181# The following way of writing the cache mishandles newlines in values,
11182# but we know of no workaround that is simple, portable, and efficient.
11183# So, we kill variables containing newlines.
11184# Ultrix sh set writes to stderr and can't be redirected directly,
11185# and sets the high bit in the cache file unless we assign to the vars.
11186(
11187 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11188 eval ac_val=\$$ac_var
11189 case $ac_val in #(
11190 *${as_nl}*)
11191 case $ac_var in #(
11192 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11193echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11194 esac
11195 case $ac_var in #(
11196 _ | IFS | as_nl) ;; #(
11197 *) $as_unset $ac_var ;;
11198 esac ;;
11199 esac
11200 done
11201
11202 (set) 2>&1 |
11203 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11204 *${as_nl}ac_space=\ *)
11205 # `set' does not quote correctly, so add quotes (double-quote
11206 # substitution turns \\\\ into \\, and sed turns \\ into \).
11207 sed -n \
11208 "s/'/'\\\\''/g;
11209 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11210 ;; #(
11211 *)
11212 # `set' quotes correctly as required by POSIX, so do not add quotes.
11213 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11214 ;;
11215 esac |
11216 sort
11217) |
11218 sed '
11219 /^ac_cv_env_/b end
11220 t clear
11221 :clear
11222 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11223 t end
11224 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11225 :end' >>confcache
11226if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11227 if test -w "$cache_file"; then
11228 test "x$cache_file" != "x/dev/null" &&
11229 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11230echo "$as_me: updating cache $cache_file" >&6;}
11231 cat confcache >$cache_file
11232 else
11233 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11234echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11235 fi
11236fi
11237rm -f confcache
11238
11239test "x$prefix" = xNONE && prefix=$ac_default_prefix
11240# Let make expand exec_prefix.
11241test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11242
11243# Transform confdefs.h into DEFS.
11244# Protect against shell expansion while executing Makefile rules.
11245# Protect against Makefile macro expansion.
11246#
11247# If the first sed substitution is executed (which looks for macros that
11248# take arguments), then branch to the quote section. Otherwise,
11249# look for a macro that doesn't take arguments.
11250ac_script='
11251t clear
11252:clear
11253s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11254t quote
11255s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11256t quote
11257b any
11258:quote
11259s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11260s/\[/\\&/g
11261s/\]/\\&/g
11262s/\$/$$/g
11263H
11264:any
11265${
11266 g
11267 s/^\n//
11268 s/\n/ /g
11269 p
11270}
11271'
11272DEFS=`sed -n "$ac_script" confdefs.h`
11273
11274
11275ac_libobjs=
11276ac_ltlibobjs=
11277for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11278 # 1. Remove the extension, and $U if already installed.
11279 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11280 ac_i=`echo "$ac_i" | sed "$ac_script"`
11281 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11282 # will be set to the directory where LIBOBJS objects are built.
11283 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11284 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11285done
11286LIBOBJS=$ac_libobjs
11287
11288LTLIBOBJS=$ac_ltlibobjs
11289
11290
11291
11292: ${CONFIG_STATUS=./config.status}
11293ac_clean_files_save=$ac_clean_files
11294ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11295{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11296echo "$as_me: creating $CONFIG_STATUS" >&6;}
11297cat >$CONFIG_STATUS <<_ACEOF
11298#! $SHELL
11299# Generated by $as_me.
11300# Run this file to recreate the current configuration.
11301# Compiler output produced by configure, useful for debugging
11302# configure, is in config.log if it exists.
11303
11304debug=false
11305ac_cs_recheck=false
11306ac_cs_silent=false
11307SHELL=\${CONFIG_SHELL-$SHELL}
11308_ACEOF
11309
11310cat >>$CONFIG_STATUS <<\_ACEOF
11311## --------------------- ##
11312## M4sh Initialization. ##
11313## --------------------- ##
11314
11315# Be more Bourne compatible
11316DUALCASE=1; export DUALCASE # for MKS sh
11317if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11318 emulate sh
11319 NULLCMD=:
11320 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11321 # is contrary to our usage. Disable this feature.
11322 alias -g '${1+"$@"}'='"$@"'
11323 setopt NO_GLOB_SUBST
11324else
11325 case `(set -o) 2>/dev/null` in
11326 *posix*) set -o posix ;;
11327esac
11328
11329fi
11330
11331
11332
11333
11334# PATH needs CR
11335# Avoid depending upon Character Ranges.
11336as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11337as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11338as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11339as_cr_digits='0123456789'
11340as_cr_alnum=$as_cr_Letters$as_cr_digits
11341
11342# The user is always right.
11343if test "${PATH_SEPARATOR+set}" != set; then
11344 echo "#! /bin/sh" >conf$$.sh
11345 echo "exit 0" >>conf$$.sh
11346 chmod +x conf$$.sh
11347 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11348 PATH_SEPARATOR=';'
11349 else
11350 PATH_SEPARATOR=:
11351 fi
11352 rm -f conf$$.sh
11353fi
11354
11355# Support unset when possible.
11356if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11357 as_unset=unset
11358else
11359 as_unset=false
11360fi
11361
11362
11363# IFS
11364# We need space, tab and new line, in precisely that order. Quoting is
11365# there to prevent editors from complaining about space-tab.
11366# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11367# splitting by setting IFS to empty value.)
11368as_nl='
11369'
11370IFS=" "" $as_nl"
11371
11372# Find who we are. Look in the path if we contain no directory separator.
11373case $0 in
11374 *[\\/]* ) as_myself=$0 ;;
11375 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11376for as_dir in $PATH
11377do
11378 IFS=$as_save_IFS
11379 test -z "$as_dir" && as_dir=.
11380 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11381done
11382IFS=$as_save_IFS
11383
11384 ;;
11385esac
11386# We did not find ourselves, most probably we were run as `sh COMMAND'
11387# in which case we are not to be found in the path.
11388if test "x$as_myself" = x; then
11389 as_myself=$0
11390fi
11391if test ! -f "$as_myself"; then
11392 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11393 { (exit 1); exit 1; }
11394fi
11395
11396# Work around bugs in pre-3.0 UWIN ksh.
11397for as_var in ENV MAIL MAILPATH
11398do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11399done
11400PS1='$ '
11401PS2='> '
11402PS4='+ '
11403
11404# NLS nuisances.
11405for as_var in \
11406 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11407 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11408 LC_TELEPHONE LC_TIME
11409do
11410 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11411 eval $as_var=C; export $as_var
11412 else
11413 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11414 fi
11415done
11416
11417# Required to use basename.
11418if expr a : '\(a\)' >/dev/null 2>&1 &&
11419 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11420 as_expr=expr
11421else
11422 as_expr=false
11423fi
11424
11425if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11426 as_basename=basename
11427else
11428 as_basename=false
11429fi
11430
11431
11432# Name of the executable.
11433as_me=`$as_basename -- "$0" ||
11434$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11435 X"$0" : 'X\(//\)$' \| \
11436 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11437echo X/"$0" |
11438 sed '/^.*\/\([^/][^/]*\)\/*$/{
11439 s//\1/
11440 q
11441 }
11442 /^X\/\(\/\/\)$/{
11443 s//\1/
11444 q
11445 }
11446 /^X\/\(\/\).*/{
11447 s//\1/
11448 q
11449 }
11450 s/.*/./; q'`
11451
11452# CDPATH.
11453$as_unset CDPATH
11454
11455
11456
11457 as_lineno_1=$LINENO
11458 as_lineno_2=$LINENO
11459 test "x$as_lineno_1" != "x$as_lineno_2" &&
11460 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11461
11462 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11463 # uniformly replaced by the line number. The first 'sed' inserts a
11464 # line-number line after each line using $LINENO; the second 'sed'
11465 # does the real work. The second script uses 'N' to pair each
11466 # line-number line with the line containing $LINENO, and appends
11467 # trailing '-' during substitution so that $LINENO is not a special
11468 # case at line end.
11469 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11470 # scripts with optimization help from Paolo Bonzini. Blame Lee
11471 # E. McMahon (1931-1989) for sed's syntax. :-)
11472 sed -n '
11473 p
11474 /[$]LINENO/=
11475 ' <$as_myself |
11476 sed '
11477 s/[$]LINENO.*/&-/
11478 t lineno
11479 b
11480 :lineno
11481 N
11482 :loop
11483 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11484 t loop
11485 s/-\n.*//
11486 ' >$as_me.lineno &&
11487 chmod +x "$as_me.lineno" ||
11488 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11489 { (exit 1); exit 1; }; }
11490
11491 # Don't try to exec as it changes $[0], causing all sort of problems
11492 # (the dirname of $[0] is not the place where we might find the
11493 # original and so on. Autoconf is especially sensitive to this).
11494 . "./$as_me.lineno"
11495 # Exit status is that of the last command.
11496 exit
11497}
11498
11499
11500if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11501 as_dirname=dirname
11502else
11503 as_dirname=false
11504fi
11505
11506ECHO_C= ECHO_N= ECHO_T=
11507case `echo -n x` in
11508-n*)
11509 case `echo 'x\c'` in
11510 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11511 *) ECHO_C='\c';;
11512 esac;;
11513*)
11514 ECHO_N='-n';;
11515esac
11516
11517if expr a : '\(a\)' >/dev/null 2>&1 &&
11518 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11519 as_expr=expr
11520else
11521 as_expr=false
11522fi
11523
11524rm -f conf$$ conf$$.exe conf$$.file
11525if test -d conf$$.dir; then
11526 rm -f conf$$.dir/conf$$.file
11527else
11528 rm -f conf$$.dir
11529 mkdir conf$$.dir
11530fi
11531echo >conf$$.file
11532if ln -s conf$$.file conf$$ 2>/dev/null; then
11533 as_ln_s='ln -s'
11534 # ... but there are two gotchas:
11535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11537 # In both cases, we have to default to `cp -p'.
11538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11539 as_ln_s='cp -p'
11540elif ln conf$$.file conf$$ 2>/dev/null; then
11541 as_ln_s=ln
11542else
11543 as_ln_s='cp -p'
11544fi
11545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11546rmdir conf$$.dir 2>/dev/null
11547
11548if mkdir -p . 2>/dev/null; then
11549 as_mkdir_p=:
11550else
11551 test -d ./-p && rmdir ./-p
11552 as_mkdir_p=false
11553fi
11554
11555if test -x / >/dev/null 2>&1; then
11556 as_test_x='test -x'
11557else
11558 if ls -dL / >/dev/null 2>&1; then
11559 as_ls_L_option=L
11560 else
11561 as_ls_L_option=
11562 fi
11563 as_test_x='
11564 eval sh -c '\''
11565 if test -d "$1"; then
11566 test -d "$1/.";
11567 else
11568 case $1 in
11569 -*)set "./$1";;
11570 esac;
11571 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11572 ???[sx]*):;;*)false;;esac;fi
11573 '\'' sh
11574 '
11575fi
11576as_executable_p=$as_test_x
11577
11578# Sed expression to map a string onto a valid CPP name.
11579as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11580
11581# Sed expression to map a string onto a valid variable name.
11582as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11583
11584
11585exec 6>&1
11586
11587# Save the log message, to keep $[0] and so on meaningful, and to
11588# report actual input values of CONFIG_FILES etc. instead of their
11589# values after options handling.
11590ac_log="
11591This file was extended by rdesktop $as_me 1.6.0, which was
11592generated by GNU Autoconf 2.61. Invocation command line was
11593
11594 CONFIG_FILES = $CONFIG_FILES
11595 CONFIG_HEADERS = $CONFIG_HEADERS
11596 CONFIG_LINKS = $CONFIG_LINKS
11597 CONFIG_COMMANDS = $CONFIG_COMMANDS
11598 $ $0 $@
11599
11600on `(hostname || uname -n) 2>/dev/null | sed 1q`
11601"
11602
11603_ACEOF
11604
11605cat >>$CONFIG_STATUS <<_ACEOF
11606# Files that config.status was made for.
11607config_files="$ac_config_files"
11608
11609_ACEOF
11610
11611cat >>$CONFIG_STATUS <<\_ACEOF
11612ac_cs_usage="\
11613\`$as_me' instantiates files from templates according to the
11614current configuration.
11615
11616Usage: $0 [OPTIONS] [FILE]...
11617
11618 -h, --help print this help, then exit
11619 -V, --version print version number and configuration settings, then exit
11620 -q, --quiet do not print progress messages
11621 -d, --debug don't remove temporary files
11622 --recheck update $as_me by reconfiguring in the same conditions
11623 --file=FILE[:TEMPLATE]
11624 instantiate the configuration file FILE
11625
11626Configuration files:
11627$config_files
11628
11629Report bugs to <[email protected]>."
11630
11631_ACEOF
11632cat >>$CONFIG_STATUS <<_ACEOF
11633ac_cs_version="\\
11634rdesktop config.status 1.6.0
11635configured by $0, generated by GNU Autoconf 2.61,
11636 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11637
11638Copyright (C) 2006 Free Software Foundation, Inc.
11639This config.status script is free software; the Free Software Foundation
11640gives unlimited permission to copy, distribute and modify it."
11641
11642ac_pwd='$ac_pwd'
11643srcdir='$srcdir'
11644INSTALL='$INSTALL'
11645_ACEOF
11646
11647cat >>$CONFIG_STATUS <<\_ACEOF
11648# If no file are specified by the user, then we need to provide default
11649# value. By we need to know if files were specified by the user.
11650ac_need_defaults=:
11651while test $# != 0
11652do
11653 case $1 in
11654 --*=*)
11655 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11656 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11657 ac_shift=:
11658 ;;
11659 *)
11660 ac_option=$1
11661 ac_optarg=$2
11662 ac_shift=shift
11663 ;;
11664 esac
11665
11666 case $ac_option in
11667 # Handling of the options.
11668 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11669 ac_cs_recheck=: ;;
11670 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11671 echo "$ac_cs_version"; exit ;;
11672 --debug | --debu | --deb | --de | --d | -d )
11673 debug=: ;;
11674 --file | --fil | --fi | --f )
11675 $ac_shift
11676 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11677 ac_need_defaults=false;;
11678 --he | --h | --help | --hel | -h )
11679 echo "$ac_cs_usage"; exit ;;
11680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11681 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11682 ac_cs_silent=: ;;
11683
11684 # This is an error.
11685 -*) { echo "$as_me: error: unrecognized option: $1
11686Try \`$0 --help' for more information." >&2
11687 { (exit 1); exit 1; }; } ;;
11688
11689 *) ac_config_targets="$ac_config_targets $1"
11690 ac_need_defaults=false ;;
11691
11692 esac
11693 shift
11694done
11695
11696ac_configure_extra_args=
11697
11698if $ac_cs_silent; then
11699 exec 6>/dev/null
11700 ac_configure_extra_args="$ac_configure_extra_args --silent"
11701fi
11702
11703_ACEOF
11704cat >>$CONFIG_STATUS <<_ACEOF
11705if \$ac_cs_recheck; then
11706 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11707 CONFIG_SHELL=$SHELL
11708 export CONFIG_SHELL
11709 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11710fi
11711
11712_ACEOF
11713cat >>$CONFIG_STATUS <<\_ACEOF
11714exec 5>>config.log
11715{
11716 echo
11717 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11718## Running $as_me. ##
11719_ASBOX
11720 echo "$ac_log"
11721} >&5
11722
11723_ACEOF
11724cat >>$CONFIG_STATUS <<_ACEOF
11725_ACEOF
11726
11727cat >>$CONFIG_STATUS <<\_ACEOF
11728
11729# Handling of arguments.
11730for ac_config_target in $ac_config_targets
11731do
11732 case $ac_config_target in
11733 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11734
11735 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11736echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11737 { (exit 1); exit 1; }; };;
11738 esac
11739done
11740
11741
11742# If the user did not use the arguments to specify the items to instantiate,
11743# then the envvar interface is used. Set only those that are not.
11744# We use the long form for the default assignment because of an extremely
11745# bizarre bug on SunOS 4.1.3.
11746if $ac_need_defaults; then
11747 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11748fi
11749
11750# Have a temporary directory for convenience. Make it in the build tree
11751# simply because there is no reason against having it here, and in addition,
11752# creating and moving files from /tmp can sometimes cause problems.
11753# Hook for its removal unless debugging.
11754# Note that there is a small window in which the directory will not be cleaned:
11755# after its creation but before its name has been assigned to `$tmp'.
11756$debug ||
11757{
11758 tmp=
11759 trap 'exit_status=$?
11760 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11761' 0
11762 trap '{ (exit 1); exit 1; }' 1 2 13 15
11763}
11764# Create a (secure) tmp directory for tmp files.
11765
11766{
11767 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11768 test -n "$tmp" && test -d "$tmp"
11769} ||
11770{
11771 tmp=./conf$$-$RANDOM
11772 (umask 077 && mkdir "$tmp")
11773} ||
11774{
11775 echo "$me: cannot create a temporary directory in ." >&2
11776 { (exit 1); exit 1; }
11777}
11778
11779#
11780# Set up the sed scripts for CONFIG_FILES section.
11781#
11782
11783# No need to generate the scripts if there are no CONFIG_FILES.
11784# This happens for instance when ./config.status config.h
11785if test -n "$CONFIG_FILES"; then
11786
11787_ACEOF
11788
11789
11790
11791ac_delim='%!_!# '
11792for ac_last_try in false false false false false :; do
11793 cat >conf$$subs.sed <<_ACEOF
11794SHELL!$SHELL$ac_delim
11795PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11796PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11797PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11798PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11799PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11800PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11801exec_prefix!$exec_prefix$ac_delim
11802prefix!$prefix$ac_delim
11803program_transform_name!$program_transform_name$ac_delim
11804bindir!$bindir$ac_delim
11805sbindir!$sbindir$ac_delim
11806libexecdir!$libexecdir$ac_delim
11807datarootdir!$datarootdir$ac_delim
11808datadir!$datadir$ac_delim
11809sysconfdir!$sysconfdir$ac_delim
11810sharedstatedir!$sharedstatedir$ac_delim
11811localstatedir!$localstatedir$ac_delim
11812includedir!$includedir$ac_delim
11813oldincludedir!$oldincludedir$ac_delim
11814docdir!$docdir$ac_delim
11815infodir!$infodir$ac_delim
11816htmldir!$htmldir$ac_delim
11817dvidir!$dvidir$ac_delim
11818pdfdir!$pdfdir$ac_delim
11819psdir!$psdir$ac_delim
11820libdir!$libdir$ac_delim
11821localedir!$localedir$ac_delim
11822mandir!$mandir$ac_delim
11823DEFS!$DEFS$ac_delim
11824ECHO_C!$ECHO_C$ac_delim
11825ECHO_N!$ECHO_N$ac_delim
11826ECHO_T!$ECHO_T$ac_delim
11827LIBS!$LIBS$ac_delim
11828build_alias!$build_alias$ac_delim
11829host_alias!$host_alias$ac_delim
11830target_alias!$target_alias$ac_delim
11831CC!$CC$ac_delim
11832CFLAGS!$CFLAGS$ac_delim
11833LDFLAGS!$LDFLAGS$ac_delim
11834CPPFLAGS!$CPPFLAGS$ac_delim
11835ac_ct_CC!$ac_ct_CC$ac_delim
11836EXEEXT!$EXEEXT$ac_delim
11837OBJEXT!$OBJEXT$ac_delim
11838INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11839INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11840INSTALL_DATA!$INSTALL_DATA$ac_delim
11841CPP!$CPP$ac_delim
11842GREP!$GREP$ac_delim
11843EGREP!$EGREP$ac_delim
11844XMKMF!$XMKMF$ac_delim
11845X_CFLAGS!$X_CFLAGS$ac_delim
11846X_PRE_LIBS!$X_PRE_LIBS$ac_delim
11847X_LIBS!$X_LIBS$ac_delim
11848X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
11849PKG_CONFIG!$PKG_CONFIG$ac_delim
11850STRIP!$STRIP$ac_delim
11851ssldir!$ssldir$ac_delim
11852PCSCLITE_CFLAGS!$PCSCLITE_CFLAGS$ac_delim
11853PCSCLITE_LIBS!$PCSCLITE_LIBS$ac_delim
11854SCARDOBJ!$SCARDOBJ$ac_delim
11855VNCINC!$VNCINC$ac_delim
11856LDVNC!$LDVNC$ac_delim
11857VNCLINK!$VNCLINK$ac_delim
11858RDP2VNCTARGET!$RDP2VNCTARGET$ac_delim
11859LIBAO_CFLAGS!$LIBAO_CFLAGS$ac_delim
11860LIBAO_LIBS!$LIBAO_LIBS$ac_delim
11861ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
11862ALSA_LIBS!$ALSA_LIBS$ac_delim
11863LIBSAMPLERATE_CFLAGS!$LIBSAMPLERATE_CFLAGS$ac_delim
11864LIBSAMPLERATE_LIBS!$LIBSAMPLERATE_LIBS$ac_delim
11865SOUNDOBJ!$SOUNDOBJ$ac_delim
11866LIBOBJS!$LIBOBJS$ac_delim
11867LIBICONV!$LIBICONV$ac_delim
11868build!$build$ac_delim
11869build_cpu!$build_cpu$ac_delim
11870build_vendor!$build_vendor$ac_delim
11871build_os!$build_os$ac_delim
11872host!$host$ac_delim
11873host_cpu!$host_cpu$ac_delim
11874host_vendor!$host_vendor$ac_delim
11875host_os!$host_os$ac_delim
11876LTLIBOBJS!$LTLIBOBJS$ac_delim
11877_ACEOF
11878
11879 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 83; then
11880 break
11881 elif $ac_last_try; then
11882 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11883echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11884 { (exit 1); exit 1; }; }
11885 else
11886 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11887 fi
11888done
11889
11890ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11891if test -n "$ac_eof"; then
11892 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11893 ac_eof=`expr $ac_eof + 1`
11894fi
11895
11896cat >>$CONFIG_STATUS <<_ACEOF
11897cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11898/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11899_ACEOF
11900sed '
11901s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11902s/^/s,@/; s/!/@,|#_!!_#|/
11903:n
11904t n
11905s/'"$ac_delim"'$/,g/; t
11906s/$/\\/; p
11907N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11908' >>$CONFIG_STATUS <conf$$subs.sed
11909rm -f conf$$subs.sed
11910cat >>$CONFIG_STATUS <<_ACEOF
11911:end
11912s/|#_!!_#|//g
11913CEOF$ac_eof
11914_ACEOF
11915
11916
11917# VPATH may cause trouble with some makes, so we remove $(srcdir),
11918# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11919# trailing colons and then remove the whole line if VPATH becomes empty
11920# (actually we leave an empty line to preserve line numbers).
11921if test "x$srcdir" = x.; then
11922 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11923s/:*\$(srcdir):*/:/
11924s/:*\${srcdir}:*/:/
11925s/:*@srcdir@:*/:/
11926s/^\([^=]*=[ ]*\):*/\1/
11927s/:*$//
11928s/^[^=]*=[ ]*$//
11929}'
11930fi
11931
11932cat >>$CONFIG_STATUS <<\_ACEOF
11933fi # test -n "$CONFIG_FILES"
11934
11935
11936for ac_tag in :F $CONFIG_FILES
11937do
11938 case $ac_tag in
11939 :[FHLC]) ac_mode=$ac_tag; continue;;
11940 esac
11941 case $ac_mode$ac_tag in
11942 :[FHL]*:*);;
11943 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11944echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11945 { (exit 1); exit 1; }; };;
11946 :[FH]-) ac_tag=-:-;;
11947 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11948 esac
11949 ac_save_IFS=$IFS
11950 IFS=:
11951 set x $ac_tag
11952 IFS=$ac_save_IFS
11953 shift
11954 ac_file=$1
11955 shift
11956
11957 case $ac_mode in
11958 :L) ac_source=$1;;
11959 :[FH])
11960 ac_file_inputs=
11961 for ac_f
11962 do
11963 case $ac_f in
11964 -) ac_f="$tmp/stdin";;
11965 *) # Look for the file first in the build tree, then in the source tree
11966 # (if the path is not absolute). The absolute path cannot be DOS-style,
11967 # because $ac_f cannot contain `:'.
11968 test -f "$ac_f" ||
11969 case $ac_f in
11970 [\\/$]*) false;;
11971 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11972 esac ||
11973 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11974echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11975 { (exit 1); exit 1; }; };;
11976 esac
11977 ac_file_inputs="$ac_file_inputs $ac_f"
11978 done
11979
11980 # Let's still pretend it is `configure' which instantiates (i.e., don't
11981 # use $as_me), people would be surprised to read:
11982 # /* config.h. Generated by config.status. */
11983 configure_input="Generated from "`IFS=:
11984 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11985 if test x"$ac_file" != x-; then
11986 configure_input="$ac_file. $configure_input"
11987 { echo "$as_me:$LINENO: creating $ac_file" >&5
11988echo "$as_me: creating $ac_file" >&6;}
11989 fi
11990
11991 case $ac_tag in
11992 *:-:* | *:-) cat >"$tmp/stdin";;
11993 esac
11994 ;;
11995 esac
11996
11997 ac_dir=`$as_dirname -- "$ac_file" ||
11998$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11999 X"$ac_file" : 'X\(//\)[^/]' \| \
12000 X"$ac_file" : 'X\(//\)$' \| \
12001 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12002echo X"$ac_file" |
12003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12004 s//\1/
12005 q
12006 }
12007 /^X\(\/\/\)[^/].*/{
12008 s//\1/
12009 q
12010 }
12011 /^X\(\/\/\)$/{
12012 s//\1/
12013 q
12014 }
12015 /^X\(\/\).*/{
12016 s//\1/
12017 q
12018 }
12019 s/.*/./; q'`
12020 { as_dir="$ac_dir"
12021 case $as_dir in #(
12022 -*) as_dir=./$as_dir;;
12023 esac
12024 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12025 as_dirs=
12026 while :; do
12027 case $as_dir in #(
12028 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12029 *) as_qdir=$as_dir;;
12030 esac
12031 as_dirs="'$as_qdir' $as_dirs"
12032 as_dir=`$as_dirname -- "$as_dir" ||
12033$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12034 X"$as_dir" : 'X\(//\)[^/]' \| \
12035 X"$as_dir" : 'X\(//\)$' \| \
12036 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12037echo X"$as_dir" |
12038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12039 s//\1/
12040 q
12041 }
12042 /^X\(\/\/\)[^/].*/{
12043 s//\1/
12044 q
12045 }
12046 /^X\(\/\/\)$/{
12047 s//\1/
12048 q
12049 }
12050 /^X\(\/\).*/{
12051 s//\1/
12052 q
12053 }
12054 s/.*/./; q'`
12055 test -d "$as_dir" && break
12056 done
12057 test -z "$as_dirs" || eval "mkdir $as_dirs"
12058 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12059echo "$as_me: error: cannot create directory $as_dir" >&2;}
12060 { (exit 1); exit 1; }; }; }
12061 ac_builddir=.
12062
12063case "$ac_dir" in
12064.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12065*)
12066 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12067 # A ".." for each directory in $ac_dir_suffix.
12068 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12069 case $ac_top_builddir_sub in
12070 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12071 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12072 esac ;;
12073esac
12074ac_abs_top_builddir=$ac_pwd
12075ac_abs_builddir=$ac_pwd$ac_dir_suffix
12076# for backward compatibility:
12077ac_top_builddir=$ac_top_build_prefix
12078
12079case $srcdir in
12080 .) # We are building in place.
12081 ac_srcdir=.
12082 ac_top_srcdir=$ac_top_builddir_sub
12083 ac_abs_top_srcdir=$ac_pwd ;;
12084 [\\/]* | ?:[\\/]* ) # Absolute name.
12085 ac_srcdir=$srcdir$ac_dir_suffix;
12086 ac_top_srcdir=$srcdir
12087 ac_abs_top_srcdir=$srcdir ;;
12088 *) # Relative name.
12089 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12090 ac_top_srcdir=$ac_top_build_prefix$srcdir
12091 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12092esac
12093ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12094
12095
12096 case $ac_mode in
12097 :F)
12098 #
12099 # CONFIG_FILE
12100 #
12101
12102 case $INSTALL in
12103 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12104 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12105 esac
12106_ACEOF
12107
12108cat >>$CONFIG_STATUS <<\_ACEOF
12109# If the template does not know about datarootdir, expand it.
12110# FIXME: This hack should be removed a few years after 2.60.
12111ac_datarootdir_hack=; ac_datarootdir_seen=
12112
12113case `sed -n '/datarootdir/ {
12114 p
12115 q
12116}
12117/@datadir@/p
12118/@docdir@/p
12119/@infodir@/p
12120/@localedir@/p
12121/@mandir@/p
12122' $ac_file_inputs` in
12123*datarootdir*) ac_datarootdir_seen=yes;;
12124*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12125 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12126echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12127_ACEOF
12128cat >>$CONFIG_STATUS <<_ACEOF
12129 ac_datarootdir_hack='
12130 s&@datadir@&$datadir&g
12131 s&@docdir@&$docdir&g
12132 s&@infodir@&$infodir&g
12133 s&@localedir@&$localedir&g
12134 s&@mandir@&$mandir&g
12135 s&\\\${datarootdir}&$datarootdir&g' ;;
12136esac
12137_ACEOF
12138
12139# Neutralize VPATH when `$srcdir' = `.'.
12140# Shell code in configure.ac might set extrasub.
12141# FIXME: do we really want to maintain this feature?
12142cat >>$CONFIG_STATUS <<_ACEOF
12143 sed "$ac_vpsub
12144$extrasub
12145_ACEOF
12146cat >>$CONFIG_STATUS <<\_ACEOF
12147:t
12148/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12149s&@configure_input@&$configure_input&;t t
12150s&@top_builddir@&$ac_top_builddir_sub&;t t
12151s&@srcdir@&$ac_srcdir&;t t
12152s&@abs_srcdir@&$ac_abs_srcdir&;t t
12153s&@top_srcdir@&$ac_top_srcdir&;t t
12154s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12155s&@builddir@&$ac_builddir&;t t
12156s&@abs_builddir@&$ac_abs_builddir&;t t
12157s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12158s&@INSTALL@&$ac_INSTALL&;t t
12159$ac_datarootdir_hack
12160" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
12161
12162test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12163 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12164 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12165 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12166which seems to be undefined. Please make sure it is defined." >&5
12167echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12168which seems to be undefined. Please make sure it is defined." >&2;}
12169
12170 rm -f "$tmp/stdin"
12171 case $ac_file in
12172 -) cat "$tmp/out"; rm -f "$tmp/out";;
12173 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12174 esac
12175 ;;
12176
12177
12178
12179 esac
12180
12181done # for ac_tag
12182
12183
12184{ (exit 0); exit 0; }
12185_ACEOF
12186chmod +x $CONFIG_STATUS
12187ac_clean_files=$ac_clean_files_save
12188
12189
12190# configure is writing to config.log, and then calls config.status.
12191# config.status does its own redirection, appending to config.log.
12192# Unfortunately, on DOS this fails, as config.log is still kept open
12193# by configure, so config.status won't be able to write to it; its
12194# output is simply discarded. So we exec the FD to /dev/null,
12195# effectively closing config.log, so it can be properly (re)opened and
12196# appended to by config.status. When coming back to configure, we
12197# need to make the FD available again.
12198if test "$no_create" != yes; then
12199 ac_cs_success=:
12200 ac_config_status_args=
12201 test "$silent" = yes &&
12202 ac_config_status_args="$ac_config_status_args --quiet"
12203 exec 5>/dev/null
12204 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12205 exec 5>>config.log
12206 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12207 # would make configure fail if this is the last instruction.
12208 $ac_cs_success || { (exit 1); exit 1; }
12209fi
12210
12211
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette