Returned spec file Release field to '1' instead of cvs snapshot date.
[barry.git] / gui / configure.ac
blob09d9d321b195fccfb4a87966c463ad330a7bf4b0
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
4 AC_PREREQ(2.59)
5 AC_INIT([barry-backup], [0.1], [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 AM_INIT_AUTOMAKE
11 # Checks for programs.
12 AC_PROG_CC
13 AC_PROG_CXX
14 AC_PROG_MAKE_SET
15 AC_PROG_LIBTOOL
17 AC_LANG([C++])
19 AC_ARG_WITH(libtar,
20         [  --with-libtar=<path>    root path of libtar install],
21         [LIBTAR_CFLAGS="-I$with_libtar/include"
22          LIBTAR_LIBS="-L$with_libtar/lib -ltar"],
23         [echo "Guessing libtar location... may not compile...";
24          LIBTAR_CFLAGS=""
25          LIBTAR_LIBS="-ltar"])
26 AC_SUBST(LIBTAR_CFLAGS)
27 AC_SUBST(LIBTAR_LIBS)
29 AC_ARG_WITH(libz,
30         [  --with-zlib=<path>      root path of zlib install],
31         [LIBZ_CFLAGS="-I$with_libtar/include"
32          LIBZ_LIBS="-L$with_libtar/lib -ltar"],
33         [echo "Guessing zlib location... may not compile...";
34          LIBZ_CFLAGS=""
35          LIBZ_LIBS="-lz"])
36 AC_SUBST(LIBZ_CFLAGS)
37 AC_SUBST(LIBZ_LIBS)
39 PKG_CHECK_MODULES([BARRY], [libbarry-0 libusb])
40 PKG_CHECK_MODULES([GTKMM], [gtkmm-2.4 libglademm-2.4 gthread-2.0])
42 # Carry the special tree build environment variables from parent configure,
43 # just in case user is doing a complete tree build with --enable-gui
44 AC_SUBST(TREE_BUILD_CXXFLAGS)
45 AC_SUBST(TREE_BUILD_LDFLAGS)
47 # Setup gladedir, so src/Makefile.am can use it for the compile
48 # and for the glade file installations. (glade_DATA)
49 gladedir="$datadir/barry/glade/"
50 AC_SUBST(gladedir)
52 # Checks for libraries.
53 #AC_CHECK_LIB([IOKit], [main])
54 AC_CHECK_LIB([pthread], [main])
55 #AC_CHECK_LIB([libusb], [libusb_init])
57 # Checks for header files.
58 AC_HEADER_DIRENT
59 AC_HEADER_STDC
60 AC_CHECK_HEADERS([assert.h stdint.h time.h])
62 # Checks for typedefs, structures, and compiler characteristics.
63 #AC_TYPE_SIZE_T
64 AC_HEADER_TIME
65 AC_STRUCT_TM
67 # Checks for library functions.
68 AC_FUNC_CLOSEDIR_VOID
69 AC_PROG_GCC_TRADITIONAL
70 AC_FUNC_MALLOC
71 AC_FUNC_MKTIME
72 AC_FUNC_REALLOC
73 AC_FUNC_SELECT_ARGTYPES
74 AC_FUNC_STAT
75 AC_CHECK_FUNCS([bzero gettimeofday memset select strcasecmp strchr strerror strtol strtoul])
77 AC_CONFIG_FILES([Makefile
78                  src/Makefile
79                  man/Makefile])
80 AC_OUTPUT