summaryrefslogtreecommitdiffstats
path: root/src/util/et/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/et/configure.in')
-rw-r--r--src/util/et/configure.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/util/et/configure.in b/src/util/et/configure.in
index 0263436ca0..717dfc0924 100644
--- a/src/util/et/configure.in
+++ b/src/util/et/configure.in
@@ -24,4 +24,19 @@ AC_FUNC_CHECK(strerror,AC_DEFINE(HAS_STRERROR))
AC_CHECK_HEADERS(stdarg.h)
AC_HAVE_HEADERS(stdlib.h)
CopySrcHeader(com_err.h,$(BUILDTOP)/include)
+V5_MAKE_SHARED_LIB(libcom_err)
+AC_ARG_ENABLE([shared],
+[ --enable-shared build shared libraries],[
+LinkFileDir([$](TOPLIBD)/libcom_err.[$](SHEXT), libcom_err.[$](SHEXT), ../util/et)
+AppendRule([all -unix:: [$](TOPLIBD)/libcom_err.$(SHEXT)])
+AppendRule([install:: libcom_err.[$](SHEXT)
+ [$](INSTALL_DATA) libcom_err.[$](SHEXT) \
+ [$](DESTDIR)[$](KRB5_SHLIBDIR)[$](S)libcom_err.[$](SHEXT)])
+])dnl
+if test -n "$krb5_cv_enable_staticlibs" ; then
+ AppendRule([install:: libcom_err.[$](STEXT)
+ [$](INSTALL_DATA) libcom_err.[$](STEXT) [$](DESTDIR)[$](KRB5_LIBDIR)[$](S)libcom_err.[$](STEXT)])
+ LinkFileDir([$](TOPLIBD)/libcom_err.[$](STEXT),libcom_err.[$](STEXT),../util/et)
+ AppendRule([all: [$](TOPLIBD)/libcom_err.[$](STEXT)])
+fi
V5_AC_OUTPUT_MAKEFILE