- Timestamp:
- Aug 1, 2014 11:48:02 PM (9 years ago)
- Location:
- nanovis/branches/1.1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
nanovis/branches/1.1/configure
r4160 r4600 624 624 ac_subst_vars='LTLIBOBJS 625 625 LIBOBJS 626 VTK_LIB_DIR627 VTK_INC_DIR628 VTK_VERSION629 626 TCL_VERSION 630 627 TCL_LIB_SPEC … … 701 698 with_tcllib 702 699 with_rappture 703 with_vtk_includes704 with_vtk_libs705 with_vtk706 700 with_ffmpeg 707 701 with_statsdir … … 1332 1326 --with-rappture=DIR location of rappture files lib/librappture.a and 1333 1327 include/rappture.h [default=/usr] 1334 --with-vtk-includes=DIR VTK include files are in DIR1335 --with-vtk-libs=DIR VTK libraries are in DIR1336 --with-vtk=VERSION Version of VTK required [default=6.1]1337 1328 --with-ffmpeg=DIR location of ffmpeg [default=yes] 1338 1329 --with-statsdir=DIR Write statistics in DIR … … 2260 2251 2261 2252 2262 # Check whether --with-vtk-includes was given.2263 if test "${with_vtk_includes+set}" = set; then :2264 withval=$with_vtk_includes; with_vtk_includes=$withval2265 else2266 with_vtk_includes=""2267 fi2268 2269 2270 2271 # Check whether --with-vtk-libs was given.2272 if test "${with_vtk_libs+set}" = set; then :2273 withval=$with_vtk_libs; with_vtk_libs=$withval2274 else2275 with_vtk_libs=""2276 fi2277 2278 2279 2280 # Check whether --with-vtk was given.2281 if test "${with_vtk+set}" = set; then :2282 withval=$with_vtk; with_vtk=$withval2283 else2284 with_vtk=""2285 fi2286 2287 2288 2289 2253 # Check whether --with-ffmpeg was given. 2290 2254 if test "${with_ffmpeg+set}" = set; then : … … 4705 4669 fi 4706 4670 4707 # We are assuming that we're using VTK 6.04708 VTK_VERSION=6.14709 VTK_LIB_DIR=${libdir}4710 VTK_INC_DIR=${incdir}4711 4712 if test "x$with_vtk_includes" != "x"; then4713 VTK_INC_DIR=$with_vtk_includes4714 fi4715 4716 if test "x$with_vtk_libs" != "x"; then4717 VTK_LIB_DIR=$with_vtk_libs4718 fi4719 4720 if test "x$with_vtk" != "x" ; then4721 VTK_VERSION=$with_vtk4722 fi4723 4724 if ! test -d "$VTK_INC_DIR/vtk-${VTK_VERSION}" ; then4725 as_fn_error $? "Couldn't find VTK includes" "$LINENO" 54726 else4727 VTK_INC_SPEC="-I${VTK_INC_DIR}/vtk-${VTK_VERSION}"4728 fi4729 4730 save_CPPFLAGS=$CPPFLAGS4731 CPPFLAGS=$VTK_INC_SPEC4732 for ac_header in vtkSmartPointer.h4733 do :4734 ac_fn_cxx_check_header_mongrel "$LINENO" "vtkSmartPointer.h" "ac_cv_header_vtkSmartPointer_h" "$ac_includes_default"4735 if test "x$ac_cv_header_vtkSmartPointer_h" = xyes; then :4736 cat >>confdefs.h <<_ACEOF4737 #define HAVE_VTKSMARTPOINTER_H 14738 _ACEOF4739 4740 else4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find vtkSmartPointer.h" >&54742 $as_echo "$as_me: WARNING: cannot find vtkSmartPointer.h" >&2;}4743 fi4744 4745 done4746 4747 CPPFLAGS=$save_CPPFLAGS4748 4749 4671 ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default" 4750 4672 if test "x$ac_cv_header_GL_glut_h" = xyes; then : … … 4954 4876 LD_RPATH="$loader_run_path:${CG_LIB_DIR}" 4955 4877 fi 4956 4957 4958 4959 4878 4960 4879 -
nanovis/branches/1.1/configure.in
r4160 r4600 17 17 [with_rappture=$withval], 18 18 [with_rappture=yes]) 19 20 AC_ARG_WITH(21 [vtk-includes],22 [AS_HELP_STRING([--with-vtk-includes=DIR],23 [VTK include files are in DIR])],24 [with_vtk_includes=$withval],25 [with_vtk_includes=""])26 27 AC_ARG_WITH(28 [vtk-libs],29 [AS_HELP_STRING([--with-vtk-libs=DIR],30 [VTK libraries are in DIR])],31 [with_vtk_libs=$withval],32 [with_vtk_libs=""])33 34 AC_ARG_WITH(35 [vtk],36 [AS_HELP_STRING([--with-vtk=VERSION],37 [Version of VTK required @<:@default=6.1@:>@])],38 [with_vtk=$withval],39 [with_vtk=""])40 19 41 20 AC_ARG_WITH( … … 160 139 fi 161 140 162 # We are assuming that we're using VTK 6.0163 VTK_VERSION=6.1164 VTK_LIB_DIR=${libdir}165 VTK_INC_DIR=${incdir}166 167 if test "x$with_vtk_includes" != "x"; then168 VTK_INC_DIR=$with_vtk_includes169 fi170 171 if test "x$with_vtk_libs" != "x"; then172 VTK_LIB_DIR=$with_vtk_libs173 fi174 175 dnl Prefer our VTK installation over systems. --with-vtk overrides.176 if test "x$with_vtk" != "x" ; then177 VTK_VERSION=$with_vtk178 fi179 180 if ! test -d "$VTK_INC_DIR/vtk-${VTK_VERSION}" ; then181 AC_ERROR([Couldn't find VTK includes])182 else183 VTK_INC_SPEC="-I${VTK_INC_DIR}/vtk-${VTK_VERSION}"184 fi185 186 save_CPPFLAGS=$CPPFLAGS187 CPPFLAGS=$VTK_INC_SPEC188 AC_CHECK_HEADERS([vtkSmartPointer.h], [], [AC_MSG_WARN([cannot find vtkSmartPointer.h])])189 CPPFLAGS=$save_CPPFLAGS190 191 141 AC_CHECK_HEADER([GL/glut.h]) 192 142 AC_CHECK_HEADER([GL/glew.h]) … … 267 217 AC_SUBST(TCL_LIB_SPEC) 268 218 AC_SUBST(TCL_VERSION) 269 AC_SUBST(VTK_VERSION)270 AC_SUBST(VTK_INC_DIR)271 AC_SUBST(VTK_LIB_DIR)272 219 273 220 AC_OUTPUT([
Note: See TracChangeset
for help on using the changeset viewer.