Fix dlvsym() detection in the configure script.
--ryan. From: Mike Frysinger <vapier@gentoo.org> To: sdl@libsdl.org Subject: Re: [SDL] sdl, sdl-mixer not compiling with uclibc Date: Wed, 7 Sep 2005 19:17:49 -0400 in this case actually, the error is in libsdl the configure check for dlvsym presence is pretty pointless, it currently always detects it AC_TRY_COMPILE([ #include <stdio.h> #define __USE_GNU #include <dlfcn.h> ],[ dlvsym(NULL,"",""); ],[ use_dlvsym=yes ]) since it's merely compiling, the warning about dlvsym being implicitly declared doesnt trigger a failure find attached a patch to fix this -mike --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401139
This commit is contained in:
parent
e6ea19255d
commit
36330ae2c9
1 changed files with 1 additions and 11 deletions
12
configure.in
12
configure.in
|
@ -313,18 +313,8 @@ CheckALSA()
|
|||
CFLAGS="$CFLAGS -DALSA_SUPPORT -DALSA_DYNAMIC=\$(alsa_lib) $ALSA_CFLAGS"
|
||||
AC_SUBST(alsa_lib)
|
||||
|
||||
AC_MSG_CHECKING(for dlvsym)
|
||||
use_dlvsym=no
|
||||
AC_TRY_COMPILE([
|
||||
#include <stdio.h>
|
||||
#define __USE_GNU
|
||||
#include <dlfcn.h>
|
||||
],[
|
||||
dlvsym(NULL,"","");
|
||||
],[
|
||||
use_dlvsym=yes
|
||||
])
|
||||
AC_MSG_RESULT($use_dlvsym);
|
||||
AC_CHECK_LIB(dl, dlvsym, [use_dlvsym=yes])
|
||||
if test x$use_dlvsym = xyes; then
|
||||
CFLAGS="$CFLAGS -DUSE_DLVSYM"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue