re PR libobjc/11572 (GNU libobjc no longer compiled on Darwin)
2004-05-25 Andrew Pinski <pinskia@physics.uc.edu>
PR target/11572
* configure.ac (includedir): Set to "include"
except for Darwin.
(libext) Set to empty except for Darwin.
* configure: Regenerate
* Makefile.in: s/libobjc.la/libobjc$(libext).la/g.
s/include/$(includedir)/g.
From-SVN: r82266
diff --git a/libobjc/configure.ac b/libobjc/configure.ac
index e6d65fa..4f6ec14 100644
--- a/libobjc/configure.ac
+++ b/libobjc/configure.ac
@@ -154,6 +154,20 @@
AC_SUBST(toolexecdir)
AC_SUBST(toolexeclibdir)
+# Figure out if we want to name the include directory and the
+# library name changes differently.
+includedir=include
+libext=
+case "${host}" in
+ *-darwin*)
+ # Darwin is the only target so far that needs a different include directory.
+ includedir=gnu-runtime;
+ libext=-gnu
+ ;;
+esac
+AC_SUBST(includedir)
+AC_SUBST(libext)
+
# --------
# Programs
# --------