-
Notifications
You must be signed in to change notification settings - Fork 6
/
configure.ac
79 lines (58 loc) · 2.4 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
AC_INIT([d2vsource], [1.3], [https://github.com/dwbuiten/d2vsource/issues], [d2vsource], [https://github.com/dwbuiten/d2vsource/])
: ${CXXFLAGS=""}
AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-xz subdir-objects no-define])
AM_SILENT_RULES([yes])
LT_INIT([disable-static win32-dll])
AC_PROG_CXX
AC_SYS_LARGEFILE
AC_FUNC_FSEEKO
PKG_CHECK_MODULES([libavcodec], [libavcodec])
PKG_CHECK_MODULES([libavformat], [libavformat])
PKG_CHECK_MODULES([libavutil], [libavutil])
PKG_CHECK_MODULES([VapourSynth], [vapoursynth])
AC_CANONICAL_HOST
AS_CASE(
[$host_cpu],
[i?86], [BITS="32"],
[x86_64], [BITS="64"],
)
AS_CASE(
[$host_os],
[cygwin*|mingw*],
[
AS_IF(
[test "x$BITS" = "x32"],
[
AC_SUBST([PLUGINLDFLAGS], ["-Wl,--kill-at"])
]
)
]
)
dnl Workaround for a bug in libtool
dnl The windows libtool uses a file magic checking method that only accepts
dnl dynamic libraries. Change it for libtool's alternative checking method.
dnl Workaround found in configure.ac from ffms2.
dnl Reproducing the error message below, for search engines and people
dnl looking for a solution...
dnl *** Warning: linker path does not have real file for library -lfftw3f.
dnl *** I have the capability to make that library automatically link in when
dnl *** you link to this library. But I can only do this if you have a
dnl *** shared version of the library, which you do not appear to have
dnl *** because I did check the linker path looking for a file starting
dnl *** with libfftw3f and none of the candidates passed a file format test
dnl *** using a file magic. Last file checked: /home/asdf/mingw-w64/i686/mingw/lib/libfftw3f.a
dnl *** The inter-library dependencies that have been dropped here will be
dnl *** automatically added whenever a program is linked with this library
dnl *** or is declared to -dlopen it.
dnl *
dnl *** Since this library must not contain undefined symbols,
dnl *** because either the platform does not support them or
dnl *** it was explicitly requested with -no-undefined,
dnl *** libtool will only create a static version of it.
if test "$lt_cv_file_magic_cmd" = "func_win32_libid" ; then
deplibs_check_method='file_magic file format pei*-(i386|x86-64)|(.*architecture: i386)?'
file_magic_cmd='$OBJDUMP -f'
fi
AS_IF([test "x$enable_static" = "xyes"], [AC_MSG_ERROR([d2vsource cannot function as a static library.])])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT