root/tags/console-0_10_991218/console/configure.in

Revision 633, 1.6 kB (checked in by anonymous, 9 years ago)

This commit was manufactured by cvs2svn to create tag
'console-0_10_991218'.

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