forked from RubyLane/parse_args
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaclocal.m4
More file actions
27 lines (21 loc) · 676 Bytes
/
aclocal.m4
File metadata and controls
27 lines (21 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# Include the TEA standard macro set
#
builtin(include,tclconfig/tcl.m4)
#
# Add here whatever m4 macros you want to define for your package
#
AC_DEFUN([TIP445], [
AC_MSG_CHECKING([whether we need to polyfill TIP 445])
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $TCL_INCLUDE_SPEC"
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <tcl.h>]], [[Tcl_ObjInternalRep ir;]])],[have_tcl_objintrep=yes],[have_tcl_objintrep=no])
CFLAGS="$saved_CFLAGS"
if test "$have_tcl_objintrep" = yes; then
AC_DEFINE(TIP445_SHIM, 0, [Do we need to polyfill TIP 445?])
AC_MSG_RESULT([no])
else
AC_DEFINE(TIP445_SHIM, 1, [Do we need to polyfill TIP 445?])
AC_MSG_RESULT([yes])
fi
])