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-06082003)
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 AM_PATH_GTK_2_0(2.0.0, ,AC_MSG_ERROR([gtk is required in order to compile GUI - download it from ftp://ftp.gtk.org/pub/gtk]) , gmodule)
15 # Checks for programs.
18 # Checks for libraries.
19 AC_CHECK_LIB([popt], [poptGetNextOpt], ,AC_MSG_ERROR([libpopt is required in order to compile LinuxTraceToolkit]) )
21 # Checks for header files.
23 AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.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 #CPPFLAGS="${GLIB_CFLAGS}"
54 lttvincludedir="${includedir}/lttv"
55 AC_SUBST(lttvincludedir)
57 lttincludedir="${includedir}/ltt"
58 AC_SUBST(lttincludedir)
60 AC_CONFIG_FILES([Makefile
68 include/lttv/Makefile])
70 # lttv/modules/examples/Makefile
71 # include/ltt/convert/Makefile
72 # lttv/modules/gui/API/Makefile
73 # lttv/modules/gui/Makefile
74 # lttv/modules/text/Makefile
75 # lttv/plugins/Makefile
76 # lttv/plugins/examples/Makefile
77 # lttv/modules/coreGUI/Makefile