automake-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-commit] [SCM] GNU Automake branch, ng/master, updated. v1.12.1


From: Stefano Lattarini
Subject: [Automake-commit] [SCM] GNU Automake branch, ng/master, updated. v1.12.1-342-g4b0da10
Date: Sat, 09 Jun 2012 19:18:58 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Automake".

http://git.sv.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=4b0da105a773fd4f34bf3298780b1c18d7de3194

The branch, ng/master has been updated
       via  4b0da105a773fd4f34bf3298780b1c18d7de3194 (commit)
       via  1fa5573654e2f3393316c66b696bb85e0c4f73be (commit)
       via  c8d13b6142410d2641a13f1f4a38293b1b26cd05 (commit)
       via  98b96fccc5df7166a0efc02881a13fbb84e29af6 (commit)
       via  0e489645fa27397850eeebf29838b368e3400d31 (commit)
       via  f3710b5b91b9b200d999dbc1b51e97f7256b5af4 (commit)
       via  3cd1a2d0b2c745fe24048445df7ff69c6fb66644 (commit)
      from  669aa5b316ff9912f9ec9a4da3215714318887f2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4b0da105a773fd4f34bf3298780b1c18d7de3194
Author: Stefano Lattarini <address@hidden>
Date:   Sat Jun 9 21:17:33 2012 +0200

    [ng] maintcheck: fix failures introduced by the recent merge of master
    
    * t/cxx-lt-demo.sh: Avoid use of "make -e".
    
    Signed-off-by: Stefano Lattarini <address@hidden>

commit 1fa5573654e2f3393316c66b696bb85e0c4f73be
Merge: 669aa5b c8d13b6
Author: Stefano Lattarini <address@hidden>
Date:   Sat Jun 9 20:52:26 2012 +0200

    Merge branch 'master' into ng/master
    
    * master:
      tests: look for '.lo' rather than '.o' object when using Libtool with C++
      cosmetics: few typofixes in older ChangeLogs, suggested by "codespell.py"
      tests: add basic semantic tests on C++ support
      tests: minor tweak to 't/objc-megademo.sh'
    
    Signed-off-by: Stefano Lattarini <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 old/ChangeLog.01   |    2 +-
 old/ChangeLog.02   |    8 +-
 old/ChangeLog.03   |    4 +-
 t/cxx-demo.sh      |  177 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 t/cxx-lt-demo.sh   |  133 +++++++++++++++++++++++++++++++++++++++
 t/objc-megademo.sh |    1 +
 6 files changed, 318 insertions(+), 7 deletions(-)
 create mode 100755 t/cxx-demo.sh
 create mode 100755 t/cxx-lt-demo.sh

diff --git a/old/ChangeLog.01 b/old/ChangeLog.01
index cb7b37a..5e75ff2 100644
--- a/old/ChangeLog.01
+++ b/old/ChangeLog.01
@@ -4793,7 +4793,7 @@
        * automake.in (handle_clean): Bind `-local' targets to `-am'
        targets, not top targets.
        Don't declare -recursive dependencies of the clean targets:
-       `subdirs.am' did it.  Less hard coded knowledge, transfered
+       `subdirs.am' did it.  Less hard coded knowledge, transferred
        into...
        * clean.am: here.
 
diff --git a/old/ChangeLog.02 b/old/ChangeLog.02
index b99f757..0584ef3 100644
--- a/old/ChangeLog.02
+++ b/old/ChangeLog.02
@@ -579,7 +579,7 @@
 2002-09-30  Alexandre Duret-Lutz  <address@hidden>
 
        * automake.in (require_variables): The fix introduced in 2002-09-19
-       is imcomplete.  Rewrite the conditional variable definition check
+       is incomplete.  Rewrite the conditional variable definition check
        using &variable_not_always_defined_in_cond.
        * tests/cond26.test, tests/cond27.test, tests/cond28.test: New file.
        * tests/Makefile.am (TESTS): Add cond26.test, cond27.test, and
