From 41bd28fee315c7b1d61c04dbe6441afba4d0b789 Mon Sep 17 00:00:00 2001 From: David Dykstra Date: Tue, 12 Jun 2001 19:33:41 +0000 Subject: [PATCH] Add --with-rsync-path option. --- acconfig.h | 2 +- configure.in | 7 +++++++ options.c | 2 +- 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; -- 2.34.1