]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/external/libmar/configure.ac
Add libmar to build update tools to the repo.
[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.68])
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
31 # Checks for header files.
32 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])
33
34 # Checks for typedefs, structures, and compiler characteristics.
35 AC_TYPE_INT64_T
36 AC_TYPE_SIZE_T
37 AC_TYPE_UINT32_T
38 AC_TYPE_UINT64_T
39
40 # Checks for library functions.
41 AC_FUNC_FSEEKO
42 AC_FUNC_MALLOC
43 AC_FUNC_REALLOC
44 AC_CHECK_FUNCS([memset mkdir strdup strrchr])
45
46 AC_CONFIG_FILES([Makefile
47                  src/Makefile
48                  tool/Makefile])
49 AC_OUTPUT