/[svn]/liblscp/trunk/configure.ac
ViewVC logotype

Contents of /liblscp/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3036 - (show annotations) (download)
Thu Nov 3 09:08:44 2016 UTC (2 years, 9 months ago) by capela
File size: 2093 byte(s)
* Sync to upstream git head.
1 # Process this file with autoconf to produce a configure script.
2 AC_INIT(src/client.c)
3 AC_CONFIG_HEADERS([src/config.h])
4 AC_CONFIG_MACRO_DIR([.m4])
5
6 AM_INIT_AUTOMAKE(liblscp, 0.5.7.3)
7
8 #------------------------------------------------------------------------------------
9 # Rules for library version information:
10 #
11 # 1. Start with version information of `0:0:0' for each libtool library.
12 # 2. Update the version information only immediately before a public release of
13 # your software. More frequent updates are unnecessary, and only guarantee
14 # that the current interface number gets larger faster.
15 # 3. If the library source code has changed at all since the last update, then
16 # increment revision (`c:r:a' becomes `c:r+1:a').
17 # 4. If any interfaces have been added, removed, or changed since the last update,
18 # increment current, and set revision to 0.
19 # 5. If any interfaces have been added since the last public release, then increment
20 # age.
21 # 6. If any interfaces have been removed since the last public release, then set age
22 # to 0.
23
24 SHARED_VERSION_INFO="6:1:0"
25
26 AC_SUBST(SHARED_VERSION_INFO)
27
28 # Checks for programs.
29 AC_PROG_CC
30 AC_LIBTOOL_WIN32_DLL
31 AC_PROG_LIBTOOL
32 AM_PROG_LIBTOOL
33
34 # Checks for header files.
35 AC_HEADER_STDC
36 AC_CHECK_HEADERS(stdlib.h string.h netdb.h arpa/inet.h netinet/tcp.h netinet/in.h sys/socket.h unistd.h)
37
38 # Checks for typedefs, structures, and compiler characteristics.
39 AC_C_CONST
40 AC_TYPE_SIZE_T
41
42 # Checks for library functions.
43 AC_CHECK_FUNCS(strdup strtok_r memset memmove socket connect bind listen setsockopt getsockopt getsockname gethostbyname)
44
45 case $host in
46 *mingw*|*cygwin*) windows=yes ;;
47 *) windows=no ;;
48 esac
49 AM_CONDITIONAL(WINDOWS, test "$windows" = "yes")
50
51 # Checks for pthread library.
52 AC_CHECK_LIB(pthread, pthread_create)
53
54 AC_ENABLE_STATIC(no)
55 AC_ENABLE_SHARED(yes)
56
57 # Checks for doxygen.
58 AC_CHECK_PROG(ac_doxygen, doxygen, [doc], [])
59 AC_SUBST(ac_doxygen)
60
61 AC_OUTPUT(Makefile src/Makefile lscp/Makefile examples/Makefile doc/Makefile doc/liblscp.doxygen lscp.pc liblscp.spec lscp/version.h)

  ViewVC Help
Powered by ViewVC