File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# liblsof
2- lib_LTLIBRARIES = liblsof.la
3-
42liblsof_la_SOURCES = lib/ckkv.c lib/cvfs.c lib/dvch.c lib/fino.c lib/isfn.c lib/lkud.c lib/lsof.c lib/misc.c lib/node.c lib/pdvn.c lib/prfp.c lib/print.c lib/proc.c lib/ptti.c lib/rdev.c lib/rnmt.c lib/rmnt.c lib/rnam.c lib/rnch.c lib/rnmh.c
53liblsof_la_SOURCES += lib/common.h lib/proto.h lib/hash.h
4+
5+ if INSTALL_LIBLSOF
6+ lib_LTLIBRARIES = liblsof.la
67include_HEADERS = include/lsof.h include/lsof_fields.h
8+ else
9+ noinst_LTLIBRARIES = liblsof.la
10+ endif
711
812# Hide internal functions
913AM_CFLAGS = -fvisibility=hidden
@@ -217,4 +221,4 @@ EXTRA_DIST += Lsof.8
217221clean-local :
218222 rm -rf lsof.man
219223distclean-local :
220- rm -rf lockf_owner.h lockf.h
224+ rm -rf lockf_owner.h lockf.h
Original file line number Diff line number Diff line change @@ -253,6 +253,11 @@ AC_SUBST([LSOF_DIALECT_DIR])
253253AC_DEFINE ( [ API_EXPORT] , [ __attribute__ ((visibility ("default")))] ,
254254 [ Set visibility to default for exported API functions.] )
255255
256+ # --enable-liblsof to install liblsof
257+ AC_ARG_ENABLE ( liblsof , AS_HELP_STRING ( [ --enable-liblsof] ,
258+ [ build and install liblsof @<:@ default=no@:>@ ] ) , [ ] , [ enable_liblsof=no] )
259+ AM_CONDITIONAL([ INSTALL_LIBLSOF] , [ test "x$enable_liblsof" = xyes] )
260+
256261# --enable-security to define HASSECURITY
257262AC_ARG_ENABLE ( security , AS_HELP_STRING ( [ --enable-security] ,
258263 [ allow only the root user to list all open files @<:@ default=no@:>@ ] ) , [ ] , [ enable_security=no] )
You can’t perform that action at this time.
0 commit comments