version 1.9, 2002/01/07 16:09:52 |
version 1.12, 2002/03/21 10:54:37 |
| |
dnl | dnl ==================================================================== |
dnl Configuration script for NeLNS | dnl Configuration script for NeLNS |
| dnl ==================================================================== |
dnl | dnl |
dnl $Id$ | dnl $Id$ |
dnl | dnl |
| |
| |
| dnl ==================================================================== |
dnl Process this file with autoconf to produce a configure script. | dnl Process this file with autoconf to produce a configure script. |
| dnl ==================================================================== |
| |
AC_INIT(admin_service/admin_service.cpp) | AC_INIT(admin_service/admin_service.cpp) |
| |
| |
dnl Checks for typedefs, structures, and compiler characteristics. | dnl Checks for typedefs, structures, and compiler characteristics. |
dnl ==================================================================== | dnl ==================================================================== |
| |
AC_C_CONST | |
| |
dnl Add the define _REENTRANT for a correct use of the threads | dnl Add the define _REENTRANT for a correct use of the threads |
if test "X$CC" = "Xgcc"; | if test "X$CC" = "Xgcc"; |
then | then |
| |
| |
dnl ==================================================================== | dnl ==================================================================== |
dnl Checks for header files. | dnl Checks for header files. |
| dnl ==================================================================== |
| |
AC_STDC_HEADERS | AC_STDC_HEADERS |
AC_CHECK_HEADERS(fcntl.h unistd.h) | AC_CHECK_HEADERS(fcntl.h unistd.h) |
| |
| |
dnl ==================================================================== | dnl ==================================================================== |
dnl Checks for libraries. | dnl Checks for libraries. |
| dnl ==================================================================== |
| |
dnl ========================================================================== | AC_CHECK_LIB(crypt, crypt) |
| |
| dnl ==================================================================== |
dnl STLPort | dnl STLPort |
| |
AM_PATH_STLPORT | AM_PATH_STLPORT |
| |
| |
dnl ========================================================================== | dnl ==================================================================== |
dnl NeL | dnl NeL |
| |
AM_PATH_NEL("yes", "yes", "no", "no", "no", "no") | dnl misc net 3d pacs sound ai georges |
| AM_PATH_NEL("yes", "yes", "no", "no", "no", "no", "no") |
CXXFLAGS="$CXXFLAGS ${NEL_CFLAGS}" | |
LIBS="$LIBS ${NEL_LIBS}" | |
| |
| |
dnl ==================================================================== | dnl ==================================================================== |
dnl Checks for library functions. | dnl Checks for library functions. |
| dnl ==================================================================== |
| |
| dnl ==================================================================== |
| dnl nelns configuration and logs file location |
| dnl ==================================================================== |
| |
| pkgsysconfdir='${sysconfdir}/nelns' |
| AC_SUBST(pkgsysconfdir) |
| |
| eval NELNS_STATE=\"$localstatedir/games/nelns/\" |
| AC_DEFINE_UNQUOTED(NELNS_STATE, "$NELNS_STATE") |
| |
| eval NELNS_CONFIG=\"$sysconfdir/nelns/\" |
| AC_DEFINE_UNQUOTED(NELNS_CONFIG, "$NELNS_CONFIG") |
| |
| eval NELNS_LOGS=\"$localstatedir/log/nelns/\" |
| AC_DEFINE_UNQUOTED(NELNS_LOGS, "$NELNS_LOGS") |
| |
dnl ==================================================================== | dnl ==================================================================== |
dnl Output files to generate. | dnl Output files to generate. |
| dnl ==================================================================== |
| |
AC_OUTPUT( Makefile \ | AC_OUTPUT( Makefile \ |
login_service/Makefile \ | login_service/Makefile \ |
| |
| |
| |
dnl End of configure.in | dnl End of configure.in |
| |