configure.in 142 KB
Newer Older
hrchilds's avatar
hrchilds committed
1 2 3 4
dnl Process this file with autoconf to produce configure.
dnl 
dnl 
dnl 
whitlocb's avatar
whitlocb committed
5
dnl                            Copyright 2000 - 2008
hrchilds's avatar
hrchilds committed
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
dnl                 The Regents of the University of California.
dnl                             All rights reserved.
dnl 
dnl This work was produced at the University of California, Lawrence Livermore
dnl National Laboratory (UC LLNL)  under contract no.  W-7405-ENG-48 (Contract
dnl 48) between  the U.S. Department of Energy  (DOE)  and The Regents  of the
dnl University  of  California  (University)  for  the  operation of  UC LLNL.
dnl Copyright   is  reserved to  the   University for  purposes  of controlled
dnl dissemination,   commercialization  through  formal licensing,   or  other
dnl disposition under  terms of Contract   48; DOE policies,  regulations  and
dnl orders; and  U.S. statutes.  The    rights of the  Federal Government  are
dnl reserved under Contract 48 subject to  the restrictions agreed upon by DOE
dnl and University.
dnl 
dnl                                 DISCLAIMER
dnl 
dnl This software was prepared as an account of work sponsored by an agency of
dnl the United States Government. Neither the United States Government nor the
dnl University  of California nor any of  their employees, makes any warranty,
dnl express or implied,  or assumes  any liability  or responsiblity  for  the
dnl accuracy, completeness, or    usefullness of any  information,  apparatus,
dnl product, or  process   disclosed, or represents that  its   use would  not
dnl infringe privately    owned  rights. Reference   herein  to  any  specific
dnl commercial  products, process,  or    service by trade   name,  trademark,
dnl manufacturer, or otherwise, does  not necessarily constitute or imply  its
dnl endorsement, recommendation, or  favoring by the United  States Government
dnl or the   University  of  California.  The views   and  opinions of authors
dnl expressed herein do not  necessarily state or  reflect those of the United
dnl States Government  or the University of  California, and shall not be used
dnl for advertising or product endorsement purposes.
dnl

