]> git.sesse.net Git - vlc/commitdiff
Fix opengl module post compile checks (or something)
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 21 Oct 2006 20:26:42 +0000 (20:26 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 21 Oct 2006 20:26:42 +0000 (20:26 +0000)
configure.ac

index c1854c33ecdd310b75e497c2a1de7a7d38c77d64..fb1af424f15d7fad89145738ac6f750097481b7c 100644 (file)
@@ -3669,15 +3669,15 @@ if test "${enable_opengl}" != "no" &&
     AC_CHECK_HEADERS(GL/gl.h GL/glu.h, [
       VLC_ADD_PLUGINS([opengl])
       if test "${SYS}" != "mingw32"; then
-        VLC_ADD_LDFLAGS([opengl],[${X_LIBS} -lGL -lGLU])
+        VLC_ADD_LDFLAGS([opengl],[${X_LIBS} -lGL -lGLU -lm])
       else
-        VLC_ADD_LDFLAGS([opengl],[-lopengl32 -lglu32])
+        VLC_ADD_LDFLAGS([opengl],[-lopengl32 -lglu32 -lm])
       fi
     ])
   else
     dnl OS X special case (no GL/gl.h but OpenGL/gl.h)
     VLC_ADD_PLUGINS([opengl])
-    VLC_ADD_LDFLAGS([opengl],[-framework OpenGL])
+    VLC_ADD_LDFLAGS([opengl],[-framework OpenGL -lm])
   fi
 fi