Commit e8681945 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

configure: added AC_CHECK_FUNCS([getline])

parent 723851d3
......@@ -23953,6 +23953,17 @@ _ACEOF
fi
done
 
for ac_func in getline
do :
ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
if test "x$ac_cv_func_getline" = xyes; then :
cat >>confdefs.h <<_ACEOF
#define HAVE_GETLINE 1
_ACEOF
fi
done
# ----------------------------------------------------------------------
# Checks for the availability of ANSI-C99 functions
ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "$ac_includes_default
......
......@@ -75,7 +75,8 @@ AC_CHECK_MEMBERS([struct stat.st_blksize])
AC_CHECK_HEADERS(malloc.h)
# ----------------------------------------------------------------------
# Checks for the availability of functions
AC_CHECK_FUNCS(mallinfo)
AC_CHECK_FUNCS([mallinfo])
AC_CHECK_FUNCS([getline])
# ----------------------------------------------------------------------
# Checks for the availability of ANSI-C99 functions
AC_CHECK_DECLS([isnan],,,[AC_INCLUDES_DEFAULT
......
......@@ -10,6 +10,9 @@
/* Define to 1 if you have the <dlfcn.h> header file. */
#undef HAVE_DLFCN_H
/* Define to 1 if you have the `getline' function. */
#undef HAVE_GETLINE
/* Define to 1 if you have the `getpagesize' function. */
#undef HAVE_GETPAGESIZE
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment