Fix bug in curses detection - LIBS was not properly reset. Also remove to redundant variable declarations.
Sort out curses detection. It'll now detect ncurses before curses, and cope with the header files being in include or include/ncurses. I think this will work in every case.
Add all the build stuff for saidar (assuming Pete sticks with that name). The configure script will attempt to find curses, but if it can't will simply disable building of saidar (after giving a warning). Also made the building of saidar, statgrab, and the examples conditional. They're enabled by default, but can be disabled using a configure flag. Whilst I was at it, added a configure flag to disable manpage installation at configure time. I'm not sure how well the curses detection works; we've had at least one report of a problem with it. Testing will be required.
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.