[Plib-cvs] plib/demos/exposer configure.in,1.7,1.8
Brought to you by:
sjbaker
From: Sebastian U. <ud...@us...> - 2002-07-01 00:52:15
|
Update of /cvsroot/plib/plib/demos/exposer In directory usw-pr-cvs1:/tmp/cvs-serv7520 Modified Files: configure.in Log Message: Updates for OS-X / IRIX, cleanups, improvements Index: configure.in =================================================================== RCS file: /cvsroot/plib/plib/demos/exposer/configure.in,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- configure.in 12 Jun 2002 11:27:22 -0000 1.7 +++ configure.in 1 Jul 2002 00:52:12 -0000 1.8 @@ -15,9 +15,47 @@ AC_LANG_CPLUSPLUS +dnl Command line arguments. + +AC_ARG_WITH(GL, +AC_HELP_STRING([--with-GL=DIR], [set the prefix directory where GL resides]), +GL_PREFIX=$withval, GL_PREFIX=auto) + +if test "x$GL_PREFIX" != "xauto"; then + LDFLAGS="$LDFLAGS -L$GL_PREFIX/lib" [...140 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)])]) AC_OUTPUT( Makefile \ data/Makefile \ |