added configure check for POPT_TABLEEND

Original commit message from CVS:
added configure check for POPT_TABLEEND
This commit is contained in:
Thomas Vander Stichele 2002-07-10 10:42:04 +00:00
parent 8644cd03d6
commit e616bfb44e
2 changed files with 23 additions and 3 deletions

2
common

@ -1 +1 @@
Subproject commit 4ed4b888250d1081585717504b571ebf2de72c60
Subproject commit 316e406cd246e8cbccdf4df4ce32e98c63d7cc72

View file

@ -140,9 +140,29 @@ AC_SUBST(LIBXML_PKG)
AC_SUBST(XML_LIBS)
AC_SUBST(XML_CFLAGS)
dnl popt checks
GST_CHECK_LIBHEADER(POPT, popt, poptStrippedArgv,, popt.h, POPT_LIBS="-lpopt",
AC_MSG_ERROR([popt 1.5 or newer is required to build gstreamer. You can
download the latest version from ftp://people.redhat.com/sopwith/popt/]))
AC_MSG_ERROR([popt 1.6.1 or newer is required to build gstreamer. You can
download the latest version from
ftp://people.redhat.com/sopwith/popt/])
)
AC_MSG_NOTICE(Checking for POPT_TABLEEND)
AC_TRY_RUN([
#include <popt.h>
int main ()
{
#ifndef POPT_TABLEEND
return 1;
#else
return 0;
#endif
}
],, [
dnl it failed
AC_MSG_ERROR([popt 1.6.1 or newer is required to build gstreamer. You can
download the latest version from
ftp://people.redhat.com/sopwith/popt/])
])
dnl Check for atomic.h
dnl Note: use AC_CHECK_HEADER not AC_CHECK_HEADERS, because the latter