dnl
dnl
dnl Modifications:
dnl    Jeremy Meredith, Mon Aug  7 12:02:49 PDT 2000
dnl    Added the parsing of object files from the Makefile.in's.
dnl
dnl    Kathleen Bonnell, Thu Oct 12 12:18:02 PDT 2000
dnl    Added visit_vtk subdirectory, VISIT_VTK_CPPFLAGS, VISIT_VTK_FILES
dnl
dnl    Brad Whitlock, Tue Oct 31 14:40:24 PST 2000
dnl    Made sure libvtkqt.a gets built. I also removed the check for GLR
dnl    remotely rendered hw accelerated graphics.
dnl
dnl    Eric Brugger, Tue Nov 14 08:20:47 PST 2000
dnl    Remove unnecessary tests.
dnl
dnl    Eric Brugger, Fri Nov 17 11:51:58 PST 2000
dnl    I added checks for -lXt and -lXext on AIX systems.  I removed the test
dnl    for inline.
dnl
dnl    Hank Childs, Mon Nov 20 15:24:32 PST 2000
dnl    Set up components for parallel.
dnl
dnl    Eric Brugger, Wed Dec  6 12:35:25 PST 2000
dnl    I added the option --disable-mdserver.  I modified the script to not
dnl    build components/VisWindow if --disable-gui is on.  I made a few
dnl    other fixes for building a parallel version on AIX systems.
dnl
dnl    Eric Brugger, Thu Dec  7 12:03:10 PST 2000
dnl    I added checks for -lXt on OSF systems.
dnl
dnl    Jeremy Meredith, Tue Dec 12 13:48:44 PST 2000
dnl    Added "mir" common directory.
dnl
dnl    Eric Brugger, Fri Feb 16 17:57:34 PST 2001
dnl    I made the checks for the X and OpenGL always occur since the engine
dnl    now needs them and the engine is always built.
dnl
dnl    Eric Brugger, Mon Feb 26 15:35:22 PST 2001
dnl    I added the outputing of Makefiles for all the directories in the
dnl    plot directory tree.
dnl
dnl    Eric Brugger, Fri Mar  2 14:43:44 PST 2001
dnl    I added the outputing of the Makefile in the plot/Contour directory.
dnl
dnl    Eric Brugger, Tue Mar  6 16:34:17 PST 2001
dnl    I renamed the file config.h to visit-config.h to avoid name conflicts
dnl    with public header files.
dnl
dnl    Hank Childs, Thu Mar  8 15:40:26 PST 2001
dnl    Added directories for components/Database.
dnl
dnl    Eric Brugger, Thu Mar  8 08:42:05 PST 2001
dnl    I added the outputing of the Makefile in the plot/Manager directory.
dnl
dnl    Hank Childs, Sat Mar 10 18:20:57 PST 2001
dnl    Added an option for timings.
dnl
hrchilds's avatar
hrchilds committed
96 97
dnl    Eric Brugger, Thu Mar 15 17:13:09 PST 2001
dnl    Modify the script to not generate viewer/cli/Makefile since the cli
hrchilds's avatar
hrchilds committed
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 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313
dnl    directory has been removed.
dnl
dnl    Jim Reus, Fri Mar 23 06:42:10 PST 2001
dnl    Add tests for ZLIB, HDF5, VBT/DSL, and SAF. These are loosely based
dnl    on previous work I had done for the SAF read-only driver for SILO.
dnl    This added four new "with" options to configure:
dnl
dnl        --with-zlib=INCDIR,LIBDIR
dnl        --with-hdf=INCDIR,LIBDIR
dnl        --with-vbt=INCDIR,LIBDIR
dnl        --with-saf=INCDIR,LIBDIR
dnl
dnl    Eric Brugger, Mon Mar 26 13:07:16 PST 2001
dnl    Turn off the compilation of the GUI sources in the plot directories
dnl    if the GUI is disabled.
dnl
dnl    Jeremy Meredith, Wed Mar 28 15:15:25 PST 2001
dnl    Changed the way the GUI is disabled.  Added substitution parameters
dnl    to disable the viewer and engine as well.
dnl
dnl    Sean Ahern, Wed Apr 25 08:52:41 PDT 2001
dnl    Made the OS_RULE apply always so we don't wink in things across OSes.
dnl    Changed some of the "dnl" comments to "#" so that we get them in
dnl    "configure".
dnl
dnl    Jeremy Meredith, Thu Apr 26 13:53:14 PDT 2001
dnl    Added check for SysV vs BSD style pseudo-tty.
dnl
dnl    Eric Brugger, Fri Apr 27 18:40:54 PDT 2001
dnl    I added a check to see if there exists a prototype for ftime in
dnl    "sys/timeb.h".
dnl
dnl    Jeremy Meredith, Thu May 10 17:26:29 PDT 2001
dnl    Added checks for network libraries for SunOS (nsl, socket, resolv).
dnl    Added check for qgl.  Added code for plugins.
dnl    Added stuff to figure out how to build shared libraries.
dnl
dnl    Jeremy Meredith, Wed Jun  6 22:19:11 PDT 2001
dnl    Added a check to see if socklen_t exists.
dnl
dnl    Hank Childs, Wed Jun 13 16:01:50 PDT 2001
dnl    Changed around the location of a bunch of Makefiles.
dnl
dnl    Jeremy Meredith, Mon Jun 25 21:43:10 PDT 2001
dnl    Added PX (Parallel eXtension) as either _ser or _par.
dnl    Changed the definitions of SHLIB_POSTPROCESS slightly.
dnl    Added definition of PLUGIN_EXTENSION.
dnl
dnl    Jeremy Meredith, Mon Jul 23 00:46:57 PDT 2001
dnl    Made it search for qgl in the $QTDIR/lib directory.  It sometimes
dnl    happened that QTDIR pointed to one without a separate qgl, but there
dnl    was still a qgl elsewhere in the library search path.
dnl
dnl    Jeremy Meredith, Thu Jul 26 02:45:06 PDT 2001
dnl    Added operator plugins.
dnl
dnl    Jeremy Meredith, Fri Jul 27 13:51:00 PDT 2001
dnl    Made it automatically disable the gui, viewer, mdserver when building
dnl    in parallel.  Also made engine proxy build only when viewer is built.
dnl
dnl    Hank Childs, Wed Aug  8 17:41:12 PDT 2001
dnl    Add --disable-annotation.  Also add support for Qt-2.2.1.
dnl
dnl    Jeremy Meredith, Tue Aug 28 16:04:51 PDT 2001
dnl    Added tools/xml.
dnl
dnl    Sean Ahern, Thu Aug 30 16:54:07 PDT 2001
dnl    Added the splash screen.
dnl
dnl    Jeremy Meredith, Tue Sep  4 10:37:27 PDT 2001
dnl    Added ./include/make-targets-libmulti.in as LIBMULTITARGETS
dnl    and ./include/maketargets-lisingle.in as LIBSINGLETARGETS.
dnl
dnl    Hank Childs, Sun Sep  9 20:34:43 PDT 2001
dnl    Added tools/avtprep, components/Preprocessor.
dnl
dnl    Hank Childs, Wed Sep 12 10:52:30 PDT 2001
dnl    Added --enable-buildall option.
dnl
dnl    Jeremy Meredith, Mon Sep 24 17:41:28 PDT 2001
dnl    Added Transform operator and removed Shift operator.
dnl
dnl    Jeremy Meredith, Fri Sep 28 13:24:26 PDT 2001
dnl    Added ILIBS for engine, gui, viewer.
dnl
dnl    Hank Childs, Mon Oct  8 15:38:52 PDT 2001
dnl    Added enable/disable exodus.
dnl
dnl    Brad Whitlock, Mon Oct 1 12:28:19 PDT 2001
dnl    Added Tools directory to components/VisWindow.
dnl
dnl    Kathleen Bonnell, Fri Oct 19 15:33:35 PDT 2001 
dnl    Added Subset directory to plots.
dnl
dnl    Brad Whitlock, Tue Oct 16 15:38:32 PST 2001
dnl    Added Math directory to components.
dnl
dnl    Hank Childs, Tue Oct 23 11:22:33 PDT 2001
dnl    Add ColorIso directory.
dnl
dnl    Hank Childs, Tue Oct 23 15:25:40 PDT 2001
dnl    Add Threshold operator.
dnl
dnl    Jeremy Meredith, Thu Oct 25 13:00:54 PDT 2001
dnl    Added Database/Ghost, and moved MIR from Pipeline to Database.
dnl
dnl    Hank Childs, Mon Nov  5 16:37:59 PST 2001
dnl    Added Displace operator.
dnl
dnl    Eric Brugger, Wed Nov  7 13:35:23 PST 2001
dnl    Removed --enable-timings.
dnl
dnl    Jeremy Meredith, Mon Nov 12 13:36:36 PST 2001
dnl    Added tools/silex.
dnl    Added check for static QT so we can use it if possible.
dnl
dnl    Hank Childs, Mon Nov 12 16:52:17 PST 2001
dnl    Added box operator.
dnl
dnl    Eric Brugger, Wed Dec  5 11:04:36 PST 2001
dnl    Added tools/curv3dprep.
dnl
dnl    Brad Whitlock, Sun Jul 8 2001
dnl    Added visitpy directory and support for scripting plugins.
dnl
dnl    Kathleen Bonnell, Thu Nov 15 12:48:49 PST 2001
dnl    Modified VTK_INCLUDES and VTK_LIB to match VTK 4.0 directory tree. 
dnl
dnl    Jeremy Meredith, Thu Jan  3 15:25:42 PST 2002
dnl    Cleared out SHLIB_MPI_LIBS if not building in parallel.
dnl    Split library target includes into ones for serial/parallel and ones
dnl    for parallel only.  Changed AIX to check to make sure parallel is
dnl    enabled before setting SHLIB_MPI_LIBS.  Explicitly substitute
dnl    SHLIB_MPI_LIBS instead of always stuffing it into SHLIB_LIBS.
dnl
dnl    Jeremy Meredith, Sat Jan  5 17:53:36 PST 2002
dnl    Added SiloDump operator.
dnl    Created a PARALLEL_CPPFLAGS.
dnl
dnl    Jeremy Meredith, Wed Jan  9 13:17:05 PST 2002
dnl    Removed the strangeness of AIX's shared library processes.
dnl    The right combination of things has converged to make building them
dnl    mostly "normal" finally.
dnl
dnl    Jeremy Meredith, Wed Jan 16 09:43:06 PST 2002
dnl    Allow concurrent serial and parallel builds:
dnl    --enable-parallel no longer implies --disable-mdserver and --disable-gui
dnl    removed PX, duplicated other defines into PAR and SER versions.
dnl
dnl    Jeremy Meredith, Fri Feb  1 10:05:04 PST 2002
dnl    Added LIBSHAREDPAR_UPDATEONLY.
dnl
dnl    Jeremy Meredith, Fri Feb 15 13:49:37 PST 2002
dnl    Removed some AIX shared library stuff I forgot to remove earlier.
dnl
dnl    Eric Brugger, Tue Feb 19 14:49:34 PST 2002
dnl    I added the creation of a makefile in the data directory.
dnl
dnl    Sean Ahern, Thu Mar  7 13:03:35 PST 2002
dnl    Changed how BUILDALL for operators works.
dnl
dnl    Hank Childs, Thu Mar  7 10:20:47 PST 2002
dnl    Added reflect operator.
dnl
dnl    Hank Childs, Thu Mar  7 12:54:44 PST 2002
dnl    Fix a bug with specifying --without-exodus.
dnl
dnl    Jeremy Meredith, Mon Mar 11 16:43:35 PST 2002
dnl    Renamed SplashScreen to splashscreen.
dnl    Removed the multi lib targets; everything is single.
dnl
dnl    Brad Whitlock, Tue Mar 12 14:29:39 PST 2002
dnl    I rewrote the check for Qt's version and made it check for version
dnl    3.0.0 or later.
dnl
dnl    Eric Brugger, Thu Mar 21 15:10:34 PST 2002
dnl    Add the sphere slice operator.
dnl
dnl    Kathleen Bonnell, Tue Apr  9 16:51:14 PDT 2002 
dnl    Add new vtk libs. 
dnl
dnl    Jeremy Meredith, Mon Apr 15 12:20:36 PDT 2002
dnl    Added check for streambuf::setbuf publicly accessible.
dnl
dnl    Brad Whitlock, Thu Mar 21 17:13:22 PST 2002
dnl    Removed the rpc library. Added slash character check.
dnl
dnl    Eric Brugger, Tue Apr 16 09:23:42 PDT 2002
dnl    Added a check for mesa.
dnl
dnl    Hank Childs, Tue Apr 16 10:44:14 PDT 2002
dnl    Added Isosurface operator.
dnl
dnl    Jeremy Meredith, Fri Apr 19 15:23:49 PDT 2002
dnl    Removed IsoSurfaceVolume and RangeVolume plots.
dnl
dnl    Kathleen Bonnell, Thu Apr 25 15:46:34 PDT 2002  
dnl    Added subdirs: plots/Curve,  operators/Lineout. 
dnl
dnl    Brad Whitlock, Wed May 15 13:07:35 PST 2002
dnl    Added help viewer.
dnl
dnl    Hank Childs, Wed May 22 14:02:48 PDT 2002 
dnl    Put an extra set of '[]' around the 'tr' command so that m4 doesn't
dnl    take them out.  The '[]' are required for 'tr' with Solaris 5.8
dnl
dnl    Hank Childs, Wed May 29 15:33:12 PDT 2002 
dnl    Added cone operator.
dnl
dnl    Hank Chidls, Wed Jun  5 08:14:29 PDT 2002
dnl    Added IndexSelect operator.  Removed ColorIso.
dnl
dnl    Sean Ahern, Mon Jun 10 16:20:48 PDT 2002
dnl    Added make-targets-dir so that we can get rid of a lot of rules.
dnl
dnl    Jeremy Meredith, Fri Jul 12 14:35:08 PDT 2002
hrchilds's avatar
hrchilds committed
314
dnl    Unified the include file locations to the root /include tree.
hrchilds's avatar
hrchilds committed
315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357
dnl    This includes mesa, qt, vtk, and visit.  Also linked moc to our
dnl    private bin directory and used it there.  Added makefiles for our
dnl    root include and bin directories.  Added check for ios::noreplace.
dnl    Removed all plot and operator plugin makefile.in's since all are
dnl    now generated at runtime.
dnl
dnl    Jeremy Meredith, Thu Jul 18 13:11:36 PDT 2002
dnl    Assume python library is in our private lib directory (probably as
dnl    a symbolic link).
dnl
dnl    Jeremy Meredith, Thu Jul 18 13:11:36 PDT 2002
dnl    Made it build the include and lib directories, and xml2atts and
dnl    the plot and operator plugin makefiles automatically after 
dnl    config.status is created and has been run.
dnl
dnl    Jeremy Meredith, Thu Jul 25 15:24:44 PDT 2002
dnl    Added a message for parallel enabled.
dnl
dnl    Jeremy Meredith, Sat Aug  3 11:38:23 PDT 2002
dnl    Renamed BUILDALL.
dnl
dnl    Brad Whitlock, Wed Aug 14 16:48:22 PST 2002
dnl    I added a --enable-java test.
dnl
dnl    Eric Brugger, Tue Aug 20 11:44:00 PDT 2002
dnl    Disable the exodus reader if the VTK exodus reader doesn't exist.
dnl
dnl    Brad Whitlock, Wed Aug 21 11:45:18 PDT 2002
dnl    I made tools make clean before building xml2makefile in case I've
dnl    run configure on another platform before running it again on the
dnl    current platform. I also made configure build a small Java class
dnl    file that contains the VisIt version.
dnl
dnl    Jeremy Meredith, Wed Aug 21 14:46:24 PDT 2002
dnl    Added database plugins.  Changed the exodus and saf checks a little.
dnl
dnl    Brad Whitlock, Thu Sep 26 15:54:03 PST 2002
dnl    If the test for pthreads succeeds, I made it define a macro in
dnl    visit-config.h
dnl
dnl    Hank Childs, Thu Oct  3 11:32:29 PDT 2002
dnl    Made an HDF5 symbol for database plugins.
dnl
hrchilds's avatar
hrchilds committed
358 359 360
dnl    Sean Ahern, Fri Oct  4 11:16:52 PDT 2002
dnl    Moved the expression parser to its own library.
dnl
hrchilds's avatar
hrchilds committed
361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414
dnl    Hank Childs, Sun Oct 13 21:07:20 PDT 2002
dnl    Add PDB check based on work by Brad Whitlock.
dnl
dnl    Jeremy Meredith, Thu Oct 17 16:07:02 PDT 2002
dnl    Added xml editor.
dnl
dnl    Brad Whitlock, Wed Nov 6 12:25:37 PDT 2002
dnl    I added a check for Java's jar utility.
dnl
dnl    Sean Ahern, Mon Nov 18 13:10:38 PST 2002
dnl    Added --with-{plots,operators,dbs} options.
dnl
dnl    Hank Childs, Tue Nov 19 06:44:03 PST 2002
dnl    Added Expressions and Queries directory.
dnl
dnl    Sean Ahern, Tue Nov 19 13:10:27 PST 2002
dnl    Added --with-config option.
dnl
dnl    Eric Brugger, Tue Dec  3 08:03:09 PST 2002
dnl    Removed -I/usr/local/include from CPPFLAGS and -L/usr/local/lib from
dnl    LDFLAGS.
dnl
dnl    Brad Whitlock, Fri Dec 13 11:49:40 PDT 2002
dnl    I added PTHREAD_CXXFLAGS that is defined when we can find pthreads.
dnl
dnl    Hank Childs, Sun Dec 29 12:12:17 PST 2002
dnl    Added tools/annotations.
dnl
dnl    Kathleen Bonnell, Thu Jan  2 09:06:57 PST 2003 
dnl    Add new vtk libs vtkfreetype, vtkftgl. 
dnl
dnl    Brad Whitlock, Thu Jan 16 16:37:35 PST 2003
dnl    Added tools/escan to the list of Makefiles.
dnl
dnl    Jeremy Meredith, Fri Jan 24 11:51:58 PST 2003
dnl    Fixed bug with building optional plugins.
dnl
dnl    Eric Brugger, Thu Mar 27 14:29:09 PST 2003
dnl    Changed the location of vtkexpat, vtkfreetype, vtkftgl, vtkjpeg,
dnl    vtkpng, vtktiff and vtkzlib in the link line so that they are loaded
dnl    in the proper order.  Removed some unnecessary X libraries.  Moved
dnl    the GL library to the end of VTK_LIBS since it is only used by VTK.
dnl
dnl    Hank Childs, Thu Apr 10 16:45:02 PDT 2003
dnl    Added support for Mili.
dnl
dnl    Jeremy Meredith, Tue Apr 15 21:12:12 PDT 2003
dnl    Made references to TOPDIR interpolate at build time instead of
dnl    configure-time.  This also required adding TOPDIR as a variable
dnl    substitution and replacing some references to "pwd" to use TOPDIR.
dnl
dnl    Brad Whitlock, Fri May 2 15:06:12 PST 2003
dnl    I added libproxybase and the new launcher component.
dnl
hrchilds's avatar
hrchilds committed
415 416 417 418
dnl    Sean Ahern, Fri Aug  9 15:52:39 PDT 2002
dnl    Made UNAME be run as few times as possible.  Removed the memmove
dnl    test, as we weren't using it.  Added Darwin (Mac OS X) support.
dnl
hrchilds's avatar
hrchilds committed
419 420 421
dnl    Sean Ahern, Wed Jun 11 16:36:52 PDT 2003
dnl    Fixed pthreads test.
dnl
hrchilds's avatar
hrchilds committed
422 423 424
dnl    Akira Haddox, Thu Jun 12 08:56:16 PDT 2003
dnl    Added support for HDF4.
dnl
hrchilds's avatar
hrchilds committed
425 426 427
dnl    Akira Haddox, Tue Jul  1 12:36:01 PDT 2003
dnl    Added tools/makemili.
dnl
hrchilds's avatar
hrchilds committed
428 429 430
dnl    Hank Childs, Wed Jul  2 09:50:00 PDT 2003
dnl    Added tools/surfcomp.
dnl
hrchilds's avatar
hrchilds committed
431 432 433
dnl    Brad Whitlock, Thu Jun 19 13:10:18 PST 2003
dnl    I removed the splashscreen.
dnl
hrchilds's avatar
hrchilds committed
434 435 436 437 438 439
dnl    Brad Whitlock, Tue Jul 29 15:51:29 PST 2003
dnl    Added mpeg_encode to the tools directory.
dnl
dnl    Hank Childs, Wed Jul 30 18:05:32 PDT 2003
dnl    Add support for fake exceptions.
dnl
hrchilds's avatar
hrchilds committed
440 441 442 443 444 445
dnl    Jeremy Meredith, Wed Aug 20 09:52:28 PDT 2003
dnl    Added the MIR library.
dnl
dnl    Akira Haddox, Wed Aug 20 10:45:41 PDT 2003
dnl    Added support for Boxlib3D.
dnl
hrchilds's avatar
hrchilds committed
446 447 448
dnl    Hank Childs, Tue Sep  9 07:36:21 PDT 2003
dnl    Added tools/convert.
dnl
hrchilds's avatar
hrchilds committed
449 450 451
dnl    Jeremy Meredith, Fri Oct 10 12:32:27 PDT 2003
dnl    Added check for 3D texturing support in OpenGL.
dnl
hrchilds's avatar
hrchilds committed
452 453 454
dnl    Brad Whitlock, Wed Sep 3 10:55:28 PDT 2003
dnl    Added more Darwin support and added logic to create bundles.
dnl
hrchilds's avatar
hrchilds committed
455 456 457
dnl    Kathleen Bonnell, Wed Nov 12 17:20:03 PST 2003 
dnl    Add new vtk lib vtkDICOMParser. 
dnl
hrchilds's avatar
hrchilds committed
458 459 460
dnl    Eric Brugger, Thu Nov 20 08:54:13 PST 2003
dnl    Modify the script to handle the absence of the help directory.
dnl
hrchilds's avatar
hrchilds committed
461 462 463
dnl    Hank Childs, Sat Jan 24 11:39:13 PST 2004
dnl    Re-organized many libraries to enable mdserver to link against less.
dnl
hrchilds's avatar
hrchilds committed
464 465 466
dnl    Brad Whitlock, Thu Jan 29 10:48:59 PDT 2004
dnl    I added more versions of Qt to the list of supported versions.
dnl
hrchilds's avatar
hrchilds committed
467 468 469 470
dnl    Mark C. Miller, Thu Feb 26 10:44:14 PDT 2004
dnl    Modified to defualt to using PDB lite (in libsilo.a) but still
dnl    accept --with-pdb option if PDB proper is desired
dnl
hrchilds's avatar
hrchilds committed
471 472 473
dnl    Hank Childs, Thu Mar  4 08:32:01 PST 2004
dnl    Added new Qt VisWindow library.
dnl
hrchilds's avatar
hrchilds committed
474 475 476
dnl    Brad Whitlock, Mon Mar 15 09:39:17 PDT 2004
dnl    Fixed the pthreads test when PTHREAD_LIB is defined in the config-site.
dnl
hrchilds's avatar
hrchilds committed
477 478 479
dnl    Brad Whitlock, Tue Mar 30 09:05:27 PDT 2004
dnl    Added PDB_EXEC to fix test suite.
dnl
hrchilds's avatar
hrchilds committed
480 481 482 483
dnl    Brad Whitlock, Wed Apr 21 17:42:20 PST 2004
dnl    Added Makefile magic for MacOS X to make automatic segment offset
dnl    calculations possible for prebinding.
dnl
hrchilds's avatar
hrchilds committed
484 485 486
dnl    Brad Whitlock, Thu May 20 18:58:29 PST 2004
dnl    Fixed a bug that made configure report the wrong Qt version.
dnl
hrchilds's avatar
hrchilds committed
487 488 489 490
dnl    Jeremy Meredith, Tue Jun 22 09:45:01 PDT 2004
dnl    Have it build optimized if no CXXFLAGS were specified through
dnl    the environment variable.
dnl
hrchilds's avatar
hrchilds committed
491 492 493 494
dnl    Brad Whitlock, Tue Jun 29 09:01:46 PDT 2004
dnl    Prevented links to Silo, Mili, and HDF5 from being created on MacOS X
dnl    if those libraries are not found by configure.
dnl
hrchilds's avatar
hrchilds committed
495 496 497
dnl    Jeremy Meredith, Wed Jul  7 11:48:33 PDT 2004
dnl    Made the VTK_LIGHTWEIGHT_LIBS include all VTK libraries under OSX.
dnl
hrchilds's avatar
hrchilds committed
498 499 500 501
dnl    Jeremy Meredith, Thu Jul  8 11:35:29 PDT 2004
dnl    Remove xml2makefile before trying to build it to ensure it does get
dnl    rebuilt even if your make program doesn't realize it is needed.
dnl
hrchilds's avatar
hrchilds committed
502 503 504
dnl    Eric Brugger, Mon Jul 26 15:44:24 PDT 2004
dnl    Replaced fstream.h with fstream.
dnl
hrchilds's avatar
hrchilds committed
505 506 507 508 509 510
dnl    Brad Whitlock, Wed Aug 11 15:04:49 PST 2004
dnl    I changed the build offset for MacOS X.
dnl
dnl    Jeremy Meredith, Tue Aug 24 21:26:15 PDT 2004
dnl    Added engine wrapper library and simulation prototype.
dnl
hrchilds's avatar
hrchilds committed
511 512 513
dnl    Mark C. Miller, Tue Sep 28 19:32:50 PDT 2004
dnl    Added ViSUS
dnl
hrchilds's avatar
hrchilds committed
514 515 516 517
dnl    Eric Brugger, Thu Sep 30 10:51:22 PDT 2004
dnl    I corrected a bug that was causing the check for using siloh5 to fail
dnl    if hdf5 was built with z lib support.
dnl
hrchilds's avatar
hrchilds committed
518 519 520
dnl    Eric Brugger, Tue Oct  5 10:46:12 PDT 2004
dnl    I replaced QTDIR with QT_BIN, QT_INCLUDE and QT_LIB.
dnl
hrchilds's avatar
hrchilds committed
521 522 523 524
dnl    Mark C. Miller, Tue Oct  5 12:41:41 PDT 2004
dnl    Fixed issues '--with-<lib>=' argument where '-I' and '-L' would be
dnl    missing from final make variable names that were created
dnl
hrchilds's avatar
hrchilds committed
525 526 527
dnl    Jeremy Meredith, Mon Aug 30 16:55:36 PDT 2004
dnl    Added parallel directory to visit_vtk.
dnl
hrchilds's avatar
hrchilds committed
528 529 530
dnl    Jeremy Meredith, Wed Nov 24 11:40:55 PST 2004
dnl    Refactored the expression parser into two separate libraries.
dnl
hrchilds's avatar
hrchilds committed
531 532 533 534 535 536 537
dnl    Jeremy Meredith, Thu Nov 11 12:38:16 PST 2004
dnl    Made host-specific site configs come before OS-type site configs.  
dnl    This lets us do host-type flags conditioned on what kind of compiler
dnl    we are using.  Added support for xlC on AIX.  Put back some
dnl    commented-out code to support strangeness on shared libraries on AIX
dnl    if we decide we want to use it again.  
dnl
hrchilds's avatar
hrchilds committed
538 539 540
dnl    Brad Whitlock, Thu Jan 6 13:01:21 PST 2005
dnl    Added support for creating a link to the HDF4 libraries on MacOS X.
dnl
hrchilds's avatar
hrchilds committed
541 542 543
dnl    Jeremy Meredith, Tue Feb 22 18:48:19 PST 2005
dnl    Renamed "convert" to "visitconvert".
dnl
hrchilds's avatar
hrchilds committed
544 545 546
dnl    Hank Childs, Wed Apr  6 13:13:10 PDT 2005
dnl    Added tools/writer.
dnl
hrchilds's avatar
hrchilds committed
547 548 549
dnl    Brad Whitlock, Mon Apr 11 16:58:53 PST 2005
dnl    Changed the location of the linkedit.py script used on the Mac.
dnl
hrchilds's avatar
hrchilds committed
550 551 552
dnl    Jeremy Meredith, Thu Apr 28 17:46:44 PDT 2005
dnl    Added explicit versioning for the VisIt Engine Library.
dnl
hrchilds's avatar
hrchilds committed
553 554 555
dnl    Brad Whitlock, Wed Jul 13 09:36:25 PDT 2005
dnl    Updated MacOS X start address due to library size changes.
dnl
hrchilds's avatar
hrchilds committed
556 557 558
dnl    Brad Whitlock, Tue Aug 9 17:31:30 PST 2005
dnl    I added checks for netCDF.
dnl
hrchilds's avatar
hrchilds committed
559 560 561 562 563 564
dnl    Brad Whitlock, Tue Aug 30 15:57:15 PST 2005
dnl    I added checks for CGNS.
dnl
dnl    Brad Whitlock, Fri Sep 2 15:07:19 PST 2005
dnl    Fixed up some things for MacOS X 10.4
dnl
hrchilds's avatar
hrchilds committed
565 566 567
dnl    Brad Whitlock, Tue Sep 6 11:24:53 PDT 2005
dnl    I added checks for GDAL.
dnl
hrchilds's avatar
hrchilds committed
568 569 570 571
dnl    Kathleen Bonnell, Thu Sep 22 16:49:12 PDT 2005 
dnl    Added 'vtkexpat' to lightweight libs, so VTK XML file format can
dnl    link properly to mdserver. 
dnl
hrchilds's avatar
hrchilds committed
572 573 574 575
dnl    Jeremy Meredith, Thu Oct 13 13:55:32 PDT 2005
dnl    Added cqscore, the tool for scoring tickets.  Also forced a make on
dnl    the bin directory before exiting configure.
dnl
hrchilds's avatar
hrchilds committed
576 577 578 579 580
dnl    Mark C. Miller, Thu Nov  3 16:59:41 PST 2005
dnl    I added code to check for libbz2 (bzip2)
dnl    I also added -I$(TOPDIR)/include to COMPONENT_CPPFLAGS so that
dnl    components could include visit-config.h
dnl
hrchilds's avatar
hrchilds committed
581 582 583
dnl    Eric Brugger, Mon Nov 14 11:25:18 PST 2005
dnl    I removed VTK_CAMERA_SRC.
dnl
hrchilds's avatar
hrchilds committed
584 585 586
dnl    Kathleen Bonnell, Wed Nov 16 08:51:43 PST 2005 
dnl    Added -lXt to X_LIBS. 
dnl
hrchilds's avatar
hrchilds committed
587 588 589 590 591
dnl    Mark C. Miller, Thu Dec  1 19:31:07 PST 2005
dnl    Changed support for bzip2 to a third_party_builtin library
dnl    This means it is part of the distribution and gets built whenever
dnl    VisIt gets built. It can be disabled with --disable-bzip2
dnl
hrchilds's avatar
hrchilds committed
592 593 594
dnl    Mark C. Miller, Mon Dec 12 20:53:03 PST 2005
dnl    Moved -lbz2 to BZIP2_LIBS config/make variable
dnl
hrchilds's avatar
hrchilds committed
595 596 597
dnl    Brad Whitlock, Fri Dec 16 17:03:10 PST 2005
dnl    Improved glTexImage3D detection on MacOS X.
dnl
hrchilds's avatar
hrchilds committed
598 599 600 601
dnl    Eric Brugger, Tue Jan 24 11:21:01 PST 2006
dnl    I added QUI_LIBS which is used by the gui to dynamically load custom
dnl    simulation control windows.
dnl
hrchilds's avatar
hrchilds committed
602 603 604
dnl    Eric Brugger, Thu Feb  2 08:51:04 PST 2006
dnl    I removed -lg2c as a boxlib library dependence when using gcc.
dnl
hrchilds's avatar
hrchilds committed
605 606 607
dnl    Hank Childs, Mon Feb 13 20:58:37 PST 2006
dnl    Added subdirectory /components/DDF.
dnl
hrchilds's avatar
hrchilds committed
608 609 610
dnl    Shelly Prevost, Mon Mar 13 16:14:47 PST 2006
dnl    Moved the location of the simulation Makefile from sim to sim/lib.
dnl
hrchilds's avatar
hrchilds committed
611 612 613
dnl    Brad Whitlock, Thu Jul 20 11:55:51 PDT 2006
dnl    Added CFITSIO support.
dnl
hrchilds's avatar
hrchilds committed
614 615 616 617 618 619
dnl    Jeremy Meredith, Mon Aug 28 17:35:44 EDT 2006
dnl    Forced test for glTexImage3D to occur in C++ mode; the library
dnl    may have it, but without a correct prototype it will fail to
dnl    compile in the main code.  Sometimes to pick it up we need to
dnl    define GL_GLEXT_PROTOTYPES, so I added a check for that as well.
dnl
hrchilds's avatar
hrchilds committed
620 621 622 623
dnl    Brad Whitlock, Fri Sep 15 10:31:23 PDT 2006
dnl    Added support for GLEW library and removed GL_GLEXT_PROTOTYPES. Also
dnl    fixed a problem with building beta versions on the Mac.
dnl
hrchilds's avatar
hrchilds committed
624 625 626 627 628
dnl    Mark C. Miller, Wed Oct 18 08:21:44 PDT 2006
dnl    Made it handle situation where there was a libsiloh5.a but not also
dnl    a libsilo.a in the DEFAULT_SILO_LIBRARY directory. Previously, it
dnl    would attempt to find there a libsilo.a and if not, fail to correctly
dnl    set SILO_LIB variable.
hrchilds's avatar
hrchilds committed
629 630 631 632 633 634
dnl
dnl    Eric Brugger, Mon Oct 23 13:26:26 PDT 2006
dnl    Modified the test that determines wether to use BSD or SYSV pseudo
dnl    terminals to use the normal test instead of assuming it is BSD on
dnl    Linux.
dnl
hrchilds's avatar
hrchilds committed
635 636 637
dnl    Brad Whitlock, Thu Nov 9 14:27:00 PST 2006
dnl    Made sure data manual examples get their Makefiles created.
dnl
hrchilds's avatar
hrchilds committed
638 639 640
dnl    Brad Whitlock, Tue Sep 19 17:04:41 PST 2006
dnl    Added mpeg2encode support.
dnl
hrchilds's avatar
hrchilds committed
641 642 643 644 645 646 647 648 649 650 651 652
dnl    Thomas R. Treadway, Tue Feb  6 13:45:49 PST 2007
dnl    Removed the Mac prebinding stuff, added better universal binary
dnl    support.
dnl
dnl    Thomas R. Treadway, Wed Feb  7 15:32:27 PST 2007
dnl    Added CREATE_BOXLIB2D_LINK, CREATE_BOXLIB3D_LINK,
dnl    and CREATE_CFITSIO_LINK (and friends).
dnl
dnl    Thomas R. Treadway, Thu Feb  8 14:22:10 PST 2007
dnl    Removed checking for HDF5 for the MacOS X, assumed silo always
dnl    links with hdf5 (Never worked right anyway).
dnl
hrchilds's avatar
hrchilds committed
653 654 655
dnl    Eric Brugger, Fri Mar  9 10:56:59 PST 2007
dnl    Removed the exodus and netcdf libraries from the list of vtk libraries.
dnl
hrchilds's avatar
hrchilds committed
656 657 658
dnl    Brad Whitlock, Tue Mar 13 18:20:38 PST 2007
dnl    Changed how Python is used in CLI.
dnl
hrchilds's avatar
hrchilds committed
659 660 661 662 663 664
dnl    Eric Brugger, Tue Mar 20 11:27:01 PDT 2007
dnl    Removed MESA_LIBS and GL_LIBS from the definition of VTK_LIBS.
dnl
dnl    Eric Brugger, Wed Mar 21 14:51:01 PDT 2007
dnl    Added support for building mesa_stub.
dnl
hrchilds's avatar
hrchilds committed
665 666 667 668
dnl    Eric Brugger, Tue Mar 27 12:01:37 PDT 2007
dnl    Added --enable-viewer-mesa-stub, which controls if the viewer uses
dnl    the mesa library or the mesa stub library.
dnl
hrchilds's avatar
hrchilds committed
669 670 671 672 673 674 675
dnl    Eric Brugger, Fri Apr  6 08:53:18 PDT 2007
dnl    Added NETCDF_CXX_LIB, which contains the netcdf c++ library, for
dnl    use with the S3D database plugin.
dnl
dnl    Thomas R. Treadway, Fri Apr  6 13:18:53 PDT 2007
dnl    Filled in PREBIND_LIBS (for mdserver linking).
dnl
hrchilds's avatar
hrchilds committed
676 677 678 679 680
dnl    Hank Childs, Sat Apr  7 18:31:21 PDT 2007
dnl    Adaptively find data directory.  Its location is dependent on whether
dnl    you are in ClearCase or Subversion.  And for Subversion, it might not
dnl    be available at all.
dnl
hrchilds's avatar
hrchilds committed
681 682 683
dnl    Gunther H. Weber, Thu Apr 19 18:22:49 PDT 2007
dnl    Adaptively replace relative visit path in data directory
dnl
684 685 686
dnl    Gunther H. Weber, Mon May 21 15:55:12 PDT 2007
dnl    Added check for H5Part
dnl
687 688 689 690
dnl    Jeremy Meredith, Tue May 22 11:43:30 EDT 2007
dnl    Added --enable-minimal-plugins to only build the few most common
dnl    plugins, like the Pseudocolor plot and Slice operator.   
dnl 
691 692 693
dnl    Gunther H. Weber, Tue May 22 10:20:31 PDT 2007
dnl    Merged Jeremy's last change (Tue May 22 11:43:30 EDT 2007) and my
dnl    last change (Mon May 21 15:55:12 PDT 2007).
694
dnl
695 696 697
dnl    Thomas R. Treadway, Wed May 23 17:04:07 PDT 2007
dnl    FreeBSD patches from Nathan Lay <nlay@scs.fsu.edu>
dnl
698 699 700
dnl    Mark C. Miller, Thu May 24 22:54:35 PDT 2007
dnl    Removed use of rpath options from iTaps lib symbols. Made it build
dnl    symbolic link in lib dir for iTaps libs
701 702 703 704 705 706
dnl
dnl    Jeremy Meredith, Tue Jun  5 17:32:39 EDT 2007
dnl    Added the "PARDEP" substitution that expands to $(PARDEP) when parallel
dnl    builds are enabled.  This lets us avoid building dependencies for
dnl    parallel object files if we're not building parallel objects.
dnl
707 708 709
dnl    Jeremy Meredith, Thu Jun 14 11:22:29 EDT 2007
dnl    Added the tools/clidriver directory.
dnl
710 711 712
dnl    Thomas R. Treadway, Wed Jul 11 16:08:40 PDT 2007
dnl    Added CREATE_H5PART_LINK for H5Part support.
dnl
713 714 715
dnl    Cyrus Harrison, Tue Jul 24 14:36:54 PDT 2007
dnl    Added support to skip compile of mesa stub if not needed.
dnl
whitlocb's avatar
whitlocb committed
716 717 718
dnl    Brad Whitlock, Thu Aug 2 14:45:17 PST 2007
dnl    Added support for libccmio for the GNEP Star-CD reader.
dnl
719 720 721 722
dnl    Thomas R. Treadway, Tue Sep 18 15:48:47 PDT 2007
dnl    Added szip library.
dnl    Created a HDF5_LIBDIR variable
dnl
723 724 725
dnl    Hank Childs, Mon Oct 15 08:24:44 PDT 2007
dnl    Make change to 'tr' syntax pointed out by Matt Wheeler.
dnl
726 727 728 729
dnl    Jeremy Meredith, Wed Oct 17 16:26:13 EDT 2007
dnl    Added runtime check for disabling the simulation plugins.
dnl    This is currently triggered by a check for OS X.
dnl
js9's avatar
js9 committed
730 731 732 733
dnl    Jeremy Meredith, Thu Oct 18 09:50:46 EDT 2007
dnl    Removed all sleep's.  They're slowing down the build and are probably
dnl    no longer needed.
dnl
734 735
dnl    Thomas R. Treadway, Tue Oct 30 14:14:47 PDT 2007
dnl    Replacing #if define with PANTHERHACK define.
736
dnl
737 738 739
dnl    Jeremy Meredith, Thu Nov  1 16:41:12 EDT 2007
dnl    Stop allowing Qt versions prior to 3.0.
dnl
js9's avatar
js9 committed
740 741 742 743
dnl    Jeremy Meredith, Fri Nov  2 17:57:52 EDT 2007
dnl    Re-enable simulation apis for darwin.
dnl    Check for --export-dynamic support (we want it for the sim examples).
dnl
744 745 746
dnl    Hank Childs, Mon Nov  5 11:35:30 PST 2007
dnl    Fix typo with export-dynamic where existing LDFLAGS were ignored.
dnl
747 748 749 750
dnl    Hank Childs, Thu Nov  8 15:09:28 PST 2007
dnl    Add a configure flag to get around a bug with threads getting hangup
dnl    signals.
dnl
hrchilds's avatar
hrchilds committed
751 752 753
dnl    Hank Childs, Fri Dec  7 16:52:10 PST 2007
dnl    Put the SVN version of the /src directory into visit-config.h.
dnl
754 755 756
dnl    Cyrus Harrison, Tue Dec 18 11:53:59 PST 2007
dnl    Added subdirectory components/Shapelets.
dnl
757 758 759
dnl    Eric Brugger, Mon Jan  7 11:54:11 PST 2008
dnl    Added a test for the function setenv.
dnl
whitlocb's avatar
whitlocb committed
760 761 762 763
dnl    Brad Whitlock, Thu Jan 10 10:29:40 PST 2008
dnl    Added support for building SLIVR library and its dependencies 
dnl    (cmake, teem).
dnl
764 765 766
dnl    Eric Brugger, Fri Jan 11 12:16:03 PST 2008
dnl    Added a test for the function strtof.
dnl
767 768 769
dnl    Hank Childs, Sat Feb  9 15:22:00 PST 2008
dnl    Rename components directory to avt.
dnl
770 771 772
dnl    Christoph Garth (by way of Hank Childs), Mon Feb 25 19:18:45 PST 2008
dnl    Add avt/IVP/Makefile.in.
dnl
773 774 775
dnl    Mark C. Miller, Thu Apr  3 18:06:01 PDT 2008
dnl    Added quotes for $CXXFLAGS in test for emptycxxflags,
dnl    Courtesy of Matthias Langer <mlangc@gmx.at>. Thanks Matthias.
776 777 778 779
dnl
dnl    Mark C. Miller, Mon Apr  7 14:55:58 PDT 2008
dnl    Added options to build against external bzip2/glew.
dnl    Courtesy of Matthias Langer <mlangc@gmx.at>.
780
dnl
781 782 783
dnl    Eric Brugger, Tue Apr  8 09:58:31 PDT 2008
dnl    Added a test for the function isfinite.
dnl
784 785 786
dnl    Eric Brugger, Fri Apr 18 13:13:11 PDT 2008
dnl    Added HDF5_EXEC to allow the data directory to conditionally run
dnl    HDF5 based programs that create HDF5 data files.
fogal1's avatar
fogal1 committed
787
dnl
whitlocb's avatar
whitlocb committed
788 789 790 791 792 793
dnl    Brad Whitlock, Thu May 15 17:09:22 PDT 2008
dnl    Inital pass at Qt 4.4.0 Port 
dnl 
dnl    Cyrus Harrison, Thu May 15 17:09:22 PDT 2008
dnl    Removed QtDbus Library (not needed, and not supported on all platforms)
dnl
fogal1's avatar
fogal1 committed
794 795 796
dnl    Tom Fogal, Sun Jun  8 14:56:22 EDT 2008
dnl    Added macro to check for ICE-T.
dnl
797 798 799
dnl    Hank Childs, Fri Jun 13 15:05:02 PDT 2008
dnl    Add support for tcmalloc from google-perftools.
dnl
whitlocb's avatar
whitlocb committed
800 801 802
dnl    Cyrus Harrison, Thu Jul  3 08:36:36 PDT 2008
dnl    Added QtDesigner Library
dnl 
fogal1's avatar
fogal1 committed
803 804 805 806
dnl    Tom Fogal, Thu Jun 19 13:46:15 EDT 2008
dnl    Moved ac macro file to its own subdirectory, and appropriately use
dnl    aclocal.m4 to include it (instead of here).
dnl
807 808 809 810 811
dnl    Jeremy Meredith, Tue Jun 24 14:42:58 EDT 2008
dnl    Added runtime check for OSMesa's offscreen window size limit.
dnl    (Couple other cleanups, like duplicate messages for pthreads and
dnl    not removing temporary files.)
dnl
812 813 814 815 816 817
dnl    Tom Fogal, Fri Jun 27 13:21:10 EDT 2008
dnl    Removed the sinclude, as we do that in acinclude.m4 now (more
dnl    appropriately).
dnl    Added a description for the define of OSMESA_SIZE_LIMIT; autoheader
dnl    complains as is.
dnl
818 819 820
dnl    Tom Fogal, Mon Jun 30 16:54:33 EDT 2008
dnl    Added a call to the macro I added in ac/icet.m4.
dnl
821 822 823 824 825 826
dnl    Gunther H. Weber Thu Jul 17 14:21:40 PDT 2008
dnl    Add --rpath relative to $ORIGIN enabling visit to run on some MPI
dnl    implementations (e.g., MPICH with p4 davice) that do pass environment
dnl    variables and where the -setupenv option does not work since command
dnl    line option are not available prior to calling MPI_Init.
dnl
fogal1's avatar
fogal1 committed
827 828
dnl    Tom Fogal, Sun Jul 27 11:58:16 EDT 2008
dnl    Configure cognomen if the user is doing a parallel build.
829 830 831
dnl    
dnl    Mark C. Miller, Tue Aug 19 23:34:41 PDT 2008
dnl    Added AC_PROG_EGREP. See note near it as to why. What a pain!
hrchilds's avatar
hrchilds committed
832 833 834 835
dnl
dnl    Hank Childs, Wed Aug 20 11:58:50 MDT 2008
dnl    Add test for stropts.h for SYSV vs BSD.
dnl
836 837 838
dnl    Brad Whitlock, Mon Aug 18 11:01:03 PDT 2008
dnl    Added tools/embedviewer. Removed some viewer source stuff.
dnl
839 840 841 842 843 844 845
dnl    Mark C. Miller, Thu Sep 10 ??:??:?? PDT 2008
dnl    Changed how ITAPS is handled to permit multiple implementations of
dnl    the ITAPS interfaces being built from the same plugin source code.
dnl    
dnl    Mark C. Miller, Thu Sep 11 10:31:38 PDT 2008
dnl    Adjusted how ITAPS implementations are handled to deal with possible
dnl    -Wl,-rpath= or -Wl,--rpath, directive in the libs component.
846 847 848 849
dnl    
dnl    Mark C. Miller, Mon Sep 15 17:29:27 PDT 2008
dnl    Replaced all refs to $SHORT_UNAME to $UNAME. The two were being used
dnl    inter-changeably and I wanted to make it consistent.
fogal1's avatar
fogal1 committed
850 851 852 853 854
dnl
dnl    Tom Fogal, Fri Sep 19 11:24:08 MDT 2008
dnl    Define variables of filenames for SLIVR, to decide which parts to
dnl    conditionally compile.
dnl
whitlocb's avatar
whitlocb committed
855 856 857
dnl    Cyrus Harrison, Tue Sep 30 15:39:33 PDT 2008
dnl    Removed Qt WebKit & XMLPatterns b/c they do not build on AIX.
dnl    
858 859 860 861 862
dnl    Mark C. Miller, Thu Oct  9 18:07:17 PDT 2008
dnl    Wrapped AC_TRY_COMPILE attempts on Silo with PUSH/POP LANG C++. This
dnl    should be harmless for installations of Silo that DO NOT include the
dnl    new C++ compression code and will enable it to work correctly for those
dnl    that do.
863 864 865 866 867 868 869 870 871 872 873 874
dnl
dnl    Mark C. Miller, Tue Oct 21 09:09:10 PDT 2008
dnl    Modified to use new VAC_ARG_WITH3RD macro for HDF5. This macro is in
dnl    aclocal.m4 and is intended to replace most of the code currently here
dnl    handling third party libs. Also removed SZIP stuff because it was there
dnl    only as a possibility that HDF5 might be using szip. Simplifed Silo
dnl    logic a lot and removed need for AC_TRY_COMPILE in Silo logic. Removed
dnl    'create xxx link' logic for HDF5 and SZIP. That occurs automatically
dnl    as a consequence of using VAC_ARG_WITH3RD. Removed makefiles for old
dnl    siloobj code and prep tool. Improved PDB logic to fall back to PDB lite
dnl    in Silo only if silo is defined. Fixed typo in ZLIB_LIB symbol where
dnl    a trailing 'S' was included.
875 876 877
dnl
dnl    Mark C. Miller, Tue Oct 21 10:35:59 PDT 2008
dnl    Fixed HDF4 to handle an SZIP created by build_visit
whitlocb's avatar
whitlocb committed
878 879 880 881 882
dnl
dnl    Brad Whitlock, Tue Oct 21 11:23:55 PDT 2008
dnl    Added a few Silo-related variables back in so they can be substituted
dnl    into lib/Makefile.in for the Mac since we want to use the create_silo_link
dnl    target there.
883 884 885 886
dnl
dnl    Eric Brugger, Wed Oct 22 16:10:34 PDT 2008
dnl    Added DATA_EXE_LDFLAGS, which is used in the data directory to set
dnl    the rpath to $ORIGIN/../src/lib on linux systems.
whitlocb's avatar
whitlocb committed
887
dnl 
888 889
dnl    Mark C. Miller, Tue Dec  2 11:47:01 PST 2008
dnl    Removed silex
whitlocb's avatar
whitlocb committed
890 891 892 893 894 895 896 897 898 899
dnl
dnl    Brad Whitlock, Tue Dec  2 11:32:06 PST 2008
dnl    I set VISITWRAPPER_RPATH if --prefix is specified and we're on Linux
dnl    so we can set -rpath LDFLAGS that let the visit engine wrapper libraries
dnl    know where they will be installed. This is key to getting them to work
dnl    without requiring LD_LIBRARY_PATH to be specified before running the
dnl    client simulation. It also prevents the sim writers from having to do
dnl    very bad things such as using a specific VisIt rpath when linking
dnl    their codes.
dnl
900 901 902 903
dnl    Hank Childs, Fri Dec 12 16:18:34 PST 2008
dnl    Move Ice-T to later in the script so that it can benefit from correct
dnl    definitions of X11 libs and Pthreads.
dnl
904 905 906
dnl    Josh Stratton, Tue Dec 16 11:03:21 MST 2008
dnl    Added Tuvok the the 3rd-party builtin libraries
dnl
907 908 909
dnl    Mark C. Miller, Sat Dec 20 07:38:09 PST 2008
dnl    Added logic to specify itaps impl in CPPFLAGS when building itaps
dnl    plugin.
910 911 912 913
dnl
dnl    Hank Childs, Tue Jan 27 09:27:43 PST 2009
dnl    Add FastBit.
dnl
914 915 916
dnl    Brad Whitlock, Fri Feb  6 14:53:51 PST 2009
dnl    Added libsim V2.
dnl
917 918 919
dnl    Mark C. Miller, Mon Mar  2 17:25:10 PST 2009
dnl    Added logic to itaps-impl option to add -D${impl_name} to CXXFLAGS
dnl
920 921 922 923
dnl    Mark C. Miller, Wed Mar  4 17:55:25 PST 2009
dnl    Enabled dbio-only build. Add logic to set SVN_REVISION to 'unknown'
dnl    if being built from a dist hierarchy. Removed clearmake. Sent stderr
dnl    output of qmake command to /dev/null.
924
dnl
fogal1's avatar
fogal1 committed
925 926 927
dnl    Tom Fogal, Thu Mar  5 11:31:16 MST 2009
dnl    Lowercased `Tuvok'.
dnl
928 929 930 931 932 933
dnl    Mark C. Miller, Thu Mar 12 00:16:49 PDT 2009
dnl    Removed Qt and xml tool dependencies for dbio-only builds. Changed
dnl    makefile generation for database plugins for dbio-only builds to use
dnl    bin/db_xml2makefile shell script. Adjusted sed commands for generating
dnl    ITAPS implementations .xml files to include spaces for db_xml2makefile
dnl    to work properly.
fogal1's avatar
fogal1 committed
934
dnl
ghweber's avatar
ghweber committed
935 936 937 938
dnl    Gunther H. Weber, Fri Apr 17 13:22:44 PDT 2009
dnl    Do not add "-lrt" for FastBit on MacOS (Darwin machines)
dnl    Do not change H5PART_LIBDIR in FastBit config.
dnl    
939 940
dnl    Kathleen Bonnell, Thu Feb 19 13:06:43 PST 2009
dnl    Added test for PyParsing.
fogal1's avatar
fogal1 committed
941 942 943 944
dnl
dnl    Tom Fogal, Sat Apr 25 15:44:48 MDT 2009
dnl    Fixed a broken `if' statement.
dnl
945 946 947 948
dnl    Mark C. Miller, Mon Apr 27 20:04:22 PDT 2009
dnl    Improved Silo check for HDF5 dependence a bit by falling back to
dnl    whatever HDF5 might have been specified via --with-hdf5 arg.
dnl    Fixed configuration with PDB proper.
949 950 951 952
dnl
dnl    Eric Brugger, Fri May  1 12:58:34 PDT 2009
dnl    Added tools/mcurvit.
dnl
953 954 955
dnl    Brad Whitlock, Mon May  4 13:14:20 PDT 2009
dnl    Added VISIT_ to several defines for better namespace behavior
dnl
956 957 958
dnl    Hank Childs, Tue May  5 01:03:49 CDT 2009
dnl    Put -lGLU into the SLIVR libs.
dnl
whitlocb's avatar
whitlocb committed
959 960 961 962 963
dnl    Brad Whitlock, Thu Jun 11 15:31:48 PST 2009
dnl    I've made many changes, including: --enable-engine-only, 
dnl    --enable-server-components-only, --disable-select, --disable-nospin-bcast.
dnl    These are aimed at getting VisIt to build on BlueGene/P.
dnl
964 965 966 967
dnl    Tom Fogal, Tue Jun 30 21:30:34 MDT 2009
dnl    Defined COMPONENT_CPPFLAGS for avt symbol export.
dnl    Call AC_HEADER_STDBOOL.
dnl
968 969 970
dnl    Tom Fogal, Wed Jul  1 20:30:30 MDT 2009
dnl    Add EXPR_EXPORTS while building avt, to workaround expressions pain.
dnl
971 972 973 974
dnl    Gunther H. Weber, Wed Jul 22 13:42:01 PDT 2009
dnl    Link to tcmalloc_minimal instead of regular version to avoid additional
dnl    dependencies (e.g. unwind) on 64-bit machines.   
dnl
hrchilds's avatar
hrchilds committed
975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995
dnl --------------------------------------------------------------------------

