1 #################################################
2 # Check to see if we should use the included popt
5 AC_ARG_WITH(included-popt,
6 [ --with-included-popt use bundled popt library, not from system],
17 if test x"$INCLUDED_POPT" != x"yes"; then
18 AC_CHECK_HEADERS(popt.h)
19 AC_CHECK_LIB_EXT(popt, TMP_LIBPOPT_LIBS, poptGetContext, [], [], INCLUDED_POPT=no)
20 if test x"$ac_cv_header_popt_h" = x"no"; then
26 AC_MSG_CHECKING(whether to use included popt)
27 if test x"$INCLUDED_POPT" != x"no"; then
28 TMP_LIBPOPT_OBJS="lib/popt/findme.o lib/popt/popt.o lib/popt/poptconfig.o \
29 lib/popt/popthelp.o lib/popt/poptparse.o"
30 CPPFLAGS="$CPPFLAGS -I$srcdir/lib/popt"
36 SMB_SUBSYSTEM(LIBPOPT,[],
37 [${TMP_LIBPOPT_OBJS}],
40 [${TMP_LIBPOPT_LIBS}])