diff --git a/acinclude.m4 b/acinclude.m4 index 8c94911e12..085cfba02b 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -79,6 +79,8 @@ AC_ARG_ENABLE([pam], [AS_HELP_STRING([--disable-pam], [disable PAM support])], , [enable_pam="yes"]) +AC_ARG_ENABLE([gtx], + AS_HELP_STRING([--disable-gtx], [disable gtx curses-based terminal tools])) AC_ARG_ENABLE([namei-fileserver], [AS_HELP_STRING([--enable-namei-fileserver], [force compilation of namei fileserver in preference to inode @@ -1371,16 +1373,16 @@ dnl see what struct stat has for timestamps AC_CHECK_MEMBERS([struct stat.st_ctimespec, struct stat.st_ctimensec]) dnl check for curses-lib -save_LIBS=$LIBS -AC_CHECK_LIB( [ncurses], [setupterm], -[LIB_curses=-lncurses], - [AC_CHECK_LIB([Hcurses], [setupterm], [LIB_curses=-lHcurses], - [AC_CHECK_LIB([curses], [setupterm], [LIB_curses=-lcurses]) - ]) -]) -LIBS=$save_LIBS -AC_SUBST(LIB_curses) - +AS_IF([test "x$enable_gtx" != "xno"], + [save_LIBS=$LIBS + AC_CHECK_LIB( [ncurses], [setupterm], + [LIB_curses=-lncurses], + [AC_CHECK_LIB([Hcurses], [setupterm], [LIB_curses=-lHcurses], + [AC_CHECK_LIB([curses], [setupterm], [LIB_curses=-lcurses])]) + ]) + LIBS=$save_LIBS + AC_SUBST(LIB_curses)]) + OPENAFS_TEST_PACKAGE(libintl,[#include ],[-lintl],,,INTL) dnl Don't build PAM on IRIX; the interface doesn't work for us.