@@ -1286,7 +1286,7 @@
        so_location files in current directory.
 
        Fix for PR automake/346:
-       * automake.texi (Optional): Supress the documentation for
+       * automake.texi (Optional): Suppress the documentation for
        AC_PATH_XTRA, AC_FUNC_ALLOCA, AC_FUNC_ERROR_AT_LINE, AC_FUNC_FNMATCH,
        AC_FUNC_GETLOADAVG, AC_FUNC_MEMCMP, AC_FUNC_MKTIME, AC_FUNC_OBSTACK,
        AC_FUNC_STRTOD, AC_REPLACE_FUNCS, AC_REPLACE_GNU_GETOPT,
@@ -2180,7 +2180,7 @@
        * tests/defs (configure.in): Don't double-quote $me.
        * tests/sinclude.test: Overwrite configure.in and use
        `am__sinclude' instead of `sinclude' as package name.
-       Excercise `m4_sinclude' instead of `sinclude'.
+       Exercise `m4_sinclude' instead of `sinclude'.
 
 2002-05-20  Alexandre Duret-Lutz  <address@hidden>
 
@@ -2811,7 +2811,7 @@
        derived from maude_LIBADD.
        (Program variables): Define AM_LDFLAGS.
        (Dependencies): Passing the no-dependencies option to
-       AM_INIT_AUTOMAKE is prefered.
+       AM_INIT_AUTOMAKE is preferred.
        (Scripts): Explain why automake is magically cleaned.
        Mention noinst_SCRIPTS and check_SCRIPTS.
        (Data): Use dist_ in Automake's example.
