9
|
1 AC_PREREQ(2.59)
|
13
|
2 AC_INIT(sm-archive,1.5,carl@five-ten-sg.com)
|
9
|
3 AC_CONFIG_SRCDIR([config.h.in])
|
|
4 AC_CONFIG_HEADER([config.h])
|
|
5
|
|
6 AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION)
|
1
|
7
|
9
|
8 # Checks for programs.
|
15
|
9 AC_PATH_PROGS(BASH, bash)
|
9
|
10 AC_PROG_CXX
|
|
11 AC_PROG_CC
|
|
12 AC_PROG_CPP
|
|
13 AC_PROG_INSTALL
|
|
14 AC_PROG_LN_S
|
|
15 AC_PROG_MAKE_SET
|
|
16 AC_PROG_RANLIB
|
1
|
17
|
9
|
18 # Checks for header files.
|
|
19 AC_HEADER_SYS_WAIT
|
|
20 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h sys/ioctl.h sys/socket.h syslog.h unistd.h])
|
1
|
21
|
9
|
22 # Checks for typedefs, structures, and compiler characteristics.
|
|
23 AC_HEADER_STDBOOL
|
|
24 AC_C_CONST
|
|
25
|
|
26 # Checks for library functions.
|
|
27 AC_FUNC_FORK
|
|
28 AC_FUNC_GETPGRP
|
|
29 AC_HEADER_STDC
|
|
30 AC_FUNC_STAT
|
|
31 AC_CHECK_FUNCS([memset socket strchr strdup strncasecmp strtol daemon])
|
|
32
|
10
|
33 # check for posix threads
|
|
34 ACX_PTHREAD
|
|
35
|
9
|
36 AC_CONFIG_FILES([Makefile
|
|
37 sm-archive.spec
|
|
38 html/Makefile
|
|
39 info/Makefile
|
|
40 man/Makefile
|
|
41 src/Makefile
|
|
42 xml/Makefile
|
|
43 xml/sm-archive])
|
|
44 AC_OUTPUT
|