-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig.m4
More file actions
24 lines (19 loc) · 736 Bytes
/
config.m4
File metadata and controls
24 lines (19 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PHP_ARG_ENABLE(oath, for OATH support,
[ --enable-oath Include OATH support])
if test "$PHP_OATH" = "yes"; then
for i in $PHP_OATH_FILTER /usr/local /usr; do
test -f $i/include/liboath/oath.h && PHP_OATH_FILTER_DIR=$i && break
done
if test -z "$PHP_OATH_FILTER_DIR"; then
AC_MSG_ERROR(oath.h not found. Please (re)install liboath.)
fi
PHP_CHECK_LIBRARY(oath, oath_totp_generate, [], [
AC_MSG_ERROR(oath lib not found. Please (re)install liboath.)
], [
-L$PHP_OATH_FILTER_DIR/lib -loath
])
PHP_ADD_LIBRARY_WITH_PATH(oath, $PHP_OATH_FILTER_DIR/lib, OATH_SHARED_LIBADD)
PHP_ADD_INCLUDE($PHP_OATH_FILTER_DIR/include)
PHP_NEW_EXTENSION(oath, oath.c, $ext_shared)
PHP_SUBST(OATH_SHARED_LIBADD)
fi