dnl
dnl Configuration header stuff...
dnl
AC_REVISION($Id$)dnl
AC_INIT(Makefile.in)
AC_CONFIG_HEADER(include/visit-config.h)
AC_CONFIG_AUX_DIR(./bin)

dnl The builtin `pwd' command fails with `bad file unit number' from the
dnl shell on some systems, so try to use `/bin/pwd' instead.
dnl
if test -x /bin/pwd; then
   pwd=/bin/pwd
else
   pwd=pwd
fi
TOPDIR=`$pwd`
AC_SUBST(TOPDIR)

hrchilds's avatar
hrchilds committed
996 997 998 999 1000
dnl
dnl Make note if no CXXFLAGS have yet been specified; we won't like the
dnl defaults that configure chooses and this lets us override them easily
dnl
emptycxxflags="no"
1001
if test -z "${CXXFLAGS}"; then
hrchilds's avatar
hrchilds committed
1002 1003 1004
    emptycxxflags="yes"
fi

hrchilds's avatar
hrchilds committed
1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023
### Init the tflops_override variable.
tflops_override=no

###     Derive the OS type, as a check for reusing the autoconf cache
OS_type="`(uname -s -r) 2>/dev/null`"
if test -z "$OS_type" ; then
    OS_type="`(hostname) 2>/dev/null`"
fi
AC_CACHE_VAL(vc_cv_os_type,[vc_cv_os_type="$OS_type"])
test -z "$OS_type" && OS_type="$vc_cv_os_type"
test -n "$vc_cv_os_type" && AC_MSG_RESULT("Configuring for $vc_cv_os_type")

if test ".$OS_type" != ".$vc_cv_os_type" ; then
    AC_MSG_RESULT("The cached Operating System does not agree with this OS type.")
    AC_ERROR("Please run \"make distclean\" and try again.")
fi

# Grab the version number
AC_MSG_CHECKING(what version the package is)
1024 1025 1026
VISIT_VERSION=`cat VERSION`
AC_DEFINE_UNQUOTED(VISIT_VERSION,"$VISIT_VERSION",[VisIt version])
AC_MSG_RESULT($VISIT_VERSION)
hrchilds's avatar
hrchilds committed
1027

hrchilds's avatar
hrchilds committed
1028 1029
# Get the SVN version number.
AC_MSG_CHECKING(what subversion revision is)
1030 1031
if test -r VISIT_SVN_REVISION; then
   VISIT_SVN_REVISION=`cat VISIT_SVN_REVISION`
hrchilds's avatar
hrchilds committed
1032
else
1033
   if test -d .svn; then
1034
      VISIT_SVN_REVISION=`svn info . 2>/dev/null | grep "Revision:" | cut -d' ' -f2`
1035
   else
1036
      VISIT_SVN_REVISION="unknown"
1037
   fi
hrchilds's avatar
hrchilds committed
1038
fi
1039 1040
AC_DEFINE_UNQUOTED(VISIT_SVN_REVISION,"$VISIT_SVN_REVISION",[Subversion revision])
AC_MSG_RESULT($VISIT_SVN_REVISION)
hrchilds's avatar
hrchilds committed
1041

hrchilds's avatar
hrchilds committed
1042
# Set the slash characters used in filenames.
1043 1044
AC_DEFINE_UNQUOTED(VISIT_SLASH_CHAR,'/',[Define the slash character])
AC_DEFINE_UNQUOTED(VISIT_SLASH_STRING,"/",[Define the slash string])
hrchilds's avatar
hrchilds committed
1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087

# Load the site configuration file if present.
# Also check for hostnames where the first field is a node name.
AC_MSG_CHECKING(for site configuration file)
site_conf=config-site/`hostname`.conf
if test -r $site_conf; then
   AC_MSG_RESULT($site_conf)
   . $site_conf
else
   site_conf=config-site/`hostname | cut -f2- -d.`.conf
   if test -r $site_conf; then
      AC_MSG_RESULT($site_conf)
      . $site_conf
   else
      AC_MSG_RESULT(none found)
   fi
fi

# If the user has a ~/.visit/default.conf file, load that
AC_MSG_CHECKING([for user configuration file $HOME/.visit/default.conf])
if test -r "$HOME/.visit/default.conf"; then
   AC_MSG_RESULT(found)
   . $HOME/.visit/default.conf
else
   AC_MSG_RESULT([none found])
fi

# Load any user-specified configuration file
AC_MSG_CHECKING([for user-specified configuration file])
AC_ARG_WITH(config,
            [  --with-config=file      Specify a configuration file to execute],
            user_conf=$withval,
            user_conf="none")
if test "$user_conf" = "yes" -o "$user_conf" = ""; then
    AC_MSG_ERROR([You must specify a file when using --with-config=file])
fi
if test "$user_conf" != "none"; then
   AC_MSG_RESULT($user_conf)
   . $user_conf
else
   AC_MSG_RESULT([none specified])
fi

hrchilds's avatar
hrchilds committed
1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098
# Load the OS configuration file if present.
UNAME="`uname 2>/dev/null`"
AC_MSG_CHECKING(for OS configuration file)
site_conf=config-site/$UNAME.conf
if test -r $site_conf; then
    AC_MSG_RESULT($site_conf)
    . $site_conf
else
    AC_MSG_RESULT(none found)
fi

hrchilds's avatar
hrchilds committed
1099 1100 1101 1102 1103
#
# Check for platform specific flags.
#
AC_SUBST(PLATFORM_CPPFLAGS)

1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115
#
# Setup default standard dir targets. These can get overridden
# for specific types of builds like dbio-only.
#
SUBDIRS="$""(SUBDIRS_STD)"
ALLSUBDIRS="$""(ALLSUBDIRS_STD)"
SRC="$""(SRC_STD)"
BUILD_DBIO_ONLY=""
AC_SUBST(SUBDIRS)
AC_SUBST(ALLSUBDIRS)
AC_SUBST(SRC)
AC_SUBST(BUILD_DBIO_ONLY)
whitlocb's avatar
whitlocb committed
1116 1117 1118 1119 1120 1121 1122
if test "$UNAME" = "Darwin"; then
    # Skip the check because it uses an incompatible xargs argument.
    CHECK_MAKE_AND_ENV_VARS=""
else
    CHECK_MAKE_AND_ENV_VARS="check-make-and-env-vars"
fi
AC_SUBST(CHECK_MAKE_AND_ENV_VARS)
1123 1124 1125 1126 1127 1128 1129 1130 1131

#
# Check for database-only build. Disable a slew of things if so.
#
AC_ARG_ENABLE(dbio-only,
   AC_HELP_STRING([--enable-dbio-only], [build only the components necessary to support database I/O]))
if test "$enable_dbio_only" = yes; then
    enable_scripting=no
    AC_DEFINE(DBIO_ONLY, [1], [Define if this is a database I/O only build])
1132 1133 1134 1135
    NON_DBIO_SERLIBS=""
    NON_DBIO_PARLIBS=""
else
    NON_DBIO_SERLIBS="$""(NON_DBIO_SERLIBS)"
whitlocb's avatar
whitlocb committed
1136
    NON_DBIO_PARLIBS="$""(NON_DBIO_PARLIBS)"
1137
fi
1138 1139
AC_SUBST(NON_DBIO_SERLIBS)
AC_SUBST(NON_DBIO_PARLIBS)
1140

whitlocb's avatar
whitlocb committed
1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162
#
# Check for engine-only build. Disable clients,etc. Just build the engine.
#
AC_ARG_ENABLE(engine-only,
   AC_HELP_STRING([--enable-engine-only], [build only the compute engine]))
if test "$enable_engine_only" = yes && test "$enable_dbio_only" = yes; then
   AC_MSG_ERROR([--enable-dbio-only is not compatible with --enable-engine-only])
fi

#
# Check for server-components-only build. Disable clients,etc. Just build the engine,mdserver,vcl.
#
AC_ARG_ENABLE(server-components-only,
   AC_HELP_STRING([--enable-server-components-only], [build only the server components (engine,mdserver,vcl)]))
if test "$enable_server_components_only" = yes && test "$enable_dbio_only" = yes; then
   AC_MSG_ERROR([--enable-server-components-only is not compatible with --enable-engine-only])
fi
if test "$enable_server_components_only" = yes && test "$enable_engine_only" = yes; then
   AC_MSG_WARN([--enable-server-components-only overrides --enable-engine-only])
   enable_engine_only=no
fi

whitlocb's avatar
whitlocb committed
1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190
#
# Check for CMake
#
CMAKE=""
AC_ARG_WITH(cmake,
	    [  --with-cmake=path to cmake     Location of cmake utility.],
           cmake_specified="yes",
           cmake_specified="no"
           )
if test "$cmake_specified" = "yes"; then
   AC_MSG_CHECKING(for cmake)
   if test "$withval" != "no"; then
      CMAKE="$withval"
   fi
   AC_MSG_RESULT($CMAKE)
else
   if test "$DEFAULT_CMAKE" != ""; then
       # Get the cmake value from the config-site file.
       AC_MSG_CHECKING(for cmake)
       CMAKE="$DEFAULT_CMAKE"
       AC_MSG_RESULT($CMAKE)
   else
       # No cmake was specified, look for it.
       AC_PATH_PROG([CMAKE], [cmake], "")
   fi
fi
AC_SUBST(CMAKE)

hrchilds's avatar
hrchilds committed
1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215
#
# Set up fake exceptions if requested.
#
AC_ARG_ENABLE(fake-exceptions,
   [  --enable-fake-exceptions       do not make use of C++'s exception library ],
   UseFakeExceptions=$enableval, UseFakeExceptions=not_specified)
doFakeExceptions="no"
if test "$UseFakeExceptions" = "yes" ; then
  doFakeExceptions="yes"
fi
AC_MSG_CHECKING([whether or not to use fake exceptions])
FAKE_EXCEPTIONS_BY_DEFAULT="xx$FAKE_EXCEPTIONS_BY_DEFAULT"
if test "$FAKE_EXCEPTIONS_BY_DEFAULT" = "xxyes" ; then
  if test "$UseFakeExceptions" = "not_specified" ; then
     doFakeExceptions="yes"
  fi
fi
if test "$doFakeExceptions" = "yes" ; then
  AC_MSG_RESULT([yes])
  CXXFLAGS="$CXXFLAGS -DFAKE_EXCEPTIONS"
else
  AC_MSG_RESULT([no])
fi
AC_SUBST(CXXFLAGS)

1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242
#
# Allow for hangup signals to be ignored, which gets around an OS bug.
# (Bug is that for xterm -e <prog>, if prog uses threads, then when one of
# the child threads exits, the master thread gets a HUP.)
#
AC_ARG_ENABLE(ignore-hangups,
   [  --enable-ignore-hangups        ignore hangup signals (this avoids RHEL3 bug) ],
   UseIgnoreHups=$enableval, UseIgnoreHups=not_specified)
doIgnoreHups="no"
if test "$UseIgnoreHups" = "yes" ; then
  doIgnoreHups="yes"
fi
AC_MSG_CHECKING([whether or not to use ignore hangup signals])
IGNORE_HUPS="xx$IGNORE_HUPS"
if test "$IGNORE_HUPS" = "xxyes" ; then
  if test "$UseIgnoreHups" = "not_specified" ; then
     doIgnoreHups="yes"
  fi
fi
if test "$doIgnoreHups" = "yes" ; then
  AC_MSG_RESULT([yes])
  CXXFLAGS="$CXXFLAGS -DIGNORE_HUPS"
else
  AC_MSG_RESULT([no])
fi
AC_SUBST(CXXFLAGS)

1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254
#
# VisIt DOES NOT need this. However, this configure script uses
# tests like AC_CHECK_HEADERS which can actually wind up setting
# value for $EGREP and AC_TYPE_UID_T which depends on it. So,
# you can wind up with cases where AC_TYPE_UID_T behaves strangely
# depending on whether AC_CHECK_HEADERS was invoked ahead of it.
# To avoid this issue (and probably others with autoconf's bizarre
# behavior), we explicitly make a request for egrep here and it
# will set $EGREP
#
AC_PROG_EGREP

hrchilds's avatar
hrchilds committed
1255 1256 1257 1258 1259 1260
#
# Get the simple C++ tests out of the way
#
AC_LANG_CPLUSPLUS
AC_TRY_LINK[]
AC_LANG_C
hrchilds's avatar
hrchilds committed
1261

1262 1263
AC_HEADER_STDBOOL

hrchilds's avatar
hrchilds committed
1264 1265 1266 1267 1268 1269 1270
#
# Check to see if the parallel version is enabled.
#
AC_ARG_ENABLE(parallel,
   [  --enable-parallel       make the parallel version],
   UseParallel=$enableval, UseParallel=no)

fogal1's avatar
fogal1 committed
1271 1272
ax_build_cog=""
ax_lib_cog=""
hrchilds's avatar
hrchilds committed
1273 1274 1275 1276 1277 1278 1279 1280
AC_MSG_CHECKING(for parallel features)
if test "$UseParallel" = "yes"; then
   AC_MSG_RESULT(enabled)
   PARALLEL="parallel"
   PARALLEL_CPPFLAGS="-DPARALLEL"
   LIBSTATICPAR="$""(LIBSTATICPAR)"
   LIBSHAREDPAR="$""(LIBSHAREDPAR)"
   LIBSHAREDPAR_UPDATEONLY="libsharedpar_updateonly"
1281
   PARDEP="$""(PARDEP)"
hrchilds's avatar
hrchilds committed
1282

hrchilds's avatar
hrchilds committed
1283
   if test "$UNAME" != "AIX"; then
hrchilds's avatar
hrchilds committed
1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297
       if (test -z "$MPI_LIBS") then
           MPI_LIBS="-lmpi"
       fi
   fi

   # Check if the user has specified a C compiler for MPI
   if test -n "$MPI_CC"; then
       MPI_CC="CC=$MPI_CC"
   fi

   # Check if the user has specified a C++ compiler for MPI
   if test -n "$MPI_CXX"; then
       MPI_CXX="CXX=$MPI_CXX"
   fi
fogal1's avatar
fogal1 committed
1298 1299 1300 1301 1302 1303

   export MPI_LIBS
   export MPI_CC
   ax_build_cog="cognomen"
   ax_lib_cog="-lcognomen"
   CPPFLAGS="${CPPFLAGS} -I$""(TOPDIR)/include/cognomen"
hrchilds's avatar
hrchilds committed
1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314
else
   AC_MSG_RESULT(disabled)
   PARALLEL=""
   PARALLEL_CPPFLAGS=""
   MPI_LIBS=""
   SHLIB_MPI_LIBS=""
   MPI_CC=""
   MPI_CXX=""
   LIBSTATICPAR=""
   LIBSHAREDPAR=""
   LIBSHAREDTEMPPAR=""
1315
   PARDEP=""
hrchilds's avatar
hrchilds committed
1316 1317 1318 1319 1320 1321 1322 1323 1324
fi
AC_SUBST(PARALLEL)
AC_SUBST(PARALLEL_CPPFLAGS)
AC_SUBST(MPI_LIBS)
AC_SUBST(MPI_CC)
AC_SUBST(MPI_CXX)
AC_SUBST(LIBSTATICPAR)
AC_SUBST(LIBSHAREDPAR)
AC_SUBST(LIBSHAREDPAR_UPDATEONLY)
1325
AC_SUBST(PARDEP)
fogal1's avatar
fogal1 committed
1326 1327
AC_SUBST(BUILD_COGNOMEN, $ax_build_cog)
AC_SUBST(LIBCOGNOMEN, $ax_lib_cog)
hrchilds's avatar
hrchilds committed
1328 1329 1330 1331 1332

#
# Set up some Mesa variables.
#
AC_MSG_CHECKING(for Mesa)
whitlocb's avatar
whitlocb committed
1333
MESA_LIBGL="MesaGL"
hrchilds's avatar
hrchilds committed
1334 1335 1336 1337
if test -n "$MESA"; then
   AC_MSG_RESULT(found)
   MESA_DIR=$MESA
   MESA_INCLUDE="-I$""(TOPDIR)/include/mesa"
whitlocb's avatar
whitlocb committed
1338 1339 1340 1341 1342 1343
   if test -e $MESA/lib/libGL.so ; then
       MESA_LIBS="-lOSMesa -lGL"
       MESA_LIBGL="GL"
   else
       MESA_LIBS="-lOSMesa -lMesaGL"
   fi
hrchilds's avatar
hrchilds committed
1344 1345 1346 1347 1348 1349 1350 1351 1352
else
   AC_MSG_RESULT(not found)
   MESA_DIR=""
   MESA_INCLUDE=""
   MESA_LIBS=""
fi
AC_SUBST(MESA_DIR)
AC_SUBST(MESA_INCLUDE)
AC_SUBST(MESA_LIBS)
whitlocb's avatar
whitlocb committed
1353
AC_SUBST(MESA_LIBGL)
hrchilds's avatar
hrchilds committed
1354

hrchilds's avatar
hrchilds committed
1355 1356 1357 1358 1359 1360 1361 1362
#
# Check to see if we should use the mesa stub library in the viewer.
#
AC_MSG_CHECKING(for use of the mesa stub library in the viewer)
AC_ARG_ENABLE(viewer-mesa-stub,
   [  --enable-viewer-mesa-stub     use the mesa stub library in the viewer],
   UseViewerMesaStub=$enableval, UseViewerMesaStub=yes)

whitlocb's avatar
whitlocb committed
1363
if test "$UseViewerMesaStub" = "yes" && test ! "$enable_engine_only" = yes && test ! "$enable_server_components_only" = yes ; then
hrchilds's avatar
hrchilds committed
1364 1365 1366
   AC_MSG_RESULT(enabled)
   VIEWER_MESA_STUB_CPPFLAGS="-DMESA_STUB"
   VIEWER_MESA_LIBS="-lMesaStub"
1367
   BUILD_MESA_STUB="mesa_stub"
hrchilds's avatar
hrchilds committed
1368 1369 1370 1371
else
   AC_MSG_RESULT(disabled)
   VIEWER_MESA_STUB_CPPFLAGS=""
   VIEWER_MESA_LIBS=$MESA_LIBS
1372
   BUILD_MESA_STUB=""
hrchilds's avatar
hrchilds committed
1373 1374 1375
fi
AC_SUBST(VIEWER_MESA_STUB_CPPFLAGS)
AC_SUBST(VIEWER_MESA_LIBS)
1376
AC_SUBST(BUILD_MESA_STUB)
hrchilds's avatar
hrchilds committed
1377

hrchilds's avatar
hrchilds committed
1378
#
hrchilds's avatar
hrchilds committed
1379
# The check for OpenGL can be disabled with `--disable-ogl'.
hrchilds's avatar
hrchilds committed
1380 1381 1382 1383 1384 1385
#
AC_ARG_ENABLE(ogl,
   [  --disable-ogl           do not check for the SGI ogl library],
   UseOGL="$enable_ogl", UseOGL=yes)

