Ignore:
Timestamp:
Oct 25, 2011, 4:59:31 PM (14 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.3: some small adjustments for cups and unneeded function removed

Location:
branches/samba-3.3.x/source
Files:
5 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/build.cmd

    r614 r644  
    55/* version 0.2.0 from 09.06.2010 Herwig (a lot enhancements) */
    66/* version 0.3.0 from 20.08.2010 Silvan (added version.ecs check and more) */
     7/* version 0.3.1 from 25.10.2011 Silvan (added cups support) */
    78
    89/* load the sysfuncs if not already loaded */
     
    1415
    1516/* init the version string (don't forget to change) */
    16 version = "0.3.0"
    17 version_date = "20.08.2010"
     17version = "0.3.1"
     18version_date = "25.10.2011"
    1819
    1920'@echo off'
     
    4748
    4849options = 'build.options'
     50cacheFile = 'build.cache'
    4951
    5052/* defaults */
     
    114116         --disable-cups         
    115117     */
    116     address cmd 'ksh ./configure --enable-pie=no --prefix=/samba --enable-static --disable-shared --disable-ldap --with-acl-support 2>&1 | tee configure.log'
     118
     119/* we need to delete the cache file and redo it afterwards */
     120    ok = SysFileDelete(cacheFile);
     121
     122/* is cups env set */
     123        sEnvVar = EnvGet('CUPS');
     124    if sEnvVar <> '' then do
     125    call lineout cacheFile, "ac_cv_path_CUPS_CONFIG='" || sEnvVar || "'";
     126    end
     127
     128    ok = stream(cacheFile, 'c', 'close');
     129
     130/* run configure */
     131    address cmd 'ksh ./configure --enable-pie=no --prefix=/samba --enable-static --disable-shared --with-acl-support --cache-file=build.cache 2>&1 | tee configure.log'
    117132        address cmd 'ENDLOCAL'
    118133end
     
    219234    say "Samba "verstring
    220235return
     236
     237/**
     238 * Gets the value of sEnvVar.
     239 */
     240EnvGet: procedure
     241    parse arg sEnvVar
     242    if ((translate(sEnvVar) = 'BEGINLIBPATH') | (translate(sEnvVar) = 'ENDLIBPATH')) then
     243        return SysQueryExtLibPath(substr(sEnvVar, 1, 1));
     244return value(sEnvVar,, 'OS2ENVIRONMENT');
  • branches/samba-3.3.x/source/configure

    r614 r644  
    1319313193                ac_save_LDFLAGS=$LDFLAGS
    1319413194                ac_save_PRINT_LIBS=$PRINT_LIBS
     13195                case "$host_os" in
     13196                                *os2*)
     13197                 PRINT_LIBS="$PRINT_LIBS -lcups -lpthread -lz"
     13198                                 ;;
     13199                                 *)
    1319513200                CFLAGS="$CFLAGS `$CUPS_CONFIG --cflags`"
    1319613201                LDFLAGS="$LDFLAGS `$CUPS_CONFIG --ldflags`"
    1319713202                PRINT_LIBS="$PRINT_LIBS `$CUPS_CONFIG --libs`"
     13203                                 ;;
     13204                 esac
    1319813205                for ac_header in cups/cups.h cups/language.h
    1319913206do :
  • branches/samba-3.3.x/source/dynconfig.c

    r585 r644  
    295295        if (!*buffer)
    296296        {
    297                 if (os2_isClient())
     297                if (lp_is_in_client())
    298298                {
    299299                        snprintf(buffer, 260, "%s/samba/lock/client", getenv("ETC"));
  • branches/samba-3.3.x/source/lib/os2helper.c

    r585 r644  
    136136
    137137// we search with the exe name if we are in client mode
     138/* not used anymore, as lp_is_in_client() is used instead
    138139bool os2_isClient()
    139140{
     
    153154        }
    154155}
    155 
     156*/
    156157/* OS/2-specific random functions. these functions used to be based on APR
    157158   random code, but we discovered some nasty problems with it on fast hardware
Note: See TracChangeset for help on using the changeset viewer.