105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
|
-
-
-
+
+
+
+
+
+
+
+
+
+
|
if test -n "${tcl_nano_openmp}"; then
CFLAGS="$CFLAGS ${tcl_nano_openmp}"
AC_DEFINE([NANO_TCL_HAVE_OPENMP], [1], [Define if you have support for OpenMP])
fi
dnl Random number generation mechanisms
AC_CHECK_FUNC(getrandom,, [
AC_CHECK_FUNC(getentropy,, [
AC_CHECK_FUNC(CryptGenRandom)
AC_CHECK_FUNCS(getrandom,, [
AC_CHECK_FUNCS(getentropy,, [
AC_CHECK_FUNCS(CryptGenRandom)
])
])
dnl Check for name resolution capabilities
AC_CHECK_FUNCS(getaddrinfo, [
AC_CHECK_FUNCS(getnameinfo, [
AC_CHECK_HEADERS(sys/types.h sys/socket.h netdb.h)
])
])
dnl Handle specifying where TCLLIB is, for testing
AC_SUBST(TCLLIB_PATH)
TCLLIB_PATH='/dev/null'
AC_ARG_WITH([tcllib-path], AS_HELP_STRING([--with-tcllib-path], [Specify a path to Tcllib for the test suite]), [
|
154
155
156
157
158
159
160
161
162
163
164
|
161
162
163
164
165
166
167
168
169
170
|
-
|
])
if test "$tcl_nano_amalgamation" = 'true'; then
TCL_NANO_AMALGAMATION='1'
else
TCL_NANO_AMALGAMATION='0'
fi
AC_SUBST(TCL_NANO_AMALGAMATION)
dnl Produce output
AC_OUTPUT(Makefile pkgIndex.tcl-${TCLEXT_BUILD} nano.syms)
|