configure: check for dladdr via AC_CHECK_FUNC/AC_CHECK_LIB
authorPali Rohár <pali.rohar@gmail.com>
Fri, 8 Aug 2014 17:31:07 +0000 (18:31 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 8 Aug 2014 18:26:39 +0000 (19:26 +0100)
commit39a4cc45a417bea3bb1cfbe20ea5045200f76c25
treed6f9449d1e831f95e2774d12018fb328534541dd
parent16826a36efcae53b1eb606efd2ce9d05b84cac4c
configure: check for dladdr via AC_CHECK_FUNC/AC_CHECK_LIB

Use both macros as in some cases using AC_CHECK_FUNCS alone may fail.
Thus HAVE_DLADDR will not be defined, and as a result most of the code
in megadriver_stub.c will not be compiled. Breaking the backwards
compatibility between older libGL/xserver(s) and DRI megadrivers.

Cc: Jon TURNEY <jon.turney@dronecode.org.uk>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
[Emil Velikov] Commit message.
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
configure.ac