[rfk-dev] [schoen@loyalty.org: More non-kitten items (including many literary allusions)]

Aaron Malone aaron@munge.net
Mon, 16 Apr 2001 11:27:41 -0500


On Sat, Apr 14, 2001 at 03:06:13PM -0500, Peter A. Peterson II wrote:
> In other news, I believe that Jack Edwards compiled rfk on BSD.

It compiles beautifully on FreeBSD 4.2.  OpenBSD presented a bit more of
a problem, as they use a different system for curses; one is supposed to
include <curses.h> and link to -lcurses -- there's a special symbol you
can define if you want old curses instead of new.  Anyway, here's a
patch that makes it work on OpenBSD, while still compiling fine on
Linux.  Sorry if this is stupid, this is my first experience with
autoconf.  Oh, you also have to use GNU make on BSD, but I tend to
assume that BSD people recognize the error that BSD make spits out in
cases like this, and use gmake.

If I can free up a box this week, I'll try it on NetBSD.


*** configure.in        Sat Mar 10 04:30:04 2001
--- configure.in.obsd   Mon Apr 16 05:18:53 2001
***************
*** 10,16 ****
  AC_PROG_INSTALL
  
  dnl Checks for libraries.
! AC_CHECK_LIB(ncurses, initscr, ,curses)
  
  dnl Checks for header files.
  AC_CHECK_HEADERS(signal.h)
--- 10,18 ----
  AC_PROG_INSTALL
  
  dnl Checks for libraries.
! AC_CHECK_LIB(ncurses, initscr,,
!       AC_CHECK_LIB(curses, initscr)
!       )
  
  dnl Checks for header files.
  AC_CHECK_HEADERS(signal.h)

-- 
Aaron Malone (aaron@semo.net)
System Administrator                 I can bend minds with my spoon.
Poplar Bluff Internet, Inc.
http://www.semo.net