| 1 | dnl Process this file with autoconf to produce a configure script. |
|---|
| 2 | AC_INIT(src/console.h) |
|---|
| 3 | AC_CONFIG_AUX_DIR(admin) |
|---|
| 4 | AC_CANONICAL_SYSTEM |
|---|
| 5 | AC_ARG_PROGRAM |
|---|
| 6 | |
|---|
| 7 | dnl All versioning is done via the following line |
|---|
| 8 | AM_INIT_AUTOMAKE(Licq-Console, 1.3.6) |
|---|
| 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 | |
|---|
| 15 | dnl Also substitute PACKAGE and VERSION in the AC_OUTPUT files |
|---|
| 16 | AC_SUBST(PACKAGE) |
|---|
| 17 | AC_SUBST(VERSION) |
|---|
| 18 | |
|---|
| 19 | dnl Checks for programs. |
|---|
| 20 | AC_PROG_CC |
|---|
| 21 | AC_PROG_CPP |
|---|
| 22 | AC_PROG_CXX |
|---|
| 23 | LICQ_CXX_FLAGS |
|---|
| 24 | LICQ_CXX_WEXTRA |
|---|
| 25 | AC_PROG_CXXCPP |
|---|
| 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 | m4_defun([_LT_AC_LANG_F77_CONFIG], [:]) |
|---|
| 36 | AM_PROG_LIBTOOL |
|---|
| 37 | AC_LIBTOOL_CXX |
|---|
| 38 | LIBTOOL="$LIBTOOL --silent" |
|---|
| 39 | |
|---|
| 40 | dnl Checks for header files. |
|---|
| 41 | AC_HEADER_STDC |
|---|
| 42 | AC_CHECK_HEADERS(errno.h dirent.h locale.h malloc.h pwd.h sys/time.h) |
|---|
| 43 | AC_HEADER_TIME |
|---|
| 44 | LICQ_SYS_ERRLIST |
|---|
| 45 | LICQ_CHECK_LICQ |
|---|
| 46 | AX_BOOST_BASE([1.31.1]) |
|---|
| 47 | |
|---|
| 48 | dnl Checks for library functions. |
|---|
| 49 | AC_CHECK_FUNCS(inet_addr inet_aton strerror) |
|---|
| 50 | |
|---|
| 51 | dnl Switch to C++ mode and check for needed C++ headers |
|---|
| 52 | AC_LANG_SAVE |
|---|
| 53 | AC_LANG_CPLUSPLUS |
|---|
| 54 | |
|---|
| 55 | AC_CHECK_HEADER(vector,, |
|---|
| 56 | AC_MSG_ERROR(You need to have the libstdc++ headers installed)) |
|---|
| 57 | |
|---|
| 58 | AC_LANG_RESTORE |
|---|
| 59 | |
|---|
| 60 | dnl check for ncurses |
|---|
| 61 | AC_CHECK_LIB(ncurses, initscr,, |
|---|
| 62 | AC_MSG_ERROR([ |
|---|
| 63 | |
|---|
| 64 | I can't find the ncurses library. This is needed if you want |
|---|
| 65 | to compile this plugin. Sorry. |
|---|
| 66 | ])) |
|---|
| 67 | |
|---|
| 68 | dnl check for cdk |
|---|
| 69 | AC_CHECK_LIB(cdk, initCDKScreen,, |
|---|
| 70 | AC_MSG_ERROR([ |
|---|
| 71 | |
|---|
| 72 | I can't find the cdk library. This is needed if you want |
|---|
| 73 | to compile this plugin. Sorry. Try to get it from here: |
|---|
| 74 | http://freshmeat.net/projects/libcdk/ |
|---|
| 75 | ])) |
|---|
| 76 | |
|---|
| 77 | AC_OUTPUT( |
|---|
| 78 | src/Makefile \ |
|---|
| 79 | Makefile |
|---|
| 80 | ) |
|---|