|
From: Per P. <per...@ma...> - 2004-01-06 23:22:22
|
Hi,
I'm working on the next version of Aquaterm and consequently an updated
aquaterm.trm.
The biggest change is that aquaterm.trm now relies on a library
(libaquaterm) and I took a stab at implementing the following in
apple.m4+term.h:
Check for Mac OS X, if true check for the presence of libaquaterm and
if that exists, define HAVE_LIBAQUATERM and add necessary libs.
In term.h include aquaterm.trm if HAVE_LIBAQUATERM is defined.
I hope that this is roughly consistent with practice and will suffice
as a starting point. I'd appreciate feedback on this, this (AC macros)
is not my cup of tea ;-)
/Per
PS. the apple.m4 is short enough that I just paste it in for reference:
AC_DEFUN(GP_APPLE,
[AC_MSG_CHECKING(for Apple MacOS X)
AC_EGREP_CPP(yes,
[#if defined(__APPLE__) && defined(__MACH__)
yes
#endif
], AC_MSG_RESULT(yes)
AC_CHECK_LIB(aquaterm, aqtInit,
AC_DEFINE(HAVE_LIBAQUATERM, 1, [ Define if AquaTerm is
installed on this system. ])
LIBS="$LIBS -laquaterm -framework Foundation"
CFLAGS="$CFLAGS -ObjC",
AC_MSG_RESULT(no), -lobjc),
AC_MSG_RESULT(no))
])
|