Magellan Linux

Contents of /trunk/libsdl/patches/libsdl-1.2.9-dlvsym-check.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (show annotations) (download)
Tue May 8 20:06:05 2007 UTC (17 years ago) by niro
File size: 907 byte(s)
-import

1 simply trying a compile to see if a func exists is not enough
2
3 check to see if the dlvsym func exists in the dl library instead
4
5 --- configure.in
6 +++ configure.in
7 @@ -313,18 +313,8 @@ CheckALSA()
8 CFLAGS="$CFLAGS -DALSA_SUPPORT -DALSA_DYNAMIC=\$(alsa_lib) $ALSA_CFLAGS"
9 AC_SUBST(alsa_lib)
10
11 - AC_MSG_CHECKING(for dlvsym)
12 use_dlvsym=no
13 - AC_TRY_COMPILE([
14 - #include <stdio.h>
15 - #define __USE_GNU
16 - #include <dlfcn.h>
17 - ],[
18 - dlvsym(NULL,"","");
19 - ],[
20 - use_dlvsym=yes
21 - ])
22 - AC_MSG_RESULT($use_dlvsym);
23 + AC_CHECK_LIB(dl, dlvsym, [use_dlvsym=yes])
24 if test x$use_dlvsym = xyes; then
25 CFLAGS="$CFLAGS -DUSE_DLVSYM"
26 fi