Index: trunk/config.h.in =================================================================== --- trunk/config.h.in (revision 18826) +++ trunk/config.h.in (revision 18827) @@ -52,6 +52,9 @@ print {\n\n/* Wether setenv() works */\n} print_ternary ?libs/env/setenv/presents {#define PCB_HAVE_SETENV 1} {/* #undef PCB_HAVE_SETENV */} +print {\n\n/* Wether putenv() works */\n} +print_ternary ?libs/env/putenv/presents {#define PCB_HAVE_PUTENV 1} {/* #undef PCB_HAVE_PUTENV */} + print {\n\n/* Wether usleep() works */\n} print_ternary ?libs/time/usleep/presents {#define PCB_HAVE_USLEEP 1} {/* #undef PCB_HAVE_USLEEP */} Index: trunk/scconfig/hooks.c =================================================================== --- trunk/scconfig/hooks.c (revision 18826) +++ trunk/scconfig/hooks.c (revision 18827) @@ -393,6 +393,8 @@ require("signal/names/*", 0, 0); require("libs/env/setenv/*", 0, 0); + if (!istrue(get("libs/env/setenv/presents"))) + require("libs/env/putenv/*", 0, 0); require("libs/fs/mkdtemp/*", 0, 0); require("libs/fs/realpath/*", 0, 0); require("libs/fs/readdir/*", 0, 1);