AC_DEFINE(HAVE_NANOSLEEP, 1, [Define if nanosleep is available.])
AC_DEFINE(HAVE_NANOSLEEP, 1, [Define if nanosleep is available.])
fi
fi
fi # end "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
fi # end "${SYS}" != "mingw32" -a "${SYS}" != "mingwce"
dnl Check for misc headers
dnl Check for misc headers
AC_MSG_CHECKING(for strncasecmp in strings.h)
AC_MSG_CHECKING(for strncasecmp in strings.h)
...
@@ -870,20 +870,20 @@ AC_PATH_XTRA()
...
@@ -870,20 +870,20 @@ AC_PATH_XTRA()
dnl it seems that autoconf do the pkg-config detection only for the first PKG_CHECK_MODULES in the configure.ac ( which is logical) but in our case it is nested in a if so it was not working if you're not on linux or have disable hal.
dnl it seems that autoconf do the pkg-config detection only for the first PKG_CHECK_MODULES in the configure.ac ( which is logical) but in our case it is nested in a if so it was not working if you're not on linux or have disable hal.
dnl Make PKG_CONFIG_PATH precious so that it appears in the help and get saved
dnl Make PKG_CONFIG_PATH precious so that it appears in the help and get saved
AC_ARG_VAR(PKG_CONFIG_PATH,
AC_ARG_VAR(PKG_CONFIG_PATH,
[Paths where to find .pc not at the default location])
[Paths where to find .pc not at the default location])
PKG_PROG_PKG_CONFIG()
PKG_PROG_PKG_CONFIG()
dnl
dnl
dnl Check for zlib.h and -lz along with system -lminizip if available
dnl Check for zlib.h and -lz along with system -lminizip if available
AS_HELP_STRING([--enable-dca],[DTS Coherent Acoustics support with libdca
AS_HELP_STRING([--enable-dca],[DTS Coherent Acoustics support with libdca
(default enabled)]))
(default enabled)]))
AS_IF([test "${enable_dca}" != "no"], [
AS_IF([test "${enable_dca}" != "no"], [
AC_ARG_WITH(dca-tree,
AC_ARG_WITH(dca-tree,
...
@@ -3499,11 +3499,11 @@ then
...
@@ -3499,11 +3499,11 @@ then
AC_MSG_ERROR([cannot find ${real_libmpeg2_tree}/libmpeg2/.libs/libmpeg2.a, make sure you compiled libmpeg2 in ${with_libmpeg2_tree}])
AC_MSG_ERROR([cannot find ${real_libmpeg2_tree}/libmpeg2/.libs/libmpeg2.a, make sure you compiled libmpeg2 in ${with_libmpeg2_tree}])
fi
fi
],[
],[
PKG_CHECK_MODULES(LIBMPEG2,[libmpeg2 > 0.3.2],[
PKG_CHECK_MODULES(LIBMPEG2,[libmpeg2 > 0.3.2],[
VLC_ADD_PLUGIN([libmpeg2])
VLC_ADD_PLUGIN([libmpeg2])
VLC_ADD_LIBS([libmpeg2], $LIBMPEG2_LIBS)
VLC_ADD_LIBS([libmpeg2], $LIBMPEG2_LIBS)
VLC_ADD_CFLAGS([libmpeg2], $LIBMPEG2_CFLAGS)
VLC_ADD_CFLAGS([libmpeg2], $LIBMPEG2_CFLAGS)
],
],
AC_MSG_WARN([Could not find libmpeg2 on your system: you may get it from http://libmpeg2.sf.net/ . Alternatively you can use --disable-libmpeg2 to disable the libmpeg2 plugin.]))
AC_MSG_WARN([Could not find libmpeg2 on your system: you may get it from http://libmpeg2.sf.net/ . Alternatively you can use --disable-libmpeg2 to disable the libmpeg2 plugin.]))
])
])
fi
fi
...
@@ -3529,7 +3529,7 @@ then
...
@@ -3529,7 +3529,7 @@ then
fi
fi
if test -f "${real_vorbis_tree}/lib/.libs/libvorbis.a"
if test -f "${real_vorbis_tree}/lib/.libs/libvorbis.a"
AC_DEFINE_UNQUOTED(VLC_COMPILE_BY, "`whoami`", [user who ran configure])
AC_DEFINE_UNQUOTED(VLC_COMPILE_BY, "`whoami`", [user who ran configure])
if test "${build_os}" = "cygwin"
if test "${build_os}" = "cygwin"
then
then
AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname`", [host which ran configure])
AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname`", [host which ran configure])
else
else
AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname -s`", [host which ran configure])
AC_DEFINE_UNQUOTED(VLC_COMPILE_HOST, "`hostname -s`", [host which ran configure])
fi
fi
AC_DEFINE_UNQUOTED(VLC_COMPILE_DOMAIN, "`dnsdomainname 2>/dev/null || domainname 2>/dev/null || echo unknown`", [domain of the host which ran configure])
AC_DEFINE_UNQUOTED(VLC_COMPILE_DOMAIN, "`dnsdomainname 2>/dev/null || domainname 2>/dev/null || echo unknown`", [domain of the host which ran configure])