#
hrchilds's avatar
hrchilds committed
1386
# Try to find the OpenGL libraries
hrchilds's avatar
hrchilds committed
1387 1388 1389 1390 1391
#
GL_LIBS=""
if test "$UseOGL" = "yes"; then
    AC_CHECK_LIB(GL, main,   GL_LIBS="-lGL")
fi
hrchilds's avatar
hrchilds committed
1392
# If we're on Darwin, OpenGL is a framework.
1393
if test "$UNAME" = "Darwin"; then
hrchilds's avatar
hrchilds committed
1394 1395 1396 1397
    # We're on MacOS X and it always has an OpenGL framework.
    AC_MSG_CHECKING(for OpenGL)
    GL_LIBS="-framework OpenGL"
    AC_MSG_RESULT(found $GL_LIBS)
1398 1399 1400 1401 1402 1403
# Turn off ssh tunnleing if on Panther
    VERS=`uname -r`
    case $VERS in
       7*) AC_DEFINE(PANTHERHACK, [1], [Disable ssh tunneling on Panther.]);;
       *);;
    esac
hrchilds's avatar
hrchilds committed
1404
fi
1405

hrchilds's avatar
hrchilds committed
1406
AC_SUBST(GL_LIBS)
hrchilds's avatar
hrchilds committed
1407

