mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-16 06:49:19 +08:00
check for a suitable freeradius-client
This commit is contained in:
@@ -200,6 +200,9 @@ LIBS="$oldlibs -lfreeradius-client"
|
|||||||
AC_MSG_CHECKING([for freeradius client library])
|
AC_MSG_CHECKING([for freeradius client library])
|
||||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
||||||
#include <freeradius-client.h>],[
|
#include <freeradius-client.h>],[
|
||||||
|
#ifndef PW_MAX_MSG_SIZE
|
||||||
|
#error 1
|
||||||
|
#endif
|
||||||
rc_read_config(0);])],
|
rc_read_config(0);])],
|
||||||
[AC_MSG_RESULT(yes)
|
[AC_MSG_RESULT(yes)
|
||||||
AC_SUBST([FREERADIUS_CLIENT_LIBS], [-lfreeradius-client])
|
AC_SUBST([FREERADIUS_CLIENT_LIBS], [-lfreeradius-client])
|
||||||
@@ -209,7 +212,7 @@ AC_LINK_IFELSE([AC_LANG_PROGRAM([
|
|||||||
[AC_MSG_RESULT(no)
|
[AC_MSG_RESULT(no)
|
||||||
AC_MSG_WARN([[
|
AC_MSG_WARN([[
|
||||||
***
|
***
|
||||||
*** libfreeradius-client was not found. Radius support will be disabled.
|
*** libfreeradius-client git-20141213 was not found. Radius support will be disabled.
|
||||||
*** ]])])
|
*** ]])])
|
||||||
LIBS="$oldlibs"
|
LIBS="$oldlibs"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user