tools/i2enfeature
tools/mkembedconfig/Makefile
])
+
AC_OUTPUT([
etc/init.d/icinga2
])
+# Fix -rpath problem (https://wiki.debian.org/RpathIssue)
+case ${host} in
+ *-linux-gnu)
+ test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool)
+ sed 's|^sys_lib_dlsearch_path_spec=.*|sys_lib_dlsearch_path_spec="/lib64 /lib /usr/lib64 /usr/lib /usr/local/lib64 /usr/local/lib"|g' libtool >libtool.new
+ mv libtool.new libtool
+ ;;
+esac
+
if ! test -z "$LTDLDEPS"; then
ltdl_msg="bundled"
else
--with-icingacmd-user=$USER \
--with-icingacmd-group=$USER
-# http://fedoraproject.org/wiki/RPath_Packaging_Draft
-sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
-sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
-
make %{?_smp_mflags}
%install