mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Merge pull request #613 from BtbN/compile_pure
Some configuration/build fixes
This commit is contained in:
commit
9d6c52cec8
15
INSTALL
15
INSTALL
|
@ -1,8 +1,8 @@
|
||||||
Installation Instructions
|
Installation Instructions
|
||||||
*************************
|
*************************
|
||||||
|
|
||||||
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
|
Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
|
||||||
2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
Inc.
|
||||||
|
|
||||||
Copying and distribution of this file, with or without modification,
|
Copying and distribution of this file, with or without modification,
|
||||||
are permitted in any medium without royalty provided the copyright
|
are permitted in any medium without royalty provided the copyright
|
||||||
|
@ -226,6 +226,11 @@ order to use an ANSI C compiler:
|
||||||
|
|
||||||
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
|
and if that doesn't work, install pre-built binaries of GCC for HP-UX.
|
||||||
|
|
||||||
|
HP-UX `make' updates targets which have the same time stamps as
|
||||||
|
their prerequisites, which makes it generally unusable when shipped
|
||||||
|
generated files such as `configure' are involved. Use GNU `make'
|
||||||
|
instead.
|
||||||
|
|
||||||
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
|
On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
|
||||||
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
|
parse its `<wchar.h>' header file. The option `-nodtk' can be used as
|
||||||
a workaround. If GNU CC is not installed, it is therefore recommended
|
a workaround. If GNU CC is not installed, it is therefore recommended
|
||||||
|
@ -304,9 +309,10 @@ causes the specified `gcc' to be used as the C compiler (unless it is
|
||||||
overridden in the site shell script).
|
overridden in the site shell script).
|
||||||
|
|
||||||
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
|
Unfortunately, this technique does not work for `CONFIG_SHELL' due to
|
||||||
an Autoconf bug. Until the bug is fixed you can use this workaround:
|
an Autoconf limitation. Until the limitation is lifted, you can use
|
||||||
|
this workaround:
|
||||||
|
|
||||||
CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
|
CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
|
||||||
|
|
||||||
`configure' Invocation
|
`configure' Invocation
|
||||||
======================
|
======================
|
||||||
|
@ -362,4 +368,3 @@ operates.
|
||||||
|
|
||||||
`configure' also accepts some other, not widely useful, options. Run
|
`configure' also accepts some other, not widely useful, options. Run
|
||||||
`configure --help' for more details.
|
`configure --help' for more details.
|
||||||
|
|
||||||
|
|
0
autogen.sh
Normal file → Executable file
0
autogen.sh
Normal file → Executable file
16
configure.ac
16
configure.ac
|
@ -28,6 +28,7 @@ fi
|
||||||
BUILD_DHT_BOOTSTRAP_DAEMON="yes"
|
BUILD_DHT_BOOTSTRAP_DAEMON="yes"
|
||||||
BUILD_NTOX="yes"
|
BUILD_NTOX="yes"
|
||||||
BUILD_TESTS="yes"
|
BUILD_TESTS="yes"
|
||||||
|
BUILD_TESTING="yes"
|
||||||
|
|
||||||
NCURSES_FOUND="no"
|
NCURSES_FOUND="no"
|
||||||
LIBCONFIG_FOUND="no"
|
LIBCONFIG_FOUND="no"
|
||||||
|
@ -35,7 +36,7 @@ LIBCHECK_FOUND="no"
|
||||||
WANT_NACL="no"
|
WANT_NACL="no"
|
||||||
|
|
||||||
AC_ARG_ENABLE([nacl],
|
AC_ARG_ENABLE([nacl],
|
||||||
[AC_HELP_STRING([--enable-tests], [use nacl instead of libsodium (default: disabled)]) ],
|
[AC_HELP_STRING([--enable-nacl], [use nacl instead of libsodium (default: disabled)]) ],
|
||||||
[
|
[
|
||||||
if test "x$enableval" = "xno"; then
|
if test "x$enableval" = "xno"; then
|
||||||
WANT_NACL="no"
|
WANT_NACL="no"
|
||||||
|
@ -78,6 +79,17 @@ AC_ARG_ENABLE([dht-bootstrap-daemon],
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
AC_ARG_ENABLE([testing],
|
||||||
|
[AC_HELP_STRING([--disable-testing], [build various testing tools (default: auto)]) ],
|
||||||
|
[
|
||||||
|
if test "x$enableval" = "xno"; then
|
||||||
|
BUILD_TESTING="no"
|
||||||
|
elif test "x$enableval" = "xyes"; then
|
||||||
|
BUILD_TESTING="yes"
|
||||||
|
fi
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
DEPSEARCH=
|
DEPSEARCH=
|
||||||
LIBSODIUM_SEARCH_HEADERS=
|
LIBSODIUM_SEARCH_HEADERS=
|
||||||
LIBSODIUM_SEARCH_LIBS=
|
LIBSODIUM_SEARCH_LIBS=
|
||||||
|
@ -460,9 +472,9 @@ if test "x$WIN32" = "xyes"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AM_CONDITIONAL(BUILD_DHT_BOOTSTRAP_DAEMON, test "x$BUILD_DHT_BOOTSTRAP_DAEMON" = "xyes")
|
AM_CONDITIONAL(BUILD_DHT_BOOTSTRAP_DAEMON, test "x$BUILD_DHT_BOOTSTRAP_DAEMON" = "xyes")
|
||||||
|
|
||||||
AM_CONDITIONAL(BUILD_TESTS, test "x$BUILD_TESTS" = "xyes")
|
AM_CONDITIONAL(BUILD_TESTS, test "x$BUILD_TESTS" = "xyes")
|
||||||
AM_CONDITIONAL(BUILD_NTOX, test "x$BUILD_NTOX" = "xyes")
|
AM_CONDITIONAL(BUILD_NTOX, test "x$BUILD_NTOX" = "xyes")
|
||||||
|
AM_CONDITIONAL(BUILD_TESTING, test "x$BUILD_TESTING" = "xyes")
|
||||||
|
|
||||||
AC_CONFIG_FILES([Makefile
|
AC_CONFIG_FILES([Makefile
|
||||||
build/Makefile
|
build/Makefile
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
noinst_PROGRAMS += DHT_bootstrap
|
if BUILD_DHT_BOOTSTRAP_DAEMON
|
||||||
|
|
||||||
|
bin_PROGRAMS += DHT_bootstrap
|
||||||
|
|
||||||
DHT_bootstrap_SOURCES = ../other/DHT_bootstrap.c \
|
DHT_bootstrap_SOURCES = ../other/DHT_bootstrap.c \
|
||||||
../toxcore/DHT.h \
|
../toxcore/DHT.h \
|
||||||
|
@ -15,5 +17,7 @@ DHT_bootstrap_LDADD = $(LIBSODIUM_LDFLAGS) \
|
||||||
$(NACL_LIBS) \
|
$(NACL_LIBS) \
|
||||||
$(WINSOCK2_LIBS)
|
$(WINSOCK2_LIBS)
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
EXTRA_DIST += $(top_srcdir)/other/DHTservers \
|
EXTRA_DIST += $(top_srcdir)/other/DHTservers \
|
||||||
$(top_srcdir)/other/tox.png
|
$(top_srcdir)/other/tox.png
|
||||||
|
|
|
@ -19,6 +19,8 @@ nTox_LDADD = $(LIBSODIUM_LDFLAGS) \
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
if BUILD_TESTING
|
||||||
|
|
||||||
noinst_PROGRAMS += DHT_test \
|
noinst_PROGRAMS += DHT_test \
|
||||||
Lossless_UDP_testclient \
|
Lossless_UDP_testclient \
|
||||||
Lossless_UDP_testserver \
|
Lossless_UDP_testserver \
|
||||||
|
@ -116,3 +118,5 @@ tox_sync_LDADD = \
|
||||||
$(WINSOCK2_LIBS)
|
$(WINSOCK2_LIBS)
|
||||||
|
|
||||||
EXTRA_DIST += $(top_srcdir)/testing/misc_tools.c
|
EXTRA_DIST += $(top_srcdir)/testing/misc_tools.c
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user