-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.in
153 lines (135 loc) · 3.94 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
dnl Process this file with autoconf to produce a configure script.
AC_INIT(src/Devices/XVVideo.h)
AC_CONFIG_HEADER(include/config.h)
dnl Checks for programs.
AC_PROG_INSTALL
AC_PROG_MAKE_SET
dnl Checks for library functions.
AC_FUNC_MMAP
AC_CHECK_FUNCS(gettimeofday)
AC_SUBST(LIBPTH)
dnl Checks for header files.
AC_PATH_XTRA
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h)
AC_SUBST(BTTV_HEAD)
AC_SUBST(FRAMEGR_OBJS)
AC_SUBST(EXT_MODULES)
AC_SUBST(DVFILES)
AC_SUBST(DVFIRE_OBJS)
AC_SUBST(VIDERE_OBJS)
AC_SUBST(VIDERE_INC)
AC_SUBST(DVFIRE_APPL)
AC_SUBST(VIDERE_APPL)
AC_SUBST(VIDERE_LIBS)
AC_SUBST(VIDERE_MATL)
AC_SUBST(DVFIRE_LIB)
AC_SUBST(IPPINC)
AC_SUBST(IPPLIBS)
AC_SUBST(IPPOBJS)
AC_SUBST(IPPTOOLS)
AC_SUBST(CXXFLAGS)
AC_SUBST(X_CFLAGS)
AC_SUBST(PROSILICA_OBJS)
AC_SUBST(PROSILICA_INCS)
AC_SUBST(PROSILICA_LIBS)
AC_SUBST(PROSILICA_APPL)
dnl Prosilica GigE section
if test ! -z $PVROOT
then
PROSILICA_OBJS="XVPv.o"
PROSILICA_INCS='-I$(PVROOT)/include'
PROSILICA_LIBS='-L$(PVROOT)/lib/$(PVARCH)'
PROSILICA_APPL="showgig"
fi
dnl DVFirewire section
AC_TRY_CPP([#include <dc1394/control.h>],
DVFIRE_OBJS="XVDig1394.o XVFlea2G.o"
DVFIRE_APPL="showdig"
DVFIRE_LIB="-lraw1394 -ldc1394_control"
DVFILES="v1"
AC_DEFINE(HAVE_DV),)
dnl bttv section
AC_TRY_CPP([#include <linux/videodev2.h>],
FRAMEGR_OBJS=" XVV4L2.o",)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_TYPE_OFF_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_TRY_CPP([#include <linux/shm.h>],AC_DEFINE(HAVE_REMAP),)
dnl Check for video1394_dir
AC_CHECK_FILE("/dev/video1394/0",AC_DEFINE(HAVE_VIDEO1394_DIR),)
AC_CHECK_FILE("/usr/include/dc1394/control.h",AC_DEFINE(HAVE_VIDEO1394_NEW) DVFIRE_LIB="-lraw1394 -ldc1394" DVFILES="v2",)
CXXFLAGS="-O3 -pipe -DDEBUG_LEVEL=0"
dnl Check for IPP
AC_TRY_CPP([#include <$IPPROOT/include/ippi.h>],
IPPINC='-I$(IPPROOT)/include'
IPPLIBS='-L$(IPPROOT)/sharedlib -lippi -lippcc'
IPPOBJS='XVAVI.o'
IPPTOOLS='XVStereoRectify.o'
AC_DEFINE(HAVE_IPP),)
dnl Checks for libraries.
if test ! -z $SVS_PATH
then
VIDERE_OBJS="Videre.o StereoVidere.o"
VIDERE_APPL="showdisp"
VIDERE_MATL="grab_videre.mexglx"
VIDERE_INC='-I$(SVS_PATH)/src'
VIDERE_LIBS='-L$(SVS_PATH)/bin -lsvs -lsvscalc -lsvscap'
fi
AC_CHECK_LIB(pthread, pthread_create,
AC_DEFINE(HAVE_LIBPTHREAD) LIBPTH="-lpthread",,)
AC_CHECK_LIB(png, png_get_copyright,,,)
AC_CHECK_LIB(X11, XOpenDisplay,,,$X_LIBS $X_EXTRA_LIBS)
AC_CHECK_LIB(Xext, XShmAttach,,,
$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS)
AC_CHECK_LIB(Xxf86dga, XF86DGAQueryExtension,,,
$X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS)
AC_CHECK_LIB(Xxf86vm, XF86VidModeQueryExtension,,,
$X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS)
dnl Videre section
AC_OUTPUT(src/Devices/Makefile
include/Makefile src/Consoles/Makefile
src/Images/Makefile
src/Images/Test/Makefile
src/Tools/Test/Makefile
src/Tools/Makefile
src/Tracking/Makefile
src/Tracking/Blobs/Makefile
src/Tracking/Edges/Makefile
src/drivers/tiff-v3.5.5/Makefile
src/drivers/jpeg-6b/Makefile
src/drivers/libdv/Makefile
src/drivers/Makefile
src/Examples/Makefile
Makefile
src/Examples/pong/Makefile
src/Devices/matlab/Makefile
src/Examples/pong2/Makefile
src/Examples/gesture/Makefile
src/Examples/xcalc/Makefile
src/Examples/xgest/Makefile
src/Examples/testing/Makefile
src/Examples/Itertest/Makefile
src/Examples/main2/Makefile
src/Examples/redres/Makefile
src/Examples/filter/Makefile
src/Examples/transform/Makefile
src/Examples/showlive/Makefile
src/Examples/showdv/Makefile
src/Examples/showdig/Makefile
src/Examples/showdisp/Makefile
src/Examples/imgIOTest/Makefile
src/Examples/xman/Makefile
src/Consoles/Test/Makefile
src/Segmentation/Makefile
src/Segmentation/Test/Makefile
src/Examples/tracking/Makefile
src/Examples/warp/Makefile
src/Examples/play_avi/Makefile
src/Examples/show_v4l/Makefile
src/Examples/stream_stereo/Makefile
src/Examples/stream_stereo_color/Makefile
)