-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.in
78 lines (60 loc) · 2.52 KB
/
configure.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
dnl Process this file with autoconf to produce a configure script.
dnl AC_INIT(src/main.c)
AC_INIT(gnome-inm-forecast,0.9.0,[[email protected]])
dnl Every other copy of the package version number gets its value from here
AM_INIT_AUTOMAKE(gnome-inm-forecast, 0.9.0)
dnl create a config.h file (Automake will add -DHAVE_CONFIG_H)
AM_CONFIG_HEADER(src/config.h)
dnl *************************************************
dnl gettext support
dnl *************************************************
GETTEXT_PACKAGE=gnome-inm-forecast
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS'])
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Define to the Gettext package name])
ALL_LINGUAS="`cat "$srcdir/po/LINGUAS" | grep -v '^#'`"
AM_GLIB_GNU_GETTEXT
AC_PROG_INTLTOOL
AC_DEFINE([PACKAGE_LOCALE_DIR],[${ac_default_prefix}/${DATADIRNAME}/locale],[Description])
dnl Set PACKAGE_LOCALE_DIR in config.h.
if test "x${prefix}" = "xNONE"; then
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${ac_default_prefix}/${DATADIRNAME}/locale")
else
AC_DEFINE_UNQUOTED(PACKAGE_LOCALE_DIR, "${prefix}/${DATADIRNAME}/locale")
fi
AH_TEMPLATE([PACKAGE_DIR],[])
AC_DEFINE([PACKAGE_DIR],["/usr/share/gnome-inm-forecast/"])
AH_TEMPLATE([PIXMAPS_DIR],[])
AC_DEFINE([PIXMAPS_DIR],["/usr/share/gnome-inm-forecast/pixmaps/"])
AM_GCONF_SOURCE_2
AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
if test x"$GCONFTOOL" = xno; then
AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf])
fi
AC_SUBST(VERSION)
ISODATE=`date +%Y-%m-%d`
AC_SUBST(ISODATE)
dnl Checks for programs.
AC_PROG_INSTALL
AC_PROG_CC
dnl Checks for libraries.
PKG_CHECK_MODULES(GTK,[gtk+-2.0 >= 2.8])
dnl PKG_CHECK_MODULES(LIBXML,[libxml-2.0 >= 2.6])
PKG_CHECK_MODULES(LIBPANELAPPLET,[libpanelapplet-2.0 >= 2.6])
PKG_CHECK_MODULES(LIBGLADE,[libglade-2.0 >= 2.6])
dnl PKG_CHECK_MODULES(LIBGCONF,[gconf >= 1.0])
PKG_CHECK_MODULES(LIBGVFS,[gnome-vfs-2.0 >= 0.21])
dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h sys/param.h sys/time.h time.h sys/mkdev.h sys/sysmacros.h string.h memory.h fcntl.h dirent.h sys/ndir.h ndir.h alloca.h locale.h )
AC_HEADER_MAJOR
dnl AC_FUNC_ALLOCA
AC_STRUCT_TM
AC_STRUCT_ST_BLOCKS
AC_FUNC_CLOSEDIR_VOID
dnl AC_CHECK_FUNCS(mkfifo)
dnl AC_CHECK_FUNC(mknod)
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for library functions.
AC_OUTPUT(Makefile gnome-inm-forecast.lsm gnome-inm-forecast.spec src/Makefile po/Makefile.in)