hrchilds's avatar
hrchilds committed
1408 1409
AC_LANG_C

hrchilds's avatar
hrchilds committed
1410 1411 1412 1413
#
# Set up some VTK variables.
#
AC_MSG_CHECKING(for VTK)
whitlocb's avatar
whitlocb committed
1414 1415 1416
MESA_OBJ=""
SERMESA_OBJ=""
PARMESA_OBJ=""
hrchilds's avatar
hrchilds committed
1417 1418 1419 1420
if test -n "$VTK"; then
    AC_MSG_RESULT(found)
    VTK_DIR=$VTK
    VTK_INCROOT="$""(TOPDIR)/include/vtk"
hrchilds's avatar
hrchilds committed
1421
    VTK_INCLUDES="-I$VTK_INCROOT -I$VTK_INCROOT/Common -I$VTK_INCROOT/Filtering -I$VTK_INCROOT/Graphics -I$VTK_INCROOT/Hybrid -I$VTK_INCROOT/IO -I$VTK_INCROOT/Imaging -I$VTK_INCROOT/Rendering -I$VTK_INCROOT/Utilities"
hrchilds's avatar
hrchilds committed
1422
    VTK_LIBS="-lvtkCommon -lvtkDICOMParser -lvtkFiltering -lvtkGraphics -lvtkHybrid -lvtkIO -lvtkImaging -lvtkRendering -lvtkzlib -lvtkexpat -lvtkjpeg -lvtkpng -lvtktiff -lvtkftgl -lvtkfreetype -lvtksys -lvtkMPEG2Encode "
