-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathconfigure.ac
68 lines (56 loc) · 1.72 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
dnl Process this file with autoconf to produce a configure script.
AC_INIT([libpaper], [1.1.9])
AC_CONFIG_SRCDIR([configure.ac])
AM_INIT_AUTOMAKE([no-define])
AM_CONFIG_HEADER(config.h)
AM_MAINTAINER_MODE
dnl Check for standard build environment
dnl ====================================
AC_PROG_CC
AC_GNU_SOURCE
AC_PROG_INSTALL
AM_PROG_LIBTOOL
AC_PROG_MAKE_SET
dnl Complier features
dnl =================
AC_C_CONST
dnl set up some substitutions
dnl =========================
PAPERCONF="${sysconfdir}/papersize"
AC_SUBST(PAPERCONF)
AH_TEMPLATE(PAPERCONF, [Default configuration file location])
AC_DEFINE_UNQUOTED(PAPERCONF, "$PAPERCONF")
PAPERCONFVAR=PAPERCONF
AC_SUBST(PAPERCONFVAR)
AH_TEMPLATE(PAPERCONFVAR, [Environment variable that overrides the default configuration file location])
AC_DEFINE_UNQUOTED(PAPERCONFVAR, "$PAPERCONFVAR")
PAPERSIZE=letter
AC_SUBST(PAPERSIZE)
AH_TEMPLATE(PAPERSIZE, [Default paper size])
AC_DEFINE_UNQUOTED(PAPERSIZE, "$PAPERSIZE")
RUNPARTSDIR="${sysconfdir}/libpaper.d"
AC_SUBST(RUNPARTSDIR)
AH_TEMPLATE(RUNPARTSDIR, [Default directory for run-parts])
AC_DEFINE_UNQUOTED(RUNPARTSDIR, "$RUNPARTSDIR")
RUNPARTSDIRVAR=PAPERDIR
AC_SUBST(RUNPARTSDIRVAR)
AH_TEMPLATE(RUNPARTSDIRVAR, [Environment variable that overrides the default directory for run-parts])
AC_DEFINE_UNQUOTED(RUNPARTSDIRVAR, "$RUNPARTSDIRVAR")
PAPERSIZEVAR=PAPERSIZE
AC_SUBST(PAPERSIZEVAR)
AH_TEMPLATE(PAPERSIZEVAR, [Environment variable that overrides the default paper size])
AC_DEFINE_UNQUOTED(PAPERSIZEVAR, "$PAPERSIZEVAR")
AC_CHECK_HEADERS([malloc.h])
dnl Create files
dnl ============
AC_OUTPUT([
Makefile
lib/Makefile
src/Makefile
src/paperconfig
man/Makefile
man/paperconf.1
man/paperconfig.8
man/papersize.5
man/systempapername.3
])