X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpandora_stack_direction.m4;fp=m4%2Fpandora_stack_direction.m4;h=0000000000000000000000000000000000000000;hb=f1ed1535de64141a6a911cc18a9109f0f9c55c80;hp=635586a5fb6c2c6dc37337285cf0e82e626d9308;hpb=21f850c451cb7db8a0085ddcc892290ecac859eb;p=awesomized%2Flibmemcached diff --git a/m4/pandora_stack_direction.m4 b/m4/pandora_stack_direction.m4 deleted file mode 100644 index 635586a5..00000000 --- a/m4/pandora_stack_direction.m4 +++ /dev/null @@ -1,39 +0,0 @@ -dnl Copyright (C) 2009 Sun Microsystems -dnl This file is free software; Sun Microsystems -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -#-------------------------------------------------------------------- -# Check what direction the stack runs in -#-------------------------------------------------------------------- - -AC_DEFUN([PANDORA_STACK_DIRECTION],[ - AC_REQUIRE([AC_FUNC_ALLOCA]) - AC_CACHE_CHECK([stack direction], [ac_cv_c_stack_direction],[ - AC_RUN_IFELSE([AC_LANG_PROGRAM([[ -#include - int find_stack_direction () - { - static char *addr = 0; - auto char dummy; - if (addr == 0) - { - addr = &dummy; - return find_stack_direction (); - } - else - return (&dummy > addr) ? 1 : -1; - } - ]],[[ - exit (find_stack_direction() < 0); - ]])],[ - ac_cv_c_stack_direction=1 - ],[ - ac_cv_c_stack_direction=-1 - ]) - ]) - AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction) -]) - - -