use autoconf to define system extensions for us.

SVN revision: 72299
This commit is contained in:
Gustavo Sverzut Barbieri 2012-06-17 16:28:02 +00:00
parent f7d8b9627d
commit 98a197c4b2
4 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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 \

3
src/bin/private.h Normal file
View File

@ -0,0 +1,3 @@
#ifdef HAVE_CONFIG_H
#include "terminology_config.h"
#endif

View File

@ -1,4 +1,5 @@
#define _XOPEN_SOURCE 600
#include "private.h"
#include <Elementary.h>
#include "termpty.h"
#include <sys/types.h>