summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Dykstra <dwd@samba.org>2001-06-12 19:33:41 +0000
committerDavid Dykstra <dwd@samba.org>2001-06-12 19:33:41 +0000
commit41bd28fee315c7b1d61c04dbe6441afba4d0b789 (patch)
treedad116d39388682c608746c9788a9a869485f771
parenta1a440c23e50c1a711bbe404456234895b8db79d (diff)
downloadrsync-41bd28fee315c7b1d61c04dbe6441afba4d0b789.tar.gz
Add --with-rsync-path option.
-rw-r--r--acconfig.h2
-rw-r--r--configure.in7
-rw-r--r--options.c2
3 files changed, 9 insertions, 2 deletions
diff --git a/acconfig.h b/acconfig.h
index 7a5f7ca8..d7572a56 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -15,4 +15,4 @@
#undef HAVE_SOCKETPAIR
#undef HAVE_SECURE_MKSTEMP
#undef HAVE_C99_VSNPRINTF
-
+#undef RSYNC_PATH
diff --git a/configure.in b/configure.in
index fca63caf..1adfe9e8 100644
--- a/configure.in
+++ b/configure.in
@@ -38,6 +38,13 @@ fi
AC_ARG_WITH(included-popt,
[ --with-included-popt use bundled popt library, not from system])
+AC_ARG_WITH(rsync-path,
+ [ --with-rsync-path=PATH set rsync path used on server to PATH (default: "rsync")],
+ [ RSYNC_PATH="$with_rsync_name" ],
+ [ RSYNC_PATH="rsync" ])
+RSYNC_PATH="\"$RSYNC_PATH\""
+AC_DEFINE_UNQUOTED(RSYNC_PATH, $RSYNC_PATH)
+
dnl Checks for programs.
AC_PROG_CC
AC_PROG_INSTALL
diff --git a/options.c b/options.c
index bbc32190..35a6dc64 100644
--- a/options.c
+++ b/options.c
@@ -81,7 +81,7 @@ char *config_file = RSYNCD_CONF;
char *shell_cmd = NULL;
char *log_format = NULL;
char *password_file = NULL;
-char *rsync_path = RSYNC_NAME;
+char *rsync_path = RSYNC_PATH;
char *backup_dir = NULL;
int rsync_port = RSYNC_PORT;