Changeset 34676 in project


Ignore:
Timestamp:
10/01/17 19:51:33 (3 months ago)
Author:
mario
Message:

libsvm: try to figure out the location of svm's header

File:
1 edited

Legend:

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

    r20846 r34676  
    1 (compile -s -O3 -d1 "libsvm.scm" -j libsvm -lsvm)
    2 (compile -c -O3 -d1 "libsvm.scm" -unit libsvm -lsvm)
    3 (compile -s -O3 -d0 "libsvm.import.scm" -lsvm)
     1;; -*- scheme -*-
     2
     3(define svm-test-code
     4  "#include \"svm.h\"\nint main() {return 0;}\n")
     5
     6(define include-options
     7  (cond ((try-compile svm-test-code)
     8         "")
     9        ((try-compile svm-test-code cflags: "-I/usr/include/libsvm")
     10         "-I/usr/include/libsvm")
     11        (else
     12         (error "Unable to figure out location of svm's headers."))))
     13
     14(compile -s -O3 -d1 ,include-options "libsvm.scm" -j libsvm -lsvm)
     15(compile -c -O3 -d1 ,include-options "libsvm.scm" -unit libsvm -lsvm)
     16(compile -s -O3 -d0 ,include-options "libsvm.import.scm" -lsvm)
    417
    518(install-extension
Note: See TracChangeset for help on using the changeset viewer.