summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--src/Makefile.am2
-rw-r--r--src/libopts/Makefile.am8
3 files changed, 7 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index 062bcc39f5..f677fd7a8c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -328,6 +328,8 @@ if test "$NEED_LIBOPTS_DIR" == "true";then
else
enable_local_libopts=no
fi
+AM_CONDITIONAL(NEED_LIBOPTS, test "$enable_local_libopts" = "yes")
+
AC_CHECK_TYPE(ssize_t,
[
diff --git a/src/Makefile.am b/src/Makefile.am
index 6e12d137f2..8f68275435 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -24,7 +24,7 @@ SUBDIRS += crywrap
endif
if NEED_LIBOPTS
-LIBOPTS = libopts/libopts.a
+LIBOPTS = libopts/libopts.la
SUBDIRS += libopts
else
LIBOPTS = $(LIBOPTS_LDADD)
diff --git a/src/libopts/Makefile.am b/src/libopts/Makefile.am
index 5ff852a404..7e3b06058d 100644
--- a/src/libopts/Makefile.am
+++ b/src/libopts/Makefile.am
@@ -1,11 +1,11 @@
## LIBOPTS Makefile
MAINTAINERCLEANFILES = Makefile.in
-noinst_LIBRARIES = libopts.a
+noinst_LTLIBRARIES = libopts.la
-libopts_a_SOURCES = libopts.c
-libopts_a_CPPFLAGS = -I$(top_srcdir)
-libopts_a_LIBADD = $(LTLIBINTL)
+libopts_la_SOURCES = libopts.c
+libopts_la_CPPFLAGS = -I$(top_srcdir)
+libopts_la_LIBADD = $(LTLIBINTL)
EXTRA_DIST = \
ag-char-map.h alias.c ao-strs.c \