diff options
Diffstat (limited to 'source4/lib/popt/samba.m4')
-rw-r--r-- | source4/lib/popt/samba.m4 | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/lib/popt/samba.m4 b/source4/lib/popt/samba.m4 index d940075f86e..d9f62f28d78 100644 --- a/source4/lib/popt/samba.m4 +++ b/source4/lib/popt/samba.m4 @@ -1,3 +1,10 @@ m4_include(lib/popt/libpopt.m4) -SMB_SUBSYSTEM(LIBPOPT, + +if test x"$POPTOBJ" = "x"; then + SMB_EXT_LIB(LIBPOPT, [${POPT_LIBS}]) + SMB_ENABLE(LIBPOPT,YES) +else + SMB_SUBSYSTEM(LIBPOPT, [lib/popt/findme.o lib/popt/popt.o lib/popt/poptconfig.o lib/popt/popthelp.o lib/popt/poptparse.o], [], [-I$srcdir/lib/popt]) +fi + |