2 # Process this file with autoconf to produce a configure script.
5 AC_INIT([barry-backup], [0.17], [barry-devel@lists.sourceforge.net])
6 #AM_CONFIG_HEADER(config.h)
7 AC_CONFIG_SRCDIR([src/main.cc])
8 AC_CONFIG_HEADERS([config.h:config.h.in])
10 AC_CONFIG_MACRO_DIR([m4])
13 AM_GNU_GETTEXT([external])
14 AM_GNU_GETTEXT_VERSION([0.17])
16 # Checks for programs.
24 PKG_CHECK_MODULES([BARRY], [libbarry-0])
25 PKG_CHECK_MODULES([BARRYBACKUP], [libbarrybackup-0])
26 PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 libglademm-2.4 gthread-2.0])
28 # Carry the special tree build environment variables from parent configure,
29 # just in case user is doing a complete tree build with --enable-gui
30 AC_SUBST(TREE_BUILD_CXXFLAGS)
31 AC_SUBST(TREE_BUILD_LDFLAGS)
33 # Setup gladedir, so src/Makefile.am can use it for the compile
34 # and for the glade file installations. (glade_DATA)
35 gladedir="$datadir/barry/glade/"
38 # Checks for libraries.
39 #AC_CHECK_LIB([IOKit], [main])
40 AC_CHECK_LIB([pthread], [main])
41 #AC_CHECK_LIB([libusb], [libusb_init])
43 # Checks for header files.
46 AC_CHECK_HEADERS([assert.h stdint.h time.h])
48 # Checks for typedefs, structures, and compiler characteristics.
53 # Checks for library functions.
55 AC_PROG_GCC_TRADITIONAL
59 AC_FUNC_SELECT_ARGTYPES
61 AC_CHECK_FUNCS([bzero gettimeofday memset select strcasecmp strchr strerror strtol strtoul])
63 AC_CONFIG_FILES([Makefile