-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.ac
71 lines (53 loc) · 1.4 KB
/
configure.ac
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
AC_PREREQ([2.54])
AC_INIT([corn], [0.0.0], [nick@incise.org])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([corn/main.c])
AC_PREFIX_DEFAULT([/usr/local])
test "$prefix" = "NONE" && prefix=$ac_default_prefix
AC_PROG_CC
AC_C_CONST
AC_C_INLINE
AC_PROG_INSTALL
AM_GNU_GETTEXT_VERSION(0.11.5)
AM_GNU_GETTEXT([external])
AC_CHECK_HEADERS(errno.h locale.h signal.h stdarg.h stdlib.h string.h sys/stat.h sys/types.h)
PKG_CHECK_MODULES(XINE, [libxine >= 1.0.0])
AC_SUBST(XINE_CFLAGS)
AC_SUBST(XINE_LIBS)
PKG_CHECK_MODULES(GLIB, [glib-2.0])
AC_SUBST(GLIB_CFLAGS)
AC_SUBST(GLIB_LIBS)
PKG_CHECK_MODULES(GTHREAD, [gthread-2.0])
AC_SUBST(GTHREAD_CFLAGS)
AC_SUBST(GTHREAD_LIBS)
PKG_CHECK_MODULES(DBUS_GLIB, [dbus-glib-1])
AC_SUBST(DBUS_GLIB_CFLAGS)
AC_SUBST(DBUS_GLIB_LIBS)
PKG_CHECK_MODULES(UNIQUE, [unique-1.0])
AC_SUBST(UNIQUE_CFLAGS)
AC_SUBST(UNIQUE_LIBS)
PKG_CHECK_MODULES(GIO, [gio-2.0])
AC_SUBST(GIO_CFLAGS)
AC_SUBST(GIO_LIBS)
PKG_CHECK_MODULES(SQLITE, [sqlite3])
AC_SUBST(SQLITE_CFLAGS)
AC_SUBST(SQLITE_LIBS)
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
po/Makefile.in
corn/Makefile
])
AM_MAINTAINER_MODE
AC_ARG_ENABLE([debug],
[ --enable-debug enable debugging],
[], [enable_debug="no"])
CFLAGS="-std=gnu99 -Wall"
if test "$enable_debug" = "yes"; then
CFLAGS="$CFLAGS -ggdb -fno-inline"
else
CFLAGS="$CFLAGS -Os"
fi
AC_OUTPUT
AC_MSG_RESULT
AC_MSG_RESULT([configure complete, now type \"make\"])