git-svn-id: http://ltt.polymtl.ca/svn@137 04897980-b3bd-0310-b5e0-8ef037075253
[lttv.git] / ltt / branches / poly / configure.in
CommitLineData
9f14a497 1# -*- Autoconf -*-
2# Process this file with autoconf to produce a configure script.
3
4AC_PREREQ(2.57)
5AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
b0f606e9 6#AC_WITH_LTDL # not needed ?
9f14a497 7AM_INIT_AUTOMAKE(LinuxTraceToolkit,0.9.7-29052003)
abd99409 8AM_CONFIG_HEADER([config.h])
39407106 9AM_PROG_LIBTOOL
b00eda44 10
11AM_PATH_GLIB_2_0(2.0.0, ,AC_MSG_ERROR([glib is required in order to compile LinuxTraceToolkit - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule)
9f14a497 12
13# Checks for programs.
14AC_PROG_CC
15
16# Checks for libraries.
31303917 17AC_CHECK_LIB([popt], [poptGetNextOpt], ,AC_MSG_ERROR([libpopt is required in order to compile LinuxTraceToolkit]) )
9f14a497 18
19# Checks for header files.
20AC_HEADER_STDC
3c18ff33 21AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h])
9f14a497 22
23# Checks for typedefs, structures, and compiler characteristics.
24AC_HEADER_STDBOOL
25AC_C_CONST
26AC_C_INLINE
27AC_TYPE_OFF_T
28AC_TYPE_SIZE_T
29AC_HEADER_TIME
30
31# Checks for library functions.
32AC_FUNC_ERROR_AT_LINE
33AC_FUNC_MALLOC
34AC_FUNC_SELECT_ARGTYPES
35AC_CHECK_FUNCS([select])
36
37#CPPFLAGS="$CPPFLAGS -I"
38
a521ac8f 39lttvplugindir="${libdir}/lttv/plugins"
40AC_SUBST(lttvplugindir)
9f14a497 41
38d7caa6 42lttlibdir="${libdir}/ltt"
43AC_SUBST(lttlibdir)
44
45
b00eda44 46DEFAULT_INCLUDES="-I\$(top_srcdir)/include"
8c4bc8bf 47AC_SUBST(DEFAULT_INCLUDES)
273475ce 48
b00eda44 49#CPPFLAGS="${GLIB_CFLAGS}"
50#AC_SUBST(CPPFLAGS)
51
940dc6d6 52lttvincludedir="${includedir}/lttv"
53AC_SUBST(lttvincludedir)
54
55lttincludedir="${includedir}/ltt"
56AC_SUBST(lttincludedir)
57
9f14a497 58AC_CONFIG_FILES([Makefile
59 lttv/Makefile
830eba15 60 lttv/modules/Makefile
61 lttv/modules/gui/Makefile
62 lttv/modules/text/Makefile
ead838a8 63 lttv/plugins/Makefile
20514643 64 lttv/plugins/examples/Makefile
940dc6d6 65 lttd/Makefile
d7b45e73 66 ltt/Makefile
67 include/Makefile
68 include/ltt/Makefile
69 include/lttv/Makefile])
9f14a497 70AC_OUTPUT
This page took 0.0255649999999999 seconds and 4 git commands to generate.