2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
6 AM_INIT_AUTOMAKE(LinuxTraceToolkit,0.9.7-29052003)
7 AC_CONFIG_HEADER([config.h])
12 # Checks for programs.
15 # Checks for libraries.
16 AC_CHECK_LIB([popt], [poptGetNextOpt])
17 AC_CHECK_LIB([gmodule-2.0], [g_module_open])
18 AC_CHECK_LIB([dl], [dlopen])
19 AC_CHECK_LIB([glib-2.0], [g_malloc])
21 # Checks for header files.
23 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h glib-2.0/glib.h])
25 # Checks for typedefs, structures, and compiler characteristics.
33 # Checks for library functions.
36 AC_FUNC_SELECT_ARGTYPES
37 AC_CHECK_FUNCS([select])
39 #CPPFLAGS="$CPPFLAGS -I"
41 lttvplugindir="${libdir}/lttv/plugins"
42 AC_SUBST(lttvplugindir)
44 lttlibdir="${libdir}/ltt"
48 DEFAULT_INCLUDES="-I\$(top_srcdir)/include"
49 AC_SUBST(DEFAULT_INCLUDES)
51 lttvincludedir="${includedir}/lttv"
52 AC_SUBST(lttvincludedir)
54 lttincludedir="${includedir}/ltt"
55 AC_SUBST(lttincludedir)
57 AC_CONFIG_FILES([Makefile
60 lttv/modules/gui/Makefile
61 lttv/modules/text/Makefile
63 lttv/plugins/examples/Makefile
68 include/lttv/Makefile])