-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
33 lines (23 loc) · 893 Bytes
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([rdkafka-demo], [0.1.0], [giovannicuriel@gmail.com])
AC_CONFIG_SRCDIR([src/main.cpp])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([subdir-objects])
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_ARG_WITH([rdkafka],
[AS_HELP_STRING([--with-rdkafka], [Header files for rdkafka])],
[AC_SUBST(CPPFLAGS, "$CPPFLAGS -I$with_rdkafka")],
[]
)
# Checks for libraries.
AC_CHECK_LIB([rdkafka], [rd_kafka_new], [], [AC_MSG_ERROR([rdkafka was not found])])
AC_CHECK_LIB([pthread], [pthread_create], [], [AC_MSG_ERROR([rdkafka was not found])])
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT