From 9f0ba255a9b9925dcd6e901be4ecd6b5b761830b Mon Sep 17 00:00:00 2001 From: Marc Slemko Date: Fri, 21 Jul 2006 03:53:13 +0000 Subject: [PATCH] autoconf/automake line noise for linux/osx builds git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664730 13f79535-47bb-0310-9956-ffa450edef68 --- lib/cpp/Makefile.am | 1 + lib/cpp/bootstrap.sh | 8 ++++ lib/cpp/configure.ac | 57 +++++++++++++++++++++++++++++ lib/cpp/src/Makefile.am | 1 + lib/cpp/src/concurrency/Makefile.am | 10 +++++ 5 files changed, 77 insertions(+) create mode 100644 lib/cpp/Makefile.am create mode 100755 lib/cpp/bootstrap.sh create mode 100644 lib/cpp/configure.ac create mode 100644 lib/cpp/src/Makefile.am create mode 100644 lib/cpp/src/concurrency/Makefile.am diff --git a/lib/cpp/Makefile.am b/lib/cpp/Makefile.am new file mode 100644 index 00000000..af437a64 --- /dev/null +++ b/lib/cpp/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = src diff --git a/lib/cpp/bootstrap.sh b/lib/cpp/bootstrap.sh new file mode 100755 index 00000000..826bf3b3 --- /dev/null +++ b/lib/cpp/bootstrap.sh @@ -0,0 +1,8 @@ +#!/bin/sh +autoscan +autoheader +aclocal +libtoolize --force +touch NEWS README AUTHORS ChangeLog +autoconf +automake -ac diff --git a/lib/cpp/configure.ac b/lib/cpp/configure.ac new file mode 100644 index 00000000..679e26fd --- /dev/null +++ b/lib/cpp/configure.ac @@ -0,0 +1,57 @@ +AC_PREREQ(2.59) + +AC_INIT(thrift, 1.0) + +AC_CONFIG_SRCDIR(src/Thrift.h) + +AM_INIT_AUTOMAKE + +AC_CHECK_FUNCS([gethostbyname]) + +AC_CHECK_FUNCS([gettimeofday]) + +AC_CHECK_FUNCS([memset]) + +AC_CHECK_FUNCS([socket]) + +AC_CHECK_HEADERS([arpa/inet.h]) + +AC_CHECK_HEADERS([inttypes.h]) + +AC_CHECK_HEADERS([netdb.h]) + +AC_CHECK_HEADERS([netinet/in.h]) + +AC_CHECK_HEADERS([pthread.h]) + +AC_CHECK_HEADERS([stddef.h]) + +AC_CHECK_HEADERS([sys/socket.h]) + +AC_CHECK_HEADERS([sys/time.h]) + +AC_CHECK_HEADERS([unistd.h]) + +AC_C_CONST + +AC_C_VOLATILE + +AC_HEADER_STDBOOL + +AC_HEADER_STDC + +AC_HEADER_TIME + +AC_TYPE_SIZE_T + +AC_CONFIG_HEADERS(config.h:config.hin) + +AC_PROG_CC + +AC_PROG_CXX + +AC_PROG_INSTALL + +AC_PROG_LIBTOOL + +AC_OUTPUT([Makefile src/Makefile src/concurrency/Makefile]) diff --git a/lib/cpp/src/Makefile.am b/lib/cpp/src/Makefile.am new file mode 100644 index 00000000..3d07cb40 --- /dev/null +++ b/lib/cpp/src/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = concurrency diff --git a/lib/cpp/src/concurrency/Makefile.am b/lib/cpp/src/concurrency/Makefile.am new file mode 100644 index 00000000..c4d08291 --- /dev/null +++ b/lib/cpp/src/concurrency/Makefile.am @@ -0,0 +1,10 @@ +lib_LTLIBRARIES = libconcurrency.la + +# Define the source file for the module + +libconcurrency_la_SOURCES = Monitor.cc \ + PosixThreadFactory.cc \ + ThreadManager.cc \ + TimerManager.cc + + -- 2.17.1