-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure_for_windows.ac
44 lines (40 loc) · 1.41 KB
/
configure_for_windows.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
dnl
dnl NetCDF library for SOFAlizer Plugin
dnl
AS_IF([test "${SYS}" = "linux"], [
AC_ARG_ENABLE(sofalizer,
[ --enable-sofalizer netcdf-binarual support (default disabled)],,
[enable_sofalizer=no])
if test "${enable_sofalizer}" != "no"
then
PKG_CHECK_MODULES(NETCDF,netcdf >= 4.1.3,
[
AC_CHECK_HEADERS(netcdf.h, [], [AC_MSG_ERROR([Missing header file netcdf.h.])] )
VLC_ADD_PLUGIN([sofalizer])
VLC_ADD_LDFLAGS([sofalizer],[$NETCDF_LIBS])
VLC_ADD_CFLAGS([sofalizer], [$NETCDF_CFLAGS]) ],
[
AC_MSG_ERROR([${NETCDF_PKG_ERRORS}.]) ])
fi
])
AS_IF([test "${SYS}" = "mingw32"], [
AC_ARG_ENABLE(sofalizer,
[ --enable-sofalizer netcdf-sofalizer support (default enabled)])
if test "${enable_sofalizer}" != "no"
then
VLC_ADD_PLUGIN([sofalizer])
VLC_ADD_LIBS( [sofalizer], [ -lnetcdf])
AC_CHECK_HEADERS(netcdf.h, [], [AC_MSG_ERROR([Missing header file netcdf.h.])] )
AC_ARG_WITH([netcdf-include-path],
[AS_HELP_STRING([--with-netcdf-include-path],
[location of the NetCDF headers, default to /usr/include/])],
[NETCDF_CFLAGS='-I${CONTRIB_DIR}/include'])
AC_SUBST([NETCDF_CFLAGS])
AC_ARG_WITH([netcdf-lib-path],
[AS_HELP_STRING([--with-netcdf-lib-path], [location of the netCDF libraries])],
[NETCDF_LIBS='-lnetcdf'])
AC_SUBST([NETCDF_LIBS])
VLC_ADD_LDFLAGS([sofalizer],[$NETCDF_LIBS])
VLC_ADD_CFLAGS([sofalizer], [$NETCDF_CFLAGS])
fi
])