1423
    if test "$UNAME" = "Darwin"; then
hrchilds's avatar
hrchilds committed
1424 1425
        VTK_LIGHTWEIGHT_LIBS=$VTK_LIBS
    else
hrchilds's avatar
hrchilds committed
1426
        VTK_LIGHTWEIGHT_LIBS="-lvtkCommon -lvtkFiltering -lvtkzlib -lvtkexpat -lvtksys"
hrchilds's avatar
hrchilds committed
1427
    fi
whitlocb's avatar
whitlocb committed
1428 1429 1430 1431 1432 1433 1434 1435 1436 1437

    # Determine whether VTK was built with mangled Mesa support. If it wasn't
    # then there is code in VisIt that we do not want to compile.
    useMangledMesa=`grep "define VTK_USE_MANGLED_MESA" $VTK/vtkToolkits.h`
    if test -n "$useMangledMesa" ; then
        AC_DEFINE(VISIT_USE_MANGLED_MESA, [1], [Enable use of mangled Mesa classes in VisIt.])
        MESA_OBJ="$""(MESA_OBJ)"
        SERMESA_OBJ="$""(SERMESA_OBJ)"
        PARMESA_OBJ="$""(PARMESA_OBJ)"
    fi
hrchilds's avatar
hrchilds committed
1438 1439 1440 1441 1442
else
    AC_MSG_RESULT(not found)
    VTK_DIR=""
    VTK_INCLUDES=""
    VTK_LIBS=""
hrchilds's avatar
hrchilds committed
1443
    VTK_LIGHTWEIGHT_LIBS=""
