summaryrefslogtreecommitdiff
path: root/net/samba/patches/patch-ae
blob: 6896f249e81df24af318deb66295989d0fdb8700 (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
$NetBSD: patch-ae,v 1.1 2000/01/19 00:42:43 jlam Exp $

--- configure.in.orig	Wed Nov 10 21:35:56 1999
+++ configure.in	Tue Jan 18 14:12:29 2000
@@ -220,9 +220,6 @@
 AC_CHECK_TYPE(offset_t,loff_t)
 AC_CHECK_TYPE(ssize_t, int)
 
-# we need libcups for CUPS support...
-AC_CHECK_LIB(cups,httpConnect)
-
 # we need libdl for PAM and the new VFS code
 AC_CHECK_LIB(dl,main)
 
@@ -298,7 +295,14 @@
 # test for where we get readline() from
 if test "$ac_cv_header_readline_h" = "yes" ||
    test "$ac_cv_header_readline_readline_h" = "yes"; then
-  AC_CHECK_LIB(readline,readline)
+    AC_CHECK_LIB(termcap, tputs)
+    if test "$ac_cv_lib_termcap_tputs" = "yes"; then
+	AC_CHECK_LIB(edit, readline, , [AC_CHECK_LIB(readline, readline)])
+	if test "$ac_cv_lib_edit_readline" = "yes" ||
+	   test "$ac_cv_lib_readline_readline" = "yes"; then
+	    AC_DEFINE(HAVE_READLINE)
+	fi
+    fi
 fi
 
 
@@ -1036,6 +1040,24 @@
     AC_DEFINE(BROKEN_NISPLUS_INCLUDE_FILES)
 fi
 
+
+#################################################
+# check for CUPS support
+AC_MSG_CHECKING(whether to use CUPS)
+AC_ARG_WITH(cups,
+[  --with-cups    Include CUPS support
+  --without-cups Don't include CUPS support (default)],
+[ case "$withval" in
+  yes)
+    AC_MSG_RESULT(yes)
+    AC_CHECK_LIB(cups, httpConnect)
+    ;;
+  *)
+    AC_MSG_RESULT(no)
+    ;;
+  esac ],
+  AC_MSG_RESULT(no)
+)
 
 #################################################
 # check for smbwrapper support