diff --git a/old/ChangeLog.03 b/old/ChangeLog.03
index b7e8c6a..861bc34 100644
--- a/old/ChangeLog.03
+++ b/old/ChangeLog.03
@@ -2386,7 +2386,7 @@
 2003-03-19  Alexandre Duret-Lutz  <address@hidden>
 
        * Makefile.am (maintainer-check): Allow `automake:' tokens,
-       occuring in location.test.  Automake now has 5 legitimate
+       occurring in location.test.  Automake now has 5 legitimate
        unsubstituted @address@hidden
 
        * tests/aclocal4.test: Require GNU make.
@@ -2760,7 +2760,7 @@
 
 2003-01-19  Alexandre Duret-Lutz  <address@hidden>
 
-       Rename more files to accomodate 8+3 file systems, and adjust the
+       Rename more files to accommodate 8+3 file systems, and adjust the
        vocabulary at the same time: AM_CONDITIONAL defines "conditionals",
        and we call "condition" a conjunction of "conditionals".
        * lib/am/Conditional.pm: Rename to lib/am/Condition.pm.
diff --git a/t/cxx-demo.sh b/t/cxx-demo.sh
new file mode 100755
index 0000000..869c2b3
--- /dev/null
+++ b/t/cxx-demo.sh
@@ -0,0 +1,177 @@
+#! /bin/sh
+# Copyright (C) 2012 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+# Demo on C++ support.
+
+required=c++
+am_create_testdir=empty
+. ./defs || Exit 1
+
+cat > configure.ac << 'END'
+AC_INIT([GNU C++ Demo], [1.3], address@hidden)
+AC_CONFIG_SRCDIR([play.c++])
+AC_CONFIG_AUX_DIR([build-aux])
+AM_INIT_AUTOMAKE
+# The C compiler shouldn't be required in any way.
+CC=false; AC_SUBST([CC])
+AC_PROG_CXX
+AH_BOTTOM([
+#ifndef GREETINGS
+#  define GREETINGS "Howdy"
+#endif])
+AC_DEFINE([OK_AC], [1],
+          [Give "good to go" declaration from configure.ac])
+AC_CONFIG_HEADERS([config.hxx])
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
+END
+
+cat > Makefile.am << 'END'
+AUTOMAKE_OPTIONS = subdir-objects
+
+bin_PROGRAMS = work play
+common_sources = common.hpp foo.cpp sub/bar.cc
+AM_CPPFLAGS = -DOK_AM=1
+play_SOURCES = play.c++ play.hh $(common_sources)
+work_SOURCES = work.cxx work.h++ $(common_sources)
+work_CXXFLAGS = -D'GREETINGS="Good morning"'
+
+.PHONY: test-objs
+check-local: test-objs
+test-objs:
+       test -f play.$(OBJEXT)
+       test -f foo.$(OBJEXT)
+       test -f sub/bar.$(OBJEXT)
+       test -f work-foo.$(OBJEXT)
+       test -f sub/work-bar.$(OBJEXT)
+       test -f work-work.$(OBJEXT)
+END
+
+mkdir sub build-aux
+
+$ACLOCAL
+$AUTOHEADER
+test -f config.hxx.in
+$AUTOCONF
+$AUTOMAKE --add-missing
+test -f build-aux/depcomp
+# Not needed by C++ compilers.
+test ! -f build-aux/compile
+
+cat > work.h++ << 'END'
+#define ACTION "work"
+class Hello_CXX
+{
+  public:
+    Hello_CXX() { }
+    virtual ~Hello_CXX () { }
+    void hello_cxx_class ();
+};
+END
+
+cat > play.hh << 'END'
+#define ACTION "play"
+void hello_cxx_function (void);
+END
+
+cat > common.hpp << 'END'
+/* Common header. */
+
+#include <config.hxx>
+
+#if !OK_AM
+#error "missing OK from Makefile.am"
+choke me
+#endif
+
+#if !OK_AC
+#error "missing OK from configure.ac"
+choke me
+#endif
+
+#include <iostream>
+END
+
+cat > work.cxx << 'END'
+#include "common.hpp"
+#include "work.h++"
+#include <cstdlib>
+using namespace std;
+int main (void)
+{
+  cout << "We are working :-(" << endl;
+  Hello_CXX *hello = new Hello_CXX;
+  hello->hello_cxx_class ();
+  return EXIT_SUCCESS;
+}
+END
+
+cat > play.c++ << 'END'
+#include "common.hpp"
+#include "play.hh"
+int main (void)
+{
+  std::cout << "We are playing :-)" << std::endl;
+  hello_cxx_function ();
+  return 0;
+}
+END
+
+cat > foo.cpp <<'END'
+#include <config.hxx>
+#include "work.h++"
+#include <iostream>
+using namespace std;
+void Hello_CXX::hello_cxx_class (void)
+{
+  cout << GREETINGS << ", " << ACTION << "." << endl;
+}
+END
+
+cat > sub/bar.cc << 'END'
+#include <config.hxx>
+#include "play.hh"
+#include <stdio.h>
+void hello_cxx_function (void)
+{
+  printf ("%s, %s!\n", GREETINGS, ACTION);
+}
+END
+
+./configure
+$MAKE
+$MAKE test-objs
+
+if ! cross_compiling; then
+  unindent > exp.play << 'END'
+    We are playing :-)
+    Howdy, play!
+END
+  unindent > exp.work << 'END'
+    We are working :-(
+    Good morning, work.
+END
+  for p in play work; do
+    ./$p > got.$p || { cat got.$p; Exit 1; }
+    cat exp.$p
+    cat got.$p
+    diff exp.$p got.$p
+  done
+fi
+
+$MAKE distcheck
+
+:
diff --git a/t/cxx-lt-demo.sh b/t/cxx-lt-demo.sh
new file mode 100755
index 0000000..1e354b0
--- /dev/null
+++ b/t/cxx-lt-demo.sh
@@ -0,0 +1,133 @@
+#! /bin/sh
+# Copyright (C) 2012 Free Software Foundation, Inc.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+# Demo on Libtool/C++ support.
+
+required='libtoolize c++'
+am_create_testdir=empty
+. ./defs || Exit 1
+
+cat > configure.ac << 'END'
+AC_INIT([GNU C++/Libtool Demo], [0.73], address@hidden)
+AC_CONFIG_SRCDIR([lib/libfoo.c++])
+AC_CONFIG_AUX_DIR([ax])
+AM_INIT_AUTOMAKE
+AC_CANONICAL_HOST
+AC_CANONICAL_BUILD
+AC_PROG_CXX
+AM_PROG_AR
+LT_INIT
+AC_CONFIG_FILES([
+  Makefile
+  src/Makefile
+  lib/Makefile
+  try.sh:try.in
+])
+AC_OUTPUT
+END
+
+mkdir ax lib src
+
+cat > Makefile.am <<'END'
+SUBDIRS = lib src
+
+AUTOMAKE_OPTIONS = parallel-tests
+TEST_EXTENSIONS = .sh
+SH_LOG_COMPILER = $(SHELL) -ex
+TESTS = try.sh
+
+.PHONY: test-objs
+check-local: test-objs
+test-objs:
+       test -f src/main.$(OBJEXT)
+       test -f lib/libfoo.lo
+END
+
+cat > src/Makefile.am << 'END'
+bin_PROGRAMS = zardoz
+zardoz_SOURCES = main.cc
+zardoz_LDADD = $(top_builddir)/lib/libfoo.la
+AM_CPPFLAGS = -I$(top_builddir)/lib
+END
+
+cat > lib/Makefile.am << 'END'
+lib_LTLIBRARIES = libfoo.la
+nodist_libfoo_la_SOURCES = libfoo.h++
+libfoo_la_SOURCES = libfoo.c++
+libfoo.h++: $(srcdir)/libfoo.c++
+       echo '#include <string>' >address@hidden
+       grep "target *(" "$(srcdir)/libfoo.c++" >>address@hidden
+       echo ';' >>address@hidden
+       chmod a-w address@hidden && mv -f address@hidden $@
+BUILT_SOURCES = libfoo.h++
+DISTCLEANFILES = $(BUILT_SOURCES)
+END
+
+cat > try.in << 'END'
+#!/bin/sh
+set -e
+if test x"$host_alias" = x || test x"$build_alias" = x"$host_alias"; then
+  ./src/zardoz
+  test "`./src/zardoz`" = 'Howdy, Testsuite!'
+else
+  echo "Skip: cannot run a cross-compiled program"
+  exit 77
+fi
+END
+
+libtoolize --copy
+$ACLOCAL
+$AUTOCONF
+$AUTOMAKE --add-missing --copy
+
+ls -l . ax # For debugging.
+for f in ltmain.sh depcomp config.guess config.sub; do
+  test -f ax/$f && test ! -h ax/$f || Exit 1
+done
+test ! -f ax/compile # Not required by C++ compilers.
+
+cat > src/main.cc << 'END'
+#include "libfoo.h++"
+#include <iostream>
+using namespace std;
+int main (void)
+{
+  cout << "Howdy, " << target () << "!" << endl;
+  return 0;
+}
+END
+
+cat > lib/libfoo.c++ << 'END'
+#include "libfoo.h++"
+#include <string>
+std::string target (void)
+{
+  std::string s1 = "Test";
+  std::string s2 = "suite";
+  return (s1 + s2);
+}
+END
+
+./configure
+$MAKE CC=false
+ls -l . src lib # For debugging.
+$MAKE test-objs
+VERBOSE=yes $MAKE check-TESTS
+grep 'Howdy.*Testsuite' try.log || grep 'Skip:.*cross-compiled' try.log
+
+$MAKE CC=false distcheck
+
+:
diff --git a/t/objc-megademo.sh b/t/objc-megademo.sh
index 0e02341..b0d2887 100755
--- a/t/objc-megademo.sh
+++ b/t/objc-megademo.sh
@@ -17,6 +17,7 @@
 # Stress test on Objective C/C++.
 
 required=libtoolize
+am_create_testdir=empty
 . ./defs || Exit 1
 
 ## Autotools Input Files.


hooks/post-receive
-- 
GNU Automake



reply via email to

[Prev in Thread] Current Thread [Next in Thread]