(re-send because I forgot to CC vim-dev; sorry)
Bram Moolenaar wrote:
Matthew Woehlke wrote:
[snip]
The indirect 'configure' scripts need to preserve the exit status.

The fix, which is trivial, I leave as an exercise.

So, what is the fix?  I'm lazy.

Goodness, I'll say. :)

==== vim/configure:
-cd src && ./configure "$@"
+cd src && exec ./configure "$@"

==== vim/src/configure:
 CONFIG_STATUS=auto/config.status \
         auto/configure "$@" --srcdir="${srcdir:-.}" \
                             --cache-file=auto/config.cache
+result=$?
 # Stupid autoconf 2.5x causes this file to be left behind.
 if test -f configure.lineno; then rm -f configure.lineno; fi
+exit $result

Anyway, when the curses library isn't found configure will continue.
This is because on a few platforms the functionality is included in the
standard libraries and Vim can be build anyway.

Not when using '--with-tlib=ncurses' it won't. However, I consider this a GOOD thing; if I *tell* it to use ncurses, I expect it to either do so, or fail. Particularly on HP-UX (at least, I think HP-UX is where I had the problem), it otherwise wants to fall back on termlib which results in reduced functionality. Of course, if I /don't/ explicitly use '--with-tlib', then it's OK for it to fall back on termlib and continue (and it does, as evidenced by the case where I did get termlib instead of curses, which is why I started using --with-tlib=ncurses in the first place).

--
Matthew
DOS Attack: See America Online -- my college room mate

Reply via email to