hrchilds's avatar
hrchilds committed
1444 1445 1446 1447
fi
AC_SUBST(VTK_DIR)
AC_SUBST(VTK_INCLUDES)
AC_SUBST(VTK_LIBS)
hrchilds's avatar
hrchilds committed
1448
AC_SUBST(VTK_LIGHTWEIGHT_LIBS)
whitlocb's avatar
whitlocb committed
1449 1450 1451
AC_SUBST(MESA_OBJ)
AC_SUBST(SERMESA_OBJ)
AC_SUBST(PARMESA_OBJ)
hrchilds's avatar
hrchilds committed
1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472

#
# Check for the avtprep directory
#
AC_MSG_CHECKING(for avtprep)
if test -d tools/avtprep; then
    AC_MSG_RESULT(found)
    AVTPREP_SER="$""(tmpbin)/avtprep_ser"
    if test -n "$PARALLEL"; then
        AVTPREP_PAR="$""(tmpbin)/avtprep_par"
    else
        AVTPREP_PAR=""
    fi
else
    AC_MSG_RESULT(not found)
    AVTPREP_SER=""
    AVTPREP_PAR=""
fi
AC_SUBST(AVTPREP_SER)
AC_SUBST(AVTPREP_PAR)

hrchilds's avatar
hrchilds committed
1473 1474 1475 1476 1477 1478
#
# Check for the convert directory
#
AC_MSG_CHECKING(for convert)
if test -d tools/convert; then
    AC_MSG_RESULT(found)
hrchilds's avatar
hrchilds committed
1479
    CONVERT_SER="$""(tmpbin)/visitconvert_ser"
whitlocb's avatar
whitlocb committed
1480 1481 1482 1483 1484 1485
    if test "$UNAME" = "Darwin"; then
        CONVERT_SER_LITE=""
    else
        CONVERT_SER_LITE="$""(tmpbin)/visitconvert_ser_lite"
    fi

hrchilds's avatar
hrchilds committed
1486
    if test -n "$PARALLEL"; then
hrchilds's avatar
hrchilds committed
1487
        CONVERT_PAR="$""(tmpbin)/visitconvert_par"
whitlocb's avatar
whitlocb committed
1488 1489 1490 1491 1492
        if test "$UNAME" = "Darwin"; then
            CONVERT_PAR_LITE=""
        else
            CONVERT_PAR_LITE="$""(tmpbin)/visitconvert_par_lite"
        fi
hrchilds's avatar
hrchilds committed
1493 1494 1495 1496 1497 1498 1499
    else
        CONVERT_PAR=""
    fi
else
    AC_MSG_RESULT(not found)
    CONVERT_SER=""
    CONVERT_PAR=""
whitlocb's avatar
whitlocb committed
1500 1501
    CONVERT_SER_LITE=""
    CONVERT_PAR_LITE=""
hrchilds's avatar
hrchilds committed
1502 1503 1504
fi
AC_SUBST(CONVERT_SER)
AC_SUBST(CONVERT_PAR)
whitlocb's avatar
whitlocb committed
1505 1506
AC_SUBST(CONVERT_SER_LITE)
AC_SUBST(CONVERT_PAR_LITE)
hrchilds's avatar
hrchilds committed
1507 1508

#
hrchilds's avatar
hrchilds committed
1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528
#
# Check for the makemili directory
#
AC_MSG_CHECKING(for makemili)
if test -d tools/makemili; then
    AC_MSG_RESULT(found)
    MAKEMILI_SER="$""(tmpbin)/makemili_ser"
    if test -n "$PARALLEL"; then
        MAKEMILI_PAR="$""(tmpbin)/makemili_par"
    else
        MAKEMILI_PAR=""
    fi
else
    AC_MSG_RESULT(not found)
    MAKEMILI_SER=""
    MAKEMILI_PAR=""
fi
AC_SUBST(MAKEMILI_SER)
AC_SUBST(MAKEMILI_PAR)

hrchilds's avatar
hrchilds committed
1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543
#
# Check for the engine directory
#
AC_MSG_CHECKING(for engine)
if test -d engine; then
    AC_MSG_RESULT(found)
    ENGINE="engine"
    ENGINE_SER="$""(tmpbin)/engine_ser"
    ENGINELIBSER="$""(ESERDSO)"
    if test -n "$PARALLEL"; then
        ENGINE_PAR="$""(tmpbin)/engine_par"
        ENGINELIBPAR="$""(EPARDSO)"
    else
        ENGINE_PAR=""
        ENGINELIBPAR=""
hrchilds's avatar
hrchilds committed
1544
        ENGINEWRAPPAR=""
hrchilds's avatar
hrchilds committed
1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563
    fi
    if test -z "$VTK"; then
        AC_MSG_ERROR([engine is here, but no VTK library was specified. 
The engine cannot be built without VTK.  Make sure the VTK environment variable
is set and rerun 'configure'.])
    fi
else
    AC_MSG_RESULT(not found)
    ENGINE_SER=""
    ENGINE_PAR=""
    ENGINELIBSER=""
    ENGINELIBPAR=""
fi
AC_SUBST(ENGINE_SER)
AC_SUBST(ENGINE_PAR)
AC_SUBST(ENGINELIBSER)
AC_SUBST(ENGINELIBPAR)

#
whitlocb's avatar
whitlocb committed
1564
# The mdserver is enabled unless we're doing an engine-only build.
hrchilds's avatar
hrchilds committed
1565
#
whitlocb's avatar
whitlocb committed
1566
if test ! "$enable_engine_only" = yes; then
hrchilds's avatar
hrchilds committed
1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591
    dnl
    dnl Check for the mdserver directory
    dnl
    AC_MSG_CHECKING(for mdserver)
    if test -d mdserver; then
        AC_MSG_RESULT(found)
        METADATA_SERVER="mdserver"
        MDSERVERLIB="$""(MDSO)"
        MDSERVEROBJ="$""(MOBJ)"
    else
        AC_MSG_RESULT(not found)
        METADATA_SERVER=""
    fi
else
    METADATA_SERVER=""
fi
AC_SUBST(METADATA_SERVER)
AC_SUBST(MDSERVERLIB)
AC_SUBST(MDSERVEROBJ)

#
# Check to see if scripting features are enabled.
#
AC_MSG_CHECKING(if scripting features are enabled)
AC_ARG_ENABLE(scripting,
hrchilds's avatar
hrchilds committed
1592
              [  --disable-scripting     build without CLI Python scripting capability],
hrchilds's avatar
hrchilds committed
1593
              UseScripting="$enable_scripting", UseScripting=yes)
whitlocb's avatar
whitlocb committed
1594
if test "X$UseScripting" = "Xyes" && test ! "$enable_engine_only" = yes && test ! "$enable_server_components_only" = yes; then
hrchilds's avatar
hrchilds committed
1595 1596 1597 1598 1599 1600
    AC_MSG_RESULT(yes)
    enable_scripting=yes

    VISITPY="visitpy"
    SCRIPTINGLIB="$""(SDSO)"
    SCRIPTINGOBJ="$""(SOBJ)"
hrchilds's avatar
hrchilds committed
1601 1602 1603 1604 1605 1606

    #
    # Check to see if VisIt module should be built.
    #
    AC_MSG_CHECKING(if VisIt Python module will be built)
    AC_ARG_ENABLE(visitmodule,
1607
                  [  --enable-visitmodule    build a VisIt Python module],
hrchilds's avatar
hrchilds committed
1608 1609 1610 1611 1612 1613 1614 1615
                  [UsePythonModule=yes])
    if test "X$UsePythonModule" = "Xyes"; then
        AC_MSG_RESULT(yes)
        PY_BUILD_VISITMODULE="visitmodule"
    else
        AC_MSG_RESULT(no)
        PY_BUILD_VISITMODULE=""
    fi
hrchilds's avatar
hrchilds committed
1616 1617 1618 1619 1620 1621 1622
else
    AC_MSG_RESULT(no)
    enable_scripting=no

    VISITPY=""
    SCRIPTINGLIB=""
    SCRIPTINGOBJ=""
hrchilds's avatar
hrchilds committed
1623
    PY_BUILD_VISITMODULE=""
hrchilds's avatar
hrchilds committed
1624 1625 1626 1627
fi
AC_SUBST(VISITPY)
AC_SUBST(SCRIPTINGLIB)
AC_SUBST(SCRIPTINGOBJ)
hrchilds's avatar
hrchilds committed
1628 1629
AC_SUBST(PY_BUILD_VISITMODULE)

hrchilds's avatar
hrchilds committed
1630 1631

dnl
whitlocb's avatar
whitlocb committed
1632
dnl The viewer is enabled unless we're doing an engine-only or server-components-only build.
whitlocb's avatar
whitlocb committed
1633
dnl
whitlocb's avatar
whitlocb committed
1634
if test ! "$enable_engine_only" = yes && test ! "$enable_server_components_only" = yes; then
whitlocb's avatar
whitlocb committed
1635 1636 1637 1638 1639 1640 1641 1642
    VIEWER="viewer"
    VIEWERLIB="$""(VDSO)"
    VIEWEROBJ="$""(VOBJ)"
    # The private source can go into the executable on all UNIX versions
    # except for MacOS X.
    if test "$UNAME" = "Darwin" ; then
        VIEWERLIB_SRC="$""(PUBLIC_SRC) $""(PRIVATE_SRC) $""(SRCMOC)"
        VIEWEREXE_SRC="$""(MAINSRC)"
hrchilds's avatar
hrchilds committed
1643
    else
whitlocb's avatar
whitlocb committed
1644 1645
        VIEWERLIB_SRC="$""(PUBLIC_SRC)"
        VIEWEREXE_SRC="$""(MAINSRC) $""(PRIVATE_SRC) $""(SRCMOC)"
hrchilds's avatar
hrchilds committed
1646
    fi
whitlocb's avatar
whitlocb committed
1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658
else
    VIEWER=""
    VIEWERLIB=""
    VIEWEROBJ=""
    VIEWERLIB_SRC=""
    VIEWEREXE_SRC=""
fi
AC_SUBST(VIEWER)
AC_SUBST(VIEWERLIB)
AC_SUBST(VIEWEROBJ)
AC_SUBST(VIEWERLIB_SRC)
AC_SUBST(VIEWEREXE_SRC)
hrchilds's avatar
hrchilds committed
1659

whitlocb's avatar
whitlocb committed
1660
dnl
whitlocb's avatar
whitlocb committed
1661
dnl The gui is enabled unless we're doing an engine-only or server-components-only build.
whitlocb's avatar
whitlocb committed
1662
dnl
whitlocb's avatar
whitlocb committed
1663
if test ! "$enable_engine_only" = yes && test ! "$enable_server_components_only" = yes; then
whitlocb's avatar
whitlocb committed
1664 1665 1666 1667 1668
    GUI="gui"
    GUILIB="$""(GDSO)"
    GUIOBJ="$""(GOBJ)"
    if test "$UNAME" = "Darwin"; then
        GUIFRAMEWORKS="-framework Carbon"
hrchilds's avatar
hrchilds committed
1669
    else
hrchilds's avatar
hrchilds committed
1670
        GUIFRAMEWORKS=""
hrchilds's avatar
hrchilds committed
1671 1672
    fi
else
whitlocb's avatar
whitlocb committed
1673 1674 1675 1676
    GUI=""
    GUILIB=""
    GUIOBJ=""
    GUIFRAMEWORKS=""
hrchilds's avatar
hrchilds committed
1677 1678 1679 1680
fi
AC_SUBST(GUI)
AC_SUBST(GUILIB)
AC_SUBST(GUIOBJ)
hrchilds's avatar
hrchilds committed
1681
AC_SUBST(GUIFRAMEWORKS)
hrchilds's avatar
hrchilds committed
1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709

#
# Check to see if we should disable annotations.
#
AC_ARG_ENABLE(annotations,
              [  --disable-annotations   build without annotations],
              UseAnnotations="$enable_annotations", UseAnnotations=yes)
if test "$UseAnnotations" = "no"; then
    ANNOTATION_FLAGS="$ANNOTATION_FLAGS -DNO_ANNOTATIONS"
fi
AC_SUBST(ANNOTATION_FLAGS)

#
# Check to see if the java client is enabled.
#
AC_ARG_ENABLE(java,
   [  --enable-java           build the Java client library],
   UseJava=$enableval, UseJava=no)

AC_MSG_CHECKING(if Java client is enabled)
if test "$UseJava" = "yes"; then
    AC_MSG_RESULT(yes)
 
    # Somehow check that Java is at least Java 2 v1.4.0

    JAVAC="javac"
    JAVA_TARGET="java"
    JAR="jar"
whitlocb's avatar
whitlocb committed
1710
    JAVAFLAGS="-source 1.4"
hrchilds's avatar
hrchilds committed
1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725
    JAVAPLUGINFLAGS=""
else
    AC_MSG_RESULT(no)
    JAVAC=""
    JAVA_TARGET=""
    JAR=""
    JAVAFLAGS=""
    JAVAPLUGINFLAGS=""
fi
AC_SUBST(JAVAC)
AC_SUBST(JAVA_TARGET)
AC_SUBST(JAR)
AC_SUBST(JAVAFLAGS)
AC_SUBST(JAVAPLUGINFLAGS)

whitlocb's avatar
whitlocb committed
1726 1727 1728 1729 1730 1731 1732
#
# Check to see if the SLIVR is enabled.
#
AC_ARG_ENABLE(slivr,
   [  --enable-slivr           build with the SLIVR volume rendering library],
   UseSLIVR=$enableval, UseSLIVR=no)

