summaryrefslogtreecommitdiff
blob: 7164103f8a7d0aa0ba4cad318ccb69e18fcf0137 (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
--- a/Makefile.am	2009-05-28 15:19:50.000000000 +0200
+++ b/Makefile.am	2009-05-28 15:30:57.000000000 +0200
@@ -21,20 +21,20 @@
 AUTOMAKE_OPTIONS = foreign
 SUBDIRS = . testsuite
 
-LIBOBJS = @LIBOBJS@
+LTLIBOBJS = @LTLIBOBJS@
 
-noinst_LIBRARIES = libargp.a
+lib_LTLIBRARIES = libargp.la
 noinst_PROGRAMS = argp-test
 noinst_HEADERS = argp.h argp-fmtstream.h argp-namefrob.h # argp-comp.h
 
 EXTRA_DIST = mempcpy.c strchrnul.c strndup.c Versions
 
 # Leaves out argp-fs-xinl.c and argp-xinl.c 
-libargp_a_SOURCES = argp-ba.c argp-eexst.c argp-fmtstream.c \
+libargp_la_SOURCES = argp-ba.c argp-eexst.c argp-fmtstream.c \
 		    argp-help.c argp-parse.c argp-pv.c \
 		    argp-pvh.c
 
-libargp_a_LIBADD = $(LIBOBJS)
+libargp_la_LIBADD = $(LTLIBOBJS)
 
-argp_test_LDADD = libargp.a
+argp_test_LDADD = libargp.la
 
--- a/configure.ac	2009-05-28 15:20:01.000000000 +0200
+++ b/configure.ac	2009-05-28 15:21:06.000000000 +0200
@@ -17,6 +17,7 @@
 AC_PROG_MAKE_SET
 AC_PROG_RANLIB
 AM_PROG_CC_STDC
+AC_PROG_LIBTOOL
 
 if test "x$am_cv_prog_cc_stdc" = xno ; then
   AC_ERROR([the C compiler doesn't handle ANSI-C])
--- a/testsuite/Makefile.am	2009-05-28 15:21:33.000000000 +0200
+++ b/testsuite/Makefile.am	2009-05-28 15:21:41.000000000 +0200
@@ -5,7 +5,7 @@
 
 noinst_PROGRAMS = $(TS_PROGS) ex1 ex3 ex4
 
-LDADD = ../libargp.a
+LDADD = -L../.libs -largp
 
 EXTRA_DIST = $(TS_SH) run-tests
 CLEANFILES = test.out