summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJeff Layton <jlayton@samba.org>2012-12-06 07:17:17 -0500
committerJeff Layton <jlayton@samba.org>2012-12-06 07:18:13 -0500
commit53894f4e2cb4d15fedf0612e9a4bd47a537284b3 (patch)
tree357d26d30f7304207f1f0047dcde4f95e0547fa1 /configure.ac
parent2584e62c06dbea59bbd6a001040d7780959c8358 (diff)
downloadcifs-utils-53894f4e2cb4d15fedf0612e9a4bd47a537284b3.tar.gz
cifs-utils-53894f4e2cb4d15fedf0612e9a4bd47a537284b3.tar.bz2
cifs-utils-53894f4e2cb4d15fedf0612e9a4bd47a537284b3.zip
cifs-utils: only link in -lrt to binaries that need it
...which is really only mount.cifs. Cc: Björn Jacke <bj@sernet.de> Signed-off-by: Jeff Layton <jlayton@samba.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 78acd43..b6791ab 100644
--- a/configure.ac
+++ b/configure.ac
@@ -94,9 +94,10 @@ AC_CHECK_FUNCS(clock_gettime, [], [
AC_DEFINE(HAVE_CLOCK_GETTIME, 1)
AC_DEFINE(HAVE_CLOCK_GETTIME,1,
[Whether the clock_gettime func is there])
- LIBS="$LIBS -lrt"
+ RT_LDADD="-lrt"
])
])
+AC_SUBST(RT_LDADD)
# Checks for header files.
AC_CHECK_HEADERS([arpa/inet.h ctype.h fcntl.h inttypes.h limits.h mntent.h netdb.h stddef.h stdint.h stdbool.h stdlib.h stdio.h errno.h string.h strings.h sys/mount.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h], , [AC_MSG_ERROR([necessary header(s) not found])])