fogal1's avatar
fogal1 committed
1733 1734
SLIVR_GUI_IMPL=""
SLIVR_GUI_HDR=""
whitlocb's avatar
whitlocb committed
1735 1736 1737 1738 1739 1740 1741 1742 1743
AC_MSG_CHECKING(if SLIVR is enabled)
TEEM_CMAKE_C_FLAGS=""
SLIVR_CMAKE_SHARED_LINKER_FLAGS=""
if test "$UseSLIVR" = "yes"; then
    if test "$CMAKE" != "" ; then
        AC_MSG_RESULT(yes)
        AC_DEFINE(HAVE_LIBSLIVR, [1], [Define if you have the SLIVR library.])
        BUILD_SLIVR="slivr"
        SLIVR_INCLUDE="-I$""(TOPDIR)/include/teem -I$""(TOPDIR)/include/slivr"
1744
        SLIVR_LIBS="-lslivrV -lslivrG -lnrrd -lair -lbiff -lhest -lGLU"
1745
        if test "$UNAME" = "Darwin"; then
whitlocb's avatar
whitlocb committed
1746 1747 1748
            TEEM_CMAKE_C_FLAGS="-D CMAKE_C_FLAGS:STRING=-fno-common"
            SLIVR_CMAKE_SHARED_LINKER_FLAGS="-D CMAKE_SHARED_LINKER_FLAGS:STRING=-Wl,-undefined,dynamic_lookup"
        fi
fogal1's avatar
fogal1 committed
1749 1750
        SLIVR_GUI_IMPL="QvisCMap2Display.C QvisCMap2Widget.C"
        SLIVR_GUI_HDR="QvisCMap2Display.h QvisCMap2Widget.h"
whitlocb's avatar
whitlocb committed
1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767
    else
        AC_MSG_RESULT(no because cmake was not found)
        BUILD_SLIVR=""
        SLIVR_INCLUDE=""
        SLIVR_LIBS=""
    fi
else
    AC_MSG_RESULT(no)
    BUILD_SLIVR=""
    SLIVR_INCLUDE=""
    SLIVR_LIBS=""
fi
AC_SUBST(BUILD_SLIVR)
AC_SUBST(SLIVR_INCLUDE)
AC_SUBST(SLIVR_LIBS)
AC_SUBST(TEEM_CMAKE_C_FLAGS)
AC_SUBST(SLIVR_CMAKE_SHARED_LINKER_FLAGS)
fogal1's avatar
fogal1 committed
1768 1769
AC_SUBST(SLIVR_GUI_IMPL)
AC_SUBST(SLIVR_GUI_HDR)
whitlocb's avatar
whitlocb committed
1770

hrchilds's avatar
hrchilds committed
1771 1772 1773 1774 1775 1776 1777 1778 1779 1780
#
# Check if the help directory is present.
#
if test -d help; then
    HELP="help"
else
    HELP=""
fi
AC_SUBST(HELP)

hrchilds's avatar
hrchilds committed
1781 1782 1783 1784 1785 1786 1787
#
# Check to see if we should build all of the plugins.
#
AC_ARG_ENABLE(buildall,
  [  --enable-buildall       build all plugins],
  buildall="all", buildall=base)

1788
AC_ARG_ENABLE(minimal-plugins,
1789
  [  --enable-minimal-plugins   build only a few of the most common plugins],
1790 1791
  buildall="minimal")

hrchilds's avatar
hrchilds committed
1792 1793 1794 1795 1796 1797 1798
AC_MSG_CHECKING([which plot plugins to build])
AC_ARG_WITH(plots,
            [  --with-plots=all,base   What plot plugins to build (overrides --enable-buildall)],
            ,
            withval=$buildall)
case $withval in
    all)
1799
        PLOT_BUILD_DIRS="$""(REQUIRED) $""(OPTIONAL)"
hrchilds's avatar
hrchilds committed
1800 1801 1802
        AC_MSG_RESULT([all])
        ;;
    base)
1803
        PLOT_BUILD_DIRS="$""(REQUIRED)"
hrchilds's avatar
hrchilds committed
1804 1805
        AC_MSG_RESULT([base only])
        ;;
1806 1807 1808 1809
    minimal)
        PLOT_BUILD_DIRS="$""(MINIMAL)"
        AC_MSG_RESULT([minimal only])
        ;;
hrchilds's avatar
hrchilds committed
1810 1811 1812
    *)
        AC_MSG_ERROR([Please specify one of "all" or "base" for --with-plots.])
esac
1813
AC_SUBST(PLOT_BUILD_DIRS)
hrchilds's avatar
hrchilds committed
1814 1815 1816 1817 1818 1819 1820 1821

AC_MSG_CHECKING([which operator plugins to build])
AC_ARG_WITH(operators,
            [  --with-operators=all,base What operator plugins to build (overrides --enable-buildall)],
            ,
            withval=$buildall)
case $withval in
    all)
1822
        OPERATOR_BUILD_DIRS="$""(REQUIRED) $""(OPTIONAL)"
hrchilds's avatar
hrchilds committed
1823 1824 1825
        AC_MSG_RESULT([all])
        ;;
    base)
1826
        OPERATOR_BUILD_DIRS="$""(REQUIRED)"
hrchilds's avatar
hrchilds committed
1827 1828
        AC_MSG_RESULT([base only])
        ;;
1829 1830 1831 1832
    minimal)
        OPERATOR_BUILD_DIRS="$""(MINIMAL)"
        AC_MSG_RESULT([minimal only])
        ;;
hrchilds's avatar
hrchilds committed
1833 1834 1835
    *)
        AC_MSG_ERROR([Please specify one of "all" or "base" for --with-operators.])
esac
1836
AC_SUBST(OPERATOR_BUILD_DIRS)
hrchilds's avatar
hrchilds committed
1837 1838 1839 1840 1841 1842 1843 1844

AC_MSG_CHECKING([which database plugins to build])
AC_ARG_WITH(dbs,
            [  --with-dbs=all,base     What database plugins to build (overrides --enable-buildall)],
            ,
            withval=$buildall)
case $withval in
    all)
1845
        DB_BUILD_DIRS="$""(REQUIRED) $""(THIRDPARTY_DEPENDENT) $""(OPTIONAL) $""(SAMPLES)"
hrchilds's avatar
hrchilds committed
1846 1847 1848
        AC_MSG_RESULT([all])
        ;;
    base)
1849
        DB_BUILD_DIRS="$""(REQUIRED) $""(THIRDPARTY_DEPENDENT)"
hrchilds's avatar
hrchilds committed
1850 1851
        AC_MSG_RESULT([base only])
        ;;
1852 1853 1854 1855
    minimal)
        DB_BUILD_DIRS="$""(MINIMAL)"
        AC_MSG_RESULT([minimal only])
        ;;
hrchilds's avatar
hrchilds committed
1856 1857 1858
    *)
        AC_MSG_ERROR([Please specify one of "all" or "base" for --with-dbs.])
esac
1859
AC_SUBST(DB_BUILD_DIRS)
hrchilds's avatar
hrchilds committed
1860

hrchilds's avatar
hrchilds committed
1861
dnl
1862
dnl glew related stuff 
hrchilds's avatar
hrchilds committed
1863 1864
dnl
AC_ARG_ENABLE(glew,
miller86's avatar
miller86 committed
1865
   AC_HELP_STRING([--disable-glew], [do not build or use glew library -- disables detection of OpenGL extensions]),
hrchilds's avatar
hrchilds committed
1866
   Useglew="$enable_glew", Useglew=yes)
1867 1868

AC_ARG_WITH(glew,
miller86's avatar
miller86 committed
1869
   AC_HELP_STRING([--with-glew], [build against external glew in INC-DIR,LIB-DIR (may be ommitted)]),
1870 1871 1872
   [WithExternalGlew=$withval],
   [WithExternalGlew="no"])

hrchilds's avatar
hrchilds committed
1873 1874 1875 1876
BUILD_GLEW=""
GLEW_LIBS=""
GLEW_INCLUDE=""
if test "$Useglew" = "yes"; then
1877 1878 1879 1880 1881 1882
    if test $WithExternalGlew != "no"; then
        if test $WithExternalGlew != "yes"; then
            GLEW_INCLUDE="-I`echo $WithExternalGlew | cut -f1 -d,`"
            GLEW_LIBS="-L`echo $WithExternalGlew | cut -f2 -d, -s`"
        fi
    else
hrchilds's avatar
hrchilds committed
1883 1884
    BUILD_GLEW="glew"
    GLEW_INCLUDE="-I$""(TOPDIR)/include/glew"
1885 1886 1887
    fi
    AC_DEFINE(HAVE_LIBGLEW, [1], [Define if you have the GLEW library.])
    GLEW_LIBS="${GLEW_LIBS} -lGLEW"
hrchilds's avatar
hrchilds committed
1888 1889 1890 1891 1892
fi
AC_SUBST(BUILD_GLEW)
AC_SUBST(GLEW_INCLUDE)
AC_SUBST(GLEW_LIBS)

hrchilds's avatar
hrchilds committed
1893
dnl
hrchilds's avatar
hrchilds committed
1894 1895
dnl Disable building boost interval library. Only necessary if boost-interval
dnl headers prevent VisIt from building somewhere
hrchilds's avatar
hrchilds committed
1896
dnl
hrchilds's avatar
hrchilds committed
1897 1898 1899 1900 1901 1902
AC_ARG_ENABLE(bilib,
   [  --disable-bilib         do not use boost interval template library -- disables adaptive CSG discretization],
   Usebilib="$enable_bilib", Usebilib=yes)
BUILD_BILIB=""
if test "$Usebilib" = "yes"; then
    BUILD_BILIB="bilib"
hrchilds's avatar
hrchilds committed
1903
    AC_DEFINE(HAVE_BILIB, [1], [Define if you have the boost interval template library.])
hrchilds's avatar
hrchilds committed
1904
fi
hrchilds's avatar
hrchilds committed
1905
AC_SUBST(BUILD_BILIB)
hrchilds's avatar
hrchilds committed
1906

whitlocb's avatar
whitlocb committed
1907 1908 1909 1910 1911
dnl
dnl Determine the installation path to VisIt's lib directory. We take --prefix 
dnl into account if it has been specified.
dnl
VISITWRAPPER_RPATH=
whitlocb's avatar
whitlocb committed
1912
VISIT_LIB_DIR="$""(libdir)"
1913
COMPATIBILITY_VERSION=`sed -e "s/b//" VERSION`
whitlocb's avatar
whitlocb committed
1914
if test "x$prefix" != xNONE; then
1915
    COMPATIBILITY_VERSION=`sed -e "s/b//" VERSION`
whitlocb's avatar
whitlocb committed
1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951
    PLATFORM=
    case "$UNAME" in
    Linux)
        # Adapted from visit-bin-dist
        INSTALL_ARCH=`/bin/uname -m`
        case $INSTALL_ARCH in
           ia64)
              PLATFORM="linux-ia64"
              ;;
           x86_64)
              PLATFORM="linux-x86_64"
              ;;
           *)
              if test "$CC" == "icc" ; then
                  PLATFORM="linux-intel-icc"
              else
                  PLATFORM="linux-intel"
              fi
              ;;
        esac
        ;;
    Darwin)
        # Adapted from visit-bin-dist
        INSTALL_ARCH=`/bin/uname -p`
        case $INSTALL_ARCH in
           powerpc)
              PLATFORM="darwin-ppc"
              ;;
           *)
              PLATFORM="darwin-i386"
              ;;
        esac
        ;;
    esac
    VISIT_LIB_DIR="$prefix/$COMPATIBILITY_VERSION/$PLATFORM/lib"
fi
whitlocb's avatar
whitlocb committed
1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964
dnl
dnl Set up "rpath" flags that let the visit wrapper library know where it will be 
dnl installed so we don't have to specify a LD_LIBRARY_PATH or rpath to the 
dnl client simulation.
dnl
case $UNAME in
Linux)
    VISITWRAPPER_RPATH="-Wl,-rpath,$VISIT_LIB_DIR"
    ;;
Darwin)
    VISITWRAPPER_RPATH="-Wl,-install_name,$VISIT_LIB_DIR/\$@,-compatibility_version,$COMPATIBILITY_VERSION,-current_version,$COMPATIBILITY_VERSION"
    ;;
esac
whitlocb's avatar
whitlocb committed
1965 1966
AC_SUBST(VISITWRAPPER_RPATH)

hrchilds's avatar
hrchilds committed
1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977
dnl
dnl Make note if no CXXFLAGS have STILL yet been specified; this is the
dnl same check as for emptycxxflags above, except it is possible that a
dnl config-site file added some, in which case we need to append, not
dnl replace, the cxxflags.
dnl
defaultcxxflags="no"
if test -z "$CXXFLAGS"; then
    defaultcxxflags="yes"
fi

hrchilds's avatar
hrchilds committed
1978 1979 1980 1981 1982 1983
# Check for programs.
# We shouldn't depend on too many!
AC_PROG_CXX
AC_PROG_CXXCPP
AC_PROG_CC
AC_PROG_CPP
hrchilds's avatar
hrchilds committed
1984
AC_PROG_F77
hrchilds's avatar
hrchilds committed
1985 1986 1987 1988 1989 1990 1991

# Keep checking for programs.
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_CHECK_PROG(MAKEDEPEND,makedepend,makedepend)
AC_ISC_POSIX

hrchilds's avatar
hrchilds committed
1992 1993 1994 1995 1996 1997 1998 1999 2000
dnl
dnl Set BUILD_FORTRAN based on how F77 is defined
dnl
BUILD_FORTRAN=""
if test -n "$F77"; then
    BUILD_FORTRAN="\$(BUILD_FORTRAN)"
fi
AC_SUBST(BUILD_FORTRAN)

hrchilds's avatar
hrchilds committed
2001 2002 2003 2004 2005