From 9cbc59b328898f7a0966be5ec1665409f6aa836f Mon Sep 17 00:00:00 2001 From: dos-reis Date: Fri, 3 Jul 2009 02:48:59 +0000 Subject: Support ECL-based build profiling. * configure.ac.pamphlet: Support --enable-profiling. * config/var-def.mk (oa_yesno_to_lisp_boolean): New. (oa_enable_profiling): Likewise. (oa_enable_lisp_profiling): Likewise. src/ * lisp/Makefile.in (edit): Substitute for oa_enable_profiling. * lisp/core.lisp.in ($EnableLispProfiling): New. (compileLispFile): Use it. --- config/var-def.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config') diff --git a/config/var-def.mk b/config/var-def.mk index 73b95dd6..2356193d 100644 --- a/config/var-def.mk +++ b/config/var-def.mk @@ -202,6 +202,12 @@ LDF=@LDF@ -lm LISP=@LISP@ oa_c_runtime_extra = @LIBS@ @axiom_c_runtime_extra@ -lm +oa_yesno_to_lisp_boolean = $(subst yes,t,$(subst no,nil,$(1))) + +oa_enable_profiling = @oa_enable_profiling@ +oa_enable_lisp_profiling = \ + $(call oa_yesno_to_lisp_boolean,$(oa_enable_profiling)) + axiom_use_x = @axiom_use_x@ AXIOM_X11_CFLAGS = @X_CFLAGS@ AXIOM_X11_LDFLAGS = @X_LIBS@ @X_PRE_LIBS@ -lX11 @X_EXTRA_LIBS@ -- cgit v1.2.3