8
8
AC_CONFIG_HEADER([config.h])
15
12
AC_ARG_WITH([libpath],
16
AS_HELP_STRING([--with-libpath@<:@=LIBPATH@:>@],
17
[path list where library might be located [[default=$pkglibdir]]]),
18
[ac_cv_libpath=$withval
19
case "$ac_cv_libpath" in
20
"") AC_MSG_ERROR([invalid libpath specified]) ;;
21
*) libpath="$ac_cv_libpath" ;;
23
[ac_cv_libpath=$libdir/$PACKAGE_NAME
24
libpath="$ac_cv_libpath"])
13
[AS_HELP_STRING([--with-libpath@<:@=LIBPATH@:>@],
14
[path list where library might be located @<:@default=$pkglibdir@:>@])],
15
[with_libpath=$withval],
16
[with_libpath=$libdir/$PACKAGE_NAME])
17
AS_IF([test "x$with_libpath" = x],
18
[AC_MSG_FAILURE([invalid libpath specified])])
19
AC_SUBST(libpath, $with_libpath)
27
21
# Checks for programs.
71
83
AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK
94
canonicalize_file_name \
121
get_current_dir_name \
192
AC_FUNC_READLINK_ARGTYPES
193
AC_FUNC_READLINKAT_ARGTYPES
194
AC_FUNC_SCANDIR_ARGTYPES
195
AC_FUNC_SCANDIR64_ARGTYPES
86
AC_CHECK_FUNCS(m4_normalize([
112
canonicalize_file_name
213
m4_foreach_w([function], [bind connect],
214
[AC_CHECK_FUNC_ARGTYPES(function,
215
[], [sys/types.h sys/socket.h],
216
[[int], [int _], [const struct sockaddr *_], [socklen_t _]],
219
[[__CONST_SOCKADDR_ARG _], [const struct sockaddr *_]],
222
m4_foreach_w([function], [getpeername getsockname],
223
[AC_CHECK_FUNC_ARGTYPES(function,
224
[], [sys/types.h sys/socket.h],
225
[[int], [int _], [struct sockaddr *_], [socklen_t _]],
228
[[__SOCKADDR_ARG _], [struct sockaddr *_]],
229
[[socklen_t *__restrict _], [socket_t *_]])])
231
AC_CHECK_FUNC_ARGTYPES([fts_open],
232
[], [sys/types.h sys/stat.h fts.h],
233
[[FTS *], [char * const *_], [int], [int (*_)(const FTSENT **, const FTSENT **)]],
237
[[int (*_)(const FTSENT * const *, const FTSENT * const *)], [int (*_)(const FTSENT **, const FTSENT **)]])
239
AC_CHECK_FUNC_ARGTYPES([readlink],
241
[[ssize_t], [const char *_], [char *_], [size_t _]],
245
[[size_t _], [int _]])
247
AC_CHECK_FUNC_ARGTYPES([scandir],
249
[[int], [const char *_], [struct dirent ***_], [int(*_)(const struct dirent *)], [int(*_)(const void *,const void *)]],
252
[[struct dirent ***_]],
253
[[int(*_)(const struct dirent *)], [int(*_)(struct dirent *)]],
254
[[int(*_)(const struct dirent **, const struct dirent **)], [int(*_)(const void *,const void *)]])
256
AC_CHECK_FUNC_ARGTYPES([scandir64],
258
[[int], [const char *_], [struct dirent64 ***_], [int(*_)(const struct dirent64 *)], [int(*_)(const void *,const void *)]],
261
[[struct dirent64 ***_]],
262
[[int(*_)(const struct dirent64 *)], [int(*_)(struct dirent64 *)]],
263
[[int(*_)(const struct dirent64 **, const struct dirent64 **)], [int(*_)(const void *,const void *)]])
265
AC_CONFIG_FILES(m4_normalize([