]> andersk Git - libfaim.git/blame - configure.in
Oops.
[libfaim.git] / configure.in
CommitLineData
dd60ff8b 1dnl Process this file with autoconf to produce a configure script.
2AC_INIT(src/login.c)
3AM_INIT_AUTOMAKE(libfaim, 0.99.1)
4
60c74d0f 5AC_PREFIX_DEFAULT(/usr)
dd60ff8b 6AM_CONFIG_HEADER(include/libfaim_config.h)
7
8dnl Checks for programs.
9AC_PROG_CC
10AC_PROG_CXX
11AC_PROG_INSTALL
12AC_PROG_LN_S
13AC_PROG_MAKE_SET
14AC_PROG_RANLIB
15AM_PROG_LIBTOOL
16
17dnl Checks for libraries.
18dnl Replace `main' with a function in -lfaim:
19AC_CHECK_LIB(faim, aim_sessioninit)
20dnl Replace `main' with a function in -lpcap:
21dnl AC_CHECK_LIB(pcap, main)
22
7daf4a38 23LIBTOOL="$LIBTOOL --silent"
24
646c6b52 25AC_ARG_ENABLE(debug, [ --disable-debug compile without debugging options],enable_debug=no,enable_debug=yes)
26
27if test "$enable_debug" = yes ; then
28 CFLAGS="$CFLAGS -Wall -g"
29fi
30
31AC_SUBST(CFLAGS)
32
dd60ff8b 33dnl Checks for header files.
34AC_HEADER_STDC
35AC_HEADER_SYS_WAIT
36AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h)
37
38dnl Checks for typedefs, structures, and compiler characteristics.
39AC_C_CONST
40AC_C_INLINE
41AC_TYPE_PID_T
42AC_TYPE_SIZE_T
43AC_HEADER_TIME
44AC_STRUCT_TM
45
46dnl Checks for library functions.
47AC_FUNC_MEMCMP
48AC_TYPE_SIGNAL
49AC_FUNC_STRFTIME
50AC_FUNC_VPRINTF
51AC_CHECK_FUNCS(gethostname gettimeofday select socket strdup strstr strtol uname)
52
53AC_OUTPUT([
54 Makefile
55 include/Makefile
56 src/Makefile
57 utils/Makefile
58 utils/faimtest/Makefile
59])
60
This page took 0.128977 seconds and 5 git commands to generate.