summaryrefslogtreecommitdiff
path: root/devel/cdk/patches/patch-aj
blob: 1636a1e38aff4971faf4b75b83d2ea85f5e35d87 (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
$NetBSD: patch-aj,v 1.3 2002/08/26 18:28:21 jlam Exp $

--- configure.in.orig	Thu Jul  8 21:16:31 1999
+++ configure.in
@@ -4,19 +4,6 @@ dnl
 AC_INIT(include/cdk.h)
 
 dnl
-dnl This looks for a library in several 'standard' locations.
-dnl
-AC_DEFUN(CDK_FIND_LIB, [
-	eval "cdk_$2_lib=no"
-
-	for dir in /usr/local/lib/ /usr/lib/ /usr/5lib/ /usr/ccs/lib/ /opt/lib/; do
-	   if test -f ${dir}/$1; then
-	      LDFLAGS="$LDFLAGS -L$dir"
-	      eval "cdk_$2_lib=no"
-	   fi
-	done])
-
-dnl
 dnl This looks for the given type in the header file.
 dnl
 AC_DEFUN(CDK_FIND_TYPE, [
@@ -98,19 +85,5 @@ dnl
 dnl Set pre-processor compile time variables.
 dnl
 AC_CHECK_FUNC(XCursesExit, AC_DEFINE(HAVE_XCURSES))
-
-dnl
-dnl Set the LDPATH values depending where the
-dnl library is installed. If we found ncurses,
-dnl look for ncurses.
-dnl
-CDK_FIND_LIB(libncurses.a, cdk_ncurses_lib)
-if test "$cdk_ncurses_lib" != "no"; then
-   LIBS="$LIBS -lncurses"
-   CFLAGS="$CFLAGS -DHAVE_LIBNCURSES=1"
-else
-   LIBS="$LIBS -lcurses"
-   CFLAGS="$CFLAGS -DHAVE_LIBNCURSES=0"
-fi
 
 AC_OUTPUT(Makefile examples/Makefile demos/Makefile)