Overview
Comment: | Check whether we can use snprintf in our asprintf implementation. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
454129c81de360c0d8df1d0663e91a62 |
User & Date: | js on 2008-12-14 15:00:59 |
Other Links: | manifest | tags |
Context
2008-12-15
| ||
12:29 | This isn't needed anymore. check-in: 59fbfef638 user: js tags: trunk | |
2008-12-14
| ||
15:00 | Check whether we can use snprintf in our asprintf implementation. check-in: 454129c81d user: js tags: trunk | |
11:47 | Nicer output for OFHashes tests. check-in: 7172d2539b user: js tags: trunk | |
Changes
Modified configure.ac from [a943ad1b03] to [b847ffe1b4].
︙ | ︙ | |||
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | AC_CHECK_LIB(objc, sel_getName, [ have_sel_getName="yes" AC_DEFINE(HAVE_SEL_GETNAME, 1, [Whether we have sel_getName])]) test x"$have_sel_get_name" != x"yes" -a x"$have_sel_getName" != x"yes" && \ AC_ERROR(You need either sel_get_name or sel_getName in libobjc!) AC_CHECK_FUNC(asprintf, [ AC_DEFINE(HAVE_ASPRINTF, 1, "Whether we have asprintf")], [ AC_SUBST(ASPRINTF, "asprintf.c")]) AC_MSG_CHECKING(whether we have IPv6 support) AC_TRY_RUN([ #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> | > > > > > > > > > > > > > > > > > > | 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | AC_CHECK_LIB(objc, sel_getName, [ have_sel_getName="yes" AC_DEFINE(HAVE_SEL_GETNAME, 1, [Whether we have sel_getName])]) test x"$have_sel_get_name" != x"yes" -a x"$have_sel_getName" != x"yes" && \ AC_ERROR(You need either sel_get_name or sel_getName in libobjc!) AC_CHECK_FUNC(asprintf, [ have_asprintf="yes" AC_DEFINE(HAVE_ASPRINTF, 1, "Whether we have asprintf")], [ have_asprintf="no" AC_SUBST(ASPRINTF, "asprintf.c")]) AC_MSG_CHECKING(whether snprintf returns something useful) AC_TRY_RUN([ #include <stdio.h> int main() { return (snprintf(NULL, 0, "asd") == 3 ? 0 : 1); }], snprintf_return_useful="yes", snprintf_return_useful="no", snprintf_return_useful="no") AC_MSG_RESULT($snprintf_return_useful) test x"$have_asprintf" != x"yes" -a x"$snprintf_return_useful" != x"yes" && \ AC_MSG_ERROR(No asprintf and no snprintf returning required space!) AC_MSG_CHECKING(whether we have IPv6 support) AC_TRY_RUN([ #include <stdlib.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> |
︙ | ︙ |