[Plib-cvs] plib/demos/ttt3d configure.in,1.5,1.6
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-07-01 00:59:28
|
Update of /cvsroot/plib/plib/demos/ttt3d In directory usw-pr-cvs1:/tmp/cvs-serv10219 Modified Files: configure.in Log Message: Updates for OS-X / IRIX, cleanups, improvements Index: configure.in =================================================================== RCS file: /cvsroot/plib/plib/demos/ttt3d/configure.in,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- configure.in 12 Jun 2002 11:27:22 -0000 1.5 +++ configure.in 1 Jul 2002 00:59:25 -0000 1.6 @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_INIT(src/ttt3d.cxx) -AM_INIT_AUTOMAKE(ttt3d, 0.0.0) +AM_INIT_AUTOMAKE(ttt3d, 0.0.1) dnl Checks for programs. AC_PROG_CC @@ -15,9 +15,47 @@ AC_LANG_CPLUSPLUS [...149 lines suppressed...] +dnl check for socklen_t (in Unix98) +AC_MSG_CHECKING(for socklen_t) +AC_TRY_COMPILE([ +#include <sys/types.h> +#include <sys/socket.h> +socklen_t x; +],[],[ +AC_MSG_RESULT(yes)],[ +AC_TRY_COMPILE([ +#include <sys/types.h> +#include <sys/socket.h> +int accept (int, struct sockaddr *, size_t *); +],[],[ +AC_MSG_RESULT(size_t) +AC_DEFINE(socklen_t,size_t)], [ +AC_MSG_RESULT(int) +AC_DEFINE(socklen_t,int)])]) MY_EXPAND_DIR(ttt3d, "$datadir/games/$PACKAGE") AC_DEFINE_UNQUOTED(TTT3D_DATADIR, "$ttt3d_datadir") |