summaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-05 04:52:50 +0100
committerGravatar Martin Szulecki2010-01-05 04:52:50 +0100
commite0cf27624accbcd49ff628919a2546685e3136d9 (patch)
tree0009f001df8e971813e363a2d8036caad261d3f0 /configure.ac
downloadideviceinstaller-e0cf27624accbcd49ff628919a2546685e3136d9.tar.gz
ideviceinstaller-e0cf27624accbcd49ff628919a2546685e3136d9.tar.bz2
Commit initial sources
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac48
1 files changed, 48 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..790e004
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,48 @@
1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.61)
5AC_INIT(iphoneinstaller, 1.0.0, nospam@nowhere.com)
6AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip])
7m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
8AC_CONFIG_SRCDIR([src/])
9AC_CONFIG_HEADERS([config.h])
10AC_CONFIG_MACRO_DIR([m4])
11
12# Checks for programs.
13AC_PROG_CC
14AM_PROG_CC_C_O
15AC_PROG_LIBTOOL
16
17# Checks for libraries.
18PKG_CHECK_MODULES(libiphone, libiphone-1.0)
19PKG_CHECK_MODULES(libplist, libplist >= 0.15)
20PKG_CHECK_MODULES(libzip, libzip >= 0.8)
21
22# Checks for header files.
23AC_HEADER_STDC
24AC_CHECK_HEADERS([stdint.h stdlib.h string.h])
25
26# Checks for typedefs, structures, and compiler characteristics.
27AC_C_CONST
28AC_TYPE_SIZE_T
29AC_TYPE_SSIZE_T
30AC_TYPE_UINT16_T
31AC_TYPE_UINT32_T
32AC_TYPE_UINT8_T
33
34# Checks for library functions.
35AC_FUNC_MALLOC
36AC_FUNC_REALLOC
37AC_CHECK_FUNCS([strcasecmp strdup strerror strndup])
38
39AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Werror -g")
40AC_SUBST(GLOBAL_CFLAGS)
41
42m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
43
44AC_OUTPUT([
45Makefile
46src/Makefile
47])
48