From fa2eca2e32f42e4290c3909b7496d3b2871e17f0 Mon Sep 17 00:00:00 2001 From: c9s Date: Sat, 17 May 2014 06:44:32 +0800 Subject: [PATCH] Add config.h --- config.h | 63 +++++++++++++++++++++++++++++++++++++++++++++++++ configure.ac | 4 +++- src/Makefile.am | 2 +- 3 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 config.h diff --git a/config.h b/config.h new file mode 100644 index 0000000..79bff87 --- /dev/null +++ b/config.h @@ -0,0 +1,63 @@ +/* config.h. Generated from config.h.in by configure. */ +/* config.h.in. Generated from configure.ac by autoheader. */ + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "r3" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "r3" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "r3 1.0" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "r3" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "1.0" + +/* Define to 1 if you have the ANSI C header files. */ +#define STDC_HEADERS 1 + +/* Version number of package */ +#define VERSION "1.0" diff --git a/configure.ac b/configure.ac index 65c7dae..cc8471c 100644 --- a/configure.ac +++ b/configure.ac @@ -4,6 +4,8 @@ AM_INIT_AUTOMAKE LT_INIT AC_PROG_CC PKG_PROG_PKG_CONFIG -PKG_CHECK_MODULES(DEPS, [libpcre check jemalloc]) +PKG_CHECK_MODULES(DEPS, [libpcre check]) +AC_SUBST(DEPS_CFLAGS) +AC_SUBST(DEPS_LIBS) AC_CONFIG_FILES(Makefile src/Makefile tests/Makefile) AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am index e097dad..230a1c4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,5 +1,5 @@ lib_LTLIBRARIES=libr3.la libr3_la_SOURCES=node.c edge.c list.c str.c token.c libr3_la_LIBADD=$(DEPS_LIBS) -AM_CFLAGS=$(DEPS_CFLAGS) -I$(top_builddir)/include +AM_CFLAGS=$(DEPS_CFLAGS) -I$(top_builddir) -I$(top_builddir)/include # AM_CFLAGS=$(DEPS_CFLAGS)