Add some targets for building tarballs in a hopefully-reproducible way.
[vte.git] / configure.in
1 AC_INIT(configure.in)
2 AM_INIT_AUTOMAKE(vte,`grep ^Version: vte.spec | awk '{print $NF}'`)
3 AM_PROG_LIBTOOL
4 AC_EGREP_CPP(glibc,
5                 [
6                  #include <stdio.h>
7                  #ifdef __GLIBC__
8                  glibc
9                  #endif
10                 ],
11                 AC_DEFINE(_GNU_SOURCE,1,[Use all features.]))
12 # AC_SYS_LARGEFILE
13 AC_PATH_XTRA
14 PKG_CHECK_MODULES(GLIB,[glib-2.0 gobject-2.0])
15 PKG_CHECK_MODULES(GTK, [glib-2.0 gobject-2.0 gdk-pixbuf-2.0 gtk+-2.0])
16 AC_DEFINE(G_DISABLE_DEPRECATED,1,[Disable deprecated glib features.])
17 AC_DEFINE(GDK_DISABLE_DEPRECATED,1,[Disable deprecated gdk features.])
18 AC_DEFINE(GDK_PIXBUF_DISABLE_DEPRECATED,1,[Disable deprecated gdk-pixbuf features.])
19 AC_DEFINE(GTK_DISABLE_DEPRECATED,1,[Disable deprecated gtk features.])
20 AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE",[Package name.])
21 AC_CHECK_FUNCS(getpt grantpt unlockpt ptsname ptsname_r)
22
23 savelibs="$LIBS"
24 LIBS="$GTK_LIBS"
25 havexft=0
26 AC_CHECK_FUNC(XftDrawString32,havexft=1)
27 LIBS="$savelibs"
28 if test x$havexft = x1 ; then
29         AC_CHECK_HEADER(X11/Xft/Xft.h,
30                         [AC_DEFINE(HAVE_XFT,
31                                    1,
32                                    [Whether not Xft is available.])])
33 fi
34 AM_MAINTAINER_MODE
35
36 if test x$USE_MAINTAINER_MODE != x ; then
37         if test x$USE_MAINTAINER_MODE != xno ; then
38                 if test x$GCC != xno ; then
39                         CFLAGS="${CFLAGS} -Wunused"
40                         CFLAGS="${CFLAGS} -Wuninitialized"
41                         CFLAGS="${CFLAGS} -Wimplicit"
42                         CFLAGS="${CFLAGS} -Wstrict-prototypes"
43                         CFLAGS="${CFLAGS} -Wmissing-prototypes"
44                         CFLAGS="${CFLAGS} -Wmissing-declarations"
45                         CFLAGS="${CFLAGS} -Wcast-align"
46                 fi
47                 VTE_DEBUG=1
48         fi
49 fi
50 if test x$VTE_DEBUG = x1 ; then
51         AC_DEFINE(VTE_DEBUG,,[Enable debugging of unrecognized sequences.])
52 fi
53 AM_CONFIG_HEADER(config.h)
54 AC_OUTPUT([Makefile src/Makefile vte.pc])