File: configure.ac

package info (click to toggle)
xdx 2.5.0-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,724 kB
  • ctags: 501
  • sloc: ansic: 5,899; sh: 4,685; perl: 197; makefile: 69; sed: 16
file content (75 lines) | stat: -rw-r--r-- 1,784 bytes parent folder | download | duplicates (2)
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
## Process this file with autoconf to create configure. -*- autoconf -*-

dnl Autoconf 2.67 is in Debian Squeeze.
AC_PREREQ([2.67])

AC_INIT([Xdx],
	[2.5.0],
	[xdxclusterclient-discuss@lists.sourceforge.net],
	[xdx],
	[https://github.com/N0NB/xdx])

AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_HEADERS([include/config.h])
AC_CONFIG_AUX_DIR([build-aux])

AM_CPPFLAGS="${AM_CPPFLAGS} -I\$(top_srcdir)/include"

AM_INIT_AUTOMAKE([-Wall subdir-objects])

m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

AC_USE_SYSTEM_EXTENSIONS
AC_PROG_INSTALL
AC_PROG_CC
AC_LANG_C

dnl Quell AC_COMPILE_IFELSE warnings
AC_GNU_SOURCE

AM_GNU_GETTEXT([external])

dnl Should work with at least the version of gettext in Debian Jessie
AM_GNU_GETTEXT_VERSION([0.19.3])

# autoheader templates for AM_GNU_GETTEXT checks.
AH_TEMPLATE([ENABLE_NLS], [])
AH_TEMPLATE([HAVE_CATGETS], [])
AH_TEMPLATE([HAVE_GETTEXT], [])
AH_TEMPLATE([HAVE_LC_MESSAGES], [])
AH_TEMPLATE([HAVE_STPCPY], [])

# Checks for header files.
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h netdb.h netinet/in.h string.h sys/socket.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST

# Checks for library functions.
AC_FUNC_FORK
AC_TYPE_SIGNAL
AC_FUNC_STAT
AC_CHECK_FUNCS([tzset setlocale putenv alarm bzero gethostbyname inet_ntoa memset mkdir socket strerror])
AC_FUNC_STRFTIME
AC_STRUCT_TM

AX_CFLAGS_WARN_ALL([AM_CFLAGS])

dnl Installed GTK must be at least version 2.24
PKG_CHECK_MODULES([GTK], [gtk+-2.0 >= 2.24.0])
AC_SUBST([GTK_CFLAGS])
AC_SUBST([GTK_LIBS])

dnl Output accumulated flags to the Makefile files.
AC_SUBST([AM_CPPFLAGS])
AC_SUBST([AM_CFLAGS])

AC_CONFIG_FILES([m4/Makefile po/Makefile.in
src/Makefile
Makefile
xdx.1
Xdx.desktop])

AC_OUTPUT