exit 1
fi
+AC_CHECK_FUNC(scandir, HAVE_SCANDIR=yes, HAVE_SCANDIR=no)
+if test "x$HAVE_SCANDIR" = "xyes"; then
+ AC_DEFINE(HAVE_SCANDIR, 1,
+ [Define to 1 if you have scandir function.])
+fi
+
+AC_CHECK_FUNC(alphasort, HAVE_ALPHASORT=yes, HAVE_ALPHASORT=no)
+if test "x$HAVE_ALPHASORT" = "xyes"; then
+ AC_DEFINE(HAVE_ALPHASORT, 1,
+ [Define to 1 if you have alphasort function.])
+fi
+
AC_CONFIG_FILES([Makefile src/Makefile example/Makefile libotf-config])
AC_OUTPUT