iOS, avmedia library depend on autogen flag.
Disabled linking of avmedia if not present.
Change-Id: Id64192ec8172d4388b3624b5f832a90f7af1179c
diff --git a/configure.ac b/configure.ac
index c3d38c3..f053df0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4030,7 +4030,7 @@ darwin*)
case "$host_cpu" in
arm)
OS=iOS
OS=IOS
if test "$enable_ios_simulator" = "yes"; then
CPUNAME=I386
RTL_ARCH=x86
@@ -4042,7 +4042,7 @@ darwin*)
fi
;;
arm64)
OS=iOS
OS=IOS
if test "$enable_ios_simulator" = "yes"; then
CPUNAME=X86_64
RTL_ARCH=X86_64
diff --git a/oox/Library_oox.mk b/oox/Library_oox.mk
index ecf760f..a21157b 100644
--- a/oox/Library_oox.mk
+++ b/oox/Library_oox.mk
@@ -38,7 +38,7 @@ $(eval $(call gb_Library_use_api,oox,\
))
$(eval $(call gb_Library_use_libraries,oox,\
avmedia \
$(call gb_Helper_optional,AVMEDIA,avmedia) \
basegfx \
comphelper \
cppu \
diff --git a/svx/Library_svx.mk b/svx/Library_svx.mk
index 825b6c1..b244788 100644
--- a/svx/Library_svx.mk
+++ b/svx/Library_svx.mk
@@ -41,8 +41,7 @@ $(eval $(call gb_Library_add_defs,svx,\
$(eval $(call gb_Library_set_precompiled_header,svx,$(SRCDIR)/svx/inc/pch/precompiled_svx))
$(eval $(call gb_Library_use_libraries,svx,\
$(if $(filter-out $(OS),IOS), \
avmedia) \
$(call gb_Helper_optional,AVMEDIA,avmedia) \
basegfx \
sb \
comphelper \