ocfs2-tools/ocfs2-tools-1.2.2.diff

23 lines
737 B
Diff
Raw Normal View History

diff -ur ocfs2-tools-1.2.2.orig/configure.in ocfs2-tools-1.2.2/configure.in
--- ocfs2-tools-1.2.2.orig/configure.in 2006-10-19 19:10:53.000000000 +0200
+++ ocfs2-tools-1.2.2/configure.in 2006-10-21 01:02:31.000000000 +0200
@@ -88,14 +88,17 @@
AC_SUBST(COM_ERR_LIBS)
])
+saved_LDFLAGS="$LDFLAGS"
+LDFLAGS="-lpthread"
UUID_LIBS=
-AC_CHECK_LIB(uuid, uuid_unparse, UUID_LIBS=-luuid)
+AC_CHECK_LIB(uuid, uuid_unparse, UUID_LIBS="-luuid -lpthread")
if test "x$UUID_LIBS" = "x"; then
AC_MSG_ERROR([Unable to find uuid library])
fi
AC_CHECK_HEADER(uuid/uuid.h, :,
AC_MSG_ERROR([Unable to find uuid headers]))
AC_SUBST(UUID_LIBS)
+LDFLAGS="$saved_LDFLAGS"
NCURSES_LIBS=
AC_CHECK_LIB(ncurses, tgetstr, NCURSES_LIBS=-lncurses)