Actually hook powernow.4 into the build.
[dragonfly.git] / contrib / opie / configure
blob2bfce6ea8d50d18805224621a136276849bd28cb
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-access-file=FILENAME
16 Enable the OPIE access file FILENAME"
17 ac_help="$ac_help
18 --enable-server-md4 Use MD4 instead of MD5 for the server"
19 ac_help="$ac_help
20 --disable-user-locking Disable user locking
21 --enable-user-locking[=DIR]
22 Put user lock files in DIR [/etc/opielocks]"
23 ac_help="$ac_help
24 --enable-retype Ask users to re-type their secret pass phrases"
25 ac_help="$ac_help
26 --enable-su-star-check Refuse to switch to disabled accounts"
27 ac_help="$ac_help
28 --disable-new-prompts Use more compatible (but less informative) prompts"
29 ac_help="$ac_help
30 --enable-insecure-override
31 Allow users to override insecure checks"
32 ac_help="$ac_help
33 --enable-anonymous-ftp Enable anonymous FTP support"
34 ac_help="$ac_help
35 --disable-utmp Disable utmp logging"
36 ac_help="$ac_help
37 --disable-wtmp Disable wtmp logging"
38 ac_help="$ac_help
39 --enable-opieauto Enable support for opieauto"
41 # Initialize some variables set by options.
42 # The variables have the same names as the options, with
43 # dashes changed to underlines.
44 build=NONE
45 cache_file=./config.cache
46 exec_prefix=NONE
47 host=NONE
48 no_create=
49 nonopt=NONE
50 no_recursion=
51 prefix=NONE
52 program_prefix=NONE
53 program_suffix=NONE
54 program_transform_name=s,x,x,
55 silent=
56 site=
57 srcdir=
58 target=NONE
59 verbose=
60 x_includes=NONE
61 x_libraries=NONE
62 bindir='${exec_prefix}/bin'
63 sbindir='${exec_prefix}/sbin'
64 libexecdir='${exec_prefix}/libexec'
65 datadir='${prefix}/share'
66 sysconfdir='${prefix}/etc'
67 sharedstatedir='${prefix}/com'
68 localstatedir='${prefix}/var'
69 libdir='${exec_prefix}/lib'
70 includedir='${prefix}/include'
71 oldincludedir='/usr/include'
72 infodir='${prefix}/info'
73 mandir='${prefix}/man'
75 # Initialize some other variables.
76 subdirs=
77 MFLAGS= MAKEFLAGS=
78 SHELL=${CONFIG_SHELL-/bin/sh}
79 # Maximum number of lines to put in a shell here document.
80 ac_max_here_lines=12
82 ac_prev=
83 for ac_option
86 # If the previous option needs an argument, assign it.
87 if test -n "$ac_prev"; then
88 eval "$ac_prev=\$ac_option"
89 ac_prev=
90 continue
93 case "$ac_option" in
94 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
95 *) ac_optarg= ;;
96 esac
98 # Accept the important Cygnus configure options, so we can diagnose typos.
100 case "$ac_option" in
102 -bindir | --bindir | --bindi | --bind | --bin | --bi)
103 ac_prev=bindir ;;
104 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
105 bindir="$ac_optarg" ;;
107 -build | --build | --buil | --bui | --bu)
108 ac_prev=build ;;
109 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
110 build="$ac_optarg" ;;
112 -cache-file | --cache-file | --cache-fil | --cache-fi \
113 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
114 ac_prev=cache_file ;;
115 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
116 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
117 cache_file="$ac_optarg" ;;
119 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
120 ac_prev=datadir ;;
121 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
122 | --da=*)
123 datadir="$ac_optarg" ;;
125 -disable-* | --disable-*)
126 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
127 # Reject names that are not valid shell variable names.
128 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
129 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
132 eval "enable_${ac_feature}=no" ;;
134 -enable-* | --enable-*)
135 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
136 # Reject names that are not valid shell variable names.
137 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
138 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
141 case "$ac_option" in
142 *=*) ;;
143 *) ac_optarg=yes ;;
144 esac
145 eval "enable_${ac_feature}='$ac_optarg'" ;;
147 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
148 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
149 | --exec | --exe | --ex)
150 ac_prev=exec_prefix ;;
151 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
152 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
153 | --exec=* | --exe=* | --ex=*)
154 exec_prefix="$ac_optarg" ;;
156 -gas | --gas | --ga | --g)
157 # Obsolete; use --with-gas.
158 with_gas=yes ;;
160 -help | --help | --hel | --he)
161 # Omit some internal or obsolete options to make the list less imposing.
162 # This message is too long to be a string in the A/UX 3.1 sh.
163 cat << EOF
164 Usage: configure [options] [host]
165 Options: [defaults in brackets after descriptions]
166 Configuration:
167 --cache-file=FILE cache test results in FILE
168 --help print this message
169 --no-create do not create output files
170 --quiet, --silent do not print \`checking...' messages
171 --version print the version of autoconf that created configure
172 Directory and file names:
173 --prefix=PREFIX install architecture-independent files in PREFIX
174 [$ac_default_prefix]
175 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
176 [same as prefix]
177 --bindir=DIR user executables in DIR [EPREFIX/bin]
178 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
179 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
180 --datadir=DIR read-only architecture-independent data in DIR
181 [PREFIX/share]
182 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
183 --sharedstatedir=DIR modifiable architecture-independent data in DIR
184 [PREFIX/com]
185 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
186 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
187 --includedir=DIR C header files in DIR [PREFIX/include]
188 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
189 --infodir=DIR info documentation in DIR [PREFIX/info]
190 --mandir=DIR man documentation in DIR [PREFIX/man]
191 --srcdir=DIR find the sources in DIR [configure dir or ..]
192 --program-prefix=PREFIX prepend PREFIX to installed program names
193 --program-suffix=SUFFIX append SUFFIX to installed program names
194 --program-transform-name=PROGRAM
195 run sed PROGRAM on installed program names
197 cat << EOF
198 Host type:
199 --build=BUILD configure for building on BUILD [BUILD=HOST]
200 --host=HOST configure for HOST [guessed]
201 --target=TARGET configure for TARGET [TARGET=HOST]
202 Features and packages:
203 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
204 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
205 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
206 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
207 --x-includes=DIR X include files are in DIR
208 --x-libraries=DIR X library files are in DIR
210 if test -n "$ac_help"; then
211 echo "--enable and --with options recognized:$ac_help"
213 exit 0 ;;
215 -host | --host | --hos | --ho)
216 ac_prev=host ;;
217 -host=* | --host=* | --hos=* | --ho=*)
218 host="$ac_optarg" ;;
220 -includedir | --includedir | --includedi | --included | --include \
221 | --includ | --inclu | --incl | --inc)
222 ac_prev=includedir ;;
223 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
224 | --includ=* | --inclu=* | --incl=* | --inc=*)
225 includedir="$ac_optarg" ;;
227 -infodir | --infodir | --infodi | --infod | --info | --inf)
228 ac_prev=infodir ;;
229 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
230 infodir="$ac_optarg" ;;
232 -libdir | --libdir | --libdi | --libd)
233 ac_prev=libdir ;;
234 -libdir=* | --libdir=* | --libdi=* | --libd=*)
235 libdir="$ac_optarg" ;;
237 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
238 | --libexe | --libex | --libe)
239 ac_prev=libexecdir ;;
240 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
241 | --libexe=* | --libex=* | --libe=*)
242 libexecdir="$ac_optarg" ;;
244 -localstatedir | --localstatedir | --localstatedi | --localstated \
245 | --localstate | --localstat | --localsta | --localst \
246 | --locals | --local | --loca | --loc | --lo)
247 ac_prev=localstatedir ;;
248 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
249 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
250 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
251 localstatedir="$ac_optarg" ;;
253 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
254 ac_prev=mandir ;;
255 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
256 mandir="$ac_optarg" ;;
258 -nfp | --nfp | --nf)
259 # Obsolete; use --without-fp.
260 with_fp=no ;;
262 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
263 | --no-cr | --no-c)
264 no_create=yes ;;
266 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
267 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
268 no_recursion=yes ;;
270 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
271 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
272 | --oldin | --oldi | --old | --ol | --o)
273 ac_prev=oldincludedir ;;
274 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
275 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
276 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
277 oldincludedir="$ac_optarg" ;;
279 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
280 ac_prev=prefix ;;
281 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
282 prefix="$ac_optarg" ;;
284 -program-prefix | --program-prefix | --program-prefi | --program-pref \
285 | --program-pre | --program-pr | --program-p)
286 ac_prev=program_prefix ;;
287 -program-prefix=* | --program-prefix=* | --program-prefi=* \
288 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
289 program_prefix="$ac_optarg" ;;
291 -program-suffix | --program-suffix | --program-suffi | --program-suff \
292 | --program-suf | --program-su | --program-s)
293 ac_prev=program_suffix ;;
294 -program-suffix=* | --program-suffix=* | --program-suffi=* \
295 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
296 program_suffix="$ac_optarg" ;;
298 -program-transform-name | --program-transform-name \
299 | --program-transform-nam | --program-transform-na \
300 | --program-transform-n | --program-transform- \
301 | --program-transform | --program-transfor \
302 | --program-transfo | --program-transf \
303 | --program-trans | --program-tran \
304 | --progr-tra | --program-tr | --program-t)
305 ac_prev=program_transform_name ;;
306 -program-transform-name=* | --program-transform-name=* \
307 | --program-transform-nam=* | --program-transform-na=* \
308 | --program-transform-n=* | --program-transform-=* \
309 | --program-transform=* | --program-transfor=* \
310 | --program-transfo=* | --program-transf=* \
311 | --program-trans=* | --program-tran=* \
312 | --progr-tra=* | --program-tr=* | --program-t=*)
313 program_transform_name="$ac_optarg" ;;
315 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
316 | -silent | --silent | --silen | --sile | --sil)
317 silent=yes ;;
319 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
320 ac_prev=sbindir ;;
321 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
322 | --sbi=* | --sb=*)
323 sbindir="$ac_optarg" ;;
325 -sharedstatedir | --sharedstatedir | --sharedstatedi \
326 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
327 | --sharedst | --shareds | --shared | --share | --shar \
328 | --sha | --sh)
329 ac_prev=sharedstatedir ;;
330 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
331 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
332 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
333 | --sha=* | --sh=*)
334 sharedstatedir="$ac_optarg" ;;
336 -site | --site | --sit)
337 ac_prev=site ;;
338 -site=* | --site=* | --sit=*)
339 site="$ac_optarg" ;;
341 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
342 ac_prev=srcdir ;;
343 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
344 srcdir="$ac_optarg" ;;
346 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
347 | --syscon | --sysco | --sysc | --sys | --sy)
348 ac_prev=sysconfdir ;;
349 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
350 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
351 sysconfdir="$ac_optarg" ;;
353 -target | --target | --targe | --targ | --tar | --ta | --t)
354 ac_prev=target ;;
355 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
356 target="$ac_optarg" ;;
358 -v | -verbose | --verbose | --verbos | --verbo | --verb)
359 verbose=yes ;;
361 -version | --version | --versio | --versi | --vers)
362 echo "configure generated by autoconf version 2.13"
363 exit 0 ;;
365 -with-* | --with-*)
366 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
367 # Reject names that are not valid shell variable names.
368 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
369 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
371 ac_package=`echo $ac_package| sed 's/-/_/g'`
372 case "$ac_option" in
373 *=*) ;;
374 *) ac_optarg=yes ;;
375 esac
376 eval "with_${ac_package}='$ac_optarg'" ;;
378 -without-* | --without-*)
379 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
380 # Reject names that are not valid shell variable names.
381 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
382 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
384 ac_package=`echo $ac_package| sed 's/-/_/g'`
385 eval "with_${ac_package}=no" ;;
387 --x)
388 # Obsolete; use --with-x.
389 with_x=yes ;;
391 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
392 | --x-incl | --x-inc | --x-in | --x-i)
393 ac_prev=x_includes ;;
394 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
395 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
396 x_includes="$ac_optarg" ;;
398 -x-libraries | --x-libraries | --x-librarie | --x-librari \
399 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
400 ac_prev=x_libraries ;;
401 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
402 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
403 x_libraries="$ac_optarg" ;;
405 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
409 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
410 echo "configure: warning: $ac_option: invalid host type" 1>&2
412 if test "x$nonopt" != xNONE; then
413 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
415 nonopt="$ac_option"
418 esac
419 done
421 if test -n "$ac_prev"; then
422 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
425 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
427 # File descriptor usage:
428 # 0 standard input
429 # 1 file creation
430 # 2 errors and warnings
431 # 3 some systems may open it to /dev/tty
432 # 4 used on the Kubota Titan
433 # 6 checking for... messages and results
434 # 5 compiler messages saved in config.log
435 if test "$silent" = yes; then
436 exec 6>/dev/null
437 else
438 exec 6>&1
440 exec 5>./config.log
442 echo "\
443 This file contains any messages produced by compilers while
444 running configure, to aid debugging if configure makes a mistake.
445 " 1>&5
447 # Strip out --no-create and --no-recursion so they do not pile up.
448 # Also quote any args containing shell metacharacters.
449 ac_configure_args=
450 for ac_arg
452 case "$ac_arg" in
453 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
454 | --no-cr | --no-c) ;;
455 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
456 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
457 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
458 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
459 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
460 esac
461 done
463 # NLS nuisances.
464 # Only set these to C if already set. These must not be set unconditionally
465 # because not all systems understand e.g. LANG=C (notably SCO).
466 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
467 # Non-C LC_CTYPE values break the ctype check.
468 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
469 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
470 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
471 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
474 rm -rf conftest* confdefs.h
475 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
476 echo > confdefs.h
478 # A filename unique to this package, relative to the directory that
479 # configure is in, which we can look for to find out if srcdir is correct.
480 ac_unique_file=README
482 # Find the source files, if location was not specified.
483 if test -z "$srcdir"; then
484 ac_srcdir_defaulted=yes
485 # Try the directory containing this script, then its parent.
486 ac_prog=$0
487 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
488 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
489 srcdir=$ac_confdir
490 if test ! -r $srcdir/$ac_unique_file; then
491 srcdir=..
493 else
494 ac_srcdir_defaulted=no
496 if test ! -r $srcdir/$ac_unique_file; then
497 if test "$ac_srcdir_defaulted" = yes; then
498 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
499 else
500 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
503 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
505 # Prefer explicitly selected file to automatically selected ones.
506 if test -z "$CONFIG_SITE"; then
507 if test "x$prefix" != xNONE; then
508 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
509 else
510 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
513 for ac_site_file in $CONFIG_SITE; do
514 if test -r "$ac_site_file"; then
515 echo "loading site script $ac_site_file"
516 . "$ac_site_file"
518 done
520 if test -r "$cache_file"; then
521 echo "loading cache $cache_file"
522 . $cache_file
523 else
524 echo "creating cache $cache_file"
525 > $cache_file
528 ac_ext=c
529 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
530 ac_cpp='$CPP $CPPFLAGS'
531 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
532 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
533 cross_compiling=$ac_cv_prog_cc_cross
535 ac_exeext=
536 ac_objext=o
537 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
538 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
539 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
540 ac_n= ac_c='
541 ' ac_t=' '
542 else
543 ac_n=-n ac_c= ac_t=
545 else
546 ac_n= ac_c='\c' ac_t=
551 # Check whether --enable-access-file or --disable-access-file was given.
552 if test "${enable_access_file+set}" = set; then
553 enableval="$enable_access_file"
554 cat >> confdefs.h <<EOF
555 #define PATH_ACCESS_FILE "$enable_access_file"
557 echo "Using the access file in $enable_access_file -- don't say we didn't warn you!"
560 ACCESS_FILE="$enable_access_file"
562 # Check whether --enable-server-md4 or --disable-server-md4 was given.
563 if test "${enable_server_md4+set}" = set; then
564 enableval="$enable_server_md4"
565 cat >> confdefs.h <<\EOF
566 #define MDX 4
569 else
570 cat >> confdefs.h <<\EOF
571 #define MDX 5
577 # Check whether --enable-user-locking or --disable-user-locking was given.
578 if test "${enable_user_locking+set}" = set; then
579 enableval="$enable_user_locking"
583 if test "$enable_user_locking" != no;
584 then
585 if test -z "$enable_user_locking"
586 then
587 cat >> confdefs.h <<\EOF
588 #define OPIE_LOCK_DIR "/etc/opielocks"
591 LOCK_DIR="/etc/opielocks"
592 else
593 cat >> confdefs.h <<EOF
594 #define OPIE_LOCK_DIR "$enable_user_locking"
597 LOCK_DIR="$enable_user_locking"
602 # Check whether --enable-retype or --disable-retype was given.
603 if test "${enable_retype+set}" = set; then
604 enableval="$enable_retype"
605 cat >> confdefs.h <<\EOF
606 #define RETYPE 1
611 # Check whether --enable-su-star-check or --disable-su-star-check was given.
612 if test "${enable_su_star_check+set}" = set; then
613 enableval="$enable_su_star_check"
614 cat >> confdefs.h <<\EOF
615 #define SU_STAR_CHECK 1
620 # Check whether --enable-new-prompts or --disable-new-prompts was given.
621 if test "${enable_new_prompts+set}" = set; then
622 enableval="$enable_new_prompts"
624 else
625 cat >> confdefs.h <<\EOF
626 #define NEW_PROMPTS 1
631 # Check whether --enable-insecure-override or --disable-insecure-override was given.
632 if test "${enable_insecure_override+set}" = set; then
633 enableval="$enable_insecure_override"
634 cat >> confdefs.h <<\EOF
635 #define INSECURE_OVERRIDE 1
640 # Check whether --enable-anonymous-ftp or --disable-anonymous-ftp was given.
641 if test "${enable_anonymous_ftp+set}" = set; then
642 enableval="$enable_anonymous_ftp"
643 cat >> confdefs.h <<\EOF
644 #define DOANONYMOUS 1
646 echo "enabling anonymous FTP support in ftp -- don't say we didn't warn you!"
649 # Check whether --enable-utmp or --disable-utmp was given.
650 if test "${enable_utmp+set}" = set; then
651 enableval="$enable_utmp"
652 cat >> confdefs.h <<\EOF
653 #define DISABLE_UTMP 1
655 echo "disabling utmp logging"
658 # Check whether --enable-wtmp or --disable-wtmp was given.
659 if test "${enable_wtmp+set}" = set; then
660 enableval="$enable_wtmp"
661 cat >> confdefs.h <<\EOF
662 #define DISABLE_WTMP 1
664 echo "disabling wtmp logging"
667 # Check whether --enable-opieauto or --disable-opieauto was given.
668 if test "${enable_opieauto+set}" = set; then
669 enableval="$enable_opieauto"
670 cat >> confdefs.h <<\EOF
671 #define OPIEAUTO 1
673 OPIEAUTO=opieauto; echo "enabling opieauto support"
678 # Extract the first word of "gcc", so it can be a program name with args.
679 set dummy gcc; ac_word=$2
680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
681 echo "configure:682: checking for $ac_word" >&5
682 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
683 echo $ac_n "(cached) $ac_c" 1>&6
684 else
685 if test -n "$CC"; then
686 ac_cv_prog_CC="$CC" # Let the user override the test.
687 else
688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
689 ac_dummy="$PATH"
690 for ac_dir in $ac_dummy; do
691 test -z "$ac_dir" && ac_dir=.
692 if test -f $ac_dir/$ac_word; then
693 ac_cv_prog_CC="gcc"
694 break
696 done
697 IFS="$ac_save_ifs"
700 CC="$ac_cv_prog_CC"
701 if test -n "$CC"; then
702 echo "$ac_t""$CC" 1>&6
703 else
704 echo "$ac_t""no" 1>&6
707 if test -z "$CC"; then
708 # Extract the first word of "cc", so it can be a program name with args.
709 set dummy cc; ac_word=$2
710 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
711 echo "configure:712: checking for $ac_word" >&5
712 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
713 echo $ac_n "(cached) $ac_c" 1>&6
714 else
715 if test -n "$CC"; then
716 ac_cv_prog_CC="$CC" # Let the user override the test.
717 else
718 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
719 ac_prog_rejected=no
720 ac_dummy="$PATH"
721 for ac_dir in $ac_dummy; do
722 test -z "$ac_dir" && ac_dir=.
723 if test -f $ac_dir/$ac_word; then
724 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
725 ac_prog_rejected=yes
726 continue
728 ac_cv_prog_CC="cc"
729 break
731 done
732 IFS="$ac_save_ifs"
733 if test $ac_prog_rejected = yes; then
734 # We found a bogon in the path, so make sure we never use it.
735 set dummy $ac_cv_prog_CC
736 shift
737 if test $# -gt 0; then
738 # We chose a different compiler from the bogus one.
739 # However, it has the same basename, so the bogon will be chosen
740 # first if we set CC to just the basename; use the full file name.
741 shift
742 set dummy "$ac_dir/$ac_word" "$@"
743 shift
744 ac_cv_prog_CC="$@"
749 CC="$ac_cv_prog_CC"
750 if test -n "$CC"; then
751 echo "$ac_t""$CC" 1>&6
752 else
753 echo "$ac_t""no" 1>&6
756 if test -z "$CC"; then
757 case "`uname -s`" in
758 *win32* | *WIN32*)
759 # Extract the first word of "cl", so it can be a program name with args.
760 set dummy cl; ac_word=$2
761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
762 echo "configure:763: checking for $ac_word" >&5
763 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
764 echo $ac_n "(cached) $ac_c" 1>&6
765 else
766 if test -n "$CC"; then
767 ac_cv_prog_CC="$CC" # Let the user override the test.
768 else
769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
770 ac_dummy="$PATH"
771 for ac_dir in $ac_dummy; do
772 test -z "$ac_dir" && ac_dir=.
773 if test -f $ac_dir/$ac_word; then
774 ac_cv_prog_CC="cl"
775 break
777 done
778 IFS="$ac_save_ifs"
781 CC="$ac_cv_prog_CC"
782 if test -n "$CC"; then
783 echo "$ac_t""$CC" 1>&6
784 else
785 echo "$ac_t""no" 1>&6
788 esac
790 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
793 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
794 echo "configure:795: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
796 ac_ext=c
797 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
798 ac_cpp='$CPP $CPPFLAGS'
799 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
800 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
801 cross_compiling=$ac_cv_prog_cc_cross
803 cat > conftest.$ac_ext << EOF
805 #line 806 "configure"
806 #include "confdefs.h"
808 main(){return(0);}
810 if { (eval echo configure:811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
811 ac_cv_prog_cc_works=yes
812 # If we can't run a trivial program, we are probably using a cross compiler.
813 if (./conftest; exit) 2>/dev/null; then
814 ac_cv_prog_cc_cross=no
815 else
816 ac_cv_prog_cc_cross=yes
818 else
819 echo "configure: failed program was:" >&5
820 cat conftest.$ac_ext >&5
821 ac_cv_prog_cc_works=no
823 rm -fr conftest*
824 ac_ext=c
825 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
826 ac_cpp='$CPP $CPPFLAGS'
827 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
828 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
829 cross_compiling=$ac_cv_prog_cc_cross
831 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
832 if test $ac_cv_prog_cc_works = no; then
833 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
835 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
836 echo "configure:837: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
837 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
838 cross_compiling=$ac_cv_prog_cc_cross
840 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
841 echo "configure:842: checking whether we are using GNU C" >&5
842 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
843 echo $ac_n "(cached) $ac_c" 1>&6
844 else
845 cat > conftest.c <<EOF
846 #ifdef __GNUC__
847 yes;
848 #endif
850 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
851 ac_cv_prog_gcc=yes
852 else
853 ac_cv_prog_gcc=no
857 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
859 if test $ac_cv_prog_gcc = yes; then
860 GCC=yes
861 else
862 GCC=
865 ac_test_CFLAGS="${CFLAGS+set}"
866 ac_save_CFLAGS="$CFLAGS"
867 CFLAGS=
868 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
869 echo "configure:870: checking whether ${CC-cc} accepts -g" >&5
870 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
871 echo $ac_n "(cached) $ac_c" 1>&6
872 else
873 echo 'void f(){}' > conftest.c
874 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
875 ac_cv_prog_cc_g=yes
876 else
877 ac_cv_prog_cc_g=no
879 rm -f conftest*
883 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
884 if test "$ac_test_CFLAGS" = set; then
885 CFLAGS="$ac_save_CFLAGS"
886 elif test $ac_cv_prog_cc_g = yes; then
887 if test "$GCC" = yes; then
888 CFLAGS="-g -O2"
889 else
890 CFLAGS="-g"
892 else
893 if test "$GCC" = yes; then
894 CFLAGS="-O2"
895 else
896 CFLAGS=
900 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
901 echo "configure:902: checking how to run the C preprocessor" >&5
902 # On Suns, sometimes $CPP names a directory.
903 if test -n "$CPP" && test -d "$CPP"; then
904 CPP=
906 if test -z "$CPP"; then
907 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
908 echo $ac_n "(cached) $ac_c" 1>&6
909 else
910 # This must be in double quotes, not single quotes, because CPP may get
911 # substituted into the Makefile and "${CC-cc}" will confuse make.
912 CPP="${CC-cc} -E"
913 # On the NeXT, cc -E runs the code through the compiler's parser,
914 # not just through cpp.
915 cat > conftest.$ac_ext <<EOF
916 #line 917 "configure"
917 #include "confdefs.h"
918 #include <assert.h>
919 Syntax Error
921 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
922 { (eval echo configure:923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
923 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
924 if test -z "$ac_err"; then
926 else
927 echo "$ac_err" >&5
928 echo "configure: failed program was:" >&5
929 cat conftest.$ac_ext >&5
930 rm -rf conftest*
931 CPP="${CC-cc} -E -traditional-cpp"
932 cat > conftest.$ac_ext <<EOF
933 #line 934 "configure"
934 #include "confdefs.h"
935 #include <assert.h>
936 Syntax Error
938 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
939 { (eval echo configure:940: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
940 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
941 if test -z "$ac_err"; then
943 else
944 echo "$ac_err" >&5
945 echo "configure: failed program was:" >&5
946 cat conftest.$ac_ext >&5
947 rm -rf conftest*
948 CPP="${CC-cc} -nologo -E"
949 cat > conftest.$ac_ext <<EOF
950 #line 951 "configure"
951 #include "confdefs.h"
952 #include <assert.h>
953 Syntax Error
955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
956 { (eval echo configure:957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
958 if test -z "$ac_err"; then
960 else
961 echo "$ac_err" >&5
962 echo "configure: failed program was:" >&5
963 cat conftest.$ac_ext >&5
964 rm -rf conftest*
965 CPP=/lib/cpp
967 rm -f conftest*
969 rm -f conftest*
971 rm -f conftest*
972 ac_cv_prog_CPP="$CPP"
974 CPP="$ac_cv_prog_CPP"
975 else
976 ac_cv_prog_CPP="$CPP"
978 echo "$ac_t""$CPP" 1>&6
980 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
981 echo "configure:982: checking whether ln -s works" >&5
982 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
984 else
985 rm -f conftestdata
986 if ln -s X conftestdata 2>/dev/null
987 then
988 rm -f conftestdata
989 ac_cv_prog_LN_S="ln -s"
990 else
991 ac_cv_prog_LN_S=ln
994 LN_S="$ac_cv_prog_LN_S"
995 if test "$ac_cv_prog_LN_S" = "ln -s"; then
996 echo "$ac_t""yes" 1>&6
997 else
998 echo "$ac_t""no" 1>&6
1001 # Extract the first word of "ranlib", so it can be a program name with args.
1002 set dummy ranlib; ac_word=$2
1003 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1004 echo "configure:1005: checking for $ac_word" >&5
1005 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1006 echo $ac_n "(cached) $ac_c" 1>&6
1007 else
1008 if test -n "$RANLIB"; then
1009 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1010 else
1011 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1012 ac_dummy="$PATH"
1013 for ac_dir in $ac_dummy; do
1014 test -z "$ac_dir" && ac_dir=.
1015 if test -f $ac_dir/$ac_word; then
1016 ac_cv_prog_RANLIB="ranlib"
1017 break
1019 done
1020 IFS="$ac_save_ifs"
1021 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1024 RANLIB="$ac_cv_prog_RANLIB"
1025 if test -n "$RANLIB"; then
1026 echo "$ac_t""$RANLIB" 1>&6
1027 else
1028 echo "$ac_t""no" 1>&6
1031 for ac_prog in 'bison -y' byacc
1033 # Extract the first word of "$ac_prog", so it can be a program name with args.
1034 set dummy $ac_prog; ac_word=$2
1035 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1036 echo "configure:1037: checking for $ac_word" >&5
1037 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1038 echo $ac_n "(cached) $ac_c" 1>&6
1039 else
1040 if test -n "$YACC"; then
1041 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1042 else
1043 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1044 ac_dummy="$PATH"
1045 for ac_dir in $ac_dummy; do
1046 test -z "$ac_dir" && ac_dir=.
1047 if test -f $ac_dir/$ac_word; then
1048 ac_cv_prog_YACC="$ac_prog"
1049 break
1051 done
1052 IFS="$ac_save_ifs"
1055 YACC="$ac_cv_prog_YACC"
1056 if test -n "$YACC"; then
1057 echo "$ac_t""$YACC" 1>&6
1058 else
1059 echo "$ac_t""no" 1>&6
1062 test -n "$YACC" && break
1063 done
1064 test -n "$YACC" || YACC="yacc"
1067 echo $ac_n "checking for AIX""... $ac_c" 1>&6
1068 echo "configure:1069: checking for AIX" >&5
1069 cat > conftest.$ac_ext <<EOF
1070 #line 1071 "configure"
1071 #include "confdefs.h"
1072 #ifdef _AIX
1074 #endif
1077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1078 egrep "yes" >/dev/null 2>&1; then
1079 rm -rf conftest*
1080 echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1081 #define _ALL_SOURCE 1
1084 else
1085 rm -rf conftest*
1086 echo "$ac_t""no" 1>&6
1088 rm -f conftest*
1091 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1092 echo "configure:1093: checking for POSIXized ISC" >&5
1093 if test -d /etc/conf/kconfig.d &&
1094 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1095 then
1096 echo "$ac_t""yes" 1>&6
1097 ISC=yes # If later tests want to check for ISC.
1098 cat >> confdefs.h <<\EOF
1099 #define _POSIX_SOURCE 1
1102 if test "$GCC" = yes; then
1103 CC="$CC -posix"
1104 else
1105 CC="$CC -Xp"
1107 else
1108 echo "$ac_t""no" 1>&6
1109 ISC=
1112 ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1113 echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1114 echo "configure:1115: checking for minix/config.h" >&5
1115 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1116 echo $ac_n "(cached) $ac_c" 1>&6
1117 else
1118 cat > conftest.$ac_ext <<EOF
1119 #line 1120 "configure"
1120 #include "confdefs.h"
1121 #include <minix/config.h>
1123 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1124 { (eval echo configure:1125: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1125 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1126 if test -z "$ac_err"; then
1127 rm -rf conftest*
1128 eval "ac_cv_header_$ac_safe=yes"
1129 else
1130 echo "$ac_err" >&5
1131 echo "configure: failed program was:" >&5
1132 cat conftest.$ac_ext >&5
1133 rm -rf conftest*
1134 eval "ac_cv_header_$ac_safe=no"
1136 rm -f conftest*
1138 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1139 echo "$ac_t""yes" 1>&6
1140 MINIX=yes
1141 else
1142 echo "$ac_t""no" 1>&6
1143 MINIX=
1146 if test "$MINIX" = yes; then
1147 cat >> confdefs.h <<\EOF
1148 #define _POSIX_SOURCE 1
1151 cat >> confdefs.h <<\EOF
1152 #define _POSIX_1_SOURCE 2
1155 cat >> confdefs.h <<\EOF
1156 #define _MINIX 1
1163 # Extract the first word of "chown", so it can be a program name with args.
1164 set dummy chown; ac_word=$2
1165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1166 echo "configure:1167: checking for $ac_word" >&5
1167 if eval "test \"`echo '$''{'ac_cv_path_CHOWN'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1169 else
1170 case "$CHOWN" in
1172 ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a path.
1174 ?:/*)
1175 ac_cv_path_CHOWN="$CHOWN" # Let the user override the test with a dos path.
1178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1179 ac_dummy="/usr/bin /bin /usr/sbin /sbin /usr/etc /etc"
1180 for ac_dir in $ac_dummy; do
1181 test -z "$ac_dir" && ac_dir=.
1182 if test -f $ac_dir/$ac_word; then
1183 ac_cv_path_CHOWN="$ac_dir/$ac_word"
1184 break
1186 done
1187 IFS="$ac_save_ifs"
1188 test -z "$ac_cv_path_CHOWN" && ac_cv_path_CHOWN="/bin/chown"
1190 esac
1192 CHOWN="$ac_cv_path_CHOWN"
1193 if test -n "$CHOWN"; then
1194 echo "$ac_t""$CHOWN" 1>&6
1195 else
1196 echo "$ac_t""no" 1>&6
1200 # Extract the first word of "su", so it can be a program name with args.
1201 set dummy su; ac_word=$2
1202 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1203 echo "configure:1204: checking for $ac_word" >&5
1204 if eval "test \"`echo '$''{'ac_cv_path_SU'+set}'`\" = set"; then
1205 echo $ac_n "(cached) $ac_c" 1>&6
1206 else
1207 case "$SU" in
1209 ac_cv_path_SU="$SU" # Let the user override the test with a path.
1211 ?:/*)
1212 ac_cv_path_SU="$SU" # Let the user override the test with a dos path.
1215 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1216 ac_dummy="/usr/bin /bin"
1217 for ac_dir in $ac_dummy; do
1218 test -z "$ac_dir" && ac_dir=.
1219 if test -f $ac_dir/$ac_word; then
1220 ac_cv_path_SU="$ac_dir/$ac_word"
1221 break
1223 done
1224 IFS="$ac_save_ifs"
1225 test -z "$ac_cv_path_SU" && ac_cv_path_SU="/bin/su"
1227 esac
1229 SU="$ac_cv_path_SU"
1230 if test -n "$SU"; then
1231 echo "$ac_t""$SU" 1>&6
1232 else
1233 echo "$ac_t""no" 1>&6
1236 # Extract the first word of "su", so it can be a program name with args.
1237 set dummy su; ac_word=$2
1238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1239 echo "configure:1240: checking for $ac_word" >&5
1240 if eval "test \"`echo '$''{'ac_cv_path_ALT_SU'+set}'`\" = set"; then
1241 echo $ac_n "(cached) $ac_c" 1>&6
1242 else
1243 case "$ALT_SU" in
1245 ac_cv_path_ALT_SU="$ALT_SU" # Let the user override the test with a path.
1247 ?:/*)
1248 ac_cv_path_ALT_SU="$ALT_SU" # Let the user override the test with a dos path.
1251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1252 ac_dummy="/usr/sbin /sbin"
1253 for ac_dir in $ac_dummy; do
1254 test -z "$ac_dir" && ac_dir=.
1255 if test -f $ac_dir/$ac_word; then
1256 ac_cv_path_ALT_SU="$ac_dir/$ac_word"
1257 break
1259 done
1260 IFS="$ac_save_ifs"
1262 esac
1264 ALT_SU="$ac_cv_path_ALT_SU"
1265 if test -n "$ALT_SU"; then
1266 echo "$ac_t""$ALT_SU" 1>&6
1267 else
1268 echo "$ac_t""no" 1>&6
1272 # Extract the first word of "scheme", so it can be a program name with args.
1273 set dummy scheme; ac_word=$2
1274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1275 echo "configure:1276: checking for $ac_word" >&5
1276 if eval "test \"`echo '$''{'ac_cv_path_SCHEME'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1278 else
1279 case "$SCHEME" in
1281 ac_cv_path_SCHEME="$SCHEME" # Let the user override the test with a path.
1283 ?:/*)
1284 ac_cv_path_SCHEME="$SCHEME" # Let the user override the test with a dos path.
1287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1288 ac_dummy="/usr/lib/iaf/scheme"
1289 for ac_dir in $ac_dummy; do
1290 test -z "$ac_dir" && ac_dir=.
1291 if test -f $ac_dir/$ac_word; then
1292 ac_cv_path_SCHEME="$ac_dir/$ac_word"
1293 break
1295 done
1296 IFS="$ac_save_ifs"
1298 esac
1300 SCHEME="$ac_cv_path_SCHEME"
1301 if test -n "$SCHEME"; then
1302 echo "$ac_t""$SCHEME" 1>&6
1303 else
1304 echo "$ac_t""no" 1>&6
1307 # Extract the first word of "login", so it can be a program name with args.
1308 set dummy login; ac_word=$2
1309 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1310 echo "configure:1311: checking for $ac_word" >&5
1311 if eval "test \"`echo '$''{'ac_cv_path_LOGIN'+set}'`\" = set"; then
1312 echo $ac_n "(cached) $ac_c" 1>&6
1313 else
1314 case "$LOGIN" in
1316 ac_cv_path_LOGIN="$LOGIN" # Let the user override the test with a path.
1318 ?:/*)
1319 ac_cv_path_LOGIN="$LOGIN" # Let the user override the test with a dos path.
1322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1323 ac_dummy="/usr/bin /bin"
1324 for ac_dir in $ac_dummy; do
1325 test -z "$ac_dir" && ac_dir=.
1326 if test -f $ac_dir/$ac_word; then
1327 ac_cv_path_LOGIN="$ac_dir/$ac_word"
1328 break
1330 done
1331 IFS="$ac_save_ifs"
1332 test -z "$ac_cv_path_LOGIN" && ac_cv_path_LOGIN="/bin/login"
1334 esac
1336 LOGIN="$ac_cv_path_LOGIN"
1337 if test -n "$LOGIN"; then
1338 echo "$ac_t""$LOGIN" 1>&6
1339 else
1340 echo "$ac_t""no" 1>&6
1344 if test ! -z "$SCHEME";
1345 then
1346 LOGIN="$SCHEME";
1349 # Extract the first word of "ftpd", so it can be a program name with args.
1350 set dummy ftpd; ac_word=$2
1351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1352 echo "configure:1353: checking for $ac_word" >&5
1353 if eval "test \"`echo '$''{'ac_cv_path_FTPD'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1355 else
1356 case "$FTPD" in
1358 ac_cv_path_FTPD="$FTPD" # Let the user override the test with a path.
1360 ?:/*)
1361 ac_cv_path_FTPD="$FTPD" # Let the user override the test with a dos path.
1364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1365 ac_dummy="/usr/libexec /usr/etc /etc /usr/sbin /sbin /usr/lbin"
1366 for ac_dir in $ac_dummy; do
1367 test -z "$ac_dir" && ac_dir=.
1368 if test -f $ac_dir/$ac_word; then
1369 ac_cv_path_FTPD="$ac_dir/$ac_word"
1370 break
1372 done
1373 IFS="$ac_save_ifs"
1375 esac
1377 FTPD="$ac_cv_path_FTPD"
1378 if test -n "$FTPD"; then
1379 echo "$ac_t""$FTPD" 1>&6
1380 else
1381 echo "$ac_t""no" 1>&6
1384 # Extract the first word of "in.ftpd", so it can be a program name with args.
1385 set dummy in.ftpd; ac_word=$2
1386 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1387 echo "configure:1388: checking for $ac_word" >&5
1388 if eval "test \"`echo '$''{'ac_cv_path_INFTPD'+set}'`\" = set"; then
1389 echo $ac_n "(cached) $ac_c" 1>&6
1390 else
1391 case "$INFTPD" in
1393 ac_cv_path_INFTPD="$INFTPD" # Let the user override the test with a path.
1395 ?:/*)
1396 ac_cv_path_INFTPD="$INFTPD" # Let the user override the test with a dos path.
1399 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1400 ac_dummy="/usr/libexec /usr/etc /etc /usr/sbin /sbin /usr/lbin"
1401 for ac_dir in $ac_dummy; do
1402 test -z "$ac_dir" && ac_dir=.
1403 if test -f $ac_dir/$ac_word; then
1404 ac_cv_path_INFTPD="$ac_dir/$ac_word"
1405 break
1407 done
1408 IFS="$ac_save_ifs"
1410 esac
1412 INFTPD="$ac_cv_path_INFTPD"
1413 if test -n "$INFTPD"; then
1414 echo "$ac_t""$INFTPD" 1>&6
1415 else
1416 echo "$ac_t""no" 1>&6
1420 if test -z "$FTPD"
1421 then
1422 if test ! -z "$INFTPD"
1423 then
1424 FTPD="$INFTPD"
1428 echo $ac_n "checking for default PATH entries""... $ac_c" 1>&6
1429 echo "configure:1430: checking for default PATH entries" >&5
1430 default_path=""
1431 save_IFS="$IFS"
1432 IFS=" "
1433 for i in /usr/bin /bin /usr/ucb /usr/sbin /usr/bsd /sbin /usr/bin/X11 /etc /usr/local/X11/bin /usr/X11R6/bin /your-system-is-broken
1435 IFS=":"
1436 for j in $PATH
1438 if test "$i" = "$j"
1439 then
1440 if test -d "$i"
1441 then
1442 if test -z "$default_path"
1443 then
1444 default_path="$i"
1445 else
1446 default_path="$default_path:$i"
1450 done
1451 IFS=" "
1452 done
1453 cat >> confdefs.h <<EOF
1454 #define DEFAULT_PATH "$default_path"
1457 echo "$ac_t""$default_path" 1>&6
1459 echo $ac_n "checking for test -e flag""... $ac_c" 1>&6
1460 echo "configure:1461: checking for test -e flag" >&5
1461 if sh config.testeflag
1462 then
1463 result=yes
1464 EXISTS="-e"
1465 else
1466 result=no
1467 EXISTS="-f"
1470 echo "$ac_t""$result" 1>&6
1472 echo $ac_n "checking for mkdir -p flag""... $ac_c" 1>&6
1473 echo "configure:1474: checking for mkdir -p flag" >&5
1474 if test -d config.tmpdir
1475 then
1476 rmdir config.tmpdir/foo/bar >/dev/null 2>/dev/null
1477 rmdir config.tmpdir/foo >/dev/null 2>/dev/null
1478 rmdir config.tmpdir >/dev/null 2>/dev/null
1481 result=no
1482 if mkdir -p config.tmpdir/foo/bar >/dev/null 2>/dev/null
1483 then
1484 if test -d config.tmpdir
1485 then
1486 if test -d config.tmpdir/foo
1487 then
1488 if test -d config.tmpdir/foo/bar
1489 then
1490 result=yes
1491 rmdir config.tmpdir/foo/bar >/dev/null 2>/dev/null
1493 rmdir config.tmpdir/foo >/dev/null 2>/dev/null
1495 rmdir config.tmpdir >/dev/null 2>/dev/null
1499 if test "$result" = yes
1500 then
1501 MKDIR="mkdir -p"
1502 else
1503 MKDIR="mkdir"
1506 echo "$ac_t""$result" 1>&6
1508 echo $ac_n "checking for ls group field""... $ac_c" 1>&6
1509 echo "configure:1510: checking for ls group field" >&5
1510 lsg=`/bin/ls -ldg / | wc -w | awk '{print $1}'`;
1511 ls=`/bin/ls -ld / | wc -w | awk '{print $1}'`;
1512 result="no"
1513 if test $ls = 9;
1514 then
1515 result="yes"
1516 else
1517 if test "$ls" = 8 -a "$lsg" = 9;
1518 then
1519 result="yes, with -g"
1520 cat >> confdefs.h <<\EOF
1521 #define HAVE_LS_G_FLAG 1
1526 echo "$ac_t""$result" 1>&6
1528 echo $ac_n "checking for /etc/default/login""... $ac_c" 1>&6
1529 echo "configure:1530: checking for /etc/default/login" >&5
1530 if test $EXISTS /etc/default/login
1531 then
1532 result=yes
1533 cat >> confdefs.h <<\EOF
1534 #define HAVE_ETC_DEFAULT_LOGIN 1
1537 else
1538 result=no
1540 echo "$ac_t""$result" 1>&6
1542 echo $ac_n "checking for /etc/securetty""... $ac_c" 1>&6
1543 echo "configure:1544: checking for /etc/securetty" >&5
1544 if test $EXISTS /etc/securetty
1545 then
1546 result=yes
1547 cat >> confdefs.h <<\EOF
1548 #define HAVE_SECURETTY 1
1551 else
1552 result=no
1554 echo "$ac_t""$result" 1>&6
1556 echo $ac_n "checking for /etc/logindevperm""... $ac_c" 1>&6
1557 echo "configure:1558: checking for /etc/logindevperm" >&5
1558 if test $EXISTS /etc/logindevperm
1559 then
1560 echo "$ac_t""yes" 1>&6
1561 cat >> confdefs.h <<\EOF
1562 #define HAVE_LOGIN_PERMFILE "/etc/logindevperm"
1565 else
1566 echo "$ac_t""no" 1>&6
1568 echo $ac_n "checking for /etc/fbtab""... $ac_c" 1>&6
1569 echo "configure:1570: checking for /etc/fbtab" >&5
1570 if test $EXISTS /etc/fbtab
1571 then
1572 result=yes
1573 cat >> confdefs.h <<\EOF
1574 #define HAVE_LOGIN_PERMFILE "/etc/fbtab"
1577 else
1578 result=no
1580 echo "$ac_t""$result" 1>&6
1583 echo $ac_n "checking for /etc/environment""... $ac_c" 1>&6
1584 echo "configure:1585: checking for /etc/environment" >&5
1585 if test $EXISTS /etc/environment
1586 then
1587 echo "$ac_t""yes" 1>&6
1588 cat >> confdefs.h <<\EOF
1589 #define HAVE_LOGIN_ENVFILE "/etc/environment"
1592 else
1593 echo "$ac_t""no" 1>&6
1595 echo $ac_n "checking for /etc/src.sh""... $ac_c" 1>&6
1596 echo "configure:1597: checking for /etc/src.sh" >&5
1597 if test $EXISTS /etc/src.sh
1598 then
1599 result=yes
1600 cat >> confdefs.h <<\EOF
1601 #define HAVE_LOGIN_ENVFILE "/etc/src.sh"
1604 else
1605 result=no
1607 echo "$ac_t""$result" 1>&6
1610 echo $ac_n "checking for /etc/shadow""... $ac_c" 1>&6
1611 echo "configure:1612: checking for /etc/shadow" >&5
1612 if test $EXISTS /etc/shadow
1613 then
1614 result=yes
1615 cat >> confdefs.h <<\EOF
1616 #define HAVE_ETC_SHADOW 1
1619 else
1620 echo "$ac_t""no" 1>&6
1622 echo $ac_n "checking for /etc/security/passwd.adjunct""... $ac_c" 1>&6
1623 echo "configure:1624: checking for /etc/security/passwd.adjunct" >&5
1624 if test $EXISTS /etc/security/passwd.adjunct
1625 then
1626 result=yes
1627 cat >> confdefs.h <<\EOF
1628 #define HAVE_SUNOS_C2_SHADOW 1
1631 LIBOBJS="$LIBOBJS getspnam.o endspent.o"
1632 else
1633 result=no
1636 echo "$ac_t""$result" 1>&6
1638 echo $ac_n "checking for /var/adm/sulog""... $ac_c" 1>&6
1639 echo "configure:1640: checking for /var/adm/sulog" >&5
1640 if test $EXISTS /var/adm/sulog
1641 then
1642 result=yes
1643 cat >> confdefs.h <<\EOF
1644 #define HAVE_SULOG 1
1647 else
1648 result=no
1650 echo "$ac_t""$result" 1>&6
1652 echo $ac_n "checking mail spool location""... $ac_c" 1>&6
1653 echo "configure:1654: checking mail spool location" >&5
1654 mail_spool=""
1655 for i in /var/mail /usr/mail /var/spool/mail /usr/spool/mail
1657 if test -d $i
1658 then
1659 mail_spool="$i"
1661 done
1662 if test -z "$mail_spool"
1663 then
1664 result="not found"
1665 else
1666 result="$mail_spool"
1667 cat >> confdefs.h <<EOF
1668 #define PATH_MAIL "$mail_spool"
1672 echo "$ac_t""$result" 1>&6
1674 echo $ac_n "checking where your system puts the utmp file""... $ac_c" 1>&6
1675 echo "configure:1676: checking where your system puts the utmp file" >&5
1676 utmp_path=""
1677 for i in /var/run /var/adm /usr/adm /etc
1679 if test $EXISTS $i/utmp
1680 then
1681 utmp_path="$i"
1683 done
1684 if test -z "$utmp_path"
1685 then
1686 result="not found"
1687 else
1688 result="$utmp_path"
1689 cat >> confdefs.h <<EOF
1690 #define PATH_UTMP_AC "$utmp_path/utmp"
1694 echo "$ac_t""$result" 1>&6
1696 echo $ac_n "checking where your system puts the utmpx file""... $ac_c" 1>&6
1697 echo "configure:1698: checking where your system puts the utmpx file" >&5
1698 utmp_path=""
1699 for i in /var/run /var/adm /usr/adm /etc
1701 if test $EXISTS $i/utmp
1702 then
1703 utmp_path="$i"
1705 done
1706 if test -z "$utmp_path"
1707 then
1708 result="not found"
1709 cat >> confdefs.h <<EOF
1710 #define PATH_UTMP_AC "$utmp_path/utmpx"
1714 echo "$ac_t""$result" 1>&6
1716 echo $ac_n "checking where your system puts the wtmp file""... $ac_c" 1>&6
1717 echo "configure:1718: checking where your system puts the wtmp file" >&5
1718 wtmp_path=""
1719 for i in /var/run /var/log /var/adm /usr/adm /etc
1721 if test $EXISTS $i/wtmp
1722 then
1723 wtmp_path="$i"
1725 done
1726 if test -z "$wtmp_path"
1727 then
1728 result="not found"
1729 else
1730 result="$wtmp_path"
1731 cat >> confdefs.h <<EOF
1732 #define PATH_WTMP_AC "$wtmp_path/wtmp"
1736 echo "$ac_t""$result" 1>&6
1738 echo $ac_n "checking where your system puts the wtmpx file""... $ac_c" 1>&6
1739 echo "configure:1740: checking where your system puts the wtmpx file" >&5
1740 wtmpx_path=""
1741 for i in /var/run /var/log /var/adm /usr/adm /etc
1743 if test $EXISTS $i/wtmpx
1744 then
1745 wtmpx_path="$i"
1747 done
1748 if test -z "$wtmpx_path"
1749 then
1750 result="not found"
1751 else
1752 result="$wtmpx_path"
1753 cat >> confdefs.h <<EOF
1754 #define PATH_WTMPX_AC "$wtmpx_path/wtmpx"
1758 echo "$ac_t""$result" 1>&6
1760 echo $ac_n "checking whether the system profile displays the motd""... $ac_c" 1>&6
1761 echo "configure:1762: checking whether the system profile displays the motd" >&5
1762 result=no
1763 if test $EXISTS /etc/profile
1764 then
1765 if grep motd /etc/profile >/dev/null 2>/dev/null
1766 then
1767 result=yes
1770 if test "$result" = yes
1771 then
1772 cat >> confdefs.h <<\EOF
1773 #define HAVE_MOTD_IN_PROFILE 1
1777 echo "$ac_t""$result" 1>&6
1779 echo $ac_n "checking whether the system profile checks for mail""... $ac_c" 1>&6
1780 echo "configure:1781: checking whether the system profile checks for mail" >&5
1781 result=no
1782 if test $EXISTS /etc/profile
1783 then
1784 if grep 'mail\.' /etc/profile >/dev/null 2>/dev/null
1785 then
1786 result=yes
1789 if test "$result" = yes
1790 then
1791 cat >> confdefs.h <<\EOF
1792 #define HAVE_MAILCHECK_IN_PROFILE 1
1796 echo "$ac_t""$result" 1>&6
1798 echo $ac_n "checking for working const""... $ac_c" 1>&6
1799 echo "configure:1800: checking for working const" >&5
1800 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1801 echo $ac_n "(cached) $ac_c" 1>&6
1802 else
1803 cat > conftest.$ac_ext <<EOF
1804 #line 1805 "configure"
1805 #include "confdefs.h"
1807 int main() {
1809 /* Ultrix mips cc rejects this. */
1810 typedef int charset[2]; const charset x;
1811 /* SunOS 4.1.1 cc rejects this. */
1812 char const *const *ccp;
1813 char **p;
1814 /* NEC SVR4.0.2 mips cc rejects this. */
1815 struct point {int x, y;};
1816 static struct point const zero = {0,0};
1817 /* AIX XL C 1.02.0.0 rejects this.
1818 It does not let you subtract one const X* pointer from another in an arm
1819 of an if-expression whose if-part is not a constant expression */
1820 const char *g = "string";
1821 ccp = &g + (g ? g-g : 0);
1822 /* HPUX 7.0 cc rejects these. */
1823 ++ccp;
1824 p = (char**) ccp;
1825 ccp = (char const *const *) p;
1826 { /* SCO 3.2v4 cc rejects this. */
1827 char *t;
1828 char const *s = 0 ? (char *) 0 : (char const *) 0;
1830 *t++ = 0;
1832 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1833 int x[] = {25, 17};
1834 const int *foo = &x[0];
1835 ++foo;
1837 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1838 typedef const int *iptr;
1839 iptr p = 0;
1840 ++p;
1842 { /* AIX XL C 1.02.0.0 rejects this saying
1843 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1844 struct s { int j; const int *ap[3]; };
1845 struct s *b; b->j = 5;
1847 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1848 const int foo = 10;
1851 ; return 0; }
1853 if { (eval echo configure:1854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1854 rm -rf conftest*
1855 ac_cv_c_const=yes
1856 else
1857 echo "configure: failed program was:" >&5
1858 cat conftest.$ac_ext >&5
1859 rm -rf conftest*
1860 ac_cv_c_const=no
1862 rm -f conftest*
1865 echo "$ac_t""$ac_cv_c_const" 1>&6
1866 if test $ac_cv_c_const = no; then
1867 cat >> confdefs.h <<\EOF
1868 #define const
1874 echo $ac_n "checking to see if your compiler can handle void arguments""... $ac_c" 1>&6
1875 echo "configure:1876: checking to see if your compiler can handle void arguments" >&5
1876 cat > conftest.$ac_ext <<EOF
1877 #line 1878 "configure"
1878 #include "confdefs.h"
1879 foo(void) { }
1880 int main() {
1882 ; return 0; }
1884 if { (eval echo configure:1885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1885 rm -rf conftest*
1886 cat >> confdefs.h <<\EOF
1887 #define HAVE_VOIDARG 1
1889 echo "$ac_t""yes" 1>&6
1890 else
1891 echo "configure: failed program was:" >&5
1892 cat conftest.$ac_ext >&5
1893 rm -rf conftest*
1894 echo "$ac_t""no" 1>&6
1896 rm -f conftest*
1898 echo $ac_n "checking to see if your compiler can handle void return values""... $ac_c" 1>&6
1899 echo "configure:1900: checking to see if your compiler can handle void return values" >&5
1900 cat > conftest.$ac_ext <<EOF
1901 #line 1902 "configure"
1902 #include "confdefs.h"
1903 void foo() { }
1904 int main() {
1906 ; return 0; }
1908 if { (eval echo configure:1909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1909 rm -rf conftest*
1910 cat >> confdefs.h <<\EOF
1911 #define HAVE_VOIDRET 1
1913 echo "$ac_t""yes" 1>&6
1914 else
1915 echo "configure: failed program was:" >&5
1916 cat conftest.$ac_ext >&5
1917 rm -rf conftest*
1918 echo "$ac_t""no" 1>&6
1920 rm -f conftest*
1922 echo $ac_n "checking to see if your compiler can handle void pointers""... $ac_c" 1>&6
1923 echo "configure:1924: checking to see if your compiler can handle void pointers" >&5
1924 cat > conftest.$ac_ext <<EOF
1925 #line 1926 "configure"
1926 #include "confdefs.h"
1927 foo() { void *bar = (void *)0x42; bar = bar + 1; }
1928 int main() {
1930 ; return 0; }
1932 if { (eval echo configure:1933: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1933 rm -rf conftest*
1934 cat >> confdefs.h <<\EOF
1935 #define HAVE_VOIDPTR 1
1937 echo "$ac_t""yes" 1>&6
1938 else
1939 echo "configure: failed program was:" >&5
1940 cat conftest.$ac_ext >&5
1941 rm -rf conftest*
1942 echo "$ac_t""no" 1>&6
1944 rm -f conftest*
1946 echo $ac_n "checking to see if your compiler can handle ANSI argument lists""... $ac_c" 1>&6
1947 echo "configure:1948: checking to see if your compiler can handle ANSI argument lists" >&5
1948 cat > conftest.$ac_ext <<EOF
1949 #line 1950 "configure"
1950 #include "confdefs.h"
1951 int foo(int bar, int baz) { return 0; }
1952 int main() {
1954 ; return 0; }
1956 if { (eval echo configure:1957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1957 rm -rf conftest*
1958 cat >> confdefs.h <<\EOF
1959 #define HAVE_ANSIDECL 1
1961 echo "$ac_t""yes" 1>&6
1962 else
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1965 rm -rf conftest*
1966 echo "$ac_t""no" 1>&6
1968 rm -f conftest*
1970 echo $ac_n "checking to see if your compiler can handle ANSI prototypes""... $ac_c" 1>&6
1971 echo "configure:1972: checking to see if your compiler can handle ANSI prototypes" >&5
1972 cat > conftest.$ac_ext <<EOF
1973 #line 1974 "configure"
1974 #include "confdefs.h"
1975 extern int foo(int, int);
1976 int main() {
1978 ; return 0; }
1980 if { (eval echo configure:1981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1981 rm -rf conftest*
1982 cat >> confdefs.h <<\EOF
1983 #define HAVE_ANSIPROTO 1
1985 echo "$ac_t""yes" 1>&6
1986 else
1987 echo "configure: failed program was:" >&5
1988 cat conftest.$ac_ext >&5
1989 rm -rf conftest*
1990 echo "$ac_t""no" 1>&6
1992 rm -f conftest*
1994 echo $ac_n "checking to see if your compiler can handle ANSI variable arguments""... $ac_c" 1>&6
1995 echo "configure:1996: checking to see if your compiler can handle ANSI variable arguments" >&5
1996 cat > conftest.$ac_ext <<EOF
1997 #line 1998 "configure"
1998 #include "confdefs.h"
1999 #include <stdarg.h>
2000 int foo(int arg, ...) {
2001 va_list ap;
2002 va_start(ap, arg);
2003 va_end(ap);
2004 return 0;
2006 int main() {
2008 ; return 0; }
2010 if { (eval echo configure:2011: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2011 rm -rf conftest*
2012 cat >> confdefs.h <<\EOF
2013 #define HAVE_ANSISTDARG 1
2015 echo "$ac_t""yes" 1>&6
2016 else
2017 echo "configure: failed program was:" >&5
2018 cat conftest.$ac_ext >&5
2019 rm -rf conftest*
2020 echo "$ac_t""no" 1>&6
2022 rm -f conftest*
2024 echo $ac_n "checking to see if you have an ANSI-style sprintf""... $ac_c" 1>&6
2025 echo "configure:2026: checking to see if you have an ANSI-style sprintf" >&5
2026 if test "$cross_compiling" = yes; then
2027 echo "$ac_t""no" 1>&6
2028 else
2029 cat > conftest.$ac_ext <<EOF
2030 #line 2031 "configure"
2031 #include "confdefs.h"
2032 #include <stdio.h>
2033 int main(argc, argv)
2034 int argc;
2035 char *argv[];
2037 char buf[5];
2038 int i = 2;
2039 i += sprintf(buf, "1234");
2040 return (i == 6) ? 0 : -1;
2043 if { (eval echo configure:2044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2044 then
2045 cat >> confdefs.h <<\EOF
2046 #define HAVE_ANSISPRINTF 1
2048 echo "$ac_t""yes" 1>&6
2049 else
2050 echo "configure: failed program was:" >&5
2051 cat conftest.$ac_ext >&5
2052 rm -fr conftest*
2053 echo "$ac_t""no" 1>&6
2055 rm -fr conftest*
2059 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
2060 echo "configure:2061: checking for crypt in -lcrypt" >&5
2061 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
2062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2063 echo $ac_n "(cached) $ac_c" 1>&6
2064 else
2065 ac_save_LIBS="$LIBS"
2066 LIBS="-lcrypt $LIBS"
2067 cat > conftest.$ac_ext <<EOF
2068 #line 2069 "configure"
2069 #include "confdefs.h"
2070 /* Override any gcc2 internal prototype to avoid an error. */
2071 /* We use char because int might match the return type of a gcc2
2072 builtin and then its argument prototype would still apply. */
2073 char crypt();
2075 int main() {
2076 crypt()
2077 ; return 0; }
2079 if { (eval echo configure:2080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2080 rm -rf conftest*
2081 eval "ac_cv_lib_$ac_lib_var=yes"
2082 else
2083 echo "configure: failed program was:" >&5
2084 cat conftest.$ac_ext >&5
2085 rm -rf conftest*
2086 eval "ac_cv_lib_$ac_lib_var=no"
2088 rm -f conftest*
2089 LIBS="$ac_save_LIBS"
2092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2093 echo "$ac_t""yes" 1>&6
2094 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2095 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2096 cat >> confdefs.h <<EOF
2097 #define $ac_tr_lib 1
2100 LIBS="-lcrypt $LIBS"
2102 else
2103 echo "$ac_t""no" 1>&6
2106 echo $ac_n "checking for gethostname in -lnsl""... $ac_c" 1>&6
2107 echo "configure:2108: checking for gethostname in -lnsl" >&5
2108 ac_lib_var=`echo nsl'_'gethostname | sed 'y%./+-%__p_%'`
2109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2110 echo $ac_n "(cached) $ac_c" 1>&6
2111 else
2112 ac_save_LIBS="$LIBS"
2113 LIBS="-lnsl $LIBS"
2114 cat > conftest.$ac_ext <<EOF
2115 #line 2116 "configure"
2116 #include "confdefs.h"
2117 /* Override any gcc2 internal prototype to avoid an error. */
2118 /* We use char because int might match the return type of a gcc2
2119 builtin and then its argument prototype would still apply. */
2120 char gethostname();
2122 int main() {
2123 gethostname()
2124 ; return 0; }
2126 if { (eval echo configure:2127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2127 rm -rf conftest*
2128 eval "ac_cv_lib_$ac_lib_var=yes"
2129 else
2130 echo "configure: failed program was:" >&5
2131 cat conftest.$ac_ext >&5
2132 rm -rf conftest*
2133 eval "ac_cv_lib_$ac_lib_var=no"
2135 rm -f conftest*
2136 LIBS="$ac_save_LIBS"
2139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2140 echo "$ac_t""yes" 1>&6
2141 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2142 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2143 cat >> confdefs.h <<EOF
2144 #define $ac_tr_lib 1
2147 LIBS="-lnsl $LIBS"
2149 else
2150 echo "$ac_t""no" 1>&6
2153 echo $ac_n "checking for main in -lposix""... $ac_c" 1>&6
2154 echo "configure:2155: checking for main in -lposix" >&5
2155 ac_lib_var=`echo posix'_'main | sed 'y%./+-%__p_%'`
2156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2158 else
2159 ac_save_LIBS="$LIBS"
2160 LIBS="-lposix $LIBS"
2161 cat > conftest.$ac_ext <<EOF
2162 #line 2163 "configure"
2163 #include "confdefs.h"
2165 int main() {
2166 main()
2167 ; return 0; }
2169 if { (eval echo configure:2170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2170 rm -rf conftest*
2171 eval "ac_cv_lib_$ac_lib_var=yes"
2172 else
2173 echo "configure: failed program was:" >&5
2174 cat conftest.$ac_ext >&5
2175 rm -rf conftest*
2176 eval "ac_cv_lib_$ac_lib_var=no"
2178 rm -f conftest*
2179 LIBS="$ac_save_LIBS"
2182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2183 echo "$ac_t""yes" 1>&6
2184 ac_tr_lib=HAVE_LIB`echo posix | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2185 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2186 cat >> confdefs.h <<EOF
2187 #define $ac_tr_lib 1
2190 LIBS="-lposix $LIBS"
2192 else
2193 echo "$ac_t""no" 1>&6
2196 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
2197 echo "configure:2198: checking for socket in -lsocket" >&5
2198 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
2199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2201 else
2202 ac_save_LIBS="$LIBS"
2203 LIBS="-lsocket $LIBS"
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207 /* Override any gcc2 internal prototype to avoid an error. */
2208 /* We use char because int might match the return type of a gcc2
2209 builtin and then its argument prototype would still apply. */
2210 char socket();
2212 int main() {
2213 socket()
2214 ; return 0; }
2216 if { (eval echo configure:2217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2217 rm -rf conftest*
2218 eval "ac_cv_lib_$ac_lib_var=yes"
2219 else
2220 echo "configure: failed program was:" >&5
2221 cat conftest.$ac_ext >&5
2222 rm -rf conftest*
2223 eval "ac_cv_lib_$ac_lib_var=no"
2225 rm -f conftest*
2226 LIBS="$ac_save_LIBS"
2229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2230 echo "$ac_t""yes" 1>&6
2231 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2232 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2233 cat >> confdefs.h <<EOF
2234 #define $ac_tr_lib 1
2237 LIBS="-lsocket $LIBS"
2239 else
2240 echo "$ac_t""no" 1>&6
2244 ac_header_dirent=no
2245 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
2247 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2248 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2249 echo "configure:2250: checking for $ac_hdr that defines DIR" >&5
2250 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2251 echo $ac_n "(cached) $ac_c" 1>&6
2252 else
2253 cat > conftest.$ac_ext <<EOF
2254 #line 2255 "configure"
2255 #include "confdefs.h"
2256 #include <sys/types.h>
2257 #include <$ac_hdr>
2258 int main() {
2259 DIR *dirp = 0;
2260 ; return 0; }
2262 if { (eval echo configure:2263: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2263 rm -rf conftest*
2264 eval "ac_cv_header_dirent_$ac_safe=yes"
2265 else
2266 echo "configure: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2268 rm -rf conftest*
2269 eval "ac_cv_header_dirent_$ac_safe=no"
2271 rm -f conftest*
2273 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2274 echo "$ac_t""yes" 1>&6
2275 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2276 cat >> confdefs.h <<EOF
2277 #define $ac_tr_hdr 1
2279 ac_header_dirent=$ac_hdr; break
2280 else
2281 echo "$ac_t""no" 1>&6
2283 done
2284 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2285 if test $ac_header_dirent = dirent.h; then
2286 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2287 echo "configure:2288: checking for opendir in -ldir" >&5
2288 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2289 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2290 echo $ac_n "(cached) $ac_c" 1>&6
2291 else
2292 ac_save_LIBS="$LIBS"
2293 LIBS="-ldir $LIBS"
2294 cat > conftest.$ac_ext <<EOF
2295 #line 2296 "configure"
2296 #include "confdefs.h"
2297 /* Override any gcc2 internal prototype to avoid an error. */
2298 /* We use char because int might match the return type of a gcc2
2299 builtin and then its argument prototype would still apply. */
2300 char opendir();
2302 int main() {
2303 opendir()
2304 ; return 0; }
2306 if { (eval echo configure:2307: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2307 rm -rf conftest*
2308 eval "ac_cv_lib_$ac_lib_var=yes"
2309 else
2310 echo "configure: failed program was:" >&5
2311 cat conftest.$ac_ext >&5
2312 rm -rf conftest*
2313 eval "ac_cv_lib_$ac_lib_var=no"
2315 rm -f conftest*
2316 LIBS="$ac_save_LIBS"
2319 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2320 echo "$ac_t""yes" 1>&6
2321 LIBS="$LIBS -ldir"
2322 else
2323 echo "$ac_t""no" 1>&6
2326 else
2327 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2328 echo "configure:2329: checking for opendir in -lx" >&5
2329 ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2332 else
2333 ac_save_LIBS="$LIBS"
2334 LIBS="-lx $LIBS"
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2338 /* Override any gcc2 internal prototype to avoid an error. */
2339 /* We use char because int might match the return type of a gcc2
2340 builtin and then its argument prototype would still apply. */
2341 char opendir();
2343 int main() {
2344 opendir()
2345 ; return 0; }
2347 if { (eval echo configure:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2348 rm -rf conftest*
2349 eval "ac_cv_lib_$ac_lib_var=yes"
2350 else
2351 echo "configure: failed program was:" >&5
2352 cat conftest.$ac_ext >&5
2353 rm -rf conftest*
2354 eval "ac_cv_lib_$ac_lib_var=no"
2356 rm -f conftest*
2357 LIBS="$ac_save_LIBS"
2360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2361 echo "$ac_t""yes" 1>&6
2362 LIBS="$LIBS -lx"
2363 else
2364 echo "$ac_t""no" 1>&6
2369 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2370 echo "configure:2371: checking for sys/wait.h that is POSIX.1 compatible" >&5
2371 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2373 else
2374 cat > conftest.$ac_ext <<EOF
2375 #line 2376 "configure"
2376 #include "confdefs.h"
2377 #include <sys/types.h>
2378 #include <sys/wait.h>
2379 #ifndef WEXITSTATUS
2380 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2381 #endif
2382 #ifndef WIFEXITED
2383 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2384 #endif
2385 int main() {
2386 int s;
2387 wait (&s);
2388 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2389 ; return 0; }
2391 if { (eval echo configure:2392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2392 rm -rf conftest*
2393 ac_cv_header_sys_wait_h=yes
2394 else
2395 echo "configure: failed program was:" >&5
2396 cat conftest.$ac_ext >&5
2397 rm -rf conftest*
2398 ac_cv_header_sys_wait_h=no
2400 rm -f conftest*
2403 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2404 if test $ac_cv_header_sys_wait_h = yes; then
2405 cat >> confdefs.h <<\EOF
2406 #define HAVE_SYS_WAIT_H 1
2411 for ac_hdr in crypt.h fcntl.h limits.h termios.h sys/file.h sys/ioctl.h sys/time.h syslog.h unistd.h paths.h shadow.h signal.h sys/signal.h lastlog.h sys/utsname.h pwd.h sys/param.h string.h stdlib.h utmpx.h sys/select.h
2413 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2414 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2415 echo "configure:2416: checking for $ac_hdr" >&5
2416 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2417 echo $ac_n "(cached) $ac_c" 1>&6
2418 else
2419 cat > conftest.$ac_ext <<EOF
2420 #line 2421 "configure"
2421 #include "confdefs.h"
2422 #include <$ac_hdr>
2424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2425 { (eval echo configure:2426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2427 if test -z "$ac_err"; then
2428 rm -rf conftest*
2429 eval "ac_cv_header_$ac_safe=yes"
2430 else
2431 echo "$ac_err" >&5
2432 echo "configure: failed program was:" >&5
2433 cat conftest.$ac_ext >&5
2434 rm -rf conftest*
2435 eval "ac_cv_header_$ac_safe=no"
2437 rm -f conftest*
2439 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2440 echo "$ac_t""yes" 1>&6
2441 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2442 cat >> confdefs.h <<EOF
2443 #define $ac_tr_hdr 1
2446 else
2447 echo "$ac_t""no" 1>&6
2449 done
2453 echo $ac_n "checking for ut_pid in struct utmp""... $ac_c" 1>&6
2454 echo "configure:2455: checking for ut_pid in struct utmp" >&5
2455 cat > conftest.$ac_ext <<EOF
2456 #line 2457 "configure"
2457 #include "confdefs.h"
2458 #include <sys/types.h>
2459 #include <utmp.h>
2460 int main() {
2461 struct utmp foo; return (int)foo.ut_pid;
2462 ; return 0; }
2464 if { (eval echo configure:2465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2465 rm -rf conftest*
2466 cat >> confdefs.h <<\EOF
2467 #define HAVE_UT_PID 1
2469 echo "$ac_t""yes" 1>&6
2470 else
2471 echo "configure: failed program was:" >&5
2472 cat conftest.$ac_ext >&5
2473 rm -rf conftest*
2474 echo "$ac_t""no" 1>&6
2476 rm -f conftest*
2477 echo $ac_n "checking for ut_type in struct utmp""... $ac_c" 1>&6
2478 echo "configure:2479: checking for ut_type in struct utmp" >&5
2479 cat > conftest.$ac_ext <<EOF
2480 #line 2481 "configure"
2481 #include "confdefs.h"
2482 #include <sys/types.h>
2483 #include <utmp.h>
2484 int main() {
2485 struct utmp foo; return (int)foo.ut_type;
2486 ; return 0; }
2488 if { (eval echo configure:2489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2489 rm -rf conftest*
2490 cat >> confdefs.h <<\EOF
2491 #define HAVE_UT_TYPE 1
2493 echo "$ac_t""yes" 1>&6
2494 else
2495 echo "configure: failed program was:" >&5
2496 cat conftest.$ac_ext >&5
2497 rm -rf conftest*
2498 echo "$ac_t""no" 1>&6
2500 rm -f conftest*
2501 echo $ac_n "checking for ut_name in struct utmp""... $ac_c" 1>&6
2502 echo "configure:2503: checking for ut_name in struct utmp" >&5
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2506 #include <sys/types.h>
2507 #include <utmp.h>
2508 int main() {
2509 struct utmp foo; return (int)foo.ut_name[0];
2510 ; return 0; }
2512 if { (eval echo configure:2513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2513 rm -rf conftest*
2514 cat >> confdefs.h <<\EOF
2515 #define HAVE_UT_NAME 1
2517 echo "$ac_t""yes" 1>&6
2518 else
2519 echo "configure: failed program was:" >&5
2520 cat conftest.$ac_ext >&5
2521 rm -rf conftest*
2522 echo "$ac_t""no" 1>&6
2524 rm -f conftest*
2525 echo $ac_n "checking for ut_host in struct utmp""... $ac_c" 1>&6
2526 echo "configure:2527: checking for ut_host in struct utmp" >&5
2527 cat > conftest.$ac_ext <<EOF
2528 #line 2529 "configure"
2529 #include "confdefs.h"
2530 #include <sys/types.h>
2531 #include <utmp.h>
2532 int main() {
2533 struct utmp foo; return (int)foo.ut_host[0];
2534 ; return 0; }
2536 if { (eval echo configure:2537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2537 rm -rf conftest*
2538 cat >> confdefs.h <<\EOF
2539 #define HAVE_UT_HOST 1
2541 echo "$ac_t""yes" 1>&6
2542 else
2543 echo "configure: failed program was:" >&5
2544 cat conftest.$ac_ext >&5
2545 rm -rf conftest*
2546 echo "$ac_t""no" 1>&6
2548 rm -f conftest*
2549 echo $ac_n "checking for ut_id in struct utmp""... $ac_c" 1>&6
2550 echo "configure:2551: checking for ut_id in struct utmp" >&5
2551 cat > conftest.$ac_ext <<EOF
2552 #line 2553 "configure"
2553 #include "confdefs.h"
2554 #include <sys/types.h>
2555 #include <utmp.h>
2556 int main() {
2557 struct utmp foo; return (int)foo.ut_id[0];
2558 ; return 0; }
2560 if { (eval echo configure:2561: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2561 rm -rf conftest*
2562 cat >> confdefs.h <<\EOF
2563 #define HAVE_UT_ID 1
2565 echo "$ac_t""yes" 1>&6
2566 else
2567 echo "configure: failed program was:" >&5
2568 cat conftest.$ac_ext >&5
2569 rm -rf conftest*
2570 echo "$ac_t""no" 1>&6
2572 rm -f conftest*
2573 #AC_MSG_CHECKING(for ut_syslen in struct utmp)
2574 #AC_TRY_COMPILE([#include <sys/types.h>
2575 ##include <utmp.h>], [struct utmp foo; return (int)foo.ut_syslen;], AC_DEFINE(HAVE_UT_SYSLEN) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
2576 echo $ac_n "checking for ut_syslen in struct utmpx""... $ac_c" 1>&6
2577 echo "configure:2578: checking for ut_syslen in struct utmpx" >&5
2578 cat > conftest.$ac_ext <<EOF
2579 #line 2580 "configure"
2580 #include "confdefs.h"
2581 #include <sys/types.h>
2582 #include <utmpx.h>
2583 int main() {
2584 struct utmpx foo; return (int)foo.ut_syslen;
2585 ; return 0; }
2587 if { (eval echo configure:2588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2588 rm -rf conftest*
2589 cat >> confdefs.h <<\EOF
2590 #define HAVE_UTX_SYSLEN 1
2592 echo "$ac_t""yes" 1>&6
2593 else
2594 echo "configure: failed program was:" >&5
2595 cat conftest.$ac_ext >&5
2596 rm -rf conftest*
2597 echo "$ac_t""no" 1>&6
2599 rm -f conftest*
2601 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2602 echo "configure:2603: checking return type of signal handlers" >&5
2603 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2604 echo $ac_n "(cached) $ac_c" 1>&6
2605 else
2606 cat > conftest.$ac_ext <<EOF
2607 #line 2608 "configure"
2608 #include "confdefs.h"
2609 #include <sys/types.h>
2610 #include <signal.h>
2611 #ifdef signal
2612 #undef signal
2613 #endif
2614 #ifdef __cplusplus
2615 extern "C" void (*signal (int, void (*)(int)))(int);
2616 #else
2617 void (*signal ()) ();
2618 #endif
2620 int main() {
2621 int i;
2622 ; return 0; }
2624 if { (eval echo configure:2625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2625 rm -rf conftest*
2626 ac_cv_type_signal=void
2627 else
2628 echo "configure: failed program was:" >&5
2629 cat conftest.$ac_ext >&5
2630 rm -rf conftest*
2631 ac_cv_type_signal=int
2633 rm -f conftest*
2636 echo "$ac_t""$ac_cv_type_signal" 1>&6
2637 cat >> confdefs.h <<EOF
2638 #define RETSIGTYPE $ac_cv_type_signal
2642 for ac_func in gettimeofday socket strftime strstr setpriority getttynam setvbuf getspnam endspent setgroups getgroups fpurge setlogin lstat getutxline pututxline usleep
2644 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2645 echo "configure:2646: checking for $ac_func" >&5
2646 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2647 echo $ac_n "(cached) $ac_c" 1>&6
2648 else
2649 cat > conftest.$ac_ext <<EOF
2650 #line 2651 "configure"
2651 #include "confdefs.h"
2652 /* System header to define __stub macros and hopefully few prototypes,
2653 which can conflict with char $ac_func(); below. */
2654 #include <assert.h>
2655 /* Override any gcc2 internal prototype to avoid an error. */
2656 /* We use char because int might match the return type of a gcc2
2657 builtin and then its argument prototype would still apply. */
2658 char $ac_func();
2660 int main() {
2662 /* The GNU C library defines this for functions which it implements
2663 to always fail with ENOSYS. Some functions are actually named
2664 something starting with __ and the normal name is an alias. */
2665 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2666 choke me
2667 #else
2668 $ac_func();
2669 #endif
2671 ; return 0; }
2673 if { (eval echo configure:2674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2674 rm -rf conftest*
2675 eval "ac_cv_func_$ac_func=yes"
2676 else
2677 echo "configure: failed program was:" >&5
2678 cat conftest.$ac_ext >&5
2679 rm -rf conftest*
2680 eval "ac_cv_func_$ac_func=no"
2682 rm -f conftest*
2685 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2686 echo "$ac_t""yes" 1>&6
2687 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2688 cat >> confdefs.h <<EOF
2689 #define $ac_tr_func 1
2692 else
2693 echo "$ac_t""no" 1>&6
2695 done
2698 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2699 echo "configure:2700: checking for 8-bit clean memcmp" >&5
2700 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2701 echo $ac_n "(cached) $ac_c" 1>&6
2702 else
2703 if test "$cross_compiling" = yes; then
2704 ac_cv_func_memcmp_clean=no
2705 else
2706 cat > conftest.$ac_ext <<EOF
2707 #line 2708 "configure"
2708 #include "confdefs.h"
2710 main()
2712 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2713 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2717 if { (eval echo configure:2718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2718 then
2719 ac_cv_func_memcmp_clean=yes
2720 else
2721 echo "configure: failed program was:" >&5
2722 cat conftest.$ac_ext >&5
2723 rm -fr conftest*
2724 ac_cv_func_memcmp_clean=no
2726 rm -fr conftest*
2731 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2732 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
2734 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2735 # for constant arguments. Useless!
2736 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2737 echo "configure:2738: checking for working alloca.h" >&5
2738 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2739 echo $ac_n "(cached) $ac_c" 1>&6
2740 else
2741 cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2744 #include <alloca.h>
2745 int main() {
2746 char *p = alloca(2 * sizeof(int));
2747 ; return 0; }
2749 if { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2750 rm -rf conftest*
2751 ac_cv_header_alloca_h=yes
2752 else
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 rm -rf conftest*
2756 ac_cv_header_alloca_h=no
2758 rm -f conftest*
2761 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2762 if test $ac_cv_header_alloca_h = yes; then
2763 cat >> confdefs.h <<\EOF
2764 #define HAVE_ALLOCA_H 1
2769 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2770 echo "configure:2771: checking for alloca" >&5
2771 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2772 echo $ac_n "(cached) $ac_c" 1>&6
2773 else
2774 cat > conftest.$ac_ext <<EOF
2775 #line 2776 "configure"
2776 #include "confdefs.h"
2778 #ifdef __GNUC__
2779 # define alloca __builtin_alloca
2780 #else
2781 # ifdef _MSC_VER
2782 # include <malloc.h>
2783 # define alloca _alloca
2784 # else
2785 # if HAVE_ALLOCA_H
2786 # include <alloca.h>
2787 # else
2788 # ifdef _AIX
2789 #pragma alloca
2790 # else
2791 # ifndef alloca /* predefined by HP cc +Olibcalls */
2792 char *alloca ();
2793 # endif
2794 # endif
2795 # endif
2796 # endif
2797 #endif
2799 int main() {
2800 char *p = (char *) alloca(1);
2801 ; return 0; }
2803 if { (eval echo configure:2804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2804 rm -rf conftest*
2805 ac_cv_func_alloca_works=yes
2806 else
2807 echo "configure: failed program was:" >&5
2808 cat conftest.$ac_ext >&5
2809 rm -rf conftest*
2810 ac_cv_func_alloca_works=no
2812 rm -f conftest*
2815 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2816 if test $ac_cv_func_alloca_works = yes; then
2817 cat >> confdefs.h <<\EOF
2818 #define HAVE_ALLOCA 1
2823 if test $ac_cv_func_alloca_works = no; then
2824 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2825 # that cause trouble. Some versions do not even contain alloca or
2826 # contain a buggy version. If you still want to use their alloca,
2827 # use ar to extract alloca.o from them instead of compiling alloca.c.
2828 ALLOCA=alloca.${ac_objext}
2829 cat >> confdefs.h <<\EOF
2830 #define C_ALLOCA 1
2834 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2835 echo "configure:2836: checking whether alloca needs Cray hooks" >&5
2836 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2837 echo $ac_n "(cached) $ac_c" 1>&6
2838 else
2839 cat > conftest.$ac_ext <<EOF
2840 #line 2841 "configure"
2841 #include "confdefs.h"
2842 #if defined(CRAY) && ! defined(CRAY2)
2843 webecray
2844 #else
2845 wenotbecray
2846 #endif
2849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2850 egrep "webecray" >/dev/null 2>&1; then
2851 rm -rf conftest*
2852 ac_cv_os_cray=yes
2853 else
2854 rm -rf conftest*
2855 ac_cv_os_cray=no
2857 rm -f conftest*
2861 echo "$ac_t""$ac_cv_os_cray" 1>&6
2862 if test $ac_cv_os_cray = yes; then
2863 for ac_func in _getb67 GETB67 getb67; do
2864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2865 echo "configure:2866: checking for $ac_func" >&5
2866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2867 echo $ac_n "(cached) $ac_c" 1>&6
2868 else
2869 cat > conftest.$ac_ext <<EOF
2870 #line 2871 "configure"
2871 #include "confdefs.h"
2872 /* System header to define __stub macros and hopefully few prototypes,
2873 which can conflict with char $ac_func(); below. */
2874 #include <assert.h>
2875 /* Override any gcc2 internal prototype to avoid an error. */
2876 /* We use char because int might match the return type of a gcc2
2877 builtin and then its argument prototype would still apply. */
2878 char $ac_func();
2880 int main() {
2882 /* The GNU C library defines this for functions which it implements
2883 to always fail with ENOSYS. Some functions are actually named
2884 something starting with __ and the normal name is an alias. */
2885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2886 choke me
2887 #else
2888 $ac_func();
2889 #endif
2891 ; return 0; }
2893 if { (eval echo configure:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2894 rm -rf conftest*
2895 eval "ac_cv_func_$ac_func=yes"
2896 else
2897 echo "configure: failed program was:" >&5
2898 cat conftest.$ac_ext >&5
2899 rm -rf conftest*
2900 eval "ac_cv_func_$ac_func=no"
2902 rm -f conftest*
2905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2906 echo "$ac_t""yes" 1>&6
2907 cat >> confdefs.h <<EOF
2908 #define CRAY_STACKSEG_END $ac_func
2911 break
2912 else
2913 echo "$ac_t""no" 1>&6
2916 done
2919 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2920 echo "configure:2921: checking stack direction for C alloca" >&5
2921 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2922 echo $ac_n "(cached) $ac_c" 1>&6
2923 else
2924 if test "$cross_compiling" = yes; then
2925 ac_cv_c_stack_direction=0
2926 else
2927 cat > conftest.$ac_ext <<EOF
2928 #line 2929 "configure"
2929 #include "confdefs.h"
2930 find_stack_direction ()
2932 static char *addr = 0;
2933 auto char dummy;
2934 if (addr == 0)
2936 addr = &dummy;
2937 return find_stack_direction ();
2939 else
2940 return (&dummy > addr) ? 1 : -1;
2942 main ()
2944 exit (find_stack_direction() < 0);
2947 if { (eval echo configure:2948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2948 then
2949 ac_cv_c_stack_direction=1
2950 else
2951 echo "configure: failed program was:" >&5
2952 cat conftest.$ac_ext >&5
2953 rm -fr conftest*
2954 ac_cv_c_stack_direction=-1
2956 rm -fr conftest*
2961 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2962 cat >> confdefs.h <<EOF
2963 #define STACK_DIRECTION $ac_cv_c_stack_direction
2968 for ac_func in getusershell sigaddset sigemptyset strerror strncasecmp
2970 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2971 echo "configure:2972: checking for $ac_func" >&5
2972 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2974 else
2975 cat > conftest.$ac_ext <<EOF
2976 #line 2977 "configure"
2977 #include "confdefs.h"
2978 /* System header to define __stub macros and hopefully few prototypes,
2979 which can conflict with char $ac_func(); below. */
2980 #include <assert.h>
2981 /* Override any gcc2 internal prototype to avoid an error. */
2982 /* We use char because int might match the return type of a gcc2
2983 builtin and then its argument prototype would still apply. */
2984 char $ac_func();
2986 int main() {
2988 /* The GNU C library defines this for functions which it implements
2989 to always fail with ENOSYS. Some functions are actually named
2990 something starting with __ and the normal name is an alias. */
2991 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2992 choke me
2993 #else
2994 $ac_func();
2995 #endif
2997 ; return 0; }
2999 if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3000 rm -rf conftest*
3001 eval "ac_cv_func_$ac_func=yes"
3002 else
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3005 rm -rf conftest*
3006 eval "ac_cv_func_$ac_func=no"
3008 rm -f conftest*
3011 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3012 echo "$ac_t""yes" 1>&6
3013 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3014 cat >> confdefs.h <<EOF
3015 #define $ac_tr_func 1
3018 else
3019 echo "$ac_t""no" 1>&6
3020 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3022 done
3025 MISSING="$LIBOBJS $ALLOCA " ;
3027 echo $ac_n "checking for atexit""... $ac_c" 1>&6
3028 echo "configure:3029: checking for atexit" >&5
3029 if eval "test \"`echo '$''{'ac_cv_func_atexit'+set}'`\" = set"; then
3030 echo $ac_n "(cached) $ac_c" 1>&6
3031 else
3032 cat > conftest.$ac_ext <<EOF
3033 #line 3034 "configure"
3034 #include "confdefs.h"
3035 /* System header to define __stub macros and hopefully few prototypes,
3036 which can conflict with char atexit(); below. */
3037 #include <assert.h>
3038 /* Override any gcc2 internal prototype to avoid an error. */
3039 /* We use char because int might match the return type of a gcc2
3040 builtin and then its argument prototype would still apply. */
3041 char atexit();
3043 int main() {
3045 /* The GNU C library defines this for functions which it implements
3046 to always fail with ENOSYS. Some functions are actually named
3047 something starting with __ and the normal name is an alias. */
3048 #if defined (__stub_atexit) || defined (__stub___atexit)
3049 choke me
3050 #else
3051 atexit();
3052 #endif
3054 ; return 0; }
3056 if { (eval echo configure:3057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3057 rm -rf conftest*
3058 eval "ac_cv_func_atexit=yes"
3059 else
3060 echo "configure: failed program was:" >&5
3061 cat conftest.$ac_ext >&5
3062 rm -rf conftest*
3063 eval "ac_cv_func_atexit=no"
3065 rm -f conftest*
3068 if eval "test \"`echo '$ac_cv_func_'atexit`\" = yes"; then
3069 echo "$ac_t""yes" 1>&6
3070 cat >> confdefs.h <<\EOF
3071 #define HAVE_ATEXIT 1
3074 else
3075 echo "$ac_t""no" 1>&6
3076 MISSING="${MISSING}atexit.o "; for ac_func in on_exit
3078 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3079 echo "configure:3080: checking for $ac_func" >&5
3080 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3081 echo $ac_n "(cached) $ac_c" 1>&6
3082 else
3083 cat > conftest.$ac_ext <<EOF
3084 #line 3085 "configure"
3085 #include "confdefs.h"
3086 /* System header to define __stub macros and hopefully few prototypes,
3087 which can conflict with char $ac_func(); below. */
3088 #include <assert.h>
3089 /* Override any gcc2 internal prototype to avoid an error. */
3090 /* We use char because int might match the return type of a gcc2
3091 builtin and then its argument prototype would still apply. */
3092 char $ac_func();
3094 int main() {
3096 /* The GNU C library defines this for functions which it implements
3097 to always fail with ENOSYS. Some functions are actually named
3098 something starting with __ and the normal name is an alias. */
3099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3100 choke me
3101 #else
3102 $ac_func();
3103 #endif
3105 ; return 0; }
3107 if { (eval echo configure:3108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3108 rm -rf conftest*
3109 eval "ac_cv_func_$ac_func=yes"
3110 else
3111 echo "configure: failed program was:" >&5
3112 cat conftest.$ac_ext >&5
3113 rm -rf conftest*
3114 eval "ac_cv_func_$ac_func=no"
3116 rm -f conftest*
3119 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3120 echo "$ac_t""yes" 1>&6
3121 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3122 cat >> confdefs.h <<EOF
3123 #define $ac_tr_func 1
3126 else
3127 echo "$ac_t""no" 1>&6
3129 done
3133 echo $ac_n "checking for endutent""... $ac_c" 1>&6
3134 echo "configure:3135: checking for endutent" >&5
3135 if eval "test \"`echo '$''{'ac_cv_func_endutent'+set}'`\" = set"; then
3136 echo $ac_n "(cached) $ac_c" 1>&6
3137 else
3138 cat > conftest.$ac_ext <<EOF
3139 #line 3140 "configure"
3140 #include "confdefs.h"
3141 /* System header to define __stub macros and hopefully few prototypes,
3142 which can conflict with char endutent(); below. */
3143 #include <assert.h>
3144 /* Override any gcc2 internal prototype to avoid an error. */
3145 /* We use char because int might match the return type of a gcc2
3146 builtin and then its argument prototype would still apply. */
3147 char endutent();
3149 int main() {
3151 /* The GNU C library defines this for functions which it implements
3152 to always fail with ENOSYS. Some functions are actually named
3153 something starting with __ and the normal name is an alias. */
3154 #if defined (__stub_endutent) || defined (__stub___endutent)
3155 choke me
3156 #else
3157 endutent();
3158 #endif
3160 ; return 0; }
3162 if { (eval echo configure:3163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3163 rm -rf conftest*
3164 eval "ac_cv_func_endutent=yes"
3165 else
3166 echo "configure: failed program was:" >&5
3167 cat conftest.$ac_ext >&5
3168 rm -rf conftest*
3169 eval "ac_cv_func_endutent=no"
3171 rm -f conftest*
3174 if eval "test \"`echo '$ac_cv_func_'endutent`\" = yes"; then
3175 echo "$ac_t""yes" 1>&6
3176 cat >> confdefs.h <<\EOF
3177 #define HAVE_ENDUTENT 1
3180 else
3181 echo "$ac_t""no" 1>&6
3182 MISSING="${MISSING}endutent.o "
3185 echo $ac_n "checking for initgroups""... $ac_c" 1>&6
3186 echo "configure:3187: checking for initgroups" >&5
3187 if eval "test \"`echo '$''{'ac_cv_func_initgroups'+set}'`\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3189 else
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3193 /* System header to define __stub macros and hopefully few prototypes,
3194 which can conflict with char initgroups(); below. */
3195 #include <assert.h>
3196 /* Override any gcc2 internal prototype to avoid an error. */
3197 /* We use char because int might match the return type of a gcc2
3198 builtin and then its argument prototype would still apply. */
3199 char initgroups();
3201 int main() {
3203 /* The GNU C library defines this for functions which it implements
3204 to always fail with ENOSYS. Some functions are actually named
3205 something starting with __ and the normal name is an alias. */
3206 #if defined (__stub_initgroups) || defined (__stub___initgroups)
3207 choke me
3208 #else
3209 initgroups();
3210 #endif
3212 ; return 0; }
3214 if { (eval echo configure:3215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3215 rm -rf conftest*
3216 eval "ac_cv_func_initgroups=yes"
3217 else
3218 echo "configure: failed program was:" >&5
3219 cat conftest.$ac_ext >&5
3220 rm -rf conftest*
3221 eval "ac_cv_func_initgroups=no"
3223 rm -f conftest*
3226 if eval "test \"`echo '$ac_cv_func_'initgroups`\" = yes"; then
3227 echo "$ac_t""yes" 1>&6
3228 cat >> confdefs.h <<\EOF
3229 #define HAVE_INITGROUPS 1
3232 else
3233 echo "$ac_t""no" 1>&6
3234 MISSING="${MISSING}initgroups.o "
3237 echo $ac_n "checking for memcmp""... $ac_c" 1>&6
3238 echo "configure:3239: checking for memcmp" >&5
3239 if eval "test \"`echo '$''{'ac_cv_func_memcmp'+set}'`\" = set"; then
3240 echo $ac_n "(cached) $ac_c" 1>&6
3241 else
3242 cat > conftest.$ac_ext <<EOF
3243 #line 3244 "configure"
3244 #include "confdefs.h"
3245 /* System header to define __stub macros and hopefully few prototypes,
3246 which can conflict with char memcmp(); below. */
3247 #include <assert.h>
3248 /* Override any gcc2 internal prototype to avoid an error. */
3249 /* We use char because int might match the return type of a gcc2
3250 builtin and then its argument prototype would still apply. */
3251 char memcmp();
3253 int main() {
3255 /* The GNU C library defines this for functions which it implements
3256 to always fail with ENOSYS. Some functions are actually named
3257 something starting with __ and the normal name is an alias. */
3258 #if defined (__stub_memcmp) || defined (__stub___memcmp)
3259 choke me
3260 #else
3261 memcmp();
3262 #endif
3264 ; return 0; }
3266 if { (eval echo configure:3267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3267 rm -rf conftest*
3268 eval "ac_cv_func_memcmp=yes"
3269 else
3270 echo "configure: failed program was:" >&5
3271 cat conftest.$ac_ext >&5
3272 rm -rf conftest*
3273 eval "ac_cv_func_memcmp=no"
3275 rm -f conftest*
3278 if eval "test \"`echo '$ac_cv_func_'memcmp`\" = yes"; then
3279 echo "$ac_t""yes" 1>&6
3280 cat >> confdefs.h <<\EOF
3281 #define HAVE_MEMCMP 1
3284 else
3285 echo "$ac_t""no" 1>&6
3286 MISSING="${MISSING}memcmp.o "
3289 echo $ac_n "checking for memcpy""... $ac_c" 1>&6
3290 echo "configure:3291: checking for memcpy" >&5
3291 if eval "test \"`echo '$''{'ac_cv_func_memcpy'+set}'`\" = set"; then
3292 echo $ac_n "(cached) $ac_c" 1>&6
3293 else
3294 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3297 /* System header to define __stub macros and hopefully few prototypes,
3298 which can conflict with char memcpy(); below. */
3299 #include <assert.h>
3300 /* Override any gcc2 internal prototype to avoid an error. */
3301 /* We use char because int might match the return type of a gcc2
3302 builtin and then its argument prototype would still apply. */
3303 char memcpy();
3305 int main() {
3307 /* The GNU C library defines this for functions which it implements
3308 to always fail with ENOSYS. Some functions are actually named
3309 something starting with __ and the normal name is an alias. */
3310 #if defined (__stub_memcpy) || defined (__stub___memcpy)
3311 choke me
3312 #else
3313 memcpy();
3314 #endif
3316 ; return 0; }
3318 if { (eval echo configure:3319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3319 rm -rf conftest*
3320 eval "ac_cv_func_memcpy=yes"
3321 else
3322 echo "configure: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3324 rm -rf conftest*
3325 eval "ac_cv_func_memcpy=no"
3327 rm -f conftest*
3330 if eval "test \"`echo '$ac_cv_func_'memcpy`\" = yes"; then
3331 echo "$ac_t""yes" 1>&6
3332 cat >> confdefs.h <<\EOF
3333 #define HAVE_MEMCPY 1
3336 else
3337 echo "$ac_t""no" 1>&6
3338 MISSING="${MISSING}memcpy.o "; for ac_func in bcopy
3340 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3341 echo "configure:3342: checking for $ac_func" >&5
3342 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3343 echo $ac_n "(cached) $ac_c" 1>&6
3344 else
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3348 /* System header to define __stub macros and hopefully few prototypes,
3349 which can conflict with char $ac_func(); below. */
3350 #include <assert.h>
3351 /* Override any gcc2 internal prototype to avoid an error. */
3352 /* We use char because int might match the return type of a gcc2
3353 builtin and then its argument prototype would still apply. */
3354 char $ac_func();
3356 int main() {
3358 /* The GNU C library defines this for functions which it implements
3359 to always fail with ENOSYS. Some functions are actually named
3360 something starting with __ and the normal name is an alias. */
3361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3362 choke me
3363 #else
3364 $ac_func();
3365 #endif
3367 ; return 0; }
3369 if { (eval echo configure:3370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3370 rm -rf conftest*
3371 eval "ac_cv_func_$ac_func=yes"
3372 else
3373 echo "configure: failed program was:" >&5
3374 cat conftest.$ac_ext >&5
3375 rm -rf conftest*
3376 eval "ac_cv_func_$ac_func=no"
3378 rm -f conftest*
3381 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3382 echo "$ac_t""yes" 1>&6
3383 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3384 cat >> confdefs.h <<EOF
3385 #define $ac_tr_func 1
3388 else
3389 echo "$ac_t""no" 1>&6
3391 done
3395 echo $ac_n "checking for memset""... $ac_c" 1>&6
3396 echo "configure:3397: checking for memset" >&5
3397 if eval "test \"`echo '$''{'ac_cv_func_memset'+set}'`\" = set"; then
3398 echo $ac_n "(cached) $ac_c" 1>&6
3399 else
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 /* System header to define __stub macros and hopefully few prototypes,
3404 which can conflict with char memset(); below. */
3405 #include <assert.h>
3406 /* Override any gcc2 internal prototype to avoid an error. */
3407 /* We use char because int might match the return type of a gcc2
3408 builtin and then its argument prototype would still apply. */
3409 char memset();
3411 int main() {
3413 /* The GNU C library defines this for functions which it implements
3414 to always fail with ENOSYS. Some functions are actually named
3415 something starting with __ and the normal name is an alias. */
3416 #if defined (__stub_memset) || defined (__stub___memset)
3417 choke me
3418 #else
3419 memset();
3420 #endif
3422 ; return 0; }
3424 if { (eval echo configure:3425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3425 rm -rf conftest*
3426 eval "ac_cv_func_memset=yes"
3427 else
3428 echo "configure: failed program was:" >&5
3429 cat conftest.$ac_ext >&5
3430 rm -rf conftest*
3431 eval "ac_cv_func_memset=no"
3433 rm -f conftest*
3436 if eval "test \"`echo '$ac_cv_func_'memset`\" = yes"; then
3437 echo "$ac_t""yes" 1>&6
3438 cat >> confdefs.h <<\EOF
3439 #define HAVE_MEMSET 1
3442 else
3443 echo "$ac_t""no" 1>&6
3444 MISSING="${MISSING}memset.o "; for ac_func in bzero
3446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3447 echo "configure:3448: checking for $ac_func" >&5
3448 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3449 echo $ac_n "(cached) $ac_c" 1>&6
3450 else
3451 cat > conftest.$ac_ext <<EOF
3452 #line 3453 "configure"
3453 #include "confdefs.h"
3454 /* System header to define __stub macros and hopefully few prototypes,
3455 which can conflict with char $ac_func(); below. */
3456 #include <assert.h>
3457 /* Override any gcc2 internal prototype to avoid an error. */
3458 /* We use char because int might match the return type of a gcc2
3459 builtin and then its argument prototype would still apply. */
3460 char $ac_func();
3462 int main() {
3464 /* The GNU C library defines this for functions which it implements
3465 to always fail with ENOSYS. Some functions are actually named
3466 something starting with __ and the normal name is an alias. */
3467 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3468 choke me
3469 #else
3470 $ac_func();
3471 #endif
3473 ; return 0; }
3475 if { (eval echo configure:3476: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3476 rm -rf conftest*
3477 eval "ac_cv_func_$ac_func=yes"
3478 else
3479 echo "configure: failed program was:" >&5
3480 cat conftest.$ac_ext >&5
3481 rm -rf conftest*
3482 eval "ac_cv_func_$ac_func=no"
3484 rm -f conftest*
3487 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3488 echo "$ac_t""yes" 1>&6
3489 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3490 cat >> confdefs.h <<EOF
3491 #define $ac_tr_func 1
3494 else
3495 echo "$ac_t""no" 1>&6
3497 done
3501 echo $ac_n "checking for getcwd""... $ac_c" 1>&6
3502 echo "configure:3503: checking for getcwd" >&5
3503 if eval "test \"`echo '$''{'ac_cv_func_getcwd'+set}'`\" = set"; then
3504 echo $ac_n "(cached) $ac_c" 1>&6
3505 else
3506 cat > conftest.$ac_ext <<EOF
3507 #line 3508 "configure"
3508 #include "confdefs.h"
3509 /* System header to define __stub macros and hopefully few prototypes,
3510 which can conflict with char getcwd(); below. */
3511 #include <assert.h>
3512 /* Override any gcc2 internal prototype to avoid an error. */
3513 /* We use char because int might match the return type of a gcc2
3514 builtin and then its argument prototype would still apply. */
3515 char getcwd();
3517 int main() {
3519 /* The GNU C library defines this for functions which it implements
3520 to always fail with ENOSYS. Some functions are actually named
3521 something starting with __ and the normal name is an alias. */
3522 #if defined (__stub_getcwd) || defined (__stub___getcwd)
3523 choke me
3524 #else
3525 getcwd();
3526 #endif
3528 ; return 0; }
3530 if { (eval echo configure:3531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3531 rm -rf conftest*
3532 eval "ac_cv_func_getcwd=yes"
3533 else
3534 echo "configure: failed program was:" >&5
3535 cat conftest.$ac_ext >&5
3536 rm -rf conftest*
3537 eval "ac_cv_func_getcwd=no"
3539 rm -f conftest*
3542 if eval "test \"`echo '$ac_cv_func_'getcwd`\" = yes"; then
3543 echo "$ac_t""yes" 1>&6
3544 cat >> confdefs.h <<\EOF
3545 #define HAVE_GETCWD 1
3548 else
3549 echo "$ac_t""no" 1>&6
3550 MISSING="${MISSING}getcwd.o "; for ac_func in getwd
3552 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3553 echo "configure:3554: checking for $ac_func" >&5
3554 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3555 echo $ac_n "(cached) $ac_c" 1>&6
3556 else
3557 cat > conftest.$ac_ext <<EOF
3558 #line 3559 "configure"
3559 #include "confdefs.h"
3560 /* System header to define __stub macros and hopefully few prototypes,
3561 which can conflict with char $ac_func(); below. */
3562 #include <assert.h>
3563 /* Override any gcc2 internal prototype to avoid an error. */
3564 /* We use char because int might match the return type of a gcc2
3565 builtin and then its argument prototype would still apply. */
3566 char $ac_func();
3568 int main() {
3570 /* The GNU C library defines this for functions which it implements
3571 to always fail with ENOSYS. Some functions are actually named
3572 something starting with __ and the normal name is an alias. */
3573 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3574 choke me
3575 #else
3576 $ac_func();
3577 #endif
3579 ; return 0; }
3581 if { (eval echo configure:3582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3582 rm -rf conftest*
3583 eval "ac_cv_func_$ac_func=yes"
3584 else
3585 echo "configure: failed program was:" >&5
3586 cat conftest.$ac_ext >&5
3587 rm -rf conftest*
3588 eval "ac_cv_func_$ac_func=no"
3590 rm -f conftest*
3593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3594 echo "$ac_t""yes" 1>&6
3595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3596 cat >> confdefs.h <<EOF
3597 #define $ac_tr_func 1
3600 else
3601 echo "$ac_t""no" 1>&6
3603 done
3607 echo $ac_n "checking for getenv""... $ac_c" 1>&6
3608 echo "configure:3609: checking for getenv" >&5
3609 if eval "test \"`echo '$''{'ac_cv_func_getenv'+set}'`\" = set"; then
3610 echo $ac_n "(cached) $ac_c" 1>&6
3611 else
3612 cat > conftest.$ac_ext <<EOF
3613 #line 3614 "configure"
3614 #include "confdefs.h"
3615 /* System header to define __stub macros and hopefully few prototypes,
3616 which can conflict with char getenv(); below. */
3617 #include <assert.h>
3618 /* Override any gcc2 internal prototype to avoid an error. */
3619 /* We use char because int might match the return type of a gcc2
3620 builtin and then its argument prototype would still apply. */
3621 char getenv();
3623 int main() {
3625 /* The GNU C library defines this for functions which it implements
3626 to always fail with ENOSYS. Some functions are actually named
3627 something starting with __ and the normal name is an alias. */
3628 #if defined (__stub_getenv) || defined (__stub___getenv)
3629 choke me
3630 #else
3631 getenv();
3632 #endif
3634 ; return 0; }
3636 if { (eval echo configure:3637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3637 rm -rf conftest*
3638 eval "ac_cv_func_getenv=yes"
3639 else
3640 echo "configure: failed program was:" >&5
3641 cat conftest.$ac_ext >&5
3642 rm -rf conftest*
3643 eval "ac_cv_func_getenv=no"
3645 rm -f conftest*
3648 if eval "test \"`echo '$ac_cv_func_'getenv`\" = yes"; then
3649 echo "$ac_t""yes" 1>&6
3650 cat >> confdefs.h <<\EOF
3651 #define HAVE_GETENV 1
3654 else
3655 echo "$ac_t""no" 1>&6
3656 MISSING="${MISSING}env.o "
3659 echo $ac_n "checking for getutline""... $ac_c" 1>&6
3660 echo "configure:3661: checking for getutline" >&5
3661 if eval "test \"`echo '$''{'ac_cv_func_getutline'+set}'`\" = set"; then
3662 echo $ac_n "(cached) $ac_c" 1>&6
3663 else
3664 cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3667 /* System header to define __stub macros and hopefully few prototypes,
3668 which can conflict with char getutline(); below. */
3669 #include <assert.h>
3670 /* Override any gcc2 internal prototype to avoid an error. */
3671 /* We use char because int might match the return type of a gcc2
3672 builtin and then its argument prototype would still apply. */
3673 char getutline();
3675 int main() {
3677 /* The GNU C library defines this for functions which it implements
3678 to always fail with ENOSYS. Some functions are actually named
3679 something starting with __ and the normal name is an alias. */
3680 #if defined (__stub_getutline) || defined (__stub___getutline)
3681 choke me
3682 #else
3683 getutline();
3684 #endif
3686 ; return 0; }
3688 if { (eval echo configure:3689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3689 rm -rf conftest*
3690 eval "ac_cv_func_getutline=yes"
3691 else
3692 echo "configure: failed program was:" >&5
3693 cat conftest.$ac_ext >&5
3694 rm -rf conftest*
3695 eval "ac_cv_func_getutline=no"
3697 rm -f conftest*
3700 if eval "test \"`echo '$ac_cv_func_'getutline`\" = yes"; then
3701 echo "$ac_t""yes" 1>&6
3702 cat >> confdefs.h <<\EOF
3703 #define HAVE_GETUTLINE 1
3706 else
3707 echo "$ac_t""no" 1>&6
3708 MISSING="${MISSING}getutline.o "; for ac_func in ttyslot
3710 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3711 echo "configure:3712: checking for $ac_func" >&5
3712 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3713 echo $ac_n "(cached) $ac_c" 1>&6
3714 else
3715 cat > conftest.$ac_ext <<EOF
3716 #line 3717 "configure"
3717 #include "confdefs.h"
3718 /* System header to define __stub macros and hopefully few prototypes,
3719 which can conflict with char $ac_func(); below. */
3720 #include <assert.h>
3721 /* Override any gcc2 internal prototype to avoid an error. */
3722 /* We use char because int might match the return type of a gcc2
3723 builtin and then its argument prototype would still apply. */
3724 char $ac_func();
3726 int main() {
3728 /* The GNU C library defines this for functions which it implements
3729 to always fail with ENOSYS. Some functions are actually named
3730 something starting with __ and the normal name is an alias. */
3731 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3732 choke me
3733 #else
3734 $ac_func();
3735 #endif
3737 ; return 0; }
3739 if { (eval echo configure:3740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3740 rm -rf conftest*
3741 eval "ac_cv_func_$ac_func=yes"
3742 else
3743 echo "configure: failed program was:" >&5
3744 cat conftest.$ac_ext >&5
3745 rm -rf conftest*
3746 eval "ac_cv_func_$ac_func=no"
3748 rm -f conftest*
3751 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3752 echo "$ac_t""yes" 1>&6
3753 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3754 cat >> confdefs.h <<EOF
3755 #define $ac_tr_func 1
3758 else
3759 echo "$ac_t""no" 1>&6
3761 done
3765 echo $ac_n "checking for pututline""... $ac_c" 1>&6
3766 echo "configure:3767: checking for pututline" >&5
3767 if eval "test \"`echo '$''{'ac_cv_func_pututline'+set}'`\" = set"; then
3768 echo $ac_n "(cached) $ac_c" 1>&6
3769 else
3770 cat > conftest.$ac_ext <<EOF
3771 #line 3772 "configure"
3772 #include "confdefs.h"
3773 /* System header to define __stub macros and hopefully few prototypes,
3774 which can conflict with char pututline(); below. */
3775 #include <assert.h>
3776 /* Override any gcc2 internal prototype to avoid an error. */
3777 /* We use char because int might match the return type of a gcc2
3778 builtin and then its argument prototype would still apply. */
3779 char pututline();
3781 int main() {
3783 /* The GNU C library defines this for functions which it implements
3784 to always fail with ENOSYS. Some functions are actually named
3785 something starting with __ and the normal name is an alias. */
3786 #if defined (__stub_pututline) || defined (__stub___pututline)
3787 choke me
3788 #else
3789 pututline();
3790 #endif
3792 ; return 0; }
3794 if { (eval echo configure:3795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3795 rm -rf conftest*
3796 eval "ac_cv_func_pututline=yes"
3797 else
3798 echo "configure: failed program was:" >&5
3799 cat conftest.$ac_ext >&5
3800 rm -rf conftest*
3801 eval "ac_cv_func_pututline=no"
3803 rm -f conftest*
3806 if eval "test \"`echo '$ac_cv_func_'pututline`\" = yes"; then
3807 echo "$ac_t""yes" 1>&6
3808 cat >> confdefs.h <<\EOF
3809 #define HAVE_PUTUTLINE 1
3812 else
3813 echo "$ac_t""no" 1>&6
3814 MISSING="${MISSING}pututline.o "; for ac_func in ttyslot
3816 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3817 echo "configure:3818: checking for $ac_func" >&5
3818 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3820 else
3821 cat > conftest.$ac_ext <<EOF
3822 #line 3823 "configure"
3823 #include "confdefs.h"
3824 /* System header to define __stub macros and hopefully few prototypes,
3825 which can conflict with char $ac_func(); below. */
3826 #include <assert.h>
3827 /* Override any gcc2 internal prototype to avoid an error. */
3828 /* We use char because int might match the return type of a gcc2
3829 builtin and then its argument prototype would still apply. */
3830 char $ac_func();
3832 int main() {
3834 /* The GNU C library defines this for functions which it implements
3835 to always fail with ENOSYS. Some functions are actually named
3836 something starting with __ and the normal name is an alias. */
3837 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3838 choke me
3839 #else
3840 $ac_func();
3841 #endif
3843 ; return 0; }
3845 if { (eval echo configure:3846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3846 rm -rf conftest*
3847 eval "ac_cv_func_$ac_func=yes"
3848 else
3849 echo "configure: failed program was:" >&5
3850 cat conftest.$ac_ext >&5
3851 rm -rf conftest*
3852 eval "ac_cv_func_$ac_func=no"
3854 rm -f conftest*
3857 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3858 echo "$ac_t""yes" 1>&6
3859 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3860 cat >> confdefs.h <<EOF
3861 #define $ac_tr_func 1
3864 else
3865 echo "$ac_t""no" 1>&6
3867 done
3871 echo $ac_n "checking for setenv""... $ac_c" 1>&6
3872 echo "configure:3873: checking for setenv" >&5
3873 if eval "test \"`echo '$''{'ac_cv_func_setenv'+set}'`\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3875 else
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3879 /* System header to define __stub macros and hopefully few prototypes,
3880 which can conflict with char setenv(); below. */
3881 #include <assert.h>
3882 /* Override any gcc2 internal prototype to avoid an error. */
3883 /* We use char because int might match the return type of a gcc2
3884 builtin and then its argument prototype would still apply. */
3885 char setenv();
3887 int main() {
3889 /* The GNU C library defines this for functions which it implements
3890 to always fail with ENOSYS. Some functions are actually named
3891 something starting with __ and the normal name is an alias. */
3892 #if defined (__stub_setenv) || defined (__stub___setenv)
3893 choke me
3894 #else
3895 setenv();
3896 #endif
3898 ; return 0; }
3900 if { (eval echo configure:3901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3901 rm -rf conftest*
3902 eval "ac_cv_func_setenv=yes"
3903 else
3904 echo "configure: failed program was:" >&5
3905 cat conftest.$ac_ext >&5
3906 rm -rf conftest*
3907 eval "ac_cv_func_setenv=no"
3909 rm -f conftest*
3912 if eval "test \"`echo '$ac_cv_func_'setenv`\" = yes"; then
3913 echo "$ac_t""yes" 1>&6
3914 cat >> confdefs.h <<\EOF
3915 #define HAVE_SETENV 1
3918 else
3919 echo "$ac_t""no" 1>&6
3920 MISSING="${MISSING}env.o "
3923 echo $ac_n "checking for setegid""... $ac_c" 1>&6
3924 echo "configure:3925: checking for setegid" >&5
3925 if eval "test \"`echo '$''{'ac_cv_func_setegid'+set}'`\" = set"; then
3926 echo $ac_n "(cached) $ac_c" 1>&6
3927 else
3928 cat > conftest.$ac_ext <<EOF
3929 #line 3930 "configure"
3930 #include "confdefs.h"
3931 /* System header to define __stub macros and hopefully few prototypes,
3932 which can conflict with char setegid(); below. */
3933 #include <assert.h>
3934 /* Override any gcc2 internal prototype to avoid an error. */
3935 /* We use char because int might match the return type of a gcc2
3936 builtin and then its argument prototype would still apply. */
3937 char setegid();
3939 int main() {
3941 /* The GNU C library defines this for functions which it implements
3942 to always fail with ENOSYS. Some functions are actually named
3943 something starting with __ and the normal name is an alias. */
3944 #if defined (__stub_setegid) || defined (__stub___setegid)
3945 choke me
3946 #else
3947 setegid();
3948 #endif
3950 ; return 0; }
3952 if { (eval echo configure:3953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3953 rm -rf conftest*
3954 eval "ac_cv_func_setegid=yes"
3955 else
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3958 rm -rf conftest*
3959 eval "ac_cv_func_setegid=no"
3961 rm -f conftest*
3964 if eval "test \"`echo '$ac_cv_func_'setegid`\" = yes"; then
3965 echo "$ac_t""yes" 1>&6
3966 cat >> confdefs.h <<\EOF
3967 #define HAVE_SETEGID 1
3970 else
3971 echo "$ac_t""no" 1>&6
3972 MISSING="${MISSING}setegid.o "; for ac_func in setregid setresgid
3974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3975 echo "configure:3976: checking for $ac_func" >&5
3976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3977 echo $ac_n "(cached) $ac_c" 1>&6
3978 else
3979 cat > conftest.$ac_ext <<EOF
3980 #line 3981 "configure"
3981 #include "confdefs.h"
3982 /* System header to define __stub macros and hopefully few prototypes,
3983 which can conflict with char $ac_func(); below. */
3984 #include <assert.h>
3985 /* Override any gcc2 internal prototype to avoid an error. */
3986 /* We use char because int might match the return type of a gcc2
3987 builtin and then its argument prototype would still apply. */
3988 char $ac_func();
3990 int main() {
3992 /* The GNU C library defines this for functions which it implements
3993 to always fail with ENOSYS. Some functions are actually named
3994 something starting with __ and the normal name is an alias. */
3995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3996 choke me
3997 #else
3998 $ac_func();
3999 #endif
4001 ; return 0; }
4003 if { (eval echo configure:4004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4004 rm -rf conftest*
4005 eval "ac_cv_func_$ac_func=yes"
4006 else
4007 echo "configure: failed program was:" >&5
4008 cat conftest.$ac_ext >&5
4009 rm -rf conftest*
4010 eval "ac_cv_func_$ac_func=no"
4012 rm -f conftest*
4015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4016 echo "$ac_t""yes" 1>&6
4017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4018 cat >> confdefs.h <<EOF
4019 #define $ac_tr_func 1
4022 else
4023 echo "$ac_t""no" 1>&6
4025 done
4029 echo $ac_n "checking for seteuid""... $ac_c" 1>&6
4030 echo "configure:4031: checking for seteuid" >&5
4031 if eval "test \"`echo '$''{'ac_cv_func_seteuid'+set}'`\" = set"; then
4032 echo $ac_n "(cached) $ac_c" 1>&6
4033 else
4034 cat > conftest.$ac_ext <<EOF
4035 #line 4036 "configure"
4036 #include "confdefs.h"
4037 /* System header to define __stub macros and hopefully few prototypes,
4038 which can conflict with char seteuid(); below. */
4039 #include <assert.h>
4040 /* Override any gcc2 internal prototype to avoid an error. */
4041 /* We use char because int might match the return type of a gcc2
4042 builtin and then its argument prototype would still apply. */
4043 char seteuid();
4045 int main() {
4047 /* The GNU C library defines this for functions which it implements
4048 to always fail with ENOSYS. Some functions are actually named
4049 something starting with __ and the normal name is an alias. */
4050 #if defined (__stub_seteuid) || defined (__stub___seteuid)
4051 choke me
4052 #else
4053 seteuid();
4054 #endif
4056 ; return 0; }
4058 if { (eval echo configure:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4059 rm -rf conftest*
4060 eval "ac_cv_func_seteuid=yes"
4061 else
4062 echo "configure: failed program was:" >&5
4063 cat conftest.$ac_ext >&5
4064 rm -rf conftest*
4065 eval "ac_cv_func_seteuid=no"
4067 rm -f conftest*
4070 if eval "test \"`echo '$ac_cv_func_'seteuid`\" = yes"; then
4071 echo "$ac_t""yes" 1>&6
4072 cat >> confdefs.h <<\EOF
4073 #define HAVE_SETEUID 1
4076 else
4077 echo "$ac_t""no" 1>&6
4078 MISSING="${MISSING}seteuid.o "; for ac_func in setreuid setresuid
4080 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4081 echo "configure:4082: checking for $ac_func" >&5
4082 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4083 echo $ac_n "(cached) $ac_c" 1>&6
4084 else
4085 cat > conftest.$ac_ext <<EOF
4086 #line 4087 "configure"
4087 #include "confdefs.h"
4088 /* System header to define __stub macros and hopefully few prototypes,
4089 which can conflict with char $ac_func(); below. */
4090 #include <assert.h>
4091 /* Override any gcc2 internal prototype to avoid an error. */
4092 /* We use char because int might match the return type of a gcc2
4093 builtin and then its argument prototype would still apply. */
4094 char $ac_func();
4096 int main() {
4098 /* The GNU C library defines this for functions which it implements
4099 to always fail with ENOSYS. Some functions are actually named
4100 something starting with __ and the normal name is an alias. */
4101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4102 choke me
4103 #else
4104 $ac_func();
4105 #endif
4107 ; return 0; }
4109 if { (eval echo configure:4110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4110 rm -rf conftest*
4111 eval "ac_cv_func_$ac_func=yes"
4112 else
4113 echo "configure: failed program was:" >&5
4114 cat conftest.$ac_ext >&5
4115 rm -rf conftest*
4116 eval "ac_cv_func_$ac_func=no"
4118 rm -f conftest*
4121 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4122 echo "$ac_t""yes" 1>&6
4123 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4124 cat >> confdefs.h <<EOF
4125 #define $ac_tr_func 1
4128 else
4129 echo "$ac_t""no" 1>&6
4131 done
4135 echo $ac_n "checking for setutent""... $ac_c" 1>&6
4136 echo "configure:4137: checking for setutent" >&5
4137 if eval "test \"`echo '$''{'ac_cv_func_setutent'+set}'`\" = set"; then
4138 echo $ac_n "(cached) $ac_c" 1>&6
4139 else
4140 cat > conftest.$ac_ext <<EOF
4141 #line 4142 "configure"
4142 #include "confdefs.h"
4143 /* System header to define __stub macros and hopefully few prototypes,
4144 which can conflict with char setutent(); below. */
4145 #include <assert.h>
4146 /* Override any gcc2 internal prototype to avoid an error. */
4147 /* We use char because int might match the return type of a gcc2
4148 builtin and then its argument prototype would still apply. */
4149 char setutent();
4151 int main() {
4153 /* The GNU C library defines this for functions which it implements
4154 to always fail with ENOSYS. Some functions are actually named
4155 something starting with __ and the normal name is an alias. */
4156 #if defined (__stub_setutent) || defined (__stub___setutent)
4157 choke me
4158 #else
4159 setutent();
4160 #endif
4162 ; return 0; }
4164 if { (eval echo configure:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4165 rm -rf conftest*
4166 eval "ac_cv_func_setutent=yes"
4167 else
4168 echo "configure: failed program was:" >&5
4169 cat conftest.$ac_ext >&5
4170 rm -rf conftest*
4171 eval "ac_cv_func_setutent=no"
4173 rm -f conftest*
4176 if eval "test \"`echo '$ac_cv_func_'setutent`\" = yes"; then
4177 echo "$ac_t""yes" 1>&6
4178 cat >> confdefs.h <<\EOF
4179 #define HAVE_SETUTENT 1
4182 else
4183 echo "$ac_t""no" 1>&6
4184 MISSING="${MISSING}setutent.o "
4187 echo $ac_n "checking for sigprocmask""... $ac_c" 1>&6
4188 echo "configure:4189: checking for sigprocmask" >&5
4189 if eval "test \"`echo '$''{'ac_cv_func_sigprocmask'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4191 else
4192 cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4195 /* System header to define __stub macros and hopefully few prototypes,
4196 which can conflict with char sigprocmask(); below. */
4197 #include <assert.h>
4198 /* Override any gcc2 internal prototype to avoid an error. */
4199 /* We use char because int might match the return type of a gcc2
4200 builtin and then its argument prototype would still apply. */
4201 char sigprocmask();
4203 int main() {
4205 /* The GNU C library defines this for functions which it implements
4206 to always fail with ENOSYS. Some functions are actually named
4207 something starting with __ and the normal name is an alias. */
4208 #if defined (__stub_sigprocmask) || defined (__stub___sigprocmask)
4209 choke me
4210 #else
4211 sigprocmask();
4212 #endif
4214 ; return 0; }
4216 if { (eval echo configure:4217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4217 rm -rf conftest*
4218 eval "ac_cv_func_sigprocmask=yes"
4219 else
4220 echo "configure: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4222 rm -rf conftest*
4223 eval "ac_cv_func_sigprocmask=no"
4225 rm -f conftest*
4228 if eval "test \"`echo '$ac_cv_func_'sigprocmask`\" = yes"; then
4229 echo "$ac_t""yes" 1>&6
4230 cat >> confdefs.h <<\EOF
4231 #define HAVE_SIGPROCMASK 1
4234 else
4235 echo "$ac_t""no" 1>&6
4236 MISSING="${MISSING}sigprocmask.o "; for ac_func in sigblock sigsetmask
4238 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4239 echo "configure:4240: checking for $ac_func" >&5
4240 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4242 else
4243 cat > conftest.$ac_ext <<EOF
4244 #line 4245 "configure"
4245 #include "confdefs.h"
4246 /* System header to define __stub macros and hopefully few prototypes,
4247 which can conflict with char $ac_func(); below. */
4248 #include <assert.h>
4249 /* Override any gcc2 internal prototype to avoid an error. */
4250 /* We use char because int might match the return type of a gcc2
4251 builtin and then its argument prototype would still apply. */
4252 char $ac_func();
4254 int main() {
4256 /* The GNU C library defines this for functions which it implements
4257 to always fail with ENOSYS. Some functions are actually named
4258 something starting with __ and the normal name is an alias. */
4259 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4260 choke me
4261 #else
4262 $ac_func();
4263 #endif
4265 ; return 0; }
4267 if { (eval echo configure:4268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4268 rm -rf conftest*
4269 eval "ac_cv_func_$ac_func=yes"
4270 else
4271 echo "configure: failed program was:" >&5
4272 cat conftest.$ac_ext >&5
4273 rm -rf conftest*
4274 eval "ac_cv_func_$ac_func=no"
4276 rm -f conftest*
4279 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4280 echo "$ac_t""yes" 1>&6
4281 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4282 cat >> confdefs.h <<EOF
4283 #define $ac_tr_func 1
4286 else
4287 echo "$ac_t""no" 1>&6
4289 done
4293 echo $ac_n "checking for strchr""... $ac_c" 1>&6
4294 echo "configure:4295: checking for strchr" >&5
4295 if eval "test \"`echo '$''{'ac_cv_func_strchr'+set}'`\" = set"; then
4296 echo $ac_n "(cached) $ac_c" 1>&6
4297 else
4298 cat > conftest.$ac_ext <<EOF
4299 #line 4300 "configure"
4300 #include "confdefs.h"
4301 /* System header to define __stub macros and hopefully few prototypes,
4302 which can conflict with char strchr(); below. */
4303 #include <assert.h>
4304 /* Override any gcc2 internal prototype to avoid an error. */
4305 /* We use char because int might match the return type of a gcc2
4306 builtin and then its argument prototype would still apply. */
4307 char strchr();
4309 int main() {
4311 /* The GNU C library defines this for functions which it implements
4312 to always fail with ENOSYS. Some functions are actually named
4313 something starting with __ and the normal name is an alias. */
4314 #if defined (__stub_strchr) || defined (__stub___strchr)
4315 choke me
4316 #else
4317 strchr();
4318 #endif
4320 ; return 0; }
4322 if { (eval echo configure:4323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4323 rm -rf conftest*
4324 eval "ac_cv_func_strchr=yes"
4325 else
4326 echo "configure: failed program was:" >&5
4327 cat conftest.$ac_ext >&5
4328 rm -rf conftest*
4329 eval "ac_cv_func_strchr=no"
4331 rm -f conftest*
4334 if eval "test \"`echo '$ac_cv_func_'strchr`\" = yes"; then
4335 echo "$ac_t""yes" 1>&6
4336 cat >> confdefs.h <<\EOF
4337 #define HAVE_STRCHR 1
4340 else
4341 echo "$ac_t""no" 1>&6
4342 MISSING="${MISSING}strchr.o "; for ac_func in index
4344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4345 echo "configure:4346: checking for $ac_func" >&5
4346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4347 echo $ac_n "(cached) $ac_c" 1>&6
4348 else
4349 cat > conftest.$ac_ext <<EOF
4350 #line 4351 "configure"
4351 #include "confdefs.h"
4352 /* System header to define __stub macros and hopefully few prototypes,
4353 which can conflict with char $ac_func(); below. */
4354 #include <assert.h>
4355 /* Override any gcc2 internal prototype to avoid an error. */
4356 /* We use char because int might match the return type of a gcc2
4357 builtin and then its argument prototype would still apply. */
4358 char $ac_func();
4360 int main() {
4362 /* The GNU C library defines this for functions which it implements
4363 to always fail with ENOSYS. Some functions are actually named
4364 something starting with __ and the normal name is an alias. */
4365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4366 choke me
4367 #else
4368 $ac_func();
4369 #endif
4371 ; return 0; }
4373 if { (eval echo configure:4374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4374 rm -rf conftest*
4375 eval "ac_cv_func_$ac_func=yes"
4376 else
4377 echo "configure: failed program was:" >&5
4378 cat conftest.$ac_ext >&5
4379 rm -rf conftest*
4380 eval "ac_cv_func_$ac_func=no"
4382 rm -f conftest*
4385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4386 echo "$ac_t""yes" 1>&6
4387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4388 cat >> confdefs.h <<EOF
4389 #define $ac_tr_func 1
4392 else
4393 echo "$ac_t""no" 1>&6
4395 done
4399 echo $ac_n "checking for strrchr""... $ac_c" 1>&6
4400 echo "configure:4401: checking for strrchr" >&5
4401 if eval "test \"`echo '$''{'ac_cv_func_strrchr'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4403 else
4404 cat > conftest.$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4407 /* System header to define __stub macros and hopefully few prototypes,
4408 which can conflict with char strrchr(); below. */
4409 #include <assert.h>
4410 /* Override any gcc2 internal prototype to avoid an error. */
4411 /* We use char because int might match the return type of a gcc2
4412 builtin and then its argument prototype would still apply. */
4413 char strrchr();
4415 int main() {
4417 /* The GNU C library defines this for functions which it implements
4418 to always fail with ENOSYS. Some functions are actually named
4419 something starting with __ and the normal name is an alias. */
4420 #if defined (__stub_strrchr) || defined (__stub___strrchr)
4421 choke me
4422 #else
4423 strrchr();
4424 #endif
4426 ; return 0; }
4428 if { (eval echo configure:4429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4429 rm -rf conftest*
4430 eval "ac_cv_func_strrchr=yes"
4431 else
4432 echo "configure: failed program was:" >&5
4433 cat conftest.$ac_ext >&5
4434 rm -rf conftest*
4435 eval "ac_cv_func_strrchr=no"
4437 rm -f conftest*
4440 if eval "test \"`echo '$ac_cv_func_'strrchr`\" = yes"; then
4441 echo "$ac_t""yes" 1>&6
4442 cat >> confdefs.h <<\EOF
4443 #define HAVE_STRRCHR 1
4446 else
4447 echo "$ac_t""no" 1>&6
4448 MISSING="${MISSING}strrchr.o "; for ac_func in rindex
4450 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4451 echo "configure:4452: checking for $ac_func" >&5
4452 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4453 echo $ac_n "(cached) $ac_c" 1>&6
4454 else
4455 cat > conftest.$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4458 /* System header to define __stub macros and hopefully few prototypes,
4459 which can conflict with char $ac_func(); below. */
4460 #include <assert.h>
4461 /* Override any gcc2 internal prototype to avoid an error. */
4462 /* We use char because int might match the return type of a gcc2
4463 builtin and then its argument prototype would still apply. */
4464 char $ac_func();
4466 int main() {
4468 /* The GNU C library defines this for functions which it implements
4469 to always fail with ENOSYS. Some functions are actually named
4470 something starting with __ and the normal name is an alias. */
4471 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4472 choke me
4473 #else
4474 $ac_func();
4475 #endif
4477 ; return 0; }
4479 if { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4480 rm -rf conftest*
4481 eval "ac_cv_func_$ac_func=yes"
4482 else
4483 echo "configure: failed program was:" >&5
4484 cat conftest.$ac_ext >&5
4485 rm -rf conftest*
4486 eval "ac_cv_func_$ac_func=no"
4488 rm -f conftest*
4491 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4492 echo "$ac_t""yes" 1>&6
4493 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4494 cat >> confdefs.h <<EOF
4495 #define $ac_tr_func 1
4498 else
4499 echo "$ac_t""no" 1>&6
4501 done
4505 echo $ac_n "checking for strtoul""... $ac_c" 1>&6
4506 echo "configure:4507: checking for strtoul" >&5
4507 if eval "test \"`echo '$''{'ac_cv_func_strtoul'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4509 else
4510 cat > conftest.$ac_ext <<EOF
4511 #line 4512 "configure"
4512 #include "confdefs.h"
4513 /* System header to define __stub macros and hopefully few prototypes,
4514 which can conflict with char strtoul(); below. */
4515 #include <assert.h>
4516 /* Override any gcc2 internal prototype to avoid an error. */
4517 /* We use char because int might match the return type of a gcc2
4518 builtin and then its argument prototype would still apply. */
4519 char strtoul();
4521 int main() {
4523 /* The GNU C library defines this for functions which it implements
4524 to always fail with ENOSYS. Some functions are actually named
4525 something starting with __ and the normal name is an alias. */
4526 #if defined (__stub_strtoul) || defined (__stub___strtoul)
4527 choke me
4528 #else
4529 strtoul();
4530 #endif
4532 ; return 0; }
4534 if { (eval echo configure:4535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4535 rm -rf conftest*
4536 eval "ac_cv_func_strtoul=yes"
4537 else
4538 echo "configure: failed program was:" >&5
4539 cat conftest.$ac_ext >&5
4540 rm -rf conftest*
4541 eval "ac_cv_func_strtoul=no"
4543 rm -f conftest*
4546 if eval "test \"`echo '$ac_cv_func_'strtoul`\" = yes"; then
4547 echo "$ac_t""yes" 1>&6
4548 cat >> confdefs.h <<\EOF
4549 #define HAVE_STRTOUL 1
4552 else
4553 echo "$ac_t""no" 1>&6
4554 MISSING="${MISSING}strtoul.o "
4557 echo $ac_n "checking for sysconf""... $ac_c" 1>&6
4558 echo "configure:4559: checking for sysconf" >&5
4559 if eval "test \"`echo '$''{'ac_cv_func_sysconf'+set}'`\" = set"; then
4560 echo $ac_n "(cached) $ac_c" 1>&6
4561 else
4562 cat > conftest.$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4565 /* System header to define __stub macros and hopefully few prototypes,
4566 which can conflict with char sysconf(); below. */
4567 #include <assert.h>
4568 /* Override any gcc2 internal prototype to avoid an error. */
4569 /* We use char because int might match the return type of a gcc2
4570 builtin and then its argument prototype would still apply. */
4571 char sysconf();
4573 int main() {
4575 /* The GNU C library defines this for functions which it implements
4576 to always fail with ENOSYS. Some functions are actually named
4577 something starting with __ and the normal name is an alias. */
4578 #if defined (__stub_sysconf) || defined (__stub___sysconf)
4579 choke me
4580 #else
4581 sysconf();
4582 #endif
4584 ; return 0; }
4586 if { (eval echo configure:4587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4587 rm -rf conftest*
4588 eval "ac_cv_func_sysconf=yes"
4589 else
4590 echo "configure: failed program was:" >&5
4591 cat conftest.$ac_ext >&5
4592 rm -rf conftest*
4593 eval "ac_cv_func_sysconf=no"
4595 rm -f conftest*
4598 if eval "test \"`echo '$ac_cv_func_'sysconf`\" = yes"; then
4599 echo "$ac_t""yes" 1>&6
4600 cat >> confdefs.h <<\EOF
4601 #define HAVE_SYSCONF 1
4604 else
4605 echo "$ac_t""no" 1>&6
4606 MISSING="${MISSING}sysconf.o "; for ac_func in getdtablesize
4608 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4609 echo "configure:4610: checking for $ac_func" >&5
4610 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4611 echo $ac_n "(cached) $ac_c" 1>&6
4612 else
4613 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4616 /* System header to define __stub macros and hopefully few prototypes,
4617 which can conflict with char $ac_func(); below. */
4618 #include <assert.h>
4619 /* Override any gcc2 internal prototype to avoid an error. */
4620 /* We use char because int might match the return type of a gcc2
4621 builtin and then its argument prototype would still apply. */
4622 char $ac_func();
4624 int main() {
4626 /* The GNU C library defines this for functions which it implements
4627 to always fail with ENOSYS. Some functions are actually named
4628 something starting with __ and the normal name is an alias. */
4629 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4630 choke me
4631 #else
4632 $ac_func();
4633 #endif
4635 ; return 0; }
4637 if { (eval echo configure:4638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4638 rm -rf conftest*
4639 eval "ac_cv_func_$ac_func=yes"
4640 else
4641 echo "configure: failed program was:" >&5
4642 cat conftest.$ac_ext >&5
4643 rm -rf conftest*
4644 eval "ac_cv_func_$ac_func=no"
4646 rm -f conftest*
4649 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4650 echo "$ac_t""yes" 1>&6
4651 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4652 cat >> confdefs.h <<EOF
4653 #define $ac_tr_func 1
4656 else
4657 echo "$ac_t""no" 1>&6
4659 done
4663 echo $ac_n "checking for uname""... $ac_c" 1>&6
4664 echo "configure:4665: checking for uname" >&5
4665 if eval "test \"`echo '$''{'ac_cv_func_uname'+set}'`\" = set"; then
4666 echo $ac_n "(cached) $ac_c" 1>&6
4667 else
4668 cat > conftest.$ac_ext <<EOF
4669 #line 4670 "configure"
4670 #include "confdefs.h"
4671 /* System header to define __stub macros and hopefully few prototypes,
4672 which can conflict with char uname(); below. */
4673 #include <assert.h>
4674 /* Override any gcc2 internal prototype to avoid an error. */
4675 /* We use char because int might match the return type of a gcc2
4676 builtin and then its argument prototype would still apply. */
4677 char uname();
4679 int main() {
4681 /* The GNU C library defines this for functions which it implements
4682 to always fail with ENOSYS. Some functions are actually named
4683 something starting with __ and the normal name is an alias. */
4684 #if defined (__stub_uname) || defined (__stub___uname)
4685 choke me
4686 #else
4687 uname();
4688 #endif
4690 ; return 0; }
4692 if { (eval echo configure:4693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4693 rm -rf conftest*
4694 eval "ac_cv_func_uname=yes"
4695 else
4696 echo "configure: failed program was:" >&5
4697 cat conftest.$ac_ext >&5
4698 rm -rf conftest*
4699 eval "ac_cv_func_uname=no"
4701 rm -f conftest*
4704 if eval "test \"`echo '$ac_cv_func_'uname`\" = yes"; then
4705 echo "$ac_t""yes" 1>&6
4706 cat >> confdefs.h <<\EOF
4707 #define HAVE_UNAME 1
4710 else
4711 echo "$ac_t""no" 1>&6
4712 MISSING="${MISSING}uname.o "; for ac_func in gethostname
4714 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4715 echo "configure:4716: checking for $ac_func" >&5
4716 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4717 echo $ac_n "(cached) $ac_c" 1>&6
4718 else
4719 cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4722 /* System header to define __stub macros and hopefully few prototypes,
4723 which can conflict with char $ac_func(); below. */
4724 #include <assert.h>
4725 /* Override any gcc2 internal prototype to avoid an error. */
4726 /* We use char because int might match the return type of a gcc2
4727 builtin and then its argument prototype would still apply. */
4728 char $ac_func();
4730 int main() {
4732 /* The GNU C library defines this for functions which it implements
4733 to always fail with ENOSYS. Some functions are actually named
4734 something starting with __ and the normal name is an alias. */
4735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4736 choke me
4737 #else
4738 $ac_func();
4739 #endif
4741 ; return 0; }
4743 if { (eval echo configure:4744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4744 rm -rf conftest*
4745 eval "ac_cv_func_$ac_func=yes"
4746 else
4747 echo "configure: failed program was:" >&5
4748 cat conftest.$ac_ext >&5
4749 rm -rf conftest*
4750 eval "ac_cv_func_$ac_func=no"
4752 rm -f conftest*
4755 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4756 echo "$ac_t""yes" 1>&6
4757 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4758 cat >> confdefs.h <<EOF
4759 #define $ac_tr_func 1
4762 else
4763 echo "$ac_t""no" 1>&6
4765 done
4769 echo $ac_n "checking for unsetenv""... $ac_c" 1>&6
4770 echo "configure:4771: checking for unsetenv" >&5
4771 if eval "test \"`echo '$''{'ac_cv_func_unsetenv'+set}'`\" = set"; then
4772 echo $ac_n "(cached) $ac_c" 1>&6
4773 else
4774 cat > conftest.$ac_ext <<EOF
4775 #line 4776 "configure"
4776 #include "confdefs.h"
4777 /* System header to define __stub macros and hopefully few prototypes,
4778 which can conflict with char unsetenv(); below. */
4779 #include <assert.h>
4780 /* Override any gcc2 internal prototype to avoid an error. */
4781 /* We use char because int might match the return type of a gcc2
4782 builtin and then its argument prototype would still apply. */
4783 char unsetenv();
4785 int main() {
4787 /* The GNU C library defines this for functions which it implements
4788 to always fail with ENOSYS. Some functions are actually named
4789 something starting with __ and the normal name is an alias. */
4790 #if defined (__stub_unsetenv) || defined (__stub___unsetenv)
4791 choke me
4792 #else
4793 unsetenv();
4794 #endif
4796 ; return 0; }
4798 if { (eval echo configure:4799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4799 rm -rf conftest*
4800 eval "ac_cv_func_unsetenv=yes"
4801 else
4802 echo "configure: failed program was:" >&5
4803 cat conftest.$ac_ext >&5
4804 rm -rf conftest*
4805 eval "ac_cv_func_unsetenv=no"
4807 rm -f conftest*
4810 if eval "test \"`echo '$ac_cv_func_'unsetenv`\" = yes"; then
4811 echo "$ac_t""yes" 1>&6
4812 cat >> confdefs.h <<\EOF
4813 #define HAVE_UNSETENV 1
4816 else
4817 echo "$ac_t""no" 1>&6
4818 MISSING="${MISSING}env.o "
4823 echo $ac_n "checking for nonstandard gettimeofday""... $ac_c" 1>&6
4824 echo "configure:4825: checking for nonstandard gettimeofday" >&5
4825 cat > conftest.$ac_ext <<EOF
4826 #line 4827 "configure"
4827 #include "confdefs.h"
4829 #if HAVE_SYS_TIME_H
4830 #include <sys/time.h>
4831 #endif /* HAVE_SYS_TIME_H */
4832 #if HAVE_UNISTD_H
4833 #include <unistd.h>
4834 #endif /* HAVE_UNISTD_H */
4836 int main() {
4837 struct timeval tv;
4838 gettimeofday(&tv, NULL)
4839 ; return 0; }
4841 if { (eval echo configure:4842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4842 rm -rf conftest*
4843 echo "$ac_t""no" 1>&6
4844 else
4845 echo "configure: failed program was:" >&5
4846 cat conftest.$ac_ext >&5
4847 rm -rf conftest*
4848 echo "$ac_t""maybe" 1>&6 cat > conftest.$ac_ext <<EOF
4849 #line 4850 "configure"
4850 #include "confdefs.h"
4852 #if HAVE_SYS_TIME_H
4853 #include <sys/time.h>
4854 #endif /* HAVE_SYS_TIME_H */
4855 #if HAVE_UNISTD_H
4856 #include <unistd.h>
4857 #endif /* HAVE_UNISTD_H */
4859 int main() {
4860 struct timeval tv;
4861 gettimeofday(&tv)
4862 ; return 0; }
4864 if { (eval echo configure:4865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4865 rm -rf conftest*
4866 cat >> confdefs.h <<\EOF
4867 #define HAVE_ONE_ARG_GETTIMEOFDAY 1
4869 echo "$ac_t""yes" 1>&6
4870 else
4871 echo "configure: failed program was:" >&5
4872 cat conftest.$ac_ext >&5
4873 rm -rf conftest*
4874 echo "$ac_t""no" 1>&6
4876 rm -f conftest*
4878 rm -f conftest*
4880 # Munge out LOCALBIN and LOCALMAN in canonical (no bletch) form
4881 trap '' 1 2 15
4882 cat > confcache <<\EOF
4883 # This file is a shell script that caches the results of configure
4884 # tests run on this system so they can be shared between configure
4885 # scripts and configure runs. It is not useful on other systems.
4886 # If it contains results you don't want to keep, you may remove or edit it.
4888 # By default, configure uses ./config.cache as the cache file,
4889 # creating it if it does not exist already. You can give configure
4890 # the --cache-file=FILE option to use a different cache file; that is
4891 # what configure does when it calls configure scripts in
4892 # subdirectories, so they share the cache.
4893 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4894 # config.status only pays attention to the cache file if you give it the
4895 # --recheck option to rerun configure.
4898 # The following way of writing the cache mishandles newlines in values,
4899 # but we know of no workaround that is simple, portable, and efficient.
4900 # So, don't put newlines in cache variables' values.
4901 # Ultrix sh set writes to stderr and can't be redirected directly,
4902 # and sets the high bit in the cache file unless we assign to the vars.
4903 (set) 2>&1 |
4904 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4905 *ac_space=\ *)
4906 # `set' does not quote correctly, so add quotes (double-quote substitution
4907 # turns \\\\ into \\, and sed turns \\ into \).
4908 sed -n \
4909 -e "s/'/'\\\\''/g" \
4910 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4913 # `set' quotes correctly as required by POSIX, so do not add quotes.
4914 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4916 esac >> confcache
4917 if cmp -s $cache_file confcache; then
4919 else
4920 if test -w $cache_file; then
4921 echo "updating cache $cache_file"
4922 cat confcache > $cache_file
4923 else
4924 echo "not updating unwritable cache $cache_file"
4927 rm -f confcache
4929 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4931 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4932 # Let make expand exec_prefix.
4933 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4935 # Any assignment to VPATH causes Sun make to only execute
4936 # the first set of double-colon rules, so remove it if not needed.
4937 # If there is a colon in the path, we need to keep it.
4938 if test "x$srcdir" = x.; then
4939 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4942 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4944 DEFS=-DHAVE_CONFIG_H
4946 # Without the "./", some shells look in PATH for config.status.
4947 : ${CONFIG_STATUS=./config.status}
4949 echo creating $CONFIG_STATUS
4950 rm -f $CONFIG_STATUS
4951 cat > $CONFIG_STATUS <<EOF
4952 #! /bin/sh
4953 # Generated automatically by configure.
4954 # Run this file to recreate the current configuration.
4955 # This directory was configured as follows,
4956 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4958 # $0 $ac_configure_args
4960 # Compiler output produced by configure, useful for debugging
4961 # configure, is in ./config.log if it exists.
4963 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4964 for ac_option
4966 case "\$ac_option" in
4967 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4968 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4969 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4970 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4971 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4972 exit 0 ;;
4973 -help | --help | --hel | --he | --h)
4974 echo "\$ac_cs_usage"; exit 0 ;;
4975 *) echo "\$ac_cs_usage"; exit 1 ;;
4976 esac
4977 done
4979 ac_given_srcdir=$srcdir
4981 trap 'rm -fr `echo "configure.munger libmissing/Makefile libopie/Makefile Makefile.munge:Makefile.in config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4983 cat >> $CONFIG_STATUS <<EOF
4985 # Protect against being on the right side of a sed subst in config.status.
4986 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4987 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4988 $ac_vpsub
4989 $extrasub
4990 s%@SHELL@%$SHELL%g
4991 s%@CFLAGS@%$CFLAGS%g
4992 s%@CPPFLAGS@%$CPPFLAGS%g
4993 s%@CXXFLAGS@%$CXXFLAGS%g
4994 s%@FFLAGS@%$FFLAGS%g
4995 s%@DEFS@%$DEFS%g
4996 s%@LDFLAGS@%$LDFLAGS%g
4997 s%@LIBS@%$LIBS%g
4998 s%@exec_prefix@%$exec_prefix%g
4999 s%@prefix@%$prefix%g
5000 s%@program_transform_name@%$program_transform_name%g
5001 s%@bindir@%$bindir%g
5002 s%@sbindir@%$sbindir%g
5003 s%@libexecdir@%$libexecdir%g
5004 s%@datadir@%$datadir%g
5005 s%@sysconfdir@%$sysconfdir%g
5006 s%@sharedstatedir@%$sharedstatedir%g
5007 s%@localstatedir@%$localstatedir%g
5008 s%@libdir@%$libdir%g
5009 s%@includedir@%$includedir%g
5010 s%@oldincludedir@%$oldincludedir%g
5011 s%@infodir@%$infodir%g
5012 s%@mandir@%$mandir%g
5013 s%@ACCESS_FILE@%$ACCESS_FILE%g
5014 s%@LOCK_DIR@%$LOCK_DIR%g
5015 s%@OPIEAUTO@%$OPIEAUTO%g
5016 s%@CC@%$CC%g
5017 s%@CPP@%$CPP%g
5018 s%@LN_S@%$LN_S%g
5019 s%@RANLIB@%$RANLIB%g
5020 s%@YACC@%$YACC%g
5021 s%@CHOWN@%$CHOWN%g
5022 s%@SU@%$SU%g
5023 s%@ALT_SU@%$ALT_SU%g
5024 s%@SCHEME@%$SCHEME%g
5025 s%@LOGIN@%$LOGIN%g
5026 s%@FTPD@%$FTPD%g
5027 s%@INFTPD@%$INFTPD%g
5028 s%@EXISTS@%$EXISTS%g
5029 s%@MKDIR@%$MKDIR%g
5030 s%@LIBOBJS@%$LIBOBJS%g
5031 s%@ALLOCA@%$ALLOCA%g
5032 s%@MISSING@%$MISSING%g
5034 CEOF
5037 cat >> $CONFIG_STATUS <<\EOF
5039 # Split the substitutions into bite-sized pieces for seds with
5040 # small command number limits, like on Digital OSF/1 and HP-UX.
5041 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5042 ac_file=1 # Number of current file.
5043 ac_beg=1 # First line for current file.
5044 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5045 ac_more_lines=:
5046 ac_sed_cmds=""
5047 while $ac_more_lines; do
5048 if test $ac_beg -gt 1; then
5049 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5050 else
5051 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5053 if test ! -s conftest.s$ac_file; then
5054 ac_more_lines=false
5055 rm -f conftest.s$ac_file
5056 else
5057 if test -z "$ac_sed_cmds"; then
5058 ac_sed_cmds="sed -f conftest.s$ac_file"
5059 else
5060 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5062 ac_file=`expr $ac_file + 1`
5063 ac_beg=$ac_end
5064 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5066 done
5067 if test -z "$ac_sed_cmds"; then
5068 ac_sed_cmds=cat
5072 cat >> $CONFIG_STATUS <<EOF
5074 CONFIG_FILES=\${CONFIG_FILES-"configure.munger libmissing/Makefile libopie/Makefile Makefile.munge:Makefile.in"}
5076 cat >> $CONFIG_STATUS <<\EOF
5077 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5078 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5079 case "$ac_file" in
5080 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5081 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5082 *) ac_file_in="${ac_file}.in" ;;
5083 esac
5085 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5087 # Remove last slash and all that follows it. Not all systems have dirname.
5088 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5089 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5090 # The file is in a subdirectory.
5091 test ! -d "$ac_dir" && mkdir "$ac_dir"
5092 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5093 # A "../" for each directory in $ac_dir_suffix.
5094 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5095 else
5096 ac_dir_suffix= ac_dots=
5099 case "$ac_given_srcdir" in
5100 .) srcdir=.
5101 if test -z "$ac_dots"; then top_srcdir=.
5102 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5103 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5104 *) # Relative path.
5105 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5106 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5107 esac
5110 echo creating "$ac_file"
5111 rm -f "$ac_file"
5112 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5113 case "$ac_file" in
5114 *Makefile*) ac_comsub="1i\\
5115 # $configure_input" ;;
5116 *) ac_comsub= ;;
5117 esac
5119 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5120 sed -e "$ac_comsub
5121 s%@configure_input@%$configure_input%g
5122 s%@srcdir@%$srcdir%g
5123 s%@top_srcdir@%$top_srcdir%g
5124 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5125 fi; done
5126 rm -f conftest.s*
5128 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5129 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5131 # ac_d sets the value in "#define NAME VALUE" lines.
5132 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5133 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5134 ac_dC='\3'
5135 ac_dD='%g'
5136 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5137 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5138 ac_uB='\([ ]\)%\1#\2define\3'
5139 ac_uC=' '
5140 ac_uD='\4%g'
5141 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5142 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5143 ac_eB='$%\1#\2define\3'
5144 ac_eC=' '
5145 ac_eD='%g'
5147 if test "${CONFIG_HEADERS+set}" != set; then
5149 cat >> $CONFIG_STATUS <<EOF
5150 CONFIG_HEADERS="config.h"
5152 cat >> $CONFIG_STATUS <<\EOF
5154 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5155 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5156 case "$ac_file" in
5157 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5158 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5159 *) ac_file_in="${ac_file}.in" ;;
5160 esac
5162 echo creating $ac_file
5164 rm -f conftest.frag conftest.in conftest.out
5165 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5166 cat $ac_file_inputs > conftest.in
5170 # Transform confdefs.h into a sed script conftest.vals that substitutes
5171 # the proper values into config.h.in to produce config.h. And first:
5172 # Protect against being on the right side of a sed subst in config.status.
5173 # Protect against being in an unquoted here document in config.status.
5174 rm -f conftest.vals
5175 cat > conftest.hdr <<\EOF
5176 s/[\\&%]/\\&/g
5177 s%[\\$`]%\\&%g
5178 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5179 s%ac_d%ac_u%gp
5180 s%ac_u%ac_e%gp
5182 sed -n -f conftest.hdr confdefs.h > conftest.vals
5183 rm -f conftest.hdr
5185 # This sed command replaces #undef with comments. This is necessary, for
5186 # example, in the case of _POSIX_SOURCE, which is predefined and required
5187 # on some systems where configure will not decide to define it.
5188 cat >> conftest.vals <<\EOF
5189 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5192 # Break up conftest.vals because some shells have a limit on
5193 # the size of here documents, and old seds have small limits too.
5195 rm -f conftest.tail
5196 while :
5198 ac_lines=`grep -c . conftest.vals`
5199 # grep -c gives empty output for an empty file on some AIX systems.
5200 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5201 # Write a limited-size here document to conftest.frag.
5202 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5203 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5204 echo 'CEOF
5205 sed -f conftest.frag conftest.in > conftest.out
5206 rm -f conftest.in
5207 mv conftest.out conftest.in
5208 ' >> $CONFIG_STATUS
5209 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5210 rm -f conftest.vals
5211 mv conftest.tail conftest.vals
5212 done
5213 rm -f conftest.vals
5215 cat >> $CONFIG_STATUS <<\EOF
5216 rm -f conftest.frag conftest.h
5217 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5218 cat conftest.in >> conftest.h
5219 rm -f conftest.in
5220 if cmp -s $ac_file conftest.h 2>/dev/null; then
5221 echo "$ac_file is unchanged"
5222 rm -f conftest.h
5223 else
5224 # Remove last slash and all that follows it. Not all systems have dirname.
5225 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5226 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5227 # The file is in a subdirectory.
5228 test ! -d "$ac_dir" && mkdir "$ac_dir"
5230 rm -f $ac_file
5231 mv conftest.h $ac_file
5233 fi; done
5236 cat >> $CONFIG_STATUS <<EOF
5239 cat >> $CONFIG_STATUS <<\EOF
5241 exit 0
5243 chmod +x $CONFIG_STATUS
5244 rm -fr confdefs* $ac_clean_files
5245 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5247 sh configure.munger