2 # Process this file with autoconf to produce a configure script.
5 AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
6 #AC_WITH_LTDL # not needed ?
7 AM_INIT_AUTOMAKE(LinuxTraceToolkit,0.9.7-29052003)
8 AM_CONFIG_HEADER([config.h])
11 AM_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)
13 # Checks for programs.
16 # Checks for libraries.
17 AC_CHECK_LIB([popt], [poptGetNextOpt], ,AC_MSG_ERROR([libpopt is required in order to compile LinuxTraceToolkit]) )
19 # Checks for header files.
21 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h])
23 # Checks for typedefs, structures, and compiler characteristics.
31 # Checks for library functions.
34 AC_FUNC_SELECT_ARGTYPES
35 AC_CHECK_FUNCS([select])
37 #CPPFLAGS="$CPPFLAGS -I"
39 lttvplugindir="${libdir}/lttv/plugins"
40 AC_SUBST(lttvplugindir)
42 lttlibdir="${libdir}/ltt"
46 DEFAULT_INCLUDES="-I\$(top_srcdir)/include"
47 AC_SUBST(DEFAULT_INCLUDES)
49 #CPPFLAGS="${GLIB_CFLAGS}"
52 lttvincludedir="${includedir}/lttv"
53 AC_SUBST(lttvincludedir)
55 lttincludedir="${includedir}/ltt"
56 AC_SUBST(lttincludedir)
58 AC_CONFIG_FILES([Makefile
61 lttv/modules/gui/Makefile
62 lttv/modules/text/Makefile
64 lttv/plugins/examples/Makefile
69 include/lttv/Makefile])