text: >>>>> "KH" ==. Do other autoconf'ed programs which use X get this right on HP-UX? KH> The second one is the problem of `ospeed'. It seems that HPUX KH> 10.20 doesn't have the variable `ospeed'. So, "extern XXX KH> opseed" hack doesn't work. We have discussed on `ospeed' problem KH> long ago and my conclusion was to use Emacs's internal variable KH> only (see the attached mail at the tail). I think I actually removed it from some of the files where it wasn't used. I happened to look at the Texinfo configure recently in connexion with termcap. It contains this: dnl Checks for variables. # HP-UX 9 (at least) needs -lncurses which defines termcap variables PC etc. AC_MSG_CHECKING(for library with termcap variables) AC_CACHE_VAL(ac_cv_var_ospeed, oldLIBS=$LIBS for trylib in $termlib ncurses curses termlib termcap terminfo; do if test "x$trylib" != "x$termlib"; then LIBS="$oldLIBS -l$termlib -l$trylib" else LIBS="$oldLIBS -l$termlib" fi AC_TRY_LINK(, #ifdef HAVE_NCURSES_TERMCAP_H #include <ncurses/termcap.h> #else #ifdef HAVE_TERMCAP_H #include <termcap.h> #else #undef PC char *BC; char* *UP; char PC; short ospeed; #endif #endif return ospeed != 0; , ac_cv_var_ospeed=$trylib; break) done LIBS=$oldLIBS ) AC_MSG_RESULT($ac_cv_var_ospeed) if test -n "$ac_cv_var_ospeed" \ && test "x$termlib" != "x$ac_cv_var_ospeed"; then TERMLIBS="${TERMLIBS} -l${ac_cv_var_ospeed}" fi AC_SUBST(TERMLIBS)