remove kvm's R macro
[freebsd-src/fkvm-freebsd.git] / contrib / lukemftpd / configure
blob30edfa6d352a8844a17de0fab574e8dcd274b89d
1 #! /bin/sh
3 # From configure.in Revision: 1.17
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.
21 # Defaults:
22 ac_help=
23 ac_default_prefix=/usr/local
24 # Any additions from configure.in:
25 ac_help="$ac_help
27 --enable-ipv6 Enable IPv6 support (if your OS supports it).
28 --disable-ipv6 Disable IPv6 support (even if your OS supports it).
29 [default: enabled]"
30 ac_help="$ac_help
32 --enable-builtinls Enable built-in /bin/ls. [default: enabled]
33 --disable-builtinls Disable built-in /bin/ls."
34 ac_help="$ac_help
35 --with-socks Compile with SOCKS firewall traversal support."
36 ac_help="$ac_help
37 --with-socks5[=PATH] Compile with SOCKS5 firewall traversal support."
38 ac_help="$ac_help
39 --with-socks4[=PATH] Compile with SOCKS4 firewall traversal support."
40 ac_help="$ac_help
41 --with-skey Compile with S/Key authentication support."
43 # Initialize some variables set by options.
44 # The variables have the same names as the options, with
45 # dashes changed to underlines.
46 build=NONE
47 cache_file=./config.cache
48 exec_prefix=NONE
49 host=NONE
50 no_create=
51 nonopt=NONE
52 no_recursion=
53 prefix=NONE
54 program_prefix=NONE
55 program_suffix=NONE
56 program_transform_name=s,x,x,
57 silent=
58 site=
59 srcdir=
60 target=NONE
61 verbose=
62 x_includes=NONE
63 x_libraries=NONE
64 bindir='${exec_prefix}/bin'
65 sbindir='${exec_prefix}/sbin'
66 libexecdir='${exec_prefix}/libexec'
67 datadir='${prefix}/share'
68 sysconfdir='${prefix}/etc'
69 sharedstatedir='${prefix}/com'
70 localstatedir='${prefix}/var'
71 libdir='${exec_prefix}/lib'
72 includedir='${prefix}/include'
73 oldincludedir='/usr/include'
74 infodir='${prefix}/info'
75 mandir='${prefix}/man'
77 # Initialize some other variables.
78 subdirs=
79 MFLAGS= MAKEFLAGS=
80 SHELL=${CONFIG_SHELL-/bin/sh}
81 # Maximum number of lines to put in a shell here document.
82 ac_max_here_lines=12
84 ac_prev=
85 for ac_option
88 # If the previous option needs an argument, assign it.
89 if test -n "$ac_prev"; then
90 eval "$ac_prev=\$ac_option"
91 ac_prev=
92 continue
95 case "$ac_option" in
96 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
97 *) ac_optarg= ;;
98 esac
100 # Accept the important Cygnus configure options, so we can diagnose typos.
102 case "$ac_option" in
104 -bindir | --bindir | --bindi | --bind | --bin | --bi)
105 ac_prev=bindir ;;
106 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
107 bindir="$ac_optarg" ;;
109 -build | --build | --buil | --bui | --bu)
110 ac_prev=build ;;
111 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
112 build="$ac_optarg" ;;
114 -cache-file | --cache-file | --cache-fil | --cache-fi \
115 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
116 ac_prev=cache_file ;;
117 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
118 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
119 cache_file="$ac_optarg" ;;
121 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
122 ac_prev=datadir ;;
123 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
124 | --da=*)
125 datadir="$ac_optarg" ;;
127 -disable-* | --disable-*)
128 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
129 # Reject names that are not valid shell variable names.
130 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
131 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
133 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
134 eval "enable_${ac_feature}=no" ;;
136 -enable-* | --enable-*)
137 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
138 # Reject names that are not valid shell variable names.
139 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
140 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
142 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
143 case "$ac_option" in
144 *=*) ;;
145 *) ac_optarg=yes ;;
146 esac
147 eval "enable_${ac_feature}='$ac_optarg'" ;;
149 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
150 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
151 | --exec | --exe | --ex)
152 ac_prev=exec_prefix ;;
153 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
154 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
155 | --exec=* | --exe=* | --ex=*)
156 exec_prefix="$ac_optarg" ;;
158 -gas | --gas | --ga | --g)
159 # Obsolete; use --with-gas.
160 with_gas=yes ;;
162 -help | --help | --hel | --he)
163 # Omit some internal or obsolete options to make the list less imposing.
164 # This message is too long to be a string in the A/UX 3.1 sh.
165 cat << EOF
166 Usage: configure [options] [host]
167 Options: [defaults in brackets after descriptions]
168 Configuration:
169 --cache-file=FILE cache test results in FILE
170 --help print this message
171 --no-create do not create output files
172 --quiet, --silent do not print \`checking...' messages
173 --version print the version of autoconf that created configure
174 Directory and file names:
175 --prefix=PREFIX install architecture-independent files in PREFIX
176 [$ac_default_prefix]
177 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
178 [same as prefix]
179 --bindir=DIR user executables in DIR [EPREFIX/bin]
180 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
181 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
182 --datadir=DIR read-only architecture-independent data in DIR
183 [PREFIX/share]
184 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
185 --sharedstatedir=DIR modifiable architecture-independent data in DIR
186 [PREFIX/com]
187 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
188 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
189 --includedir=DIR C header files in DIR [PREFIX/include]
190 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
191 --infodir=DIR info documentation in DIR [PREFIX/info]
192 --mandir=DIR man documentation in DIR [PREFIX/man]
193 --srcdir=DIR find the sources in DIR [configure dir or ..]
194 --program-prefix=PREFIX prepend PREFIX to installed program names
195 --program-suffix=SUFFIX append SUFFIX to installed program names
196 --program-transform-name=PROGRAM
197 run sed PROGRAM on installed program names
199 cat << EOF
200 Host type:
201 --build=BUILD configure for building on BUILD [BUILD=HOST]
202 --host=HOST configure for HOST [guessed]
203 --target=TARGET configure for TARGET [TARGET=HOST]
204 Features and packages:
205 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
206 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
207 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
208 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
209 --x-includes=DIR X include files are in DIR
210 --x-libraries=DIR X library files are in DIR
212 if test -n "$ac_help"; then
213 echo "--enable and --with options recognized:$ac_help"
215 exit 0 ;;
217 -host | --host | --hos | --ho)
218 ac_prev=host ;;
219 -host=* | --host=* | --hos=* | --ho=*)
220 host="$ac_optarg" ;;
222 -includedir | --includedir | --includedi | --included | --include \
223 | --includ | --inclu | --incl | --inc)
224 ac_prev=includedir ;;
225 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
226 | --includ=* | --inclu=* | --incl=* | --inc=*)
227 includedir="$ac_optarg" ;;
229 -infodir | --infodir | --infodi | --infod | --info | --inf)
230 ac_prev=infodir ;;
231 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
232 infodir="$ac_optarg" ;;
234 -libdir | --libdir | --libdi | --libd)
235 ac_prev=libdir ;;
236 -libdir=* | --libdir=* | --libdi=* | --libd=*)
237 libdir="$ac_optarg" ;;
239 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
240 | --libexe | --libex | --libe)
241 ac_prev=libexecdir ;;
242 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
243 | --libexe=* | --libex=* | --libe=*)
244 libexecdir="$ac_optarg" ;;
246 -localstatedir | --localstatedir | --localstatedi | --localstated \
247 | --localstate | --localstat | --localsta | --localst \
248 | --locals | --local | --loca | --loc | --lo)
249 ac_prev=localstatedir ;;
250 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
251 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
252 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
253 localstatedir="$ac_optarg" ;;
255 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
256 ac_prev=mandir ;;
257 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
258 mandir="$ac_optarg" ;;
260 -nfp | --nfp | --nf)
261 # Obsolete; use --without-fp.
262 with_fp=no ;;
264 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
265 | --no-cr | --no-c)
266 no_create=yes ;;
268 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
269 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
270 no_recursion=yes ;;
272 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
273 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
274 | --oldin | --oldi | --old | --ol | --o)
275 ac_prev=oldincludedir ;;
276 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
277 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
278 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
279 oldincludedir="$ac_optarg" ;;
281 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
282 ac_prev=prefix ;;
283 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
284 prefix="$ac_optarg" ;;
286 -program-prefix | --program-prefix | --program-prefi | --program-pref \
287 | --program-pre | --program-pr | --program-p)
288 ac_prev=program_prefix ;;
289 -program-prefix=* | --program-prefix=* | --program-prefi=* \
290 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
291 program_prefix="$ac_optarg" ;;
293 -program-suffix | --program-suffix | --program-suffi | --program-suff \
294 | --program-suf | --program-su | --program-s)
295 ac_prev=program_suffix ;;
296 -program-suffix=* | --program-suffix=* | --program-suffi=* \
297 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
298 program_suffix="$ac_optarg" ;;
300 -program-transform-name | --program-transform-name \
301 | --program-transform-nam | --program-transform-na \
302 | --program-transform-n | --program-transform- \
303 | --program-transform | --program-transfor \
304 | --program-transfo | --program-transf \
305 | --program-trans | --program-tran \
306 | --progr-tra | --program-tr | --program-t)
307 ac_prev=program_transform_name ;;
308 -program-transform-name=* | --program-transform-name=* \
309 | --program-transform-nam=* | --program-transform-na=* \
310 | --program-transform-n=* | --program-transform-=* \
311 | --program-transform=* | --program-transfor=* \
312 | --program-transfo=* | --program-transf=* \
313 | --program-trans=* | --program-tran=* \
314 | --progr-tra=* | --program-tr=* | --program-t=*)
315 program_transform_name="$ac_optarg" ;;
317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
318 | -silent | --silent | --silen | --sile | --sil)
319 silent=yes ;;
321 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
322 ac_prev=sbindir ;;
323 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
324 | --sbi=* | --sb=*)
325 sbindir="$ac_optarg" ;;
327 -sharedstatedir | --sharedstatedir | --sharedstatedi \
328 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
329 | --sharedst | --shareds | --shared | --share | --shar \
330 | --sha | --sh)
331 ac_prev=sharedstatedir ;;
332 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
333 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
334 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
335 | --sha=* | --sh=*)
336 sharedstatedir="$ac_optarg" ;;
338 -site | --site | --sit)
339 ac_prev=site ;;
340 -site=* | --site=* | --sit=*)
341 site="$ac_optarg" ;;
343 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
344 ac_prev=srcdir ;;
345 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
346 srcdir="$ac_optarg" ;;
348 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
349 | --syscon | --sysco | --sysc | --sys | --sy)
350 ac_prev=sysconfdir ;;
351 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
352 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
353 sysconfdir="$ac_optarg" ;;
355 -target | --target | --targe | --targ | --tar | --ta | --t)
356 ac_prev=target ;;
357 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
358 target="$ac_optarg" ;;
360 -v | -verbose | --verbose | --verbos | --verbo | --verb)
361 verbose=yes ;;
363 -version | --version | --versio | --versi | --vers)
364 echo "configure generated by autoconf version 2.13"
365 exit 0 ;;
367 -with-* | --with-*)
368 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
369 # Reject names that are not valid shell variable names.
370 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
371 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
373 ac_package=`echo $ac_package| sed 's/-/_/g'`
374 case "$ac_option" in
375 *=*) ;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "with_${ac_package}='$ac_optarg'" ;;
380 -without-* | --without-*)
381 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package=`echo $ac_package| sed 's/-/_/g'`
387 eval "with_${ac_package}=no" ;;
389 --x)
390 # Obsolete; use --with-x.
391 with_x=yes ;;
393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
394 | --x-incl | --x-inc | --x-in | --x-i)
395 ac_prev=x_includes ;;
396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
398 x_includes="$ac_optarg" ;;
400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
402 ac_prev=x_libraries ;;
403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
405 x_libraries="$ac_optarg" ;;
407 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
411 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
412 echo "configure: warning: $ac_option: invalid host type" 1>&2
414 if test "x$nonopt" != xNONE; then
415 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
417 nonopt="$ac_option"
420 esac
421 done
423 if test -n "$ac_prev"; then
424 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
427 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
429 # File descriptor usage:
430 # 0 standard input
431 # 1 file creation
432 # 2 errors and warnings
433 # 3 some systems may open it to /dev/tty
434 # 4 used on the Kubota Titan
435 # 6 checking for... messages and results
436 # 5 compiler messages saved in config.log
437 if test "$silent" = yes; then
438 exec 6>/dev/null
439 else
440 exec 6>&1
442 exec 5>./config.log
444 echo "\
445 This file contains any messages produced by compilers while
446 running configure, to aid debugging if configure makes a mistake.
447 " 1>&5
449 # Strip out --no-create and --no-recursion so they do not pile up.
450 # Also quote any args containing shell metacharacters.
451 ac_configure_args=
452 for ac_arg
454 case "$ac_arg" in
455 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
456 | --no-cr | --no-c) ;;
457 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
458 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
459 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
460 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
461 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
462 esac
463 done
465 # NLS nuisances.
466 # Only set these to C if already set. These must not be set unconditionally
467 # because not all systems understand e.g. LANG=C (notably SCO).
468 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
469 # Non-C LC_CTYPE values break the ctype check.
470 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
471 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
472 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
473 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
475 # confdefs.h avoids OS command line length limits that DEFS can exceed.
476 rm -rf conftest* confdefs.h
477 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
478 echo > confdefs.h
480 # A filename unique to this package, relative to the directory that
481 # configure is in, which we can look for to find out if srcdir is correct.
482 ac_unique_file=lukemftpd.h
484 # Find the source files, if location was not specified.
485 if test -z "$srcdir"; then
486 ac_srcdir_defaulted=yes
487 # Try the directory containing this script, then its parent.
488 ac_prog=$0
489 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
490 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
491 srcdir=$ac_confdir
492 if test ! -r $srcdir/$ac_unique_file; then
493 srcdir=..
495 else
496 ac_srcdir_defaulted=no
498 if test ! -r $srcdir/$ac_unique_file; then
499 if test "$ac_srcdir_defaulted" = yes; then
500 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
501 else
502 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
505 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
507 # Prefer explicitly selected file to automatically selected ones.
508 if test -z "$CONFIG_SITE"; then
509 if test "x$prefix" != xNONE; then
510 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
511 else
512 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
515 for ac_site_file in $CONFIG_SITE; do
516 if test -r "$ac_site_file"; then
517 echo "loading site script $ac_site_file"
518 . "$ac_site_file"
520 done
522 if test -r "$cache_file"; then
523 echo "loading cache $cache_file"
524 . $cache_file
525 else
526 echo "creating cache $cache_file"
527 > $cache_file
530 ac_ext=c
531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
532 ac_cpp='$CPP $CPPFLAGS'
533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
535 cross_compiling=$ac_cv_prog_cc_cross
537 ac_exeext=
538 ac_objext=o
539 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
540 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
541 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
542 ac_n= ac_c='
543 ' ac_t=' '
544 else
545 ac_n=-n ac_c= ac_t=
547 else
548 ac_n= ac_c='\c' ac_t=
554 # Check whether --enable-ipv6 or --disable-ipv6 was given.
555 if test "${enable_ipv6+set}" = set; then
556 enableval="$enable_ipv6"
557 opt_ipv6=$enableval
558 else
559 opt_ipv6=yes
562 # Check whether --enable-builtinls or --disable-builtinls was given.
563 if test "${enable_builtinls+set}" = set; then
564 enableval="$enable_builtinls"
565 opt_builtinls=$enableval
566 else
567 opt_builtinls=yes
572 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
573 echo "configure:574: checking whether ${MAKE-make} sets \${MAKE}" >&5
574 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
575 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
576 echo $ac_n "(cached) $ac_c" 1>&6
577 else
578 cat > conftestmake <<\EOF
579 all:
580 @echo 'ac_maketemp="${MAKE}"'
582 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
583 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
584 if test -n "$ac_maketemp"; then
585 eval ac_cv_prog_make_${ac_make}_set=yes
586 else
587 eval ac_cv_prog_make_${ac_make}_set=no
589 rm -f conftestmake
591 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
592 echo "$ac_t""yes" 1>&6
593 SET_MAKE=
594 else
595 echo "$ac_t""no" 1>&6
596 SET_MAKE="MAKE=${MAKE-make}"
599 # Extract the first word of "gcc", so it can be a program name with args.
600 set dummy gcc; ac_word=$2
601 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
602 echo "configure:603: checking for $ac_word" >&5
603 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
604 echo $ac_n "(cached) $ac_c" 1>&6
605 else
606 if test -n "$CC"; then
607 ac_cv_prog_CC="$CC" # Let the user override the test.
608 else
609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
610 ac_dummy="$PATH"
611 for ac_dir in $ac_dummy; do
612 test -z "$ac_dir" && ac_dir=.
613 if test -f $ac_dir/$ac_word; then
614 ac_cv_prog_CC="gcc"
615 break
617 done
618 IFS="$ac_save_ifs"
621 CC="$ac_cv_prog_CC"
622 if test -n "$CC"; then
623 echo "$ac_t""$CC" 1>&6
624 else
625 echo "$ac_t""no" 1>&6
628 if test -z "$CC"; then
629 # Extract the first word of "cc", so it can be a program name with args.
630 set dummy cc; ac_word=$2
631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
632 echo "configure:633: checking for $ac_word" >&5
633 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
634 echo $ac_n "(cached) $ac_c" 1>&6
635 else
636 if test -n "$CC"; then
637 ac_cv_prog_CC="$CC" # Let the user override the test.
638 else
639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
640 ac_prog_rejected=no
641 ac_dummy="$PATH"
642 for ac_dir in $ac_dummy; do
643 test -z "$ac_dir" && ac_dir=.
644 if test -f $ac_dir/$ac_word; then
645 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
646 ac_prog_rejected=yes
647 continue
649 ac_cv_prog_CC="cc"
650 break
652 done
653 IFS="$ac_save_ifs"
654 if test $ac_prog_rejected = yes; then
655 # We found a bogon in the path, so make sure we never use it.
656 set dummy $ac_cv_prog_CC
657 shift
658 if test $# -gt 0; then
659 # We chose a different compiler from the bogus one.
660 # However, it has the same basename, so the bogon will be chosen
661 # first if we set CC to just the basename; use the full file name.
662 shift
663 set dummy "$ac_dir/$ac_word" "$@"
664 shift
665 ac_cv_prog_CC="$@"
670 CC="$ac_cv_prog_CC"
671 if test -n "$CC"; then
672 echo "$ac_t""$CC" 1>&6
673 else
674 echo "$ac_t""no" 1>&6
677 if test -z "$CC"; then
678 case "`uname -s`" in
679 *win32* | *WIN32*)
680 # Extract the first word of "cl", so it can be a program name with args.
681 set dummy cl; ac_word=$2
682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
683 echo "configure:684: checking for $ac_word" >&5
684 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
685 echo $ac_n "(cached) $ac_c" 1>&6
686 else
687 if test -n "$CC"; then
688 ac_cv_prog_CC="$CC" # Let the user override the test.
689 else
690 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
691 ac_dummy="$PATH"
692 for ac_dir in $ac_dummy; do
693 test -z "$ac_dir" && ac_dir=.
694 if test -f $ac_dir/$ac_word; then
695 ac_cv_prog_CC="cl"
696 break
698 done
699 IFS="$ac_save_ifs"
702 CC="$ac_cv_prog_CC"
703 if test -n "$CC"; then
704 echo "$ac_t""$CC" 1>&6
705 else
706 echo "$ac_t""no" 1>&6
709 esac
711 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
714 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
715 echo "configure:716: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
717 ac_ext=c
718 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
719 ac_cpp='$CPP $CPPFLAGS'
720 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
721 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
722 cross_compiling=$ac_cv_prog_cc_cross
724 cat > conftest.$ac_ext << EOF
726 #line 727 "configure"
727 #include "confdefs.h"
729 main(){return(0);}
731 if { (eval echo configure:732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
732 ac_cv_prog_cc_works=yes
733 # If we can't run a trivial program, we are probably using a cross compiler.
734 if (./conftest; exit) 2>/dev/null; then
735 ac_cv_prog_cc_cross=no
736 else
737 ac_cv_prog_cc_cross=yes
739 else
740 echo "configure: failed program was:" >&5
741 cat conftest.$ac_ext >&5
742 ac_cv_prog_cc_works=no
744 rm -fr conftest*
745 ac_ext=c
746 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
747 ac_cpp='$CPP $CPPFLAGS'
748 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
749 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
750 cross_compiling=$ac_cv_prog_cc_cross
752 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
753 if test $ac_cv_prog_cc_works = no; then
754 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
756 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
757 echo "configure:758: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
758 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
759 cross_compiling=$ac_cv_prog_cc_cross
761 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
762 echo "configure:763: checking whether we are using GNU C" >&5
763 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
765 else
766 cat > conftest.c <<EOF
767 #ifdef __GNUC__
768 yes;
769 #endif
771 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:772: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
772 ac_cv_prog_gcc=yes
773 else
774 ac_cv_prog_gcc=no
778 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
780 if test $ac_cv_prog_gcc = yes; then
781 GCC=yes
782 else
783 GCC=
786 ac_test_CFLAGS="${CFLAGS+set}"
787 ac_save_CFLAGS="$CFLAGS"
788 CFLAGS=
789 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
790 echo "configure:791: checking whether ${CC-cc} accepts -g" >&5
791 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
792 echo $ac_n "(cached) $ac_c" 1>&6
793 else
794 echo 'void f(){}' > conftest.c
795 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
796 ac_cv_prog_cc_g=yes
797 else
798 ac_cv_prog_cc_g=no
800 rm -f conftest*
804 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
805 if test "$ac_test_CFLAGS" = set; then
806 CFLAGS="$ac_save_CFLAGS"
807 elif test $ac_cv_prog_cc_g = yes; then
808 if test "$GCC" = yes; then
809 CFLAGS="-g -O2"
810 else
811 CFLAGS="-g"
813 else
814 if test "$GCC" = yes; then
815 CFLAGS="-O2"
816 else
817 CFLAGS=
821 for ac_prog in mawk gawk nawk awk
823 # Extract the first word of "$ac_prog", so it can be a program name with args.
824 set dummy $ac_prog; ac_word=$2
825 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
826 echo "configure:827: checking for $ac_word" >&5
827 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
828 echo $ac_n "(cached) $ac_c" 1>&6
829 else
830 if test -n "$AWK"; then
831 ac_cv_prog_AWK="$AWK" # Let the user override the test.
832 else
833 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
834 ac_dummy="$PATH"
835 for ac_dir in $ac_dummy; do
836 test -z "$ac_dir" && ac_dir=.
837 if test -f $ac_dir/$ac_word; then
838 ac_cv_prog_AWK="$ac_prog"
839 break
841 done
842 IFS="$ac_save_ifs"
845 AWK="$ac_cv_prog_AWK"
846 if test -n "$AWK"; then
847 echo "$ac_t""$AWK" 1>&6
848 else
849 echo "$ac_t""no" 1>&6
852 test -n "$AWK" && break
853 done
855 ac_aux_dir=
856 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
857 if test -f $ac_dir/install-sh; then
858 ac_aux_dir=$ac_dir
859 ac_install_sh="$ac_aux_dir/install-sh -c"
860 break
861 elif test -f $ac_dir/install.sh; then
862 ac_aux_dir=$ac_dir
863 ac_install_sh="$ac_aux_dir/install.sh -c"
864 break
866 done
867 if test -z "$ac_aux_dir"; then
868 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
870 ac_config_guess=$ac_aux_dir/config.guess
871 ac_config_sub=$ac_aux_dir/config.sub
872 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
874 # Find a good install program. We prefer a C program (faster),
875 # so one script is as good as another. But avoid the broken or
876 # incompatible versions:
877 # SysV /etc/install, /usr/sbin/install
878 # SunOS /usr/etc/install
879 # IRIX /sbin/install
880 # AIX /bin/install
881 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
882 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
883 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
884 # ./install, which can be erroneously created by make from ./install.sh.
885 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
886 echo "configure:887: checking for a BSD compatible install" >&5
887 if test -z "$INSTALL"; then
888 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
889 echo $ac_n "(cached) $ac_c" 1>&6
890 else
891 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
892 for ac_dir in $PATH; do
893 # Account for people who put trailing slashes in PATH elements.
894 case "$ac_dir/" in
895 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
897 # OSF1 and SCO ODT 3.0 have their own names for install.
898 # Don't use installbsd from OSF since it installs stuff as root
899 # by default.
900 for ac_prog in ginstall scoinst install; do
901 if test -f $ac_dir/$ac_prog; then
902 if test $ac_prog = install &&
903 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
904 # AIX install. It has an incompatible calling convention.
906 else
907 ac_cv_path_install="$ac_dir/$ac_prog -c"
908 break 2
911 done
913 esac
914 done
915 IFS="$ac_save_IFS"
918 if test "${ac_cv_path_install+set}" = set; then
919 INSTALL="$ac_cv_path_install"
920 else
921 # As a last resort, use the slow shell script. We don't cache a
922 # path for INSTALL within a source directory, because that will
923 # break other packages using the cache if that directory is
924 # removed, or if the path is relative.
925 INSTALL="$ac_install_sh"
928 echo "$ac_t""$INSTALL" 1>&6
930 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
931 # It thinks the first close brace ends the variable substitution.
932 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
934 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
936 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
938 # Extract the first word of "ranlib", so it can be a program name with args.
939 set dummy ranlib; ac_word=$2
940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
941 echo "configure:942: checking for $ac_word" >&5
942 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
943 echo $ac_n "(cached) $ac_c" 1>&6
944 else
945 if test -n "$RANLIB"; then
946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
947 else
948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
949 ac_dummy="$PATH"
950 for ac_dir in $ac_dummy; do
951 test -z "$ac_dir" && ac_dir=.
952 if test -f $ac_dir/$ac_word; then
953 ac_cv_prog_RANLIB="ranlib"
954 break
956 done
957 IFS="$ac_save_ifs"
958 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
961 RANLIB="$ac_cv_prog_RANLIB"
962 if test -n "$RANLIB"; then
963 echo "$ac_t""$RANLIB" 1>&6
964 else
965 echo "$ac_t""no" 1>&6
968 for ac_prog in 'bison -y' byacc
970 # Extract the first word of "$ac_prog", so it can be a program name with args.
971 set dummy $ac_prog; ac_word=$2
972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
973 echo "configure:974: checking for $ac_word" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
976 else
977 if test -n "$YACC"; then
978 ac_cv_prog_YACC="$YACC" # Let the user override the test.
979 else
980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
981 ac_dummy="$PATH"
982 for ac_dir in $ac_dummy; do
983 test -z "$ac_dir" && ac_dir=.
984 if test -f $ac_dir/$ac_word; then
985 ac_cv_prog_YACC="$ac_prog"
986 break
988 done
989 IFS="$ac_save_ifs"
992 YACC="$ac_cv_prog_YACC"
993 if test -n "$YACC"; then
994 echo "$ac_t""$YACC" 1>&6
995 else
996 echo "$ac_t""no" 1>&6
999 test -n "$YACC" && break
1000 done
1001 test -n "$YACC" || YACC="yacc"
1003 for ac_prog in ar
1005 # Extract the first word of "$ac_prog", so it can be a program name with args.
1006 set dummy $ac_prog; ac_word=$2
1007 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1008 echo "configure:1009: checking for $ac_word" >&5
1009 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1011 else
1012 if test -n "$AR"; then
1013 ac_cv_prog_AR="$AR" # Let the user override the test.
1014 else
1015 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1016 ac_dummy="$PATH"
1017 for ac_dir in $ac_dummy; do
1018 test -z "$ac_dir" && ac_dir=.
1019 if test -f $ac_dir/$ac_word; then
1020 ac_cv_prog_AR="$ac_prog"
1021 break
1023 done
1024 IFS="$ac_save_ifs"
1027 AR="$ac_cv_prog_AR"
1028 if test -n "$AR"; then
1029 echo "$ac_t""$AR" 1>&6
1030 else
1031 echo "$ac_t""no" 1>&6
1034 test -n "$AR" && break
1035 done
1039 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
1040 echo "configure:1041: checking for crypt in -lcrypt" >&5
1041 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
1042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1043 echo $ac_n "(cached) $ac_c" 1>&6
1044 else
1045 ac_save_LIBS="$LIBS"
1046 LIBS="-lcrypt $LIBS"
1047 cat > conftest.$ac_ext <<EOF
1048 #line 1049 "configure"
1049 #include "confdefs.h"
1050 /* Override any gcc2 internal prototype to avoid an error. */
1051 /* We use char because int might match the return type of a gcc2
1052 builtin and then its argument prototype would still apply. */
1053 char crypt();
1055 int main() {
1056 crypt()
1057 ; return 0; }
1059 if { (eval echo configure:1060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1060 rm -rf conftest*
1061 eval "ac_cv_lib_$ac_lib_var=yes"
1062 else
1063 echo "configure: failed program was:" >&5
1064 cat conftest.$ac_ext >&5
1065 rm -rf conftest*
1066 eval "ac_cv_lib_$ac_lib_var=no"
1068 rm -f conftest*
1069 LIBS="$ac_save_LIBS"
1072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1073 echo "$ac_t""yes" 1>&6
1074 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1075 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1076 cat >> confdefs.h <<EOF
1077 #define $ac_tr_lib 1
1080 LIBS="-lcrypt $LIBS"
1082 else
1083 echo "$ac_t""no" 1>&6
1086 echo $ac_n "checking for fparseln in -lutil""... $ac_c" 1>&6
1087 echo "configure:1088: checking for fparseln in -lutil" >&5
1088 ac_lib_var=`echo util'_'fparseln | sed 'y%./+-%__p_%'`
1089 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1091 else
1092 ac_save_LIBS="$LIBS"
1093 LIBS="-lutil $LIBS"
1094 cat > conftest.$ac_ext <<EOF
1095 #line 1096 "configure"
1096 #include "confdefs.h"
1097 /* Override any gcc2 internal prototype to avoid an error. */
1098 /* We use char because int might match the return type of a gcc2
1099 builtin and then its argument prototype would still apply. */
1100 char fparseln();
1102 int main() {
1103 fparseln()
1104 ; return 0; }
1106 if { (eval echo configure:1107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1107 rm -rf conftest*
1108 eval "ac_cv_lib_$ac_lib_var=yes"
1109 else
1110 echo "configure: failed program was:" >&5
1111 cat conftest.$ac_ext >&5
1112 rm -rf conftest*
1113 eval "ac_cv_lib_$ac_lib_var=no"
1115 rm -f conftest*
1116 LIBS="$ac_save_LIBS"
1119 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1120 echo "$ac_t""yes" 1>&6
1121 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1122 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1123 cat >> confdefs.h <<EOF
1124 #define $ac_tr_lib 1
1127 LIBS="-lutil $LIBS"
1129 else
1130 echo "$ac_t""no" 1>&6
1133 if test $ac_cv_lib_util_fparseln != yes; then
1134 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
1135 echo "configure:1136: checking for setproctitle in -lutil" >&5
1136 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-%__p_%'`
1137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1138 echo $ac_n "(cached) $ac_c" 1>&6
1139 else
1140 ac_save_LIBS="$LIBS"
1141 LIBS="-lutil $LIBS"
1142 cat > conftest.$ac_ext <<EOF
1143 #line 1144 "configure"
1144 #include "confdefs.h"
1145 /* Override any gcc2 internal prototype to avoid an error. */
1146 /* We use char because int might match the return type of a gcc2
1147 builtin and then its argument prototype would still apply. */
1148 char setproctitle();
1150 int main() {
1151 setproctitle()
1152 ; return 0; }
1154 if { (eval echo configure:1155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1155 rm -rf conftest*
1156 eval "ac_cv_lib_$ac_lib_var=yes"
1157 else
1158 echo "configure: failed program was:" >&5
1159 cat conftest.$ac_ext >&5
1160 rm -rf conftest*
1161 eval "ac_cv_lib_$ac_lib_var=no"
1163 rm -f conftest*
1164 LIBS="$ac_save_LIBS"
1167 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1168 echo "$ac_t""yes" 1>&6
1169 ac_tr_lib=HAVE_LIB`echo util | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1170 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1171 cat >> confdefs.h <<EOF
1172 #define $ac_tr_lib 1
1175 LIBS="-lutil $LIBS"
1177 else
1178 echo "$ac_t""no" 1>&6
1183 # Most operating systems have gethostbyname() in the default searched
1184 # libraries (i.e. libc):
1185 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1186 echo "configure:1187: checking for gethostbyname" >&5
1187 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1189 else
1190 cat > conftest.$ac_ext <<EOF
1191 #line 1192 "configure"
1192 #include "confdefs.h"
1193 /* System header to define __stub macros and hopefully few prototypes,
1194 which can conflict with char gethostbyname(); below. */
1195 #include <assert.h>
1196 /* Override any gcc2 internal prototype to avoid an error. */
1197 /* We use char because int might match the return type of a gcc2
1198 builtin and then its argument prototype would still apply. */
1199 char gethostbyname();
1201 int main() {
1203 /* The GNU C library defines this for functions which it implements
1204 to always fail with ENOSYS. Some functions are actually named
1205 something starting with __ and the normal name is an alias. */
1206 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1207 choke me
1208 #else
1209 gethostbyname();
1210 #endif
1212 ; return 0; }
1214 if { (eval echo configure:1215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1215 rm -rf conftest*
1216 eval "ac_cv_func_gethostbyname=yes"
1217 else
1218 echo "configure: failed program was:" >&5
1219 cat conftest.$ac_ext >&5
1220 rm -rf conftest*
1221 eval "ac_cv_func_gethostbyname=no"
1223 rm -f conftest*
1226 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1227 echo "$ac_t""yes" 1>&6
1229 else
1230 echo "$ac_t""no" 1>&6
1231 # Some OSes (eg. Solaris) place it in libnsl:
1232 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1233 echo "configure:1234: checking for gethostbyname in -lnsl" >&5
1234 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1236 echo $ac_n "(cached) $ac_c" 1>&6
1237 else
1238 ac_save_LIBS="$LIBS"
1239 LIBS="-lnsl $LIBS"
1240 cat > conftest.$ac_ext <<EOF
1241 #line 1242 "configure"
1242 #include "confdefs.h"
1243 /* Override any gcc2 internal prototype to avoid an error. */
1244 /* We use char because int might match the return type of a gcc2
1245 builtin and then its argument prototype would still apply. */
1246 char gethostbyname();
1248 int main() {
1249 gethostbyname()
1250 ; return 0; }
1252 if { (eval echo configure:1253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1253 rm -rf conftest*
1254 eval "ac_cv_lib_$ac_lib_var=yes"
1255 else
1256 echo "configure: failed program was:" >&5
1257 cat conftest.$ac_ext >&5
1258 rm -rf conftest*
1259 eval "ac_cv_lib_$ac_lib_var=no"
1261 rm -f conftest*
1262 LIBS="$ac_save_LIBS"
1265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1266 echo "$ac_t""yes" 1>&6
1267 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1268 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1269 cat >> confdefs.h <<EOF
1270 #define $ac_tr_lib 1
1273 LIBS="-lnsl $LIBS"
1275 else
1276 echo "$ac_t""no" 1>&6
1277 # Some strange OSes (SINIX) have it in libsocket:
1278 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1279 echo "configure:1280: checking for gethostbyname in -lsocket" >&5
1280 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1283 else
1284 ac_save_LIBS="$LIBS"
1285 LIBS="-lsocket $LIBS"
1286 cat > conftest.$ac_ext <<EOF
1287 #line 1288 "configure"
1288 #include "confdefs.h"
1289 /* Override any gcc2 internal prototype to avoid an error. */
1290 /* We use char because int might match the return type of a gcc2
1291 builtin and then its argument prototype would still apply. */
1292 char gethostbyname();
1294 int main() {
1295 gethostbyname()
1296 ; return 0; }
1298 if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1299 rm -rf conftest*
1300 eval "ac_cv_lib_$ac_lib_var=yes"
1301 else
1302 echo "configure: failed program was:" >&5
1303 cat conftest.$ac_ext >&5
1304 rm -rf conftest*
1305 eval "ac_cv_lib_$ac_lib_var=no"
1307 rm -f conftest*
1308 LIBS="$ac_save_LIBS"
1311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1312 echo "$ac_t""yes" 1>&6
1313 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1315 cat >> confdefs.h <<EOF
1316 #define $ac_tr_lib 1
1319 LIBS="-lsocket $LIBS"
1321 else
1322 echo "$ac_t""no" 1>&6
1323 # Unfortunately libsocket sometimes depends on libnsl.
1324 # AC_CHECK_LIB's API is essentially broken so the following
1325 # ugliness is necessary:
1326 echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1327 echo "configure:1328: checking for gethostbyname in -lsocket" >&5
1328 ac_lib_var=`echo socket'_'gethostbyname | sed 'y%./+-%__p_%'`
1329 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1331 else
1332 ac_save_LIBS="$LIBS"
1333 LIBS="-lsocket -lnsl $LIBS"
1334 cat > conftest.$ac_ext <<EOF
1335 #line 1336 "configure"
1336 #include "confdefs.h"
1337 /* Override any gcc2 internal prototype to avoid an error. */
1338 /* We use char because int might match the return type of a gcc2
1339 builtin and then its argument prototype would still apply. */
1340 char gethostbyname();
1342 int main() {
1343 gethostbyname()
1344 ; return 0; }
1346 if { (eval echo configure:1347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1347 rm -rf conftest*
1348 eval "ac_cv_lib_$ac_lib_var=yes"
1349 else
1350 echo "configure: failed program was:" >&5
1351 cat conftest.$ac_ext >&5
1352 rm -rf conftest*
1353 eval "ac_cv_lib_$ac_lib_var=no"
1355 rm -f conftest*
1356 LIBS="$ac_save_LIBS"
1359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1360 echo "$ac_t""yes" 1>&6
1361 LIBS="-lsocket -lnsl $LIBS"
1362 else
1363 echo "$ac_t""no" 1>&6
1364 echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
1365 echo "configure:1366: checking for gethostbyname in -lresolv" >&5
1366 ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
1367 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1368 echo $ac_n "(cached) $ac_c" 1>&6
1369 else
1370 ac_save_LIBS="$LIBS"
1371 LIBS="-lresolv $LIBS"
1372 cat > conftest.$ac_ext <<EOF
1373 #line 1374 "configure"
1374 #include "confdefs.h"
1375 /* Override any gcc2 internal prototype to avoid an error. */
1376 /* We use char because int might match the return type of a gcc2
1377 builtin and then its argument prototype would still apply. */
1378 char gethostbyname();
1380 int main() {
1381 gethostbyname()
1382 ; return 0; }
1384 if { (eval echo configure:1385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1385 rm -rf conftest*
1386 eval "ac_cv_lib_$ac_lib_var=yes"
1387 else
1388 echo "configure: failed program was:" >&5
1389 cat conftest.$ac_ext >&5
1390 rm -rf conftest*
1391 eval "ac_cv_lib_$ac_lib_var=no"
1393 rm -f conftest*
1394 LIBS="$ac_save_LIBS"
1397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1398 echo "$ac_t""yes" 1>&6
1399 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1401 cat >> confdefs.h <<EOF
1402 #define $ac_tr_lib 1
1405 LIBS="-lresolv $LIBS"
1407 else
1408 echo "$ac_t""no" 1>&6
1422 echo $ac_n "checking for socket""... $ac_c" 1>&6
1423 echo "configure:1424: checking for socket" >&5
1424 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1425 echo $ac_n "(cached) $ac_c" 1>&6
1426 else
1427 cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430 /* System header to define __stub macros and hopefully few prototypes,
1431 which can conflict with char socket(); below. */
1432 #include <assert.h>
1433 /* Override any gcc2 internal prototype to avoid an error. */
1434 /* We use char because int might match the return type of a gcc2
1435 builtin and then its argument prototype would still apply. */
1436 char socket();
1438 int main() {
1440 /* The GNU C library defines this for functions which it implements
1441 to always fail with ENOSYS. Some functions are actually named
1442 something starting with __ and the normal name is an alias. */
1443 #if defined (__stub_socket) || defined (__stub___socket)
1444 choke me
1445 #else
1446 socket();
1447 #endif
1449 ; return 0; }
1451 if { (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1452 rm -rf conftest*
1453 eval "ac_cv_func_socket=yes"
1454 else
1455 echo "configure: failed program was:" >&5
1456 cat conftest.$ac_ext >&5
1457 rm -rf conftest*
1458 eval "ac_cv_func_socket=no"
1460 rm -f conftest*
1463 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1464 echo "$ac_t""yes" 1>&6
1466 else
1467 echo "$ac_t""no" 1>&6
1468 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1469 echo "configure:1470: checking for socket in -lsocket" >&5
1470 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1471 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1472 echo $ac_n "(cached) $ac_c" 1>&6
1473 else
1474 ac_save_LIBS="$LIBS"
1475 LIBS="-lsocket $LIBS"
1476 cat > conftest.$ac_ext <<EOF
1477 #line 1478 "configure"
1478 #include "confdefs.h"
1479 /* Override any gcc2 internal prototype to avoid an error. */
1480 /* We use char because int might match the return type of a gcc2
1481 builtin and then its argument prototype would still apply. */
1482 char socket();
1484 int main() {
1485 socket()
1486 ; return 0; }
1488 if { (eval echo configure:1489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1489 rm -rf conftest*
1490 eval "ac_cv_lib_$ac_lib_var=yes"
1491 else
1492 echo "configure: failed program was:" >&5
1493 cat conftest.$ac_ext >&5
1494 rm -rf conftest*
1495 eval "ac_cv_lib_$ac_lib_var=no"
1497 rm -f conftest*
1498 LIBS="$ac_save_LIBS"
1501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1502 echo "$ac_t""yes" 1>&6
1503 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1504 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1505 cat >> confdefs.h <<EOF
1506 #define $ac_tr_lib 1
1509 LIBS="-lsocket $LIBS"
1511 else
1512 echo "$ac_t""no" 1>&6
1513 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1514 echo "configure:1515: checking for socket in -lsocket" >&5
1515 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1516 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1518 else
1519 ac_save_LIBS="$LIBS"
1520 LIBS="-lsocket -lnsl $LIBS"
1521 cat > conftest.$ac_ext <<EOF
1522 #line 1523 "configure"
1523 #include "confdefs.h"
1524 /* Override any gcc2 internal prototype to avoid an error. */
1525 /* We use char because int might match the return type of a gcc2
1526 builtin and then its argument prototype would still apply. */
1527 char socket();
1529 int main() {
1530 socket()
1531 ; return 0; }
1533 if { (eval echo configure:1534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1534 rm -rf conftest*
1535 eval "ac_cv_lib_$ac_lib_var=yes"
1536 else
1537 echo "configure: failed program was:" >&5
1538 cat conftest.$ac_ext >&5
1539 rm -rf conftest*
1540 eval "ac_cv_lib_$ac_lib_var=no"
1542 rm -f conftest*
1543 LIBS="$ac_save_LIBS"
1546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1547 echo "$ac_t""yes" 1>&6
1548 LIBS="-lsocket -lnsl $LIBS"
1549 else
1550 echo "$ac_t""no" 1>&6
1559 echo $ac_n "checking whether to support SOCKS""... $ac_c" 1>&6
1560 echo "configure:1561: checking whether to support SOCKS" >&5
1561 # Check whether --with-socks or --without-socks was given.
1562 if test "${with_socks+set}" = set; then
1563 withval="$with_socks"
1565 case "$withval" in
1567 echo "$ac_t""no" 1>&6
1569 yes)
1570 echo "$ac_t""yes" 1>&6
1571 echo $ac_n "checking for SOCKSconnect in -lsocks5""... $ac_c" 1>&6
1572 echo "configure:1573: checking for SOCKSconnect in -lsocks5" >&5
1573 ac_lib_var=`echo socks5'_'SOCKSconnect | sed 'y%./+-%__p_%'`
1574 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1575 echo $ac_n "(cached) $ac_c" 1>&6
1576 else
1577 ac_save_LIBS="$LIBS"
1578 LIBS="-lsocks5 $LIBS"
1579 cat > conftest.$ac_ext <<EOF
1580 #line 1581 "configure"
1581 #include "confdefs.h"
1582 /* Override any gcc2 internal prototype to avoid an error. */
1583 /* We use char because int might match the return type of a gcc2
1584 builtin and then its argument prototype would still apply. */
1585 char SOCKSconnect();
1587 int main() {
1588 SOCKSconnect()
1589 ; return 0; }
1591 if { (eval echo configure:1592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1592 rm -rf conftest*
1593 eval "ac_cv_lib_$ac_lib_var=yes"
1594 else
1595 echo "configure: failed program was:" >&5
1596 cat conftest.$ac_ext >&5
1597 rm -rf conftest*
1598 eval "ac_cv_lib_$ac_lib_var=no"
1600 rm -f conftest*
1601 LIBS="$ac_save_LIBS"
1604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1605 echo "$ac_t""yes" 1>&6
1607 socks=5
1608 LIBS="-lsocks5 $LIBS"
1609 else
1610 echo "$ac_t""no" 1>&6
1612 echo $ac_n "checking for Rconnect in -lsocks""... $ac_c" 1>&6
1613 echo "configure:1614: checking for Rconnect in -lsocks" >&5
1614 ac_lib_var=`echo socks'_'Rconnect | sed 'y%./+-%__p_%'`
1615 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1617 else
1618 ac_save_LIBS="$LIBS"
1619 LIBS="-lsocks $LIBS"
1620 cat > conftest.$ac_ext <<EOF
1621 #line 1622 "configure"
1622 #include "confdefs.h"
1623 /* Override any gcc2 internal prototype to avoid an error. */
1624 /* We use char because int might match the return type of a gcc2
1625 builtin and then its argument prototype would still apply. */
1626 char Rconnect();
1628 int main() {
1629 Rconnect()
1630 ; return 0; }
1632 if { (eval echo configure:1633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1633 rm -rf conftest*
1634 eval "ac_cv_lib_$ac_lib_var=yes"
1635 else
1636 echo "configure: failed program was:" >&5
1637 cat conftest.$ac_ext >&5
1638 rm -rf conftest*
1639 eval "ac_cv_lib_$ac_lib_var=no"
1641 rm -f conftest*
1642 LIBS="$ac_save_LIBS"
1645 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1646 echo "$ac_t""yes" 1>&6
1648 socks=4
1649 LIBS="-lsocks $LIBS"
1650 else
1651 echo "$ac_t""no" 1>&6
1653 { echo "configure: error: Could not find socks library. You must first install socks." 1>&2; exit 1; }
1659 esac
1661 else
1662 echo "$ac_t""no" 1>&6
1667 if test "x$socks" = "x"; then
1668 echo $ac_n "checking whether to support SOCKS5""... $ac_c" 1>&6
1669 echo "configure:1670: checking whether to support SOCKS5" >&5
1670 # Check whether --with-socks5 or --without-socks5 was given.
1671 if test "${with_socks5+set}" = set; then
1672 withval="$with_socks5"
1674 case "$withval" in
1676 echo "$ac_t""no" 1>&6
1679 echo "$ac_t""yes" 1>&6
1680 socks=5
1681 if test "x$withval" = "xyes"; then
1682 withval="-lsocks5"
1683 else
1684 if test -d "$withval"; then
1685 if test -d "$withval/include"; then
1686 CFLAGS="$CFLAGS -I$withval/include"
1687 else
1688 CFLAGS="$CFLAGS -I$withval"
1690 if test -d "$withval/lib"; then
1691 withval="-L$withval/lib -lsocks5"
1692 else
1693 withval="-L$withval -lsocks5"
1697 LIBS="$withval $LIBS"
1698 # If Socks was compiled with Kerberos support, we will need
1699 # to link against kerberos libraries. Temporarily append
1700 # to LIBS. This is harmless if there is no kerberos support.
1701 TMPLIBS="$LIBS"
1702 LIBS="$LIBS $KERBEROS_LIBS"
1703 cat > conftest.$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1707 int main() {
1708 SOCKSconnect();
1709 ; return 0; }
1711 if { (eval echo configure:1712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1713 else
1714 echo "configure: failed program was:" >&5
1715 cat conftest.$ac_ext >&5
1716 rm -rf conftest*
1717 { echo "configure: error: Could not find the $withval library. You must first install socks5." 1>&2; exit 1; }
1719 rm -f conftest*
1720 LIBS="$TMPLIBS"
1722 esac
1724 else
1725 echo "$ac_t""no" 1>&6
1731 if test "x$socks" = "x"; then
1732 echo $ac_n "checking whether to support SOCKS4""... $ac_c" 1>&6
1733 echo "configure:1734: checking whether to support SOCKS4" >&5
1734 # Check whether --with-socks4 or --without-socks4 was given.
1735 if test "${with_socks4+set}" = set; then
1736 withval="$with_socks4"
1738 case "$withval" in
1740 echo "$ac_t""no" 1>&6
1743 echo "$ac_t""yes" 1>&6
1744 socks=4
1745 if test "x$withval" = "xyes"; then
1746 withval="-lsocks"
1747 else
1748 if test -d "$withval"; then
1749 withval="-L$withval -lsocks"
1752 LIBS="$withval $LIBS"
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1757 int main() {
1758 Rconnect();
1759 ; return 0; }
1761 if { (eval echo configure:1762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1763 else
1764 echo "configure: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1766 rm -rf conftest*
1767 { echo "configure: error: Could not find the $withval library. You must first install socks." 1>&2; exit 1; }
1769 rm -f conftest*
1771 esac
1773 else
1774 echo "$ac_t""no" 1>&6
1780 if test "x$socks" = "x4"; then
1781 cat >> confdefs.h <<\EOF
1782 #define SOCKS 1
1785 cat >> confdefs.h <<\EOF
1786 #define SOCKS4 1
1789 cat >> confdefs.h <<\EOF
1790 #define connect Rconnect
1793 cat >> confdefs.h <<\EOF
1794 #define getsockname Rgetsockname
1797 cat >> confdefs.h <<\EOF
1798 #define bind Rbind
1801 cat >> confdefs.h <<\EOF
1802 #define accept Raccept
1805 cat >> confdefs.h <<\EOF
1806 #define listen Rlisten
1809 cat >> confdefs.h <<\EOF
1810 #define select Rselect
1815 if test "x$socks" = "x5"; then
1816 cat >> confdefs.h <<\EOF
1817 #define SOCKS 1
1820 cat >> confdefs.h <<\EOF
1821 #define SOCKS5 1
1824 cat >> confdefs.h <<\EOF
1825 #define connect SOCKSconnect
1828 cat >> confdefs.h <<\EOF
1829 #define getsockname SOCKSgetsockname
1832 cat >> confdefs.h <<\EOF
1833 #define getpeername SOCKSgetpeername
1836 cat >> confdefs.h <<\EOF
1837 #define bind SOCKSbind
1840 cat >> confdefs.h <<\EOF
1841 #define accept SOCKSaccept
1844 cat >> confdefs.h <<\EOF
1845 #define listen SOCKSlisten
1848 cat >> confdefs.h <<\EOF
1849 #define select SOCKSselect
1852 cat >> confdefs.h <<\EOF
1853 #define recvfrom SOCKSrecvfrom
1856 cat >> confdefs.h <<\EOF
1857 #define sendto SOCKSsendto
1860 cat >> confdefs.h <<\EOF
1861 #define recv SOCKSrecv
1864 cat >> confdefs.h <<\EOF
1865 #define send SOCKSsend
1868 cat >> confdefs.h <<\EOF
1869 #define read SOCKSread
1872 cat >> confdefs.h <<\EOF
1873 #define write SOCKSwrite
1876 cat >> confdefs.h <<\EOF
1877 #define rresvport SOCKSrresvport
1880 cat >> confdefs.h <<\EOF
1881 #define shutdown SOCKSshutdown
1884 cat >> confdefs.h <<\EOF
1885 #define listen SOCKSlisten
1888 cat >> confdefs.h <<\EOF
1889 #define close SOCKSclose
1892 cat >> confdefs.h <<\EOF
1893 #define dup SOCKSdup
1896 cat >> confdefs.h <<\EOF
1897 #define dup2 SOCKSdup2
1900 cat >> confdefs.h <<\EOF
1901 #define fclose SOCKSfclose
1904 cat >> confdefs.h <<\EOF
1905 #define gethostbyname SOCKSgethostbyname
1910 if test -n "$socks"; then
1911 if test $opt_ipv6 = yes; then
1912 echo "IPv6 is incompatible with socks, disabling IPv6 support"
1913 opt_ipv6=no
1916 # Check whether --with-skey or --without-skey was given.
1917 if test "${with_skey+set}" = set; then
1918 withval="$with_skey"
1919 if test $withval = yes; then
1920 echo $ac_n "checking for skey_haskey in -lskey""... $ac_c" 1>&6
1921 echo "configure:1922: checking for skey_haskey in -lskey" >&5
1922 ac_lib_var=`echo skey'_'skey_haskey | sed 'y%./+-%__p_%'`
1923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1924 echo $ac_n "(cached) $ac_c" 1>&6
1925 else
1926 ac_save_LIBS="$LIBS"
1927 LIBS="-lskey $LIBS"
1928 cat > conftest.$ac_ext <<EOF
1929 #line 1930 "configure"
1930 #include "confdefs.h"
1931 /* Override any gcc2 internal prototype to avoid an error. */
1932 /* We use char because int might match the return type of a gcc2
1933 builtin and then its argument prototype would still apply. */
1934 char skey_haskey();
1936 int main() {
1937 skey_haskey()
1938 ; return 0; }
1940 if { (eval echo configure:1941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1941 rm -rf conftest*
1942 eval "ac_cv_lib_$ac_lib_var=yes"
1943 else
1944 echo "configure: failed program was:" >&5
1945 cat conftest.$ac_ext >&5
1946 rm -rf conftest*
1947 eval "ac_cv_lib_$ac_lib_var=no"
1949 rm -f conftest*
1950 LIBS="$ac_save_LIBS"
1953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1954 echo "$ac_t""yes" 1>&6
1955 ac_tr_lib=HAVE_LIB`echo skey | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1956 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1957 cat >> confdefs.h <<EOF
1958 #define $ac_tr_lib 1
1961 LIBS="-lskey $LIBS"
1963 else
1964 echo "$ac_t""no" 1>&6
1970 echo $ac_n "checking whether to support S/Key""... $ac_c" 1>&6
1971 echo "configure:1972: checking whether to support S/Key" >&5
1972 if test x"$ac_cv_lib_skey_skey_haskey" = "xyes"; then
1973 echo "$ac_t""yes" 1>&6
1974 cat >> confdefs.h <<\EOF
1975 #define SKEY 1
1978 else
1979 echo "$ac_t""no" 1>&6
1984 ac_header_dirent=no
1985 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1987 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1988 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1989 echo "configure:1990: checking for $ac_hdr that defines DIR" >&5
1990 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1991 echo $ac_n "(cached) $ac_c" 1>&6
1992 else
1993 cat > conftest.$ac_ext <<EOF
1994 #line 1995 "configure"
1995 #include "confdefs.h"
1996 #include <sys/types.h>
1997 #include <$ac_hdr>
1998 int main() {
1999 DIR *dirp = 0;
2000 ; return 0; }
2002 if { (eval echo configure:2003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2003 rm -rf conftest*
2004 eval "ac_cv_header_dirent_$ac_safe=yes"
2005 else
2006 echo "configure: failed program was:" >&5
2007 cat conftest.$ac_ext >&5
2008 rm -rf conftest*
2009 eval "ac_cv_header_dirent_$ac_safe=no"
2011 rm -f conftest*
2013 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2014 echo "$ac_t""yes" 1>&6
2015 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2016 cat >> confdefs.h <<EOF
2017 #define $ac_tr_hdr 1
2019 ac_header_dirent=$ac_hdr; break
2020 else
2021 echo "$ac_t""no" 1>&6
2023 done
2024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2025 if test $ac_header_dirent = dirent.h; then
2026 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2027 echo "configure:2028: checking for opendir in -ldir" >&5
2028 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2029 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2030 echo $ac_n "(cached) $ac_c" 1>&6
2031 else
2032 ac_save_LIBS="$LIBS"
2033 LIBS="-ldir $LIBS"
2034 cat > conftest.$ac_ext <<EOF
2035 #line 2036 "configure"
2036 #include "confdefs.h"
2037 /* Override any gcc2 internal prototype to avoid an error. */
2038 /* We use char because int might match the return type of a gcc2
2039 builtin and then its argument prototype would still apply. */
2040 char opendir();
2042 int main() {
2043 opendir()
2044 ; return 0; }
2046 if { (eval echo configure:2047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2047 rm -rf conftest*
2048 eval "ac_cv_lib_$ac_lib_var=yes"
2049 else
2050 echo "configure: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2052 rm -rf conftest*
2053 eval "ac_cv_lib_$ac_lib_var=no"
2055 rm -f conftest*
2056 LIBS="$ac_save_LIBS"
2059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2060 echo "$ac_t""yes" 1>&6
2061 LIBS="$LIBS -ldir"
2062 else
2063 echo "$ac_t""no" 1>&6
2066 else
2067 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2068 echo "configure:2069: checking for opendir in -lx" >&5
2069 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2072 else
2073 ac_save_LIBS="$LIBS"
2074 LIBS="-lx $LIBS"
2075 cat > conftest.$ac_ext <<EOF
2076 #line 2077 "configure"
2077 #include "confdefs.h"
2078 /* Override any gcc2 internal prototype to avoid an error. */
2079 /* We use char because int might match the return type of a gcc2
2080 builtin and then its argument prototype would still apply. */
2081 char opendir();
2083 int main() {
2084 opendir()
2085 ; return 0; }
2087 if { (eval echo configure:2088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2088 rm -rf conftest*
2089 eval "ac_cv_lib_$ac_lib_var=yes"
2090 else
2091 echo "configure: failed program was:" >&5
2092 cat conftest.$ac_ext >&5
2093 rm -rf conftest*
2094 eval "ac_cv_lib_$ac_lib_var=no"
2096 rm -f conftest*
2097 LIBS="$ac_save_LIBS"
2100 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2101 echo "$ac_t""yes" 1>&6
2102 LIBS="$LIBS -lx"
2103 else
2104 echo "$ac_t""no" 1>&6
2109 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2110 echo "configure:2111: checking how to run the C preprocessor" >&5
2111 # On Suns, sometimes $CPP names a directory.
2112 if test -n "$CPP" && test -d "$CPP"; then
2113 CPP=
2115 if test -z "$CPP"; then
2116 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2118 else
2119 # This must be in double quotes, not single quotes, because CPP may get
2120 # substituted into the Makefile and "${CC-cc}" will confuse make.
2121 CPP="${CC-cc} -E"
2122 # On the NeXT, cc -E runs the code through the compiler's parser,
2123 # not just through cpp.
2124 cat > conftest.$ac_ext <<EOF
2125 #line 2126 "configure"
2126 #include "confdefs.h"
2127 #include <assert.h>
2128 Syntax Error
2130 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2131 { (eval echo configure:2132: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2132 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2133 if test -z "$ac_err"; then
2135 else
2136 echo "$ac_err" >&5
2137 echo "configure: failed program was:" >&5
2138 cat conftest.$ac_ext >&5
2139 rm -rf conftest*
2140 CPP="${CC-cc} -E -traditional-cpp"
2141 cat > conftest.$ac_ext <<EOF
2142 #line 2143 "configure"
2143 #include "confdefs.h"
2144 #include <assert.h>
2145 Syntax Error
2147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2148 { (eval echo configure:2149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2150 if test -z "$ac_err"; then
2152 else
2153 echo "$ac_err" >&5
2154 echo "configure: failed program was:" >&5
2155 cat conftest.$ac_ext >&5
2156 rm -rf conftest*
2157 CPP="${CC-cc} -nologo -E"
2158 cat > conftest.$ac_ext <<EOF
2159 #line 2160 "configure"
2160 #include "confdefs.h"
2161 #include <assert.h>
2162 Syntax Error
2164 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2165 { (eval echo configure:2166: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2166 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2167 if test -z "$ac_err"; then
2169 else
2170 echo "$ac_err" >&5
2171 echo "configure: failed program was:" >&5
2172 cat conftest.$ac_ext >&5
2173 rm -rf conftest*
2174 CPP=/lib/cpp
2176 rm -f conftest*
2178 rm -f conftest*
2180 rm -f conftest*
2181 ac_cv_prog_CPP="$CPP"
2183 CPP="$ac_cv_prog_CPP"
2184 else
2185 ac_cv_prog_CPP="$CPP"
2187 echo "$ac_t""$CPP" 1>&6
2189 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2190 echo "configure:2191: checking for ANSI C header files" >&5
2191 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2192 echo $ac_n "(cached) $ac_c" 1>&6
2193 else
2194 cat > conftest.$ac_ext <<EOF
2195 #line 2196 "configure"
2196 #include "confdefs.h"
2197 #include <stdlib.h>
2198 #include <stdarg.h>
2199 #include <string.h>
2200 #include <float.h>
2202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2203 { (eval echo configure:2204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2205 if test -z "$ac_err"; then
2206 rm -rf conftest*
2207 ac_cv_header_stdc=yes
2208 else
2209 echo "$ac_err" >&5
2210 echo "configure: failed program was:" >&5
2211 cat conftest.$ac_ext >&5
2212 rm -rf conftest*
2213 ac_cv_header_stdc=no
2215 rm -f conftest*
2217 if test $ac_cv_header_stdc = yes; then
2218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2219 cat > conftest.$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2222 #include <string.h>
2224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2225 egrep "memchr" >/dev/null 2>&1; then
2227 else
2228 rm -rf conftest*
2229 ac_cv_header_stdc=no
2231 rm -f conftest*
2235 if test $ac_cv_header_stdc = yes; then
2236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2237 cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 #include <stdlib.h>
2242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2243 egrep "free" >/dev/null 2>&1; then
2245 else
2246 rm -rf conftest*
2247 ac_cv_header_stdc=no
2249 rm -f conftest*
2253 if test $ac_cv_header_stdc = yes; then
2254 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2255 if test "$cross_compiling" = yes; then
2257 else
2258 cat > conftest.$ac_ext <<EOF
2259 #line 2260 "configure"
2260 #include "confdefs.h"
2261 #include <ctype.h>
2262 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2263 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2264 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2265 int main () { int i; for (i = 0; i < 256; i++)
2266 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2267 exit (0); }
2270 if { (eval echo configure:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2271 then
2273 else
2274 echo "configure: failed program was:" >&5
2275 cat conftest.$ac_ext >&5
2276 rm -fr conftest*
2277 ac_cv_header_stdc=no
2279 rm -fr conftest*
2285 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2286 if test $ac_cv_header_stdc = yes; then
2287 cat >> confdefs.h <<\EOF
2288 #define STDC_HEADERS 1
2293 for ac_hdr in arpa/nameser.h err.h fts.h libutil.h paths.h \
2294 sys/sysmacros.h util.h
2296 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2297 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2298 echo "configure:2299: checking for $ac_hdr" >&5
2299 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2300 echo $ac_n "(cached) $ac_c" 1>&6
2301 else
2302 cat > conftest.$ac_ext <<EOF
2303 #line 2304 "configure"
2304 #include "confdefs.h"
2305 #include <$ac_hdr>
2307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2308 { (eval echo configure:2309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2310 if test -z "$ac_err"; then
2311 rm -rf conftest*
2312 eval "ac_cv_header_$ac_safe=yes"
2313 else
2314 echo "$ac_err" >&5
2315 echo "configure: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2317 rm -rf conftest*
2318 eval "ac_cv_header_$ac_safe=no"
2320 rm -f conftest*
2322 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2323 echo "$ac_t""yes" 1>&6
2324 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2325 cat >> confdefs.h <<EOF
2326 #define $ac_tr_hdr 1
2329 else
2330 echo "$ac_t""no" 1>&6
2332 done
2336 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2337 echo "configure:2338: checking whether time.h and sys/time.h may both be included" >&5
2338 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2340 else
2341 cat > conftest.$ac_ext <<EOF
2342 #line 2343 "configure"
2343 #include "confdefs.h"
2344 #include <sys/types.h>
2345 #include <sys/time.h>
2346 #include <time.h>
2347 int main() {
2348 struct tm *tp;
2349 ; return 0; }
2351 if { (eval echo configure:2352: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2352 rm -rf conftest*
2353 ac_cv_header_time=yes
2354 else
2355 echo "configure: failed program was:" >&5
2356 cat conftest.$ac_ext >&5
2357 rm -rf conftest*
2358 ac_cv_header_time=no
2360 rm -f conftest*
2363 echo "$ac_t""$ac_cv_header_time" 1>&6
2364 if test $ac_cv_header_time = yes; then
2365 cat >> confdefs.h <<\EOF
2366 #define TIME_WITH_SYS_TIME 1
2371 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2372 echo "configure:2373: checking for off_t" >&5
2373 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2374 echo $ac_n "(cached) $ac_c" 1>&6
2375 else
2376 cat > conftest.$ac_ext <<EOF
2377 #line 2378 "configure"
2378 #include "confdefs.h"
2379 #include <sys/types.h>
2380 #if STDC_HEADERS
2381 #include <stdlib.h>
2382 #include <stddef.h>
2383 #endif
2385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2386 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2387 rm -rf conftest*
2388 ac_cv_type_off_t=yes
2389 else
2390 rm -rf conftest*
2391 ac_cv_type_off_t=no
2393 rm -f conftest*
2396 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2397 if test $ac_cv_type_off_t = no; then
2398 cat >> confdefs.h <<\EOF
2399 #define off_t long
2404 echo $ac_n "checking size of off_t""... $ac_c" 1>&6
2405 echo "configure:2406: checking size of off_t" >&5
2406 if eval "test \"`echo '$''{'ac_cv_sizeof_off_t'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2408 else
2409 if test "$cross_compiling" = yes; then
2410 ac_cv_sizeof_off_t=0
2411 else
2412 cat > conftest.$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2415 #include <stdio.h>
2416 main()
2418 FILE *f=fopen("conftestval", "w");
2419 if (!f) exit(1);
2420 fprintf(f, "%d\n", sizeof(off_t));
2421 exit(0);
2424 if { (eval echo configure:2425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2425 then
2426 ac_cv_sizeof_off_t=`cat conftestval`
2427 else
2428 echo "configure: failed program was:" >&5
2429 cat conftest.$ac_ext >&5
2430 rm -fr conftest*
2431 ac_cv_sizeof_off_t=0
2433 rm -fr conftest*
2437 echo "$ac_t""$ac_cv_sizeof_off_t" 1>&6
2438 cat >> confdefs.h <<EOF
2439 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
2444 echo $ac_n "checking for long long""... $ac_c" 1>&6
2445 echo "configure:2446: checking for long long" >&5
2446 if eval "test \"`echo '$''{'ftp_cv_HAVE_LONG_LONG'+set}'`\" = set"; then
2447 echo $ac_n "(cached) $ac_c" 1>&6
2448 else
2450 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2454 #include <sys/types.h>
2455 int main() {
2457 long long X = 2, Y = 1, Z;
2458 Z = X / Y; ;
2459 ; return 0; }
2461 if { (eval echo configure:2462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2462 rm -rf conftest*
2463 ftp_cv_HAVE_LONG_LONG=yes
2464 else
2465 echo "configure: failed program was:" >&5
2466 cat conftest.$ac_ext >&5
2467 rm -rf conftest*
2468 ftp_cv_HAVE_LONG_LONG=no
2470 rm -f conftest*
2474 echo "$ac_t""$ftp_cv_HAVE_LONG_LONG" 1>&6
2475 if test "x$ftp_cv_HAVE_LONG_LONG" = "xyes"; then
2477 cat >> confdefs.h <<\EOF
2478 #define HAVE_LONG_LONG 1
2481 have_long_long=yes
2482 else
2483 have_long_long=no
2489 echo $ac_n "checking for in_port_t""... $ac_c" 1>&6
2490 echo "configure:2491: checking for in_port_t" >&5
2491 if eval "test \"`echo '$''{'ftp_cv_HAVE_IN_PORT_T'+set}'`\" = set"; then
2492 echo $ac_n "(cached) $ac_c" 1>&6
2493 else
2495 cat > conftest.$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2499 #include <sys/types.h>
2500 #include <netinet/in.h>
2501 int main() {
2502 in_port_t X ;
2503 ; return 0; }
2505 if { (eval echo configure:2506: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2506 rm -rf conftest*
2507 ftp_cv_HAVE_IN_PORT_T=yes
2508 else
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2511 rm -rf conftest*
2512 ftp_cv_HAVE_IN_PORT_T=no
2514 rm -f conftest*
2518 echo "$ac_t""$ftp_cv_HAVE_IN_PORT_T" 1>&6
2519 if test "x$ftp_cv_HAVE_IN_PORT_T" = "xyes"; then
2520 cat >> confdefs.h <<\EOF
2521 #define HAVE_IN_PORT_T 1
2524 else
2531 echo $ac_n "checking for sockaddr_in.sin_len""... $ac_c" 1>&6
2532 echo "configure:2533: checking for sockaddr_in.sin_len" >&5
2533 if eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKADDR_SA_LEN'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2535 else
2537 cat > conftest.$ac_ext <<EOF
2538 #line 2539 "configure"
2539 #include "confdefs.h"
2541 #include <sys/types.h>
2542 #include <sys/socket.h>
2543 #include <netinet/in.h>
2544 int main() {
2546 struct sockaddr_in sin;
2547 int X = sin.sin_len ;
2548 ; return 0; }
2550 if { (eval echo configure:2551: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2551 rm -rf conftest*
2552 ftp_cv_HAVE_SOCKADDR_SA_LEN=yes
2553 else
2554 echo "configure: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2556 rm -rf conftest*
2557 ftp_cv_HAVE_SOCKADDR_SA_LEN=no
2559 rm -f conftest*
2563 echo "$ac_t""$ftp_cv_HAVE_SOCKADDR_SA_LEN" 1>&6
2564 if test "x$ftp_cv_HAVE_SOCKADDR_SA_LEN" = "xyes"; then
2565 cat >> confdefs.h <<\EOF
2566 #define HAVE_SOCKADDR_SA_LEN 1
2569 else
2576 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
2577 echo "configure:2578: checking for socklen_t" >&5
2578 if eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKLEN_T'+set}'`\" = set"; then
2579 echo $ac_n "(cached) $ac_c" 1>&6
2580 else
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2586 #include <sys/types.h>
2587 #include <sys/socket.h>
2588 int main() {
2589 socklen_t X ;
2590 ; return 0; }
2592 if { (eval echo configure:2593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2593 rm -rf conftest*
2594 ftp_cv_HAVE_SOCKLEN_T=yes
2595 else
2596 echo "configure: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2598 rm -rf conftest*
2599 ftp_cv_HAVE_SOCKLEN_T=no
2601 rm -f conftest*
2605 echo "$ac_t""$ftp_cv_HAVE_SOCKLEN_T" 1>&6
2606 if test "x$ftp_cv_HAVE_SOCKLEN_T" = "xyes"; then
2607 cat >> confdefs.h <<\EOF
2608 #define HAVE_SOCKLEN_T 1
2611 else
2617 if test $opt_ipv6 = yes; then
2620 echo $ac_n "checking for AF_INET6""... $ac_c" 1>&6
2621 echo "configure:2622: checking for AF_INET6" >&5
2622 if eval "test \"`echo '$''{'ftp_cv_HAVE_AF_INET6'+set}'`\" = set"; then
2623 echo $ac_n "(cached) $ac_c" 1>&6
2624 else
2626 cat > conftest.$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2630 #include <sys/types.h>
2631 #include <sys/socket.h>
2632 int main() {
2633 int X = AF_INET6 ;
2634 ; return 0; }
2636 if { (eval echo configure:2637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2637 rm -rf conftest*
2638 ftp_cv_HAVE_AF_INET6=yes
2639 else
2640 echo "configure: failed program was:" >&5
2641 cat conftest.$ac_ext >&5
2642 rm -rf conftest*
2643 ftp_cv_HAVE_AF_INET6=no
2645 rm -f conftest*
2649 echo "$ac_t""$ftp_cv_HAVE_AF_INET6" 1>&6
2650 if test "x$ftp_cv_HAVE_AF_INET6" = "xyes"; then
2651 cat >> confdefs.h <<\EOF
2652 #define HAVE_AF_INET6 1
2655 else
2662 echo $ac_n "checking for struct sockaddr_in6""... $ac_c" 1>&6
2663 echo "configure:2664: checking for struct sockaddr_in6" >&5
2664 if eval "test \"`echo '$''{'ftp_cv_HAVE_SOCKADDR_IN6'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2666 else
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2672 #include <sys/types.h>
2673 #include <netinet/in.h>
2674 int main() {
2675 struct sockaddr_in6 X ;
2676 ; return 0; }
2678 if { (eval echo configure:2679: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2679 rm -rf conftest*
2680 ftp_cv_HAVE_SOCKADDR_IN6=yes
2681 else
2682 echo "configure: failed program was:" >&5
2683 cat conftest.$ac_ext >&5
2684 rm -rf conftest*
2685 ftp_cv_HAVE_SOCKADDR_IN6=no
2687 rm -f conftest*
2691 echo "$ac_t""$ftp_cv_HAVE_SOCKADDR_IN6" 1>&6
2692 if test "x$ftp_cv_HAVE_SOCKADDR_IN6" = "xyes"; then
2693 cat >> confdefs.h <<\EOF
2694 #define HAVE_SOCKADDR_IN6 1
2697 else
2706 echo $ac_n "checking for struct addrinfo""... $ac_c" 1>&6
2707 echo "configure:2708: checking for struct addrinfo" >&5
2708 if eval "test \"`echo '$''{'ftp_cv_HAVE_ADDRINFO'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2710 else
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2716 #include <sys/types.h>
2717 #include <sys/socket.h>
2718 #include <netdb.h>
2719 int main() {
2720 struct addrinfo X ;
2721 ; return 0; }
2723 if { (eval echo configure:2724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2724 rm -rf conftest*
2725 ftp_cv_HAVE_ADDRINFO=yes
2726 else
2727 echo "configure: failed program was:" >&5
2728 cat conftest.$ac_ext >&5
2729 rm -rf conftest*
2730 ftp_cv_HAVE_ADDRINFO=no
2732 rm -f conftest*
2736 echo "$ac_t""$ftp_cv_HAVE_ADDRINFO" 1>&6
2737 if test "x$ftp_cv_HAVE_ADDRINFO" = "xyes"; then
2738 cat >> confdefs.h <<\EOF
2739 #define HAVE_ADDRINFO 1
2742 else
2749 echo $ac_n "checking for d_namlen in struct dirent""... $ac_c" 1>&6
2750 echo "configure:2751: checking for d_namlen in struct dirent" >&5
2751 if eval "test \"`echo '$''{'ftp_cv_HAVE_D_NAMLEN'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2753 else
2755 cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2759 #if HAVE_DIRENT_H
2760 # include <dirent.h>
2761 #else
2762 # define dirent direct
2763 # if HAVE_SYS_NDIR_H
2764 # include <sys/ndir.h>
2765 # endif
2766 # if HAVE_SYS_DIR_H
2767 # include <sys/dir.h>
2768 # endif
2769 # if HAVE_NDIR_H
2770 # include <ndir.h>
2771 # endif
2772 #endif
2773 int main() {
2775 struct dirent dp;
2776 int X = dp.d_namlen; ;
2777 ; return 0; }
2779 if { (eval echo configure:2780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2780 rm -rf conftest*
2781 ftp_cv_HAVE_D_NAMLEN=yes
2782 else
2783 echo "configure: failed program was:" >&5
2784 cat conftest.$ac_ext >&5
2785 rm -rf conftest*
2786 ftp_cv_HAVE_D_NAMLEN=no
2788 rm -f conftest*
2792 echo "$ac_t""$ftp_cv_HAVE_D_NAMLEN" 1>&6
2793 if test "x$ftp_cv_HAVE_D_NAMLEN" = "xyes"; then
2794 cat >> confdefs.h <<\EOF
2795 #define HAVE_D_NAMLEN 1
2798 else
2805 echo $ac_n "checking for struct passwd.pw_expire""... $ac_c" 1>&6
2806 echo "configure:2807: checking for struct passwd.pw_expire" >&5
2807 if eval "test \"`echo '$''{'ftp_cv_HAVE_PW_EXPIRE'+set}'`\" = set"; then
2808 echo $ac_n "(cached) $ac_c" 1>&6
2809 else
2811 cat > conftest.$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2815 #include <sys/types.h>
2816 #include <pwd.h>
2817 int main() {
2818 struct passwd pw;
2819 time_t X = pw.pw_expire ;
2820 ; return 0; }
2822 if { (eval echo configure:2823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2823 rm -rf conftest*
2824 ftp_cv_HAVE_PW_EXPIRE=yes
2825 else
2826 echo "configure: failed program was:" >&5
2827 cat conftest.$ac_ext >&5
2828 rm -rf conftest*
2829 ftp_cv_HAVE_PW_EXPIRE=no
2831 rm -f conftest*
2835 echo "$ac_t""$ftp_cv_HAVE_PW_EXPIRE" 1>&6
2836 if test "x$ftp_cv_HAVE_PW_EXPIRE" = "xyes"; then
2837 cat >> confdefs.h <<\EOF
2838 #define HAVE_PW_EXPIRE 1
2841 else
2847 echo $ac_n "checking for working const""... $ac_c" 1>&6
2848 echo "configure:2849: checking for working const" >&5
2849 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2850 echo $ac_n "(cached) $ac_c" 1>&6
2851 else
2852 cat > conftest.$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2856 int main() {
2858 /* Ultrix mips cc rejects this. */
2859 typedef int charset[2]; const charset x;
2860 /* SunOS 4.1.1 cc rejects this. */
2861 char const *const *ccp;
2862 char **p;
2863 /* NEC SVR4.0.2 mips cc rejects this. */
2864 struct point {int x, y;};
2865 static struct point const zero = {0,0};
2866 /* AIX XL C 1.02.0.0 rejects this.
2867 It does not let you subtract one const X* pointer from another in an arm
2868 of an if-expression whose if-part is not a constant expression */
2869 const char *g = "string";
2870 ccp = &g + (g ? g-g : 0);
2871 /* HPUX 7.0 cc rejects these. */
2872 ++ccp;
2873 p = (char**) ccp;
2874 ccp = (char const *const *) p;
2875 { /* SCO 3.2v4 cc rejects this. */
2876 char *t;
2877 char const *s = 0 ? (char *) 0 : (char const *) 0;
2879 *t++ = 0;
2881 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2882 int x[] = {25, 17};
2883 const int *foo = &x[0];
2884 ++foo;
2886 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2887 typedef const int *iptr;
2888 iptr p = 0;
2889 ++p;
2891 { /* AIX XL C 1.02.0.0 rejects this saying
2892 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2893 struct s { int j; const int *ap[3]; };
2894 struct s *b; b->j = 5;
2896 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2897 const int foo = 10;
2900 ; return 0; }
2902 if { (eval echo configure:2903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2903 rm -rf conftest*
2904 ac_cv_c_const=yes
2905 else
2906 echo "configure: failed program was:" >&5
2907 cat conftest.$ac_ext >&5
2908 rm -rf conftest*
2909 ac_cv_c_const=no
2911 rm -f conftest*
2914 echo "$ac_t""$ac_cv_c_const" 1>&6
2915 if test $ac_cv_c_const = no; then
2916 cat >> confdefs.h <<\EOF
2917 #define const
2924 for ac_func in err fgetln getaddrinfo getgrouplist getnameinfo \
2925 getusershell inet_net_pton inet_ntop inet_pton mkstemp \
2926 sl_init snprintf strdup strerror strlcat strlcpy strsep \
2927 usleep vsyslog
2929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2930 echo "configure:2931: checking for $ac_func" >&5
2931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2932 echo $ac_n "(cached) $ac_c" 1>&6
2933 else
2934 cat > conftest.$ac_ext <<EOF
2935 #line 2936 "configure"
2936 #include "confdefs.h"
2937 /* System header to define __stub macros and hopefully few prototypes,
2938 which can conflict with char $ac_func(); below. */
2939 #include <assert.h>
2940 /* Override any gcc2 internal prototype to avoid an error. */
2941 /* We use char because int might match the return type of a gcc2
2942 builtin and then its argument prototype would still apply. */
2943 char $ac_func();
2945 int main() {
2947 /* The GNU C library defines this for functions which it implements
2948 to always fail with ENOSYS. Some functions are actually named
2949 something starting with __ and the normal name is an alias. */
2950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2951 choke me
2952 #else
2953 $ac_func();
2954 #endif
2956 ; return 0; }
2958 if { (eval echo configure:2959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2959 rm -rf conftest*
2960 eval "ac_cv_func_$ac_func=yes"
2961 else
2962 echo "configure: failed program was:" >&5
2963 cat conftest.$ac_ext >&5
2964 rm -rf conftest*
2965 eval "ac_cv_func_$ac_func=no"
2967 rm -f conftest*
2970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2971 echo "$ac_t""yes" 1>&6
2972 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2973 cat >> confdefs.h <<EOF
2974 #define $ac_tr_func 1
2977 else
2978 echo "$ac_t""no" 1>&6
2979 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
2981 done
2984 for ac_func in flock lockf getspnam setlogin setproctitle vfork
2986 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2987 echo "configure:2988: checking for $ac_func" >&5
2988 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2989 echo $ac_n "(cached) $ac_c" 1>&6
2990 else
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2994 /* System header to define __stub macros and hopefully few prototypes,
2995 which can conflict with char $ac_func(); below. */
2996 #include <assert.h>
2997 /* Override any gcc2 internal prototype to avoid an error. */
2998 /* We use char because int might match the return type of a gcc2
2999 builtin and then its argument prototype would still apply. */
3000 char $ac_func();
3002 int main() {
3004 /* The GNU C library defines this for functions which it implements
3005 to always fail with ENOSYS. Some functions are actually named
3006 something starting with __ and the normal name is an alias. */
3007 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3008 choke me
3009 #else
3010 $ac_func();
3011 #endif
3013 ; return 0; }
3015 if { (eval echo configure:3016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3016 rm -rf conftest*
3017 eval "ac_cv_func_$ac_func=yes"
3018 else
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3021 rm -rf conftest*
3022 eval "ac_cv_func_$ac_func=no"
3024 rm -f conftest*
3027 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3028 echo "$ac_t""yes" 1>&6
3029 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3030 cat >> confdefs.h <<EOF
3031 #define $ac_tr_func 1
3034 else
3035 echo "$ac_t""no" 1>&6
3037 done
3039 if test $ac_cv_lib_util_fparseln != yes; then
3040 for ac_func in fparseln
3042 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3043 echo "configure:3044: checking for $ac_func" >&5
3044 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3046 else
3047 cat > conftest.$ac_ext <<EOF
3048 #line 3049 "configure"
3049 #include "confdefs.h"
3050 /* System header to define __stub macros and hopefully few prototypes,
3051 which can conflict with char $ac_func(); below. */
3052 #include <assert.h>
3053 /* Override any gcc2 internal prototype to avoid an error. */
3054 /* We use char because int might match the return type of a gcc2
3055 builtin and then its argument prototype would still apply. */
3056 char $ac_func();
3058 int main() {
3060 /* The GNU C library defines this for functions which it implements
3061 to always fail with ENOSYS. Some functions are actually named
3062 something starting with __ and the normal name is an alias. */
3063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3064 choke me
3065 #else
3066 $ac_func();
3067 #endif
3069 ; return 0; }
3071 if { (eval echo configure:3072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3072 rm -rf conftest*
3073 eval "ac_cv_func_$ac_func=yes"
3074 else
3075 echo "configure: failed program was:" >&5
3076 cat conftest.$ac_ext >&5
3077 rm -rf conftest*
3078 eval "ac_cv_func_$ac_func=no"
3080 rm -f conftest*
3083 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3084 echo "$ac_t""yes" 1>&6
3085 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3086 cat >> confdefs.h <<EOF
3087 #define $ac_tr_func 1
3090 else
3091 echo "$ac_t""no" 1>&6
3092 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3094 done
3099 LIBOBJS="$LIBOBJS glob.o"
3102 echo $ac_n "checking for crypt() declaration""... $ac_c" 1>&6
3103 echo "configure:3104: checking for crypt() declaration" >&5
3104 if eval "test \"`echo '$''{'ftp_cv_HAVE_CRYPT_D'+set}'`\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3106 else
3108 cat > conftest.$ac_ext <<EOF
3109 #line 3110 "configure"
3110 #include "confdefs.h"
3112 #include <unistd.h>
3113 int main() {
3114 char *(*X)() = crypt ;
3115 ; return 0; }
3117 if { (eval echo configure:3118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3118 rm -rf conftest*
3119 ftp_cv_HAVE_CRYPT_D=yes
3120 else
3121 echo "configure: failed program was:" >&5
3122 cat conftest.$ac_ext >&5
3123 rm -rf conftest*
3124 ftp_cv_HAVE_CRYPT_D=no
3126 rm -f conftest*
3130 echo "$ac_t""$ftp_cv_HAVE_CRYPT_D" 1>&6
3131 if test "x$ftp_cv_HAVE_CRYPT_D" = "xyes"; then
3132 cat >> confdefs.h <<\EOF
3133 #define HAVE_CRYPT_D 1
3136 else
3143 echo $ac_n "checking for fclose() declaration""... $ac_c" 1>&6
3144 echo "configure:3145: checking for fclose() declaration" >&5
3145 if eval "test \"`echo '$''{'ftp_cv_HAVE_FCLOSE_D'+set}'`\" = set"; then
3146 echo $ac_n "(cached) $ac_c" 1>&6
3147 else
3149 cat > conftest.$ac_ext <<EOF
3150 #line 3151 "configure"
3151 #include "confdefs.h"
3153 #include <stdio.h>
3154 int main() {
3155 int (*X)() = fclose ;
3156 ; return 0; }
3158 if { (eval echo configure:3159: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3159 rm -rf conftest*
3160 ftp_cv_HAVE_FCLOSE_D=yes
3161 else
3162 echo "configure: failed program was:" >&5
3163 cat conftest.$ac_ext >&5
3164 rm -rf conftest*
3165 ftp_cv_HAVE_FCLOSE_D=no
3167 rm -f conftest*
3171 echo "$ac_t""$ftp_cv_HAVE_FCLOSE_D" 1>&6
3172 if test "x$ftp_cv_HAVE_FCLOSE_D" = "xyes"; then
3173 cat >> confdefs.h <<\EOF
3174 #define HAVE_FCLOSE_D 1
3177 else
3184 echo $ac_n "checking for FNM_CASEFOLD""... $ac_c" 1>&6
3185 echo "configure:3186: checking for FNM_CASEFOLD" >&5
3186 if eval "test \"`echo '$''{'ftp_cv_HAVE_FNM_CASEFOLD'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3188 else
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3194 #include <fnmatch.h>
3195 int main() {
3196 int X = FNM_CASEFOLD ;
3197 ; return 0; }
3199 if { (eval echo configure:3200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3200 rm -rf conftest*
3201 ftp_cv_HAVE_FNM_CASEFOLD=yes
3202 else
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3205 rm -rf conftest*
3206 ftp_cv_HAVE_FNM_CASEFOLD=no
3208 rm -f conftest*
3212 echo "$ac_t""$ftp_cv_HAVE_FNM_CASEFOLD" 1>&6
3213 if test "x$ftp_cv_HAVE_FNM_CASEFOLD" = "xyes"; then
3214 cat >> confdefs.h <<\EOF
3215 #define HAVE_FNM_CASEFOLD 1
3218 else
3219 LIBOBJS="$LIBOBJS fnmatch.o"
3225 echo $ac_n "checking for optarg declaration""... $ac_c" 1>&6
3226 echo "configure:3227: checking for optarg declaration" >&5
3227 if eval "test \"`echo '$''{'ftp_cv_HAVE_OPTARG_D'+set}'`\" = set"; then
3228 echo $ac_n "(cached) $ac_c" 1>&6
3229 else
3231 cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3235 #include <stdlib.h>
3236 #include <unistd.h>
3237 int main() {
3238 char *X = optarg ;
3239 ; return 0; }
3241 if { (eval echo configure:3242: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3242 rm -rf conftest*
3243 ftp_cv_HAVE_OPTARG_D=yes
3244 else
3245 echo "configure: failed program was:" >&5
3246 cat conftest.$ac_ext >&5
3247 rm -rf conftest*
3248 ftp_cv_HAVE_OPTARG_D=no
3250 rm -f conftest*
3254 echo "$ac_t""$ftp_cv_HAVE_OPTARG_D" 1>&6
3255 if test "x$ftp_cv_HAVE_OPTARG_D" = "xyes"; then
3256 cat >> confdefs.h <<\EOF
3257 #define HAVE_OPTARG_D 1
3260 else
3267 echo $ac_n "checking for optind declaration""... $ac_c" 1>&6
3268 echo "configure:3269: checking for optind declaration" >&5
3269 if eval "test \"`echo '$''{'ftp_cv_HAVE_OPTIND_D'+set}'`\" = set"; then
3270 echo $ac_n "(cached) $ac_c" 1>&6
3271 else
3273 cat > conftest.$ac_ext <<EOF
3274 #line 3275 "configure"
3275 #include "confdefs.h"
3277 #include <stdlib.h>
3278 #include <unistd.h>
3279 int main() {
3280 int X = optind ;
3281 ; return 0; }
3283 if { (eval echo configure:3284: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3284 rm -rf conftest*
3285 ftp_cv_HAVE_OPTIND_D=yes
3286 else
3287 echo "configure: failed program was:" >&5
3288 cat conftest.$ac_ext >&5
3289 rm -rf conftest*
3290 ftp_cv_HAVE_OPTIND_D=no
3292 rm -f conftest*
3296 echo "$ac_t""$ftp_cv_HAVE_OPTIND_D" 1>&6
3297 if test "x$ftp_cv_HAVE_OPTIND_D" = "xyes"; then
3298 cat >> confdefs.h <<\EOF
3299 #define HAVE_OPTIND_D 1
3302 else
3309 echo $ac_n "checking for optreset""... $ac_c" 1>&6
3310 echo "configure:3311: checking for optreset" >&5
3311 if eval "test \"`echo '$''{'ftp_cv_HAVE_OPTRESET'+set}'`\" = set"; then
3312 echo $ac_n "(cached) $ac_c" 1>&6
3313 else
3315 cat > conftest.$ac_ext <<EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3319 #include <stdlib.h>
3320 #include <unistd.h>
3321 int main() {
3322 int X = optreset ;
3323 ; return 0; }
3325 if { (eval echo configure:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3326 rm -rf conftest*
3327 ftp_cv_HAVE_OPTRESET=yes
3328 else
3329 echo "configure: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3331 rm -rf conftest*
3332 ftp_cv_HAVE_OPTRESET=no
3334 rm -f conftest*
3338 echo "$ac_t""$ftp_cv_HAVE_OPTRESET" 1>&6
3339 if test "x$ftp_cv_HAVE_OPTRESET" = "xyes"; then
3340 cat >> confdefs.h <<\EOF
3341 #define HAVE_OPTRESET 1
3344 else
3351 echo $ac_n "checking for pclose() declaration""... $ac_c" 1>&6
3352 echo "configure:3353: checking for pclose() declaration" >&5
3353 if eval "test \"`echo '$''{'ftp_cv_HAVE_PCLOSE_D'+set}'`\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3355 else
3357 cat > conftest.$ac_ext <<EOF
3358 #line 3359 "configure"
3359 #include "confdefs.h"
3361 #include <stdio.h>
3362 int main() {
3363 int (*X)() = pclose ;
3364 ; return 0; }
3366 if { (eval echo configure:3367: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3367 rm -rf conftest*
3368 ftp_cv_HAVE_PCLOSE_D=yes
3369 else
3370 echo "configure: failed program was:" >&5
3371 cat conftest.$ac_ext >&5
3372 rm -rf conftest*
3373 ftp_cv_HAVE_PCLOSE_D=no
3375 rm -f conftest*
3379 echo "$ac_t""$ftp_cv_HAVE_PCLOSE_D" 1>&6
3380 if test "x$ftp_cv_HAVE_PCLOSE_D" = "xyes"; then
3381 cat >> confdefs.h <<\EOF
3382 #define HAVE_PCLOSE_D 1
3385 else
3391 if test $ac_cv_func_getusershell = yes; then
3393 echo $ac_n "checking for getusershell() declaration""... $ac_c" 1>&6
3394 echo "configure:3395: checking for getusershell() declaration" >&5
3395 if eval "test \"`echo '$''{'ftp_cv_HAVE_GETUSERSHELL_D'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3397 else
3399 cat > conftest.$ac_ext <<EOF
3400 #line 3401 "configure"
3401 #include "confdefs.h"
3403 #include <unistd.h>
3404 int main() {
3405 char *(*X)() = getusershell ;
3406 ; return 0; }
3408 if { (eval echo configure:3409: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3409 rm -rf conftest*
3410 ftp_cv_HAVE_GETUSERSHELL_D=yes
3411 else
3412 echo "configure: failed program was:" >&5
3413 cat conftest.$ac_ext >&5
3414 rm -rf conftest*
3415 ftp_cv_HAVE_GETUSERSHELL_D=no
3417 rm -f conftest*
3421 echo "$ac_t""$ftp_cv_HAVE_GETUSERSHELL_D" 1>&6
3422 if test "x$ftp_cv_HAVE_GETUSERSHELL_D" = "xyes"; then
3423 cat >> confdefs.h <<\EOF
3424 #define HAVE_GETUSERSHELL_D 1
3427 else
3435 if test $have_long_long = yes -a $ac_cv_sizeof_off_t -ge 8; then
3438 echo $ac_n "checking *printf() support for %lld""... $ac_c" 1>&6
3439 echo "configure:3440: checking *printf() support for %lld" >&5
3440 can_printf_longlong=no
3441 if test "$cross_compiling" = yes; then
3443 else
3444 cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3448 #include <stdio.h>
3449 int main() {
3450 char buf[100];
3451 sprintf(buf, "%lld", 4294967300LL);
3452 return (strcmp(buf, "4294967300"));
3456 if { (eval echo configure:3457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3457 then
3459 echo "$ac_t""yes" 1>&6
3460 can_printf_longlong=yes
3462 else
3463 echo "configure: failed program was:" >&5
3464 cat conftest.$ac_ext >&5
3465 rm -fr conftest*
3467 echo "$ac_t""no" 1>&6
3470 rm -fr conftest*
3474 if test $can_printf_longlong != yes; then
3475 echo $ac_n "checking *printf() support for %qd""... $ac_c" 1>&6
3476 echo "configure:3477: checking *printf() support for %qd" >&5
3477 if test "$cross_compiling" = yes; then
3479 else
3480 cat > conftest.$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3484 #include <stdio.h>
3485 int main() {
3486 char buf[100];
3487 sprintf(buf, "%qd", 4294967300LL);
3488 return (strcmp(buf, "4294967300"));
3492 if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3493 then
3495 echo "$ac_t""yes" 1>&6
3496 can_printf_longlong=yes
3497 cat >> confdefs.h <<\EOF
3498 #define HAVE_PRINTF_QD 1
3502 else
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3505 rm -fr conftest*
3507 echo "$ac_t""no" 1>&6
3510 rm -fr conftest*
3515 if test $can_printf_longlong = yes; then
3516 cat >> confdefs.h <<\EOF
3517 #define HAVE_QUAD_SUPPORT 1
3520 for ac_func in strtoll
3522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3523 echo "configure:3524: checking for $ac_func" >&5
3524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3525 echo $ac_n "(cached) $ac_c" 1>&6
3526 else
3527 cat > conftest.$ac_ext <<EOF
3528 #line 3529 "configure"
3529 #include "confdefs.h"
3530 /* System header to define __stub macros and hopefully few prototypes,
3531 which can conflict with char $ac_func(); below. */
3532 #include <assert.h>
3533 /* Override any gcc2 internal prototype to avoid an error. */
3534 /* We use char because int might match the return type of a gcc2
3535 builtin and then its argument prototype would still apply. */
3536 char $ac_func();
3538 int main() {
3540 /* The GNU C library defines this for functions which it implements
3541 to always fail with ENOSYS. Some functions are actually named
3542 something starting with __ and the normal name is an alias. */
3543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3544 choke me
3545 #else
3546 $ac_func();
3547 #endif
3549 ; return 0; }
3551 if { (eval echo configure:3552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3552 rm -rf conftest*
3553 eval "ac_cv_func_$ac_func=yes"
3554 else
3555 echo "configure: failed program was:" >&5
3556 cat conftest.$ac_ext >&5
3557 rm -rf conftest*
3558 eval "ac_cv_func_$ac_func=no"
3560 rm -f conftest*
3563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3564 echo "$ac_t""yes" 1>&6
3565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3566 cat >> confdefs.h <<EOF
3567 #define $ac_tr_func 1
3570 else
3571 echo "$ac_t""no" 1>&6
3572 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3574 done
3582 have_rfc2553_netdb=no
3583 if test $ac_cv_func_getaddrinfo = yes -a ! -n "$socks"; then
3585 echo $ac_n "checking for AI_NUMERICHOST""... $ac_c" 1>&6
3586 echo "configure:3587: checking for AI_NUMERICHOST" >&5
3587 if eval "test \"`echo '$''{'ftp_cv_have_ai_numerichost'+set}'`\" = set"; then
3588 echo $ac_n "(cached) $ac_c" 1>&6
3589 else
3591 cat > conftest.$ac_ext <<EOF
3592 #line 3593 "configure"
3593 #include "confdefs.h"
3595 #include <sys/types.h>
3596 #include <sys/socket.h>
3597 #include <netdb.h>
3598 int main() {
3599 int X = AI_NUMERICHOST ;
3600 ; return 0; }
3602 if { (eval echo configure:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3603 rm -rf conftest*
3604 ftp_cv_have_ai_numerichost=yes
3605 else
3606 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5
3608 rm -rf conftest*
3609 ftp_cv_have_ai_numerichost=no
3611 rm -f conftest*
3615 echo "$ac_t""$ftp_cv_have_ai_numerichost" 1>&6
3616 if test "x$ftp_cv_have_ai_numerichost" = "xyes"; then
3617 have_rfc2553_netdb=yes
3618 else
3624 echo $ac_n "checking for working getaddrinfo()""... $ac_c" 1>&6
3625 echo "configure:3626: checking for working getaddrinfo()" >&5
3626 if test $have_rfc2553_netdb = yes; then
3627 cat >> confdefs.h <<\EOF
3628 #define HAVE_RFC2553_NETDB 1
3631 echo "$ac_t""yes" 1>&6
3632 else
3633 if test $ac_cv_func_getaddrinfo = yes; then
3634 LIBOBJS="$LIBOBJS getaddrinfo.o"
3635 echo "$ac_t""no - using local version" 1>&6
3636 else
3637 echo "$ac_t""using local version" 1>&6
3641 if test $ac_cv_func_sl_init = yes; then
3643 echo $ac_n "checking if sl_add() returns int""... $ac_c" 1>&6
3644 echo "configure:3645: checking if sl_add() returns int" >&5
3645 if eval "test \"`echo '$''{'ftp_cv_INT_SL_ADD'+set}'`\" = set"; then
3646 echo $ac_n "(cached) $ac_c" 1>&6
3647 else
3649 cat > conftest.$ac_ext <<EOF
3650 #line 3651 "configure"
3651 #include "confdefs.h"
3653 #include <stringlist.h>
3654 int main() {
3655 int f = sl_add((StringList *)0, "foo") ;
3656 ; return 0; }
3658 if { (eval echo configure:3659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3659 rm -rf conftest*
3660 ftp_cv_INT_SL_ADD=yes
3661 else
3662 echo "configure: failed program was:" >&5
3663 cat conftest.$ac_ext >&5
3664 rm -rf conftest*
3665 ftp_cv_INT_SL_ADD=no
3667 rm -f conftest*
3671 echo "$ac_t""$ftp_cv_INT_SL_ADD" 1>&6
3672 if test "x$ftp_cv_INT_SL_ADD" = "xyes"; then
3674 else
3675 LIBOBJS="$LIBOBJS sl_init.o"
3683 if test $opt_builtinls = yes; then
3684 for ac_func in fts_open strmode user_from_uid
3686 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3687 echo "configure:3688: checking for $ac_func" >&5
3688 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3689 echo $ac_n "(cached) $ac_c" 1>&6
3690 else
3691 cat > conftest.$ac_ext <<EOF
3692 #line 3693 "configure"
3693 #include "confdefs.h"
3694 /* System header to define __stub macros and hopefully few prototypes,
3695 which can conflict with char $ac_func(); below. */
3696 #include <assert.h>
3697 /* Override any gcc2 internal prototype to avoid an error. */
3698 /* We use char because int might match the return type of a gcc2
3699 builtin and then its argument prototype would still apply. */
3700 char $ac_func();
3702 int main() {
3704 /* The GNU C library defines this for functions which it implements
3705 to always fail with ENOSYS. Some functions are actually named
3706 something starting with __ and the normal name is an alias. */
3707 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3708 choke me
3709 #else
3710 $ac_func();
3711 #endif
3713 ; return 0; }
3715 if { (eval echo configure:3716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3716 rm -rf conftest*
3717 eval "ac_cv_func_$ac_func=yes"
3718 else
3719 echo "configure: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3721 rm -rf conftest*
3722 eval "ac_cv_func_$ac_func=no"
3724 rm -f conftest*
3727 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3728 echo "$ac_t""yes" 1>&6
3729 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3730 cat >> confdefs.h <<EOF
3731 #define $ac_tr_func 1
3734 else
3735 echo "$ac_t""no" 1>&6
3736 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3738 done
3741 LSOBJS="cmp.o ls.o print.o util.o"
3742 else
3743 cat >> confdefs.h <<\EOF
3744 #define NO_INTERNAL_LS 1
3751 if test -n "$LIBOBJS"; then
3752 INCLUDES="$INCLUDES -I\${srcdir}/../libukem"
3753 LDFLAGS="$LDFLAGS -L../libukem"
3754 LIBS="$LIBS -lukem"
3755 LIBUKEM=libukem.a
3756 LIBDEPENDS="$LIBDEPENDS ../libukem/libukem.a"
3766 trap '' 1 2 15
3767 cat > confcache <<\EOF
3768 # This file is a shell script that caches the results of configure
3769 # tests run on this system so they can be shared between configure
3770 # scripts and configure runs. It is not useful on other systems.
3771 # If it contains results you don't want to keep, you may remove or edit it.
3773 # By default, configure uses ./config.cache as the cache file,
3774 # creating it if it does not exist already. You can give configure
3775 # the --cache-file=FILE option to use a different cache file; that is
3776 # what configure does when it calls configure scripts in
3777 # subdirectories, so they share the cache.
3778 # Giving --cache-file=/dev/null disables caching, for debugging configure.
3779 # config.status only pays attention to the cache file if you give it the
3780 # --recheck option to rerun configure.
3783 # The following way of writing the cache mishandles newlines in values,
3784 # but we know of no workaround that is simple, portable, and efficient.
3785 # So, don't put newlines in cache variables' values.
3786 # Ultrix sh set writes to stderr and can't be redirected directly,
3787 # and sets the high bit in the cache file unless we assign to the vars.
3788 (set) 2>&1 |
3789 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3790 *ac_space=\ *)
3791 # `set' does not quote correctly, so add quotes (double-quote substitution
3792 # turns \\\\ into \\, and sed turns \\ into \).
3793 sed -n \
3794 -e "s/'/'\\\\''/g" \
3795 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3798 # `set' quotes correctly as required by POSIX, so do not add quotes.
3799 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3801 esac >> confcache
3802 if cmp -s $cache_file confcache; then
3804 else
3805 if test -w $cache_file; then
3806 echo "updating cache $cache_file"
3807 cat confcache > $cache_file
3808 else
3809 echo "not updating unwritable cache $cache_file"
3812 rm -f confcache
3814 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3816 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3817 # Let make expand exec_prefix.
3818 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3820 # Any assignment to VPATH causes Sun make to only execute
3821 # the first set of double-colon rules, so remove it if not needed.
3822 # If there is a colon in the path, we need to keep it.
3823 if test "x$srcdir" = x.; then
3824 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3827 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3829 DEFS=-DHAVE_CONFIG_H
3831 # Without the "./", some shells look in PATH for config.status.
3832 : ${CONFIG_STATUS=./config.status}
3834 echo creating $CONFIG_STATUS
3835 rm -f $CONFIG_STATUS
3836 cat > $CONFIG_STATUS <<EOF
3837 #! /bin/sh
3838 # Generated automatically by configure.
3839 # Run this file to recreate the current configuration.
3840 # This directory was configured as follows,
3841 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3843 # $0 $ac_configure_args
3845 # Compiler output produced by configure, useful for debugging
3846 # configure, is in ./config.log if it exists.
3848 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3849 for ac_option
3851 case "\$ac_option" in
3852 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3853 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3854 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3855 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3856 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3857 exit 0 ;;
3858 -help | --help | --hel | --he | --h)
3859 echo "\$ac_cs_usage"; exit 0 ;;
3860 *) echo "\$ac_cs_usage"; exit 1 ;;
3861 esac
3862 done
3864 ac_given_srcdir=$srcdir
3865 ac_given_INSTALL="$INSTALL"
3867 trap 'rm -fr `echo "Makefile libukem/Makefile src/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3869 cat >> $CONFIG_STATUS <<EOF
3871 # Protect against being on the right side of a sed subst in config.status.
3872 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3873 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3874 $ac_vpsub
3875 $extrasub
3876 s%@SHELL@%$SHELL%g
3877 s%@CFLAGS@%$CFLAGS%g
3878 s%@CPPFLAGS@%$CPPFLAGS%g
3879 s%@CXXFLAGS@%$CXXFLAGS%g
3880 s%@FFLAGS@%$FFLAGS%g
3881 s%@DEFS@%$DEFS%g
3882 s%@LDFLAGS@%$LDFLAGS%g
3883 s%@LIBS@%$LIBS%g
3884 s%@exec_prefix@%$exec_prefix%g
3885 s%@prefix@%$prefix%g
3886 s%@program_transform_name@%$program_transform_name%g
3887 s%@bindir@%$bindir%g
3888 s%@sbindir@%$sbindir%g
3889 s%@libexecdir@%$libexecdir%g
3890 s%@datadir@%$datadir%g
3891 s%@sysconfdir@%$sysconfdir%g
3892 s%@sharedstatedir@%$sharedstatedir%g
3893 s%@localstatedir@%$localstatedir%g
3894 s%@libdir@%$libdir%g
3895 s%@includedir@%$includedir%g
3896 s%@oldincludedir@%$oldincludedir%g
3897 s%@infodir@%$infodir%g
3898 s%@mandir@%$mandir%g
3899 s%@SET_MAKE@%$SET_MAKE%g
3900 s%@CC@%$CC%g
3901 s%@AWK@%$AWK%g
3902 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3903 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3904 s%@INSTALL_DATA@%$INSTALL_DATA%g
3905 s%@RANLIB@%$RANLIB%g
3906 s%@YACC@%$YACC%g
3907 s%@AR@%$AR%g
3908 s%@CPP@%$CPP%g
3909 s%@LIBOBJS@%$LIBOBJS%g
3910 s%@INCLUDES@%$INCLUDES%g
3911 s%@LIBUKEM@%$LIBUKEM%g
3912 s%@LIBDEPENDS@%$LIBDEPENDS%g
3913 s%@LSOBJS@%$LSOBJS%g
3915 CEOF
3918 cat >> $CONFIG_STATUS <<\EOF
3920 # Split the substitutions into bite-sized pieces for seds with
3921 # small command number limits, like on Digital OSF/1 and HP-UX.
3922 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3923 ac_file=1 # Number of current file.
3924 ac_beg=1 # First line for current file.
3925 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3926 ac_more_lines=:
3927 ac_sed_cmds=""
3928 while $ac_more_lines; do
3929 if test $ac_beg -gt 1; then
3930 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3931 else
3932 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3934 if test ! -s conftest.s$ac_file; then
3935 ac_more_lines=false
3936 rm -f conftest.s$ac_file
3937 else
3938 if test -z "$ac_sed_cmds"; then
3939 ac_sed_cmds="sed -f conftest.s$ac_file"
3940 else
3941 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3943 ac_file=`expr $ac_file + 1`
3944 ac_beg=$ac_end
3945 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3947 done
3948 if test -z "$ac_sed_cmds"; then
3949 ac_sed_cmds=cat
3953 cat >> $CONFIG_STATUS <<EOF
3955 CONFIG_FILES=\${CONFIG_FILES-"Makefile libukem/Makefile src/Makefile"}
3957 cat >> $CONFIG_STATUS <<\EOF
3958 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3959 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3960 case "$ac_file" in
3961 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3962 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3963 *) ac_file_in="${ac_file}.in" ;;
3964 esac
3966 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3968 # Remove last slash and all that follows it. Not all systems have dirname.
3969 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3970 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3971 # The file is in a subdirectory.
3972 test ! -d "$ac_dir" && mkdir "$ac_dir"
3973 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3974 # A "../" for each directory in $ac_dir_suffix.
3975 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3976 else
3977 ac_dir_suffix= ac_dots=
3980 case "$ac_given_srcdir" in
3981 .) srcdir=.
3982 if test -z "$ac_dots"; then top_srcdir=.
3983 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3984 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3985 *) # Relative path.
3986 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3987 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3988 esac
3990 case "$ac_given_INSTALL" in
3991 [/$]*) INSTALL="$ac_given_INSTALL" ;;
3992 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3993 esac
3995 echo creating "$ac_file"
3996 rm -f "$ac_file"
3997 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3998 case "$ac_file" in
3999 *Makefile*) ac_comsub="1i\\
4000 # $configure_input" ;;
4001 *) ac_comsub= ;;
4002 esac
4004 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4005 sed -e "$ac_comsub
4006 s%@configure_input@%$configure_input%g
4007 s%@srcdir@%$srcdir%g
4008 s%@top_srcdir@%$top_srcdir%g
4009 s%@INSTALL@%$INSTALL%g
4010 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4011 fi; done
4012 rm -f conftest.s*
4014 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4015 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4017 # ac_d sets the value in "#define NAME VALUE" lines.
4018 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4019 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4020 ac_dC='\3'
4021 ac_dD='%g'
4022 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4023 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4024 ac_uB='\([ ]\)%\1#\2define\3'
4025 ac_uC=' '
4026 ac_uD='\4%g'
4027 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4028 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4029 ac_eB='$%\1#\2define\3'
4030 ac_eC=' '
4031 ac_eD='%g'
4033 if test "${CONFIG_HEADERS+set}" != set; then
4035 cat >> $CONFIG_STATUS <<EOF
4036 CONFIG_HEADERS="config.h"
4038 cat >> $CONFIG_STATUS <<\EOF
4040 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4041 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4042 case "$ac_file" in
4043 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4044 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4045 *) ac_file_in="${ac_file}.in" ;;
4046 esac
4048 echo creating $ac_file
4050 rm -f conftest.frag conftest.in conftest.out
4051 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4052 cat $ac_file_inputs > conftest.in
4056 # Transform confdefs.h into a sed script conftest.vals that substitutes
4057 # the proper values into config.h.in to produce config.h. And first:
4058 # Protect against being on the right side of a sed subst in config.status.
4059 # Protect against being in an unquoted here document in config.status.
4060 rm -f conftest.vals
4061 cat > conftest.hdr <<\EOF
4062 s/[\\&%]/\\&/g
4063 s%[\\$`]%\\&%g
4064 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4065 s%ac_d%ac_u%gp
4066 s%ac_u%ac_e%gp
4068 sed -n -f conftest.hdr confdefs.h > conftest.vals
4069 rm -f conftest.hdr
4071 # This sed command replaces #undef with comments. This is necessary, for
4072 # example, in the case of _POSIX_SOURCE, which is predefined and required
4073 # on some systems where configure will not decide to define it.
4074 cat >> conftest.vals <<\EOF
4075 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4078 # Break up conftest.vals because some shells have a limit on
4079 # the size of here documents, and old seds have small limits too.
4081 rm -f conftest.tail
4082 while :
4084 ac_lines=`grep -c . conftest.vals`
4085 # grep -c gives empty output for an empty file on some AIX systems.
4086 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4087 # Write a limited-size here document to conftest.frag.
4088 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4089 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4090 echo 'CEOF
4091 sed -f conftest.frag conftest.in > conftest.out
4092 rm -f conftest.in
4093 mv conftest.out conftest.in
4094 ' >> $CONFIG_STATUS
4095 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4096 rm -f conftest.vals
4097 mv conftest.tail conftest.vals
4098 done
4099 rm -f conftest.vals
4101 cat >> $CONFIG_STATUS <<\EOF
4102 rm -f conftest.frag conftest.h
4103 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4104 cat conftest.in >> conftest.h
4105 rm -f conftest.in
4106 if cmp -s $ac_file conftest.h 2>/dev/null; then
4107 echo "$ac_file is unchanged"
4108 rm -f conftest.h
4109 else
4110 # Remove last slash and all that follows it. Not all systems have dirname.
4111 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4112 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4113 # The file is in a subdirectory.
4114 test ! -d "$ac_dir" && mkdir "$ac_dir"
4116 rm -f $ac_file
4117 mv conftest.h $ac_file
4119 fi; done
4122 cat >> $CONFIG_STATUS <<EOF
4125 cat >> $CONFIG_STATUS <<\EOF
4127 exit 0
4129 chmod +x $CONFIG_STATUS
4130 rm -fr confdefs* $ac_clean_files
4131 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1