3 # From configure.in Revision: 1.37
14 # Guess values for system-dependent variables and create Makefiles.
15 # Generated automatically using autoconf version 2.13
16 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
18 # This configure script is free software; the Free Software Foundation
19 # gives unlimited permission to copy, distribute and modify it.
23 ac_default_prefix
=/usr
/local
24 # Any additions from configure.in:
27 --enable-editcomplete Turn on command line editing and completion.
28 --disable-editcomplete Turn off command line editing and completion
32 --enable-ipv6 Enable IPv6 support (if your OS supports it).
33 --disable-ipv6 Disable IPv6 support (even if your OS supports it)
36 --with-socks Compile with SOCKS firewall traversal support."
38 --with-socks5[=PATH] Compile with SOCKS5 firewall traversal support."
40 --with-socks4[=PATH] Compile with SOCKS4 firewall traversal support."
42 # Initialize some variables set by options.
43 # The variables have the same names as the options, with
44 # dashes changed to underlines.
46 cache_file
=.
/config.cache
55 program_transform_name
=s
,x
,x
,
63 bindir
='${exec_prefix}/bin'
64 sbindir
='${exec_prefix}/sbin'
65 libexecdir
='${exec_prefix}/libexec'
66 datadir
='${prefix}/share'
67 sysconfdir
='${prefix}/etc'
68 sharedstatedir
='${prefix}/com'
69 localstatedir
='${prefix}/var'
70 libdir
='${exec_prefix}/lib'
71 includedir
='${prefix}/include'
72 oldincludedir
='/usr/include'
73 infodir
='${prefix}/info'
74 mandir
='${prefix}/man'
76 # Initialize some other variables.
79 SHELL
=${CONFIG_SHELL-/bin/sh}
80 # Maximum number of lines to put in a shell here document.
87 # If the previous option needs an argument, assign it.
88 if test -n "$ac_prev"; then
89 eval "$ac_prev=\$ac_option"
95 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 # Accept the important Cygnus configure options, so we can diagnose typos.
103 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
105 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
106 bindir
="$ac_optarg" ;;
108 -build |
--build |
--buil |
--bui |
--bu)
110 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
111 build
="$ac_optarg" ;;
113 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
114 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
115 ac_prev
=cache_file
;;
116 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
117 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
118 cache_file
="$ac_optarg" ;;
120 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
122 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
124 datadir
="$ac_optarg" ;;
126 -disable-* |
--disable-*)
127 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
128 # Reject names that are not valid shell variable names.
129 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
130 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
132 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
133 eval "enable_${ac_feature}=no" ;;
135 -enable-* |
--enable-*)
136 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
137 # Reject names that are not valid shell variable names.
138 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
139 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
141 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
146 eval "enable_${ac_feature}='$ac_optarg'" ;;
148 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
149 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
150 |
--exec |
--exe |
--ex)
151 ac_prev
=exec_prefix
;;
152 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
153 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
154 |
--exec=* |
--exe=* |
--ex=*)
155 exec_prefix
="$ac_optarg" ;;
157 -gas |
--gas |
--ga |
--g)
158 # Obsolete; use --with-gas.
161 -help |
--help |
--hel |
--he)
162 # Omit some internal or obsolete options to make the list less imposing.
163 # This message is too long to be a string in the A/UX 3.1 sh.
165 Usage: configure [options] [host]
166 Options: [defaults in brackets after descriptions]
168 --cache-file=FILE cache test results in FILE
169 --help print this message
170 --no-create do not create output files
171 --quiet, --silent do not print \`checking...' messages
172 --version print the version of autoconf that created configure
173 Directory and file names:
174 --prefix=PREFIX install architecture-independent files in PREFIX
176 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 --bindir=DIR user executables in DIR [EPREFIX/bin]
179 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
180 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
181 --datadir=DIR read-only architecture-independent data in DIR
183 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
184 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
187 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
188 --includedir=DIR C header files in DIR [PREFIX/include]
189 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
190 --infodir=DIR info documentation in DIR [PREFIX/info]
191 --mandir=DIR man documentation in DIR [PREFIX/man]
192 --srcdir=DIR find the sources in DIR [configure dir or ..]
193 --program-prefix=PREFIX prepend PREFIX to installed program names
194 --program-suffix=SUFFIX append SUFFIX to installed program names
195 --program-transform-name=PROGRAM
196 run sed PROGRAM on installed program names
200 --build=BUILD configure for building on BUILD [BUILD=HOST]
201 --host=HOST configure for HOST [guessed]
202 --target=TARGET configure for TARGET [TARGET=HOST]
203 Features and packages:
204 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
205 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
206 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
207 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
208 --x-includes=DIR X include files are in DIR
209 --x-libraries=DIR X library files are in DIR
211 if test -n "$ac_help"; then
212 echo "--enable and --with options recognized:$ac_help"
216 -host |
--host |
--hos |
--ho)
218 -host=* |
--host=* |
--hos=* |
--ho=*)
221 -includedir |
--includedir |
--includedi |
--included |
--include \
222 |
--includ |
--inclu |
--incl |
--inc)
223 ac_prev
=includedir
;;
224 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
225 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
226 includedir
="$ac_optarg" ;;
228 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
230 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
231 infodir
="$ac_optarg" ;;
233 -libdir |
--libdir |
--libdi |
--libd)
235 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
236 libdir
="$ac_optarg" ;;
238 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
239 |
--libexe |
--libex |
--libe)
240 ac_prev
=libexecdir
;;
241 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
242 |
--libexe=* |
--libex=* |
--libe=*)
243 libexecdir
="$ac_optarg" ;;
245 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
246 |
--localstate |
--localstat |
--localsta |
--localst \
247 |
--locals |
--local |
--loca |
--loc |
--lo)
248 ac_prev
=localstatedir
;;
249 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
250 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
251 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
252 localstatedir
="$ac_optarg" ;;
254 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
256 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
257 mandir
="$ac_optarg" ;;
260 # Obsolete; use --without-fp.
263 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
267 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
268 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
271 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
272 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
273 |
--oldin |
--oldi |
--old |
--ol |
--o)
274 ac_prev
=oldincludedir
;;
275 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
276 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
277 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
278 oldincludedir
="$ac_optarg" ;;
280 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
282 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
283 prefix
="$ac_optarg" ;;
285 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
286 |
--program-pre |
--program-pr |
--program-p)
287 ac_prev
=program_prefix
;;
288 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
289 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
290 program_prefix
="$ac_optarg" ;;
292 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
293 |
--program-suf |
--program-su |
--program-s)
294 ac_prev
=program_suffix
;;
295 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
296 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
297 program_suffix
="$ac_optarg" ;;
299 -program-transform-name |
--program-transform-name \
300 |
--program-transform-nam |
--program-transform-na \
301 |
--program-transform-n |
--program-transform- \
302 |
--program-transform |
--program-transfor \
303 |
--program-transfo |
--program-transf \
304 |
--program-trans |
--program-tran \
305 |
--progr-tra |
--program-tr |
--program-t)
306 ac_prev
=program_transform_name
;;
307 -program-transform-name=* |
--program-transform-name=* \
308 |
--program-transform-nam=* |
--program-transform-na=* \
309 |
--program-transform-n=* |
--program-transform-=* \
310 |
--program-transform=* |
--program-transfor=* \
311 |
--program-transfo=* |
--program-transf=* \
312 |
--program-trans=* |
--program-tran=* \
313 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
314 program_transform_name
="$ac_optarg" ;;
316 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
317 |
-silent |
--silent |
--silen |
--sile |
--sil)
320 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
322 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
324 sbindir
="$ac_optarg" ;;
326 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
327 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
328 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
330 ac_prev
=sharedstatedir
;;
331 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
332 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
333 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
335 sharedstatedir
="$ac_optarg" ;;
337 -site |
--site |
--sit)
339 -site=* |
--site=* |
--sit=*)
342 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
344 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
345 srcdir
="$ac_optarg" ;;
347 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
348 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
349 ac_prev
=sysconfdir
;;
350 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
351 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
352 sysconfdir
="$ac_optarg" ;;
354 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
356 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
357 target
="$ac_optarg" ;;
359 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
362 -version |
--version |
--versio |
--versi |
--vers)
363 echo "configure generated by autoconf version 2.13"
367 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
368 # Reject names that are not valid shell variable names.
369 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
370 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
372 ac_package
=`echo $ac_package| sed 's/-/_/g'`
377 eval "with_${ac_package}='$ac_optarg'" ;;
379 -without-* |
--without-*)
380 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
381 # Reject names that are not valid shell variable names.
382 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
383 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
385 ac_package
=`echo $ac_package| sed 's/-/_/g'`
386 eval "with_${ac_package}=no" ;;
389 # Obsolete; use --with-x.
392 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
393 |
--x-incl |
--x-inc |
--x-in |
--x-i)
394 ac_prev
=x_includes
;;
395 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
396 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
397 x_includes
="$ac_optarg" ;;
399 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
400 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
401 ac_prev
=x_libraries
;;
402 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
403 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
404 x_libraries
="$ac_optarg" ;;
406 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
410 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
411 echo "configure: warning: $ac_option: invalid host type" 1>&2
413 if test "x$nonopt" != xNONE
; then
414 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
422 if test -n "$ac_prev"; then
423 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
426 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
428 # File descriptor usage:
431 # 2 errors and warnings
432 # 3 some systems may open it to /dev/tty
433 # 4 used on the Kubota Titan
434 # 6 checking for... messages and results
435 # 5 compiler messages saved in config.log
436 if test "$silent" = yes; then
444 This file contains any messages produced by compilers while
445 running configure, to aid debugging if configure makes a mistake.
448 # Strip out --no-create and --no-recursion so they do not pile up.
449 # Also quote any args containing shell metacharacters.
454 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
455 |
--no-cr |
--no-c) ;;
456 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
457 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
458 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
459 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
460 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
465 # Only set these to C if already set. These must not be set unconditionally
466 # because not all systems understand e.g. LANG=C (notably SCO).
467 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
468 # Non-C LC_CTYPE values break the ctype check.
469 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
470 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
471 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
472 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
475 rm -rf conftest
* confdefs.h
476 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
479 # A filename unique to this package, relative to the directory that
480 # configure is in, which we can look for to find out if srcdir is correct.
481 ac_unique_file
=lukemftp.h
483 # Find the source files, if location was not specified.
484 if test -z "$srcdir"; then
485 ac_srcdir_defaulted
=yes
486 # Try the directory containing this script, then its parent.
488 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
489 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
491 if test ! -r $srcdir/$ac_unique_file; then
495 ac_srcdir_defaulted
=no
497 if test ! -r $srcdir/$ac_unique_file; then
498 if test "$ac_srcdir_defaulted" = yes; then
499 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
504 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
506 # Prefer explicitly selected file to automatically selected ones.
507 if test -z "$CONFIG_SITE"; then
508 if test "x$prefix" != xNONE
; then
509 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
511 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
514 for ac_site_file
in $CONFIG_SITE; do
515 if test -r "$ac_site_file"; then
516 echo "loading site script $ac_site_file"
521 if test -r "$cache_file"; then
522 echo "loading cache $cache_file"
525 echo "creating cache $cache_file"
530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
531 ac_cpp
='$CPP $CPPFLAGS'
532 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
533 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
534 cross_compiling
=$ac_cv_prog_cc_cross
538 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
539 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
540 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
547 ac_n
= ac_c
='\c' ac_t
=
552 if test "$program_transform_name" = s
,x
,x
,; then
553 program_transform_name
=
555 # Double any \ or $. echo might interpret backslashes.
556 cat <<\EOF_SED
> conftestsed
557 s
,\\,\\\\,g
; s
,\$
,$$
,g
559 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
562 test "$program_prefix" != NONE
&&
563 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
564 # Use a double $ so make ignores it.
565 test "$program_suffix" != NONE
&&
566 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
568 # sed with no file args requires a program.
569 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
571 # Check whether --enable-editcomplete or --disable-editcomplete was given.
572 if test "${enable_editcomplete+set}" = set; then
573 enableval
="$enable_editcomplete"
574 opt_editcomplete
=$enableval
579 # Check whether --enable-ipv6 or --disable-ipv6 was given.
580 if test "${enable_ipv6+set}" = set; then
581 enableval
="$enable_ipv6"
588 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
589 echo "configure:590: checking whether ${MAKE-make} sets \${MAKE}" >&5
590 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
591 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
592 echo $ac_n "(cached) $ac_c" 1>&6
594 cat > conftestmake
<<\EOF
596 @
echo 'ac_maketemp="${MAKE}"'
598 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
599 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
600 if test -n "$ac_maketemp"; then
601 eval ac_cv_prog_make_
${ac_make}_set
=yes
603 eval ac_cv_prog_make_
${ac_make}_set
=no
607 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
608 echo "$ac_t""yes" 1>&6
611 echo "$ac_t""no" 1>&6
612 SET_MAKE
="MAKE=${MAKE-make}"
615 # Extract the first word of "gcc", so it can be a program name with args.
616 set dummy gcc
; ac_word
=$2
617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
618 echo "configure:619: checking for $ac_word" >&5
619 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
620 echo $ac_n "(cached) $ac_c" 1>&6
622 if test -n "$CC"; then
623 ac_cv_prog_CC
="$CC" # Let the user override the test.
625 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
627 for ac_dir
in $ac_dummy; do
628 test -z "$ac_dir" && ac_dir
=.
629 if test -f $ac_dir/$ac_word; then
638 if test -n "$CC"; then
639 echo "$ac_t""$CC" 1>&6
641 echo "$ac_t""no" 1>&6
644 if test -z "$CC"; then
645 # Extract the first word of "cc", so it can be a program name with args.
646 set dummy cc
; ac_word
=$2
647 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
648 echo "configure:649: checking for $ac_word" >&5
649 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
650 echo $ac_n "(cached) $ac_c" 1>&6
652 if test -n "$CC"; then
653 ac_cv_prog_CC
="$CC" # Let the user override the test.
655 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
658 for ac_dir
in $ac_dummy; do
659 test -z "$ac_dir" && ac_dir
=.
660 if test -f $ac_dir/$ac_word; then
661 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
670 if test $ac_prog_rejected = yes; then
671 # We found a bogon in the path, so make sure we never use it.
672 set dummy
$ac_cv_prog_CC
674 if test $# -gt 0; then
675 # We chose a different compiler from the bogus one.
676 # However, it has the same basename, so the bogon will be chosen
677 # first if we set CC to just the basename; use the full file name.
679 set dummy
"$ac_dir/$ac_word" "$@"
687 if test -n "$CC"; then
688 echo "$ac_t""$CC" 1>&6
690 echo "$ac_t""no" 1>&6
693 if test -z "$CC"; then
696 # Extract the first word of "cl", so it can be a program name with args.
697 set dummy cl
; ac_word
=$2
698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
699 echo "configure:700: checking for $ac_word" >&5
700 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
701 echo $ac_n "(cached) $ac_c" 1>&6
703 if test -n "$CC"; then
704 ac_cv_prog_CC
="$CC" # Let the user override the test.
706 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
708 for ac_dir
in $ac_dummy; do
709 test -z "$ac_dir" && ac_dir
=.
710 if test -f $ac_dir/$ac_word; then
719 if test -n "$CC"; then
720 echo "$ac_t""$CC" 1>&6
722 echo "$ac_t""no" 1>&6
727 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
730 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
731 echo "configure:732: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
734 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
735 ac_cpp
='$CPP $CPPFLAGS'
736 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
737 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
738 cross_compiling
=$ac_cv_prog_cc_cross
740 cat > conftest.
$ac_ext << EOF
742 #line 743 "configure"
743 #include "confdefs.h"
747 if { (eval echo configure
:748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
748 ac_cv_prog_cc_works
=yes
749 # If we can't run a trivial program, we are probably using a cross compiler.
750 if (.
/conftest
; exit) 2>/dev
/null
; then
751 ac_cv_prog_cc_cross
=no
753 ac_cv_prog_cc_cross
=yes
756 echo "configure: failed program was:" >&5
757 cat conftest.
$ac_ext >&5
758 ac_cv_prog_cc_works
=no
762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
763 ac_cpp
='$CPP $CPPFLAGS'
764 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
765 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
766 cross_compiling
=$ac_cv_prog_cc_cross
768 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
769 if test $ac_cv_prog_cc_works = no
; then
770 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
772 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
773 echo "configure:774: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
774 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
775 cross_compiling
=$ac_cv_prog_cc_cross
777 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
778 echo "configure:779: checking whether we are using GNU C" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 cat > conftest.c
<<EOF
787 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
794 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
796 if test $ac_cv_prog_gcc = yes; then
802 ac_test_CFLAGS
="${CFLAGS+set}"
803 ac_save_CFLAGS
="$CFLAGS"
805 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
806 echo "configure:807: checking whether ${CC-cc} accepts -g" >&5
807 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
808 echo $ac_n "(cached) $ac_c" 1>&6
810 echo 'void f(){}' > conftest.c
811 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
820 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
821 if test "$ac_test_CFLAGS" = set; then
822 CFLAGS
="$ac_save_CFLAGS"
823 elif test $ac_cv_prog_cc_g = yes; then
824 if test "$GCC" = yes; then
830 if test "$GCC" = yes; then
837 for ac_prog
in mawk gawk nawk
awk
839 # Extract the first word of "$ac_prog", so it can be a program name with args.
840 set dummy
$ac_prog; ac_word
=$2
841 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
842 echo "configure:843: checking for $ac_word" >&5
843 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
844 echo $ac_n "(cached) $ac_c" 1>&6
846 if test -n "$AWK"; then
847 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
849 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
851 for ac_dir
in $ac_dummy; do
852 test -z "$ac_dir" && ac_dir
=.
853 if test -f $ac_dir/$ac_word; then
854 ac_cv_prog_AWK
="$ac_prog"
861 AWK
="$ac_cv_prog_AWK"
862 if test -n "$AWK"; then
863 echo "$ac_t""$AWK" 1>&6
865 echo "$ac_t""no" 1>&6
868 test -n "$AWK" && break
872 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
873 if test -f $ac_dir/install-sh
; then
875 ac_install_sh
="$ac_aux_dir/install-sh -c"
877 elif test -f $ac_dir/install.sh
; then
879 ac_install_sh
="$ac_aux_dir/install.sh -c"
883 if test -z "$ac_aux_dir"; then
884 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
886 ac_config_guess
=$ac_aux_dir/config.guess
887 ac_config_sub
=$ac_aux_dir/config.sub
888 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
890 # Find a good install program. We prefer a C program (faster),
891 # so one script is as good as another. But avoid the broken or
892 # incompatible versions:
893 # SysV /etc/install, /usr/sbin/install
894 # SunOS /usr/etc/install
897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
900 # ./install, which can be erroneously created by make from ./install.sh.
901 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
902 echo "configure:903: checking for a BSD compatible install" >&5
903 if test -z "$INSTALL"; then
904 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
905 echo $ac_n "(cached) $ac_c" 1>&6
907 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
908 for ac_dir
in $PATH; do
909 # Account for people who put trailing slashes in PATH elements.
911 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
913 # OSF1 and SCO ODT 3.0 have their own names for install.
914 # Don't use installbsd from OSF since it installs stuff as root
916 for ac_prog
in ginstall scoinst
install; do
917 if test -f $ac_dir/$ac_prog; then
918 if test $ac_prog = install &&
919 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
920 # AIX install. It has an incompatible calling convention.
923 ac_cv_path_install
="$ac_dir/$ac_prog -c"
934 if test "${ac_cv_path_install+set}" = set; then
935 INSTALL
="$ac_cv_path_install"
937 # As a last resort, use the slow shell script. We don't cache a
938 # path for INSTALL within a source directory, because that will
939 # break other packages using the cache if that directory is
940 # removed, or if the path is relative.
941 INSTALL
="$ac_install_sh"
944 echo "$ac_t""$INSTALL" 1>&6
946 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
947 # It thinks the first close brace ends the variable substitution.
948 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
950 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
952 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
954 # Extract the first word of "ranlib", so it can be a program name with args.
955 set dummy ranlib
; ac_word
=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
961 if test -n "$RANLIB"; then
962 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
964 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
966 for ac_dir
in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir
=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_RANLIB
="ranlib"
974 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
977 RANLIB
="$ac_cv_prog_RANLIB"
978 if test -n "$RANLIB"; then
979 echo "$ac_t""$RANLIB" 1>&6
981 echo "$ac_t""no" 1>&6
986 # Extract the first word of "$ac_prog", so it can be a program name with args.
987 set dummy
$ac_prog; ac_word
=$2
988 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
989 echo "configure:990: checking for $ac_word" >&5
990 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
991 echo $ac_n "(cached) $ac_c" 1>&6
993 if test -n "$AR"; then
994 ac_cv_prog_AR
="$AR" # Let the user override the test.
996 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
998 for ac_dir
in $ac_dummy; do
999 test -z "$ac_dir" && ac_dir
=.
1000 if test -f $ac_dir/$ac_word; then
1001 ac_cv_prog_AR
="$ac_prog"
1009 if test -n "$AR"; then
1010 echo "$ac_t""$AR" 1>&6
1012 echo "$ac_t""no" 1>&6
1015 test -n "$AR" && break
1018 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1019 echo "configure:1020: checking how to run the C preprocessor" >&5
1020 # On Suns, sometimes $CPP names a directory.
1021 if test -n "$CPP" && test -d "$CPP"; then
1024 if test -z "$CPP"; then
1025 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1028 # This must be in double quotes, not single quotes, because CPP may get
1029 # substituted into the Makefile and "${CC-cc}" will confuse make.
1031 # On the NeXT, cc -E runs the code through the compiler's parser,
1032 # not just through cpp.
1033 cat > conftest.
$ac_ext <<EOF
1034 #line 1035 "configure"
1035 #include "confdefs.h"
1039 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1040 { (eval echo configure
:1041: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1041 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1042 if test -z "$ac_err"; then
1046 echo "configure: failed program was:" >&5
1047 cat conftest.
$ac_ext >&5
1049 CPP
="${CC-cc} -E -traditional-cpp"
1050 cat > conftest.
$ac_ext <<EOF
1051 #line 1052 "configure"
1052 #include "confdefs.h"
1056 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1057 { (eval echo configure
:1058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1058 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1059 if test -z "$ac_err"; then
1063 echo "configure: failed program was:" >&5
1064 cat conftest.
$ac_ext >&5
1066 CPP
="${CC-cc} -nologo -E"
1067 cat > conftest.
$ac_ext <<EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1073 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1074 { (eval echo configure
:1075: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1075 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1076 if test -z "$ac_err"; then
1080 echo "configure: failed program was:" >&5
1081 cat conftest.
$ac_ext >&5
1090 ac_cv_prog_CPP
="$CPP"
1092 CPP
="$ac_cv_prog_CPP"
1094 ac_cv_prog_CPP
="$CPP"
1096 echo "$ac_t""$CPP" 1>&6
1098 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1099 echo "configure:1100: checking for AIX" >&5
1100 cat > conftest.
$ac_ext <<EOF
1101 #line 1102 "configure"
1102 #include "confdefs.h"
1108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1109 egrep "yes" >/dev
/null
2>&1; then
1111 echo "$ac_t""yes" 1>&6; cat >> confdefs.h
<<\EOF
1112 #define _ALL_SOURCE 1
1117 echo "$ac_t""no" 1>&6
1124 echo $ac_n "checking for fparseln in -lutil""... $ac_c" 1>&6
1125 echo "configure:1126: checking for fparseln in -lutil" >&5
1126 ac_lib_var
=`echo util'_'fparseln | sed 'y%./+-%__p_%'`
1127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1130 ac_save_LIBS
="$LIBS"
1132 cat > conftest.
$ac_ext <<EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1135 /* Override any gcc2 internal prototype to avoid an error. */
1136 /* We use char because int might match the return type of a gcc2
1137 builtin and then its argument prototype would still apply. */
1144 if { (eval echo configure
:1145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1146 eval "ac_cv_lib_$ac_lib_var=yes"
1148 echo "configure: failed program was:" >&5
1149 cat conftest.
$ac_ext >&5
1151 eval "ac_cv_lib_$ac_lib_var=no"
1154 LIBS
="$ac_save_LIBS"
1157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1158 echo "$ac_t""yes" 1>&6
1159 ac_tr_lib
=HAVE_LIB
`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1160 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1161 cat >> confdefs.h
<<EOF
1162 #define $ac_tr_lib 1
1168 echo "$ac_t""no" 1>&6
1171 if test $opt_editcomplete = yes; then
1172 echo $ac_n "checking for tgetent in -ltinfo""... $ac_c" 1>&6
1173 echo "configure:1174: checking for tgetent in -ltinfo" >&5
1174 ac_lib_var
=`echo tinfo'_'tgetent | sed 'y%./+-%__p_%'`
1175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 ac_save_LIBS
="$LIBS"
1179 LIBS
="-ltinfo $LIBS"
1180 cat > conftest.
$ac_ext <<EOF
1181 #line 1182 "configure"
1182 #include "confdefs.h"
1183 /* Override any gcc2 internal prototype to avoid an error. */
1184 /* We use char because int might match the return type of a gcc2
1185 builtin and then its argument prototype would still apply. */
1192 if { (eval echo configure
:1193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1194 eval "ac_cv_lib_$ac_lib_var=yes"
1196 echo "configure: failed program was:" >&5
1197 cat conftest.
$ac_ext >&5
1199 eval "ac_cv_lib_$ac_lib_var=no"
1202 LIBS
="$ac_save_LIBS"
1205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1206 echo "$ac_t""yes" 1>&6
1207 ac_tr_lib
=HAVE_LIB
`echo tinfo | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1208 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1209 cat >> confdefs.h
<<EOF
1210 #define $ac_tr_lib 1
1213 LIBS
="-ltinfo $LIBS"
1216 echo "$ac_t""no" 1>&6
1217 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6
1218 echo "configure:1219: checking for tgetent in -ltermcap" >&5
1219 ac_lib_var
=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'`
1220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1221 echo $ac_n "(cached) $ac_c" 1>&6
1223 ac_save_LIBS
="$LIBS"
1224 LIBS
="-ltermcap $LIBS"
1225 cat > conftest.
$ac_ext <<EOF
1226 #line 1227 "configure"
1227 #include "confdefs.h"
1228 /* Override any gcc2 internal prototype to avoid an error. */
1229 /* We use char because int might match the return type of a gcc2
1230 builtin and then its argument prototype would still apply. */
1237 if { (eval echo configure
:1238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1239 eval "ac_cv_lib_$ac_lib_var=yes"
1241 echo "configure: failed program was:" >&5
1242 cat conftest.
$ac_ext >&5
1244 eval "ac_cv_lib_$ac_lib_var=no"
1247 LIBS
="$ac_save_LIBS"
1250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1251 echo "$ac_t""yes" 1>&6
1252 ac_tr_lib
=HAVE_LIB
`echo termcap | sed -e 's/^a-zA-Z0-9_/_/g' \
1253 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1254 cat >> confdefs.h
<<EOF
1255 #define $ac_tr_lib 1
1258 LIBS
="-ltermcap $LIBS"
1261 echo "$ac_t""no" 1>&6
1262 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
1263 echo "configure:1264: checking for tgetent in -lcurses" >&5
1264 ac_lib_var
=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
1265 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1268 ac_save_LIBS
="$LIBS"
1269 LIBS
="-lcurses $LIBS"
1270 cat > conftest.
$ac_ext <<EOF
1271 #line 1272 "configure"
1272 #include "confdefs.h"
1273 /* Override any gcc2 internal prototype to avoid an error. */
1274 /* We use char because int might match the return type of a gcc2
1275 builtin and then its argument prototype would still apply. */
1282 if { (eval echo configure
:1283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1284 eval "ac_cv_lib_$ac_lib_var=yes"
1286 echo "configure: failed program was:" >&5
1287 cat conftest.
$ac_ext >&5
1289 eval "ac_cv_lib_$ac_lib_var=no"
1292 LIBS
="$ac_save_LIBS"
1295 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1296 echo "$ac_t""yes" 1>&6
1297 ac_tr_lib
=HAVE_LIB
`echo curses | sed -e 's/^a-zA-Z0-9_/_/g' \
1298 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1299 cat >> confdefs.h
<<EOF
1300 #define $ac_tr_lib 1
1303 LIBS
="-lcurses $LIBS"
1306 echo "$ac_t""no" 1>&6
1307 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
1308 echo "configure:1309: checking for tgetent in -lncurses" >&5
1309 ac_lib_var
=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
1310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1313 ac_save_LIBS
="$LIBS"
1314 LIBS
="-lncurses $LIBS"
1315 cat > conftest.
$ac_ext <<EOF
1316 #line 1317 "configure"
1317 #include "confdefs.h"
1318 /* Override any gcc2 internal prototype to avoid an error. */
1319 /* We use char because int might match the return type of a gcc2
1320 builtin and then its argument prototype would still apply. */
1327 if { (eval echo configure
:1328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1329 eval "ac_cv_lib_$ac_lib_var=yes"
1331 echo "configure: failed program was:" >&5
1332 cat conftest.
$ac_ext >&5
1334 eval "ac_cv_lib_$ac_lib_var=no"
1337 LIBS
="$ac_save_LIBS"
1340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1341 echo "$ac_t""yes" 1>&6
1342 ac_tr_lib
=HAVE_LIB
`echo ncurses | sed -e 's/^a-zA-Z0-9_/_/g' \
1343 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1344 cat >> confdefs.h
<<EOF
1345 #define $ac_tr_lib 1
1348 LIBS
="-lncurses $LIBS"
1351 echo "$ac_t""no" 1>&6
1361 echo $ac_n "checking for library containing el_init""... $ac_c" 1>&6
1362 echo "configure:1363: checking for library containing el_init" >&5
1363 if eval "test \"`echo '$''{'ac_cv_search_el_init'+set}'`\" = set"; then
1364 echo $ac_n "(cached) $ac_c" 1>&6
1366 ac_func_search_save_LIBS
="$LIBS"
1367 ac_cv_search_el_init
="no"
1368 cat > conftest.
$ac_ext <<EOF
1369 #line 1370 "configure"
1370 #include "confdefs.h"
1371 /* Override any gcc2 internal prototype to avoid an error. */
1372 /* We use char because int might match the return type of a gcc2
1373 builtin and then its argument prototype would still apply. */
1380 if { (eval echo configure
:1381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1382 ac_cv_search_el_init
="none required"
1384 echo "configure: failed program was:" >&5
1385 cat conftest.
$ac_ext >&5
1388 test "$ac_cv_search_el_init" = "no" && for i
in edit
; do
1389 LIBS
="-l$i $ac_func_search_save_LIBS"
1390 cat > conftest.
$ac_ext <<EOF
1391 #line 1392 "configure"
1392 #include "confdefs.h"
1393 /* Override any gcc2 internal prototype to avoid an error. */
1394 /* We use char because int might match the return type of a gcc2
1395 builtin and then its argument prototype would still apply. */
1402 if { (eval echo configure
:1403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1404 ac_cv_search_el_init
="-l$i"
1407 echo "configure: failed program was:" >&5
1408 cat conftest.
$ac_ext >&5
1412 LIBS
="$ac_func_search_save_LIBS"
1415 echo "$ac_t""$ac_cv_search_el_init" 1>&6
1416 if test "$ac_cv_search_el_init" != "no"; then
1417 test "$ac_cv_search_el_init" = "none required" || LIBS
="$ac_cv_search_el_init $LIBS"
1424 # Most operating systems have gethostbyname() in the default searched
1425 # libraries (i.e. libc):
1426 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1427 echo "configure:1428: checking for gethostbyname" >&5
1428 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1429 echo $ac_n "(cached) $ac_c" 1>&6
1431 cat > conftest.
$ac_ext <<EOF
1432 #line 1433 "configure"
1433 #include "confdefs.h"
1434 /* System header to define __stub macros and hopefully few prototypes,
1435 which can conflict with char gethostbyname(); below. */
1437 /* Override any gcc2 internal prototype to avoid an error. */
1438 /* We use char because int might match the return type of a gcc2
1439 builtin and then its argument prototype would still apply. */
1440 char gethostbyname();
1444 /* The GNU C library defines this for functions which it implements
1445 to always fail with ENOSYS. Some functions are actually named
1446 something starting with __ and the normal name is an alias. */
1447 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1455 if { (eval echo configure
:1456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1457 eval "ac_cv_func_gethostbyname=yes"
1459 echo "configure: failed program was:" >&5
1460 cat conftest.
$ac_ext >&5
1462 eval "ac_cv_func_gethostbyname=no"
1467 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1468 echo "$ac_t""yes" 1>&6
1471 echo "$ac_t""no" 1>&6
1472 # Some OSes (eg. Solaris) place it in libnsl:
1473 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1474 echo "configure:1475: checking for gethostbyname in -lnsl" >&5
1475 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1476 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1477 echo $ac_n "(cached) $ac_c" 1>&6
1479 ac_save_LIBS
="$LIBS"
1481 cat > conftest.
$ac_ext <<EOF
1482 #line 1483 "configure"
1483 #include "confdefs.h"
1484 /* Override any gcc2 internal prototype to avoid an error. */
1485 /* We use char because int might match the return type of a gcc2
1486 builtin and then its argument prototype would still apply. */
1487 char gethostbyname();
1493 if { (eval echo configure
:1494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1495 eval "ac_cv_lib_$ac_lib_var=yes"
1497 echo "configure: failed program was:" >&5
1498 cat conftest.
$ac_ext >&5
1500 eval "ac_cv_lib_$ac_lib_var=no"
1503 LIBS
="$ac_save_LIBS"
1506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1507 echo "$ac_t""yes" 1>&6
1508 ac_tr_lib
=HAVE_LIB
`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1509 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1510 cat >> confdefs.h
<<EOF
1511 #define $ac_tr_lib 1
1517 echo "$ac_t""no" 1>&6
1518 # Some strange OSes (SINIX) have it in libsocket:
1519 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1520 echo "configure:1521: checking for gethostbyname in -lsocket" >&5
1521 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1522 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1523 echo $ac_n "(cached) $ac_c" 1>&6
1525 ac_save_LIBS
="$LIBS"
1526 LIBS
="-lsocket $LIBS"
1527 cat > conftest.
$ac_ext <<EOF
1528 #line 1529 "configure"
1529 #include "confdefs.h"
1530 /* Override any gcc2 internal prototype to avoid an error. */
1531 /* We use char because int might match the return type of a gcc2
1532 builtin and then its argument prototype would still apply. */
1533 char gethostbyname();
1539 if { (eval echo configure
:1540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1541 eval "ac_cv_lib_$ac_lib_var=yes"
1543 echo "configure: failed program was:" >&5
1544 cat conftest.
$ac_ext >&5
1546 eval "ac_cv_lib_$ac_lib_var=no"
1549 LIBS
="$ac_save_LIBS"
1552 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1553 echo "$ac_t""yes" 1>&6
1554 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1555 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1556 cat >> confdefs.h
<<EOF
1557 #define $ac_tr_lib 1
1560 LIBS
="-lsocket $LIBS"
1563 echo "$ac_t""no" 1>&6
1564 # Unfortunately libsocket sometimes depends on libnsl.
1565 # AC_CHECK_LIB's API is essentially broken so the following
1566 # ugliness is necessary:
1567 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1568 echo "configure:1569: checking for gethostbyname in -lsocket" >&5
1569 ac_lib_var
=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1570 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1571 echo $ac_n "(cached) $ac_c" 1>&6
1573 ac_save_LIBS
="$LIBS"
1574 LIBS
="-lsocket -lnsl $LIBS"
1575 cat > conftest.
$ac_ext <<EOF
1576 #line 1577 "configure"
1577 #include "confdefs.h"
1578 /* Override any gcc2 internal prototype to avoid an error. */
1579 /* We use char because int might match the return type of a gcc2
1580 builtin and then its argument prototype would still apply. */
1581 char gethostbyname();
1587 if { (eval echo configure
:1588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1589 eval "ac_cv_lib_$ac_lib_var=yes"
1591 echo "configure: failed program was:" >&5
1592 cat conftest.
$ac_ext >&5
1594 eval "ac_cv_lib_$ac_lib_var=no"
1597 LIBS
="$ac_save_LIBS"
1600 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1601 echo "$ac_t""yes" 1>&6
1602 LIBS
="-lsocket -lnsl $LIBS"
1604 echo "$ac_t""no" 1>&6
1605 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
1606 echo "configure:1607: checking for gethostbyname in -lresolv" >&5
1607 ac_lib_var
=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
1608 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1609 echo $ac_n "(cached) $ac_c" 1>&6
1611 ac_save_LIBS
="$LIBS"
1612 LIBS
="-lresolv $LIBS"
1613 cat > conftest.
$ac_ext <<EOF
1614 #line 1615 "configure"
1615 #include "confdefs.h"
1616 /* Override any gcc2 internal prototype to avoid an error. */
1617 /* We use char because int might match the return type of a gcc2
1618 builtin and then its argument prototype would still apply. */
1619 char gethostbyname();
1625 if { (eval echo configure
:1626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1627 eval "ac_cv_lib_$ac_lib_var=yes"
1629 echo "configure: failed program was:" >&5
1630 cat conftest.
$ac_ext >&5
1632 eval "ac_cv_lib_$ac_lib_var=no"
1635 LIBS
="$ac_save_LIBS"
1638 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1639 echo "$ac_t""yes" 1>&6
1640 ac_tr_lib
=HAVE_LIB
`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1641 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1642 cat >> confdefs.h
<<EOF
1643 #define $ac_tr_lib 1
1646 LIBS
="-lresolv $LIBS"
1649 echo "$ac_t""no" 1>&6
1663 echo $ac_n "checking for socket""... $ac_c" 1>&6
1664 echo "configure:1665: checking for socket" >&5
1665 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 cat > conftest.
$ac_ext <<EOF
1669 #line 1670 "configure"
1670 #include "confdefs.h"
1671 /* System header to define __stub macros and hopefully few prototypes,
1672 which can conflict with char socket(); below. */
1674 /* Override any gcc2 internal prototype to avoid an error. */
1675 /* We use char because int might match the return type of a gcc2
1676 builtin and then its argument prototype would still apply. */
1681 /* The GNU C library defines this for functions which it implements
1682 to always fail with ENOSYS. Some functions are actually named
1683 something starting with __ and the normal name is an alias. */
1684 #if defined (__stub_socket) || defined (__stub___socket)
1692 if { (eval echo configure
:1693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1694 eval "ac_cv_func_socket=yes"
1696 echo "configure: failed program was:" >&5
1697 cat conftest.
$ac_ext >&5
1699 eval "ac_cv_func_socket=no"
1704 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1705 echo "$ac_t""yes" 1>&6
1708 echo "$ac_t""no" 1>&6
1709 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1710 echo "configure:1711: checking for socket in -lsocket" >&5
1711 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1713 echo $ac_n "(cached) $ac_c" 1>&6
1715 ac_save_LIBS
="$LIBS"
1716 LIBS
="-lsocket $LIBS"
1717 cat > conftest.
$ac_ext <<EOF
1718 #line 1719 "configure"
1719 #include "confdefs.h"
1720 /* Override any gcc2 internal prototype to avoid an error. */
1721 /* We use char because int might match the return type of a gcc2
1722 builtin and then its argument prototype would still apply. */
1729 if { (eval echo configure
:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1731 eval "ac_cv_lib_$ac_lib_var=yes"
1733 echo "configure: failed program was:" >&5
1734 cat conftest.
$ac_ext >&5
1736 eval "ac_cv_lib_$ac_lib_var=no"
1739 LIBS
="$ac_save_LIBS"
1742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1743 echo "$ac_t""yes" 1>&6
1744 ac_tr_lib
=HAVE_LIB
`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1745 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1746 cat >> confdefs.h
<<EOF
1747 #define $ac_tr_lib 1
1750 LIBS
="-lsocket $LIBS"
1753 echo "$ac_t""no" 1>&6
1754 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1755 echo "configure:1756: checking for socket in -lsocket" >&5
1756 ac_lib_var
=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1757 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1760 ac_save_LIBS
="$LIBS"
1761 LIBS
="-lsocket -lnsl $LIBS"
1762 cat > conftest.
$ac_ext <<EOF
1763 #line 1764 "configure"
1764 #include "confdefs.h"
1765 /* Override any gcc2 internal prototype to avoid an error. */
1766 /* We use char because int might match the return type of a gcc2
1767 builtin and then its argument prototype would still apply. */
1774 if { (eval echo configure
:1775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1776 eval "ac_cv_lib_$ac_lib_var=yes"
1778 echo "configure: failed program was:" >&5
1779 cat conftest.
$ac_ext >&5
1781 eval "ac_cv_lib_$ac_lib_var=no"
1784 LIBS
="$ac_save_LIBS"
1787 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1788 echo "$ac_t""yes" 1>&6
1789 LIBS
="-lsocket -lnsl $LIBS"
1791 echo "$ac_t""no" 1>&6
1800 echo $ac_n "checking whether to support SOCKS""... $ac_c" 1>&6
1801 echo "configure:1802: checking whether to support SOCKS" >&5
1802 # Check whether --with-socks or --without-socks was given.
1803 if test "${with_socks+set}" = set; then
1804 withval
="$with_socks"
1808 echo "$ac_t""no" 1>&6
1811 echo "$ac_t""yes" 1>&6
1812 echo $ac_n "checking for SOCKSconnect in -lsocks5""... $ac_c" 1>&6
1813 echo "configure:1814: checking for SOCKSconnect in -lsocks5" >&5
1814 ac_lib_var
=`echo socks5'_'SOCKSconnect | sed 'y%./+-%__p_%'`
1815 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1816 echo $ac_n "(cached) $ac_c" 1>&6
1818 ac_save_LIBS
="$LIBS"
1819 LIBS
="-lsocks5 $LIBS"
1820 cat > conftest.
$ac_ext <<EOF
1821 #line 1822 "configure"
1822 #include "confdefs.h"
1823 /* Override any gcc2 internal prototype to avoid an error. */
1824 /* We use char because int might match the return type of a gcc2
1825 builtin and then its argument prototype would still apply. */
1826 char SOCKSconnect();
1832 if { (eval echo configure
:1833: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1834 eval "ac_cv_lib_$ac_lib_var=yes"
1836 echo "configure: failed program was:" >&5
1837 cat conftest.
$ac_ext >&5
1839 eval "ac_cv_lib_$ac_lib_var=no"
1842 LIBS
="$ac_save_LIBS"
1845 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1846 echo "$ac_t""yes" 1>&6
1849 LIBS
="-lsocks5 $LIBS"
1851 echo "$ac_t""no" 1>&6
1853 echo $ac_n "checking for Rconnect in -lsocks""... $ac_c" 1>&6
1854 echo "configure:1855: checking for Rconnect in -lsocks" >&5
1855 ac_lib_var
=`echo socks'_'Rconnect | sed 'y%./+-%__p_%'`
1856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1857 echo $ac_n "(cached) $ac_c" 1>&6
1859 ac_save_LIBS
="$LIBS"
1860 LIBS
="-lsocks $LIBS"
1861 cat > conftest.
$ac_ext <<EOF
1862 #line 1863 "configure"
1863 #include "confdefs.h"
1864 /* Override any gcc2 internal prototype to avoid an error. */
1865 /* We use char because int might match the return type of a gcc2
1866 builtin and then its argument prototype would still apply. */
1873 if { (eval echo configure
:1874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1875 eval "ac_cv_lib_$ac_lib_var=yes"
1877 echo "configure: failed program was:" >&5
1878 cat conftest.
$ac_ext >&5
1880 eval "ac_cv_lib_$ac_lib_var=no"
1883 LIBS
="$ac_save_LIBS"
1886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1887 echo "$ac_t""yes" 1>&6
1890 LIBS
="-lsocks $LIBS"
1892 echo "$ac_t""no" 1>&6
1894 { echo "configure: error: Could not find socks library. You must first install socks." 1>&2; exit 1; }
1903 echo "$ac_t""no" 1>&6
1908 if test "x$socks" = "x"; then
1909 echo $ac_n "checking whether to support SOCKS5""... $ac_c" 1>&6
1910 echo "configure:1911: checking whether to support SOCKS5" >&5
1911 # Check whether --with-socks5 or --without-socks5 was given.
1912 if test "${with_socks5+set}" = set; then
1913 withval
="$with_socks5"
1917 echo "$ac_t""no" 1>&6
1920 echo "$ac_t""yes" 1>&6
1922 if test "x$withval" = "xyes"; then
1925 if test -d "$withval"; then
1926 if test -d "$withval/include"; then
1927 CFLAGS
="$CFLAGS -I$withval/include"
1929 CFLAGS
="$CFLAGS -I$withval"
1931 if test -d "$withval/lib"; then
1932 withval
="-L$withval/lib -lsocks5"
1934 withval
="-L$withval -lsocks5"
1938 LIBS
="$withval $LIBS"
1939 # If Socks was compiled with Kerberos support, we will need
1940 # to link against kerberos libraries. Temporarily append
1941 # to LIBS. This is harmless if there is no kerberos support.
1943 LIBS
="$LIBS $KERBEROS_LIBS"
1944 cat > conftest.
$ac_ext <<EOF
1945 #line 1946 "configure"
1946 #include "confdefs.h"
1952 if { (eval echo configure
:1953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1955 echo "configure: failed program was:" >&5
1956 cat conftest.
$ac_ext >&5
1958 { echo "configure: error: Could not find the $withval library. You must first install socks5." 1>&2; exit 1; }
1966 echo "$ac_t""no" 1>&6
1972 if test "x$socks" = "x"; then
1973 echo $ac_n "checking whether to support SOCKS4""... $ac_c" 1>&6
1974 echo "configure:1975: checking whether to support SOCKS4" >&5
1975 # Check whether --with-socks4 or --without-socks4 was given.
1976 if test "${with_socks4+set}" = set; then
1977 withval
="$with_socks4"
1981 echo "$ac_t""no" 1>&6
1984 echo "$ac_t""yes" 1>&6
1986 if test "x$withval" = "xyes"; then
1989 if test -d "$withval"; then
1990 withval
="-L$withval -lsocks"
1993 LIBS
="$withval $LIBS"
1994 cat > conftest.
$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
2002 if { (eval echo configure
:2003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2005 echo "configure: failed program was:" >&5
2006 cat conftest.
$ac_ext >&5
2008 { echo "configure: error: Could not find the $withval library. You must first install socks." 1>&2; exit 1; }
2015 echo "$ac_t""no" 1>&6
2021 if test "x$socks" = "x4"; then
2022 cat >> confdefs.h
<<\EOF
2026 cat >> confdefs.h
<<\EOF
2030 cat >> confdefs.h
<<\EOF
2031 #define connect Rconnect
2034 cat >> confdefs.h
<<\EOF
2035 #define getsockname Rgetsockname
2038 cat >> confdefs.h
<<\EOF
2042 cat >> confdefs.h
<<\EOF
2043 #define accept Raccept
2046 cat >> confdefs.h
<<\EOF
2047 #define listen Rlisten
2050 cat >> confdefs.h
<<\EOF
2051 #define select Rselect
2056 if test "x$socks" = "x5"; then
2057 cat >> confdefs.h
<<\EOF
2061 cat >> confdefs.h
<<\EOF
2065 cat >> confdefs.h
<<\EOF
2066 #define connect SOCKSconnect
2069 cat >> confdefs.h
<<\EOF
2070 #define getsockname SOCKSgetsockname
2073 cat >> confdefs.h
<<\EOF
2074 #define getpeername SOCKSgetpeername
2077 cat >> confdefs.h
<<\EOF
2078 #define bind SOCKSbind
2081 cat >> confdefs.h
<<\EOF
2082 #define accept SOCKSaccept
2085 cat >> confdefs.h
<<\EOF
2086 #define listen SOCKSlisten
2089 cat >> confdefs.h
<<\EOF
2090 #define select SOCKSselect
2093 cat >> confdefs.h
<<\EOF
2094 #define recvfrom SOCKSrecvfrom
2097 cat >> confdefs.h
<<\EOF
2098 #define sendto SOCKSsendto
2101 cat >> confdefs.h
<<\EOF
2102 #define recv SOCKSrecv
2105 cat >> confdefs.h
<<\EOF
2106 #define send SOCKSsend
2109 cat >> confdefs.h
<<\EOF
2110 #define read SOCKSread
2113 cat >> confdefs.h
<<\EOF
2114 #define write SOCKSwrite
2117 cat >> confdefs.h
<<\EOF
2118 #define rresvport SOCKSrresvport
2121 cat >> confdefs.h
<<\EOF
2122 #define shutdown SOCKSshutdown
2125 cat >> confdefs.h
<<\EOF
2126 #define listen SOCKSlisten
2129 cat >> confdefs.h
<<\EOF
2130 #define close SOCKSclose
2133 cat >> confdefs.h
<<\EOF
2134 #define dup SOCKSdup
2137 cat >> confdefs.h
<<\EOF
2138 #define dup2 SOCKSdup2
2141 cat >> confdefs.h
<<\EOF
2142 #define fclose SOCKSfclose
2145 cat >> confdefs.h
<<\EOF
2146 #define gethostbyname SOCKSgethostbyname
2151 if test -n "$socks"; then
2152 if test $opt_ipv6 = yes; then
2153 echo "IPv6 is incompatible with socks, disabling IPv6 support"
2161 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2163 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2164 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2165 echo "configure:2166: checking for $ac_hdr that defines DIR" >&5
2166 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2169 cat > conftest.
$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2172 #include <sys/types.h>
2178 if { (eval echo configure
:2179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2180 eval "ac_cv_header_dirent_$ac_safe=yes"
2182 echo "configure: failed program was:" >&5
2183 cat conftest.
$ac_ext >&5
2185 eval "ac_cv_header_dirent_$ac_safe=no"
2189 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2190 echo "$ac_t""yes" 1>&6
2191 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2192 cat >> confdefs.h
<<EOF
2193 #define $ac_tr_hdr 1
2195 ac_header_dirent
=$ac_hdr; break
2197 echo "$ac_t""no" 1>&6
2200 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2201 if test $ac_header_dirent = dirent.h
; then
2202 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2203 echo "configure:2204: checking for opendir in -ldir" >&5
2204 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2206 echo $ac_n "(cached) $ac_c" 1>&6
2208 ac_save_LIBS
="$LIBS"
2210 cat > conftest.
$ac_ext <<EOF
2211 #line 2212 "configure"
2212 #include "confdefs.h"
2213 /* Override any gcc2 internal prototype to avoid an error. */
2214 /* We use char because int might match the return type of a gcc2
2215 builtin and then its argument prototype would still apply. */
2222 if { (eval echo configure
:2223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2224 eval "ac_cv_lib_$ac_lib_var=yes"
2226 echo "configure: failed program was:" >&5
2227 cat conftest.
$ac_ext >&5
2229 eval "ac_cv_lib_$ac_lib_var=no"
2232 LIBS
="$ac_save_LIBS"
2235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2236 echo "$ac_t""yes" 1>&6
2239 echo "$ac_t""no" 1>&6
2243 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2244 echo "configure:2245: checking for opendir in -lx" >&5
2245 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2247 echo $ac_n "(cached) $ac_c" 1>&6
2249 ac_save_LIBS
="$LIBS"
2251 cat > conftest.
$ac_ext <<EOF
2252 #line 2253 "configure"
2253 #include "confdefs.h"
2254 /* Override any gcc2 internal prototype to avoid an error. */
2255 /* We use char because int might match the return type of a gcc2
2256 builtin and then its argument prototype would still apply. */
2263 if { (eval echo configure
:2264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2265 eval "ac_cv_lib_$ac_lib_var=yes"
2267 echo "configure: failed program was:" >&5
2268 cat conftest.
$ac_ext >&5
2270 eval "ac_cv_lib_$ac_lib_var=no"
2273 LIBS
="$ac_save_LIBS"
2276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2277 echo "$ac_t""yes" 1>&6
2280 echo "$ac_t""no" 1>&6
2285 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2286 echo "configure:2287: checking for ANSI C header files" >&5
2287 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2288 echo $ac_n "(cached) $ac_c" 1>&6
2290 cat > conftest.
$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2298 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2299 { (eval echo configure
:2300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2300 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2301 if test -z "$ac_err"; then
2303 ac_cv_header_stdc
=yes
2306 echo "configure: failed program was:" >&5
2307 cat conftest.
$ac_ext >&5
2309 ac_cv_header_stdc
=no
2313 if test $ac_cv_header_stdc = yes; then
2314 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2315 cat > conftest.
$ac_ext <<EOF
2316 #line 2317 "configure"
2317 #include "confdefs.h"
2320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2321 egrep "memchr" >/dev
/null
2>&1; then
2325 ac_cv_header_stdc
=no
2331 if test $ac_cv_header_stdc = yes; then
2332 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2333 cat > conftest.
$ac_ext <<EOF
2334 #line 2335 "configure"
2335 #include "confdefs.h"
2338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2339 egrep "free" >/dev
/null
2>&1; then
2343 ac_cv_header_stdc
=no
2349 if test $ac_cv_header_stdc = yes; then
2350 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2351 if test "$cross_compiling" = yes; then
2354 cat > conftest.
$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2358 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2359 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2361 int main () { int i; for (i = 0; i < 256; i++)
2362 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2366 if { (eval echo configure
:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2370 echo "configure: failed program was:" >&5
2371 cat conftest.
$ac_ext >&5
2373 ac_cv_header_stdc
=no
2381 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2382 if test $ac_cv_header_stdc = yes; then
2383 cat >> confdefs.h
<<\EOF
2384 #define STDC_HEADERS 1
2389 for ac_hdr
in arpa
/nameser.h err.h regex.h paths.h poll.h sys
/poll.h \
2390 termcap.h util.h libutil.h vis.h
2392 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2394 echo "configure:2395: checking for $ac_hdr" >&5
2395 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2398 cat > conftest.
$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2403 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2404 { (eval echo configure
:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2405 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2406 if test -z "$ac_err"; then
2408 eval "ac_cv_header_$ac_safe=yes"
2411 echo "configure: failed program was:" >&5
2412 cat conftest.
$ac_ext >&5
2414 eval "ac_cv_header_$ac_safe=no"
2418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2419 echo "$ac_t""yes" 1>&6
2420 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2421 cat >> confdefs.h
<<EOF
2422 #define $ac_tr_hdr 1
2426 echo "$ac_t""no" 1>&6
2432 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2433 echo "configure:2434: checking whether time.h and sys/time.h may both be included" >&5
2434 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2437 cat > conftest.
$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2440 #include <sys/types.h>
2441 #include <sys/time.h>
2447 if { (eval echo configure
:2448: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2449 ac_cv_header_time
=yes
2451 echo "configure: failed program was:" >&5
2452 cat conftest.
$ac_ext >&5
2454 ac_cv_header_time
=no
2459 echo "$ac_t""$ac_cv_header_time" 1>&6
2460 if test $ac_cv_header_time = yes; then
2461 cat >> confdefs.h
<<\EOF
2462 #define TIME_WITH_SYS_TIME 1
2467 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2468 echo "configure:2469: checking for off_t" >&5
2469 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2470 echo $ac_n "(cached) $ac_c" 1>&6
2472 cat > conftest.
$ac_ext <<EOF
2473 #line 2474 "configure"
2474 #include "confdefs.h"
2475 #include <sys/types.h>
2481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2482 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2484 ac_cv_type_off_t
=yes
2492 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2493 if test $ac_cv_type_off_t = no
; then
2494 cat >> confdefs.h
<<\EOF
2500 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
2501 echo "configure:2502: checking size of off_t" >&5
2502 if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
2503 echo $ac_n "(cached) $ac_c" 1>&6
2505 if test "$cross_compiling" = yes; then
2506 ac_cv_sizeof_off_t
=0
2508 cat > conftest.
$ac_ext <<EOF
2509 #line 2510 "configure"
2510 #include "confdefs.h"
2514 FILE *f=fopen("conftestval", "w");
2516 fprintf(f, "%d\n", sizeof(off_t));
2520 if { (eval echo configure
:2521: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2522 ac_cv_sizeof_off_t
=`cat conftestval`
2524 echo "configure: failed program was:" >&5
2525 cat conftest.
$ac_ext >&5
2527 ac_cv_sizeof_off_t
=0
2533 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
2534 cat >> confdefs.h
<<EOF
2535 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
2540 echo $ac_n "checking for long long""... $ac_c" 1>&6
2541 echo "configure:2542: checking for long long" >&5
2542 if eval "test \"`echo '$''{'ftp_cv_HAVE_LONG_LONG'+set}'`\" = set"; then
2543 echo $ac_n "(cached) $ac_c" 1>&6
2546 cat > conftest.
$ac_ext <<EOF
2547 #line 2548 "configure"
2548 #include "confdefs.h"
2550 #include <sys/types.h>
2553 long long X = 2, Y = 1, Z;
2557 if { (eval echo configure
:2558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2559 ftp_cv_HAVE_LONG_LONG
=yes
2561 echo "configure: failed program was:" >&5
2562 cat conftest.
$ac_ext >&5
2564 ftp_cv_HAVE_LONG_LONG
=no
2570 echo "$ac_t""$ftp_cv_HAVE_LONG_LONG" 1>&6
2571 if test "x$ftp_cv_HAVE_LONG_LONG" = "xyes"; then
2573 cat >> confdefs.h
<<\EOF
2574 #define HAVE_LONG_LONG 1
2585 echo $ac_n "checking for in_port_t""... $ac_c" 1>&6
2586 echo "configure:2587: checking for in_port_t" >&5
2587 if eval "test \"`echo '$''{'ftp_cv_HAVE_IN_PORT_T'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2591 cat > conftest.
$ac_ext <<EOF
2592 #line 2593 "configure"
2593 #include "confdefs.h"
2595 #include <sys/types.h>
2596 #include <netinet/in.h>
2601 if { (eval echo configure
:2602: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2603 ftp_cv_HAVE_IN_PORT_T
=yes
2605 echo "configure: failed program was:" >&5
2606 cat conftest.
$ac_ext >&5
2608 ftp_cv_HAVE_IN_PORT_T
=no
2614 echo "$ac_t""$ftp_cv_HAVE_IN_PORT_T" 1>&6
2615 if test "x$ftp_cv_HAVE_IN_PORT_T" = "xyes"; then
2616 cat >> confdefs.h
<<\EOF
2617 #define HAVE_IN_PORT_T 1
2627 echo $ac_n "checking for sa_family_t""... $ac_c" 1>&6
2628 echo "configure:2629: checking for sa_family_t" >&5
2629 if eval "test \"`echo '$''{'ftp_cv_HAVE_SA_FAMILY_T'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2633 cat > conftest.
$ac_ext <<EOF
2634 #line 2635 "configure"
2635 #include "confdefs.h"
2637 #include <sys/types.h>
2638 #include <sys/socket.h>
2643 if { (eval echo configure
:2644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2645 ftp_cv_HAVE_SA_FAMILY_T
=yes
2647 echo "configure: failed program was:" >&5
2648 cat conftest.
$ac_ext >&5
2650 ftp_cv_HAVE_SA_FAMILY_T
=no
2656 echo "$ac_t""$ftp_cv_HAVE_SA_FAMILY_T" 1>&6
2657 if test "x$ftp_cv_HAVE_SA_FAMILY_T" = "xyes"; then
2658 cat >> confdefs.h
<<\EOF
2659 #define HAVE_SA_FAMILY_T 1
2669 echo $ac_n "checking for sockaddr_in.sin_len""... $ac_c" 1>&6
2670 echo "configure:2671: checking for sockaddr_in.sin_len" >&5
2671 if eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKADDR_SA_LEN'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2675 cat > conftest.
$ac_ext <<EOF
2676 #line 2677 "configure"
2677 #include "confdefs.h"
2679 #include <sys/types.h>
2680 #include <sys/socket.h>
2681 #include <netinet/in.h>
2684 struct sockaddr_in sin;
2685 int X = sin.sin_len ;
2688 if { (eval echo configure
:2689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2690 ftp_cv_HAVE_SOCKADDR_SA_LEN
=yes
2692 echo "configure: failed program was:" >&5
2693 cat conftest.
$ac_ext >&5
2695 ftp_cv_HAVE_SOCKADDR_SA_LEN
=no
2701 echo "$ac_t""$ftp_cv_HAVE_SOCKADDR_SA_LEN" 1>&6
2702 if test "x$ftp_cv_HAVE_SOCKADDR_SA_LEN" = "xyes"; then
2703 cat >> confdefs.h
<<\EOF
2704 #define HAVE_SOCKADDR_SA_LEN 1
2714 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
2715 echo "configure:2716: checking for socklen_t" >&5
2716 if eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKLEN_T'+set}'`\" = set"; then
2717 echo $ac_n "(cached) $ac_c" 1>&6
2720 cat > conftest.
$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2724 #include <sys/types.h>
2725 #include <sys/socket.h>
2730 if { (eval echo configure
:2731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2732 ftp_cv_HAVE_SOCKLEN_T
=yes
2734 echo "configure: failed program was:" >&5
2735 cat conftest.
$ac_ext >&5
2737 ftp_cv_HAVE_SOCKLEN_T
=no
2743 echo "$ac_t""$ftp_cv_HAVE_SOCKLEN_T" 1>&6
2744 if test "x$ftp_cv_HAVE_SOCKLEN_T" = "xyes"; then
2745 cat >> confdefs.h
<<\EOF
2746 #define HAVE_SOCKLEN_T 1
2755 if test $opt_ipv6 = yes; then
2758 echo $ac_n "checking for AF_INET6""... $ac_c" 1>&6
2759 echo "configure:2760: checking for AF_INET6" >&5
2760 if eval "test \"`echo '$''{'ftp_cv_HAVE_AF_INET6'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2764 cat > conftest.
$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2768 #include <sys/types.h>
2769 #include <sys/socket.h>
2774 if { (eval echo configure
:2775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2776 ftp_cv_HAVE_AF_INET6
=yes
2778 echo "configure: failed program was:" >&5
2779 cat conftest.
$ac_ext >&5
2781 ftp_cv_HAVE_AF_INET6
=no
2787 echo "$ac_t""$ftp_cv_HAVE_AF_INET6" 1>&6
2788 if test "x$ftp_cv_HAVE_AF_INET6" = "xyes"; then
2789 cat >> confdefs.h
<<\EOF
2790 #define HAVE_AF_INET6 1
2800 echo $ac_n "checking for struct sockaddr_in6""... $ac_c" 1>&6
2801 echo "configure:2802: checking for struct sockaddr_in6" >&5
2802 if eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKADDR_IN6'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2806 cat > conftest.
$ac_ext <<EOF
2807 #line 2808 "configure"
2808 #include "confdefs.h"
2810 #include <sys/types.h>
2811 #include <netinet/in.h>
2813 struct sockaddr_in6 X ;
2816 if { (eval echo configure
:2817: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2818 ftp_cv_HAVE_SOCKADDR_IN6
=yes
2820 echo "configure: failed program was:" >&5
2821 cat conftest.
$ac_ext >&5
2823 ftp_cv_HAVE_SOCKADDR_IN6
=no
2829 echo "$ac_t""$ftp_cv_HAVE_SOCKADDR_IN6" 1>&6
2830 if test "x$ftp_cv_HAVE_SOCKADDR_IN6" = "xyes"; then
2831 cat >> confdefs.h
<<\EOF
2832 #define HAVE_SOCKADDR_IN6 1
2844 echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
2845 echo "configure:2846: checking for struct addrinfo" >&5
2846 if eval "test \"`echo '$''{'ftp_cv_HAVE_ADDRINFO'+set}'`\" = set"; then
2847 echo $ac_n "(cached) $ac_c" 1>&6
2850 cat > conftest.
$ac_ext <<EOF
2851 #line 2852 "configure"
2852 #include "confdefs.h"
2854 #include <sys/types.h>
2855 #include <sys/socket.h>
2861 if { (eval echo configure
:2862: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2863 ftp_cv_HAVE_ADDRINFO
=yes
2865 echo "configure: failed program was:" >&5
2866 cat conftest.
$ac_ext >&5
2868 ftp_cv_HAVE_ADDRINFO
=no
2874 echo "$ac_t""$ftp_cv_HAVE_ADDRINFO" 1>&6
2875 if test "x$ftp_cv_HAVE_ADDRINFO" = "xyes"; then
2876 cat >> confdefs.h
<<\EOF
2877 #define HAVE_ADDRINFO 1
2887 echo $ac_n "checking for d_namlen in struct dirent""... $ac_c" 1>&6
2888 echo "configure:2889: checking for d_namlen in struct dirent" >&5
2889 if eval "test \"`echo '$''{'ftp_cv_HAVE_D_NAMLEN'+set}'`\" = set"; then
2890 echo $ac_n "(cached) $ac_c" 1>&6
2893 cat > conftest.
$ac_ext <<EOF
2894 #line 2895 "configure"
2895 #include "confdefs.h"
2898 # include <dirent.h>
2900 # define dirent direct
2901 # if HAVE_SYS_NDIR_H
2902 # include <sys/ndir.h>
2905 # include <sys/dir.h>
2914 int X = dp.d_namlen; ;
2917 if { (eval echo configure
:2918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2919 ftp_cv_HAVE_D_NAMLEN
=yes
2921 echo "configure: failed program was:" >&5
2922 cat conftest.
$ac_ext >&5
2924 ftp_cv_HAVE_D_NAMLEN
=no
2930 echo "$ac_t""$ftp_cv_HAVE_D_NAMLEN" 1>&6
2931 if test "x$ftp_cv_HAVE_D_NAMLEN" = "xyes"; then
2932 cat >> confdefs.h
<<\EOF
2933 #define HAVE_D_NAMLEN 1
2943 echo $ac_n "checking for h_errno declaration""... $ac_c" 1>&6
2944 echo "configure:2945: checking for h_errno declaration" >&5
2945 if eval "test \"`echo '$''{'ftp_cv_HAVE_H_ERRNO_D'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2949 cat > conftest.
$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2958 if { (eval echo configure
:2959: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2960 ftp_cv_HAVE_H_ERRNO_D
=yes
2962 echo "configure: failed program was:" >&5
2963 cat conftest.
$ac_ext >&5
2965 ftp_cv_HAVE_H_ERRNO_D
=no
2971 echo "$ac_t""$ftp_cv_HAVE_H_ERRNO_D" 1>&6
2972 if test "x$ftp_cv_HAVE_H_ERRNO_D" = "xyes"; then
2973 cat >> confdefs.h
<<\EOF
2974 #define HAVE_H_ERRNO_D 1
2984 echo $ac_n "checking for fclose() declaration""... $ac_c" 1>&6
2985 echo "configure:2986: checking for fclose() declaration" >&5
2986 if eval "test \"`echo '$''{'ftp_cv_HAVE_FCLOSE_D'+set}'`\" = set"; then
2987 echo $ac_n "(cached) $ac_c" 1>&6
2990 cat > conftest.
$ac_ext <<EOF
2991 #line 2992 "configure"
2992 #include "confdefs.h"
2996 int (*X)() = fclose ;
2999 if { (eval echo configure
:3000: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3001 ftp_cv_HAVE_FCLOSE_D
=yes
3003 echo "configure: failed program was:" >&5
3004 cat conftest.
$ac_ext >&5
3006 ftp_cv_HAVE_FCLOSE_D
=no
3012 echo "$ac_t""$ftp_cv_HAVE_FCLOSE_D" 1>&6
3013 if test "x$ftp_cv_HAVE_FCLOSE_D" = "xyes"; then
3014 cat >> confdefs.h
<<\EOF
3015 #define HAVE_FCLOSE_D 1
3025 echo $ac_n "checking for getpass() declaration""... $ac_c" 1>&6
3026 echo "configure:3027: checking for getpass() declaration" >&5
3027 if eval "test \"`echo '$''{'ftp_cv_HAVE_GETPASS_D'+set}'`\" = set"; then
3028 echo $ac_n "(cached) $ac_c" 1>&6
3031 cat > conftest.
$ac_ext <<EOF
3032 #line 3033 "configure"
3033 #include "confdefs.h"
3038 char *(*X)() = getpass ;
3041 if { (eval echo configure
:3042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3043 ftp_cv_HAVE_GETPASS_D
=yes
3045 echo "configure: failed program was:" >&5
3046 cat conftest.
$ac_ext >&5
3048 ftp_cv_HAVE_GETPASS_D
=no
3054 echo "$ac_t""$ftp_cv_HAVE_GETPASS_D" 1>&6
3055 if test "x$ftp_cv_HAVE_GETPASS_D" = "xyes"; then
3057 cat >> confdefs.h
<<\EOF
3058 #define HAVE_GETPASS_D 1
3068 echo $ac_n "checking for optarg declaration""... $ac_c" 1>&6
3069 echo "configure:3070: checking for optarg declaration" >&5
3070 if eval "test \"`echo '$''{'ftp_cv_HAVE_OPTARG_D'+set}'`\" = set"; then
3071 echo $ac_n "(cached) $ac_c" 1>&6
3074 cat > conftest.
$ac_ext <<EOF
3075 #line 3076 "configure"
3076 #include "confdefs.h"
3084 if { (eval echo configure
:3085: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3086 ftp_cv_HAVE_OPTARG_D
=yes
3088 echo "configure: failed program was:" >&5
3089 cat conftest.
$ac_ext >&5
3091 ftp_cv_HAVE_OPTARG_D
=no
3097 echo "$ac_t""$ftp_cv_HAVE_OPTARG_D" 1>&6
3098 if test "x$ftp_cv_HAVE_OPTARG_D" = "xyes"; then
3099 cat >> confdefs.h
<<\EOF
3100 #define HAVE_OPTARG_D 1
3110 echo $ac_n "checking for optind declaration""... $ac_c" 1>&6
3111 echo "configure:3112: checking for optind declaration" >&5
3112 if eval "test \"`echo '$''{'ftp_cv_HAVE_OPTIND_D'+set}'`\" = set"; then
3113 echo $ac_n "(cached) $ac_c" 1>&6
3116 cat > conftest.
$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3126 if { (eval echo configure
:3127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3128 ftp_cv_HAVE_OPTIND_D
=yes
3130 echo "configure: failed program was:" >&5
3131 cat conftest.
$ac_ext >&5
3133 ftp_cv_HAVE_OPTIND_D
=no
3139 echo "$ac_t""$ftp_cv_HAVE_OPTIND_D" 1>&6
3140 if test "x$ftp_cv_HAVE_OPTIND_D" = "xyes"; then
3141 cat >> confdefs.h
<<\EOF
3142 #define HAVE_OPTIND_D 1
3152 echo $ac_n "checking for pclose() declaration""... $ac_c" 1>&6
3153 echo "configure:3154: checking for pclose() declaration" >&5
3154 if eval "test \"`echo '$''{'ftp_cv_HAVE_PCLOSE_D'+set}'`\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3158 cat > conftest.
$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3164 int (*X)() = pclose ;
3167 if { (eval echo configure
:3168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3169 ftp_cv_HAVE_PCLOSE_D
=yes
3171 echo "configure: failed program was:" >&5
3172 cat conftest.
$ac_ext >&5
3174 ftp_cv_HAVE_PCLOSE_D
=no
3180 echo "$ac_t""$ftp_cv_HAVE_PCLOSE_D" 1>&6
3181 if test "x$ftp_cv_HAVE_PCLOSE_D" = "xyes"; then
3182 cat >> confdefs.h
<<\EOF
3183 #define HAVE_PCLOSE_D 1
3193 for ac_func
in err fgetln fseeko getaddrinfo getnameinfo inet_ntop inet_pton \
3194 mkstemp setprogname sl_init snprintf strdup strerror strlcat \
3195 strlcpy strptime strsep strunvis strvis timegm
usleep
3197 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3198 echo "configure:3199: checking for $ac_func" >&5
3199 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3200 echo $ac_n "(cached) $ac_c" 1>&6
3202 cat > conftest.
$ac_ext <<EOF
3203 #line 3204 "configure"
3204 #include "confdefs.h"
3205 /* System header to define __stub macros and hopefully few prototypes,
3206 which can conflict with char $ac_func(); below. */
3208 /* Override any gcc2 internal prototype to avoid an error. */
3209 /* We use char because int might match the return type of a gcc2
3210 builtin and then its argument prototype would still apply. */
3215 /* The GNU C library defines this for functions which it implements
3216 to always fail with ENOSYS. Some functions are actually named
3217 something starting with __ and the normal name is an alias. */
3218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3226 if { (eval echo configure
:3227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3228 eval "ac_cv_func_$ac_func=yes"
3230 echo "configure: failed program was:" >&5
3231 cat conftest.
$ac_ext >&5
3233 eval "ac_cv_func_$ac_func=no"
3238 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3239 echo "$ac_t""yes" 1>&6
3240 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3241 cat >> confdefs.h
<<EOF
3242 #define $ac_tr_func 1
3246 echo "$ac_t""no" 1>&6
3247 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
3252 for ac_func
in gethostbyname2 getpassphrase getpgrp memmove poll
select
3254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3255 echo "configure:3256: checking for $ac_func" >&5
3256 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3257 echo $ac_n "(cached) $ac_c" 1>&6
3259 cat > conftest.
$ac_ext <<EOF
3260 #line 3261 "configure"
3261 #include "confdefs.h"
3262 /* System header to define __stub macros and hopefully few prototypes,
3263 which can conflict with char $ac_func(); below. */
3265 /* Override any gcc2 internal prototype to avoid an error. */
3266 /* We use char because int might match the return type of a gcc2
3267 builtin and then its argument prototype would still apply. */
3272 /* The GNU C library defines this for functions which it implements
3273 to always fail with ENOSYS. Some functions are actually named
3274 something starting with __ and the normal name is an alias. */
3275 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3283 if { (eval echo configure
:3284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3285 eval "ac_cv_func_$ac_func=yes"
3287 echo "configure: failed program was:" >&5
3288 cat conftest.
$ac_ext >&5
3290 eval "ac_cv_func_$ac_func=no"
3295 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3296 echo "$ac_t""yes" 1>&6
3297 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3298 cat >> confdefs.h
<<EOF
3299 #define $ac_tr_func 1
3303 echo "$ac_t""no" 1>&6
3307 if test $ac_cv_func_getpgrp = yes; then
3308 echo $ac_n "checking whether getpgrp takes no argument""... $ac_c" 1>&6
3309 echo "configure:3310: checking whether getpgrp takes no argument" >&5
3310 if eval "test \"`echo '$''{'ac_cv_func_getpgrp_void'+set}'`\" = set"; then
3311 echo $ac_n "(cached) $ac_c" 1>&6
3313 if test "$cross_compiling" = yes; then
3314 { echo "configure: error: cannot check getpgrp if cross compiling" 1>&2; exit 1; }
3316 cat > conftest.
$ac_ext <<EOF
3317 #line 3318 "configure"
3318 #include "confdefs.h"
3321 * If this system has a BSD-style getpgrp(),
3322 * which takes a pid argument, exit unsuccessfully.
3324 * Snarfed from Chet Ramey's bash pgrp.c test program
3327 #include <sys/types.h>
3330 int pg1, pg2, pg3, pg4;
3331 int ng, np, s, child;
3342 * If all of these values are the same, it's pretty sure that
3343 * we're on a system that ignores getpgrp's first argument.
3345 if (pg2 == pg4 && pg1 == pg3 && pg2 == pg3)
3351 else if (child == 0) {
3354 * If this is Sys V, this will not work; pgrp will be
3355 * set to np because setpgrp just changes a pgrp to be
3356 * the same as the pid.
3359 ng = getpgrp(0); /* Same result for Sys V and BSD */
3372 if { (eval echo configure
:3373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3374 ac_cv_func_getpgrp_void
=yes
3376 echo "configure: failed program was:" >&5
3377 cat conftest.
$ac_ext >&5
3379 ac_cv_func_getpgrp_void
=no
3387 echo "$ac_t""$ac_cv_func_getpgrp_void" 1>&6
3388 if test $ac_cv_func_getpgrp_void = yes; then
3389 cat >> confdefs.h
<<\EOF
3390 #define GETPGRP_VOID 1
3396 if test $ac_cv_lib_util_fparseln != yes; then
3397 for ac_func
in fparseln
3399 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3400 echo "configure:3401: checking for $ac_func" >&5
3401 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3402 echo $ac_n "(cached) $ac_c" 1>&6
3404 cat > conftest.
$ac_ext <<EOF
3405 #line 3406 "configure"
3406 #include "confdefs.h"
3407 /* System header to define __stub macros and hopefully few prototypes,
3408 which can conflict with char $ac_func(); below. */
3410 /* Override any gcc2 internal prototype to avoid an error. */
3411 /* We use char because int might match the return type of a gcc2
3412 builtin and then its argument prototype would still apply. */
3417 /* The GNU C library defines this for functions which it implements
3418 to always fail with ENOSYS. Some functions are actually named
3419 something starting with __ and the normal name is an alias. */
3420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3428 if { (eval echo configure
:3429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3430 eval "ac_cv_func_$ac_func=yes"
3432 echo "configure: failed program was:" >&5
3433 cat conftest.
$ac_ext >&5
3435 eval "ac_cv_func_$ac_func=no"
3440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3441 echo "$ac_t""yes" 1>&6
3442 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3443 cat >> confdefs.h
<<EOF
3444 #define $ac_tr_func 1
3448 echo "$ac_t""no" 1>&6
3449 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
3456 LIBOBJS
="$LIBOBJS glob.o"
3458 if test $ac_cv_func_strptime = yes; then
3460 echo $ac_n "checking for strptime() declaration""... $ac_c" 1>&6
3461 echo "configure:3462: checking for strptime() declaration" >&5
3462 if eval "test \"`echo '$''{'ftp_cv_HAVE_STRPTIME_D'+set}'`\" = set"; then
3463 echo $ac_n "(cached) $ac_c" 1>&6
3466 cat > conftest.
$ac_ext <<EOF
3467 #line 3468 "configure"
3468 #include "confdefs.h"
3472 char *X = strptime("", "", NULL) ;
3475 if { (eval echo configure
:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3477 ftp_cv_HAVE_STRPTIME_D
=yes
3479 echo "configure: failed program was:" >&5
3480 cat conftest.
$ac_ext >&5
3482 ftp_cv_HAVE_STRPTIME_D
=no
3488 echo "$ac_t""$ftp_cv_HAVE_STRPTIME_D" 1>&6
3489 if test "x$ftp_cv_HAVE_STRPTIME_D" = "xyes"; then
3490 cat >> confdefs.h
<<\EOF
3491 #define HAVE_STRPTIME_D 1
3501 if test $have_long_long = yes -a $ac_cv_sizeof_off_t -ge 8; then
3504 echo $ac_n "checking *printf() support for %lld""... $ac_c" 1>&6
3505 echo "configure:3506: checking *printf() support for %lld" >&5
3506 can_printf_longlong
=no
3507 if test "$cross_compiling" = yes; then
3510 cat > conftest.
$ac_ext <<EOF
3511 #line 3512 "configure"
3512 #include "confdefs.h"
3517 sprintf(buf, "%lld", 4294967300LL);
3518 return (strcmp(buf, "4294967300"));
3522 if { (eval echo configure
:3523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3525 echo "$ac_t""yes" 1>&6
3526 can_printf_longlong
=yes
3529 echo "configure: failed program was:" >&5
3530 cat conftest.
$ac_ext >&5
3533 echo "$ac_t""no" 1>&6
3540 if test $can_printf_longlong != yes; then
3541 echo $ac_n "checking *printf() support for %qd""... $ac_c" 1>&6
3542 echo "configure:3543: checking *printf() support for %qd" >&5
3543 if test "$cross_compiling" = yes; then
3546 cat > conftest.
$ac_ext <<EOF
3547 #line 3548 "configure"
3548 #include "confdefs.h"
3553 sprintf(buf, "%qd", 4294967300LL);
3554 return (strcmp(buf, "4294967300"));
3558 if { (eval echo configure
:3559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3561 echo "$ac_t""yes" 1>&6
3562 can_printf_longlong
=yes
3563 cat >> confdefs.h
<<\EOF
3564 #define HAVE_PRINTF_QD 1
3569 echo "configure: failed program was:" >&5
3570 cat conftest.
$ac_ext >&5
3573 echo "$ac_t""no" 1>&6
3581 if test $can_printf_longlong = yes; then
3582 cat >> confdefs.h
<<\EOF
3583 #define HAVE_QUAD_SUPPORT 1
3586 for ac_func
in strtoll
3588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3589 echo "configure:3590: checking for $ac_func" >&5
3590 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3593 cat > conftest.
$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3596 /* System header to define __stub macros and hopefully few prototypes,
3597 which can conflict with char $ac_func(); below. */
3599 /* Override any gcc2 internal prototype to avoid an error. */
3600 /* We use char because int might match the return type of a gcc2
3601 builtin and then its argument prototype would still apply. */
3606 /* The GNU C library defines this for functions which it implements
3607 to always fail with ENOSYS. Some functions are actually named
3608 something starting with __ and the normal name is an alias. */
3609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3617 if { (eval echo configure
:3618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3619 eval "ac_cv_func_$ac_func=yes"
3621 echo "configure: failed program was:" >&5
3622 cat conftest.
$ac_ext >&5
3624 eval "ac_cv_func_$ac_func=no"
3629 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3630 echo "$ac_t""yes" 1>&6
3631 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3632 cat >> confdefs.h
<<EOF
3633 #define $ac_tr_func 1
3637 echo "$ac_t""no" 1>&6
3638 LIBOBJS
="$LIBOBJS ${ac_func}.${ac_objext}"
3648 if test $opt_editcomplete = yes; then
3649 if test $have_libedit = yes; then
3651 echo $ac_n "checking for EL_RPROMPT in libedit""... $ac_c" 1>&6
3652 echo "configure:3653: checking for EL_RPROMPT in libedit" >&5
3653 if eval "test \"`echo '$''{'ftp_cv_have_libedit'+set}'`\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3657 cat > conftest.
$ac_ext <<EOF
3658 #line 3659 "configure"
3659 #include "confdefs.h"
3661 #include <histedit.h>
3663 int X = EL_RPROMPT ;
3666 if { (eval echo configure
:3667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3668 ftp_cv_have_libedit
=yes
3670 echo "configure: failed program was:" >&5
3671 cat conftest.
$ac_ext >&5
3673 ftp_cv_have_libedit
=no
3679 echo "$ac_t""$ftp_cv_have_libedit" 1>&6
3680 if test "x$ftp_cv_have_libedit" = "xyes"; then
3689 echo $ac_n "checking for working libedit""... $ac_c" 1>&6
3690 echo "configure:3691: checking for working libedit" >&5
3691 if test $have_libedit = no
; then
3692 echo "$ac_t""no - using my own" 1>&6
3693 INCLUDES
="-I\${srcdir}/../libedit $INCLUDES"
3694 LDFLAGS
="-L../libedit $LDFLAGS"
3697 LIBDEPENDS
="$LIBDEPENDS ../libedit/libedit.a"
3699 echo "$ac_t""yes" 1>&6
3702 CFLAGS
="-DNO_EDITCOMPLETE $CFLAGS"
3705 if test $ac_cv_func_sl_init = yes; then
3707 echo $ac_n "checking if sl_add() returns int""... $ac_c" 1>&6
3708 echo "configure:3709: checking if sl_add() returns int" >&5
3709 if eval "test \"`echo '$''{'ftp_cv_INT_SL_ADD'+set}'`\" = set"; then
3710 echo $ac_n "(cached) $ac_c" 1>&6
3713 cat > conftest.
$ac_ext <<EOF
3714 #line 3715 "configure"
3715 #include "confdefs.h"
3717 #include <stringlist.h>
3719 int f = sl_add((StringList *)0, "foo") ;
3722 if { (eval echo configure
:3723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3724 ftp_cv_INT_SL_ADD
=yes
3726 echo "configure: failed program was:" >&5
3727 cat conftest.
$ac_ext >&5
3729 ftp_cv_INT_SL_ADD
=no
3735 echo "$ac_t""$ftp_cv_INT_SL_ADD" 1>&6
3736 if test "x$ftp_cv_INT_SL_ADD" = "xyes"; then
3739 LIBOBJS
="$LIBOBJS sl_init.o"
3746 have_rfc2553_netdb
=no
3747 if test $ac_cv_func_getaddrinfo = yes -a ! -n "$socks"; then
3749 echo $ac_n "checking for AI_NUMERICHOST""... $ac_c" 1>&6
3750 echo "configure:3751: checking for AI_NUMERICHOST" >&5
3751 if eval "test \"`echo '$''{'ftp_cv_have_ai_numerichost'+set}'`\" = set"; then
3752 echo $ac_n "(cached) $ac_c" 1>&6
3755 cat > conftest.
$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3759 #include <sys/types.h>
3760 #include <sys/socket.h>
3763 int X = AI_NUMERICHOST ;
3766 if { (eval echo configure
:3767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3768 ftp_cv_have_ai_numerichost
=yes
3770 echo "configure: failed program was:" >&5
3771 cat conftest.
$ac_ext >&5
3773 ftp_cv_have_ai_numerichost
=no
3779 echo "$ac_t""$ftp_cv_have_ai_numerichost" 1>&6
3780 if test "x$ftp_cv_have_ai_numerichost" = "xyes"; then
3781 have_rfc2553_netdb
=yes
3788 echo $ac_n "checking for working getaddrinfo()""... $ac_c" 1>&6
3789 echo "configure:3790: checking for working getaddrinfo()" >&5
3790 if test $have_rfc2553_netdb = yes; then
3791 cat >> confdefs.h
<<\EOF
3792 #define HAVE_RFC2553_NETDB 1
3795 echo "$ac_t""yes" 1>&6
3797 if test $ac_cv_func_getaddrinfo = yes; then
3798 LIBOBJS
="$LIBOBJS getaddrinfo.o"
3799 echo "$ac_t""no - using local version" 1>&6
3801 echo "$ac_t""using local version" 1>&6
3806 if test $ac_cv_header_vis_h = yes; then
3808 echo $ac_n "checking for VIS_WHITE in vis.h""... $ac_c" 1>&6
3809 echo "configure:3810: checking for VIS_WHITE in vis.h" >&5
3810 if eval "test \"`echo '$''{'ftp_cv_have_vis_white'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3814 cat > conftest.
$ac_ext <<EOF
3815 #line 3816 "configure"
3816 #include "confdefs.h"
3818 #include <sys/types.h>
3824 if { (eval echo configure
:3825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3826 ftp_cv_have_vis_white
=yes
3828 echo "configure: failed program was:" >&5
3829 cat conftest.
$ac_ext >&5
3831 ftp_cv_have_vis_white
=no
3837 echo "$ac_t""$ftp_cv_have_vis_white" 1>&6
3838 if test "x$ftp_cv_have_vis_white" = "xyes"; then
3841 ac_cv_header_vis_h
=no
3848 if test -n "$LIBOBJS"; then
3849 INCLUDES
="$INCLUDES -I\${srcdir}/../libukem"
3850 LDFLAGS
="$LDFLAGS -L../libukem"
3853 LIBDEPENDS
="$LIBDEPENDS ../libukem/libukem.a"
3863 cat > confcache
<<\EOF
3864 # This file is a shell script that caches the results of configure
3865 # tests run on this system so they can be shared between configure
3866 # scripts and configure runs. It is not useful on other systems.
3867 # If it contains results you don't want to keep, you may remove or edit it.
3869 # By default, configure uses ./config.cache as the cache file,
3870 # creating it if it does not exist already. You can give configure
3871 # the --cache-file=FILE option to use a different cache file; that is
3872 # what configure does when it calls configure scripts in
3873 # subdirectories, so they share the cache.
3874 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3875 # config.status only pays attention to the cache file if you give it the
3876 # --recheck option to rerun configure.
3879 # The following way of writing the cache mishandles newlines in values,
3880 # but we know of no workaround that is simple, portable, and efficient.
3881 # So, don't put newlines in cache variables' values.
3882 # Ultrix sh set writes to stderr and can't be redirected directly,
3883 # and sets the high bit in the cache file unless we assign to the vars.
3885 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3887 # `set' does not quote correctly, so add quotes (double-quote substitution
3888 # turns \\\\ into \\, and sed turns \\ into \).
3890 -e "s/'/'\\\\''/g" \
3891 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3894 # `set' quotes correctly as required by POSIX, so do not add quotes.
3895 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3898 if cmp -s $cache_file confcache
; then
3901 if test -w $cache_file; then
3902 echo "updating cache $cache_file"
3903 cat confcache
> $cache_file
3905 echo "not updating unwritable cache $cache_file"
3910 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3912 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
3913 # Let make expand exec_prefix.
3914 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
3916 # Any assignment to VPATH causes Sun make to only execute
3917 # the first set of double-colon rules, so remove it if not needed.
3918 # If there is a colon in the path, we need to keep it.
3919 if test "x$srcdir" = x.
; then
3920 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
3923 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3925 DEFS
=-DHAVE_CONFIG_H
3927 # Without the "./", some shells look in PATH for config.status.
3928 : ${CONFIG_STATUS=./config.status}
3930 echo creating
$CONFIG_STATUS
3931 rm -f $CONFIG_STATUS
3932 cat > $CONFIG_STATUS <<EOF
3934 # Generated automatically by configure.
3935 # Run this file to recreate the current configuration.
3936 # This directory was configured as follows,
3937 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3939 # $0 $ac_configure_args
3941 # Compiler output produced by configure, useful for debugging
3942 # configure, is in ./config.log if it exists.
3944 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3947 case "\$ac_option" in
3948 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3949 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3950 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3951 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3952 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3954 -help | --help | --hel | --he | --h)
3955 echo "\$ac_cs_usage"; exit 0 ;;
3956 *) echo "\$ac_cs_usage"; exit 1 ;;
3960 ac_given_srcdir=$srcdir
3961 ac_given_INSTALL="$INSTALL"
3963 trap 'rm -fr `echo "Makefile libedit/Makefile libedit/makelist libukem/Makefile \
3964 src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3966 cat >> $CONFIG_STATUS <<EOF
3968 # Protect against being on the right side of a sed subst in config.status.
3969 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3970 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3974 s%@CFLAGS@%$CFLAGS%g
3975 s%@CPPFLAGS@%$CPPFLAGS%g
3976 s%@CXXFLAGS@%$CXXFLAGS%g
3977 s%@FFLAGS@%$FFLAGS%g
3979 s%@LDFLAGS@%$LDFLAGS%g
3981 s%@exec_prefix@%$exec_prefix%g
3982 s%@prefix@%$prefix%g
3983 s%@program_transform_name@%$program_transform_name%g
3984 s%@bindir@%$bindir%g
3985 s%@sbindir@%$sbindir%g
3986 s%@libexecdir@%$libexecdir%g
3987 s%@datadir@%$datadir%g
3988 s%@sysconfdir@%$sysconfdir%g
3989 s%@sharedstatedir@%$sharedstatedir%g
3990 s%@localstatedir@%$localstatedir%g
3991 s%@libdir@%$libdir%g
3992 s%@includedir@%$includedir%g
3993 s%@oldincludedir@%$oldincludedir%g
3994 s%@infodir@%$infodir%g
3995 s%@mandir@%$mandir%g
3996 s%@SET_MAKE@%$SET_MAKE%g
3999 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4000 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4001 s%@INSTALL_DATA@%$INSTALL_DATA%g
4002 s%@RANLIB@%$RANLIB%g
4005 s%@LIBOBJS@%$LIBOBJS%g
4006 s%@INCLUDES@%$INCLUDES%g
4007 s%@LIBEDIT@%$LIBEDIT%g
4008 s%@LIBUKEM@%$LIBUKEM%g
4009 s%@LIBDEPENDS@%$LIBDEPENDS%g
4014 cat >> $CONFIG_STATUS <<\EOF
4016 # Split the substitutions into bite-sized pieces for seds with
4017 # small command number limits, like on Digital OSF/1 and HP-UX.
4018 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4019 ac_file
=1 # Number of current file.
4020 ac_beg
=1 # First line for current file.
4021 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4024 while $ac_more_lines; do
4025 if test $ac_beg -gt 1; then
4026 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4028 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4030 if test ! -s conftest.s
$ac_file; then
4032 rm -f conftest.s
$ac_file
4034 if test -z "$ac_sed_cmds"; then
4035 ac_sed_cmds
="sed -f conftest.s$ac_file"
4037 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4039 ac_file
=`expr $ac_file + 1`
4041 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4044 if test -z "$ac_sed_cmds"; then
4049 cat >> $CONFIG_STATUS <<EOF
4051 CONFIG_FILES=\${CONFIG_FILES-"Makefile libedit/Makefile libedit/makelist libukem/Makefile \
4054 cat >> $CONFIG_STATUS <<\EOF
4055 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4056 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4058 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4059 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4060 *) ac_file_in
="${ac_file}.in" ;;
4063 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4065 # Remove last slash and all that follows it. Not all systems have dirname.
4066 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4067 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4068 # The file is in a subdirectory.
4069 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4070 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4071 # A "../" for each directory in $ac_dir_suffix.
4072 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4074 ac_dir_suffix
= ac_dots
=
4077 case "$ac_given_srcdir" in
4079 if test -z "$ac_dots"; then top_srcdir
=.
4080 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4081 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4083 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4084 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
4087 case "$ac_given_INSTALL" in
4088 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
4089 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
4092 echo creating
"$ac_file"
4094 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4096 *Makefile
*) ac_comsub
="1i\\
4097 # $configure_input" ;;
4101 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4103 s%@configure_input@%$configure_input%g
4104 s%@srcdir@%$srcdir%g
4105 s%@top_srcdir@%$top_srcdir%g
4106 s%@INSTALL@%$INSTALL%g
4107 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
4111 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4112 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4114 # ac_d sets the value in "#define NAME VALUE" lines.
4115 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4116 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
4119 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4120 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4121 ac_uB
='\([ ]\)%\1#\2define\3'
4124 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4125 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4126 ac_eB
='$%\1#\2define\3'
4130 if test "${CONFIG_HEADERS+set}" != set; then
4132 cat >> $CONFIG_STATUS <<EOF
4133 CONFIG_HEADERS="config.h"
4135 cat >> $CONFIG_STATUS <<\EOF
4137 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
4138 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4140 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4141 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4142 *) ac_file_in
="${ac_file}.in" ;;
4145 echo creating
$ac_file
4147 rm -f conftest.frag conftest.
in conftest.out
4148 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4149 cat $ac_file_inputs > conftest.
in
4153 # Transform confdefs.h into a sed script conftest.vals that substitutes
4154 # the proper values into config.h.in to produce config.h. And first:
4155 # Protect against being on the right side of a sed subst in config.status.
4156 # Protect against being in an unquoted here document in config.status.
4158 cat > conftest.hdr
<<\EOF
4161 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4165 sed -n -f conftest.hdr confdefs.h > conftest.vals
4168 # This sed command replaces #undef with comments. This is necessary, for
4169 # example, in the case of _POSIX_SOURCE, which is predefined and required
4170 # on some systems where configure will not decide to define it.
4171 cat >> conftest.vals <<\EOF
4172 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4175 # Break up conftest.vals because some shells have a limit on
4176 # the size of here documents, and old seds have small limits too.
4181 ac_lines=`grep -c . conftest.vals
`
4182 # grep -c gives empty output for an empty file on some AIX systems.
4183 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4184 # Write a limited-size here document to conftest.frag.
4185 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4186 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4188 sed -f conftest.frag conftest.in > conftest.out
4190 mv conftest.out conftest.in
4192 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4194 mv conftest.tail conftest.vals
4198 cat >> $CONFIG_STATUS <<\EOF
4199 rm -f conftest.frag conftest.h
4200 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4201 cat conftest.in >> conftest.h
4203 if cmp -s $ac_file conftest.h 2>/dev/null; then
4204 echo "$ac_file is unchanged"
4207 # Remove last slash and all that follows it. Not all systems have dirname.
4208 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
4209 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4210 # The file is in a subdirectory.
4211 test ! -d "$ac_dir" && mkdir "$ac_dir"
4214 mv conftest.h $ac_file
4219 cat >> $CONFIG_STATUS <<EOF
4222 cat >> $CONFIG_STATUS <<\EOF
4226 chmod +x $CONFIG_STATUS
4227 rm -fr confdefs* $ac_clean_files
4228 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1