> -----Original Message----- > From: Peter Eisentraut [mailto:peter_e@xxxxxxx] > Sent: 23 January 2004 14:54 > To: Al; autoconf@xxxxxxx > Subject: Re: Cleanly sharing a project tree between OSes? > > > Am Freitag, 23. Januar 2004 15:39 schrieb Al: > > $ ls > > linux myproj windows > > > > $ ls myproj > > AUTHORS INSTALL README bootstrap doc > > COPYING Makefile.am etc... > > > > Then I would hope to be able to switch to either the windows > directory when > > on windows, or the linux directory when on Linux and > > > > $ bootstrap && configure -C && make && make install > > Normally, you would do > > $ cd linux > linux$ ../myproj/configure && make && make install > > You just need to have your makefiles set up correctly. If you're using > automake, you should be all set. Otherwise you need to learn > about making > your makefiles VPATH-aware. In either case, as far as autoconf > is concerned, > "it just works", because all the platform-specific files are > created in the > current directory ("linux" in this example). > > > Well, I have tried just running configue from the separate build trees (well, just the windows one actually) but it doesnt work. I am creating a libreplace.la as per the Autobook, but make fails with ... /bin/bash ../libtool --mode=link g++ -g -O2 -o libforrest.la -rpath /usr/loca l/lib -no-undefined -version-info 0:0:0 -Wl,--kill-at Forrest.lo ForrestLexer.lo ForrestParser.lo ForrestParserControl.lo ForrestThreadLocalData.lo ForrestUtili ty.lo ../replace/libreplace.la ../libltdl/libltdlc.la generating symbol list for `libforrest.la' ../libtool: line 4049: test: : integer expression expected ../libtool: line 4049: test: : integer expression expected using reloadable object file for export list... ../libtool: line 4049: test: : integer expression expected ../libtool: line 4049: test: : integer expression expected using reloadable object file for export list... rm -fr .libs/libforrest.lax mkdir .libs/libforrest.lax rm -fr .libs/libforrest.lax/libreplace.a mkdir .libs/libforrest.lax/libreplace.a (cd .libs/libforrest.lax/libreplace.a && ar x /cygdrive/d/Alan/Work/Forrest/forr est-1.0/windows/src/../replace/.libs/libreplace.a) ar: /cygdrive/d/Alan/Work/Forrest/forrest-1.0/windows/src/../replace/.libs/libre place.a: No such file or directory make[2]: *** [libforrest.la] Error 9 make[2]: Leaving directory `/cygdrive/d/Alan/Work/Forrest/forrest-1.0/windows/sr c' make[1]: *** [all] Error 2 make[1]: Leaving directory `/cygdrive/d/Alan/Work/Forrest/forrest-1.0/windows/sr c' make: *** [all-recursive] Error 1 ?? True enough the file doesnt exist but I cant figure out why. Presumably something needs to be changed in my makefile.am files but I cant see what. As for those ../libtool errors (or are they just warnings), the line in question is; test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then I know its unlikely this can be diagnosed from this info but Ill just throw it out there. If anyone fancys taking this up I can send the files that the problem is probably in. Thanks.