Changeset 7098117 in git


Ignore:
Timestamp:
Jan 29, 2002, 6:26:47 PM (22 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
d4cb43b26737c80cde4d1405d47ce55e39929c13
Parents:
eaf4cbcc0e3ddce55ed242af00a6024d38e4a967
Message:
*hannes: AIX-port


git-svn-id: file:///usr/local/Singular/svn/trunk@5821 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/Makefile.in

    reaf4cb r7098117  
    323323           feOptES.inc mmalloc.o
    324324        ${CXX} -O2 ${CPPFLAGS} ${DEFS} -DESINGULAR -o ESingular emacs.cc fegetopt.o \
    325         ${LDFLAGS} ${LIBS} -lomalloc_ndebug mmalloc.o
     325        ${LDFLAGS} -lomalloc_ndebug mmalloc.o
    326326
    327327TSingular: fegetopt.o feResource.cc mod2.h feOpt.cc version.h emacs.cc \
    328328           feOptTS.inc mmalloc.o
    329329        ${CXX} -O2 ${CPPFLAGS} ${DEFS} -DTSINGULAR -o TSingular emacs.cc fegetopt.o \
    330         ${LDFLAGS}  ${LIBS} -lomalloc_ndebug mmalloc.o
     330        ${LDFLAGS} -lomalloc_ndebug mmalloc.o
    331331
    332332feOpt.o: feOpt.inc feOptES.inc feOptTS.inc
  • Singular/feResource.cc

    reaf4cb r7098117  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: feResource.cc,v 1.32 2001-08-27 14:46:57 Singular Exp $ */
     4/* $Id: feResource.cc,v 1.33 2002-01-29 17:26:47 Singular Exp $ */
    55/*
    66* ABSTRACT: management of resources
     
    1212
    1313#include "mod2.h"
     14#ifdef AIX_4
     15#define HAVE_PUTENV 1
     16#endif
     17
    1418#include "distrib.h"
    1519#include "dError.h"
     
    190194  feResource('s',0);
    191195
    192 #ifdef HAVE_SETENV
     196#if defined(HAVE_SETENV) || defined(HAVE_PUTENV)
    193197  char* path = feResource('p');
    194198#ifdef RESOURCE_DEBUG
    195199  printf("feInitResources: setting path with argv0=%s=\n", path);
    196200#endif
     201#ifdef HAVE_PUTENV
     202  if (path != NULL) { char *s=(char *)omAlloc0(strlen(path)+6);
     203                      sprintf(s,"PATH=%s",path);
     204                      putenv(s);
     205                    }
     206#else
    197207  if (path != NULL) setenv("PATH", path, 1);
     208#endif
    198209#endif
    199210}
Note: See TracChangeset for help on using the changeset viewer.