From: Sebastian Wilhelmi Date: Tue, 29 May 2001 14:17:23 +0000 (+0000) Subject: Now that we check for a C++ compiler in configure.in anyway, I added a X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=68e002beed7e0584aa11359d7b356a0bbaeaa210;p=dana%2Fcg-glib.git Now that we check for a C++ compiler in configure.in anyway, I added a 2001-05-29 Sebastian Wilhelmi * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ compiler in configure.in anyway, I added a test, that the GLib headers can be inclued into a C++ program. This fixes bug #52605. --- diff --git a/ChangeLog b/ChangeLog index d6cbed9f..981c0e12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index d6cbed9f..981c0e12 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index d6cbed9f..981c0e12 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index d6cbed9f..981c0e12 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index d6cbed9f..981c0e12 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index d6cbed9f..981c0e12 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index d6cbed9f..981c0e12 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index d6cbed9f..981c0e12 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,9 @@ 2001-05-29 Sebastian Wilhelmi + * tests/Makefile.am, tests/cxx-test.C: Now that we check for a C++ + compiler in configure.in anyway, I added a test, that the GLib + headers can be inclued into a C++ program. This fixes bug #52605. + * configure.in: Don't bail out, if no C++ compiler is found. Define G_HAVE_ISO_VARARGS only if appropriate. diff --git a/tests/.cvsignore b/tests/.cvsignore index 15bf597c..199aeb09 100644 --- a/tests/.cvsignore +++ b/tests/.cvsignore @@ -13,6 +13,7 @@ _libs libmoduletestplugin_a.la libmoduletestplugin_b.la array-test +cxx-test date-test dirname-test hash-test diff --git a/tests/Makefile.am b/tests/Makefile.am index f56ba6c5..84024fed 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -23,8 +23,17 @@ BUILT_EXTRA_DIST = \ makefile.mingw \ makefile.msc +if HAVE_CXX +CXX_TEST = cxx-test +cxx_test_LDADD = $(progs_LDADD) +cxx_test_SOURCES = cxx-test.C +else +CXX_TEST = +endif + test_programs = \ array-test \ + $(CXX_TEST) \ date-test \ dirname-test \ gio-test \ diff --git a/tests/cxx-test.C b/tests/cxx-test.C new file mode 100644 index 00000000..ae459f85 --- /dev/null +++ b/tests/cxx-test.C @@ -0,0 +1,9 @@ +#include +#include +#include + +int +main () +{ + return 0; +}