AC_INIT() AM_INIT_AUTOMAKE(%{APPNAMELC},%{VERSION}) AC_PROG_CC AC_PROG_CXX AC_PROG_INSTALL AC_PROG_MAKE_SET AC_LANG_SAVE AC_LANG_CPLUSPLUS AC_CHECK_HEADER([ncurses.h], [], AC_MSG_ERROR([Couldn't find ncurses headers.])) AC_CHECK_LIB(ncurses, refresh, , AC_ERROR([Couldn't find ncurses library]), -lncurses, -ldl) AC_LANG_RESTORE AC_OUTPUT(Makefile src/Makefile)