| 1 | # -*- Autoconf -*- |
| 2 | # Process this file with autoconf to produce a configure script. |
| 3 | |
| 4 | AC_PREREQ(2.57) |
| 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]) |
| 8 | AC_PROG_LIBTOOL |
| 9 | |
| 10 | # Checks for programs. |
| 11 | AC_PROG_CC |
| 12 | |
| 13 | # Checks for libraries. |
| 14 | # MD : here or at the Makefile level ? |
| 15 | #AC_CHECK_LIB([popt], [poptGetNextOpt]) |
| 16 | #AC_CHECK_LIB([gmodule-2.0], [g_module_open]) |
| 17 | #AC_CHECK_LIB([dl], [dlopen]) |
| 18 | #AC_CHECK_LIB([glib-2.0], [g_malloc]) |
| 19 | |
| 20 | # Checks for header files. |
| 21 | AC_HEADER_STDC |
| 22 | AC_CHECK_HEADERS([fcntl.h stdlib.h string.h sys/time.h unistd.h]) |
| 23 | |
| 24 | # Checks for typedefs, structures, and compiler characteristics. |
| 25 | AC_HEADER_STDBOOL |
| 26 | AC_C_CONST |
| 27 | AC_C_INLINE |
| 28 | AC_TYPE_OFF_T |
| 29 | AC_TYPE_SIZE_T |
| 30 | AC_HEADER_TIME |
| 31 | |
| 32 | # Checks for library functions. |
| 33 | AC_FUNC_ERROR_AT_LINE |
| 34 | AC_FUNC_MALLOC |
| 35 | AC_FUNC_SELECT_ARGTYPES |
| 36 | AC_CHECK_FUNCS([select]) |
| 37 | |
| 38 | #CPPFLAGS="$CPPFLAGS -I" |
| 39 | |
| 40 | lttplugindir="${libdir}/ltt/plugins" |
| 41 | AC_SUBST(lttplugindir) |
| 42 | |
| 43 | AC_CONFIG_FILES([Makefile |
| 44 | lttv/Makefile |
| 45 | lttv/plugins/Makefile]) |
| 46 | AC_OUTPUT |