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

Contents of /liblscp/trunk/configure.ac

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC