diff options
| author | 2010-01-05 04:52:50 +0100 | |
|---|---|---|
| committer | 2010-01-05 04:52:50 +0100 | |
| commit | e0cf27624accbcd49ff628919a2546685e3136d9 (patch) | |
| tree | 0009f001df8e971813e363a2d8036caad261d3f0 /configure.ac | |
| download | ideviceinstaller-e0cf27624accbcd49ff628919a2546685e3136d9.tar.gz ideviceinstaller-e0cf27624accbcd49ff628919a2546685e3136d9.tar.bz2 | |
Commit initial sources
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 48 |
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 | |||
| 4 | AC_PREREQ(2.61) | ||
| 5 | AC_INIT(iphoneinstaller, 1.0.0, nospam@nowhere.com) | ||
| 6 | AM_INIT_AUTOMAKE([dist-bzip2 no-dist-gzip]) | ||
| 7 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) | ||
| 8 | AC_CONFIG_SRCDIR([src/]) | ||
| 9 | AC_CONFIG_HEADERS([config.h]) | ||
| 10 | AC_CONFIG_MACRO_DIR([m4]) | ||
| 11 | |||
| 12 | # Checks for programs. | ||
| 13 | AC_PROG_CC | ||
| 14 | AM_PROG_CC_C_O | ||
| 15 | AC_PROG_LIBTOOL | ||
| 16 | |||
| 17 | # Checks for libraries. | ||
| 18 | PKG_CHECK_MODULES(libiphone, libiphone-1.0) | ||
| 19 | PKG_CHECK_MODULES(libplist, libplist >= 0.15) | ||
| 20 | PKG_CHECK_MODULES(libzip, libzip >= 0.8) | ||
| 21 | |||
| 22 | # Checks for header files. | ||
| 23 | AC_HEADER_STDC | ||
| 24 | AC_CHECK_HEADERS([stdint.h stdlib.h string.h]) | ||
| 25 | |||
| 26 | # Checks for typedefs, structures, and compiler characteristics. | ||
| 27 | AC_C_CONST | ||
| 28 | AC_TYPE_SIZE_T | ||
| 29 | AC_TYPE_SSIZE_T | ||
| 30 | AC_TYPE_UINT16_T | ||
| 31 | AC_TYPE_UINT32_T | ||
| 32 | AC_TYPE_UINT8_T | ||
| 33 | |||
| 34 | # Checks for library functions. | ||
| 35 | AC_FUNC_MALLOC | ||
| 36 | AC_FUNC_REALLOC | ||
| 37 | AC_CHECK_FUNCS([strcasecmp strdup strerror strndup]) | ||
| 38 | |||
| 39 | AS_COMPILER_FLAGS(GLOBAL_CFLAGS, "-Wall -Wextra -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith -Wwrite-strings -Wswitch-default -Wno-unused-parameter -Werror -g") | ||
| 40 | AC_SUBST(GLOBAL_CFLAGS) | ||
| 41 | |||
| 42 | m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])]) | ||
| 43 | |||
| 44 | AC_OUTPUT([ | ||
| 45 | Makefile | ||
| 46 | src/Makefile | ||
| 47 | ]) | ||
| 48 | |||
