-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
46 lines (37 loc) · 1.07 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.59])
AC_INIT([statfs-faker], [0.99], [https://github.com/fumiyas/linux-statfs-faker])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([statfs-faker], [chmod +x statfs-faker])
# Checks for programs.
AC_PROG_CC
AC_DISABLE_STATIC
AC_PROG_LIBTOOL
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
#
# Platform specific setup
#
#############################
AC_CANONICAL_HOST
# Check for which host we are on and setup a few things
# specifically based on the host
case $host_os in
darwin*)
AC_SUBST(LD_PRELOAD, DYLD_INSERT_LIBRARIES)
AC_SUBST(DYLD_FORCE_FLAT_NAMESPACE, DYLD_FORCE_FLAT_NAMESPACE)
AC_SUBST(SHARED_LIB_EXT, dylib)
;;
*)
AC_SUBST(LD_PRELOAD, LD_PRELOAD)
AC_SUBST(DYLD_FORCE_FLAT_NAMESPACE, '')
AC_SUBST(SHARED_LIB_EXT, so)
;;
esac
AC_CONFIG_FILES([Makefile])
AC_OUTPUT