pike.git/
src/
configure.in
Branch:
Tag:
Non-build tags
All tags
No tags
2007-12-26
2007-12-26 11:08:39 by Henrik Grubbström (Grubba) <grubba@grubba.org>
8f9f3d59e83e2cc2023d32730bb2af39241bb639 (
30
lines) (+
26
/-
4
)
[
Show
|
Annotate
]
Branch:
7.9
Added some debug checks.
Rev: src/configure.in:1.1028
1:
-
AC_REVISION("$Id: configure.in,v 1.
1027
2007/12/
15
14
:
26
:
47
grubba Exp $")
+
AC_REVISION("$Id: configure.in,v 1.
1028
2007/12/
26
11
:
08
:
39
grubba Exp $")
AC_INIT(interpret.c) AC_CONFIG_HEADER(machine.h)
894:
fi #if test "x$enable_binary" != "xno" #############################################################################
+
# Something seems to mess with the stack ulimit on some architectures...
+
AC_DEFUN(PIKE_AC_DEBUG, [
+
echo "DEBUG: ----------------------------------" 1>&AC_FD_CC
+
echo "Current limits: " 1>&AC_FD_CC
+
ulimit -a 1>&AC_FD_CC
+
echo "DEBUG: ++++++++++++++++++++++++++++++++++" 1>&AC_FD_CC
+
])
+
+
PIKE_AC_DEBUG
+
# Restore the -O2 that the default AC_PROG_CC adds. AC_SYS_COMPILER_FLAG(+O3,plus_O3,OPTIMIZE, [
1424:
fi ])
+
PIKE_AC_DEBUG
+
AC_ARG_WITH(malloc_overhead, MY_DESCR([--with-malloc-overhead=n], [tune the malloc block overhead (default is 2 * sizeof(void *))]),
1434:
[tune to the memory page size (default is 4 kb)]), [AC_DEFINE(PIKE_MALLOC_PAGE_SIZE,($withval))], [AC_DEFINE(PIKE_MALLOC_PAGE_SIZE,(4 * 1024))])
+
+
PIKE_AC_DEBUG
+
AC_ARG_WITH(thread_c_stack, MY_DESCR([--with-thread-c-stack=n], [tune the thread c-stack (default is 256 * 1024)]),
2311:
# MinGW system. cat <<\EOF #!/bin/sh
-
# Automatically generated by $Id: configure.in,v 1.
1027
2007/12/
15
14
:
26
:
47
grubba Exp $.
+
# Automatically generated by $Id: configure.in,v 1.
1028
2007/12/
26
11
:
08
:
39
grubba Exp $.
# MinGW-version. Do NOT edit. posix_name="`cat`" posix_prefix="/"
2349:
# Native POSIX system. cat <<\EOF #!/bin/sh
-
# Automatically generated by $Id: configure.in,v 1.
1027
2007/12/
15
14
:
26
:
47
grubba Exp $.
+
# Automatically generated by $Id: configure.in,v 1.
1028
2007/12/
26
11
:
08
:
39
grubba Exp $.
# POSIX-version. Do NOT edit. cat EOF
2358:
# rntcl-style cat <<\EOF #!/bin/sh
-
# Automatically generated by $Id: configure.in,v 1.
1027
2007/12/
15
14
:
26
:
47
grubba Exp $.
+
# Automatically generated by $Id: configure.in,v 1.
1028
2007/12/
26
11
:
08
:
39
grubba Exp $.
# RNTCL-version. Do NOT edit. sed -e "$PIKE_PATH_TRANSLATE" EOF
3081:
#############################################################################
+
PIKE_AC_DEBUG
+
# Note: For function detection to work correctly with # PIKE_FUNCS_NEED_DECLS (i.e. windows), it's necessary that # AC_CHECK_HEADERS tests all potential header files for a function
3532:
########################################################################
+
PIKE_AC_DEBUG
+
using_threads="no (forced)" if test x$with_threads = xyes ; then
3679:
esac fi
+
PIKE_AC_DEBUG
+
AC_CHECK_FUNCS(pthread_init pthread_mutexattr_init pthread_kill) AC_MSG_CHECKING(posix threads)