Skip to content
Snippets Groups Projects
Commit fca5b2c0 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Now detects RSA BSAFE libraries.

Rev: src/modules/_Crypto/configure.in:1.8
parent a278cfc9
Branches
Tags
No related merge requests found
# $Id: configure.in,v 1.7 1999/04/24 13:36:33 grubba Exp $ # $Id: configure.in,v 1.8 2000/01/26 19:40:41 grubba Exp $
AC_INIT(crypto.c) AC_INIT(crypto.c)
AC_CONFIG_HEADER(config.h) AC_CONFIG_HEADER(config.h)
...@@ -6,6 +6,41 @@ AC_SET_MAKE ...@@ -6,6 +6,41 @@ AC_SET_MAKE
AC_MODULE_INIT() AC_MODULE_INIT()
AC_MSG_CHECKING(for RSA libraries)
AC_CACHE_VAL(pike_cv_rsa_dir,
[
pike_cv_rsa_dir="no"
for d in `echo ${with_rsa_path} | sed 's/:/ /g'` \
`echo $prefix | sed "s@^NONE@$ac_default_prefix@g"` \
/usr/local /sw/local /sw $srcdir `pwd`; do
if test -d "$d/."; then
if test -d "$d/rsa/."; then
d="$d/rsa"
fi
if test -d "$d/cryptoci/."; then
d="$d/cryptoci"
fi
if test -d "$d/cryptoci.10/."; then
d="$d/cryptoci.10"
fi
if test -f "$d/library/include/bsafe.h"; then
pike_cv_rsa_dir="$d/library"
break
else :; fi
else :; fi
done
])
if test "$pike_cv_rsa_dir" = "no"; then
AC_MSG_RESULT(no)
else
AC_MSG_RESULT(yes - $pike_cv_rsa_dir)
CPPFLAGS="$CPPFLAGS -I$pike_cv_rsa_dir/include"
LDFLAGS="$LDFLAGS -L$pike_cv_rsa_dir/lib -R$pike_cv_rsa_dir/lib"
AC_CHECK_LIB(cryptoci, b_rsa_public_key_type)
fi
AC_CONFIG_SUBDIRS(lib) AC_CONFIG_SUBDIRS(lib)
AC_OUTPUT(Makefile,echo FOO >stamp-h ) AC_OUTPUT(Makefile,echo FOO >stamp-h )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment