Index: /trunk/psconfig/psbuild
===================================================================
--- /trunk/psconfig/psbuild	(revision 12867)
+++ /trunk/psconfig/psbuild	(revision 12868)
@@ -93,5 +93,8 @@
     ps_setenv ("PERL5LIB",        "--perl5lib");
 
-    print STDERR "ENV: $ENV{'PATH'}\n";
+    # make sure the aclocal path exists
+    @word = split (" ", $ENV{'ACLOCAL_FLAGS'});
+    if (@word != 2) { &failure("setup", "ACLOCAL_FLAGS is not set"); }
+    if (! -e $word[1]) { vsystem ("mkdir -p $word[1]"); }
 
     $psopts = "";
