From f2cddb10fbfbd6c8a29d194affd745e4cc515cd0 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 17 Sep 2001 19:45:29 +0000 Subject: [PATCH] (AC_HEADER_DIRENT): Use AC_SEARCH_LIBS, not AC_CHECK_LIB, so that we don't use -ldir or -lx if we don't need it. --- lib/autoconf/headers.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/autoconf/headers.m4 b/lib/autoconf/headers.m4 index a4a15fe4..2cd3d708 100644 --- a/lib/autoconf/headers.m4 +++ b/lib/autoconf/headers.m4 @@ -241,9 +241,9 @@ ac_header_dirent=$ac_hdr; break]) done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then - AC_CHECK_LIB(dir, opendir, LIBS="$LIBS -ldir") + AC_SEARCH_LIBS(opendir, dir) else - AC_CHECK_LIB(x, opendir, LIBS="$LIBS -lx") + AC_SEARCH_LIBS(opendir, x) fi ])# AC_HEADER_DIRENT