Debian Codegraph @

configure.ac

raw
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.69])
5 AC_INIT([libhugetlbfs], [2.24])
6
7 # Checks for programs.
8 AC_PROG_CC
9 AC_PROG_INSTALL
10 AC_PROG_LN_S
11 AC_PROG_MAKE_SET
12
13 # Checks for libraries.
14 AC_CHECK_LIB([dl], [main])
15 AC_CHECK_LIB([pthread], [main])
16
17 # glibc 2.34 removed __morecore, so it may not be available with recent versions
18 # Check glibc __morecore
19 AC_MSG_CHECKING([if glibc __morecore is available])
20 AC_COMPILE_IFELSE(
21 [AC_LANG_PROGRAM([[
22 #include <malloc.h>
23 void * morecore_exists() { return &__morecore; }]])],
24 [ AC_MSG_RESULT([yes])
25 CFLAGS+=" -DHAS_MORECORE"],
26 [ AC_MSG_RESULT([no])]
27 )
28
29 AC_CONFIG_FILES([Makefile
30 tests/Makefile])
31 AC_OUTPUT