--- parser3/src/targets/cgi/parser3.C 2001/08/31 15:56:46 1.100 +++ parser3/src/targets/cgi/parser3.C 2001/09/04 07:02:33 1.102 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) */ -static const char *RCSId="$Id: parser3.C,v 1.100 2001/08/31 15:56:46 parser Exp $"; +static const char *RCSId="$Id: parser3.C,v 1.102 2001/09/04 07:02:33 parser Exp $"; #include "pa_config_includes.h" @@ -272,13 +272,16 @@ int main(int argc, char *argv[]) { ); // some root-controlled location -#ifdef WIN32 +#ifdef SYSCONFDIR + const char *root_auto_path=SYSCONFDIR; +#else +# ifdef WIN32 // c:\windows static char root_auto_path[MAX_STRING]; GetWindowsDirectory(root_auto_path, MAX_STRING); -#else - // ~nobody todo: figure out a better place - const char *root_auto_path=SAPI::get_env(pool, "HOME"); +# else + #error must be compiled either configure/make or MSVC++ +# endif #endif // beside by binary