r15356: Remove unused 'flags' argument from socket_send() and friends.
[bbaumbach/samba-autobuild/.git] / source4 / lib / popt / config.m4
1 #################################################
2 # Check to see if we should use the included popt
3
4 INCLUDED_POPT=auto
5 AC_ARG_WITH(included-popt,
6 [  --with-included-popt    use bundled popt library, not from system],
7
8 case "$withval" in
9         yes)
10                 INCLUDED_POPT=yes
11                 ;;
12         no)
13                 INCLUDED_POPT=no
14                 ;;
15 esac ],
16 )
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
21                 INCLUDED_POPT=yes
22                 TMP_LIBPOPT_LIBS=""
23         fi
24 fi
25
26 AC_MSG_CHECKING(whether to use included popt)
27 if test x"$INCLUDED_POPT" != x"no"; then
28         CPPFLAGS="$CPPFLAGS -I$srcdir/lib/popt"
29         SMB_SUBSYSTEM(LIBPOPT,
30                 [lib/popt/findme.o lib/popt/popt.o lib/popt/poptconfig.o lib/popt/popthelp.o lib/popt/poptparse.o], [])
31
32         AC_MSG_RESULT(yes)
33 else
34         SMB_EXT_LIB(LIBPOPT, [${TMP_LIBPOPT_LIBS}])
35         SMB_ENABLE(LIBPOPT,YES)
36         AC_MSG_RESULT(no)
37 fi
38
39 AC_CHECK_HEADERS([float.h alloca.h])