[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
PATCH: Don't add tags for languages not used or found
From: |
Robert Boehne x238 |
Subject: |
PATCH: Don't add tags for languages not used or found |
Date: |
Wed, 19 Mar 2003 20:26:15 -0600 |
Hello,
Finally, you've all been waiting for this, here is a patch to Libtool
that keeps the extra tags from being added even when the language
is not wanted or needed.
ChangeLog entry:
2003-03-19 Robert Boehne <address@hidden>
* libtool.m4 (_LT_AC_TAGCONFIG): Add test around the macro that
adds tags to the libtool script so that they won't run when not
needed.
* configure.ac: Set F77 to no when no Fortran compiler is found.
Any gurus care to look this over? It seems too simple to work
but it does. In configure.ac, I set F77 to "no" if it isn't
set after AC_PROG_F77 (which probably should do this itself).
Then in _LT_AC_TAGCONFIG I skip over the tag creation macro if
the language in question is set to "no", then set tagname to null
so it won't be added to the list of available tags. It is so simple,
it must be the right solution. ;)
Approval anyone?
Robert
--
Robert Boehne Software Engineer
Ricardo Software Chicago Technical Center
TEL: (630)789-0003 x. 238
FAX: (630)789-0127
email: rboehne AT ricardo-us DOT com
Index: configure.ac
===================================================================
RCS file: /cvsroot/libtool/libtool/configure.ac,v
retrieving revision 1.11
diff -u -r1.11 configure.ac
--- configure.ac 31 Jul 2002 20:15:27 -0000 1.11
+++ configure.ac 20 Mar 2003 00:05:09 -0000
@@ -110,6 +110,9 @@
pushdef([AC_MSG_ERROR], [F77=no])
AC_PROG_F77
popdef([AC_MSG_ERROR])
+if test -z "$F77"; then
+ F77="no"
+fi
AM_CONDITIONAL(HAVE_F77, [test "x$F77" != xno])
LT_AC_PROG_GCJ
Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libtool.m4,v
retrieving revision 1.308
diff -u -r1.308 libtool.m4
--- libtool.m4 2 Mar 2003 10:13:46 -0000 1.308
+++ libtool.m4 20 Mar 2003 00:05:09 -0000
@@ -1614,15 +1614,27 @@
case $tagname in
CXX)
- AC_LIBTOOL_LANG_CXX_CONFIG
+ if test "X$CXX" != "Xno"; then
+ AC_LIBTOOL_LANG_CXX_CONFIG
+ else
+ tagname=""
+ fi
;;
F77)
- AC_LIBTOOL_LANG_F77_CONFIG
- ;;
+ if test "X$F77" != "Xno"; then
+ AC_LIBTOOL_LANG_F77_CONFIG
+ else
+ tagname=""
+ fi
+ ;;
GCJ)
- AC_LIBTOOL_LANG_GCJ_CONFIG
+ if test "X$GCJ" != "Xno"; then
+ AC_LIBTOOL_LANG_GCJ_CONFIG
+ else
+ tagname=""
+ fi
;;
RC)
- PATCH: Don't add tags for languages not used or found,
Robert Boehne x238 <=