Changeset 34672 in project


Ignore:
Timestamp:
10/01/17 19:30:38 (2 months ago)
Author:
mario
Message:

leptonica: try to figure out the location of leptonica's headers

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

Legend:

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

    r20747 r34672  
    6969
    7070  #>
    71   #include <liblept/allheaders.h>
     71  #include <allheaders.h>
    7272  <#
    7373
  • release/4/leptonica/trunk/leptonica.setup

    r20632 r34672  
    1 (compile -s -O3 -d1 "leptonica.scm" -j leptonica -llept -ljpeg -lpng -ltiff)
    2 (compile -c -O3 -d1 "leptonica.scm" -unit lepontica -llept -ljpeg -lpng -ltiff)
    3 (compile -s -O3 -d0 "leptonica.import.scm" -llept -ljpeg -lpng -ltiff)
     1;; -*- scheme -*-
     2
     3(define leptonica-test-code
     4  "#include \"allheaders.h\"\nint main() {return 0;}\n")
     5
     6(define include-options
     7  (cond ((try-compile leptonica-test-code)
     8         "")
     9        ((try-compile leptonica-test-code cflags: "-I/usr/include/leptonica")
     10         "-I/usr/include/leptonica")
     11        ((try-compile leptonica-test-code cflags: "-I/ur/include/liblept")
     12         "-I/usr/include/liblept")
     13        (else
     14         (error "Unable to figure out location of leptonica's headers."))))
     15
     16(compile -s -O3 -d1 ,include-options "leptonica.scm" -j leptonica -llept -ljpeg -lpng -ltiff)
     17(compile -c -O3 -d1 ,include-options "leptonica.scm" -unit lepontica -llept -ljpeg -lpng -ltiff)
     18(compile -s -O3 -d0 ,include-options "leptonica.import.scm" -llept -ljpeg -lpng -ltiff)
    419
    520(install-extension
Note: See TracChangeset for help on using the changeset viewer.