From: Yves M. <yme...@fr...> - 2007-09-03 17:23:07
|
Hi ! Back from holidays. I may be late, but better late than never :) Yes, I'm familiar with autoconf. But I have no more time to spend on perfparse :( Anyway, check this : http://people.ubuntu.com/~mvo/bzr/synaptic/synaptic--main/macros/curses.m4 Note1 : editing the acconfig.h is obsolete. But I don't remember the new way of doing things. It's something to add in configure.ac, but I don't remember the macro name. Maybe this is useless in simple cases like in perfparse ? Note2 : check if linux systems don't already have a standard curses.m4 file. In short : 1/ add the curses.m4 file into the m4/ directory 2/ add the following to configure.ac : AC_CHECK_CURSES 3/ remove the other lines about ncurses in configure.ac 4/ edit the Makefile.am files 5/ Then run the following : $ aclocal -I m4 $ autoconf $ autoheader $ automake $ ./configure --with-ncursesdir=/usr/local Don't forget to add m4/curses.m4 to the cvs repository ! :) I hope this helps. If you have any question, just ask :) Yves > Ale...@sm... schrieb: >>> convert.c:41:21: ncurses.h: No such file or directory >> pwd >> /usr/local/include/ncurses >> ls -l ncurses.h >> lrwxrwxrwx 1 root SysAdmin 8 Jul 31 15:09 ncurses.h -> curses.h > > I'm not autoconf expert. I thought autoconf would find that out, but that is not true. CFLAGS="-I/usr/local/include/ncurses" LDFLAGS="-liconv" ./configure ... removes the "ncurses.h not found" error, but raises another linker error. I'm investigating it later. > > Are you familiar with autoconf? -- - Homepage - http://ymettier.free.fr - http://www.logicacmg.com - - GPG key - http://ymettier.free.fr/gpg.txt - - Maitretarot - http://www.nongnu.org/maitretarot/ - - C en action - http://www.oreilly.fr/catalogue/2841772896.html - |