Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 299 lines (240 sloc) 10.656 kb
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
1 # __BEGIN_LICENSE__
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
2 #
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
3 # Copyright (C) 2006 United States Government as represented by the
4 # Administrator of the National Aeronautics and Space Administration
5 # (NASA). All Rights Reserved.
6 #
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
7 # Copyright 2006 Carnegie Mellon University. All rights reserved.
8 #
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
9 # This software is distributed under the NASA Open Source Agreement
10 # (NOSA), version 1.3. The NOSA has been approved by the Open Source
11 # Initiative. See the file COPYING at the top of the distribution
12 # directory tree for the complete NOSA document.
13 #
14 # THE SUBJECT SOFTWARE IS PROVIDED "AS IS" WITHOUT ANY WARRANTY OF ANY
15 # KIND, EITHER EXPRESSED, IMPLIED, OR STATUTORY, INCLUDING, BUT NOT
16 # LIMITED TO, ANY WARRANTY THAT THE SUBJECT SOFTWARE WILL CONFORM TO
17 # SPECIFICATIONS, ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR
18 # A PARTICULAR PURPOSE, OR FREEDOM FROM INFRINGEMENT, ANY WARRANTY THAT
19 # THE SUBJECT SOFTWARE WILL BE ERROR FREE, OR ANY WARRANTY THAT
20 # DOCUMENTATION, IF PROVIDED, WILL CONFORM TO THE SUBJECT SOFTWARE.
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
21 #
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
22 # __END_LICENSE__
23
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
24 AC_INIT([NASA Ames Stereo Pipeline], [2.1], [asp@nx.arc.nasa.gov], [StereoPipeline])
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
25 AC_CONFIG_AUX_DIR(config)
26 AC_CANONICAL_HOST
27 AM_INIT_AUTOMAKE
28 AX_CONFIG_HEADER_PREFIX([src/asp_config.h], [ASP_])
29
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
30 LIBTOOL_CURRENT=1
31 LIBTOOL_REVISION=0
32 LIBTOOL_AGE=0
33 LIBTOOL_VERSION=$LIBTOOL_CURRENT:$LIBTOOL_REVISION:$LIBTOOL_AGE
34 AC_SUBST(LIBTOOL_VERSION)
35
36
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
37 ##################################################
38 # configuration options
39 ##################################################
40
41 # This should be first, so everything else can use it
42 AC_ARG_ENABLE(verbose,
43 AC_HELP_STRING([--enable-verbose], [verbose configuration output @<:@no@:>@]),
44 [ ENABLE_VERBOSE=$enableval ],
45 [ if test -z $"ENABLE_VERBOSE"; then ENABLE_VERBOSE=no; fi ]
46 )
47
48 if test -f config.options; then
49 if test "yes" = "$ENABLE_VERBOSE" ; then
50 AC_MSG_NOTICE([sourcing config.options])
51 cat config.options
52 fi
53 source config.options
54 fi
55
56 AC_ARG_WITH(paths,
57 AC_HELP_STRING([--with-paths=PATHS], [additional search path(s) for packages]),
58 [ PKG_PATHS="$withval $PKG_PATHS" ]
59 )
60 PKG_PATHS="${PKG_PATHS} ${HOME} ${HOME}/local /sw /opt /opt/local /usr/local /usr/X11R6 /usr"
61
62
63 ##################################################
64 # compilation options
65 ##################################################
66
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
67 CPPFLAGS="$CPPFLAGS -I\${top_srcdir}/src -I/Users/mbroxton/local/qt-4.3.2/include/ -I/Users/mbroxton/local/qt-4.3.2/include/QtCore"
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
68
69 AC_ARG_ENABLE(debug,
70 AC_HELP_STRING([--enable-debug], [generate debugging symbols @<:@no@:>@]),
71 [ ENABLE_DEBUG=$enableval ],
72 [ if test -z "$ENABLE_DEBUG"; then ENABLE_DEBUG=no; fi ]
73 )
74
75 if test "yes" = "$ENABLE_DEBUG"; then
76 AX_CFLAGS="$AX_CFLAGS -g -DDEBUG"
77 else
78 AX_CFLAGS="$AX_CFLAGS -DNDEBUG"
79 fi
80
81 AC_ARG_ENABLE(optimize,
82 AC_HELP_STRING([--enable-optimize@<:@=LEVEL@:>@], [compiler optimization level @<:@yes@:>@]),
83 [ ENABLE_OPTIMIZE=$enableval ],
84 [ if test -z "$ENABLE_OPTIMIZE"; then ENABLE_OPTIMIZE=yes; fi ]
85 )
86
87 if test "yes" = "$ENABLE_OPTIMIZE" || test "3" = "$ENABLE_OPTIMIZE"; then
88 AX_CFLAGS="$AX_CFLAGS -O3"
89 elif test "2" = "$ENABLE_OPTIMIZE"; then
90 AX_CFLAGS="$AX_CFLAGS -O2"
91 elif test "1" = "$ENABLE_OPTIMIZE"; then
92 AX_CFLAGS="$AX_CFLAGS -O1"
93 elif test "coreduo" = "$ENABLE_OPTIMIZE"; then
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
94 AX_CFLAGS="$AX_CFLAGS -O4 -march=prescott -mtune=prescott -funroll-loops -msse -msse2 -msse3 -mfpmath=sse"
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
95 elif test "sse3" = "$ENABLE_OPTIMIZE"; then
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
96 AX_CFLAGS="$AX_CFLAGS -O4 -funroll-loops -msse -msse2 -msse3 -mfpmath=sse"
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
97 else
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
98 echo 'WARNING: *** The Vision Workbench may not work properly with optimization disabled! ***'
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
99 AX_CFLAGS="$AX_CFLAGS -O0"
100 fi
101
102 CFLAGS="$CFLAGS $AX_CFLAGS"
103 CXXFLAGS="$CXXFLAGS $AX_CFLAGS"
104
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
105 AC_ARG_ENABLE(exceptions,
106 AC_HELP_STRING([--enable-exceptions@<:@=yes@:>@], [enable the C++ exception mechanism]),
107 [ ENABLE_EXCEPTIONS=$enableval ],
108 [ if test -z "$ENABLE_EXCEPTIONS"; then ENABLE_EXCEPTIONS=yes; fi ]
109 )
110
111 if test "$ENABLE_EXCEPTIONS" = "yes"; then
112 no_exceptions=0
113 else
114 no_exceptions=1
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
115 fi
116
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
117 AM_CONDITIONAL(ENABLE_EXCEPTIONS, [test "$ENABLE_EXCEPTIONS" = "yes"])
118
119 AC_DEFINE_UNQUOTED(NO_EXCEPTIONS,
120 [$no_exceptions],
121 [Define to 1 to disable C++ exceptions.])
122
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
123 # We set up the include paths ourselves, so
124 # we ask autoconf to get out of the way.
125 DEFAULT_INCLUDES=
126 AC_SUBST(DEFAULT_INCLUDES)
127
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
128
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
129 ##################################################
130 # installation options
131 ##################################################
132
133 if test ${prefix} = NONE; then
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
134 if test ! -z ${PREFIX} ; then
135 prefix=${PREFIX}
136 AC_MSG_NOTICE([using installation prefix ${prefix}])
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
137 fi
138 fi
139
140
141 ##################################################
142 # distribution options
143 ##################################################
144
145 AC_ARG_WITH(dist-license,
146 AC_HELP_STRING([--with-dist-license=LICENSE], [special distribution license file to be included as the COPYING file in the distribution]),
147 [DIST_LICENSE=$withval]
148 )
149 AC_SUBST(DIST_LICENSE)
150 AM_CONDITIONAL(DIST_LICENSE, [test ! -z "$DIST_LICENSE"])
151
152 if test ! -z "$DIST_LICENSE" ; then
153 AC_MSG_NOTICE([using distribution license file $DIST_LICENSE])
154 fi
155
156 AC_ARG_WITH(dist-license-summary,
157 AC_HELP_STRING([--with-dist-license-summary=SUMMARY], [special distribution license summary file to be included in the headers of source files in the distribution]),
158 [DIST_LICENSE_SUMMARY=$withval]
159 )
160 AC_SUBST(DIST_LICENSE_SUMMARY)
161 AM_CONDITIONAL(DIST_LICENSE_SUMMARY, [test ! -z "$DIST_LICENSE_SUMMARY"])
162
163 if test ! -z "$DIST_LICENSE_SUMMARY" ; then
164 AC_MSG_NOTICE([using distribution license summary file $DIST_LICENSE_SUMMARY])
165 fi
166
167 AC_ARG_WITH(dist-config-options-default,
168 AC_HELP_STRING([--with-dist-config-options-default@<:@=FILE@:>@], [special distribution config.options.default file]),
169 [DIST_CONFIG_OPTIONS_DEFAULT=$withval]
170 )
171 AC_SUBST(DIST_CONFIG_OPTIONS_DEFAULT)
172 AM_CONDITIONAL(DIST_CONFIG_OPTIONS_DEFAULT, [test ! -z "$DIST_CONFIG_OPTIONS_DEFAULT"])
173
174 if test ! -z "$DIST_CONFIG_OPTIONS_DEFAULT" ; then
175 if test "yes" = "$DIST_CONFIG_OPTIONS_DEFAULT" ; then
176 DIST_CONFIG_OPTIONS_DEFAULT="config/config.options.default"
177 fi
178 AC_MSG_NOTICE([using distribution config.options.default file: $DIST_CONFIG_OPTIONS_DEFAULT])
179 fi
180
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
181 AC_ARG_WITH(dist-remove-modules,
182 AC_HELP_STRING([--with-dist-remove-modules="MODULE @<:@MODULE...@:>@"], [remove certain modules from the distribution]),
183 [DIST_REMOVE_MODULES=$withval], [DIST_REMOVE_MODULES="Geometry InterestPoint Python"]
184 )
185 AC_SUBST(DIST_REMOVE_MODULES)
186 AM_CONDITIONAL(DIST_REMOVE_MODULES, [test ! -z "$DIST_REMOVE_MODULES"])
187
188
189 ##################################################
190 # library options
191 ##################################################
192
193 if test -z $NUM_THREADS ; then NUM_THREADS=4 ; fi
194 AH_TEMPLATE([NUM_THREADS],
195 [Define to the default number of threads that the Vision
196 Workbench should spawn for multi-threaded operations.])
197 AC_ARG_WITH(num-threads,
198 AC_HELP_STRING([--with-num-threads[=4]], [set the default number of processing threads for multi-threaded operations]),
199 [NUM_THREADS=$withval])
200 AC_DEFINE_UNQUOTED([NUM_THREADS],[$NUM_THREADS])
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
201
202 ##################################################
203 # package checks
204 ##################################################
205
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
206 # Make sure these are set so AC_PROG_CC doesn't initialize them with
207 # its defaults, since we take care of setting debug and optimization
208 # levels ourselves.
209 CFLAGS="$CFLAGS"
210 CXXFLAGS="$CXXFLAGS"
211
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
212 AC_PROG_CC
213 AC_PROG_CXX
214 AC_PROG_INSTALL
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
215 AX_PROG_AR
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
216 AC_PROG_LIBTOOL
217 AC_PROG_MAKE_SET
218
e89f1e9 Michael Broxton Re-enabled the ISIS stereo code and integrated it with the normal stereo...
broxtronix authored
219 # Qt with AutoTroll.
220 #AT_WITH_QT
221
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
222 if test "yes" = "$ENABLE_VERBOSE"; then
223 AC_MSG_NOTICE([using PKG_PATHS=$PKG_PATHS])
224 fi
225
226 AX_PKG_PTHREADS
227
228 AX_PKG_BOOST
229 AX_PKG_BOOST_LIB(PROGRAM_OPTIONS, [-lboost_program_options], [boost/program_options.hpp])
230 AX_PKG_BOOST_LIB(FILESYSTEM, [-lboost_filesystem], [boost/filesystem/path.hpp])
231 AX_PKG_BOOST_LIB(THREAD, [-lboost_thread], [boost/thread/thread.hpp])
232
233 AX_PKG_LAPACK
234
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
235 # This provides an easy way for users to override the threads options
236 # if they are replacing Boost threads with something else for their platform.
237 AX_PKG(THREADS, [BOOST_THREAD], [], [])
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
238
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
239 AX_PKG(VW, [], [-lvw], [vw/Image/ImageView.h vw/Math/LinearAlgebra.h])
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
240 AX_PKG(VW_STEREO, [], [-lvwStereo], [vw/Stereo/OptimizedCorrelator.h])
241 AX_PKG(VW_CAMERA, [], [-lvwCamera], [vw/Camera/CAHVModel.h])
242 AX_PKG(VW_CARTOGRAPHY, [], [-lvwCartography], [vw/Cartography/GeoReference.h])
243 AX_PKG(VW_INTEREST_POINT, [], [-lvwInterestPoint])
244
4e683ee Michael Broxton Final batch of checkins for the night.
broxtronix authored
245 AX_PKG(OPENSCENEGRAPH, [], [-losg -losgDB -lOpenThreads], [osg/ref_ptr])
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
246 AX_PKG(MBA, [], [-lMBA_1.0_gpl_nopt], [MBA.h])
247 AX_PKG(SPICE, [], [-lcspice -lcsupport], [SpiceUsr.h SpiceZfc.h])
e89f1e9 Michael Broxton Re-enabled the ISIS stereo code and integrated it with the normal stereo...
broxtronix authored
248
249 AX_PKG(QT_CORE, [], [], [QVector], [QtCore])
250 AX_PKG(QT_GUI, [], [], [QLabel], [QtGui])
251 AX_PKG(ISIS3RDPARTY, [], [-lgeos -lxerces-c -lgsl -lgslcblas -liconv -lqwt])
252 AX_PKG(ISIS, [], [-lisis3])
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
253
200be14 Michael Broxton A few tweaks to the stereo build system to get it to work on os 10.5
broxtronix authored
254 AM_CONDITIONAL(HAVE_PKG_ISIS, [test "$HAVE_PKG_ISIS" = "yes"])
255
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
256 ##################################################
257 # module definitions
258 ##################################################
259
e89f1e9 Michael Broxton Re-enabled the ISIS stereo code and integrated it with the normal stereo...
broxtronix authored
260 AX_APP(STEREO, [src], yes, [BOOST BOOST_PROGRAM_OPTIONS BOOST_FILESYSTEM VW VW_CAMERA VW_CARTOGRAPHY VW_STEREO VW_INTEREST_POINT LAPACK MBA SPICE], [ISIS ISIS3RDPARTY QT_CORE QT_GUI])
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
261 AX_APP(DISPARITYDEBUG, [src], yes, [BOOST BOOST_PROGRAM_OPTIONS VW VW_STEREO])
262 AX_APP(POINT2MESH, [src], yes, [BOOST BOOST_PROGRAM_OPTIONS VW OPENSCENEGRAPH])
263 AX_APP(POINT2DEM, [src], yes, [BOOST BOOST_PROGRAM_OPTIONS VW VW_CARTOGRAPHY])
e89f1e9 Michael Broxton Re-enabled the ISIS stereo code and integrated it with the normal stereo...
broxtronix authored
264 AX_APP(NURBS, [src], no, [BOOST BOOST_PROGRAM_OPTIONS VW MBA])
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
265 AX_APP(CTXIMAGE, [src], no, [BOOST BOOST_PROGRAM_OPTIONS VW VW_CARTOGRAPHY])
b9d9242 Michael Broxton Continuing work on the RMAX bundle adjustment code. There are numerous ...
broxtronix authored
266 AX_APP(RMAX2CAHVOR, [src], no, [BOOST VW VW_CAMERA BOOST_PROGRAM_OPTIONS BOOST_FILESYSTEM])
267 AX_APP(RMAXADJUST, [src], no, [BOOST BOOST_PROGRAM_OPTIONS BOOST_FILESYSTEM VW VW_CAMERA VW_STEREO LAPACK])
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
268
269 ##################################################
270 # final processing
271 ##################################################
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
272
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
273 if test "yes" = "$ENABLE_VERBOSE" ; then
274 AC_MSG_NOTICE([using CPPFLAGS=$CPPFLAGS $ASP_CPPFLAGS])
275 AC_MSG_NOTICE([using CFLAGS=$CFLAGS])
276 AC_MSG_NOTICE([using CXXFLAGS=$CXXFLAGS])
277 AC_MSG_NOTICE([using LDFLAGS=$LDFLAGS $ASP_LDFLAGS])
278 AC_MSG_NOTICE([using ASP_NO_EXCEPTIONS=$no_exceptions])
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
279 fi
280
a74972c Michael Broxton Merged in changes from the isis_devel branch. Improvements include an u...
broxtronix authored
281 AC_SUBST(ASP_CPPFLAGS)
282 AC_SUBST(ASP_LDFLAGS)
283
284
bf17a24 Michael Broxton Re-arranged the repository...
broxtronix authored
285 ##################################################
286 # makefiles to process
287 ##################################################
288
289 AC_CONFIG_FILES([ \
290 Makefile \
291 src/Makefile \
292 ])
293
294 # This hideous hack makes it possible to use GNU make's conditionals.
295 ENDIF=endif
296 AC_SUBST(ENDIF)
297
298 AC_OUTPUT
Something went wrong with that request. Please try again.