AC_INIT([src/yencode.c]) AC_PREREQ(2.52) AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(yencode,0.46) # Checks for programs. AC_PROG_AWK AC_PROG_CC AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_RANLIB # Checks for libraries. # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([errno.h getopt.h libintl.h memory.h stdarg.h stddef.h stdlib.h string.h]) AC_CHECK_HEADERS([strings.h termios.h time.h sys/time.h unistd.h]) AC_CHECK_HEADERS([arpa/inet.h netdb.h netinet/in.h pwd.h signal.h sys/socket.h sys/utsname.h]) # Checks for types, structures, and compiler characteristics. AC_C_CONST # Checks for library functions. AC_FUNC_MALLOC AC_TYPE_SIGNAL AC_CHECK_FUNCS([gettimeofday memset setlocale strchr strdup strerror strstr]) # Internationalization ALL_LINGUAS="" AM_GNU_GETTEXT AC_OUTPUT(Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile src/ypost/Makefile doc/Makefile) # Output a little bit of helpful information PLATFORM=`${CONFIG_SHELL-/bin/sh} ./config.guess` PLATFORM=`${CONFIG_SHELL-/bin/sh} ./config.sub $PLATFORM` echo echo "${PACKAGE} version ${VERSION} configured for ${PLATFORM}" echo "----------------------------------------------------------------------------" echo "Type \`make' to build the package." echo "Type \`make install' to install the package." echo