-
Notifications
You must be signed in to change notification settings - Fork 30
/
configure.ac
76 lines (60 loc) · 2.43 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
dnl **************************************************************
dnl DARSHAN AUTOCONF SCRIPT
dnl
dnl Process this file with autoconf to produce a configure script.
dnl You may need to use autoheader as well if changing any DEFINEs
AC_PREREQ([2.69])
AC_INIT([Darshan], m4_normalize(m4_include([./darshan.version])),
[darshan-users@lists.mcs.anl.gov],
[darshan],[https://www.mcs.anl.gov/research/projects/darshan])
AC_CONFIG_HEADERS(config.h)
AH_TOP([/*
* Copyright (C) 2015 University of Chicago.
* See COPYRIGHT notice in top-level directory.
*
*/
])
AC_CONFIG_SRCDIR([include/darshan-log-format.h])
AC_CONFIG_AUX_DIR(maint/scripts)
AC_CONFIG_MACRO_DIRS([maint/config])
AM_INIT_AUTOMAKE([1.13 foreign tar-pax])
AM_SILENT_RULES([yes])
AM_MAINTAINER_MODE([enable])
AC_ARG_ENABLE([darshan-runtime],
[AS_HELP_STRING([--disable-darshan-runtime],
[Build without Darshan runtime libraries])],
[enable_darshan_runtime=${enableval}], [enable_darshan_runtime=yes]
)
AM_CONDITIONAL(BUILD_DARSHAN_RUNTIME, [test "x$enable_darshan_runtime" != xno])
AC_ARG_ENABLE([darshan-util],
[AS_HELP_STRING([--disable-darshan-util],
[Build without Darshan utility tools])],
[enable_darshan_util=${enableval}], [enable_darshan_util=yes]
)
AM_CONDITIONAL(BUILD_DARSHAN_UTIL, [test "x$enable_darshan_util" != xno])
dnl allow RUNTIME_CC to override CC for building darshan-runtime
AC_ARG_VAR(RUNTIME_CC, [Compiler to use for darshan-runtime])
ORIG_CC=$CC
if test "x$RUNTIME_CC" != x ; then
CC=$RUNTIME_CC
fi
dnl must configure subpackages even if they are not built
AC_CONFIG_SUBDIRS([darshan-runtime])
dnl allow UTIL_CC to override CC for building darshan-util
AC_ARG_VAR(UTIL_CC, [Compiler to use for darshan-util])
CC=$ORIG_CC
if test "x$UTIL_CC" != x ; then
CC=$UTIL_CC
fi
dnl must configure subpackages even if they are not built
AC_CONFIG_SUBDIRS([darshan-util])
AC_CONFIG_FILES(Makefile)
AC_OUTPUT
echo "------------------------------------------------------------------------------
${PACKAGE_NAME} Version ${PACKAGE_VERSION}
Features: Build Darshan runtime libraries - ${enable_darshan_runtime}
Build Darshan utility tools - ${enable_darshan_util}
Next step: run 'make' to build the library and/or utility tools.
run 'make install' to install Darshan in directory:
${prefix}
------------------------------------------------------------------------------"