]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/external/libmar/configure.ac
Change autoconf required version for libmar's configure.ac
[working/Evergreen.git] / Open-ILS / xul / staff_client / external / libmar / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.61])
5 AC_INIT([libmar], [1.0], [jason@sigio.com])
6 AM_INIT_AUTOMAKE([foreign])
7 AC_CONFIG_SRCDIR([tool/mar.c])
8 AC_CONFIG_HEADER([config.h])
9
10 # Check for MAR_CHANNEL_ID:
11 AC_ARG_WITH([marchannelid],
12 [  --with-marchannelid=channelname    default name for MAR channel (default is blank)],
13 [mar_channel_id=${withval}],
14 [mar_channel_id=])
15 AC_DEFINE_UNQUOTED([MAR_CHANNEL_ID], ["${mar_channel_id}"], [Default MAR_CHANNEL_ID])
16
17 # Check for MOZ_APP_VERSION
18 AC_ARG_WITH([mozappversion],
19 [  --with-mozappversion=appversion    default version for app (default is 19.0.1)],
20 [moz_app_version=${withval}],
21 [moz_app_version="19.0.1"])
22 AC_DEFINE_UNQUOTED([MOZ_APP_VERSION], ["${moz_app_version}"], [Default MOZ_APP_VERSION])
23
24
25 # Checks for programs.
26 AC_PROG_CC
27 AC_PROG_RANLIB
28
29 # Checks for libraries.
30 AC_CHECK_LIB([bz2],[BZ2_bzCompressInit],,AC_MSG_ERROR(*** OpenILS requires libbz2))
31
32 # Checks for header files.
33 AC_CHECK_HEADERS([err.h fcntl.h netinet/in.h stdint.h stdio.h stdlib.h string.h sys/stat.h sys/types.h unistd.h])
34
35 # Checks for typedefs, structures, and compiler characteristics.
36 AC_TYPE_INT64_T
37 AC_TYPE_SIZE_T
38 AC_TYPE_UINT32_T
39 AC_TYPE_UINT64_T
40
41 # Checks for library functions.
42 AC_FUNC_FSEEKO
43 AC_FUNC_MALLOC
44 AC_FUNC_REALLOC
45 AC_CHECK_FUNCS([memset mkdir strdup strrchr])
46
47 AC_CONFIG_FILES([Makefile
48                  src/Makefile
49                  tool/Makefile])
50 AC_OUTPUT