| 1 | dnl Process this file with autoconf to produce a configure script. |
|---|
| 2 | AC_INIT(src/forwarder.h) |
|---|
| 3 | |
|---|
| 4 | AC_CANONICAL_SYSTEM |
|---|
| 5 | AC_ARG_PROGRAM |
|---|
| 6 | |
|---|
| 7 | dnl All versioning is done via the following line |
|---|
| 8 | AM_INIT_AUTOMAKE(Licq-Forwarder, 0.66) |
|---|
| 9 | AM_CONFIG_HEADER(config.h) |
|---|
| 10 | |
|---|
| 11 | dnl Chuck #defines for PACKAGE and VERSION into config.h |
|---|
| 12 | AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE") |
|---|
| 13 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION") |
|---|
| 14 | AC_DEFINE_UNQUOTED(INT_VERSION,$INT_VERSION) |
|---|
| 15 | |
|---|
| 16 | dnl Also substitute PACKAGE and VERSION in the AC_OUTPUT files |
|---|
| 17 | AC_SUBST(PACKAGE) |
|---|
| 18 | AC_SUBST(VERSION) |
|---|
| 19 | |
|---|
| 20 | dnl Checks for programs. |
|---|
| 21 | AC_PROG_CC |
|---|
| 22 | AC_PROG_CPP |
|---|
| 23 | AC_PROG_CXX |
|---|
| 24 | AC_PROG_CXXCPP |
|---|
| 25 | LICQ_CXX_FLAGS |
|---|
| 26 | AC_ISC_POSIX |
|---|
| 27 | AC_PROG_MAKE_SET |
|---|
| 28 | AC_PROG_INSTALL |
|---|
| 29 | AC_PATH_PROG(PROG_STRIP,strip,:) |
|---|
| 30 | AC_PATH_PROG(PROG_SIZE,size,:) |
|---|
| 31 | |
|---|
| 32 | dnl libtool checks |
|---|
| 33 | AC_LIBTOOL_DLOPEN |
|---|
| 34 | AC_DISABLE_STATIC |
|---|
| 35 | AM_PROG_LIBTOOL |
|---|
| 36 | |
|---|
| 37 | dnl Checks for header files. |
|---|
| 38 | AC_HEADER_STDC |
|---|
| 39 | AC_CHECK_HEADERS(errno.h dirent.h getopt.h malloc.h pwd.h sys/time.h) |
|---|
| 40 | AC_HEADER_TIME |
|---|
| 41 | AC_SYS_ERRLIST |
|---|
| 42 | AC_CHECK_LICQ |
|---|
| 43 | |
|---|
| 44 | if test "$have_licq_inc" = no; then |
|---|
| 45 | AC_MSG_ERROR([ |
|---|
| 46 | |
|---|
| 47 | I can't find the Licq header files. |
|---|
| 48 | You must unpack this archive into the plugins/ directory off of the |
|---|
| 49 | main Licq source tree. In other words, we should be in |
|---|
| 50 | /some/dir/licq-0.xx/plugins/email-0.xx right now. |
|---|
| 51 | ]) |
|---|
| 52 | fi |
|---|
| 53 | |
|---|
| 54 | |
|---|
| 55 | dnl Checks for library functions. |
|---|
| 56 | #AC_CHECK_LIB(xnet,inet_addr) |
|---|
| 57 | #AC_CHECK_LIB(socket, socket) |
|---|
| 58 | #AC_CHECK_LIB(nsl, gethostbyname) |
|---|
| 59 | AC_CHECK_FUNCS(inet_addr inet_aton strerror) |
|---|
| 60 | |
|---|
| 61 | dnl Switch to C++ mode and check for needed C++ headers |
|---|
| 62 | AC_LANG_SAVE |
|---|
| 63 | AC_LANG_CPLUSPLUS |
|---|
| 64 | |
|---|
| 65 | AC_CHECK_HEADER(vector.h,, |
|---|
| 66 | AC_MSG_ERROR(You need to have the libstdc++ headers installed)) |
|---|
| 67 | |
|---|
| 68 | AC_LANG_RESTORE |
|---|
| 69 | |
|---|
| 70 | AC_OUTPUT( |
|---|
| 71 | src/Makefile |
|---|
| 72 | Makefile) |
|---|