[MPlayer-dev-eng] [PATCH] fix configure check for NAS

Bernd Ernesti mplayer-dev-eng at lists.veego.de
Sat Sep 2 17:26:17 CEST 2006


Hi,

configure doesn't find the NAS suport because of the linking order for the
optional math library.

>From the configure.log without the attached patch:

============ Checking for NAS ============

#include <audio/audiolib.h>
int main(void) { return 0; }

cc -O4 -march=pentium3 -mcpu=pentium3 -pipe -ffast-math -fomit-frame-pointer -I/usr/X11R6/include/freetype2 -I/usr/pkg/include -I/usr/X11R6/include -I/usr/pkg/include/SDL -D_REENTRANT    -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib  -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o /tmp/mplayer-conf--2738.o /tmp/mplayer-conf--2738.c -laudio -lXt -lXext -lX11 -lpthread -Wl,-R -lm
/usr/pkg/lib/libaudio.so: undefined reference to `floor'

Note that -lm comes at the end instead of before -laudio

Bernd

-------------- next part --------------
Index: configure
===================================================================
--- configure	(revision 19638)
+++ configure	(working copy)
@@ -4592,7 +4592,7 @@
 int main(void) { return 0; }
 EOF
   _nas=no
-  cc_check -laudio -lXt $_ld_x11 $_ld_lm && _nas=yes
+  cc_check $_ld_lm -laudio -lXt $_ld_x11 && _nas=yes
 fi
 if test "$_nas" = yes ; then
   _def_nas='#define HAVE_NAS 1'


More information about the MPlayer-dev-eng mailing list