Commit ec1e9c44 authored by Måns Rullgård's avatar Måns Rullgård
Browse files

simplify imlib2 check

Originally committed as revision 7920 to svn://
parent 4f562a66
...@@ -1642,13 +1642,10 @@ enabled audio_beos && add_extralibs "-lmedia -lbe" ...@@ -1642,13 +1642,10 @@ enabled audio_beos && add_extralibs "-lmedia -lbe"
# imlib check # imlib check
imlib2=no 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_cflags `imlib2-config --cflags`
temp_extralibs `imlib2-config --libs` temp_extralibs `imlib2-config --libs`
check_ld <<EOF && imlib2=yes check_lib Imlib2.h imlib_load_font && enable imlib2
#include <Imlib2.h>
int main( void ) { return (int) imlib_load_font("foo"); }
restore_flags restore_flags
fi fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment