Do only string replacement (w/o -C) in %configure for now.
authorjbj <devnull@localhost>
Fri, 22 Jan 1999 22:20:44 +0000 (22:20 +0000)
committerjbj <devnull@localhost>
Fri, 22 Jan 1999 22:20:44 +0000 (22:20 +0000)
CVS patchset: 2747
CVS date: 1999/01/22 22:20:44

macros.in
popt/Makefile.am
popt/Makefile.in
tests/macros.in

index 4506fdf..b085760 100644 (file)
--- a/macros.in
+++ b/macros.in
 # gotcha is that arguments, if present, should be on the same line as the
 # %configure.
 #
-%configure(C:) \
-  %{-C:pushd %{-C*}} \
+%configure     \
   %{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} \
-  CFLAGS="%{optflags}" ./configure %{_target} --prefix=%{_prefix} \
-  %{-C:popd}
+  CFLAGS="%{optflags}" ./configure %{_target} --prefix=%{_prefix}
index c897002..a929c90 100644 (file)
@@ -13,7 +13,7 @@ noinst_INCLUDES = findme.h poptint.h
 
 noinst_PROGRAMS = test1
 test1_SOURCES = test1.c
-test1_LDADD = -lpopt
+test1_LDADD = $(lib_LTLIBRARIES)
 
 include_HEADERS = popt.h
 lib_LTLIBRARIES = libpopt.la
index 885680a..c2d52e3 100644 (file)
@@ -89,7 +89,7 @@ noinst_INCLUDES = findme.h poptint.h
 
 noinst_PROGRAMS = test1
 test1_SOURCES = test1.c
-test1_LDADD = -lpopt
+test1_LDADD = $(lib_LTLIBRARIES)
 
 include_HEADERS = popt.h
 lib_LTLIBRARIES = libpopt.la
@@ -106,6 +106,7 @@ LTLIBRARIES =  $(lib_LTLIBRARIES)
 
 DEFS = @DEFS@ -I. -I$(srcdir) -I.
 CPPFLAGS = @CPPFLAGS@
+LDFLAGS = @LDFLAGS@
 LIBS = @LIBS@
 libpopt_la_LDFLAGS = 
 libpopt_la_LIBADD = 
@@ -114,7 +115,7 @@ popthelp.lo
 PROGRAMS =  $(noinst_PROGRAMS)
 
 test1_OBJECTS =  test1.o
-test1_DEPENDENCIES = 
+test1_DEPENDENCIES =  libpopt.la
 test1_LDFLAGS = 
 CFLAGS = @CFLAGS@
 COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
index dfcdd49..e449528 100644 (file)
 # gotcha is that arguments, if present, should be on the same line as the
 # %configure.
 #
-%configure(C:) \
-  %{-C:pushd %{-C*}} \
+%configure     \
   %{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} \
-  CFLAGS="%{optflags}" ./configure %{_build} --prefix=%{_prefix} \
-  %{-C:popd}
+  CFLAGS="%{optflags}" ./configure %{_target} --prefix=%{_prefix}