From: Niels Provos Date: Sat, 23 Apr 2005 02:48:49 +0000 (+0000) Subject: libtoolize; from Nick Mathewson X-Git-Tag: release-1.1b~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fdfa743ccc7466e0532411098ee1ad655dfe393b;p=libevent libtoolize; from Nick Mathewson svn:r153 --- diff --git a/Makefile.am b/Makefile.am index 37670058..cfdf2e9d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,10 +19,11 @@ EXTRA_DIST = acconfig.h event.h event-internal.h log.h evsignal.h event.3 \ WIN32-Prj/signal_test/signal_test.dsp WIN32-Prj/time_test \ WIN32-Prj/time_test/time_test.dsp -lib_LIBRARIES = libevent.a +lib_LTLIBRARIES = libevent.la -libevent_a_SOURCES = event.c buffer.c evbuffer.c log.c -libevent_a_LIBADD = @LIBOBJS@ +libevent_la_SOURCES = event.c buffer.c evbuffer.c log.c +libevent_la_LIBADD = @LTLIBOBJS@ +libevent_la_LDFLAGS = -release @VERSION@ -version-info 1:2:0 include_HEADERS = event.h diff --git a/configure.in b/configure.in index 2f0541c2..4c93224c 100644 --- a/configure.in +++ b/configure.in @@ -13,7 +13,6 @@ fi dnl Checks for programs. AC_PROG_CC -AC_PROG_RANLIB AC_PROG_INSTALL AC_PROG_LN_S @@ -22,6 +21,13 @@ if test "$GCC" = yes ; then CFLAGS="$CFLAGS -Wall" fi +AC_PROG_LIBTOOL + +dnl Uncomment "AC_DISABLE_SHARED" to make shared librraries not get +dnl built by default. You can also turn shared libs on and off from +dnl the command line with --enable-shared and --disable-shared. +dnl AC_DISABLE_SHARED +AC_SUBST(LIBTOOL_DEPS) dnl Check for optional stuff AC_ARG_WITH(rtsig, diff --git a/sample/Makefile.am b/sample/Makefile.am index 7d12e63c..b749b806 100644 --- a/sample/Makefile.am +++ b/sample/Makefile.am @@ -1,6 +1,6 @@ AUTOMAKE_OPTIONS = foreign no-dependencies -LDADD = -L.. -levent +LDADD = ../libevent.la CPPFPLAGS = -I.. CFLAGS = -I../compat diff --git a/test/Makefile.am b/test/Makefile.am index 28e47784..0efdd40c 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,6 +1,6 @@ AUTOMAKE_OPTIONS = foreign no-dependencies -LDADD = -L.. -levent +LDADD = ../libevent.la CPPFPLAGS = -I.. CFLAGS = -I../compat @CFLAGS@ @@ -20,4 +20,4 @@ test: test-init test-eof test-weof test-time regress verify: test @./test.sh -bench test-init test-eof test-weof test-time regress: ../libevent.a +bench test-init test-eof test-weof test-time regress: ../libevent.la