diff --git a/configure.ac b/configure.ac index 05132d65..adff6f6b 100644 --- a/configure.ac +++ b/configure.ac @@ -4,7 +4,7 @@ dnl Process this file with autoconf to produce a configure script. rm -f config.cache AC_INIT([terminology], [0.1.0], [enlightenment-devel@lists.sourceforge.net]) -AC_PREREQ([2.52]) +AC_PREREQ([2.60]) AC_CONFIG_SRCDIR([configure.ac]) AC_CONFIG_MACRO_DIR([m4]) @@ -13,6 +13,7 @@ AC_CONFIG_HEADERS([terminology_config.h]) AM_INIT_AUTOMAKE([1.6 dist-bzip2]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) +AC_USE_SYSTEM_EXTENSIONS AM_PROG_CC_STDC AM_PROG_CC_C_O diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am index 59f3e924..10012fb7 100644 --- a/src/bin/Makefile.am +++ b/src/bin/Makefile.am @@ -9,6 +9,7 @@ terminology_CPPFLAGS = -I. \ terminology_LDADD = @TERMINOLOGY_LIBS@ terminology_SOURCES = \ +private.h \ col.c col.h \ config.c config.h \ keyin.c keyin.h \ diff --git a/src/bin/private.h b/src/bin/private.h new file mode 100644 index 00000000..d9061302 --- /dev/null +++ b/src/bin/private.h @@ -0,0 +1,3 @@ +#ifdef HAVE_CONFIG_H +#include "terminology_config.h" +#endif diff --git a/src/bin/termpty.c b/src/bin/termpty.c index 943cb957..15421881 100644 --- a/src/bin/termpty.c +++ b/src/bin/termpty.c @@ -1,4 +1,5 @@ -#define _XOPEN_SOURCE 600 +#include "private.h" + #include #include "termpty.h" #include