Skip to content

Commit

Permalink
Some configuration/build fixes, so building basicaly everything else …
Browse files Browse the repository at this point in the history
…than the library can be disabled
  • Loading branch information
BtbN committed Oct 7, 2013
1 parent 94691bf commit 8d40ddf
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 8 deletions.
15 changes: 10 additions & 5 deletions INSTALL
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Installation Instructions
*************************

Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
2006, 2007, 2008, 2009 Free Software Foundation, Inc.
Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
Expand Down Expand Up @@ -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.

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
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
Expand Down Expand Up @@ -304,9 +309,10 @@ causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script).

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
======================
Expand Down Expand Up @@ -362,4 +368,3 @@ operates.

`configure' also accepts some other, not widely useful, options. Run
`configure --help' for more details.

Empty file modified autogen.sh
100644 → 100755
Empty file.
16 changes: 14 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ fi
BUILD_DHT_BOOTSTRAP_DAEMON="yes"
BUILD_NTOX="yes"
BUILD_TESTS="yes"
BUILD_TESTING="yes"

NCURSES_FOUND="no"
LIBCONFIG_FOUND="no"
LIBCHECK_FOUND="no"
WANT_NACL="no"

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
WANT_NACL="no"
Expand Down Expand Up @@ -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=
LIBSODIUM_SEARCH_HEADERS=
LIBSODIUM_SEARCH_LIBS=
Expand Down Expand Up @@ -460,9 +472,9 @@ if test "x$WIN32" = "xyes"; then
fi

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_NTOX, test "x$BUILD_NTOX" = "xyes")
AM_CONDITIONAL(BUILD_TESTING, test "x$BUILD_TESTING" = "xyes")

AC_CONFIG_FILES([Makefile
build/Makefile
Expand Down
6 changes: 5 additions & 1 deletion other/Makefile.inc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
noinst_PROGRAMS += DHT_bootstrap
if BUILD_DHT_BOOTSTRAP_DAEMON

bin_PROGRAMS += DHT_bootstrap

DHT_bootstrap_SOURCES = ../other/DHT_bootstrap.c \
../toxcore/DHT.h \
Expand All @@ -15,5 +17,7 @@ DHT_bootstrap_LDADD = $(LIBSODIUM_LDFLAGS) \
$(NACL_LIBS) \
$(WINSOCK2_LIBS)

endif

EXTRA_DIST += $(top_srcdir)/other/DHTservers \
$(top_srcdir)/other/tox.png
4 changes: 4 additions & 0 deletions testing/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ nTox_LDADD = $(LIBSODIUM_LDFLAGS) \
endif


if BUILD_TESTING

noinst_PROGRAMS += DHT_test \
Lossless_UDP_testclient \
Lossless_UDP_testserver \
Expand Down Expand Up @@ -116,3 +118,5 @@ tox_sync_LDADD = \
$(WINSOCK2_LIBS)

EXTRA_DIST += $(top_srcdir)/testing/misc_tools.c

endif

0 comments on commit 8d40ddf

Please sign in to comment.