All pastes #608147 Raw Edit

pkgsrc includes for kismet

public text v1 · immutable
·published 2007-07-08 02:34 UTC
rendered paste body
Index: configure.in
===================================================================
--- configure.in        (revision 2135)
+++ configure.in        (working copy)
@@ -63,7 +63,13 @@
                bsd="yes"
                ;;
        netbsd*)
-               AC_MSG_RESULT(none needed)
+                if test -d /usr/pkg ; then
+                    CPPFLAGS=-I/usr/pkg/include
+                    LDFLAGS=-L/usr/pkg/lib
+                    AC_MSG_RESULT(pkgsrc locations for link and include)
+                else
+                    AC_MSG_RESULT(none needed)
+                fi
                AC_DEFINE(SYS_NETBSD, 1, Compiling for NetBSD)
                bsd="yes"
                ;;
@@ -109,7 +115,14 @@
                bsd="yes"
         ;;
     netbsd*)
-        AC_MSG_RESULT(none needed)
+        if test -d /usr/pkg ; then
+            CPPFLAGS=-I/usr/pkg/include
+            LDFLAGS=-L/usr/pkg/lib
+            AC_MSG_RESULT(pkgsrc locations for link and include)
+        else
+            AC_MSG_RESULT(none needed)
+        fi
+
         AC_DEFINE(SYS_NETBSD, 1, Compiling for NetBSD)
                bsd="yes"
         ;;