Added check for getpass() as well as adding it to the -llutil Makefile.in (BeOS will need this)

This commit is contained in:
Ben Collins 1999-03-13 02:08:42 +00:00
parent 8f0aae9b72
commit c0b11aa8b5
4 changed files with 19 additions and 14 deletions

25
configure vendored
View File

@ -9805,6 +9805,7 @@ for ac_func in \
flock \
getdtablesize \
gethostname \
getpass \
getpwuid \
gettimeofday \
lockf \
@ -9832,12 +9833,12 @@ for ac_func in \
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:9836: checking for $ac_func" >&5
echo "configure:9837: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 9841 "configure"
#line 9842 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@ -9860,7 +9861,7 @@ $ac_func();
; return 0; }
EOF
if { (eval echo configure:9864: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:9865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@ -9888,12 +9889,12 @@ done
for ac_func in getopt tempnam
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
echo "configure:9892: checking for $ac_func" >&5
echo "configure:9893: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 9897 "configure"
#line 9898 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@ -9916,7 +9917,7 @@ $ac_func();
; return 0; }
EOF
if { (eval echo configure:9920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:9921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@ -9946,13 +9947,13 @@ done
# Check Configuration
echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
echo "configure:9950: checking declaration of sys_errlist" >&5
echo "configure:9951: checking declaration of sys_errlist" >&5
if eval "test \"`echo '$''{'ol_cv_dcl_sys_errlist'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 9956 "configure"
#line 9957 "configure"
#include "confdefs.h"
#include <stdio.h>
@ -9962,7 +9963,7 @@ int main() {
char *c = (char *) *sys_errlist
; return 0; }
EOF
if { (eval echo configure:9966: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
if { (eval echo configure:9967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
rm -rf conftest*
ol_cv_dcl_sys_errlist=yes
else
@ -9982,20 +9983,20 @@ if test $ol_cv_dcl_sys_errlist = no ; then
EOF
echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
echo "configure:9986: checking existence of sys_errlist" >&5
echo "configure:9987: checking existence of sys_errlist" >&5
if eval "test \"`echo '$''{'ol_cv_have_sys_errlist'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
#line 9992 "configure"
#line 9993 "configure"
#include "confdefs.h"
#include <errno.h>
int main() {
char *c = (char *) *sys_errlist
; return 0; }
EOF
if { (eval echo configure:9999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
if { (eval echo configure:10000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
ol_cv_have_sys_errlist=yes
else

View File

@ -1628,6 +1628,7 @@ AC_CHECK_FUNCS( \
flock \
getdtablesize \
gethostname \
getpass \
getpwuid \
gettimeofday \
lockf \

View File

@ -231,6 +231,9 @@
/* Define if you have the getopt function. */
#undef HAVE_GETOPT
/* Define if you have the getpass function. */
#undef HAVE_GETPASS
/* Define if you have the getpwuid function. */
#undef HAVE_GETPWUID

View File

@ -3,8 +3,8 @@
##
LIBRARY = liblutil.a
SRCS = base64.c detach.c md5.c passwd.c sha1.c
OBJS = base64.o detach.o md5.o passwd.o sha1.o @LIBOBJS@
SRCS = base64.c detach.c md5.c passwd.c sha1.c getpass.c
OBJS = base64.o detach.o md5.o passwd.o sha1.o getpass.o @LIBOBJS@
LDAP_INCDIR= ../../include
LDAP_LIBDIR= ../../libraries