# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) AC_INIT([geresh], [0.6.4]) AC_CONFIG_SRCDIR([geresh.1]) AM_INIT_AUTOMAKE AC_CONFIG_HEADERS([config.h]) # Checks for programs. AC_PROG_CXX AC_PROG_CC # Checks for libraries. # Checks for header files. AC_CHECK_HEADERS([fcntl.h langinfo.h libintl.h locale.h stdlib.h string.h sys/time.h termios.h unistd.h wchar.h]) # Checks for typedefs, structures, and compiler characteristics. AC_CHECK_HEADER_STDBOOL AC_C_INLINE AC_TYPE_MODE_T AC_TYPE_PID_T AC_TYPE_SIZE_T AC_TYPE_SSIZE_T # FIXME: Do we really need to bother with platforms that don't support # UTF-8? AC_DEFINE_UNQUOTED(DEFAULT_FILE_ENCODING, "UTF-8", "Default encoding") AC_HEADER_DIRENT dnl FIXME: AC_TYPE_SIGNAL - fails on some systems, so: AC_DEFINE(RETSIGTYPE, void, [Type returned from a signal]) # FIXME: really needed? AC_CHECK_FUNCS(use_default_colors start_color curs_set) AC_CHECK_FUNCS(getopt_long) # FIXME: check for libiconv? # Checks for library functions. AC_FUNC_FORK AC_CHECK_FUNCS([dup2 memmove putenv select setlocale strchr strdup strerror strstr strtol wcwidth]) PKG_CHECK_MODULES([FRIBIDI], fribidi, [CPPFLAGS="$CFLAGS $FRIBIDI_CFLAGS"; LDFLAGS="$LDFLAGS $FRIBIDI_LIBS"]) PKG_CHECK_MODULES([NCURSES], ncursesw, [CPPFLAGS="$CFLAGS $NCURSES_CFLAGS"; LDFLAGS="$LDFLAGS $NCURSES_LIBS"]) AC_DEFINE(HAVE_WIDE_CURSES, 1, [Have ncursesw (ncurses with wide chars)]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES(pgeresh, [chmod +x pgeresh]) AC_OUTPUT