1 |
# Process this file with autoconf to produce a configure script. |
# Process this file with autoconf to produce a configure script. |
2 |
AC_INIT(src/client.c) |
AC_INIT(src/client.c) |
3 |
AM_CONFIG_HEADER(src/config.h) |
AC_CONFIG_HEADERS([src/config.h]) |
4 |
|
AC_CONFIG_MACRO_DIR([.m4]) |
5 |
|
|
6 |
AM_INIT_AUTOMAKE(liblscp, 0.5.5.9) |
AM_INIT_AUTOMAKE(liblscp, 0.6.2) |
7 |
|
|
8 |
#------------------------------------------------------------------------------------ |
#------------------------------------------------------------------------------------ |
9 |
# Rules for library version information: |
# Rules for library version information: |
21 |
# 6. If any interfaces have been removed since the last public release, then set age |
# 6. If any interfaces have been removed since the last public release, then set age |
22 |
# to 0. |
# to 0. |
23 |
|
|
24 |
SHARED_VERSION_INFO="5:0:0" |
SHARED_VERSION_INFO="6:1:1" |
25 |
|
|
26 |
AC_SUBST(SHARED_VERSION_INFO) |
AC_SUBST(SHARED_VERSION_INFO) |
27 |
|
|
28 |
|
# Build version string. |
29 |
|
AC_CACHE_VAL([ac_cv_build_version], [ |
30 |
|
ac_cv_build_version=$(git describe --tags --dirty --abbrev=6 2>/dev/null) |
31 |
|
if test -n "$ac_cv_build_version"; then |
32 |
|
ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/^[[^_]]*[[_v]]//i') |
33 |
|
ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/-g/git./') |
34 |
|
ac_cv_build_version=$(echo $ac_cv_build_version | sed 's/[[_|-]]\+/./g') |
35 |
|
ac_cv_build_version_extra=$(git rev-parse --abbrev-ref HEAD 2>/dev/null) |
36 |
|
if test "x$ac_cv_build_version_extra" != "xmaster"; then |
37 |
|
ac_cv_build_version="$ac_cv_build_version [[$ac_cv_build_version_extra]]" |
38 |
|
fi |
39 |
|
else |
40 |
|
ac_cv_build_version=$PACKAGE_VERSION |
41 |
|
fi |
42 |
|
]) |
43 |
|
ac_build_version="$ac_cv_build_version" |
44 |
|
AC_SUBST(ac_build_version) |
45 |
|
|
46 |
# Checks for programs. |
# Checks for programs. |
47 |
AC_PROG_CC |
AC_PROG_CC |
48 |
|
AC_LIBTOOL_WIN32_DLL |
49 |
AC_PROG_LIBTOOL |
AC_PROG_LIBTOOL |
50 |
AM_PROG_LIBTOOL |
AM_PROG_LIBTOOL |
51 |
|
|
60 |
# Checks for library functions. |
# Checks for library functions. |
61 |
AC_CHECK_FUNCS(strdup strtok_r memset memmove socket connect bind listen setsockopt getsockopt getsockname gethostbyname) |
AC_CHECK_FUNCS(strdup strtok_r memset memmove socket connect bind listen setsockopt getsockopt getsockname gethostbyname) |
62 |
|
|
63 |
|
case $host in |
64 |
|
*mingw*|*cygwin*) windows=yes ;; |
65 |
|
*) windows=no ;; |
66 |
|
esac |
67 |
|
AM_CONDITIONAL(WINDOWS, test "$windows" = "yes") |
68 |
|
|
69 |
# Checks for pthread library. |
# Checks for pthread library. |
70 |
AC_CHECK_LIB(pthread, pthread_create) |
AC_CHECK_LIB(pthread, pthread_create) |
71 |
|
|
76 |
AC_CHECK_PROG(ac_doxygen, doxygen, [doc], []) |
AC_CHECK_PROG(ac_doxygen, doxygen, [doc], []) |
77 |
AC_SUBST(ac_doxygen) |
AC_SUBST(ac_doxygen) |
78 |
|
|
79 |
AC_OUTPUT(Makefile src/Makefile lscp/Makefile examples/Makefile debian/Makefile doc/Makefile doc/liblscp.doxygen lscp.pc liblscp.spec lscp/version.h) |
AC_OUTPUT(Makefile src/Makefile lscp/Makefile examples/Makefile doc/Makefile doc/liblscp.doxygen lscp.pc liblscp.spec lscp/version.h) |
80 |
|
|