CFG_CFLAGS+=" -pthread -Wall"
# misguided pedantic warnings
# this is extra work, not a gain...
-CFG_CFLAGS+=" -Wno-unknown-warning-option"
+#CFG_CFLAGS+=" -Wno-unknown-warning-option"
CFG_CFLAGS+=" -Wno-attributes"
CFG_CFLAGS+=" -Wno-unused-result"
CFG_CFLAGS+=" -Wno-stringop-overflow"
CFG_CFLAGS+=" -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
CFG_CFLAGS+=" -I/usr/include -I/usr/local/include"
CFG_CFLAGS+=" -I/usr/include/freetype2 -I/usr/local/include/freetype2"
+CFG_CFLAGS+=" -I/data/data/com.termux/files/usr/include/freetype2"
CFG_CFLAGS+=" -I/usr/include/uuid -I/usr/local/include/uuid"
+CFG_CFLAGS+=" -I/data/data/com.termux/files/usr/include/uuid -I/usr/local/include/uuid"
CFG_CFLAGS+=" -I/usr/include/mjpegtools -I/usr/local/include/mjpegtools"
AC_DEFUN([CHECK_WITH], [
lib/.libs/libvorbisfile.a ],
[ include . ])
+## arch dep tests
+ARCH=[`uname -m`]
+I86=[`expr "x$ARCH" : 'xi[346]86.*'`]
+X86=[`expr "x$ARCH" : 'x..._64*'`]
+
+if test "x$I86$X86" != "x00" ; then
+
PKG_3RD([mjpegtools],[yes],
[mjpegtools-2.1.0],
[ utils/mmxsse/.libs/libmmxsse.a \
mpeg2enc/.libs/libmpeg2encpp.a ],
[ . lavtools utils ])
+else
+
+PKG_3RD([mjpegtools],[yes],
+ [mjpegtools-2.1.0],
+ [ utils/.libs/libmjpegutils.a \
+ lavtools/.libs/liblavfile.a \
+ lavtools/.libs/liblavjpeg.a \
+ mplex/.libs/libmplex2.a \
+ yuvfilters/.libs/libyuvfilters.a \
+ mpeg2enc/.libs/libmpeg2encpp.a ],
+ [ . lavtools utils ])
+
+fi
+
PKG_3RD([openexr],[auto],
[openexr-2.4.1],
[ usr/local/lib/libHalf.a \
[ ],
[ . ])
+if test [ "$(uname -o)"] = "Android" ; then
+
+PKG_3RD([libbthread],[auto],
+ [libbthread-master],
+ [ *.a ],
+ [ . ])
+fi
+
+
AC_SUBST(STATIC_PKGS)
AC_DEFUN([CHECK_ENABLE], [
REQUIRE_PROG(YASM, [yasm])
fi
+if test "x$I86$X86" == "x00"; then
+ CFG_CFLAGS+=" -DNO_CTX -DNO_GDB -DNO_BTRACE"
+fi
+
## end arch dep tests
REQUIRE_PROG(OBJCOPY, [objcopy])
fi
])
+PKG_PROVIDE([libbthread])
PKG_PROVIDE([a52dec])
PKG_PROVIDE([djbfft])
PKG_PROVIDE([encore])
CFG_CFLAGS+=" -DBOOBY"
fi
+if test [ "$(uname -o)"] = "Android" ; then
+# termux
+EXTRA_LIBS+=' -liconv'
+fi
+
# intel lock elision bugs
if test "x$WANT_NOELISION" != "xno"; then
CFG_RPATH=`ls -1fd 2> /dev/null \