fix for darwin/sbcl matlisp build

Robbie Sedgewick <[email protected]> Thu, 03 Jun 2004 11:16:16 -0400
Newsgroups gmane.lisp.matlisp.user
Message-ID <[email protected]>
I tryed a more recent version of autoconf (version 2.59) but that didn't 
  help anything.  Same problem as before.

Then I tried to fiddle with the configure.in file.  It is only the 
"AC_F77_FUNC(f77_name)" command which causes problems on darwin so I 
just put that behind a case statement and hardcoded in the correct 
answer for darwin.  This function still gets called on non-darwin platforms.

With this change everything works.  I've attached the patch for 
configure.in.  Public cvs seems to be down so I may have generated the 
patch incorrectly, if I did a full verison of the new configure.in file 
is at
http://mercury.chem.pitt.edu/~rds/

Also newer versions of config.sub and config.guess are needed for 
configure to recognize darwin correctly.  These are in the autoconf 
distribution and I also put copies on my web site.


--Robbie
configure.in-darwin.patch (text/x-patch, 545 B)
--- configure.in	2004-05-25 12:29:06.000000000 -0400
+++ configure.in.darwin	2004-06-03 01:12:12.000000000 -0400
@@ -263,7 +263,15 @@
 dnl	Figure out what the Fortran name mangling is
 dnl
 dnl This is only for autoconf 2.49d or later!
-AC_F77_FUNC(f77_name)
+dnl This breaks on darwin, so just insert the correct value
+case "$host" in
+  *-*-darwin*)
+        f77_name=f77_name_
+        ;;
+  *)
+        AC_F77_FUNC(f77_name)
+  	;;
+esac
 # Setup our environment variables based on the value of f77_name
 F77_LOWER_CASE=t
 F77_UNDERSCORE=t