diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-19 14:53:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-19 14:53:13 +0000 |
commit | a463e3a27305a5b2568145b63b68c90a55643be2 (patch) | |
tree | 046ac28ce1a13357b40fa6e5f388394a522539c1 | |
parent | a70165f2ebc9871a13acac1169306fd31b054c35 (diff) | |
download | gnunet-a463e3a27305a5b2568145b63b68c90a55643be2.tar.gz gnunet-a463e3a27305a5b2568145b63b68c90a55643be2.zip |
add configure option --enable-javaports to open ports of services with Java bindings by default (#2228)
-rw-r--r-- | configure.ac | 24 | ||||
-rw-r--r-- | src/core/core.conf.in | 2 | ||||
-rw-r--r-- | src/dht/dht.conf.in | 2 | ||||
-rw-r--r-- | src/nse/nse.conf.in | 2 | ||||
-rw-r--r-- | src/statistics/statistics.conf.in | 2 |
5 files changed, 27 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 825d8c7ff..3d549568b 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -172,6 +172,7 @@ AC_SUBST(DEFAULT_INTERFACE) | |||
172 | # sockets in default configuratin: | 172 | # sockets in default configuratin: |
173 | AC_SUBST(UNIXONLY) | 173 | AC_SUBST(UNIXONLY) |
174 | 174 | ||
175 | |||
175 | AC_MSG_CHECKING([for build target]) | 176 | AC_MSG_CHECKING([for build target]) |
176 | AM_CONDITIONAL(DARWIN, test "$build_target" = "darwin") | 177 | AM_CONDITIONAL(DARWIN, test "$build_target" = "darwin") |
177 | AM_CONDITIONAL(CYGWIN, test "$build_target" = "cygwin") | 178 | AM_CONDITIONAL(CYGWIN, test "$build_target" = "cygwin") |
@@ -777,12 +778,27 @@ AM_CONDITIONAL([ENABLE_TEST_RUN], [test "x$enable_tests_run" = "xyes"]) | |||
777 | # should expensive tests be run? | 778 | # should expensive tests be run? |
778 | AC_MSG_CHECKING(whether to run expensive tests) | 779 | AC_MSG_CHECKING(whether to run expensive tests) |
779 | AC_ARG_ENABLE([expensivetests], | 780 | AC_ARG_ENABLE([expensivetests], |
780 | [AS_HELP_STRING([--enable-expensive-tests], [enable running expensive testcases])], | 781 | [AS_HELP_STRING([--enable-expensivetests], [enable running expensive testcases])], |
781 | [enable_expensive=${enableval}], | 782 | [enable_expensive=${enableval}], |
782 | [enable_expensive=no]) | 783 | [enable_expensive=no]) |
783 | AC_MSG_RESULT($enable_expensive) | 784 | AC_MSG_RESULT($enable_expensive) |
784 | AM_CONDITIONAL([HAVE_EXPENSIVE_TESTS], [test "x$enable_expensive" = "xyes"]) | 785 | AM_CONDITIONAL([HAVE_EXPENSIVE_TESTS], [test "x$enable_expensive" = "xyes"]) |
785 | 786 | ||
787 | # should ports be open for Java services? | ||
788 | AC_MSG_CHECKING(whether to enable ports for gnunet-java) | ||
789 | AC_ARG_ENABLE([javaports], | ||
790 | [AS_HELP_STRING([--enable-javaports], [use non-zero ports for services with Java bindings (default is NO)])], | ||
791 | [enable_java_ports=${enableval}], | ||
792 | [enable_java_ports=no]) | ||
793 | AC_MSG_RESULT($enable_java_ports) | ||
794 | if test "x$enable_java_ports" = "xyes" | ||
795 | then | ||
796 | JAVAPORT="" | ||
797 | else | ||
798 | JAVAPORT="$UNIXONLY" | ||
799 | fi | ||
800 | AC_SUBST(JAVAPORT) | ||
801 | |||
786 | # should benchmarks be run? | 802 | # should benchmarks be run? |
787 | AC_MSG_CHECKING(whether to run benchmarks during make check) | 803 | AC_MSG_CHECKING(whether to run benchmarks during make check) |
788 | AC_ARG_ENABLE([benchmarks], | 804 | AC_ARG_ENABLE([benchmarks], |
@@ -930,6 +946,12 @@ then | |||
930 | AC_MSG_NOTICE([NOTICE: sqlite not found. sqLite support will not be compiled.]) | 946 | AC_MSG_NOTICE([NOTICE: sqlite not found. sqLite support will not be compiled.]) |
931 | fi | 947 | fi |
932 | 948 | ||
949 | # java ports | ||
950 | if test "x$enable_java_ports" = "xyes" | ||
951 | then | ||
952 | AC_MSG_NOTICE([NOTICE: opening ports for gnunet-java bindings by default.]) | ||
953 | fi | ||
954 | |||
933 | if test "x$lmhd" != "x1" | 955 | if test "x$lmhd" != "x1" |
934 | then | 956 | then |
935 | AC_MSG_NOTICE([NOTICE: libmicrohttpd not found, http transport will not be installed.]) | 957 | AC_MSG_NOTICE([NOTICE: libmicrohttpd not found, http transport will not be installed.]) |
diff --git a/src/core/core.conf.in b/src/core/core.conf.in index 84e2df9fb..61ac84e6c 100644 --- a/src/core/core.conf.in +++ b/src/core/core.conf.in | |||
@@ -1,6 +1,6 @@ | |||
1 | [core] | 1 | [core] |
2 | AUTOSTART = YES | 2 | AUTOSTART = YES |
3 | @UNIXONLY@ PORT = 2092 | 3 | @JAVAPORT@PORT = 2092 |
4 | HOSTNAME = localhost | 4 | HOSTNAME = localhost |
5 | HOME = $SERVICEHOME | 5 | HOME = $SERVICEHOME |
6 | CONFIG = $DEFAULTCONFIG | 6 | CONFIG = $DEFAULTCONFIG |
diff --git a/src/dht/dht.conf.in b/src/dht/dht.conf.in index 17c13e93e..59581dc7b 100644 --- a/src/dht/dht.conf.in +++ b/src/dht/dht.conf.in | |||
@@ -1,6 +1,6 @@ | |||
1 | [dht] | 1 | [dht] |
2 | AUTOSTART = YES | 2 | AUTOSTART = YES |
3 | @UNIXONLY@ PORT = 2095 | 3 | @JAVAPORT@PORT = 2095 |
4 | HOSTNAME = localhost | 4 | HOSTNAME = localhost |
5 | HOME = $SERVICEHOME | 5 | HOME = $SERVICEHOME |
6 | CONFIG = $DEFAULTCONFIG | 6 | CONFIG = $DEFAULTCONFIG |
diff --git a/src/nse/nse.conf.in b/src/nse/nse.conf.in index b04f5acfe..bc49e051d 100644 --- a/src/nse/nse.conf.in +++ b/src/nse/nse.conf.in | |||
@@ -1,6 +1,6 @@ | |||
1 | [nse] | 1 | [nse] |
2 | AUTOSTART = YES | 2 | AUTOSTART = YES |
3 | @UNIXONLY@ PORT = 2097 | 3 | @JAVAPORT@PORT = 2097 |
4 | HOSTNAME = localhost | 4 | HOSTNAME = localhost |
5 | HOME = $SERVICEHOME | 5 | HOME = $SERVICEHOME |
6 | CONFIG = $DEFAULTCONFIG | 6 | CONFIG = $DEFAULTCONFIG |
diff --git a/src/statistics/statistics.conf.in b/src/statistics/statistics.conf.in index 4482b0f11..5de9dedea 100644 --- a/src/statistics/statistics.conf.in +++ b/src/statistics/statistics.conf.in | |||
@@ -1,6 +1,6 @@ | |||
1 | [statistics] | 1 | [statistics] |
2 | AUTOSTART = YES | 2 | AUTOSTART = YES |
3 | @UNIXONLY@ PORT = 2088 | 3 | @JAVAPORT@PORT = 2088 |
4 | HOSTNAME = localhost | 4 | HOSTNAME = localhost |
5 | HOME = $SERVICEHOME | 5 | HOME = $SERVICEHOME |
6 | CONFIG = $DEFAULTCONFIG | 6 | CONFIG = $DEFAULTCONFIG |