This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
2nd PATCH to pre-select languages to be build
- To: egcs-patches at cygnus dot com
- Subject: 2nd PATCH to pre-select languages to be build
- From: Manfred Hollstein <manfred at s-direktnet dot de>
- Date: Fri, 2 Oct 1998 17:55:17 +0200 (MEST)
- Cc: law at cygnus dot com, burley at gnu dot org, jbuck at synopsys dot com, pfeifer at dbai dot tuwien dot ac dot at
- References: <13842.2446.855496.247677@slsvhmt><3227.907182840@hurl.cygnus.com><13843.18563.154467.578878@slsvhmt>
- Reply-To: manfred at s-direktnet dot de, Manfred dot Hollstein at ks dot sel dot alcatel dot de
I just found a mistake with my 1st patch. The various new "case"
statements were missing some tags for the case when no
"--enable-languages=..." has been specified and even LANGUAGES isn't
defined, the typical "default" situation to build everything. This
patch gets it right, now, and it replaces my earlier one.
manfred
1998-10-02 Manfred Hollstein <manfred@s-direktnet.de>
* configure (enable_languages): New variable; emit its value
into the generated toplevel Makefile.
* Makefile.in ($(ALL_MODULES)): Descent into language specific
sub-directories only if $(LANGUAGES) contains the appropriate
identifier or if it is empty which means we're going to build
everything.
($(NATIVE_CHECK_MODULES)): Likewise.
($(CROSS_CHECK_MODULES)): Likewise.
($(INSTALL_MODULES)): Likewise.
($(CONFIGURE_TARGET_MODULES)): Likewise.
($(ALL_TARGET_MODULES)): Likewise.
($(CHECK_TARGET_MODULES)): Likewise.
($(INSTALL_TARGET_MODULES)): Likewise.
diff -rup -x CVS -x RCS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-19981001.orig/Makefile.in egcs-19981001/Makefile.in
--- egcs-19981001.orig/Makefile.in Thu Oct 1 10:54:29 1998
+++ egcs-19981001/Makefile.in Fri Oct 2 12:35:28 1998
@@ -1072,11 +1072,35 @@ gcc-no-fixedincludes:
.PHONY: $(ALL_MODULES) all-gui all-libproc
$(ALL_MODULES) all-gui all-libproc:
@dir=`echo $@ | sed -e 's/all-//'`; \
- if [ -f ./$${dir}/Makefile ] ; then \
- r=`pwd`; export r; \
- s=`cd $(srcdir); pwd`; export s; \
- $(SET_LIB_PATH) \
- (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
+ case "$${dir}:$(LANGUAGES)" in \
+ "libchill:"*"CHILL"* | libchill: | \
+ "libf2c:"*"f77"* | libf2c: | \
+ "libio:"*"c++"* | libio: | \
+ "libstdc++:"*"c++"* | libstdc++: | \
+ "libg++:"*"c++"* | libg++: | \
+ "librx:"*"c++"* | librx: | \
+ "libobjc:"*"objc"* | libobjc: ) \
+ do_action=yes ;; \
+ "libchill:"* | \
+ "libf2c:"* | \
+ "libio:"* | \
+ "libstdc++:"* | \
+ "libg++:"* | \
+ "librx:"* | \
+ "libobjc:"* ) \
+ do_action=no ;; \
+ * ) \
+ do_action=yes ;; \
+ esac; \
+ if [ $${do_action} = yes ]; then \
+ if [ -f ./$${dir}/Makefile ] ; then \
+ r=`pwd`; export r; \
+ s=`cd $(srcdir); pwd`; export s; \
+ $(SET_LIB_PATH) \
+ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) all); \
+ else \
+ true; \
+ fi; \
else \
true; \
fi
@@ -1089,6 +1113,63 @@ $(ALL_MODULES) all-gui all-libproc:
$(NATIVE_CHECK_MODULES):
@if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
dir=`echo $@ | sed -e 's/check-//'`; \
+ case "$${dir}:$(LANGUAGES)" in \
+ "libchill:"*"CHILL"* | libchill: | \
+ "libf2c:"*"f77"* | libf2c: | \
+ "libio:"*"c++"* | libio: | \
+ "libstdc++:"*"c++"* | libstdc++: | \
+ "libg++:"*"c++"* | libg++: | \
+ "librx:"*"c++"* | librx: | \
+ "libobjc:"*"objc"* | libobjc: ) \
+ do_action=yes ;; \
+ "libchill:"* | \
+ "libf2c:"* | \
+ "libio:"* | \
+ "libstdc++:"* | \
+ "libg++:"* | \
+ "librx:"* | \
+ "libobjc:"* ) \
+ do_action=no ;; \
+ * ) \
+ do_action=yes ;; \
+ esac; \
+ if [ $${do_action} = yes ]; then \
+ if [ -f ./$${dir}/Makefile ] ; then \
+ r=`pwd`; export r; \
+ s=`cd $(srcdir); pwd`; export s; \
+ $(SET_LIB_PATH) \
+ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
+ else \
+ true; \
+ fi; \
+ else \
+ true; \
+ fi; \
+ fi
+
+$(CROSS_CHECK_MODULES):
+ @dir=`echo $@ | sed -e 's/check-//'`; \
+ case "$${dir}:$(LANGUAGES)" in \
+ "libchill:"*"CHILL"* | libchill: | \
+ "libf2c:"*"f77"* | libf2c: | \
+ "libio:"*"c++"* | libio: | \
+ "libstdc++:"*"c++"* | libstdc++: | \
+ "libg++:"*"c++"* | libg++: | \
+ "librx:"*"c++"* | librx: | \
+ "libobjc:"*"objc"* | libobjc: ) \
+ do_action=yes ;; \
+ "libchill:"* | \
+ "libf2c:"* | \
+ "libio:"* | \
+ "libstdc++:"* | \
+ "libg++:"* | \
+ "librx:"* | \
+ "libobjc:"* ) \
+ do_action=no ;; \
+ * ) \
+ do_action=yes ;; \
+ esac; \
+ if [ $${do_action} = yes ]; then \
if [ -f ./$${dir}/Makefile ] ; then \
r=`pwd`; export r; \
s=`cd $(srcdir); pwd`; export s; \
@@ -1097,15 +1178,6 @@ $(NATIVE_CHECK_MODULES):
else \
true; \
fi; \
- fi
-
-$(CROSS_CHECK_MODULES):
- @dir=`echo $@ | sed -e 's/check-//'`; \
- if [ -f ./$${dir}/Makefile ] ; then \
- r=`pwd`; export r; \
- s=`cd $(srcdir); pwd`; export s; \
- $(SET_LIB_PATH) \
- (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) check); \
else \
true; \
fi
@@ -1115,11 +1187,35 @@ $(CROSS_CHECK_MODULES):
.PHONY: $(INSTALL_MODULES)
$(INSTALL_MODULES): installdirs
@dir=`echo $@ | sed -e 's/install-//'`; \
- if [ -f ./$${dir}/Makefile ] ; then \
- r=`pwd`; export r; \
- s=`cd $(srcdir); pwd`; export s; \
- $(SET_LIB_PATH) \
- (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
+ case "$${dir}:$(LANGUAGES)" in \
+ "libchill:"*"CHILL"* | libchill: | \
+ "libf2c:"*"f77"* | libf2c: | \
+ "libio:"*"c++"* | libio: | \
+ "libstdc++:"*"c++"* | libstdc++: | \
+ "libg++:"*"c++"* | libg++: | \
+ "librx:"*"c++"* | librx: | \
+ "libobjc:"*"objc"* | libobjc: ) \
+ do_action=yes ;; \
+ "libchill:"* | \
+ "libf2c:"* | \
+ "libio:"* | \
+ "libstdc++:"* | \
+ "libg++:"* | \
+ "librx:"* | \
+ "libobjc:"* ) \
+ do_action=no ;; \
+ * ) \
+ do_action=yes ;; \
+ esac; \
+ if [ $${do_action} = yes ]; then \
+ if [ -f ./$${dir}/Makefile ] ; then \
+ r=`pwd`; export r; \
+ s=`cd $(srcdir); pwd`; export s; \
+ $(SET_LIB_PATH) \
+ (cd $${dir}; $(MAKE) $(FLAGS_TO_PASS) install); \
+ else \
+ true; \
+ fi; \
else \
true; \
fi
@@ -1129,91 +1225,139 @@ $(INSTALL_MODULES): installdirs
.PHONY: $(CONFIGURE_TARGET_MODULES)
$(CONFIGURE_TARGET_MODULES):
@dir=`echo $@ | sed -e 's/configure-target-//'`; \
- if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
- r=`pwd`; export r; \
- $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
- if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
- if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
- if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
- rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
+ case "$${dir}:$(LANGUAGES)" in \
+ "libchill:"*"CHILL"* | libchill: | \
+ "libf2c:"*"f77"* | libf2c: | \
+ "libio:"*"c++"* | libio: | \
+ "libstdc++:"*"c++"* | libstdc++: | \
+ "libg++:"*"c++"* | libg++: | \
+ "librx:"*"c++"* | librx: | \
+ "libobjc:"*"objc"* | libobjc: ) \
+ do_action=yes ;; \
+ "libchill:"* | \
+ "libf2c:"* | \
+ "libio:"* | \
+ "libstdc++:"* | \
+ "libg++:"* | \
+ "librx:"* | \
+ "libobjc:"* ) \
+ do_action=no ;; \
+ * ) \
+ do_action=yes ;; \
+ esac; \
+ if [ $${do_action} = yes ]; then \
+ if [ -d $(TARGET_SUBDIR)/$${dir} ]; then \
+ r=`pwd`; export r; \
+ $(CC_FOR_TARGET) --print-multi-lib > $(TARGET_SUBDIR)/$${dir}/tmpmulti.out 2> /dev/null; \
+ if [ -s $(TARGET_SUBDIR)/$${dir}/tmpmulti.out ]; then \
+ if [ -f $(TARGET_SUBDIR)/$${dir}/multilib.out ]; then \
+ if cmp $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/tmpmulti.out > /dev/null; then \
+ rm -f $(TARGET_SUBDIR)/$${dir}/tmpmulti.out; \
+ else \
+ echo "Multilibs changed for $${dir}, reconfiguring"; \
+ rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
+ mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
+ fi; \
else \
- echo "Multilibs changed for $${dir}, reconfiguring"; \
- rm -f $(TARGET_SUBDIR)/$${dir}/multilib.out $(TARGET_SUBDIR)/$${dir}/Makefile; \
mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
fi; \
- else \
- mv $(TARGET_SUBDIR)/$${dir}/tmpmulti.out $(TARGET_SUBDIR)/$${dir}/multilib.out; \
fi; \
fi; \
+ else \
+ true; \
fi; exit 0 # break command into two pieces
@dir=`echo $@ | sed -e 's/configure-target-//'`; \
- if [ ! -d $(TARGET_SUBDIR) ]; then \
- true; \
- elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
- true; \
- elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
- if [ -d $(srcdir)/$${dir} ]; then \
- [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
- r=`pwd`; export r; \
- s=`cd $(srcdir); pwd`; export s; \
- $(SET_LIB_PATH) \
- AR="$(AR_FOR_TARGET)"; export AR; \
- AS="$(AS_FOR_TARGET)"; export AS; \
- CC="$(CC_FOR_TARGET)"; export CC; \
- CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
- CXX="$(CXX_FOR_TARGET)"; export CXX; \
- CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
- DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
- LD="$(LD_FOR_TARGET)"; export LD; \
- LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
- NM="$(NM_FOR_TARGET)"; export NM; \
- RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
- WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
- echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
- cd $(TARGET_SUBDIR)/$${dir}; \
- case $(srcdir) in \
- /*) \
- topdir=$(srcdir) ;; \
- *) \
- case "$(TARGET_SUBDIR)" in \
- .) topdir="../$(srcdir)" ;; \
- *) topdir="../../$(srcdir)" ;; \
- esac ;; \
- esac; \
- if [ "$(srcdir)" = "." ] ; then \
- if [ "$(TARGET_SUBDIR)" != "." ] ; then \
- if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
- if [ -f Makefile ]; then \
- if $(MAKE) distclean; then \
- true; \
+ case "$${dir}:$(LANGUAGES)" in \
+ "libchill:"*"CHILL"* | libchill: | \
+ "libf2c:"*"f77"* | libf2c: | \
+ "libio:"*"c++"* | libio: | \
+ "libstdc++:"*"c++"* | libstdc++: | \
+ "libg++:"*"c++"* | libg++: | \
+ "librx:"*"c++"* | librx: | \
+ "libobjc:"*"objc"* | libobjc: ) \
+ do_action=yes ;; \
+ "libchill:"* | \
+ "libf2c:"* | \
+ "libio:"* | \
+ "libstdc++:"* | \
+ "libg++:"* | \
+ "librx:"* | \
+ "libobjc:"* ) \
+ do_action=no ;; \
+ * ) \
+ do_action=yes ;; \
+ esac; \
+ if [ $${do_action} = yes ]; then \
+ if [ ! -d $(TARGET_SUBDIR) ]; then \
+ true; \
+ elif [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
+ true; \
+ elif echo " $(TARGET_CONFIGDIRS) " | grep " $${dir} " >/dev/null 2>&1; then \
+ if [ -d $(srcdir)/$${dir} ]; then \
+ [ -d $(TARGET_SUBDIR)/$${dir} ] || mkdir $(TARGET_SUBDIR)/$${dir};\
+ r=`pwd`; export r; \
+ s=`cd $(srcdir); pwd`; export s; \
+ $(SET_LIB_PATH) \
+ AR="$(AR_FOR_TARGET)"; export AR; \
+ AS="$(AS_FOR_TARGET)"; export AS; \
+ CC="$(CC_FOR_TARGET)"; export CC; \
+ CFLAGS="$(CFLAGS_FOR_TARGET)"; export CFLAGS; \
+ CXX="$(CXX_FOR_TARGET)"; export CXX; \
+ CXXFLAGS="$(CXXFLAGS_FOR_TARGET)"; export CXXFLAGS; \
+ DLLTOOL="$(DLLTOOL_FOR_TARGET)"; export DLLTOOL; \
+ LD="$(LD_FOR_TARGET)"; export LD; \
+ LDFLAGS="$(LDFLAGS_FOR_TARGET)"; export LDFLAGS; \
+ NM="$(NM_FOR_TARGET)"; export NM; \
+ RANLIB="$(RANLIB_FOR_TARGET)"; export RANLIB; \
+ WINDRES="$(WINDRES_FOR_TARGET)"; export WINDRES; \
+ echo Configuring in $(TARGET_SUBDIR)/$${dir}; \
+ cd $(TARGET_SUBDIR)/$${dir}; \
+ case $(srcdir) in \
+ /*) \
+ topdir=$(srcdir) ;; \
+ *) \
+ case "$(TARGET_SUBDIR)" in \
+ .) topdir="../$(srcdir)" ;; \
+ *) topdir="../../$(srcdir)" ;; \
+ esac ;; \
+ esac; \
+ if [ "$(srcdir)" = "." ] ; then \
+ if [ "$(TARGET_SUBDIR)" != "." ] ; then \
+ if $(SHELL) $$s/symlink-tree $${topdir}/$${dir} "no-such-file" ; then \
+ if [ -f Makefile ]; then \
+ if $(MAKE) distclean; then \
+ true; \
+ else \
+ exit 1; \
+ fi; \
else \
- exit 1; \
+ true; \
fi; \
else \
- true; \
+ exit 1; \
fi; \
else \
- exit 1; \
+ true; \
fi; \
+ srcdiroption="--srcdir=."; \
+ libsrcdir="."; \
else \
- true; \
+ srcdiroption="--srcdir=$${topdir}/$${dir}"; \
+ libsrcdir="$$s/$${dir}"; \
+ fi; \
+ if [ -f $${libsrcdir}/configure ] ; then \
+ rm -f no-such-file; \
+ CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
+ $(CONFIG_ARGUMENTS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)"; \
+ else \
+ rm -f no-such-file; \
+ CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
+ $(CONFIG_ARGUMENTS) $${srcdiroption} \
+ --with-target-subdir="$(TARGET_SUBDIR)"; \
fi; \
- srcdiroption="--srcdir=."; \
- libsrcdir="."; \
- else \
- srcdiroption="--srcdir=$${topdir}/$${dir}"; \
- libsrcdir="$$s/$${dir}"; \
- fi; \
- if [ -f $${libsrcdir}/configure ] ; then \
- rm -f no-such-file; \
- CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
- $(CONFIG_ARGUMENTS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
else \
- rm -f no-such-file; \
- CONFIG_SITE=no-such-file $(SHELL) $$s/configure \
- $(CONFIG_ARGUMENTS) $${srcdiroption} \
- --with-target-subdir="$(TARGET_SUBDIR)"; \
+ true; \
fi; \
else \
true; \
@@ -1227,11 +1371,35 @@ $(CONFIGURE_TARGET_MODULES):
.PHONY: $(ALL_TARGET_MODULES)
$(ALL_TARGET_MODULES):
@dir=`echo $@ | sed -e 's/all-target-//'`; \
- if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
- r=`pwd`; export r; \
- s=`cd $(srcdir); pwd`; export s; \
- $(SET_LIB_PATH) \
- (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
+ case "$${dir}:$(LANGUAGES)" in \
+ "libchill:"*"CHILL"* | libchill: | \
+ "libf2c:"*"f77"* | libf2c: | \
+ "libio:"*"c++"* | libio: | \
+ "libstdc++:"*"c++"* | libstdc++: | \
+ "libg++:"*"c++"* | libg++: | \
+ "librx:"*"c++"* | librx: | \
+ "libobjc:"*"objc"* | libobjc: ) \
+ do_action=yes ;; \
+ "libchill:"* | \
+ "libf2c:"* | \
+ "libio:"* | \
+ "libstdc++:"* | \
+ "libg++:"* | \
+ "librx:"* | \
+ "libobjc:"* ) \
+ do_action=no ;; \
+ * ) \
+ do_action=yes ;; \
+ esac; \
+ if [ $${do_action} = yes ]; then \
+ if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
+ r=`pwd`; export r; \
+ s=`cd $(srcdir); pwd`; export s; \
+ $(SET_LIB_PATH) \
+ (cd $(TARGET_SUBDIR)/$${dir}; $(MAKE) $(TARGET_FLAGS_TO_PASS) all); \
+ else \
+ true; \
+ fi; \
else \
true; \
fi
@@ -1241,11 +1409,35 @@ $(ALL_TARGET_MODULES):
.PHONY: $(CHECK_TARGET_MODULES)
$(CHECK_TARGET_MODULES):
@dir=`echo $@ | sed -e 's/check-target-//'`; \
- if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
- r=`pwd`; export r; \
- s=`cd $(srcdir); pwd`; export s; \
- $(SET_LIB_PATH) \
- (cd $(TARGET_SUBDIR)/$${dir};$(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
+ case "$${dir}:$(LANGUAGES)" in \
+ "libchill:"*"CHILL"* | libchill: | \
+ "libf2c:"*"f77"* | libf2c: | \
+ "libio:"*"c++"* | libio: | \
+ "libstdc++:"*"c++"* | libstdc++: | \
+ "libg++:"*"c++"* | libg++: | \
+ "librx:"*"c++"* | librx: | \
+ "libobjc:"*"objc"* | libobjc: ) \
+ do_action=yes ;; \
+ "libchill:"* | \
+ "libf2c:"* | \
+ "libio:"* | \
+ "libstdc++:"* | \
+ "libg++:"* | \
+ "librx:"* | \
+ "libobjc:"* ) \
+ do_action=no ;; \
+ * ) \
+ do_action=yes ;; \
+ esac; \
+ if [ $${do_action} = yes ]; then \
+ if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
+ r=`pwd`; export r; \
+ s=`cd $(srcdir); pwd`; export s; \
+ $(SET_LIB_PATH) \
+ (cd $(TARGET_SUBDIR)/$${dir};$(MAKE) $(TARGET_FLAGS_TO_PASS) check);\
+ else \
+ true; \
+ fi; \
else \
true; \
fi
@@ -1256,12 +1448,36 @@ $(CHECK_TARGET_MODULES):
.PHONY: $(INSTALL_TARGET_MODULES)
$(INSTALL_TARGET_MODULES): installdirs
@dir=`echo $@ | sed -e 's/install-target-//'`; \
- if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
- r=`pwd`; export r; \
- s=`cd $(srcdir); pwd`; export s; \
- $(SET_LIB_PATH) \
- (cd $(TARGET_SUBDIR)/$${dir}; \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
+ case "$${dir}:$(LANGUAGES)" in \
+ "libchill:"*"CHILL"* | libchill: | \
+ "libf2c:"*"f77"* | libf2c: | \
+ "libio:"*"c++"* | libio: | \
+ "libstdc++:"*"c++"* | libstdc++: | \
+ "libg++:"*"c++"* | libg++: | \
+ "librx:"*"c++"* | librx: | \
+ "libobjc:"*"objc"* | libobjc: ) \
+ do_action=yes ;; \
+ "libchill:"* | \
+ "libf2c:"* | \
+ "libio:"* | \
+ "libstdc++:"* | \
+ "libg++:"* | \
+ "librx:"* | \
+ "libobjc:"* ) \
+ do_action=no ;; \
+ * ) \
+ do_action=yes ;; \
+ esac; \
+ if [ $${do_action} = yes ]; then \
+ if [ -f $(TARGET_SUBDIR)/$${dir}/Makefile ] ; then \
+ r=`pwd`; export r; \
+ s=`cd $(srcdir); pwd`; export s; \
+ $(SET_LIB_PATH) \
+ (cd $(TARGET_SUBDIR)/$${dir}; \
+ $(MAKE) $(TARGET_FLAGS_TO_PASS) install); \
+ else \
+ true; \
+ fi; \
else \
true; \
fi
diff -rup -x CVS -x RCS -x *.o -x *.info* -x *.html* -x *.elc -x *.dvi -x *.orig -x *~ -x version.el egcs-19981001.orig/configure egcs-19981001/configure
--- egcs-19981001.orig/configure Thu Oct 1 15:42:45 1998
+++ egcs-19981001/configure Fri Oct 2 17:47:31 1998
@@ -825,6 +825,12 @@ do
test -n "$DEFAULT_LEX" && break
done
+# Look if the user specified --enable-languages="..."; if not, use
+# the environment variable $LANGUAGES if defined.
+if test "${enable_languages+set}" != set && test "${LANGUAGES+set}" = set; then
+ enable_languages="`echo ${LANGUAGES} | tr ' ' ','`"
+fi
+
if [ "${build}" != "${host}" ]; then
# If we are doing a Canadian Cross, in which the host and build systems
# are not the same, we set reasonable default values for the tools.
@@ -1214,6 +1220,14 @@ build_os = ${build_os}
build_canonical = ${build_cpu}-${build_vendor}-${build_os}
EOF
esac
+
+ # Generate the appropriate default list of languages the user
+ # "normally" intends to build.
+ # If the user did not specify anything, we don't emit anything
+ # here, which means "default to build all available languages".
+ if test "${subdir}/" = "./" && test "${enable_languages+set}" = set; then
+ echo "LANGUAGES = `echo ${enable_languages} | tr ',' ' '`" >> ${Makefile}
+ fi
case "${package_makefile_frag}" in
"") ;;