Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 552 lines (465 sloc) 24.114 kb
c98254b @novas0x2a relicense everything. woo.
novas0x2a authored
1 dnl __BEGIN_LICENSE__
b1c122d @novas0x2a run relicense.pl
novas0x2a authored
2 dnl Copyright (C) 2006-2010 United States Government as represented by
c98254b @novas0x2a relicense everything. woo.
novas0x2a authored
3 dnl the Administrator of the National Aeronautics and Space Administration.
4 dnl All Rights Reserved.
5 dnl __END_LICENSE__
6
b1c122d @novas0x2a run relicense.pl
novas0x2a authored
7
91b79ca @novas0x2a make automake notice undefined AX_* macros
novas0x2a authored
8 m4_pattern_forbid([^AX_])
e794826 @novas0x2a add contourgen to build, and detect cairomm for it
novas0x2a authored
9 m4_pattern_allow([^AX_CFLAGS$])
10 m4_pattern_allow([^AX_INCLUDE_DIR$])
11 m4_pattern_allow([^AX_LIBDIR$])
12 m4_pattern_allow([^AX_OTHER_LIBDIR$])
13 m4_pattern_allow([^PKG_[A-Z_]+_CPPFLAGS$])
14 m4_pattern_allow([^PKG_[A-Z_]+_LDFLAGS$])
15 m4_pattern_allow([^PKG_[A-Z_]+_LIBS$])
16 m4_pattern_allow([^PKG_PATHS$])
17 m4_pattern_allow([^PKG_PATHS_[A-Z_]+$])
18 m4_pattern_allow([^PKG_BOOST_INCDIR$])
19 m4_pattern_allow([^PKG_BOOST_LIBDIR$])
20 m4_pattern_allow([^PKG_VW_LIBS_TEMP$])
6e1f2e5 @novas0x2a hm. probably should have tested that last one. fixed.
novas0x2a authored
21 m4_pattern_allow([^PKG_ARBITRARY_QT_NEEDED_HEADERS$])
35984ed Partial commit of build system.
Matthew Hancher authored
22
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
23 ##################################################
24 # A few starting bits
25 ##################################################
26
ec7430f @novas0x2a explicitly encode the min version, and fix warning
novas0x2a authored
27 AC_PREREQ([2.59])
043c490 @novas0x2a bump version
novas0x2a authored
28 dnl TODO BEFORE/AFTER RELEASE: update package version
af33e4a @zmoratto Increment to 2.2.0 post
zmoratto authored
29 AC_INIT([NASA Vision Workbench], [2.2.0_post], [vision-workbench@lists.nasa.gov], [VisionWorkbench])
35984ed Partial commit of build system.
Matthew Hancher authored
30 AC_CONFIG_AUX_DIR(config)
626fcbf @novas0x2a Switch to autoreconf for autogen- it's a little smarter than just callin...
novas0x2a authored
31 AC_CONFIG_MACRO_DIR([m4])
35984ed Partial commit of build system.
Matthew Hancher authored
32 AC_CANONICAL_HOST
ec7430f @novas0x2a explicitly encode the min version, and fix warning
novas0x2a authored
33 AM_INIT_AUTOMAKE([nostdinc 1.8.5])
35984ed Partial commit of build system.
Matthew Hancher authored
34 AX_CONFIG_HEADER_PREFIX([src/vw/config.h], [VW_])
35
6b458d1 export abs vars in early autoconf
DW Wheeler authored
36 dnl Fix for early autoconf that doesn't export these
37 AC_SUBST([abs_top_srcdir])
38 AC_SUBST([abs_top_builddir])
a9e8b75 @novas0x2a fix protobuf generation on autoconf 2.59 / automake 1.9.6
novas0x2a authored
39 AC_SUBST([abs_srcdir])
40 AC_SUBST([abs_builddir])
6b458d1 export abs vars in early autoconf
DW Wheeler authored
41
dab7176 @novas0x2a enable silent make rules if they exist
novas0x2a authored
42 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
43
298cc32 @novas0x2a output the option-handling code later in the process
novas0x2a authored
44 m4_divert_text([INIT_PREPARE], [dnl
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
45 # load the config.options
79c1dbc @novas0x2a bash 4.0 doesn't include . in the "source" search path
novas0x2a authored
46 if test -f ./config.options; then
0bc15e1 @novas0x2a remove last "verbose" flags, and make boost_lib simpler
novas0x2a authored
47 AX_LOG([using config.options << EOF])
48 AX_LOG([`cat ./config.options`])
49 AX_LOG([EOF])
93ae5cf @novas0x2a fix bashism that snuck into the scripts
novas0x2a authored
50 . ./config.options
35984ed Partial commit of build system.
Matthew Hancher authored
51 fi
fd1e4c2 @novas0x2a okay, another crack at m4 diversions
novas0x2a authored
52 ])
35984ed Partial commit of build system.
Matthew Hancher authored
53
54 ##################################################
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
55 # Find the necessary programs
35984ed Partial commit of build system.
Matthew Hancher authored
56 ##################################################
57
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
58 # Make sure these are set so AC_PROG_CC doesn't initialize them with
59 # its defaults, since we take care of setting debug and optimization
60 # levels ourselves.
61 CFLAGS="$CFLAGS"
62 CXXFLAGS="$CXXFLAGS"
63
243fa57 @novas0x2a Disable static libraries by default
novas0x2a authored
64 # Disable static libraries by default
65 AM_DISABLE_STATIC
66
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
67 # Find the tools
68 AC_PROG_CC
69 AC_PROG_CXX
70 AC_PROG_INSTALL
71 AX_PROG_AR
72 AC_PROG_LIBTOOL
73 AC_PROG_MAKE_SET
74 AC_LANG(C++)
e983818 @novas0x2a common options
novas0x2a authored
75 AX_COMMON_OPTIONS
f5d5d05 @novas0x2a make sure we have a sane ssize_t defined.
novas0x2a authored
76 AC_CHECK_TYPE(ssize_t, int)
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
77
c8a54d8 @novas0x2a add a warn_unused_result macro
novas0x2a authored
78 # Does the compiler support various fun function attributes?
a93a278 @novas0x2a Mark vw_throw as noreturn explicitly
novas0x2a authored
79 AX_CHECK_FUNCTION_ATTRIBUTE([noreturn])
da2c259 @zmoratto Deprecate old TerminalProgressCallback constructor
zmoratto authored
80 AX_CHECK_FUNCTION_ATTRIBUTE([deprecated])
c8a54d8 @novas0x2a add a warn_unused_result macro
novas0x2a authored
81 AX_CHECK_FUNCTION_ATTRIBUTE([warn_unused_result])
a93a278 @novas0x2a Mark vw_throw as noreturn explicitly
novas0x2a authored
82
3a67260 @novas0x2a add test functionality for catching FP errors
novas0x2a authored
83 # Looking for headers
458d78a @novas0x2a add a TemporaryFile stream thing
novas0x2a authored
84 AC_CHECK_HEADERS([unistd.h pwd.h fenv.h ext/stdio_filebuf.h])
8879c42 @novas0x2a make some windows compat fixes
novas0x2a authored
85
fbd05dc @novas0x2a some freebsd fixes
novas0x2a authored
86 # Find some functions
00336d5 @novas0x2a add openbsd's mkstemps implementation as a fallback
novas0x2a authored
87 AC_SEARCH_LIBS([mkstemps], [iberty])
88 AC_CHECK_FUNCS([mkstemps getpwuid getpid feenableexcept])
b423d7a @novas0x2a change ifdefs for some missing functions
novas0x2a authored
89 AC_CHECK_FUNCS([fabsl llabs exp2 log2 tgamma])
fbd05dc @novas0x2a some freebsd fixes
novas0x2a authored
90
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
91 # Look for the python stuff
92 AM_PATH_PYTHON([2.4], [HAVE_PYTHON=yes], [HAVE_PYTHON=no])
93 AC_PYTHON_DEVEL([HAVE_PYTHON=yes], [HAVE_PYTHON=no])
94 AC_PROG_SWIG([1.3.29], [HAVE_SWIG=yes], [HAVE_SWIG=no])
95
96 AC_SUBST(HAVE_PYTHON)
97 AC_SUBST(HAVE_SWIG)
98
99 if test "$HAVE_SWIG" = "yes"; then
100 SWIG_ENABLE_CXX
101 if test "$HAVE_PYTHON" = "yes"; then
102 SWIG_PYTHON
103 fi
104 fi
105
106 # Check for the code coverage programs
107 AC_CHECK_PROGS(LCOV, lcov, false)
108 AC_CHECK_PROGS(GENHTML, genhtml, false)
109
eacccbf @broxtronix Added the mod_plate Apache module to the platefile module. This is yet ...
broxtronix authored
110 # Check for the Apache Extension Tool
111 AC_CHECK_PROGS(APXS, apxs2 apxs, false)
112 if test "$APXS" != "false"; then
b9199c1 @novas0x2a set APXS_INSTALLDIR to change ... the apxs installdir
novas0x2a authored
113 APXS_CFLAGS="`$APXS -q CFLAGS` -I`$APXS -q INCLUDEDIR`"
114 APXS_LDFLAGS="`$APXS -q LDFLAGS`"
115 APR_CONFIG=`$APXS -q APR_CONFIG`
116 APU_CONFIG=`$APXS -q APU_CONFIG`
117 APXS_CFLAGS="$APXS_CFLAGS `$APR_CONFIG --cppflags --includes` `$APU_CONFIG --includes`"
7e38aac @novas0x2a fix small flags bug in apache detection
novas0x2a authored
118 APXS_LDFLAGS="$APXS_LDFLAGS `$APR_CONFIG --ldflags --libs` `$APU_CONFIG --ldflags --libs`"
b9199c1 @novas0x2a set APXS_INSTALLDIR to change ... the apxs installdir
novas0x2a authored
119 APXS_DEFAULT_INSTALLDIR="`$APXS -q LIBEXECDIR`"
120
121 AX_ARG_WITH(apxs_installdir, [], [mk], [Set apache module install dir])
122
123 if test -z "$APXS_INSTALLDIR"; then
124 APXS_INSTALLDIR="$APXS_DEFAULT_INSTALLDIR"
125 fi
126
127 AC_SUBST(APXS_CFLAGS)
128 AC_SUBST(APXS_LDFLAGS)
129 fi
07e2174 @novas0x2a fix bug in mod_plate conditional
novas0x2a authored
130 AM_CONDITIONAL(MAKE_MODPLATE, [test "$APXS" != "false"])
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
131
132
133 ##################################################
134 # Compilation options
135 ##################################################
136
137 # For the moment this is just a manual switch, defaulting to off.
138 # Someday this should be sensibly autodetected.
40b6f8b @novas0x2a allow easy disabling of the config file
novas0x2a authored
139 AX_ARG_ENABLE(sse, no, [am-yes cpp-bool], [enable SSE optimizations in some places (development)])
140 AX_ARG_ENABLE(bounds-check, no, [am-yes cpp-bool], [enable image bounds checking (SLOW!)])
141 AX_ARG_ENABLE(test-coverage, no, [am-yes], [turn on code coverage analysis tools])
142 AX_ARG_ENABLE(config-file, yes, [cpp-bool], [~/.vwrc support])
8160c7e @novas0x2a disable strict aliasing by default
novas0x2a authored
143 AX_ARG_ENABLE(strict-aliasing, no, [none], [allow strict aliasing (dangerous)])
be1d3c2 @novas0x2a move qt-qmake enable up to where it belongs
novas0x2a authored
144 AX_ARG_ENABLE(qt-qmake, yes, [none], [Allow qmake detection of QT])
145
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
146
147 ##################################################
148 # Handle options
149 ##################################################
150
151 # Check for --enable-test-coverate and add appropriate flags for gcc
152 if test "$ENABLE_TEST_COVERAGE" = "yes"; then
db3c830 @novas0x2a more lcov + test-coverage improvements
novas0x2a authored
153 if CCACHE_CC=echo $CXX i_am_really_ccache 2>&AS_MESSAGE_LOG_FD | grep -q i_am_really_ccache ; then
154 AC_MSG_ERROR([compiler CXX ($CXX) appears to be ccache, which breaks test-coverage])
155 fi
2d8608c A first cut at reworking the exception system to
Matthew Hancher authored
156
db3c830 @novas0x2a more lcov + test-coverage improvements
novas0x2a authored
157 AX_TRY_CPPFLAGS([-fprofile-arcs], [], [AC_MSG_ERROR([test coverage requires -fprofile-arcs])])
158 AX_TRY_CPPFLAGS([-ftest-coverage], [], [AC_MSG_ERROR([test coverage requires -ftest-coverage])])
3c8bf2d @novas0x2a detect which inline flags are supported before enabling them
novas0x2a authored
159
db3c830 @novas0x2a more lcov + test-coverage improvements
novas0x2a authored
160 echo "*** Enabling test coverage and debugging, and disabling optimization ***"
3c8bf2d @novas0x2a detect which inline flags are supported before enabling them
novas0x2a authored
161
db3c830 @novas0x2a more lcov + test-coverage improvements
novas0x2a authored
162 dnl These two are necessary and already tested for
163 CXXFLAGS="$CXXFLAGS -fprofile-arcs -ftest-coverage"
164 LDFLAGS="$LDFLAGS -lgcov"
165 ENABLE_OPTIMIZE=no
166 ENABLE_DEBUG=yes
2d8608c A first cut at reworking the exception system to
Matthew Hancher authored
167 fi
168
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
169 # Files test-coverage and profile-arcs generate
ac91c01 @novas0x2a give test coverage reports some love
novas0x2a authored
170 AC_SUBST([MOSTLYCLEANFILES], "*.bb *.bbg *.da *.gcov *.gcda *.gcno .*.gcov")
4ac6839 Added the missing Interpolation.cc.
Matthew Hancher authored
171
824e7d0 @novas0x2a make sure am_conditional stays in sync
novas0x2a authored
172 # These need to be here because automake-1.6 is dumb and does not properly
173 # process AM_CONDITIONALs unless the first argument is a simple string.
174 AM_CONDITIONAL(ENABLE_SSE, [test x"$ENABLE_SSE" = x"yes"])
175 AM_CONDITIONAL(ENABLE_BOUNDS_CHECK, [test x"$ENABLE_BOUNDS_CHECK" = x"yes"])
3c6d13b @novas0x2a instantiate class templates in core, math, image
novas0x2a authored
176 AM_CONDITIONAL(ENABLE_TEST_COVERAGE, [test x"$ENABLE_TEST_COVERAGE" = x"yes"])
824e7d0 @novas0x2a make sure am_conditional stays in sync
novas0x2a authored
177
35984ed Partial commit of build system.
Matthew Hancher authored
178
78a3571 Various build system and documentation tweaks.
Matthew Hancher authored
179
35984ed Partial commit of build system.
Matthew Hancher authored
180 ##################################################
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
181 # distribution options
35984ed Partial commit of build system.
Matthew Hancher authored
182 ##################################################
183
b128800 @oleg-alexandrov Move the Photometry module to the PhotometryTk package and out of Vision...
oleg-alexandrov authored
184 AX_ARG_WITH(dist-remove-modules, [Python Geometry GPU gui Plate], [mk am-set], [remove certain modules from the distribution])
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
185
824e7d0 @novas0x2a make sure am_conditional stays in sync
novas0x2a authored
186 # These need to be here because automake-1.6 is dumb and does not properly
187 # process AM_CONDITIONALs unless the first argument is a simple string.
188 AM_CONDITIONAL(DIST_REMOVE_MODULES, [test ! -z "$DIST_REMOVE_MODULES"])
189
9927df7 Added CMU copyright to source file headers. Added support in the
Matthew Hancher authored
190
35984ed Partial commit of build system.
Matthew Hancher authored
191
192 ##################################################
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
193 # package checks
35984ed Partial commit of build system.
Matthew Hancher authored
194 ##################################################
195
196 AX_PKG_PTHREADS
197
1605e60 @novas0x2a re-work boost detection again
novas0x2a authored
198 AX_PKG_BOOST([BOOST_PROGRAM_OPTIONS BOOST_FILESYSTEM BOOST_THREAD BOOST_GRAPH],
199 BOOST_PROGRAM_OPTIONS,
200 [AX_PKG_BOOST_LIB(PROGRAM_OPTIONS, [-lboost_program_options], [boost/program_options.hpp], [boost::program_options::options_description("Rawr");])],
201 BOOST_SYSTEM,
202 [AX_PKG_BOOST_LIB(SYSTEM, [-lboost_system], [boost/system/error_code.hpp], [boost::system::error_code();])],
203 BOOST_FILESYSTEM,
204 [AX_PKG_BOOST_LIB(FILESYSTEM, [-lboost_filesystem], [boost/filesystem/path.hpp], [boost::filesystem::path();], [$PKG_BOOST_SYSTEM_LIBS])],
205 BOOST_REGEX,
206 [AX_PKG_BOOST_LIB(REGEX, [-lboost_regex], [boost/regex.hpp], [boost::regex(".*");])],
207 BOOST_DATETIME,
6f7afbc @zmoratto core: Add support for Boost 1.50
zmoratto authored
208 [AX_PKG_BOOST_LIB(DATETIME, [-lboost_date_time], [boost/date_time/gregorian/gregorian_types.hpp], [], [$PKG_BOOST_SYSTEM_LIBS])],
1605e60 @novas0x2a re-work boost detection again
novas0x2a authored
209 BOOST_THREAD,
210 [AX_PKG_BOOST_LIB(THREAD, [-lboost_thread], [boost/thread/thread.hpp], [boost::mutex();], [$PKG_BOOST_DATETIME_LIBS], [boost/thread/condition.hpp])],
211 BOOST_IOSTREAMS,
212 [AX_PKG_BOOST_LIB(IOSTREAMS, [-lboost_iostreams], [boost/iostreams/device/mapped_file.hpp], [boost::iostreams::mapped_file_source();])],
213 BOOST_GRAPH,
214 [AX_PKG_BOOST_LIB(GRAPH, [], [boost/graph/adjacency_list.hpp])]
215 )
35984ed Partial commit of build system.
Matthew Hancher authored
216
46ad9fa @novas0x2a fix one more boost regression
novas0x2a authored
217 if test x"$HAVE_PKG_BOOST" = "xyes"; then
218 AX_PKG_BOOST_CHECK_VERSION([VW_])
09721df @novas0x2a check boost libs in a more intelligent order.
novas0x2a authored
219 AC_MSG_NOTICE([Using Boost header version $BOOST_VERSION, library suffix $PKG_BOOST_SAME_SUFFIX])
46ad9fa @novas0x2a fix one more boost regression
novas0x2a authored
220 fi
221
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
222 # This provides an easy way for users to override the threads options
be91a69 Added a simple abtracted threading interface, made the core
Matthew Hancher authored
223 # if they are replacing Boost threads with something else for their platform.
224 AX_PKG(THREADS, [BOOST_THREAD], [], [])
225
bbe52b7 @novas0x2a tweak how intel mkl is detected. again.
novas0x2a authored
226 AX_PKG(M, [], [-lm], [math.h])
227
4a48b8c @novas0x2a add ax_pkg_apple, and get rid of lapack/gl magic
novas0x2a authored
228 AX_PKG_ONE_OF(LAPACK,
229 APPLE_LAPACK,
230 [AX_PKG_APPLE(LAPACK, [], [-framework vecLib])],
7fa76f4 @novas0x2a oops, move intel search up in priority
novas0x2a authored
231 INTEL_LAPACK,
bbe52b7 @novas0x2a tweak how intel mkl is detected. again.
novas0x2a authored
232 [case $host_cpu in
233 ia64) AX_PKG(INTEL_LAPACK, [PTHREADS M], [-lmkl_lapack -lmkl -lmkl_i2p -lguide], [mkl_lapack.h], [], [64], [dgelss_]);;
6526103 @novas0x2a x86_64 needs mkl_def
novas0x2a authored
234 x86_64) AX_PKG(INTEL_LAPACK, [PTHREADS M], [-lmkl_lapack -lmkl -lmkl_def -lguide], [mkl_lapack.h], [], [em64t], [dgelss_]);;
bbe52b7 @novas0x2a tweak how intel mkl is detected. again.
novas0x2a authored
235 *) AX_PKG(INTEL_LAPACK, [PTHREADS M], [-lmkl_lapack -lmkl -lguide], [mkl_lapack.h], [], [32], [dgelss_]);;
236 esac],
4a48b8c @novas0x2a add ax_pkg_apple, and get rid of lapack/gl magic
novas0x2a authored
237 CLAPACK,
a0b314a @novas0x2a add support for intel mkl lapack library
novas0x2a authored
238 [AX_PKG(CLAPACK, [], [-lclapack -lblas -lf2c], [], [], [], [dgelss_])],
4a48b8c @novas0x2a add ax_pkg_apple, and get rid of lapack/gl magic
novas0x2a authored
239 SLAPACK,
a0b314a @novas0x2a add support for intel mkl lapack library
novas0x2a authored
240 [AX_PKG(SLAPACK, [], [-llapack -lblas], [], [], [], [dgelss_])],
4a48b8c @novas0x2a add ax_pkg_apple, and get rid of lapack/gl magic
novas0x2a authored
241 FLAPACK,
a0b314a @novas0x2a add support for intel mkl lapack library
novas0x2a authored
242 [AX_PKG(FLAPACK, [], [-llapack -lblas -lgfortran], [], [], [], [dgelss_])],
4a48b8c @novas0x2a add ax_pkg_apple, and get rid of lapack/gl magic
novas0x2a authored
243 STANDALONE_LAPACK_BLAS,
244 [AX_PKG(STANDALONE_BLAS, [], [-lblas], [])
a0b314a @novas0x2a add support for intel mkl lapack library
novas0x2a authored
245 AX_PKG(STANDALONE_LAPACK, [STANDALONE_BLAS], [-llapack], [], [], [], [dgelss_])
4a48b8c @novas0x2a add ax_pkg_apple, and get rid of lapack/gl magic
novas0x2a authored
246 AX_GROUP_PKG(STANDALONE_LAPACK_AND_BLAS, [STANDALONE_LAPACK STANDALONE_BLAS])],
247 STANDALONE_FLAPACK_FBLAS,
248 [AX_PKG(STANDALONE_F2C, [], [-lf2c], [])
249 AX_PKG(STANDALONE_FBLAS, [STANDALONE_F2C], [-lblas], [])
a0b314a @novas0x2a add support for intel mkl lapack library
novas0x2a authored
250 AX_PKG(STANDALONE_FLAPACK, [STANDALONE_FBLAS STANDALONE_F2C], [-llapack], [], [], [], [dgelss_])
4a48b8c @novas0x2a add ax_pkg_apple, and get rid of lapack/gl magic
novas0x2a authored
251 AX_GROUP_PKG(STANDALONE_FLAPACK_FBLAS, [STANDALONE_FLAPACK STANDALONE_FBLAS STANDALONE_F2C])])
adb8010 @broxtronix Started work on pulling the LAPACK functionality back into the Math
broxtronix authored
252
35984ed Partial commit of build system.
Matthew Hancher authored
253 AX_PKG(Z, [], [-lz], [zlib.h])
35f061b Updated lots of things to use fully-specified integer types. In
Matthew Hancher authored
254
d5a401c @novas0x2a make some implicit deps explicit
novas0x2a authored
255 AX_PKG(PNG, [Z], [-lpng], [png.h])
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
256 AX_PKG(JPEG, [], [-ljpeg], [stdio.h jpeglib.h]) # jpeglib.h requires stdio.h to have been included
f9cc584 @novas0x2a add function-checker, and use it for BigTIFF
novas0x2a authored
257
55ad03d @zmoratto Bug fix for finding ILMBASE on servers
zmoratto authored
258 AX_PKG(ILMBASE, [M Z PTHREADS], [-lImath -lHalf -lIex -lIlmThread], [Iex.h], [OpenEXR])
6efb909 @broxtronix Changed the way that OpenEXR is detected to support the new (1.5 and new...
broxtronix authored
259 AX_PKG(OPENEXR, [ILMBASE], [-lIlmImf], [ImfOutputFile.h], [OpenEXR])
4ee7362 @novas0x2a add a possible hdf path
novas0x2a authored
260
dbf23f9 @novas0x2a add ax_pkg_one_of, and use it
novas0x2a authored
261 AX_PKG_ONE_OF(HDF,
d5a401c @novas0x2a make some implicit deps explicit
novas0x2a authored
262 HDF_PLAIN, [AX_PKG(HDF_PLAIN, [M JPEG], [-ldf -lmfhdf], [mfhdf.h] )],
263 HDF_SUBDIR, [AX_PKG(HDF_SUBDIR, [M JPEG], [-ldf -lmfhdf], [mfhdf.h], [hdf])]
dbf23f9 @novas0x2a add ax_pkg_one_of, and use it
novas0x2a authored
264 )
35984ed Partial commit of build system.
Matthew Hancher authored
265
4a48b8c @novas0x2a add ax_pkg_apple, and get rid of lapack/gl magic
novas0x2a authored
266 AX_PKG_ONE_OF(GL,
cd7cc23 @novas0x2a hide linux-only check on apple
novas0x2a authored
267 APPLE_GL,
268 [AX_PKG_APPLE([GL], [], [-framework OpenGL -framework GLUT -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib])],
269 LINUX_GL,
270 [AX_PKG(X11, [], [-lXext -lX11 -lXmu -lXi -lXt], [])
07fd997 @novas0x2a build fixes for vwv
novas0x2a authored
271 AX_PKG(LINUX_GL, [X11], [-lglut -lGLU -lGL], [GL/gl.h GL/glu.h GL/glut.h], [], [], [glCreateShader])])
4a48b8c @novas0x2a add ax_pkg_apple, and get rid of lapack/gl magic
novas0x2a authored
272
e35d615 @broxtronix Made a few minor changes to OpenGL detection to better support the GPU m...
broxtronix authored
273 AX_PKG(GLEW, [GL M], [-lGLEW], [GL/glew.h])
7e75034 @novas0x2a cg needs gl to compile
novas0x2a authored
274 AX_PKG(CG, [GL], [-lCg -lCgGL], [Cg/cg.h])
35984ed Partial commit of build system.
Matthew Hancher authored
275
8e3b8e4 @zmoratto Remove special ubuntu gdal
zmoratto authored
276 AX_PKG(GDAL, [], [-lgdal], [gdal.h])
ea945e4 @novas0x2a fix gdal/tiff overlap problem
novas0x2a authored
277
4a3fcfb @novas0x2a do a better job of detecting tiff in gdal
novas0x2a authored
278 # GDAL requires tiff support, but it can be internal or external.
f337aa1 @novas0x2a fix case of tiff-inside-gdal detection.
novas0x2a authored
279 PKG_CHECK_FUNCTION(GDAL, [TIFFScanlineSize], [External_LibTIFF])
4a3fcfb @novas0x2a do a better job of detecting tiff in gdal
novas0x2a authored
280
281 if test x"$HAVE_PKG_GDAL" = "xyes"; then
f27fa19 @novas0x2a if HAVE_PKG_* is "no:$reason", AX_PKG will disable it and give a reason
novas0x2a authored
282 HAVE_PKG_TIFF="no:gdal has tiff support"
4a3fcfb @novas0x2a do a better job of detecting tiff in gdal
novas0x2a authored
283 if test x"$GDAL_HAS_EXTERNAL_LIBTIFF" = "xyes"; then
284 PKG_CHECK_FUNCTION(GDAL, [TIFFScanlineSize64], [BigTIFF])
285 else
286 GDAL_HAS_BIGTIFF=yes
287 fi
288 VW_HAS_BIGTIFF="$GDAL_HAS_BIGTIFF"
f9cc584 @novas0x2a add function-checker, and use it for BigTIFF
novas0x2a authored
289 fi
290
f27fa19 @novas0x2a if HAVE_PKG_* is "no:$reason", AX_PKG will disable it and give a reason
novas0x2a authored
291 AX_PKG(TIFF, [], [-ltiff], [tiff.h])
4a3fcfb @novas0x2a do a better job of detecting tiff in gdal
novas0x2a authored
292 if test x"$HAVE_PKG_TIFF" = "xyes"; then
293 PKG_CHECK_FUNCTION(TIFF, [TIFFScanlineSize64], [BigTIFF])
294 VW_HAS_BIGTIFF="$TIFF_HAS_BIGTIFF"
295 fi
296
297 AC_MSG_CHECKING([if VW has BigTIFF support])
298 if test x"$VW_HAS_BIGTIFF" = "xyes"; then
299 has_bigtiff=1
300 else
301 has_bigtiff=0
302 fi
303 AC_DEFINE_UNQUOTED(HAS_BIGTIFF, [$has_bigtiff], [Define to 1 if VW has BigTIFF support])
304 AC_MSG_RESULT([$VW_HAS_BIGTIFF])
f27fa19 @novas0x2a if HAVE_PKG_* is "no:$reason", AX_PKG will disable it and give a reason
novas0x2a authored
305
67f777e @zmoratto cartography: Support Proj4.8 API
zmoratto authored
306 AX_PKG(PROJ4, [M], [-lproj], [proj_api.h])
35984ed Partial commit of build system.
Matthew Hancher authored
307
608519d @novas0x2a add another qt detection mode
novas0x2a authored
308 if test "$HAVE_PKG_QT" = no; then
309 ENABLE_QT_QMAKE=no
310 fi
311
312 if test "$ENABLE_QT_QMAKE" = no; then
313 AX_GROUP_PKG([QT_QMAKE])
8b5015c @novas0x2a make sure qt stays out of the flags if it's disabled
novas0x2a authored
314 else
315 # Qt with AutoTroll.
10bed0d @broxtronix Another checkpoint. Added (untested) RPC methods for fetching index pag...
broxtronix authored
316 AT_WITH_QT([+gui +sql +opengl +network], [], [], [HAVE_PKG_QT_QMAKE="no:missing QT"], [])
96ba3de @novas0x2a merge in changes from autotroll upstream
novas0x2a authored
317
608519d @novas0x2a add another qt detection mode
novas0x2a authored
318 if test x"$HAVE_PKG_QT_QMAKE" != x"no:missing QT"; then
319 AT_REQUIRE_QT_VERSION([4.0], [HAVE_PKG_QT_QMAKE="no:wrong QT version"], [])
8b5015c @novas0x2a make sure qt stays out of the flags if it's disabled
novas0x2a authored
320 fi
3f67665 @novas0x2a fix qt detection to not die if qt isn't detected.
novas0x2a authored
321
608519d @novas0x2a add another qt detection mode
novas0x2a authored
322 # We seed QT_QMAKE's cppflags and libs with the ones qmake figured out
8b44d4d @novas0x2a QT likes to add -I. and I really wish it wouldn't
novas0x2a authored
323 PKG_QT_QMAKE_CPPFLAGS="$PKG_QT_QMAKE_CPPFLAGS `strip_arg -I. $QT_CPPFLAGS`"
608519d @novas0x2a add another qt detection mode
novas0x2a authored
324 AX_PKG(QT_QMAKE, [], [$QT_LIBS], [QVector])
8b5015c @novas0x2a make sure qt stays out of the flags if it's disabled
novas0x2a authored
325 fi
9e7c4e5 @broxtronix First checkin of \'vwv\', the Vision Workbench Image Viewer. This is th...
broxtronix authored
326
4a48b8c @novas0x2a add ax_pkg_apple, and get rid of lapack/gl magic
novas0x2a authored
327 AX_PKG_ONE_OF(QT,
b037b16 @novas0x2a merge in arbitrary qt support and MORE_LIBS
novas0x2a authored
328 ARBITRARY_QT,
329 [if test -z "$QT_ARBITRARY_MODULES" -a -z "$HAVE_PKG_ARBITRARY_MODULES"; then
330 HAVE_PKG_ARBITRARY_QT="no:Set \$QT_ARBITRARY_MODULES"
331 else
332 for module in $QT_ARBITRARY_MODULES; do
139739a @zmoratto Have VW's QT search behave like ASP's
zmoratto authored
333 PKG_ARBITRARY_QT_NEEDED_HEADERS="$PKG_ARBITRARY_QT_NEEDED_HEADERS ${module}"
b037b16 @novas0x2a merge in arbitrary qt support and MORE_LIBS
novas0x2a authored
334 done
139739a @zmoratto Have VW's QT search behave like ASP's
zmoratto authored
335 PKG_ARBITRARY_QT_CPPFLAGS="$PKG_ARBITRARY_QT_CPPFLAGS -DQT_SHARED"
336 AX_PKG(ARBITRARY_QT, [], [-lQtCore], [$PKG_ARBITRARY_QT_NEEDED_HEADERS])
337 fi],
608519d @novas0x2a add another qt detection mode
novas0x2a authored
338 APPLE_QMAKE_QT, [AX_PKG_APPLE(QMAKE_QT, [GL QT_QMAKE], [])],
339 LINUX_QMAKE_QT,
340 [AX_PKG(QT_QMAKE_OPENGL, [QT_QMAKE], [], [QtOpenGL])
341 AX_PKG(QT_QMAKE_GUI, [QT_QMAKE], [], [QLabel])
342 AX_PKG(QT_QMAKE_SQL, [QT_QMAKE], [], [QtSql])
10bed0d @broxtronix Another checkpoint. Added (untested) RPC methods for fetching index pag...
broxtronix authored
343 AX_PKG(QT_QMAKE_NETWORK, [QT_QMAKE], [], [QtNetwork])
344 AX_GROUP_PKG(LINUX_QMAKE_QT, [QT_QMAKE QT_QMAKE_GUI QT_QMAKE_OPENGL QT_QMAKE_SQL QT_QMAKE_NETWORK])],
608519d @novas0x2a add another qt detection mode
novas0x2a authored
345 GUESS_QT,
346 [PKG_QT_GUESS_BASE_CPPFLAGS="$PKG_QT_GUESS_BASE_CPPFLAGS -DQT_SHARED"
347 AX_PKG(QT_GUESS_BASE, [], [], [QtCore/qstring.h])
348 AX_PKG(QT_GUESS_CORE, [QT_GUESS_BASE], [-lQtCore], [QtCore], [QtCore])
349 AX_PKG(QT_GUESS_GUI, [QT_GUESS_CORE], [-lQtGui], [QtGui], [QtGui])
350 AX_PKG(QT_GUESS_SQL, [QT_GUESS_CORE], [-lQtSql], [QtSql], [QtSql])
10bed0d @broxtronix Another checkpoint. Added (untested) RPC methods for fetching index pag...
broxtronix authored
351 AX_PKG(QT_GUESS_NETWORK,[QT_GUESS_CORE], [-lQtNetwork],[QtNetwork],[QtNetwork])
608519d @novas0x2a add another qt detection mode
novas0x2a authored
352 AX_PKG(QT_GUESS_OPENGL, [QT_GUESS_CORE QT_GUESS_GUI], [-lQtOpenGL], [QtOpenGL], [QtOpenGL])
10bed0d @broxtronix Another checkpoint. Added (untested) RPC methods for fetching index pag...
broxtronix authored
353 AX_GROUP_PKG(GUESS_QT, [QT_GUESS_BASE QT_GUESS_CORE QT_GUESS_GUI QT_GUESS_SQL QT_GUESS_NETWORK QT_GUESS_OPENGL])])
9e7c4e5 @broxtronix First checkin of \'vwv\', the Vision Workbench Image Viewer. This is th...
broxtronix authored
354
e794826 @novas0x2a add contourgen to build, and detect cairomm for it
novas0x2a authored
355 PKG_CHECK_MODULES([CAIROMM], [cairomm-1.0], [
356 PKG_CAIROMM_CPPFLAGS="$PKG_CAIROMM_CPPFLAGS $CAIROMM_CFLAGS"
357 ], [HAVE_PKG_CAIROMM="no:$CAIROMM_PKG_ERRORS"])
358 AX_PKG(CAIROMM, [], [$CAIROMM_LIBS], [cairomm/cairomm.h])
359
542980d @broxtronix Checking in the beginnings of support for a distributed mosaicking syste...
broxtronix authored
360 AX_PKG(RABBITMQ_C, [], [-lrabbitmq], [stdlib.h stdint.h amqp.h])
1b8f5a1 @novas0x2a RPC Refactor
novas0x2a authored
361 AX_PKG(ZEROMQ, [], [-lzmq], [zmq.hpp])
1063a62 @broxtronix Small changes to configure.ac to enable building on 64-bit linux.
broxtronix authored
362 AX_PKG(PROTOBUF, [PTHREADS], [-lprotobuf], [google/protobuf/stubs/common.h])
b6b1a24 @zmoratto Also check the standard path for protoc
zmoratto authored
363 AC_PATH_TOOL( PROTOC, [protoc], [no], [$PKG_PATHS_PROTOBUF/bin$PATH_SEPARATOR$PATH])
d6d11ad @zmoratto Added search for protoc in configure
zmoratto authored
364 if test x"$PROTOC" = "xno" && test x"$HAVE_PKG_PROTOBUF" = "xyes"; then
365 AC_MSG_ERROR([cannot find protoc used by protobuf])
366 fi
feb7c4e @zmoratto Added plate2kml
zmoratto authored
367 AX_PKG(LIBKML, [BOOST_THREAD BOOST Z], [-lkmlengine -lkmldom -lkmlbase -lminizip], [kml/engine/kmz_file.h])
e89ba26 @zmoratto Add FLANN as an optional dependency
zmoratto authored
368 AX_PKG(OPENCV, [], [-lcxcore], [opencv/cxcore.h])
369 AX_PKG(FLANN, [], [-lflann_cpp],[flann/flann.hpp])
542980d @broxtronix Checking in the beginnings of support for a distributed mosaicking syste...
broxtronix authored
370
07f839a @novas0x2a fix rabbitmq detection code for the non-in-system-path case
novas0x2a authored
371 old_CXXFLAGS="$CXXFLAGS"
372 old_LDFLAGS="$LDFLAGS"
373 CXXFLAGS="$CXXFLAGS $PKG_RABBITMQ_C_CPPFLAGS"
374 LDFLAGS="$LDFLAGS $PKG_RABBITMQ_C_LIBS"
2e4391e @novas0x2a minor code changes to support newer librabbitmq-c
novas0x2a authored
375 if test x"$HAVE_PKG_RABBITMQ_C" = "xyes"; then
c4bf350 @novas0x2a fix warnings with autoconf 2.68
novas0x2a authored
376 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2e4391e @novas0x2a minor code changes to support newer librabbitmq-c
novas0x2a authored
377 #include <stdlib.h>
378 #include <stdint.h>
379 #include <amqp.h>
380 ]], [[
95a1270 @novas0x2a update rabbitmq-c to latest 0.8
novas0x2a authored
381 amqp_rpc_reply_t x;
382 x.library_error;
c4bf350 @novas0x2a fix warnings with autoconf 2.68
novas0x2a authored
383 ]])], [], [
95a1270 @novas0x2a update rabbitmq-c to latest 0.8
novas0x2a authored
384 HAVE_PKG_RABBITMQ_C="no:current version is too old"
385 AX_PKG(RABBITMQ_C, [], [-lrabbitmq], [stdlib.h stdint.h amqp.h])])
2e4391e @novas0x2a minor code changes to support newer librabbitmq-c
novas0x2a authored
386 fi
07f839a @novas0x2a fix rabbitmq detection code for the non-in-system-path case
novas0x2a authored
387 CXXFLAGS="$old_CXXFLAGS"
388 LDFLAGS="$old_LDFLAGS"
2e4391e @novas0x2a minor code changes to support newer librabbitmq-c
novas0x2a authored
389
653d1ab Added support for TIFF, OpenEXR, and PDS image types, and
Matthew Hancher authored
390 # These are here (instead of inside the PKG macro where they belong)
391 # for backwards compatability with older versions of automake.
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
392 AM_CONDITIONAL(HAVE_PKG_LAPACK, [test "$HAVE_PKG_LAPACK" = "yes"])
653d1ab Added support for TIFF, OpenEXR, and PDS image types, and
Matthew Hancher authored
393 AM_CONDITIONAL(HAVE_PKG_PNG, [test "$HAVE_PKG_PNG" = "yes"])
394 AM_CONDITIONAL(HAVE_PKG_JPEG, [test "$HAVE_PKG_JPEG" = "yes"])
35f061b Updated lots of things to use fully-specified integer types. In
Matthew Hancher authored
395 AM_CONDITIONAL(HAVE_PKG_TIFF, [test "$HAVE_PKG_TIFF" = "yes"])
653d1ab Added support for TIFF, OpenEXR, and PDS image types, and
Matthew Hancher authored
396 AM_CONDITIONAL(HAVE_PKG_OPENEXR, [test "$HAVE_PKG_OPENEXR" = "yes"])
35f061b Updated lots of things to use fully-specified integer types. In
Matthew Hancher authored
397 AM_CONDITIONAL(HAVE_PKG_HDF, [test "$HAVE_PKG_HDF" = "yes"])
d335988 New file IO metadata scheme from templeton branch (branch created at
Todd Templeton authored
398 AM_CONDITIONAL(HAVE_PKG_GDAL, [test "$HAVE_PKG_GDAL" = "yes"])
e794826 @novas0x2a add contourgen to build, and detect cairomm for it
novas0x2a authored
399 AM_CONDITIONAL(HAVE_PKG_CAIROMM, [test "$HAVE_PKG_CAIROMM" = "yes"])
542980d @broxtronix Checking in the beginnings of support for a distributed mosaicking syste...
broxtronix authored
400 AM_CONDITIONAL(HAVE_PKG_RABBITMQ_C, [test "$HAVE_PKG_RABBITMQ_C" = "yes"])
1b8f5a1 @novas0x2a RPC Refactor
novas0x2a authored
401 AM_CONDITIONAL(HAVE_PKG_ZEROMQ, [test "$HAVE_PKG_ZEROMQ" = "yes"])
542980d @broxtronix Checking in the beginnings of support for a distributed mosaicking syste...
broxtronix authored
402 AM_CONDITIONAL(HAVE_PKG_PROTOBUF, [test "$HAVE_PKG_PROTOBUF" = "yes"])
feb7c4e @zmoratto Added plate2kml
zmoratto authored
403 AM_CONDITIONAL(HAVE_PKG_LIBKML, [test "$HAVE_PKG_LIBKML" = "yes"])
7e83e6e @novas0x2a Support for read/write for opencv's cv::Mat
novas0x2a authored
404 AM_CONDITIONAL(HAVE_PKG_OPENCV, [test "$HAVE_PKG_OPENCV" = "yes"])
e89ba26 @zmoratto Add FLANN as an optional dependency
zmoratto authored
405 AM_CONDITIONAL(HAVE_PKG_FLANN, [test "$HAVE_PKG_FLANN" = "yes"])
6b064a1 @novas0x2a Add a basic mod_plate regression test
novas0x2a authored
406 AM_CONDITIONAL(HAVE_PYTHON, [test "$HAVE_PYTHON" = "yes"])
35984ed Partial commit of build system.
Matthew Hancher authored
407
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
408
35984ed Partial commit of build system.
Matthew Hancher authored
409 ##################################################
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
410 # module definitions
35984ed Partial commit of build system.
Matthew Hancher authored
411 ##################################################
412
e5e279a @novas0x2a explicitly depend on boost-graph
novas0x2a authored
413 AX_MODULE(CORE, [src/vw/Core], [libvwCore.la], yes, [], [BOOST BOOST_PROGRAM_OPTIONS THREADS M], [PTHREADS])
e89ba26 @zmoratto Add FLANN as an optional dependency
zmoratto authored
414 AX_MODULE(MATH, [src/vw/Math], [libvwMath.la], yes, [CORE], [BOOST_GRAPH], [LAPACK FLANN])
7e83e6e @novas0x2a Support for read/write for opencv's cv::Mat
novas0x2a authored
415 AX_MODULE(IMAGE, [src/vw/Image], [libvwImage.la], yes, [MATH], [], [OPENCV])
e5e279a @novas0x2a explicitly depend on boost-graph
novas0x2a authored
416 AX_MODULE(FILEIO, [src/vw/FileIO], [libvwFileIO.la], yes, [IMAGE], [BOOST_FILESYSTEM], [Z PNG JPEG TIFF OPENEXR HDF GDAL])
7f55492 @novas0x2a Fix some build things that I can't believe didn't bite us before
novas0x2a authored
417 AX_MODULE(VW, [src/vw], [libvw.la], yes, [], [IMAGE MATH CORE], [FILEIO])
61ad60a @novas0x2a remove libvw.la from PKG_VW_LIBS.
novas0x2a authored
418
ab72d4b @broxtronix More changes to the automake files to support automake 1.10. Added quot...
broxtronix authored
419 if test "${MAKE_MODULE_VW}" != "yes"; then
78a3571 Various build system and documentation tweaks.
Matthew Hancher authored
420 AC_MSG_ERROR([cannot build the Vision Workbench core modules!])
35984ed Partial commit of build system.
Matthew Hancher authored
421 fi
422
61ad60a @novas0x2a remove libvw.la from PKG_VW_LIBS.
novas0x2a authored
423 # remove libvw.la from this. it's a convenience library that just happens to be
424 # installed, but if we link against it, we create multi-path problems
425 PKG_VW_LIBS_TEMP=
426 for i in $PKG_VW_LIBS; do
427 case $i in
428 *libvw\.*) ;;
429 *) PKG_VW_LIBS_TEMP="$PKG_VW_LIBS_TEMP $i" ;;
430 esac
431 done
432 PKG_VW_LIBS="$PKG_VW_LIBS_TEMP"
433
f801487 @zmoratto Make Protobuffers for Camera Module Optional
zmoratto authored
434 AX_MODULE(CAMERA, [src/vw/Camera], [libvwCamera.la], yes, [VW], [], [BOOST_IOSTREAMS PROTOBUF])
54c9e4c @novas0x2a neaten up configure.ac a bit, and turn on BA by default
novas0x2a authored
435 AX_MODULE(INTERESTPOINT, [src/vw/InterestPoint], [libvwInterestPoint.la], yes, [VW])
403e99e @khusmann added a protobuf description for Datum, as well as a quick test for it
khusmann authored
436 AX_MODULE(CARTOGRAPHY, [src/vw/Cartography], [libvwCartography.la], yes, [VW], [PROJ4], [GDAL PROTOBUF])
b237986 @novas0x2a change where mosaic output georef is calculated
novas0x2a authored
437 AX_MODULE(MOSAIC, [src/vw/Mosaic], [libvwMosaic.la], yes, [CARTOGRAPHY VW])
54c9e4c @novas0x2a neaten up configure.ac a bit, and turn on BA by default
novas0x2a authored
438 AX_MODULE(HDR, [src/vw/HDR], [libvwHDR.la], yes, [CAMERA VW], [LAPACK])
439 AX_MODULE(STEREO, [src/vw/Stereo], [libvwStereo.la], yes, [CAMERA VW])
440 AX_MODULE(GEOMETRY, [src/vw/Geometry], [libvwGeometry.la], yes, [VW])
441 AX_MODULE(BUNDLEADJUSTMENT, [src/vw/BundleAdjustment], [libvwBundleAdjustment.la], yes, [CAMERA CARTOGRAPHY INTERESTPOINT STEREO VW])
5a5c028 @zmoratto Added GDAL as a dependency of Plate
zmoratto authored
442 AX_MODULE(PLATE, [src/vw/Plate], [libvwPlate.la], no, [CARTOGRAPHY VW], [PROTOBUF GDAL BOOST_FILESYSTEM BOOST_REGEX BOOST_IOSTREAMS BOOST_PROGRAM_OPTIONS THREADS], [RABBITMQ_C ZEROMQ LIBKML])
e0635e6 @novas0x2a make zmq and rabbitmq both optional (with a warning if you skip both)
novas0x2a authored
443 AS_IF([test x"$MAKE_MODULE_PLATE" = "xyes"],
444 [AS_IF([test x"$HAVE_PKG_RABBITMQ_C" != "xyes"],
445 [AS_IF([test x"$HAVE_PKG_ZEROMQ" != "xyes"],
446 [AC_MSG_WARN([You have neither rabbitmq_c nor zeromq. Plate network support will be disabled.])])])])
447
54c9e4c @novas0x2a neaten up configure.ac a bit, and turn on BA by default
novas0x2a authored
448 AX_MODULE(TOOLS, [src/vw/tools], [], yes, [VW], [BOOST_FILESYSTEM BOOST_PROGRAM_OPTIONS THREADS])
6f6e1af @zmoratto gui: Make plate module optional
zmoratto authored
449 AX_MODULE(GUI, [src/vw/gui], [], no, [VW], [QT BOOST_PROGRAM_OPTIONS GL], [PLATE])
54c9e4c @novas0x2a neaten up configure.ac a bit, and turn on BA by default
novas0x2a authored
450 AX_MODULE_PYTHON( [src/vw/Python], [no])
0cf9c54 @novas0x2a add photometry to build (disabled by default)
novas0x2a authored
451
e35d615 @broxtronix Made a few minor changes to OpenGL detection to better support the GPU m...
broxtronix authored
452 if test $host_vendor = apple; then
9dd5371 @novas0x2a fix missing module deps
novas0x2a authored
453 AX_MODULE(GPU, [src/vw/GPU], [libvwGPU.la], no, [VW], [GL], [CG])
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
454 else
9dd5371 @novas0x2a fix missing module deps
novas0x2a authored
455 AX_MODULE(GPU, [src/vw/GPU], [libvwGPU.la], no, [VW], [GL GLEW], [CG])
e35d615 @broxtronix Made a few minor changes to OpenGL detection to better support the GPU m...
broxtronix authored
456 fi
e67cafa @novas0x2a here's a crack at integrating the python bindings into the build
novas0x2a authored
457
7f29a19 Minor IRG/Linux portability bugfixes.
Matthew Hancher authored
458 # These are here (instead of inside the MODULE macro where they belong)
459 # for backwards compatability with older versions of automake.
54c9e4c @novas0x2a neaten up configure.ac a bit, and turn on BA by default
novas0x2a authored
460 AM_CONDITIONAL(MAKE_MODULE_CORE, [test "$MAKE_MODULE_CORE" = "yes"])
461 AM_CONDITIONAL(MAKE_MODULE_MATH, [test "$MAKE_MODULE_MATH" = "yes"])
462 AM_CONDITIONAL(MAKE_MODULE_IMAGE, [test "$MAKE_MODULE_IMAGE" = "yes"])
463 AM_CONDITIONAL(MAKE_MODULE_FILEIO, [test "$MAKE_MODULE_FILEIO" = "yes"])
464 AM_CONDITIONAL(MAKE_MODULE_VW, [test "$MAKE_MODULE_VW" = "yes"])
465 AM_CONDITIONAL(MAKE_MODULE_CAMERA, [test "$MAKE_MODULE_CAMERA" = "yes"])
466 AM_CONDITIONAL(MAKE_MODULE_MOSAIC, [test "$MAKE_MODULE_MOSAIC" = "yes"])
467 AM_CONDITIONAL(MAKE_MODULE_INTERESTPOINT, [test "$MAKE_MODULE_INTERESTPOINT" = "yes"])
468 AM_CONDITIONAL(MAKE_MODULE_CARTOGRAPHY, [test "$MAKE_MODULE_CARTOGRAPHY" = "yes"])
469 AM_CONDITIONAL(MAKE_MODULE_HDR, [test "$MAKE_MODULE_HDR" = "yes"])
470 AM_CONDITIONAL(MAKE_MODULE_STEREO, [test "$MAKE_MODULE_STEREO" = "yes"])
471 AM_CONDITIONAL(MAKE_MODULE_GEOMETRY, [test "$MAKE_MODULE_GEOMETRY" = "yes"])
ff54bc4 @zmoratto BundleAdjustment moved to own module
zmoratto authored
472 AM_CONDITIONAL(MAKE_MODULE_BUNDLEADJUSTMENT, [test "$MAKE_MODULE_BUNDLEADJUSTMENT" = "yes"])
54c9e4c @novas0x2a neaten up configure.ac a bit, and turn on BA by default
novas0x2a authored
473 AM_CONDITIONAL(MAKE_MODULE_PLATE, [test "$MAKE_MODULE_PLATE" = "yes"])
474 AM_CONDITIONAL(MAKE_MODULE_TOOLS, [test "$MAKE_MODULE_TOOLS" = "yes"])
475 AM_CONDITIONAL(MAKE_MODULE_GUI, [test "$MAKE_MODULE_GUI" = "yes"])
476 AM_CONDITIONAL(MAKE_MODULE_PYTHON, [test "$MAKE_MODULE_PYTHON" = "yes"])
477 AM_CONDITIONAL(MAKE_MODULE_GPU, [test "$MAKE_MODULE_GPU" = "yes"])
35984ed Partial commit of build system.
Matthew Hancher authored
478
39b0fa7 @broxtronix Added a config flag for changing the target architecture (to support 64-...
broxtronix authored
479
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
480 ##################################################
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
481 # final processing
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
482 ##################################################
483
09c7eac @zmoratto all: Make VW compliant with Boost FS v3
zmoratto authored
484 VW_CPPFLAGS="-I\${abs_top_srcdir}/src -I\${abs_top_builddir}/src $OTHER_CPPFLAGS"
54183f2 @novas0x2a Mostly sync the macros between vw & stereo. This is good either if we st...
novas0x2a authored
485 VW_LDFLAGS="$OTHER_LDFLAGS"
486
8160c7e @novas0x2a disable strict aliasing by default
novas0x2a authored
487 # Do this last, to make sure it's not overridden
488 if test x"$ENABLE_STRICT_ALIASING" = x"no"; then
489 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
490 fi
491
0bc15e1 @novas0x2a remove last "verbose" flags, and make boost_lib simpler
novas0x2a authored
492 AX_LOG([using CPPFLAGS=$CPPFLAGS])
493 AX_LOG([using VW_CPPFLAGS=$VW_CPPFLAGS])
494 AX_LOG([using CFLAGS=$CFLAGS])
495 AX_LOG([using CXXFLAGS=$CXXFLAGS])
496 AX_LOG([using LDFLAGS=$LDFLAGS])
497 AX_LOG([using VW_LDFLAGS=$VW_LDFLAGS])
498 AX_LOG([using VW_ENABLE_EXCEPTIONS=$ENABLE_EXCEPTIONS])
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
499
500 AC_SUBST(VW_CPPFLAGS)
501 AC_SUBST(VW_LDFLAGS)
df782f3 @novas0x2a integrate static scripts, and fix hardcoded path
novas0x2a authored
502 AC_SUBST(LCOV_REMOTE_PATH)
503 AC_SUBST(DEHYDRA_GCC)
504 AC_SUBST(DEHYDRA_PLUGIN)
850e3bc A first cut at a significant overhaul of the configuration
Matthew Hancher authored
505
35984ed Partial commit of build system.
Matthew Hancher authored
506 ##################################################
65ccfa4 @novas0x2a giving configure.ac a lot of love... and surgery. of love.
novas0x2a authored
507 # makefiles to process
35984ed Partial commit of build system.
Matthew Hancher authored
508 ##################################################
509
510 AC_CONFIG_FILES([ \
511 Makefile \
512 src/Makefile \
9a50422 @zmoratto Added geotif-generate and image2qtree_test.py
zmoratto authored
513 src/test/Makefile \
35984ed Partial commit of build system.
Matthew Hancher authored
514 src/vw/Makefile \
9927df7 Added CMU copyright to source file headers. Added support in the
Matthew Hancher authored
515 src/vw/tools/Makefile \
9e7c4e5 @broxtronix First checkin of \'vwv\', the Vision Workbench Image Viewer. This is th...
broxtronix authored
516 src/vw/gui/Makefile \
1d1fda3 @broxtronix Added some code to do Blob IO. Seems to work.
broxtronix authored
517 src/vw/Plate/Makefile \
518 src/vw/Plate/tests/Makefile \
d4f6d1c @zmoratto Build should include google sparsehash headers
zmoratto authored
519 src/vw/Plate/google/Makefile \
520 src/vw/Plate/google/sparsehash/Makefile \
35984ed Partial commit of build system.
Matthew Hancher authored
521 src/vw/Core/Makefile \
eff0531 Reworked the build system and especially the test system to
Matthew Hancher authored
522 src/vw/Core/tests/Makefile \
523 src/vw/Math/Makefile \
524 src/vw/Math/tests/Makefile \
35984ed Partial commit of build system.
Matthew Hancher authored
525 src/vw/Image/Makefile \
eff0531 Reworked the build system and especially the test system to
Matthew Hancher authored
526 src/vw/Image/tests/Makefile \
35984ed Partial commit of build system.
Matthew Hancher authored
527 src/vw/FileIO/Makefile \
eff0531 Reworked the build system and especially the test system to
Matthew Hancher authored
528 src/vw/FileIO/tests/Makefile \
6ee7dbe @broxtronix Added in the Camera Module. So far it compiles and passes its (one)
broxtronix authored
529 src/vw/Camera/Makefile \
530 src/vw/Camera/tests/Makefile \
920ff5f Added Image/Algorithms.h, mostly untested, including a
Matthew Hancher authored
531 src/vw/Mosaic/Makefile \
532 src/vw/Mosaic/tests/Makefile \
78a3571 Various build system and documentation tweaks.
Matthew Hancher authored
533 src/vw/Cartography/Makefile \
534 src/vw/Cartography/tests/Makefile \
9f51ac0 Varioius build-system-related tweaks.
Matthew Hancher authored
535 src/vw/HDR/Makefile \
536 src/vw/HDR/tests/Makefile \
78a3571 Various build system and documentation tweaks.
Matthew Hancher authored
537 src/vw/Stereo/Makefile \
538 src/vw/Stereo/tests/Makefile \
059a0ed @broxtronix Added example config.options files for both IRG and generic distribution...
broxtronix authored
539 src/vw/GPU/Makefile \
540 src/vw/GPU/tests/Makefile \
2a29bbf @broxtronix After thinking about this some more, I am adding the Geometry module bac...
broxtronix authored
541 src/vw/Geometry/Makefile \
542 src/vw/Geometry/tests/Makefile \
701ea7a @broxtronix Added a new set of routines for fitting a similarity or homography to
broxtronix authored
543 src/vw/InterestPoint/Makefile \
544 src/vw/InterestPoint/tests/Makefile \
2d8c298 @novas0x2a Move Python into src/vw so it can be disabled by make dist the same as a...
novas0x2a authored
545 src/vw/Python/vw/Makefile \
546 src/vw/Python/Makefile \
ff54bc4 @zmoratto BundleAdjustment moved to own module
zmoratto authored
547 src/vw/BundleAdjustment/Makefile \
548 src/vw/BundleAdjustment/tests/Makefile \
35984ed Partial commit of build system.
Matthew Hancher authored
549 ])
550
551 AC_OUTPUT
Something went wrong with that request. Please try again.