1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
$NetBSD: patch-aa,v 1.2 2000/12/10 09:43:37 jlam Exp $
--- configure.in.orig Thu Jul 20 22:35:01 2000
+++ configure.in
@@ -65,9 +65,12 @@
dnl check for -R, etc. switch
CMU_GUESS_RUNPATH_SWITCH
-dnl let's just link against local. otherwise we never find anything useful.
-CPPFLAGS="-I/usr/local/include ${CPPFLAGS}"
-CMU_ADD_LIBPATH("/usr/local/lib")
+
+AC_PATH_PROG(SED, sed, no)
+if test "$SED" = "no"; then
+ AC_ERROR([sed is required to build sasl-config])
+fi
+AC_SUBST(SED)
AM_DISABLE_STATIC
@@ -352,8 +355,11 @@
CPPFLAGS="$CPPFLAGS -I${with_des}/include"
LDFLAGS="$LDFLAGS -L${with_des}/lib"
fi
- AC_CHECK_LIB(des, des_pcbc_encrypt, [LIB_DES="-ldes";
- with_des=yes], with_des=no)
+ AC_CHECK_LIB(des, des_pcbc_encrypt,
+ AC_CHECK_HEADER(des.h, [LIB_DES="-ldes";
+ with_des=yes],
+ with_des=no),
+ with_des=no)
if test "$with_des" = no; then
dnl if openssl is around, we might be able to use that for des
|