X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=configure.ac;fp=configure.ac;h=25c2b3e9b20a7e77472e8b95999e9001c9b4dd3f;hb=b8325bf3d7fa12253101f10f3b501a8a6df90984;hp=0000000000000000000000000000000000000000;hpb=b120c6c380911d59608e5e639e05e7e6bb8c9de2;p=sort-networks.git diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..25c2b3e --- /dev/null +++ b/configure.ac @@ -0,0 +1,43 @@ +AC_PREREQ([2.65]) +AC_INIT([libsortnetwork], [1.0.0], [ff@octo.it]) +AC_CONFIG_SRCDIR([src/sn_network.c]) +AC_CONFIG_HEADERS([src/config.h]) +AM_INIT_AUTOMAKE(dist-bzip2) +AC_LANG(C) + +AC_PREFIX_DEFAULT("/opt/libsortnetwork") + +# Checks for programs. +AC_PROG_CC +AC_PROG_CPP +AC_PROG_INSTALL +AM_PROG_CC_C_O +AC_DISABLE_STATIC +AC_PROG_LIBTOOL + +# Libtool stuff +LT_CONFIG_LTDL_DIR([libltdl]) +LT_INIT +LTDL_INIT + +# Checks for libraries. +AC_CHECK_LIB([m], [powl]) +# FIXME: Replace `main' with a function in `-lpopulation': +#AC_CHECK_LIB([population], [main]) + +# Checks for header files. +AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h stdint.h stdlib.h string.h strings.h unistd.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_TYPE_INT64_T +AC_TYPE_SIZE_T +AC_TYPE_UINT32_T +AC_TYPE_UINT64_T + +# Checks for library functions. +AC_FUNC_MALLOC +AC_FUNC_REALLOC +AC_CHECK_FUNCS([memmove memset strcasecmp strchr strdup strtol]) + +AC_CONFIG_FILES([Makefile src/Makefile]) +AC_OUTPUT