1 AC_REVISION($Revision $) 2 AC_INIT(libconfig, 0.9.9) 3 AC_CONFIG_HEADER(config.h) 4 5 dnl Checks for programs. 6 AC_PROG_CC 7 AC_PROG_MAKE_SET 8 AC_PROG_INSTALL 9 AC_PROG_LN_S 10 AC_PROG_RANLIB 11 AC_CHECK_TOOL(AR, ar, true) 12 AC_AIX 13 14 dnl Find out about the host OS (must be done before GET_SHOBJFLAGS) 15 DC_CHK_OS_INFO 16 17 dnl Must be done before checking headers and compiler stuff. 18 DC_GET_SHOBJFLAGS 19 20 AC_HEADER_DIRENT 21 AC_HEADER_STDC 22 23 AC_CHECK_HEADERS(arpa/inet.h errno.h fcntl.h inttypes.h netdb.h netinet/in.h stdarg.h stdint.h stdio.h stdlib.h string.h sys/socket.h sys/stat.h sys/types.h unistd.h) 24 25 dnl Checks for typedefs, structures, and compiler characteristics. 26 AC_C_CONST 27 AC_TYPE_MODE_T 28 AC_TYPE_OFF_T 29 AC_TYPE_SIZE_T 30 AC_TYPE_OFF_T 31 AC_SYS_LARGEFILE 32 AC_FUNC_FSEEKO 33 34 dnl Checks for library functions. 35 AC_CHECK_FUNCS(socket strcspn strdup strstr getpeername) 36 AC_REPLACE_FUNCS(uname) 37 38 DC_DO_TYPE(uint64_t, unsigned, 8) 39 DC_DO_TYPE(int64_t, signed, 8) 40 DC_DO_TYPE(uint32_t, unsigned, 4) 41 DC_DO_TYPE(int32_t, signed, 4) 42 DC_DO_TYPE(uint16_t, unsigned, 2) 43 DC_DO_TYPE(int16_t, signed, 2) 44 45 dnl Checks for Win32 specific things. 46 DC_DO_NETSET 47 DC_DO_WIN32 48 49 dnl Must be done after modifying LIBOBJS 50 DC_SYNC_SHLIBOBJS 51 52 dnl This must be last. 53 DC_SETLDRUNPATH($libdir) 54 55 AC_OUTPUT(Makefile fopen_net.3 fseek_net.3 lseek_net.3 open_net.3 opennet.3 read_net.3 fread_net.3) |