File: configure.in

package info (click to toggle)
libcapsinetwork 0.2.5-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 892 kB
  • ctags: 65
  • sloc: sh: 7,171; cpp: 345; makefile: 29
file content (60 lines) | stat: -rw-r--r-- 1,699 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
# Process this file with autoconf to produce a configure script.
AC_INIT(src/server.cpp)

# Version info.
LIBCAPSINETWORK_MAJOR_VERSION=0
LIBCAPSINETWORK_MINOR_VERSION=2
LIBCAPSINETWORK_MICRO_VERSION=5

LIBCAPSINETWORK_VERSION=$LIBCAPSINETWORK_MAJOR_VERSION.$LIBCAPSINETWORK_MINOR_VERSION.$LIBCAPSINETWORK_MICRO_VERSION
LIBCAPSINETWORK_VERSION_INFO=`expr $LIBCAPSINETWORK_MAJOR_VERSION + $LIBCAPSINETWORK_MINOR_VERSION`:$LIBCAPSINETWORK_MICRO_VERSION:$LIBCAPSINETWORK_MINOR_VERSION
LIBCAPSINETWORK_VERSION_NUMBER=`expr $LIBCAPSINETWORK_MAJOR_VERSION \* 10000 + $LIBCAPSINETWORK_MINOR_VERSION \* 100 + $LIBCAPSINETWORK_MICRO_VERSION`

AC_SUBST(LIBCAPSINETWORK_MAJOR_VERSION)
AC_SUBST(LIBCAPSINETWORK_MINOR_VERSION)
AC_SUBST(LIBCAPSINETWORK_MICRO_VERSION)
AC_SUBST(LIBCAPSINETWORK_VERSION)
AC_SUBST(LIBCAPSINETWORK_VERSION_INFO)
AC_SUBST(LIBCAPSINETWORK_VERSION_NUMBER)

VERSION=${LIBCAPSINETWORK_VERSION}

AM_INIT_AUTOMAKE(libcapsinetwork, $VERSION)

AM_CONFIG_HEADER(config.h)

# Checks for languages.
AC_LANG_CPLUSPLUS
#AC_LANG(C++)

# Checks for programs.
AC_PROG_CXX
AM_PROG_LIBTOOL

# Checks for libraries.

# Checks for header files.
AC_STDC_HEADERS
AC_CHECK_HEADERS(string cstring)

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.

dnl ** Check for inet_pton
AC_MSG_CHECKING(for inet_pton)
AC_TRY_COMPILE([#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>], [inet_pton(0, (char *)0, (char *)0);],
has_inet_pton=yes, has_inet_pton=no)
if test "$has_inet_pton" = yes; then
    AC_MSG_RESULT(yes)
else
    AC_MSG_RESULT(no)
    AC_DEFINE(USE_INET_ATON,,[we can't use inet_pton()])
fi

AC_OUTPUT([
  Makefile
  src/Makefile
])