hi people,
this is just a very simple patch to make the following work for me:
gambit_src$ mkdir output gambit_src/output$ ../configure [OPTIONS] gambit_src/output$ make
the reason this scenario did not work for me was that gambit.h, after the configure step, is rendered into the output directory's include directory, but it was referenced to the source tree's include directory (where only the .in file resides). IMHO the reason it builds otherwise is that the two include directories are the same.
maybe 've overlooked something.
-- Jakob
PS: I checked on the mercurial repo browser, and it seems to me that this did not change (changeset 158 still does have the INCLUDES variable set to $(srcdirpfx)$(rootfromhere) $(srcdir). So it might apply to the trunk as well.
diff -r 13cf170ae3bd gsc/makefile.in --- a/gsc/makefile.in Sun Apr 13 01:18:40 2008 -0400 +++ b/gsc/makefile.in Sun Aug 03 14:39:07 2008 +0200 @@ -52,7 +52,7 @@ emacsdir = $(prefix)$(PACKAGE_SUBDIR)/sh .SUFFIXES: .SUFFIXES: .scm .c @obj@
-INCLUDES = -I$(srcdirpfx)$(rootfromhere)/include +INCLUDES = -I$(rootfromhere)/include -I$(srcdirpfx)$(rootfromhere)/include
LIBRARIES_SCM =
diff -r 13cf170ae3bd gsi/makefile.in --- a/gsi/makefile.in Sun Apr 13 01:18:40 2008 -0400 +++ b/gsi/makefile.in Sun Aug 03 14:39:07 2008 +0200 @@ -52,7 +52,7 @@ emacsdir = $(prefix)$(PACKAGE_SUBDIR)/sh .SUFFIXES: .SUFFIXES: .scm .c @obj@
-INCLUDES = -I$(srcdirpfx)$(rootfromhere)/include +INCLUDES = -I$(rootfromhere)/include -I$(srcdirpfx)$(rootfromhere)/include
LIBRARIES_SCM =
diff -r 13cf170ae3bd lib/makefile.in --- a/lib/makefile.in Sun Apr 13 01:18:40 2008 -0400 +++ b/lib/makefile.in Sun Aug 03 14:39:07 2008 +0200 @@ -57,7 +57,7 @@ emacsdir = $(prefix)$(PACKAGE_SUBDIR)/sh .scm.c: @SETDLPATH@ $(rootfromhere)/gsc-comp -:=$(srcdirpfx)$(rootfromhere) -f -c -check $(srcdirpfx)$*.scm
-INCLUDES = -I$(srcdirpfx)$(rootfromhere)/include -I$(srcdir) +INCLUDES = -I$(rootfromhere)/include -I$(srcdirpfx)$(rootfromhere)/include -I$(srcdir)
NORMAL_C = main.c setup.c mem.c os.c os_base.c os_time.c os_shell.c os_files.c os_dyn.c os_tty.c os_io.c c_intf.c NORMAL_CPP = @@ -121,29 +121,29 @@ _gambc.c: $(MODULES_C) _gambc.c: $(MODULES_C) @SETDLPATH@ $(rootfromhere)/gsc-comp -:=$(srcdirpfx)$(rootfromhere) -f -link -flat -o _gambc.c $(MODULES_C)
-main@obj@: main.c $(srcdirpfx)$(rootfromhere)/include/gambit.h - -setup@obj@: setup.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os.h setup.h mem.h c_intf.h - -mem@obj@: mem.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os.h setup.h mem.h c_intf.h - -c_intf@obj@: c_intf.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os.h setup.h mem.h c_intf.h - -os@obj@: os.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os.h os_base.h os_time.h os_shell.h os_files.h os_dyn.h os_tty.h os_io.h setup.h mem.h c_intf.h - -os_base@obj@: os_base.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_base.h - -os_time@obj@: os_time.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_time.h - -os_shell@obj@: os_shell.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_shell.h os_files.h - -os_files@obj@: os_files.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_files.h - -os_dyn@obj@: os_dyn.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_dyn.h - -os_tty@obj@: os_tty.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_tty.h - -os_io@obj@: os_io.c $(srcdirpfx)$(rootfromhere)/include/gambit.h os_io.h +main@obj@: main.c $(rootfromhere)/include/gambit.h + +setup@obj@: setup.c $(rootfromhere)/include/gambit.h os.h setup.h mem.h c_intf.h + +mem@obj@: mem.c $(rootfromhere)/include/gambit.h os.h setup.h mem.h c_intf.h + +c_intf@obj@: c_intf.c $(rootfromhere)/include/gambit.h os.h setup.h mem.h c_intf.h + +os@obj@: os.c $(rootfromhere)/include/gambit.h os.h os_base.h os_time.h os_shell.h os_files.h os_dyn.h os_tty.h os_io.h setup.h mem.h c_intf.h + +os_base@obj@: os_base.c $(rootfromhere)/include/gambit.h os_base.h + +os_time@obj@: os_time.c $(rootfromhere)/include/gambit.h os_time.h + +os_shell@obj@: os_shell.c $(rootfromhere)/include/gambit.h os_shell.h os_files.h + +os_files@obj@: os_files.c $(rootfromhere)/include/gambit.h os_files.h + +os_dyn@obj@: os_dyn.c $(rootfromhere)/include/gambit.h os_dyn.h + +os_tty@obj@: os_tty.c $(rootfromhere)/include/gambit.h os_tty.h + +os_io@obj@: os_io.c $(rootfromhere)/include/gambit.h os_io.h
$(MODULES_C): $(srcdirpfx)$(rootfromhere)/lib/header.scm \ $(srcdirpfx)$(rootfromhere)/lib/gambit#.scm \
Afficher les réponses par date