From: Alexandre Oliva Date: Mon, 10 Jul 2000 06:06:39 +0000 (+0000) Subject: * libtool.m4 (AC_LIBTOOL_GCJ): Require either AC_PROG_GCJ or X-Git-Tag: multi-language-merge-point~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edda9dec2400e6329c12bc7045126ae72f5c4704;p=thirdparty%2Flibtool.git * libtool.m4 (AC_LIBTOOL_GCJ): Require either AC_PROG_GCJ or AM_PROG_GCJ. (AC_PROG_LIBTOOL): Change internal comments to dnl, so that they don't make it to the `configure' script. --- diff --git a/ChangeLog b/ChangeLog index 9924db062..e95f3c803 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2000-07-10 Alexandre Oliva + * libtool.m4 (AC_LIBTOOL_GCJ): Require either AC_PROG_GCJ or + AM_PROG_GCJ. + (AC_PROG_LIBTOOL): Change internal comments to dnl, so that they + don't make it to the `configure' script. + * configure.in (AM_PROG_GCJ): Re-enable, with definition copied from CVS automake. diff --git a/libtool.m4 b/libtool.m4 index 87105962d..8501515ca 100644 --- a/libtool.m4 +++ b/libtool.m4 @@ -23,23 +23,23 @@ # serial 45 AC_PROG_LIBTOOL AC_DEFUN(AC_PROG_LIBTOOL,[AC_REQUIRE([_AC_PROG_LIBTOOL]) -# If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX -# immediately, otherwise, hook it in at the end of AC_PROG_CXX. +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. AC_PROVIDE_IFELSE([AC_PROG_CXX], [AC_LIBTOOL_CXX], [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX ])]) -# -# Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. -# If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run -# AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. + +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. AC_PROVIDE_IFELSE([AC_PROG_GCJ], [AC_LIBTOOL_GCJ], [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], [AC_LIBTOOL_GCJ], [ifdef([AC_PROG_GCJ], [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ -])])# +])]) ifdef([A][M_PROG_GCJ], [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ ])])])])]) @@ -785,7 +785,11 @@ exec 5>>./config.log AC_DEFUN(AC_LIBTOOL_GCJ,[AC_REQUIRE([_AC_LIBTOOL_GCJ])]) AC_DEFUN(_AC_LIBTOOL_GCJ, [AC_REQUIRE([AC_PROG_LIBTOOL]) -AC_REQUIRE([AC_PROG_GCJ]) +AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])]) LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-gcj.sh" lt_save_CC="$CC" lt_save_CFLAGS="$CFLAGS"