From: handa Date: Fri, 28 May 2004 00:24:05 +0000 (+0000) Subject: Check functions scandir and alphasort. X-Git-Tag: REL-0-9-1~57 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=3a13e09120f6b412d7965b9484f5c992ed61a055;p=m17n%2Flibotf.git Check functions scandir and alphasort. --- diff --git a/configure.ac b/configure.ac index 45c0d7b..c09ca8a 100644 --- a/configure.ac +++ b/configure.ac @@ -64,5 +64,17 @@ if test "x$HAVE_FREETYPE" != "xyes" ; then 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