Changeset 15549 in project


Ignore:
Timestamp:
08/23/09 17:57:05 (10 years ago)
Author:
sjamaan
Message:

Fix X11 detection

Location:
release/4/imlib2/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • release/4/imlib2/trunk/imlib2.scm

    r14832 r15549  
    5454(import chicken scheme foreign)
    5555
    56 ; Not needed with the latest Imlib2 (1.2.2)
    57 (cond-expand (with-x
    58               (foreign-declare "#include <X11/Xlib.h>"))
    59              (else))
    60 
    6156(foreign-declare "#include <Imlib2.h>")
    6257
  • release/4/imlib2/trunk/imlib2.setup

    r14832 r15549  
    55
    66(define with-x?
    7   `(test-compile "int main(){ return 0; }" #:ldflags "`freetype-config --libs` ,RPATH-FLAGS"))
     7  (test-compile "#include <Imlib.h>\nint main(){ return 0; }" #:ldflags "`imlib2-config --libs`" "`imlib2-config --cflags`" RPATH-FLAGS))
    88
    99(if with-x?
Note: See TracChangeset for help on using the changeset viewer.