Mercurial > hg > octave-lyh
diff configure.in @ 4602:59e180c8cb61
[project @ 2003-11-12 18:36:24 by jwe]
author | jwe |
---|---|
date | Wed, 12 Nov 2003 18:39:31 +0000 |
parents | 7b957b442818 |
children | eb84ffc19e44 |
line wrap: on
line diff
--- a/configure.in +++ b/configure.in @@ -29,7 +29,7 @@ EXTERN_CXXFLAGS="$CXXFLAGS" AC_INIT -AC_REVISION($Revision: 1.436 $) +AC_REVISION($Revision: 1.438 $) AC_PREREQ(2.57) AC_CONFIG_SRCDIR([src/octave.cc]) AC_CONFIG_HEADER(config.h) @@ -865,7 +865,7 @@ ### Does the C compiler handle alloca() and const correctly? -AC_FUNC_ALLOCA([]) +AC_FUNC_ALLOCA AC_C_CONST ### See if we should define NPOS. @@ -934,7 +934,11 @@ ## avoids the problem. GLOB_DIR=glob -LIBGLOB='$(TOPDIR)/glob/glob.o $(TOPDIR)/glob/fnmatch.o' +if test -n "$(ALLOCA)"; then + LIBGLOB='$(TOPDIR)/glob/glob.o $(TOPDIR)/glob/fnmatch.o $(TOPDIR)/glob/alloca.o' +else + LIBGLOB='$(TOPDIR)/glob/glob.o $(TOPDIR)/glob/fnmatch.o' +fi GLOB_INCFLAGS='-I$(top_srcdir)/glob -I$(TOPDIR)/glob' if test "$have_fnmatch_h" = yes && test "$have_glob_h" = yes; then AC_EGREP_CPP(yes, [#include <fnmatch.h>