lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Start by adding your platform definition to include/tek/config.h so
> that posix.h is included.

Yes, thanks, that worked:

diff -r tekui-1.05/include/tek/config.h /Users/lhf/Downloads/tekui-1.05/include/tek/config.h
11c11
< #if defined(TSYS_POSIX) || defined(__linux) || defined(__FreeBSD__) || defined(__NetBSD__)
---
> #if defined(TSYS_POSIX) || defined(__linux) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)

but I'd rather be able to just say that my system is POSIX, but I could not
find the correct place to define TSYS_POSIX in config (not config.h)

I also had to do this, which is probably overkill:

diff -r tekui-1.05/config /Users/lhf/Downloads/tekui-1.05/config
87c88
< FREETYPE_DEFS = -I$(PREFIX)/include -I$(PREFIX)/include/freetype2 -I/usr/include/freetype2 -I/usr/X11R6/include/freetype2
---
> FREETYPE_DEFS = -I$(PREFIX)/include -I$(PREFIX)/include/freetype2 -I/usr/include/freetype2 -I/usr/X11R6/include/freetype2 -I/usr/X11/include/
89,90c90,91
< X11_LIBS = -L/usr/X11R6/lib -LX11 -lXext -lXxf86vm
< X11_DEFS = -I/usr/X11R6/include $(FREETYPE_DEFS) -D_XOPEN_SOURCE -DENABLE_XFT -DENABLE_XVID
---
> X11_LIBS = -L/usr/X11R6/lib -lX11 -lXext -lXxf86vm
> X11_DEFS = -I/usr/X11/include $(FREETYPE_DEFS) -D_XOPEN_SOURCE -DENABLE_XFT -DENABLE_XVID

This is of course needed for Mac OS X:

diff -r tekui-1.05/config /Users/lhf/Downloads/tekui-1.05/config
126c127
< MODCFLAGS = -shared -L $(LIBDIR)
---
> MODCFLAGS = -bundle -undefined dynamic_lookup -L $(LIBDIR)