-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
93 lines (76 loc) · 2.12 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.57])
AC_INIT([HEIMDALL], [0.1], [[email protected]])
AC_CONFIG_SRCDIR([Applications/heimdall.C])
AC_CONFIG_MACRO_DIR([config])
AC_ARG_VAR([PSRHOME], [Standard pulsar home directory])
AC_ARG_VAR([LOGIN_ARCH], [Architecture-dependent sub-directory of PSRHOME])
AC_PREFIX_DEFAULT([${PSRHOME:-"/usr/local"}${PSRHOME:+"/$LOGIN_ARCH"}])
AM_INIT_AUTOMAKE([foreign subdir-objects])
AC_DISABLE_SHARED
AC_CANONICAL_HOST
case $host in
i?86-*-linux-*) ARCH=IA32;;
ia64-*-linux-*) ARCH=IA64;;
x86_64-*-linux-*) ARCH=AMD64;;
*) ARCH=unsupported;
AC_MSG_WARN([architecture is not supported by third party software]);;
esac
AC_SUBST(ARCH)
# Checks for programs.
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_LIBTOOL
LIBS="$PTHREAD_LIBS $LIBS"
CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS"
SWIN_LIB_DEDISP
SWIN_LIB_PSRDADA
BOOST_REQUIRE([1.4])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([arpa/inet.h fcntl.h inttypes.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_INT64_T
AC_TYPE_SIZE_T
AC_TYPE_UINT64_T
AC_C_CONST
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_MEMCMP
AC_FUNC_MKTIME
AC_FUNC_REALLOC
AC_FUNC_SELECT_ARGTYPES
AC_FUNC_SETVBUF_REVERSED
AC_TYPE_SIGNAL
AC_FUNC_STAT
AC_FUNC_STRFTIME
AC_FUNC_VPRINTF
AC_FUNC_ERROR_AT_LINE
AC_CHECK_FUNCS([gettimeofday memset pow socket sqrt strdup strerror])
if test "x$prefix" = xNONE; then
prefix=$ac_default_prefix
fi
HEIMDALL_INSTALL=$prefix
AC_SUBST(HEIMDALL_INSTALL)
AM_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([Applications/Makefile
Formats/Makefile
Makefile
Network/Makefile
Pipeline/Makefile
Share/Makefile
Scripts/Makefile
Scripts/trans_paths.py])
AC_OUTPUT