pkgsrc/devel/cdk/patches/patch-aj
2002-08-26 18:28:20 +00:00

44 lines
1.1 KiB
Text

$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)