summaryrefslogtreecommitdiffstats
path: root/server/external/libpopt.m4
blob: e59b2610e8fae007e2fd3b92e8b6270385957f1b (plain)
1
2
3
4
5
6
7
8
9
POPT_OBJ=""
AC_SUBST(POPT_OBJ)
AC_SUBST(POPT_LIBS)
AC_SUBST(POPT_CFLAGS)

AC_CHECK_HEADERS([popt.h],
    [AC_CHECK_LIB(popt, poptGetContext, [ POPT_LIBS="-lpopt" ], [AC_MSG_ERROR([POPT must support poptGetContext])])],
    [AC_MSG_ERROR([POPT development libraries not installed])]
)