summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure.ac1
-rw-r--r--scp2/source/ooo/scpaction_ooo.scp2
2 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 2c136c055e89..14fdbfd75e84 100755
--- a/configure.ac
+++ b/configure.ac
@@ -7347,6 +7347,7 @@ if test "$enable_epm" = "yes"; then
elif "$RPM" --help 2>&1 | $EGREP buildroot >/dev/null; then
RPM_PATH=`which $RPM`
AC_MSG_RESULT([$RPM_PATH])
+ SCPDEFS="$SCPDEFS -DWITH_RPM"
else
AC_MSG_ERROR([cannot build packages. Try installing rpmbuild.])
fi
diff --git a/scp2/source/ooo/scpaction_ooo.scp b/scp2/source/ooo/scpaction_ooo.scp
index 040963eea581..c84f4a994857 100644
--- a/scp2/source/ooo/scpaction_ooo.scp
+++ b/scp2/source/ooo/scpaction_ooo.scp
@@ -44,7 +44,7 @@ ScpAction scp_Copy_Readme_Txt
End
#endif
-#if !defined(WNT) && !defined(MACOSX)
+#if !defined(WNT) && !defined(MACOSX) && defined(WITH_RPM)
ScpAction scp_Copy_Install
Copy = "scripts/install";
Name = "install";