# Process this file with autoconf to produce a configure script. AC_INIT(Shared memory map, 0.3.2, margus@mail.ee) AM_INIT_AUTOMAKE(shmap, 0.3.2) AM_CONFIG_HEADER(shmap_config.h) AC_CONFIG_SRCDIR([shmap/shmap_hm.c]) # Checks for programs. AC_PROG_CC # AC_PROG_INSTALL AC_PROG_MAKE_SET AC_PROG_LIBTOOL # Checks for libraries. # FIXME: Replace `main' with a function in `-lmm': AC_CHECK_LIB([mm], [main]) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([stdlib.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_TYPE_SIZE_T # Checks for library functions. AC_CHECK_FUNCS([memset]) AC_CONFIG_FILES([Makefile shmap/Makefile]) # configure libmm as well. # well, this is not written very nicely, but whta the heck ... cd mm-1.1.3 ./configure --disable-shared --enable-static --with-shm=IPCSHM --with-sem=IPCSEM cd .. AC_OUTPUT