defining knobs in pkgtools.conf question
Chiang Seng Chang
cs at ctzen.com
Wed May 19 11:20:56 PDT 2004
Hi,
This is from the lang/python Makefile
=== quote ===
OPTIONS= THREADS "Enable thread support" on \
HUGE_STACK_SIZE "Use a larger thread stack" off \
UCS2 "Use UCS2 instead of UCS4 for unicode support" off \
PYMALLOC "Uses python's internal malloc" on
.include <bsd.port.pre.mk>
.if defined(WITH_THREADS)
CONFIGURE_ARGS+= --with-threads
CFLAGS+= ${PTHREAD_CFLAGS}
.if defined(WITHOUT_HUGE_STACK_SIZE)
CFLAGS+= -DTHREAD_STACK_SIZE=0x20000
.else
CFLAGS+= -DTHREAD_STACK_SIZE=0x100000
.endif # defined(WITHOUT_HUGE_STACK_SIZE)
CONFIGURE_ENV+= LDFLAGS="${PTHREAD_LIBS} ${LDFLAGS}"
.else
CONFIGURE_ARGS+= --without-threads
.if defined(LDFLAGS)
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
.endif # defined(LDFLAGS)
.endif # defined(WITH_THREADS)
.if defined(WITHOUT_UCS2)
CONFIGURE_ARGS+= --enable-unicode=ucs4
.endif
.if defined(WITHOUT_PYMALLOC)
CONFIGURE_ARGS+= --without-pymalloc
.endif
=== end quote ===
So if I wish to put the knobs into pkgtools.conf so that it can build it
batch mode, do I:
WITH_THREADS=1
WITHOUT_HUGE_STACK_SIZE=1
WITH_UCS2=1
WITH_PYMALLOC=1
or
WITH_THREADS=1
WITHOUT_HUGE_STACK_SIZE=1
WITHOUT_UCS2=0
WITHOUT_PYMALLOC=0
I guess my question is how to decide wheather to use WITH_XXX=1 or
WITHOUT_XXX=0 ?
does WITH_XXX=0 result in #defined(WITH_XXX) returning false ?
Regards.
-cs
More information about the freebsd-questions
mailing list