Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
2ee66945
Commit
2ee66945
authored
26 years ago
by
Fredrik Hübinette (Hubbe)
Browse files
Options
Downloads
Patches
Plain Diff
bugfix for STACK_DIRECTION
Rev: src/configure.in:1.259
parent
7d680e56
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/configure.in
+34
-28
34 additions, 28 deletions
src/configure.in
with
34 additions
and
28 deletions
src/configure.in
+
34
−
28
View file @
2ee66945
AC_REVISION("$Id: configure.in,v 1.25
8
1999/01/0
1 01:03:29
hubbe Exp $")
AC_REVISION("$Id: configure.in,v 1.25
9
1999/01/0
7 13:41:51
hubbe Exp $")
AC_INIT(interpret.c)
AC_CONFIG_HEADER(machine.h)
...
...
@@ -199,6 +199,7 @@ AC_ARG_WITH(max-fd, [ --with-max-fd=X set how many filedescriptors
AC_ARG_WITH(oob, [ --with-oob enable out-of-band data handling],[AC_DEFINE(WITH_OOB)],[])
AC_ARG_WITH(thread-trace,[ --with-trace-threads enable individual tracing of threads],[AC_DEFINE(TRACE_THREADS)],[])
AC_ARG_WITH(compiler-trace,[ --with-compiler-trace enable tracing of the compiler],[AC_DEFINE(YYDEBUG)],[])
AC_ARG_WITH(compiler-trace,[ --with-security enable internal pike security system],[AC_DEFINE(PIKE_SECURITY)],[])
if test "x$with_poll" = "xyes"; then
AC_DEFINE(HAVE_AND_USE_POLL)
...
...
@@ -1517,33 +1518,38 @@ fi
OLD_LIBOBJS="${LIBOBJS}"
########################################################################
dnl AC_MSG_CHECKING(stack direction)
dnl AC_CACHE_VAL(pike_cv_hardware_stack_direction,
dnl [
dnl AC_TRY_RUN([
dnl static int find_stack_direction(void *foo)
dnl {
dnl if(!foo) {
dnl return find_stack_direction((void *)&foo);
dnl }
dnl if (((void *)&foo) > foo) {
dnl return 1;
dnl } else {
dnl return -1;
dnl }
dnl }
dnl
dnl int main() { exit( find_stack_direction(0) + 1); }
dnl ],pike_cv_hardware_stack_direction=down,pike_cv_hardware_stack_direction=up)
dnl ])
dnl
dnl AC_MSG_RESULT($pike_cv_hardware_stack_direction)
dnl if test "x$pike_cv_hardware_stack_direction" = "xup" ; then
dnl AC_DEFINE(STACK_DIRECTION, 1)
dnl else
dnl AC_DEFINE(STACK_DIRECTION, -1)
dnl fi
dnl
AC_MSG_CHECKING(stack direction)
AC_CACHE_VAL(pike_cv_hardware_stack_direction,
[
AC_TRY_RUN([
static int find_stack_direction(void *foo)
{
if(!foo) {
return find_stack_direction((void *)&foo);
}
if (((void *)&foo) > foo) {
return 1;
} else {
return -1;
}
}
int main() { exit( find_stack_direction(0) + 1); }
],pike_cv_hardware_stack_direction=down,pike_cv_hardware_stack_direction=up)
])
AC_MSG_RESULT($pike_cv_hardware_stack_direction)
if grep STACK_DIRECTION confdefs.h >/dev/null 2>&1; then
:
else
if test "x$pike_cv_hardware_stack_direction" = "xup" ; then
AC_DEFINE(STACK_DIRECTION, 1)
else
AC_DEFINE(STACK_DIRECTION, -1)
fi
fi
########################################################################
AC_MSG_CHECKING(byteorder)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment