gui: change error message so it doesn't ask end users for programming help
[barry.git] / gui / configure.ac
blobcd131e6d0c791a914d26287a64315eb211cc3358
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.61)
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])
9 AC_CONFIG_AUX_DIR([.])
10 AC_CONFIG_MACRO_DIR([m4])
11 AM_INIT_AUTOMAKE
13 AM_GNU_GETTEXT([external])
14 AM_GNU_GETTEXT_VERSION([0.17])
16 # Checks for programs.
17 AC_PROG_CC
18 AC_PROG_CXX
19 AC_PROG_MAKE_SET
20 AC_PROG_LIBTOOL
22 AC_LANG([C++])
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/"
36 AC_SUBST(gladedir)
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.
44 AC_HEADER_DIRENT
45 AC_HEADER_STDC
46 AC_CHECK_HEADERS([assert.h stdint.h time.h])
48 # Checks for typedefs, structures, and compiler characteristics.
49 #AC_TYPE_SIZE_T
50 AC_HEADER_TIME
51 AC_STRUCT_TM
53 # Checks for library functions.
54 AC_FUNC_CLOSEDIR_VOID
55 AC_PROG_GCC_TRADITIONAL
56 AC_FUNC_MALLOC
57 AC_FUNC_MKTIME
58 AC_FUNC_REALLOC
59 AC_FUNC_SELECT_ARGTYPES
60 AC_FUNC_STAT
61 AC_CHECK_FUNCS([bzero gettimeofday memset select strcasecmp strchr strerror strtol strtoul])
63 AC_CONFIG_FILES([Makefile 
64                  po/Makefile.in
65                  src/Makefile
66                  man/Makefile])
67 AC_OUTPUT