Changeset 577


Ignore:
Timestamp:
Feb 18, 2010, 2:36:28 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

configure.cmd: CUPS_INCLUDEPATH and CUPS_LIBS environment variables were actually ignored.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.cmd

    r576 r577  
    594594    /* detect the CUPS support */
    595595
    596     call GetPkgVersionAndPath 'Peter Brown\CUPS\CUPS', 'G.CUPS'
    597     if (G.CUPS.version \== '') then
    598         call SayVerbose 'eCUPS version 'G.CUPS.version' detected in "'G.CUPS.path'"'
    599     else
    600         call SayVerbose 'eCUPS is not found.'
    601 
    602     if (G.CUPS.version >= "1.3.11") then do
    603         G.CUPS.path = FixDirNoSlash(G.CUPS.path)'\cups';
    604         G.CFG_CUPS = "yes"
    605         G.CUPS_INCLUDEPATH = G.CUPS.path'\include'
    606         G.CUPS_LIBS = '-L'G.CUPS.path'\lib libcups.a pthread.lib'
     596    G.CUPS_INCLUDEPATH = GetEnv('CUPS_INCLUDEPATH')
     597    G.CUPS_LIBS = GetEnv('CUPS_LIBS')
     598    if (G.CUPS_INCLUDEPATH == '' & G.CUPS_LIBS == '') then do
     599        /* Check if eCUPS WPI is installed */
     600        call GetPkgVersionAndPath 'Peter Brown\CUPS\CUPS', 'G.CUPS'
     601        if (G.CUPS.version \== '') then
     602            call SayVerbose 'eCUPS version 'G.CUPS.version' is detected in "'G.CUPS.path'"'
     603        else
     604            call SayVerbose 'eCUPS is not found.'
     605        if (G.CUPS.version >= "1.3.11") then do
     606            G.CUPS.path = FixDirNoSlash(G.CUPS.path)'\cups';
     607            G.CUPS_INCLUDEPATH = G.CUPS.path'\include'
     608            G.CUPS_LIBS = '-L'G.CUPS.path'\lib libcups.a pthread.lib'
     609        end
     610        else
     611            call SayVerbose 'eCUPS version is not supported.'
     612        drop G.CUPS.
     613    end
     614    if (G.CUPS_LIBS \== '')  then do
     615        call SayVerbose 'CUPS include path : 'G.CUPS_INCLUDEPATH
     616        call SayVerbose 'CUPS libraries    : 'G.CUPS_LIBS
     617        G.CFG_CUPS = 'yes'
    607618    end
    608619    else do
    609         G.CFG_CUPS = "no"
    610         G.CUPS_INCLUDEPATH = ''
    611         G.CUPS_LIBS = ''
    612         /* so far, CUPS is the only printing system we support so disable
    613          * the printer classses at all when CUPS is not available */
     620        call SayVerbose 'CUPS libraries are not specified, CUPS support is disabled.'
     621        G.CFG_CUPS = 'no'
     622    end
     623    /* so far, CUPS is the only printing system we support so disable
     624     * the printer classses at all when CUPS is not available */
     625    if (G.CFG_CUPS == 'no') then do
    614626        call SaySay 'WARNING: Printing support is completely disabled due to',
    615                     'missing or outdated eCUPS framework.'
     627                    '.'
    616628        G.D_FLAGS = Join(G.D_FLAGS, "QT_NO_PRINTER")
    617629        G.QCONFIG_FLAGS = Join(G.QCONFIG_FLAGS, "QT_NO_PRINTER")
Note: See TracChangeset for help on using the changeset viewer.