aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 14a286b8..dcf62ab9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -104,7 +104,6 @@ AC_REPLACE_FUNCS([ \
closefrom \
explicit_bzero \
fgetln \
- fparseln \
freezero \
getdtablecount \
getprogname \
@@ -454,6 +453,14 @@ else
AC_LIBOBJ(getopt)
fi
+# Look for fparseln in libutil.
+AC_SEARCH_LIBS(fparseln, util, found_fparseln=yes, found_fparseln=no)
+if test "x$found_fparseln" = xyes; then
+ AC_DEFINE(HAVE_FPARSELN)
+else
+ AC_LIBOBJ(fparseln)
+fi
+
# Look for fdforkpty and forkpty in libutil.
AC_SEARCH_LIBS(fdforkpty, util, found_fdforkpty=yes, found_fdforkpty=no)
if test "x$found_fdforkpty" = xyes; then