configure: remove --with-lfs option, but keep the autodetection code

Fixes: a513e65e ("configure: add --with-lfs option")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2022-05-20 14:35:11 +02:00
parent d9dbb57b94
commit a19ce72310

View file

@ -237,17 +237,10 @@ fi
dnl Check for scandir64
AC_MSG_CHECKING(for LFS calls)
lfs=
AC_ARG_WITH(lfs,
AS_HELP_STRING([--with-lfs], [Use LFS calls (default = yes)]),
[ have_lfs="$withval" ], [ have_lfs="yes" ])
HAVE_LIBDL=
if test "$have_lfs" = "yes"; then
AC_TRY_LINK([#include <dirent.h>],
AC_TRY_LINK([#include <dirent.h>],
[struct dirent64 a; ],
[have_lfs=yes],
[have_lfs=no])
fi
if test "$have_lfs" = "yes"; then
AC_MSG_RESULT(yes)
AC_DEFINE([HAVE_LFS], 1, [Have LFS])