| 1 |
AC_INIT(libtirpc, 1.3.5) |
| 2 |
AM_INIT_AUTOMAKE([silent-rules]) |
| 3 |
AM_SILENT_RULES([yes]) |
| 4 |
AC_CONFIG_SRCDIR([src/auth_des.c]) |
| 5 |
AC_CONFIG_MACRO_DIR([m4]) |
| 6 |
AC_PROG_CC |
| 7 |
|
| 8 |
# LT_VERSION_INFO="current:revision:age" |
| 9 |
# |
| 10 |
# From the libtool manual: |
| 11 |
# |
| 12 |
# 1. Start with version information of 0:0:0 for each libtool library. |
| 13 |
# 2. Update the version information only immediately before a public |
| 14 |
# release of your software. More frequent updates are unnecessary, |
| 15 |
# and only guarantee that the current interface number gets larger faster. |
| 16 |
# 3. If the library source code has changed at all since the last update, |
| 17 |
# then increment revision (c:r:a becomes c:r+1:a). |
| 18 |
# 4. If any interfaces have been added, removed, or changed since the last |
| 19 |
# update, increment current, and set revision to 0. |
| 20 |
# 5. If any interfaces have been added since the last public release, |
| 21 |
# then increment age. |
| 22 |
# 6. If any interfaces have been removed since the last public release, |
| 23 |
# then set age to 0. |
| 24 |
# |
| 25 |
# _Never_ try to set the interface numbers so that they correspond to the |
| 26 |
# release number of your package. This is an abuse that only fosters |
| 27 |
# misunderstanding of the purpose of library versions. |
| 28 |
# |
| 29 |
# In addition to these rules, symbol versioning is now in effect. soname |
| 30 |
# changes should be avoided. |
| 31 |
# |
| 32 |
LT_VERSION_INFO="3:0:0" |
| 33 |
AC_SUBST([LT_VERSION_INFO]) |
| 34 |
|
| 35 |
AC_CHECK_HEADER([gssapi/gssapi.h], [HAVE_GSSAPI_H=yes], [HAVE_GSSAPI_H=no]) |
| 36 |
|
| 37 |
AC_ARG_ENABLE(gssapi, |
| 38 |
[AC_HELP_STRING([--disable-gssapi], [Disable GSSAPI support @<:@default=no@:>@])], |
| 39 |
[],[enable_gssapi=yes]) |
| 40 |
AM_CONDITIONAL(GSS, test "x$enable_gssapi" = xyes) |
| 41 |
|
| 42 |
if test "x$enable_gssapi" = xyes; then |
| 43 |
if test "x$HAVE_GSSAPI_H" = xno; then |
| 44 |
AC_MSG_ERROR([gssapi.h not found. Use --disable-gssapi, or install GSS-API.]) |
| 45 |
fi |
| 46 |
AC_CHECK_TOOL([KRB5_CONFIG], [krb5-config], [no]) |
| 47 |
if test "x$KRB5_CONFIG" = xno; then |
| 48 |
AC_MSG_ERROR([krb5-config tool not found. Use --disable-gssapi, or install Kerberos.]) |
| 49 |
fi |
| 50 |
GSSAPI_CFLAGS=`${KRB5_CONFIG} --cflags gssapi` |
| 51 |
GSSAPI_LIBS=`${KRB5_CONFIG} --libs gssapi` |
| 52 |
AC_SUBST([GSSAPI_CFLAGS]) |
| 53 |
AC_SUBST([GSSAPI_LIBS]) |
| 54 |
fi |
| 55 |
|
| 56 |
AC_ARG_ENABLE(authdes, |
| 57 |
[AC_HELP_STRING([--enable-authdes], [Enable AUTH_DES support @<:@default=no@:>@])], |
| 58 |
[],[enable_authdes=no]) |
| 59 |
AM_CONDITIONAL(AUTHDES, test "x$enable_authdes" = xyes) |
| 60 |
if test "x$enable_authdes" != xno; then |
| 61 |
AC_DEFINE(AUTHDES_SUPPORT, 1, [Define if AUTH_DES is support]) |
| 62 |
fi |
| 63 |
|
| 64 |
AC_ARG_ENABLE(ipv6, |
| 65 |
[AC_HELP_STRING([--disable-ipv6], [Disable IPv6 support @<:@default=no@:>@])], |
| 66 |
[],[enable_ipv6=yes]) |
| 67 |
AM_CONDITIONAL(INET6, test "x$enable_ipv6" != xno) |
| 68 |
if test "x$enable_ipv6" != xno; then |
| 69 |
AC_DEFINE(INET6, 1, [Define to 1 if IPv6 is available]) |
| 70 |
fi |
| 71 |
|
| 72 |
AC_ARG_ENABLE(symvers, |
| 73 |
[AC_HELP_STRING([--disable-symvers], [Disable symbol versioning @<:@default=no@:>@])], |
| 74 |
[],[enable_symvers=yes]) |
| 75 |
AM_CONDITIONAL(SYMVERS, test "x$enable_symvers" = xyes) |
| 76 |
|
| 77 |
AC_CANONICAL_BUILD |
| 78 |
# Check for which host we are on and setup a few things |
| 79 |
# specifically based on the host |
| 80 |
case $build_os in |
| 81 |
linux*) |
| 82 |
# Do something specific for linux |
| 83 |
LDFLAG_NOUNDEFINED="-Wl,--no-undefined" |
| 84 |
AC_SUBST(LDFLAG_NOUNDEFINED) |
| 85 |
;; |
| 86 |
*) |
| 87 |
#Default Case |
| 88 |
;; |
| 89 |
esac |
| 90 |
|
| 91 |
|
| 92 |
AC_CONFIG_HEADERS([config.h]) |
| 93 |
AC_PROG_LIBTOOL |
| 94 |
AC_HEADER_DIRENT |
| 95 |
AC_PREFIX_DEFAULT(/usr) |
| 96 |
AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h locale.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h features.h gssapi/gssapi_ext.h]) |
| 97 |
AX_PTHREAD |
| 98 |
AC_CHECK_FUNCS([getrpcbyname getrpcbynumber setrpcent endrpcent getrpcent]) |
| 99 |
|
| 100 |
AC_CONFIG_FILES([Makefile src/Makefile man/Makefile doc/Makefile]) |
| 101 |
AC_OUTPUT(libtirpc.pc) |
| 102 |
|
| 103 |
|