mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2025-02-07 15:41:03 +00:00
Added --enable-ipv6 option to configure to enable IPv6 networking.
It substitutes @NET_SOURCE@ for net_udp.c or net_udp6.c.
This commit is contained in:
parent
7d5b301d80
commit
d608249a38
4 changed files with 15 additions and 9 deletions
|
@ -26,6 +26,9 @@
|
||||||
/* Define this if you are using Mesa */
|
/* Define this if you are using Mesa */
|
||||||
#undef XMESA
|
#undef XMESA
|
||||||
|
|
||||||
|
/* Define this if you want IPv6 support */
|
||||||
|
#undef HAVE_IPV6
|
||||||
|
|
||||||
/* Define this if you have GL_COLOR_INDEX8_EXT in GL/gl.h */
|
/* Define this if you have GL_COLOR_INDEX8_EXT in GL/gl.h */
|
||||||
#undef HAVE_GL_COLOR_INDEX8_EXT
|
#undef HAVE_GL_COLOR_INDEX8_EXT
|
||||||
|
|
||||||
|
|
11
configure.in
11
configure.in
|
@ -69,7 +69,7 @@ AC_FUNC_MMAP
|
||||||
AC_FUNC_VPRINTF
|
AC_FUNC_VPRINTF
|
||||||
AC_CHECK_FUNCS(gethostname gethostbyname connect gettimeofday getwd mkdir \
|
AC_CHECK_FUNCS(gethostname gethostbyname connect gettimeofday getwd mkdir \
|
||||||
ftime _ftime fcntl stat putenv select socket strerror strstr \
|
ftime _ftime fcntl stat putenv select socket strerror strstr \
|
||||||
snprintf _snprintf vsnprintf _vsnprintf strsep dlopen)
|
snprintf _snprintf vsnprintf _vsnprintf strsep dlopen getaddrinfo getnameinfo)
|
||||||
|
|
||||||
AC_ARG_ENABLE(experimental,
|
AC_ARG_ENABLE(experimental,
|
||||||
[ --enable-experimental compile with experimental code. Use at your
|
[ --enable-experimental compile with experimental code. Use at your
|
||||||
|
@ -97,6 +97,14 @@ AC_ARG_ENABLE(release,
|
||||||
RELEASE=$enable_release
|
RELEASE=$enable_release
|
||||||
)
|
)
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(ipv6,
|
||||||
|
[ --enable-ipv6 enable IPv6 support],
|
||||||
|
AC_DEFINE(HAVE_IPV6)
|
||||||
|
NET_SOURCE=net_udp6.c
|
||||||
|
,
|
||||||
|
NET_SOURCE=net_udp.c
|
||||||
|
)
|
||||||
|
|
||||||
AC_ARG_ENABLE(alsa,
|
AC_ARG_ENABLE(alsa,
|
||||||
[ --enable-alsa enable alsa support],
|
[ --enable-alsa enable alsa support],
|
||||||
)
|
)
|
||||||
|
@ -785,6 +793,7 @@ AC_SUBST(QW_SRV_SYS_SRC)
|
||||||
AC_SUBST(X11_VID_SRC)
|
AC_SUBST(X11_VID_SRC)
|
||||||
AC_SUBST(HAVE_WSOCK)
|
AC_SUBST(HAVE_WSOCK)
|
||||||
AC_SUBST(HAVE_UDP)
|
AC_SUBST(HAVE_UDP)
|
||||||
|
AC_SUBST(NET_SOURCE)
|
||||||
AC_SUBST(VERSION)
|
AC_SUBST(VERSION)
|
||||||
AC_SUBST(QF_VERSION)
|
AC_SUBST(QF_VERSION)
|
||||||
|
|
||||||
|
|
|
@ -137,11 +137,8 @@ CD_AUDIO_SRC = cd_wrapper.c
|
||||||
SYS_SRC = sys_common.c @QW_CL_SYS_SRC@
|
SYS_SRC = sys_common.c @QW_CL_SYS_SRC@
|
||||||
|
|
||||||
# Networking source files
|
# Networking source files
|
||||||
#
|
|
||||||
# Uncomment the second line to add IPv6 support
|
|
||||||
|
|
||||||
QW_NET_SRC = net_udp.c net_com.c mdfour.c
|
QW_NET_SRC = @NET_SOURCE@ net_com.c mdfour.c
|
||||||
#QW_NET_SRC = net_udp6.c net_com.c mdfour.c
|
|
||||||
|
|
||||||
# Common source files
|
# Common source files
|
||||||
|
|
||||||
|
|
|
@ -39,11 +39,8 @@ QW_SRV_SYS_SRC = sys_common.c @QW_SRV_SYS_SRC@
|
||||||
|
|
||||||
# Networking source files
|
# Networking source files
|
||||||
# FIXME: Should not assume UNIX
|
# FIXME: Should not assume UNIX
|
||||||
#
|
|
||||||
# Uncomment the second line for IPv6 support
|
|
||||||
|
|
||||||
QW_NET_SRC = net_udp.c net_com.c mdfour.c
|
QW_NET_SRC = @NET_SOURCE@ net_com.c mdfour.c
|
||||||
#QW_NET_SRC = net_udp6.c net_com.c mdfour.c
|
|
||||||
|
|
||||||
# Server source files
|
# Server source files
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue