-
Notifications
You must be signed in to change notification settings - Fork 6
/
configure.in
38 lines (31 loc) · 1.06 KB
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.61)
AC_INIT(ufiformat, 0.9.9)
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([ufi_format.c])
AC_CONFIG_HEADER([config.h])
# Checks for programs.
AC_PROG_CC
# Checks for libraries.
AC_CHECK_LIB(ext2fs, ext2fs_check_if_mounted,,
AC_MSG_ERROR([ext2fs:ext2fs_check_if_mounted not found]))
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/ioctl.h sys/param.h unistd.h],,
AC_MSG_ERROR([system headers not found]))
AC_CHECK_HEADER([ext2fs/ext2fs.h],,
AC_MSG_ERROR([ext2fs:ext2fs/ext2fs.h not found]))
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T
AC_CHECK_MEMBERS([struct stat.st_rdev],,
AC_MSG_ERROR([struct stat.st_rdev not found]))
# Checks for library functions.
AC_PROG_GCC_TRADITIONAL
AC_HEADER_MAJOR
AC_FUNC_MALLOC
AC_FUNC_STAT
AC_CHECK_FUNCS([memset strdup],, AC_MSG_ERROR([system functions not found]))
AC_CONFIG_FILES([Makefile])
AC_OUTPUT