File: configure.in

package info (click to toggle)
yiyantang 0.7.0-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,792 kB
  • sloc: sh: 8,141; ansic: 6,257; makefile: 608; yacc: 318
file content (80 lines) | stat: -rw-r--r-- 1,993 bytes parent folder | download | duplicates (7)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
dnl Process this file with autoconf to produce a configure script.
dnl Standard macros should be in /usr/share/aclocal/.

dnl Always start with AC_INIT with a unique source filename for the project.
AC_INIT(src/yiyantang.c)

dnl Put intermedia things of autoconf to config/ directory.
AC_CONFIG_AUX_DIR(config)
AC_SUBST(ac_aux_dir)
dnl config.h will have PACKAGE,VERSION defined.
AM_CONFIG_HEADER(config.h)

dnl Package and version are set here. 
dnl AC_SUBST(variable) will export the 'variable' to Makefile as @variable@.
AM_INIT_AUTOMAKE(yiyantang, 0.7.0)
AC_SUBST(VERSION)

ISODATE=`date +%Y-%m-%d`
AC_SUBST(ISODATE)
AC_CANONICAL_HOST

AM_MAINTAINER_MODE
dnl AM_ACLOCAL_INCLUDE(macros)

dnl Check for programs.
AC_PROG_INSTALL
AC_PROG_CC
AC_ISC_POSIX

dnl Check for libraries.
AC_SUBST(LIBOBJS)
AC_CHECK_LIB(hz, hz_init, , [AC_MSG_ERROR(
You need libhz as included in autoconvert. Please find autoconvert
from http://www.debian.org/~ygh .)])
AC_CHECK_LIB(util, forkpty, ,[AC_MSG_ERROR(No forkpty found, won't build.)])

dnl Check and define STDC_HEADERS.

dnl Check for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(strings.h unistd.h)
AC_CHECK_HEADERS(hz.h, , AC_MSG_ERROR(You should install libhz.h from autoconvert))

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T

dnl Checks for library functions.

dnl   Check for getopt in standard library
AC_CHECK_FUNCS(getopt_long , , [LIBOBJS="$LIBOBJS getopt.o getopt1.o"])

dnl Installed program can be renamed.
AC_ARG_PROGRAM
AM_PROG_LIBTOOL

ALL_LINGUAS=""
AM_GNU_GETTEXT

dnl Export variables to 'Makefile's as @VARIABLE@.
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)

dnl List files that should be generated by 'configure'.
dnl Normally Makefile from Makefile.in which is from Makefile.am 
dnl by automake.
AC_OUTPUT([
Makefile
src/Makefile
intl/Makefile
po/Makefile.in
doc/Makefile
doc/C/Makefile
doc/zh_CN/Makefile
doc/zh_TW/Makefile
config/Makefile
yiyantang.lsm
yiyantang.spec
])