forked from tihmstar/partialZipBrowser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
39 lines (30 loc) · 845 Bytes
/
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
AC_PREREQ([2.69])
AC_INIT([partialZipBrowser], [1.0], [tihmstar@gmail.com])
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_SRCDIR([pzb/pzb.hpp])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CXX
CXXFLAGS+=" -std=c++11"
AC_CANONICAL_HOST
# Check for operating system
AC_MSG_CHECKING([whether we need platform-specific build settings])
case $host_os in
darwin* )
CXXFLAGS+=" -stdlib=libc++"
;;
esac
AC_PROG_INSTALL
# Checks for libraries.
PKG_CHECK_MODULES(libfragmentzip, libfragmentzip >= 1.0)
# Checks for header files.
AC_CHECK_HEADERS([string.h termios.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_TYPE_SIZE_T
AC_TYPE_UINT32_T
# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([mkdir strstr])
AC_CONFIG_FILES([Makefile pzb/Makefile])
AC_OUTPUT