diff --git a/configure.ac b/configure.ac index 1887f37..8470ec7 100644 --- a/configure.ac +++ b/configure.ac @@ -35,7 +35,7 @@ AC_CHECK_FUNCS(getopt_long, AC_SUBST(GETOPT_LIBS) CACA="no" -PKG_CHECK_MODULES(cucul, cucul, +PKG_CHECK_MODULES(CUCUL, cucul, [CACA="yes"], [AC_MSG_RESULT(no) AC_MSG_ERROR([you need libcucul version 0.99 or later])]) diff --git a/src/Makefile.am b/src/Makefile.am index 14e75b9..bc44629 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -2,6 +2,6 @@ bin_PROGRAMS = cacamoo cacamoo_SOURCES = main.c cacamoo.h -cacamoo_CFLAGS = `pkg-config --cflags cucul` -cacamoo_LDFLAGS = `pkg-config --libs cucul` +cacamoo_CFLAGS = @CUCUL_CFLAGS@ +cacamoo_LDADD = @CUCUL_LIBS@ diff --git a/src/main.c b/src/main.c index 3ce3c8b..08d22c9 100644 --- a/src/main.c +++ b/src/main.c @@ -264,7 +264,7 @@ int main (int argc, char **argv) return -1; } /* Export given canvas to format we want */ - output_buffer = cucul_export_canvas(canvas, "ansi"); + output_buffer = cucul_export_canvas(canvas, "utf8"); if(output_buffer == NULL) { printf("Can't export file to text !\n");