Fix the glib-2.0 DEPS

There is no product_LIBS is product_LDADD
This commit is contained in:
Ruben Laguna 2015-02-06 17:51:56 +01:00
parent 0a60c39c32
commit 9e4435791e
3 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,7 @@ myexecutable_CFLAGS = #--std=c11 # CFLAGS applicable to myexecutable_SOURCES
check_PROGRAMS = testsuite # will generate and run testsuite exec
testsuite_CFLAGS = $(DEPS_CFLAGS) # DEPS_* are filled by PKG_CHECK_MODULES
testsuite_LIBS = $(DEPS_LIBS) # in configure.ac
testsuite_LDADD = $(DEPS_LIBS) # in configure.ac
testsuite_SOURCES = tests/test.c
TESTS = testsuite

View File

@ -31,6 +31,10 @@ AC_PROG_INSTALL
# AC_MSG_ERROR([You need to install pthreads library.])
# ])
# AC_SEARCH_LIBS([g_test_init], [glib-2.0],[],[
# AC_MSG_ERROR([You need to install glib-2.0 library.])
# ])
# Checks for header files.
AC_CHECK_HEADER([stdlib.h])

View File

@ -4,6 +4,7 @@
int main(int argc, char *argv[])
{
g_test_init(&argc, &argv, NULL);
printf("Write some tests!!! Failing!\n");
exit(EXIT_FAILURE);
return 0;