Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devel: Spindle Forest support #4

Open
wants to merge 12 commits into
base: devel
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@
/* The default port for Spindle */
#undef SPINDLE_PORT

/* The default number of roots in a cobo network */
#undef SPINDLE_ROOTS

/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS

Expand Down
17 changes: 17 additions & 0 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,7 @@ enable_fast_install
with_gnu_ld
with_sysroot
enable_libtool_lock
with_default_roots
with_default_port
with_default_num_ports
with_localstorage
Expand Down Expand Up @@ -1526,6 +1527,8 @@ Optional Packages:
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-sysroot=DIR Search for dependent libraries within DIR
(or the compiler's sysroot if not specified).
--with-default-roots=NUM
The number of roots in a cobo network
--with-default-port=NUM TCP/IP Port for Spindle server communication
--with-default-numports=NUM
Number of TCP/IP ports to scan for Spindle server
Expand Down Expand Up @@ -16192,11 +16195,20 @@ fi
#Include common ops
#Configure operations that are common between the Spindle and Spindle-client configurations
#Network port and local storage location
DEFAULT_ROOTS=1
DEFAULT_PORT=21940
DEFAULT_LOC='$TMPDIR'
DEFAULT_NUM_COBO_PORTS=25


# Check whether --with-default-roots was given.
if test "${with_default_roots+set}" = set; then :
withval=$with_default_roots; SPINDLE_ROOTS=${withval}
else
SPINDLE_ROOTS=$DEFAULT_ROOTS
fi


# Check whether --with-default-port was given.
if test "${with_default_port+set}" = set; then :
withval=$with_default_port; SPINDLE_PORT=${withval}
Expand All @@ -16221,6 +16233,11 @@ else
fi


cat >>confdefs.h <<_ACEOF
#define SPINDLE_ROOTS $SPINDLE_ROOTS
_ACEOF


cat >>confdefs.h <<_ACEOF
#define SPINDLE_PORT $SPINDLE_PORT
_ACEOF
Expand Down
6 changes: 6 additions & 0 deletions configure.common.ac
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
#Configure operations that are common between the Spindle and Spindle-client configurations
#Network port and local storage location
DEFAULT_ROOTS=1
DEFAULT_PORT=21940
DEFAULT_LOC='$TMPDIR'
DEFAULT_NUM_COBO_PORTS=25

AC_ARG_WITH(default-roots,
[AS_HELP_STRING([--with-default-roots=NUM],[The number of roots in a cobo network])],
[SPINDLE_ROOTS=${withval}],
[SPINDLE_ROOTS=$DEFAULT_ROOTS])
AC_ARG_WITH(default-port,
[AS_HELP_STRING([--with-default-port=NUM],[TCP/IP Port for Spindle server communication])],
[SPINDLE_PORT=${withval}],
Expand All @@ -16,6 +21,7 @@ AC_ARG_WITH(localstorage,
[AS_HELP_STRING([--with-localstorage=DIR],[Directory on back-ends for storing relocated files])],
[SPINDLE_LOC=${withval}],
[SPINDLE_LOC=$DEFAULT_LOC])
AC_DEFINE_UNQUOTED([SPINDLE_ROOTS],[$SPINDLE_ROOTS],[The default number of roots in a cobo network])
AC_DEFINE_UNQUOTED([SPINDLE_PORT],[$SPINDLE_PORT],[The default port for Spindle])
AC_DEFINE_UNQUOTED([NUM_COBO_PORTS],[$NUM_COBO_PORTS],[Number of ports for COBO to search for an open port])
AC_DEFINE_UNQUOTED([SPINDLE_MAX_PORT],[$(($SPINDLE_PORT + $NUM_COBO_PORTS - 1))],[The maximum port value])
Expand Down
3 changes: 3 additions & 0 deletions src/client/config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@
/* The default port for Spindle */
#undef SPINDLE_PORT

/* The default number of roots in a cobo network */
#undef SPINDLE_ROOTS

/* Define to 1 if you have the ANSI C header files. */
#undef STDC_HEADERS

Expand Down
17 changes: 17 additions & 0 deletions src/client/configure
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,7 @@ enable_fast_install
with_gnu_ld
with_sysroot
enable_libtool_lock
with_default_roots
with_default_port
with_default_num_ports
with_localstorage
Expand Down Expand Up @@ -1469,6 +1470,8 @@ Optional Packages:
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-sysroot=DIR Search for dependent libraries within DIR
(or the compiler's sysroot if not specified).
--with-default-roots=NUM
The number of roots in a cobo network
--with-default-port=NUM TCP/IP Port for Spindle server communication
--with-default-numports=NUM
Number of TCP/IP ports to scan for Spindle server
Expand Down Expand Up @@ -12401,11 +12404,20 @@ CC="$lt_save_CC"

#Configure operations that are common between the Spindle and Spindle-client configurations
#Network port and local storage location
DEFAULT_ROOTS=1
DEFAULT_PORT=21940
DEFAULT_LOC='$TMPDIR'
DEFAULT_NUM_COBO_PORTS=25


# Check whether --with-default-roots was given.
if test "${with_default_roots+set}" = set; then :
withval=$with_default_roots; SPINDLE_ROOTS=${withval}
else
SPINDLE_ROOTS=$DEFAULT_ROOTS
fi


# Check whether --with-default-port was given.
if test "${with_default_port+set}" = set; then :
withval=$with_default_port; SPINDLE_PORT=${withval}
Expand All @@ -12430,6 +12442,11 @@ else
fi


cat >>confdefs.h <<_ACEOF
#define SPINDLE_ROOTS $SPINDLE_ROOTS
_ACEOF


cat >>confdefs.h <<_ACEOF
#define SPINDLE_PORT $SPINDLE_PORT
_ACEOF
Expand Down
Loading