lxc: use generic autoreconf fixup
[feed/packages.git] / lang / php5 / patches / 950-Fix-dl-cross-compiling-issue.patch
1 --- a/configure.in
2 +++ b/configure.in
3 @@ -453,7 +453,10 @@ PHP_CHECK_FUNC(gethostname, nsl)
4 PHP_CHECK_FUNC(gethostbyaddr, nsl)
5 PHP_CHECK_FUNC(yp_get_default_domain, nsl)
6
7 -PHP_CHECK_FUNC(dlopen, dl)
8 +PHP_ADD_LIBRARY(dl)
9 +PHP_DEF_HAVE(dlopen)
10 +PHP_DEF_HAVE(libdl)
11 +ac_cv_func_dlopen=yes
12 if test "$ac_cv_func_dlopen" = "yes"; then
13 AC_DEFINE(HAVE_LIBDL, 1, [ ])
14 fi