1 dnl Process this file with autoconf to produce a configure script.
2 AC_INIT(libstringprep, 0.0.1, bug-libstringprep@josefsson.org)
3 AC_CONFIG_SRCDIR(stringprep.h.in)
5 # Interfaces removed: CURRENT++, AGE=0, REVISION=0
6 # Interfaces added: CURRENT++, AGE++, REVISION=0
7 # No interfaces changed: REVISION++
16 AM_CONFIG_HEADER(config.h)
18 # Checks for programs.
28 AM_MISSING_PROG(PERL, perl, $missing_dir)
31 # Checks for header files.
33 AC_CHECK_HEADERS(stdio.h stdarg.h sys/types.h stdlib.h string.h unistd.h \
36 # Checks for typedefs, structures, and compiler characteristics.
40 # Checks for library functions.
41 AC_CHECK_FUNCS([memset strchr strdup])
43 # Check if locale stuff works
44 AC_CACHE_CHECK([if setlocale() and nl_langinfo() works],
52 setlocale(LC_CTYPE, "");
53 cs = nl_langinfo(CODESET);
57 ac_cv_locale_works=yes,
58 ac_cv_locale_works=no,
59 ac_cv_locale_works=no)
61 if test "$ac_cv_locale_works" = "yes"; then
62 AC_DEFINE(LOCALE_WORKS, 1, [Define if setlocale() and nl_langinfo() works.])
65 AC_CONFIG_FILES([Makefile libstringprep.pc stringprep.h])