diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-22 12:17:33 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2015-04-23 08:29:45 -0400 |
commit | 489912cad88ff5e13477ae2f19baa93415c981db (patch) | |
tree | 9bf2fb57fab6c56b512e6fa682516cd929450bcc /configure.ac | |
parent | 1a1f4650050b478b217b4e2ef04718ba18f676e4 (diff) | |
download | ti-rpc-489912cad88ff5e13477ae2f19baa93415c981db.tar.gz |
Provide getrpcbynumber and getrpcbyname if those are missing
We enable the config.h again and check if getrpcbynumber and
getrpcbyname exists on the building patform. If it does not exist, then
provide those functions.
This is needed for musl libc.
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 10d17ea..0180801 100644 --- a/configure.ac +++ b/configure.ac @@ -24,14 +24,16 @@ if test "x$enable_ipv6" != xno; then fi AC_PROG_CC -m4_pattern_allow(AM_CONFIG_HEADERS(config.h)) +AC_CONFIG_HEADERS([config.h]) AC_PROG_LIBTOOL AC_HEADER_DIRENT AC_PREFIX_DEFAULT(/usr) 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]) AC_CHECK_LIB([pthread], [pthread_create]) AC_CHECK_LIB([nsl], [yp_get_default_domain]) - +AC_CHECK_FUNCS([getrpcbyname getrpcbynumber]) AC_CONFIG_FILES([Makefile src/Makefile man/Makefile doc/Makefile]) AC_OUTPUT(libtirpc.pc) + + |