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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
# Filename: configure.in
AC_INIT(miav/miav.cc)
AM_INIT_AUTOMAKE( miav, 0.3.5 )
AC_PROG_CXX
AC_PROG_LIBTOOL
AM_PROG_LIBTOOL
AM_CONFIG_HEADER(config.h)
AC_STDC_HEADERS
# Local location of libmiav
CXXFLAGS="$CXXFLAGS -I../libmiav -D__STDC_CONSTANT_MACROS"
LDFLAGS="$LDFLAGS -L../libmiav"
AC_OUTPUT(libmiav/Makefile)
AC_DEFINE_UNQUOTED(ETC, "$prefix/etc/miav", [The path to the config files])
AC_DEFINE_UNQUOTED(PIXMAPS, "$prefix/share/pixmaps", [The path to the pixmap files])
AC_ARG_WITH(debug, [ --with-debug build with debug support])
if test x$with_debug == xyes; then
AC_MSG_WARN([*** Building with debug support!])
CXXFLAGS="$CXXFLAGS -Wall -Werror -g"
fi
AC_ARG_WITH(gui, [ --without-gui build without GUI support])
if test x$with_gui != xno && test -z "$GUI"; then
dnl =====================
dnl Check for QT library
dnl =====================
gw_CHECK_QT
CXXFLAGS="$CXXFLAGS $QT_CXXLAGS"
LDFLAGS="$LDFLAGS $QT_LDADD"
dnl =====================
dnl Check for SDL library
dnl =====================
SDL_VERSION=1.2.0
AM_PATH_SDL($SDL_VERSION,:,AC_MSG_ERROR([*** SDL version $SDL_VERSION not found!]))
CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
LDFLAGS="$LDFLAGS $SDL_LIBS"
dnl ======================
dnl Check for raw1394 library
dnl ======================
AC_CHECK_HEADER(libraw1394/raw1394.h, , AC_MSG_ERROR([*** libraw1394 headers not found!]))
AC_CHECK_LIB(raw1394, raw1394_get_userdata, , AC_MSG_ERROR([*** libraw1394 not found!]))
dnl Make code aware of the gui
AC_DEFINE([USE_GUI], [], [Is defined if the project is configured to compile with gui])
else
AC_MSG_WARN([*** Building without GUI support!])
fi
dnl ======================
dnl Check for pthread library
dnl ======================
AC_CHECK_HEADER(pthread.h, , AC_MSG_ERROR([*** pthread headers not found!]))
AC_CHECK_LIB(pthread, sem_init, , AC_MSG_ERROR([*** libpthread not found!]))
dnl ======================
dnl Check for dv library
dnl ======================
AC_CHECK_HEADER(libdv/dv.h, , AC_MSG_ERROR([*** libdv headers not found!]))
AC_CHECK_LIB(dv, dv_decode_full_frame, , AC_MSG_ERROR([*** libdv not found!]))
dnl ======================
dnl Check for Jpeg library
dnl ======================
AC_CHECK_HEADER(jpeglib.h, , AC_MSG_ERROR([*** libJpeg not found!]))
AC_CHECK_LIB(jpeg, jpeg_start_compress, , AC_MSG_ERROR([*** libJpeg not found!]))
dnl ======================
dnl Check for Fame library
dnl ======================
AC_CHECK_HEADER(fame.h, , AC_MSG_ERROR([*** libFAME include files not found!]))
AC_CHECK_LIB(fame, fame_init, , AC_MSG_ERROR([*** libFAME not found!]))
dnl ======================
dnl Check for Lame library
dnl ======================
AC_CHECK_HEADER(lame/lame.h, , AC_MSG_ERROR([*** libLAME (libmp3lame) include files not found!]))
AC_CHECK_LIB(mp3lame, lame_init, , AC_MSG_ERROR([*** libLAME (libmp3lame) not found!]))
dnl ======================
dnl Check for the ffmpeg library
dnl ======================
AC_CHECK_HEADER(ffmpeg/avformat.h, , AC_MSG_ERROR([*** ffmpeg (avformat) include files not found!]))
AC_CHECK_HEADER(ffmpeg/avcodec.h, , AC_MSG_ERROR([*** ffmpeg (avcodec) include files not found!]))
AC_CHECK_LIB(avformat, av_register_all, , AC_MSG_ERROR([*** ffmpeg (avformet) not found!]))
AC_CHECK_LIB(avcodec, avcodec_decode_video, , AC_MSG_ERROR([*** ffmpeg (avcodec) not found!]))
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(CXXFLAGS)
AC_SUBST(LDFLAGS)
AC_OUTPUT(
Makefile
miavd/Makefile
miav/Makefile
tools/Makefile
etc/Makefile
pixmaps/Makefile
man/Makefile)
|