Date: Wed, 19 May 2004 14:20:55 -0400 From: Chiang Seng Chang <cs@ctzen.com> To: freebsd-questions@freebsd.org Subject: defining knobs in pkgtools.conf question Message-ID: <40ABA587.7020604@ctzen.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40ABA587.7020604>