]> git.sesse.net Git - ffmpeg/commitdiff
simplify imlib2 check
authorMåns Rullgård <mans@mansr.com>
Sun, 11 Feb 2007 11:42:35 +0000 (11:42 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 11 Feb 2007 11:42:35 +0000 (11:42 +0000)
Originally committed as revision 7920 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 1840408d69b1838af3aa8656f642b9f059fd6243..4733467fd648b134f065fe54054009d133b2d86f 100755 (executable)
--- a/configure
+++ b/configure
@@ -1642,13 +1642,10 @@ enabled audio_beos && add_extralibs "-lmedia -lbe"
 # imlib check
 
 imlib2=no
-if (imlib2-config --version) >/dev/null 2>&1 ; then
+if imlib2-config --version >/dev/null 2>&1; then
     temp_cflags `imlib2-config --cflags`
     temp_extralibs `imlib2-config --libs`
-    check_ld <<EOF && imlib2=yes
-#include <Imlib2.h>
-int main( void ) { return (int) imlib_load_font("foo"); }
-EOF
+    check_lib Imlib2.h imlib_load_font && enable imlib2
     restore_flags
 fi