--- configure.orig	Sun Oct 10 14:37:07 1999
+++ configure	Sun Oct 10 14:37:29 1999
@@ -1429,7 +1429,7 @@
   ELF_SYS=true
 else
   rm -rf conftest*
-  if test "X$elf" = "Xyes"
+  if test "X$PORTOBJFORMAT" = "Xelf"
 then
 	ELF_SYS=true
 else