forked from hpc/mpifileutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
105 lines (88 loc) · 2.91 KB
/
configure.ac
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
AC_INIT([mpifileutils],[0.7a],[[email protected]],[mpifileutils],[http://fileutils.io])
# Keep artifacts in directories as much as possible.
AC_CONFIG_AUX_DIR(auxdir)
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
# add foreign option to avoid GPL files
AM_INIT_AUTOMAKE([foreign])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
# Check for programs
AC_PROG_CXX
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CPP
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
# Checks for header files.
AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h stdint.h stdlib.h string.h sys/ioctl.h sys/time.h unistd.h utime.h])
AC_CHECK_HEADER_STDBOOL
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_UID_T
AC_C_INLINE
AC_TYPE_INT32_T
AC_TYPE_INT64_T
AC_TYPE_MODE_T
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_TYPE_SSIZE_T
AC_CHECK_MEMBERS([struct stat.st_blksize])
AC_STRUCT_ST_BLOCKS
AC_CHECK_MEMBERS([struct stat.st_rdev])
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
AC_FUNC_MALLOC
AC_CHECK_FUNCS([endgrent endpwent getcwd lchown memset mkdir realpath rmdir strchr strdup strerror strstr utime])
##
# enable libtool
##
AC_PROG_LIBTOOL
# Check for nose test program.
X_AC_NOSETESTS
# Check for libarchive (FIXME: should eventually remove this)
PKG_CHECK_MODULES([libarchive], libarchive)
# Check for MPI
LX_FIND_MPI
test "x$have_C_mpi" = xyes || \
AC_MSG_ERROR([You should check to see if MPI is setup properly.])
AM_CONDITIONAL(HAVE_MPI, [test "x$have_C_mpi" = xyes])
# Check for libcircle
PKG_CHECK_MODULES([libcircle], libcircle)
#PKG_CHECK_MODULES([DTCMP], libdtcmp)
# Check for libdtcmp.
X_AC_DTCMP
# Check for Lustre
X_AC_LUSTRE
# Check for libcrypto
#PKG_CHECK_MODULES([CRYPTO], [libcrypto], [INCLUDES="$INCLUDES $CRYPTO_CFLAGS"; LIBS="$LIBS $CRYPTO_LIBS"], [AC_MSG_ERROR(libcrypto not found.)])
AC_SEARCH_LIBS([SHA256_Init], [crypto], [], [AC_MSG_ERROR([could not find libcrypto])], [])
AC_CONFIG_FILES([Makefile \
src/Makefile \
src/common/Makefile \
src/dbcast/Makefile \
src/dchmod/Makefile \
src/dcmp/Makefile \
src/dcp/Makefile \
src/ddup/Makefile \
src/dfilemaker/Makefile \
src/dfmake/Makefile \
src/drm/Makefile \
src/dstripe/Makefile \
src/dwalk/Makefile \
])
# Check if we should build the experimental utilities.
X_AC_EXPERIMENTAL
if test [EXPERIMENTAL_ENABLED]; then
AC_CONFIG_FILES([experimental/Makefile \
experimental/dparallel/Makefile \
experimental/dsh/Makefile \
experimental/dbz2/Makefile \
experimental/dtar/Makefile \
])
fi
AC_OUTPUT