On Wednesday 06 September 2006 17:49, James Cameron wrote: > Another workaround is to prefix the configure command with an assignment > to the environment variables CFLAGS and LDFLAGS. For example: > > CFLAGS=-I/usr/pkg/include LDFLAGS=-L/usr/pkg/lib ./configure This is "The Right Thing(tm)". The ports tree makefiles do this for all GNU configure script using ports. > The complete fix will be something you will have to contribute: > > 1. change configure.in to check alternate locations if the AC_CHECK_LIB > for gdbm_open() fails, using the checks for -lmp and -lX11 as examples > for how this can be done, > > 2. re-run autoconf after making the change, > > 3. verify that the tree builds clean without having to apply your > patch. Loop back to step 1 if this fails, > > 4. verify that the build still works on Linux. Personally I think it's not worth the bother. In FreeBSD LOCALBASE, which is normally /usr/local can be moved anywhere so I think guessing is just asking for trouble later. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://mailman.us.netrek.org/pipermail/netrek-dev/attachments/20060906/d0bd9515/attachment.pgp