/[tivodecode]/t2sami/trunk/configure.in
ViewVC logotype

Contents of /t2sami/trunk/configure.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 257 - (show annotations) (download)
Tue Dec 27 08:17:02 2011 UTC (11 years, 5 months ago) by jeremyd2019
File size: 5537 byte(s)
update for boost_filesystem api version 3.
1 AC_INIT(T2Sami, 2.0.0033-pre2)
2 AC_PREREQ([2.59])
3 AC_CONFIG_SRCDIR(t2samiapp.cpp)
4 AM_INIT_AUTOMAKE
5 AM_MAINTAINER_MODE
6 AC_CONFIG_HEADERS(config.h)
7
8 PGAC_ARG_BOOL(enable, debug, no, [ --enable-debug enable debugging code],
9 [AC_DEFINE([_DEBUG], 1,
10 [Define to 1 to build with debugging code. (--enable-debug)])])
11
12 PGAC_ARG_BOOL(enable, dump-psdata, no, [ --enable-dump-psdata enable dumping PS data in debug log],
13 [AC_DEFINE([_DEBUG])
14 AC_DEFINE([DumpPSData], [TRUE],
15 [Define to TRUE to dump PS data to the debug log. (--enable-dump-psdata)])])
16
17 PGAC_ARG_BOOL(enable, dump-video-pesdata, no, [ --enable-dump-video-pesdata enable dumping video PES data in debug log],
18 [AC_DEFINE([_DEBUG])
19 AC_DEFINE([DumpVideoPESData], [TRUE],
20 [Define to TRUE to dump Video PES data to the debug log. (--enable-dump-video-pesdata)])])
21
22 PGAC_ARG_BOOL(enable, dump-audio-pesdata, no, [ --enable-dump-audio-pesdata enable dumping audio PES data in debug log],
23 [AC_DEFINE([_DEBUG])
24 AC_DEFINE([DumpAudioPESData], [TRUE],
25 [Define to TRUE to dump audio PES data to the debug log. (--enable-dump-audio-pesdata)])])
26
27 PGAC_ARG_BOOL(enable, dump-userdata, no, [ --enable-dump-userdata enable dumping user data in debug log],
28 [AC_DEFINE([_DEBUG])
29 AC_DEFINE([DumpUserData], [TRUE],
30 [Define to TRUE to dump user data to the debug log. (--enable-dump-userdata)])])
31
32 PGAC_ARG_BOOL(enable, dump-closedcapdata, no, [ --enable-dump-closedcapdata enable dumping closed caption data in debug log],
33 [AC_DEFINE([_DEBUG])
34 AC_DEFINE([DumpClosedCapData], [TRUE],
35 [Define to TRUE to dump closed caption data to the debug log. (--enable-dump-closedcapdata)])])
36
37 PGAC_ARG_BOOL(enable, dump-picturedata, no, [ --enable-dump-picturedata enable dumping picture data in debug log],
38 [AC_DEFINE([_DEBUG])
39 AC_DEFINE([DumpPictureData], [TRUE],
40 [Define to TRUE to dump picture data to the debug log. (--enable-dump-psdata)])])
41
42 PGAC_ARG_BOOL(enable, dump-all, no, [ --enable-dump-all enable dumping all data in debug log],
43 [AC_DEFINE([_DEBUG])
44 AC_DEFINE([DumpPSData], [TRUE])
45 AC_DEFINE([DumpVideoPESData], [TRUE])
46 AC_DEFINE([DumpAudioPESData], [TRUE])
47 AC_DEFINE([DumpUserData], [TRUE])
48 AC_DEFINE([DumpClosedCapData], [TRUE])
49 AC_DEFINE([DumpPictureData], [TRUE])])
50
51 AC_PROG_CXX
52 AC_PROG_CC
53 AC_PROG_CPP
54 AC_AIX
55 AC_ISC_POSIX
56 AC_MINIX
57 AC_HEADER_STDC
58 AC_C_INLINE
59 AC_PROG_RANLIB
60 AC_PROG_INSTALL
61
62 if test x"$ac_cv_c_compiler_gnu" = x"yes"; then
63 # ICC pretends to be GCC but it's lying; it doesn't support these options.
64 # So we have to check if "GCC" is really ICC.
65 AC_TRY_COMPILE([], [@%:@ifndef __INTEL_COMPILER
66 choke me
67 @%:@endif], [ICC=[yes]], [ICC=[no]])
68
69 if test "$ICC" = no; then
70 CFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wpointer-arith -Winline"
71 CXXFLAGS="$CXXFLAGS -Wall"
72
73 PGAC_PROG_CC_CFLAGS_OPT([-Wdeclaration-after-statement])
74 PGAC_PROG_CC_CFLAGS_OPT([-Wendif-labels])
75 PGAC_PROG_CC_CFLAGS_OPT([-Werror-implicit-function-declaration])
76 fi
77 PGAC_PROG_CC_CFLAGS_OPT([-fno-strict-aliasing])
78 fi
79
80 AC_SYS_LARGEFILE
81 AC_FUNC_FSEEKO
82 AC_TYPE_OFF_T
83 AC_CHECK_SIZEOF(off_t)
84
85 AX_BOOST_BASE([1.44.0])
86 AX_BOOST_FILESYSTEM
87
88 AC_CHECK_HEADERS([netinet/in.h winsock2.h getopt.h ctype.h], [], [], AC_INCLUDES_DEFAULT([]))
89 AC_SEARCH_LIBS(getopt_long, [getopt gnugetopt])
90 AC_ARG_VAR(DOXYGEN, [doxygen documentation generator])
91 AC_CHECK_PROGS(DOXYGEN, [doxygen], [$SHELL $missing_dir/missing doxygen])
92
93 dnl BEGIN check for library containing ntohl - based on AC_SEARCH_LIBS
94 dnl but specific for ntohl to make it work on win32
95 dnl ntohl check {{{
96 AC_PREREQ([2.13])
97 AC_CACHE_CHECK([for library containing ntohl], [ac_cv_search_ntohl],
98 [ac_func_search_save_LIBS="$LIBS"
99 ac_cv_search_ntohl="no"
100 AC_TRY_LINK(dnl
101 [#ifdef HAVE_SYS_TYPES_H
102 #include <sys/types.h>
103 #endif
104 #ifdef HAVE_NETINET_IN_H
105 #include <netinet/in.h>
106 #endif
107 #ifdef HAVE_WINSOCK2_H
108 #include <winsock2.h>
109 #endif
110 ],
111 [ntohl(42)],
112 [ac_cv_search_ntohl="none required"])
113 test "$ac_cv_search_ntohl" = "no" && for i in socket wsock32; do
114 LIBS="-l$i $ac_func_search_save_LIBS"
115 AC_TRY_LINK(dnl
116 [#ifdef HAVE_SYS_TYPES_H
117 #include <sys/types.h>
118 #endif
119 #ifdef HAVE_NETINET_IN_H
120 #include <netinet/in.h>
121 #endif
122 #ifdef HAVE_WINSOCK2_H
123 #include <winsock2.h>
124 #endif
125 ],
126 [ntohl(42)],
127 [ac_cv_search_ntohl="-l$i"
128 break])
129 done
130 LIBS="$ac_func_search_save_LIBS"])
131 if test "$ac_cv_search_ntohl" != "no"; then
132 test "$ac_cv_search_ntohl" = "none required" || LIBS="$ac_cv_search_ntohl $LIBS"
133 fi
134 dnl }}} END check for library containing ntohl
135
136 AC_CHECK_TYPES([struct option], [], [],
137 [#ifdef HAVE_GETOPT_H
138 #include <getopt.h>
139 #endif])
140
141 AC_CACHE_CHECK([for optreset], pgac_cv_var_int_optreset,
142 [AC_TRY_LINK([#include <unistd.h>],
143 [extern int optreset; optreset = 1;],
144 [pgac_cv_var_int_optreset=yes],
145 [pgac_cv_var_int_optreset=no])])
146 if test x"$pgac_cv_var_int_optreset" = x"yes"; then
147 AC_DEFINE(HAVE_INT_OPTRESET, 1, [Define to 1 if you have the global variable 'int optreset'.])
148 fi
149
150 AC_REPLACE_FUNCS([getopt fseeko])
151
152 if test x"$ac_cv_type_struct_option" = xyes ; then
153 AC_REPLACE_FUNCS([getopt_long])
154 else
155 AC_LIBOBJ(getopt_long)
156 fi
157
158 AC_CHECK_FUNCS([strcasecmp _stricmp stricmp])
159
160 AC_OUTPUT(Makefile)

cvs@jdrake.com
ViewVC Help
Powered by ViewVC 1.1.13