-# LB_PATH_LIBSYSIO
-#
-# Handle internal/external libsysio
-#
-AC_DEFUN([LB_PATH_LIBSYSIO], [
-AC_MSG_CHECKING([location of libsysio])
-AC_ARG_WITH([sysio],
- AC_HELP_STRING([--with-sysio=path],
- [set path to libsysio source (default is included libsysio)]),
- [], [
- AS_IF([test "x$lb_target_os" = xlinux],
- [with_sysio="yes"],
- [with_sysio="no"])
- ])
-AS_IF([test "x$with_sysio" = xyes], [
- AC_MSG_RESULT([internal])
- LB_CHECK_FILE([$srcdir/libsysio/src/rmdir.c], [], [
- AC_MSG_ERROR([A complete internal libsysio was not found.])
- ])
- LIBSYSIO_SUBDIR="libsysio"
- SYSIO="$PWD/libsysio"
- ], [test "x$with_sysio" = xno], [
- AC_MSG_RESULT([disabled])
- ], [
- AC_MSG_RESULT([$with_sysio])
- LB_CHECK_FILE([$with_sysio/lib/libsysio.a], [], [
- AC_MSG_ERROR([A complete (built) external libsysio was not found.])
- ])
- LIBSYSIO_SUBDIR=""
- SYSIO=$with_sysio
- with_sysio="yes"
- ])
-enable_sysio=$with_sysio
-# We have to configure even if we don't build here for make dist to work
-AC_CONFIG_SUBDIRS([libsysio])
-]) # LB_PATH_LIBSYSIO
-
-#