1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
+
+
+
|
dnl Define ourselves
AC_INIT(tclpkcs11, @@VERS@@)
dnl Checks for programs.
AC_PROG_CC
AC_PROG_MAKE_SET
AC_PROG_INSTALL
AC_GNU_SOURCE
dnl Determine system information
DC_CHK_OS_INFO
dnl Perform Tcl Extension required stuff
TCLEXT_INIT
dnl Determine how to make shared objects
if test "$TCLEXT_BUILD" != 'static'; then
dnl Determine how to make shared objects
DC_GET_SHOBJFLAGS
EXTENSION_TARGET="tclpkcs11.${SHOBJEXT}"
|
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
35
36
37
38
39
40
41
42
43
44
45
46
|
-
-
-
|
AC_SEARCH_LIBS(shl_load, dld dl)
])
AC_CHECK_FUNCS(dlopen shl_load)
dnl Look for appropriate headers
AC_CHECK_HEADERS(unistd.h stdlib.h string.h strings.h dlfcn.h dl.h)
dnl Perform Tcl Extension required stuff
TCLEXT_INIT
dnl Setup a stable ABI
DC_SETUP_STABLE_API([${srcdir}/tclpkcs11.vers], tclpkcs11.syms)
dnl Produce output
AC_OUTPUT(Makefile pkgIndex.tcl tclpkcs11.syms)
|