Changeset 26214 in project


Ignore:
Timestamp:
03/19/12 09:23:16 (9 years ago)
Author:
Ivan Raikov
Message:

gts: use pkg-config or gts-config to determine compilation flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/gts/trunk/gts.setup

    r26213 r26214  
    3131     (ipipe:execute lam `exp ))))
    3232
    33 (define gts-cflags (ipipe read-line (pkg-config --cflags gts)))
    34 (define gts-libs   (ipipe read-line (pkg-config --libs gts)))
     33(define gts-pkg-cflags (ipipe read-line (pkg-config --cflags gts)))
     34(define gts-pkg-libs   (ipipe read-line (pkg-config --libs gts)))
     35(define gts-cflags (ipipe read-line (gts-config --cflags)))
     36(define gts-libs   (ipipe read-line (gts-config --libs)))
    3537
    3638(define ld+cpp-options
    37   (or (and gts-cflags (gts-test ("#include <gts.h>" gts-libs gts-cflags)))
     39  (or (and (not (eof-object? gts-pkg-cflags))
     40           (not (eof-object? gts-pkg-libs))
     41           (gts-test ("#include <gts.h>" gts-pkg-libs gts-pkg-cflags)))
     42      (and (not (eof-object? gts-cflags))
     43           (not (eof-object? gts-libs))
     44           (gts-test ("#include <gts.h>" gts-libs gts-cflags)))
    3845      (gts-test ("#include <gts.h>" gts-libs ""))
    3946      (gts-test ("#include <gts.h>" gts-libs "-I/usr/include/gts"))
Note: See TracChangeset for help on using the changeset viewer.