Re: How to flush history ?

2009-08-14 Thread Neil Jerram
Roberto Rosetti writes: > Hi all, > > I'm wondering how to flush the recent readline history to a file. I need this > feature for an educational project. > The purpose is to permit the REPL user to save his entire history with a > simple > command. Something like (flush-history ) > I've read som

Re: Checking for guile from configure -- forward compat.

2009-08-14 Thread Neil Jerram
Peter Brett writes: > We ended up writing a pile of crufty m4/shell, which: > > - checks for guile-1.8.pc > - if that fails, checks for guile-2.0.pc > - if that fails, checks for guile-config > > http://git.gpleda.org/?p=gaf.git;a=blob;f=m4/geda-guile.m4;hb=HEAD > > Ewww. That looks good to me

Re: Checking for guile from configure -- forward compat.

2009-08-14 Thread Neil Jerram
Andreas Rottmann writes: > Neil Jerram writes: > >> Peter TB Brett writes: >> >>> I'm perfectly aware of how to use pkg-config, and I think I already pointed >>> out >>> that this isn't very useful because Guile provides a 'guile-1.8' pkg-config >>> module file, but not one for 'guile'. >> >>

Re: Building guile on MSYS/MinGW - issue with pthread use

2009-08-14 Thread Neil Jerram
Gareth Edwards writes: > pthread.h defines timespec like this: > > #ifndef HAVE_STRUCT_TIMESPEC > #define HAVE_STRUCT_TIMESPEC 1 > struct timespec { > long tv_sec; > long tv_nsec; > }; > #endif /* HAVE_STRUCT_TIMESPEC */ > > So, presumably, configure tests for timespec, it doesn't

Building guile on MSYS/MinGW - issue with pthread use

2009-08-14 Thread Gareth Edwards
Hi there, I've run into a problem building guile using the MinGW toolchain under MSYS. gar...@xdcnb048 /c/gareth/geda/deps/guile-1.8.7/libguile $ gcc -DHAVE_CONFIG_H -I.. -I/usr/local/include -g -O2 -Wall -Wmissing-prototyp es -Werror -MT libguile_la-threads.lo -MD -MP -MF .deps/libguile_la-threa

Re: Checking for guile from configure -- forward compat.

2009-08-14 Thread Peter Brett
Peter TB Brett writes: > Hi everyone, > > Currently, there appear to be two ways to check for the presence of > Guile: > > PKG_CHECK_MODULES(GUILE, [guile-1.8]) > > Or: > > GUILE_FLAGS > > Unfortunately, the first of these *only* works for Guile 1.8 -- so if > some has, at some point in the f