Updated Changelog
[centerim/davrieb.git] / libicq2000 / configure.ac
blob70d89f3b798715050b14cd7a1744032b423e8b3b
1 AC_INIT(aclocal.m4)
2 AM_INIT_AUTOMAKE(libicq2000, 0.1)
4 AM_CONFIG_HEADER(config.h)
6 AC_PROG_CC
7 AC_PROG_CXX
8 AC_PROG_CPP
9 AC_PROG_RANLIB
11 AC_STRUCT_TIMEZONE
13 AC_LANG_SAVE
14 AC_LANG_CPLUSPLUS
16 AC_CHECK_HEADERS([vector iostream fstream string algorithm list memory iterator exception utility],,
17   AC_MSG_ERROR([You need to have the libstdc++ headers installed]))
19 AC_CHECK_HEADERS([hash_map strstream ext/hash_map sstream],,)
21 AC_CHECK_HEADERS([ext/hash_map],,
22   [AC_CHECK_HEADERS(hash_map,,
23     AC_MSG_ERROR([Your libstdc++ installation does not have the extra hash classes]))])
25 AC_CHECK_HEADERS(sstream,,
26   [AC_CHECK_HEADERS(strstream,,
27     AC_MSG_ERROR([Your libstdc++ doesn't have the sstream or strstream classes]))])
29 AC_TRY_COMPILE([
30     #include <sys/types.h>
31     #include <sys/socket.h>
32 ],[ socklen_t foo; ], ac_cv_c_socklen_t=yes, ac_cv_c_socklen_t=no)
34 if test $ac_cv_c_socklen_t = no; then
35   AC_DEFINE(socklen_t, int, [Define type of socklen_t for systems missing it])
38 AC_LANG_RESTORE
40 AC_OUTPUT(Makefile libicq2000/Makefile src/Makefile)